Skip to content

feat: merge actor and random audit — AUTONOMY amendment + watcher actor (#606) - #607

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/merge-actor-audit
Nov 12, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/merge-actor-audit

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Programme task M1.4, the companion to the PyAutoMind PR. Closes #606.

  • AUTONOMY.md gets a new dated section, "Merge actor and random audit — 2026-11-12". It records the human's three decisions verbatim:

    1. The merge-actor classes, and a count that leaves out human-/prm and in-turn-human-commanded.
    2. Audits are a seeded 1-in-5 random sample, run within a week.
    3. A read by human column is recorded and does not gate the count.

    Its revert condition: if an audit finds a tool-written actor wrong, the actor rule is suspended until the writer is fixed. The glance ruling and the stage-2 adversary rules are untouched. Around line 514 the call now shows --actor.

  • The watcher's stage2_row (agents/conductors/batch/_orchestrator.py) writes unattended-watcher (mergedBy …) and the new column.

  • skills/prm/closeout.md and reference.md: --actor is required, with which class to pass.

Test plan

  • Brain pytest tests/: 1662 passed, 1 skipped. The known test_grouped_organ_consumers failure is environmental (PYAUTO_MIND exported by activate.sh) and also fails on the base.
  • test_orchestrator_closeout: 21 passed, including the actor label.
  • Skill line counts OK. Tenant firewall OK.
  • Independent review: FINDINGS, then fixed, then CLEAN. Two follow-ups are filed in draft/bug/pyautobrain/shift_watcher_followups_after_state_gaps.md (items 10 and 11): mergedBy cannot tell who merged while every merge uses one token, and the watcher's no-file merge label.

Heart RED override (development only)

Authorization from the live human in the programme session, 2026-11-12: "Override + merge on green". This authorizes the development-only RED override for PyAutoBrain#606 and gives the merge command (Mind PR first, then the Brain PR), conditional on every required check being green within the turn.

Heart verdict RED (pyauto-heart readiness, ts 2026-11-12T18:29:55Z). The current RED reasons, verbatim: "PyAutoNerves: 2 commit(s) behind origin"; "PyAutoArray: 2 commit(s) behind origin"; "PyAutoGalaxy: 4 commit(s) behind origin"; "PyAutoLens: on branch feature/extra-galaxies-review (not main)"; "PyAutoLens: 2 uncommitted source change(s)"; "PyAutoCTI: 2 commit(s) behind origin"; "install verification FAILED (testpypi; checks F)"; "release validation FAILED (stage integrate)"

None of these is in PyAutoBrain or PyAutoMind. Branch gates passed: tests, review CLEAN, smoke not applicable. This PR does not fix Heart, and Heart stays RED for release.

Tier: glance. Merge mode: auto-merge on green if the Witness passes, with a post-merge summary. A RED override additionally needs the human's merge command, which was given in the same turn.

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits November 12, 2026 18:28
Programme M1.4, finding FLOW-2. Records the human's three decisions
("All three as recommended") as the dated AUTONOMY.md section "Merge actor
and random audit — 2026-11-12", with a revert condition.

- The watcher's stage-2 row now ends in `merge actor` and `read by human`:
  `unattended-watcher (mergedBy <login>)` from the gh state it already reads,
  and an empty read-by-human cell.
- prm close-out docs pass `--actor <class>` on `lifecycle.py close` and name
  the two new columns; audits draw `lifecycle.py audit-sample --seed <n>`.

Pairs with PyAutoMind feature/merge-actor-audit (lifecycle.py + ledger).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pairs with the Mind change that makes `close --tier glance` / `shadow-row`
refuse without --actor. The prm close-out docs and AUTONOMY.md no longer show
the flag as optional, and each says which class to pass: human-typed /prm ->
human-/prm; in-turn merge on the human's explicit merge command ->
in-turn-human-commanded; in-turn tiered merge with no human command ->
in-turn-autonomous.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 68e263a into main Nov 12, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/merge-actor-audit branch November 12, 2026 18:51
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.

feat: merge-actor column, count rule in code, seeded audit sample (M1.4)

1 participant