Repository navigation
feat: add supervised version 2 rounds to the ledger (P1) - #7
Merged
Merged
Conversation
`init --supervised` writes a version 2 round. Supervised assignments bind owned paths, resources and kind into the packet and refuse overlap with live assignments; a reconcile assignment follows terminal work. `review` records head-bound verdicts, and supervised merges require a ready review of the latest result. Supervised closure records the behavior delta. Ledger writers serialize on a per-round lock. Version 1 rounds are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 10, 2026
…ypassed The overlap check compares literal prefixes as strings, but only a leading "/" was rejected. With src/a already owned, ./src/a, src//a and src/x/../a were accepted as non-overlapping, and ../outside could point out of the repository. Owned patterns now need non-empty segments other than "." and "..", so one path has one spelling. SUPERVISION.md also states that version 1 rounds take the round lock, and that the lock covers every command except init. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 P1 of the autonomous Reconcile-loop plan. It targets the long-lived
autonomous-reconcile-loopbranch, notmain.scripts/round.pygains opt-in supervised (version 2) rounds:init --supervisedwritesversion: 2with emptysessionsandhaltsrecords. Without the flag, the manifest and packet stay byte-identical to version 1.assignrequires--owns GLOBand accepts--resource NAMEand--kind work|reconcile(--start REFfor reconcile). These are written into the packet, so the digest binds them.review ROUND A --head --verdict ready|needs-fix|blocked --evidence --revieweris bound to the latest result's exact head. A newer result supersedes it.resolve mergedneeds a ready review of the latest result at--head.closerequires--delta changed|none.flockon.agent-runs/ROUND/round.lock.Existing functions are touched only at hook points; all new code is in one tail block, to keep main → branch syncs small. New documents:
SUPERVISION.md(draft), plus an appended pointer line inSPEC.mdand a paragraph inAGENTS.md.Validation:
tests/test_round_v2.pyfailed before implementation. The other 2 are version 1 regression guards.python3 -m unittest discover -s testspasses (34 tests).git diff --checkis clean.Not included yet: sessions and halts (P2) and the supervisor itself (P3+). This branch was cut from
mainbefore #4–#6 merged; they will arrive by a main → branch merge.🤖 Generated with Claude Code