Spec gap: graph state scoping (per-execution vs. per-route) is never defined #8
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 milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/actors-spec#8
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?
Problem
§6.3 defines the graph state structure in detail but never specifies the lifetime and scope of a state instance:
GraphStatecreated for every message that enters the graph)?GraphStateinstance persists across all invocations of the graph)?The checkpointing feature (§6.6) implies state can persist between invocations (checkpoints survive process restarts). The loop detection guards (§6.8) reference execution counts and message fingerprints in ways that imply per-execution isolation. But both can't be simultaneously true without a clear model.
The concurrency rules (§12.3) make this even more critical: if two messages arrive at
__input__and both are routed to the same graph, do they share state or each receive an isolated state object? With shared state, the second message sees the first message's changes. With isolated state, checkpointing across invocations is meaningless.Impact on Library Implementation
This is one of the most fundamental implementation choices in the entire library. The state scoping model affects:
Decision Needed
Define the state lifecycle explicitly:
GraphStateis created for every call to the graph. Checkpoints are for crash recovery only and are not automatically loaded on the next invocation.GraphStateis shared across all invocations. Each new message is appended to the existing state.state_scope: per_execution | persistent) to choose the model.References