TDD: Pure-graph parallel dispatch runs all next-nodes concurrently whenever len > 1, ignoring each node's parallel flag #98
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
#97 Pure-graph parallel dispatch runs all next-nodes concurrently whenever len > 1, ignoring each node's
parallel flag
cleveragents/cleveractors-core
#109 test(langgraph): capture parallel dispatch node-flag regression (#97)
cleveragents/cleveractors-core
Reference
cleveragents/cleveractors-core#98
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 parallel dispatch node-flag regression (#97)tdd/m1-pure-graph-parallel-node-gateBackground and context
Companion TDD issue-capture test for bug #97: the three concurrent-dispatch
sites in
PureLangGraph(src/cleveractors/langgraph/pure_graph.py, lines1078, 1860, 1965) fire every candidate next-node concurrently via
asyncio.gather/asyncio.create_taskwheneverparallel_execution: true(the default) and there are 2+ candidates, without checking each node's own
parallelflag (NodeConfig.parallel/can_execute_parallel()). Thisviolates §6.7 and §12.3 of the Actor Configuration Standard.
This issue delivers a failing-first Behave regression test that proves
the bug exists. The actual fix is delivered by issue #97 on a
bugfix/branch.
Current behavior
No test asserts that non-
parallel-marked next-nodes execute strictlysequentially. The defect can regress undetected.
Expected behavior
A Behave scenario exists that:
unconditional edges to two agent/tool nodes, neither of which declares
parallel: true, withparallel_execution: trueat the graph level.shared state appended to a list).
execution completes (i.e., no overlap), proving sequential execution.
AssertionError) while the bug is present (both startconcurrently), and passes once the fix lands.
Acceptance criteria
parallel-markedsibling next-nodes and
parallel_execution: true, the assertion thatexecution is sequential fails while the bug is present.
@tdd_issue,@tdd_issue_97,@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-parallel-node-gate(samesuffix as the companion
bugfix/branch).Supporting information
docs/index.md§6.7, §12.3.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_97remain forever as regression guards.Subtasks
features/reproducing theconcurrent-dispatch-without-per-node-flag defect, tagged
@tdd_issue @tdd_issue_97 @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.parallelflag