Skip to content

feat(batch): shift workers run targeted smoke; full affected smoke in parallel before unattended merges - #685

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/shift-smoke-targeted
Nov 19, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/shift-smoke-targeted

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

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.md autonomous-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 and pyauto-heart smoke --targeted --changed-files … only; the PR body says which smoke ran.
  • closeout_template.md: new step 5 runs pyauto-heart smoke --affected-by <changed repos> --jobs 3 on the PR head (the worker's task root fast-forwarded to headRefOid; failure to reach the head refuses → /prm) and refuses on any failure; old steps 5–8 → 6–9; gate includes 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.md step (iii) sends shift / --auto workers 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)
  • Full suite 2418 passed, 1 skipped; skill line budget OK; tenant firewall OK; project discovery OK

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits November 19, 2026 11:11
…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>
@Jammy2211
Jammy2211 merged commit 2c3628a into main Nov 19, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/shift-smoke-targeted branch November 19, 2026 11:23
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.

1 participant