Skip to content

fix: M3.1 dry-run blockers + close-out budget ruling (#632) - #633

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/m31-blockers
Nov 14, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/m31-blockers

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Closes #632. These are fixes for what the M3.1 dry run found, running the real watcher tick against fake claude and gh (Science/scratch/m3_1_prep/dryrun.md), plus the human's F5 ruling.

  • B1: a re-dispatched worker no longer jams the one Mind writer.
    • A repeat is skipped only for this shift's own re-dispatch with matching content. Anything else is a conflict: set aside and flagged.
    • Critical watcher ops (the digest, pilot row, live line, stage-2 rows, late lines) are never set aside. They are held and retried, which keeps the late sweep alive.
    • Every skip, set-aside, conflict and hold reaches the digest, or a late line and correction after review-at.
  • F1: close-outs are reaped in finish_shift and late_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.
  • F2: only an explicit verdict: suppresses a push. A question, a bare URL or a parked worker mentions the human.
  • F3: refusals are kept as one entry per (task, reason class), and max-workers and token-budget refusals are summarised.
  • F4: the planner drops drafts that Mind origin/main no longer has, or has claimed. One read-only Mind fetch per shift goes through the writer's existing fetch (an AUTONOMY clause adds this, within the One Mind writer grant).
  • F5, human ruling 2026-11-14: close-outs may exceed the token budget but count against it, using _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

  • One test per item, including a real-git kill, re-dispatch and writer test. Brain suite: 2004 passed; the known PYAUTO_MIND environment failure remains.
  • Dry-run re-run (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×.
  • Independent review: FINDINGS (critical ops set aside quietly, a conflicting claim passing as a repeat, mentions failing toward silence, the ceiling counting measured spend only, F4 cross-clone staleness), then fixed, then CLEAN.

Tier: glance. Merge mode: auto-merge on green, with the Heart dev-ship gate.

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits November 14, 2026 10:41
…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>
@Jammy2211
Jammy2211 merged commit 2e6ef04 into main Nov 14, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/m31-blockers branch November 14, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: M3.1 dry-run blockers — re-dispatch writer jam, late close-out count, push test, refusal noise, stale re-pick, close-out budget

1 participant