Repository navigation
feat: record agent sessions and operator halts in supervised rounds (P2) - #8
Merged
Merged
Conversation
`session start|ack|end` records each launched agent before launch, with role rules that refuse double dispatch and out-of-order work; `review` accepts a finished reviewer session. `halt` and `clear-halt` record conditions that need an operator; uncleared halts block new sessions and closure. Live sessions block cancellation and closure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TKontu
changed the base branch from
auto/p1-ledger-v2
to
autonomous-reconcile-loop
October 10, 2026 20:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is phase P2 of the autonomous Reconcile-loop plan. It is stacked on #7: after #7 merges, retarget this PR to
autonomous-reconcile-loop.New version 2 ledger commands in
scripts/round.py:session start ROUND --role planner|executor|reviewer|merger …{"session": "S<n>"}.assigned, or aneeds-fixreview (a repair)readyreview of that headsession ack --pidmoves a session from launching to running.session end --state exited|timed-out|killed|lostrecords the exit code, cost and the imported record (the record path must exist).review --session Sis an alternative to--reviewer. It accepts only a finished reviewer session for the same assignment and head.haltandclear-haltkeep a durable record with code, detail, action needed and an optional inventory JSON. Clearing needs evidence.SUPERVISION.mddocuments sessions and halts.Validation:
python3 -m unittest discover -s testspasses (41 tests), also with ResourceWarnings promoted to errors.git diff --checkis clean.🤖 Generated with Claude Code