TDD: Pure-graph edge evaluator does not implement content_not_contains, causing mutually-exclusive branch conditions to both fire #96
Labels
No labels
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#99 test(langgraph): capture content_not_contains edge condition regression (#95)
cleveragents/cleveractors-core
Reference
cleveragents/cleveractors-core#96
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Metadata
test(langgraph): capture content_not_contains edge condition regression (#95)tdd/m1-pure-graph-content-not-containsBackground and context
Companion TDD issue-capture test for bug #95:
PureLangGraph._evaluate_edge_condition()in
src/cleveractors/langgraph/pure_graph.pyhas no case fortype: content_not_contains, so it falls through to the "unknown conditiontype" branch and always returns
True, violating the Actor ConfigurationStandard §5.4 (
content_not_containssemantics) and diverging from thecorrect implementations already present in
nodes.py,bridge.py, andreactive/stream_router.py.This issue delivers a failing-first Behave regression test that proves
the bug exists. The actual fix is delivered by issue #95 on a
bugfix/branch.
Current behavior
No test asserts that a pure-graph edge condition
content_not_containsevaluates based on actual message content. The defect can regress
undetected, and the accompanying sibling-edge exclusivity guarantee (only one
of a
content_contains/content_not_containspair should ever match) isunverified.
Expected behavior
A Behave scenario exists that:
one
content_contains: NO_FIXES, onecontent_not_contains: NO_FIXES.NO_FIXES.content_containstarget), not both.
AssertionError) while the bug is present, and passes once thefix lands.
Acceptance criteria
above and message content containing
NO_FIXES, exactly one next-nodeis expected; the assertion fails while the bug is present (both
next-nodes are currently returned).
@tdd_issue,@tdd_issue_95,@tdd_expected_fail.AssertionErroronly(
assert .../raise AssertionError(...)) — neverValueError,RuntimeError,OSError, or any other exception type.@tdd_expected_failpresent,nox -s unit_testsis green (thehook inverts the failing assertion).
tdd/m1-pure-graph-content-not-contains(samesuffix as the companion
bugfix/branch).Supporting information
docs/index.md§5.4, §5.4.1.cleveractors-contributingworkflow: theTDD hook only inverts
AssertionError; the three tags are mandatory; only@tdd_expected_failis removed by the bug-fix developer,@tdd_issueand@tdd_issue_95remain forever as regression guards.Subtasks
features/reproducing thecontent_not_containsdefect via the sibling-edge pattern, tagged@tdd_issue @tdd_issue_95 @tdd_expected_fail.signalling "bug still present" only via
AssertionError.@tdd_expected_fail, and thatnox -s unit_testsis green with thetag present.
nox -s coverage_report.nox(all default sessions), fix any errors.Definition of Done
This issue is complete when:
Metadata exactly.
master, reviewed (test quality, correcttagging,
AssertionErrorusage), and merged.content_not_contains, causing mutually-exclusive branch conditions to both fire