Repository navigation
fix: M3.1 dry-run blockers + close-out budget ruling (#632) - #633
Merged
Merged
Conversation
…ose-out budget ruling (#632) - B1: the one Mind writer never lets one bad op strand the rest. A re-apply of what main holds (a move already done, `## slug` sections active.md already has) is a skipped note; any other invalid or failing op is set aside in ledger/set_aside/ with its reason, named in the digest, and the remaining ops commit. A re-dispatched worker is told its claim may exist. - F1: close-outs are reaped in finish_shift and the late sweep (which now runs while one is out: merge counted, stage-2 row, late line, pilot amended); no close-out starts within 20 min of review-at. - F2: `.done` marks an issue `question: <url>` or `verdict: <url>`; only a question (or a park) is an @mention. - F3: refusals are one entry per (task, reason class) with count and first/last time; token reasons keyed by class; max-workers in one line. - F4: the plan excludes drafts Mind origin/main no longer holds in draft/ or has claimed in active.md (read from the local origin/main ref the writer keeps current; no extra fetch, no pull), unless this shift picked them; fails closed if the ref is unreadable. - F5: close-outs may pass token-budget but count and show in the digest; none starts at 1.5x the budget. AUTONOMY.md "Close-out budget — 2026-11-14", the human's ruling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ails toward the human - The Mind writer never sets aside a watcher op (record appends, pilot row, live line, stage-2 rows): it is held pending and retried, keeping the late sweep alive. Every note, set-aside, conflict and first hold goes to ledger/report.jsonl, into the digest, and after review-at into a late line and the correction comment — never only tick.log. - A claim already on main is skipped only for this shift's own re-dispatch whose earlier op it committed and main still matches; otherwise it is a conflict, set aside and reported. - `.done`: only an explicit `verdict:` (any case, colon or not) is not a push; a bare issue URL, `question:` or any other marker mentions. - The 1.5x close-out ceiling counts `_committed_tokens` and holds a start while usage is unavailable, as the spawn gate does. - F4: one `git fetch` of Mind per shift before the first plan, through the writer's fetch (AUTONOMY network-surface clause); an unreadable ref gets its own digest line. - F3: every shift-wide refusal reason (max-workers, max-sessions, token) is one digest line. - Stage-2 table-append carries a per-PR `unique` key, so a crash between queue and counters cannot duplicate the row. 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.
Summary
Closes #632. These are fixes for what the M3.1 dry run found, running the real watcher tick against fake
claudeandgh(Science/scratch/m3_1_prep/dryrun.md), plus the human's F5 ruling.finish_shiftandlate_sweep, so a late merge is counted with its stage-2 row. No close-out starts within 20 min of review-at. Stage-2 rows are unique per PR.verdict:suppresses a push. A question, a bare URL or a parked worker mentions the human.max-workersand token-budget refusals are summarised._committed_tokens, and show in the digest. None starts at 1.5× the budget, and unreadable usage holds a close-out. Recorded in AUTONOMY as "Close-out budget — 2026-11-14".Test plan
PYAUTO_MINDenvironment failure remains.m3_1_prep/dryrun_632/): after a kill, 23 Mind commits with 0 stuck (before: 78 failures and 31 stuck); a late close-out merge counted with its stage-2 row; refusal lines down from 134/241 to 13/16; E5 refused at 1.5×.Tier: glance. Merge mode: auto-merge on green, with the Heart dev-ship gate.
🤖 Generated with Claude Code