Repository navigation
feat(batch): shift workers run targeted smoke; full affected smoke in parallel before unattended merges - #685
Merged
Merged
Conversation
…allel before an unattended merge (PyAutoHeart#352)
Plan C, approved by the human 2026-11-19 ("approve C").
- AUTONOMY.md leg 2 rewritten to the split, dated 2026-11-19: worker =
`pyauto-heart smoke --targeted --changed-files ...` (stated in the PR body);
before any unattended merge = `--affected-by <repo> --jobs 3` on the PR head;
PRs bound for the human's /prm = no automatic full sweep.
- worker_template.md: targeted smoke only at the ship step; a `notify` worker
that merges in-turn (R3) first runs the affected smoke itself.
- closeout_template.md: new step 5 brings the task worktree to the PR head
(ff-only, headRefOid check) and runs the affected parallel smoke; any
failure refuses -> /prm. Steps 5-8 renumbered 6-9; gate field names smoke.
- _orchestrator.smoke_command renders the close-out command.
- ship_library (iii) points shift/--auto workers at the targeted form.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s after the affected smoke (PyAutoHeart#352) The human's ruling 2026-11-19 (option "ii"): notify workers no longer merge in-turn; they end at PR-open and the close-out merges after the affected smoke. Replaces R3's in-turn path inside a shift; outside a shift unchanged. - worker_template.md: glance and notify both end at PR-open; the merge-slot take / gh pr merge / merge-slot release instructions and the worker-side affected smoke are removed; `.done` no longer offers `merged <url>`. - SIBLING_NOTE: drops the dead "never merge in-turn ahead of a sibling" line. - AUTONOMY.md: new section "Shift `notify` workers end at PR-open — 2026-11-19" after R3; leg 2 and the two R3 cross-references updated. - batch AGENTS.md: close-out runs the affected smoke; in-turn mentions reworded as legacy/backstop. - Watcher unchanged: _start_closeouts already closes out glance and notify. 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
The PyAutoBrain half of PyAutoLabs/PyAutoHeart#352 (plan C, approved 2026-11-19, "approve C"): a shift worker tests like a task done in a chat, and the full affected smoke moves to the close-out, run in parallel, only before an unattended merge. Merge after the PyAutoHeart PR — the close-out calls its new flags.
AUTONOMY.mdautonomous-ship gate leg 2 rewritten to the split (worker = targeted; close-out before an unattended merge = affected +--jobs 3; a PR bound for/prm= chat-level checks plus CI), dated 2026-11-19.worker_template.md: unit tests, the witness andpyauto-heart smoke --targeted --changed-files …only; the PR body says which smoke ran.closeout_template.md: new step 5 runspyauto-heart smoke --affected-by <changed repos> --jobs 3on the PR head (the worker's task root fast-forwarded toheadRefOid; failure to reach the head refuses → /prm) and refuses on any failure; old steps 5–8 → 6–9;gateincludes smoke. It runs after the tier, decision-taken, Heart, CI and merge-order checks, so a/prm-bound PR never reaches it._orchestrator.smoke_command()renders the close-out's command;ship_library.mdstep (iii) sends shift /--autoworkers to the targeted form.API Changes
None — internal workflow changes only.
Test Plan
tests/test_shift_smoke_split.py— 5 new tests, all fail on main (worker prompt asks for targeted smoke; close-out prompt carries the affected + parallel step; none for a/prm-bound PR)Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code