Repository navigation
feat(batch): M3.3 slice 1 — readiness pass files gates as inbox rulings - #674
Merged
Merged
Conversation
…ulings pyauto-brain batch ready walks queue.md: an epic ledger (Status: campaign map, Epic:, no Phase:) resolves to its lowest open Phase: members across draft/ and active/, checked against Mind origin/main locally; a plain prompt resolves to itself; in-flight units are reported. Gates (looks-shipped and obsolete first, then claimed, unattended, human-required, blocked-by, no-lane, and no-next-phase for an epic) become one kind: ruling question-add op each, deduped by task and gate against origin. A judge unit gets a note. Dry run by default; --queue <slot> (existing slot, tick lock, refused after the digest); --apply writes via Mind's questions_edit into a non-main checkout; --fetch opt-in. finish_shift runs it offline before the digest, which ends 'The next shift needs N rulings from you.' Rulings are filed only when Mind origin/main knows the kind. hold_for, answered_since, inbox_line and the dashboard keep rulings apart from parked questions. Fable 5.2 review: round 1 FINDINGS (M1 stale tree, M2 ledger detection, M3 member not next, M4 --queue lock, L3, L4, L6), fixed; round 2 CLEAN. Closes #671 (slice 1; slice 2 follows the M3.2 shift) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… L1 ruling) The readiness pass skips a task and gate already ruled on Mind origin/main in any state, not only Open or Deferred; /questions reopen asks again. The digest's N still counts Open and Deferred rulings only. 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.
M3.3 slice 1 of PyAutoBrain#671. Merge PyAutoLabs/PyAutoMind#585 first, which adds the
rulinginbox kind.Summary
pyauto-brain batch readywalksqueue.md, resolves each entry to its next startable unit and files each gate it finds as arulingin the questions inbox. It runs at the end of every shift, so the next launch isbrief --new, read, go.Status: campaign map,Epic:, noPhase:) resolves to every open member at its lowest phase, acrossdraft/andactive/. It is checked against Mindorigin/mainlocally, with no fetch; if the working tree is behind, the entry gets a note and no ruling.looks-shippedandobsolete(the premise check, offline) come first and stop the rest.claimed(Mind's local origin claims),unattended,human-required,blocked-byandno-lane.no-next-phase(D3).judgeunit gets a note, not a ruling (D4).--queue <slot>needs an existing slot, takes the watcher's tick lock and refuses once the digest is posted.--applywrites through Mind's ownquestions_editinto a checkout that is not onmain, and never commits.--fetchis opt-in (D2).finish_shiftruns the pass offline before the digest and queues the ops in the shift's own ledger. The digest ends "The next shift needs N rulings from you.", where N is new rulings plus Open and Deferred ones, de-duplicated. A failure in the pass is named in the digest and never breaks it.origin/mainlists therulingkind. Otherwise the digest says they were not filed, so critical ops are never retried against an old Mind.hold_for,answered_since,inbox_lineand the dashboard keep rulings apart from parked questions. A ruling never holds or releases a parked task.skills/questions,skills/batchandAUTONOMY.md, plus a paragraph in the batchAGENTS.md.Witness
python -m pytest tests/test_batch_ready.py -q: 26 tests. The Witness case is a fixturequeue.mdwith one epic whose next phase has no prompt and one task on a claimed repo. It queues exactly twoquestion-addops (no-next-phaseandclaimed), and the replayedbatch digest --recordends "The next shift needs 2 rulings from you."invalid choice: 'ready'/No module named '_ready').questions_edit.pyskips in CI until PyAutoMind#585 merges, because CI reads Mind main.Evidence
--check-agents-surface: OK.unattended×2 andclaimed;no-next-phase;claimed,unattendedandhuman-required.Epic:in its header is graded as a prompt;🤖 Generated with Claude Code