Skip to content

fix: warm-up shift findings — PR links, plain wording, daemon out of the watcher unit, queue retire (#634) - #635

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/warmup-findings
Nov 14, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/warmup-findings

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Closes #634. These are fixes from the first live shift with real workers (2026-11-14-pm, PyAutoLabs/PyAutoMind#569), made before tonight's M3.1 shifts.

  • Links: a digest or status task title links to its PR, else the work repo's issue, else plain text. The digest keeps a Mind prompt link pinned to a commit, so it cannot 404.
  • Daemon: workers and close-outs launch through systemd-run --user --scope when the tick runs inside a unit, so the claude --bg daemon no longer lands in pyauto-orchestrator.service's cgroup. Without systemd-run, or when the user bus is unreachable, they launch as before. Nothing ever stops a daemon.
  • Wording: each task opens with its outcome in plain words ("Merged", "CI failed — needs you", "Still running"), with the detail on a smaller second line. The validator reads old and new records.
  • Firewall: worker_template.md runs the tenant firewall before an organ-repo push. feat: unit-trend chart follow-ups from #338 PyAutoHeart#347 failed CI on this.
  • Queue: an unattended close-out retires the shipped task's queue.md entry in the same ledger commit, through a new idempotent queue-retire op that uses Mind's own queue_retire_text.
  • N1: a worker still out at review-at reads "still running at review time", not "Not started".
  • Review follow-ups (lead): any failure inside Mind's lifecycle.py stays one op's MindWriteError, never a tick crash, and the Retired footer is found by its heading line, not by header prose.

Deferred, to be filed as a follow-up: remove the worktree after an unattended merge. Also, in-turn notify merges skip the queue retirement.

Witness

  • 10 new offline tests in tests/test_batch_warmup_findings.py. Each fails on origin/main.
  • Brain suite: 2014 passed, 1 skipped, 1 failed. The failure, test_grouped_organ_consumers, comes from the task bundle's PYAUTO_ROOT and fails the same way on main.
  • Tenant firewall: OK. Skill line counts: OK.
  • The real 2026-11-14-pm digest was re-rendered offline, before and after (Science/scratch/m3_1_prep/warmup/render_634/).
  • Heart's dev-ship check for PyAutoBrain: GREEN.

Review

An independent Opus review returned CLEAN with 5 follow-ups. The lead fixed #1 and #2. The others are cosmetic or affect only newer systemd versions, and are filed as follow-ups.

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits November 14, 2026 17:02
…mon, organ firewall, queue retire (#634)

From the first live shift with real workers (2026-11-14-pm, PyAutoMind#569).

1. Links. A task title links to its PR, else the work repo's issue (from
   its .done, else its active.md claim on Mind origin/main), else plain
   text. The Mind prompt link moved to the digest's detail line; it follows
   the prompt's moves (draft -> active -> complete, renames included) in
   local git and is pinned to a sha, so it never 404s. The status comment
   carries no Mind link (a sha link would force an edit per Mind commit).
2. Daemon. Inside a systemd unit (INVOCATION_ID) with systemd-run on PATH,
   worker and close-out launches run under `systemd-run --user --scope`, so
   the transient `claude daemon run` and its bg-pty-host spares live in
   their own run-*.scope, not pyauto-orchestrator.service's cgroup.
   Plain launch elsewhere, and when systemd-run cannot reach the user bus.
   Nothing stops a daemon; KillMode=process stays.
3. Wording. Each task in the status comment and the digest reads outcome
   first (Merged / CI failed — needs you / Still running ...) with the
   title; slug, tier, size, repos, exact state and why: go on a smaller
   second line. validate reads both the new and the old record formats.
4. Firewall. worker_template.md: run the tenant firewall from the task
   root before any push to PyAutoBrain/PyAutoHeart/PyAutoHands.
5. Queue. New `queue-retire` ledger op applies Mind's own
   lifecycle.queue_retire_text in the writer's temp worktree; the
   close-out template queues it with the complete record and the watcher
   queues it again on a merged reap (silent when nothing is live).
N1. A worker still holding its lease at review-at is digested as "still
   running at review time — the late sweep will report it", not
   "not started".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ailure; anchor the Retired heading

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 7be8e94 into main Nov 14, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/warmup-findings branch November 14, 2026 17:18
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: warm-up shift findings — digest links, plain wording, leftover claude daemon, organ firewall pre-push

1 participant