Graph route with an edge to a non-existent target node executes partially then exits silently instead of failing config validation #90
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.
Dependencies
No dependencies set.
Reference
cleveragents/cleveractors-core#90
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
fix(graph): reject edges targeting unknown nodes during validationbugfix/m1-graph-edge-target-validationBackground and context
The Actor Configuration Standard requires that a graph route be structurally
sane before it is allowed to run. Two normative requirements govern this:
configuration-load time, before any agent is instantiated or any message is
processed. Violations MUST be reported as
ConfigurationError."sourceandtargetMUST refer to existing nodes (afterSTART/ENDnormalization)."verified to reference existing nodes (after
START/ENDnormalization)."Today the implementation does not enforce this at load time. Instead, an edge
whose
targetnames a node that is not present in the graph'snodesmappingis accepted silently, and the defect only manifests at runtime.
Current behavior
Given a graph route containing an edge whose
target(orsource) references anode name that does not exist in
nodes(and is notstart/endafternormalization):
ConfigurationErroris raised.that precedes the dangling edge.
target node, it stops and exits silently, right before the transition —
returning whatever partial output had accumulated.
The result is a partially-executed graph and a silent, hard-to-diagnose failure
instead of an up-front, actionable validation error. This violates the
"fail before execution" guarantee of §11 and the edge-validation requirements of
§11.3.4 and §6.11.5.
Expected behavior
Edge target/source sanity MUST be validated at configuration-load time, before
any agent is instantiated or any message is processed:
targetorsourcenames a node absentfrom
nodes(afterSTART/END/start/endnormalization) MUST raise aConfigurationError.sourceandtarget) and thespecific unknown node name.
actor never executes partially.
execute exactly as before.
Acceptance criteria
targetis not a defined noderaises
ConfigurationErrorat load time (before agent instantiation /message processing).
sourceis not a defined noderaises
ConfigurationErrorat load time.source→target)and the unknown node name.
start/START/end/ENDare NOT flagged, since thesenodes are auto-injected and normalized per §6.2.1 and §6.4.
unchanged (no regression).
emitted.
Supporting information
docs/index.md— §11 preamble (load-time validation,ConfigurationError),§11.3.4 (graph edge source/target must reference existing nodes), §6.11.5
(edge validation), §6.4 (edge schema and
START/ENDnormalization),§6.2.1 (
start/endauto-injection).enforced, so a malformed graph is detected only by silent runtime truncation.
Subtasks
validation, run at load time (after
start/endauto-injection andSTART/ENDnormalization), raisingConfigurationErrorwith theoffending edge and unknown node name.
per the §12.1 lifecycle ordering.
target, invalidsource,start/endnormalization not being flagged, and a valid graph loadingcleanly. Add the failing-first regression scenario referenced by the
companion TDD issue.
malformed graph config with a
ConfigurationErrorand non-zero exit,performing no execution.
nox -s coverage_report.nox(all default sessions), fix any errors.Definition of Done
This issue is complete when:
Metadata exactly.
@tdd_issue/@tdd_issue_N) passes with@tdd_expected_failremoved.master, reviewed, and merged.Duplicate of ticket #89 closing.