Skip to content

Merge authority follows declared Consequence tier (2026-10-02) - #452

Merged
Jammy2211 merged 1 commit into
mainfrom
ccr-ac1d5073-k5qrn8
Oct 3, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
ccr-ac1d5073-k5qrn8

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Doctrine change approved by the human on 2026-10-02. This PR is judge-tier: a human merges it with /prm, never an auto-merge. Companion: PyAutoLabs/PyAutoMind#467, which re-scopes the Shadow window and changes lifecycle.py. Merge this one first.

What changes

AUTONOMY.md gets a new dated section, "Merge authority follows Consequence — 2026-10-02":

Declared Consequence: Who merges
notify The shipping session waits for CI inside its own turn, merges on green, then runs the /prm close-out itself.
glance Same as notify, but only if the Witness: check passed. The human reads a post-merge summary. Each auto-merge appends a Shadow-window row: 20 clean rows confirm the tier, and any revert sends it back to a human /prm.
judge / no header Human /prm, as before. A tier the sizing faculty infers never counts.
  • Authorization: approving the plan at start_dev authorizes the merge, and the plan must state the tier and the merge mode. Under --auto or a batch, the launch or slot approval is the authorization. A multi-phase epic moves to its next phase without asking again. It stops at a judge-tier phase, a failure, Heart RED or new scope.
  • Never auto-merged: decision-taken PRs, ships under the Heart RED override or the corrective-PR exception, red, pending or conflicting CI, and SKIPPED test legs (skipped ≠ green). The library-first, sibling-branch and data-worktree guards from /prm apply word for word.
  • The wait: one background gh pr checks --watch, capped at about 60 minutes. No timers, wakeups or subscriptions, so end_at_deliverable stays as written. If the cap is reached, or the surface has no gh (mobile/web), the session checks CI once, merges only if it is already green, and otherwise hands back to the human for /prm.
  • The merge call: gh pr merge must be a bare Bash call with nothing chained to it. If it is denied, the session stops and reports.
  • Later step, not adopted now: GitHub native --auto merge.
  • Matching updates: the checkpoint table (row 4, which said "never automatic"), the levels table (merge/close said "human, always"), the "Merge stays a human act" sentence in decide-and-flag, the hard invariants and the consumers list.

Skills

  • ship_library (new step 6) and ship_workspace (new step 4b): after the PR opens, merge by declared tier and hand off to the /prm procedure. For a library PR whose workspace work is still pending, the session merges but runs no close-out.
  • prm: a new "Tiered merge" section (the details are in reference.md, to keep the mandatory-load size down). Skipped legs now count as not green. The bare-call rule is added. closeout.md now explains the in-turn wait. The shadow row is now glance only: an auto-merge records merged-unchanged and asks nothing, and the human amends the row afterwards if needed.
  • start_dev: the plan must include a "Tier + merge mode" line. Updated the --auto text to match.

policy/end_at_deliverable.md is deliberately untouched. The end-at-deliverable hook only matches the timer tools, not Bash.

Evidence

  • About 200 recently merged PRs across 8 repos had 0 reviews. Most merged less than an hour after opening, with 1–2 commits.
  • autonomy_log.md calibration: 120 merged-unchanged / 12 amended / 2 rejected / 2 reverted.
  • The notify Shadow window stood at 13/40, all clean. notify is granted early by this dated edit, and the window is re-scoped to glance.

Validation

  • pytest -q -n auto: 1132 passed, 10 failed. The 10 failures are all in tests/test_skill_install.py and fail the same way on unmodified main in this container (symlink/discovery environment). An earlier test_gh_surface failure caused by this branch is fixed.
  • git diff --check is clean. check_skill_line_counts.sh is report-only: prm is at 207 lines (budget 200) and start_dev was already over before this change.

Revert (one command)

git revert --no-edit b4043e7

🤖 Generated with Claude Code

https://claude.ai/code/session_01HGSSTEegN9Sbd2TJ6hj1XL

AUTONOMY.md gains the dated section "Merge authority follows Consequence —
2026-10-02": declared notify merges in-turn on green CI and runs the /prm
close-out; glance does the same only when its Witness passed and feeds the
re-scoped Shadow window (20 clean rows confirm, any revert demotes); judge or
no declared header stays a human /prm. Plan approval at start_dev (or the
--auto/batch launch) is the merge authorization; never auto-merged:
decision-taken, Heart RED-override/corrective ships, red/pending/conflicting
CI, SKIPPED legs. Checkpoint, levels and invariant rows updated to match.

ship_library/ship_workspace gain the post-PR-open tiered-merge step handing
off to the /prm procedure; prm documents the bounded in-turn wait (one
background gh pr checks --watch, ~60 min, no timers/wake-ups) and the
glance-tier shadow row; start_dev's plan states tier + merge mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HGSSTEegN9Sbd2TJ6hj1XL
@Jammy2211
Jammy2211 merged commit fc476b0 into main Oct 3, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the ccr-ac1d5073-k5qrn8 branch October 3, 2026 08:35
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.

2 participants