Repository navigation
fix: warm-up shift findings — PR links, plain wording, daemon out of the watcher unit, queue retire (#634) - #635
Merged
Merged
Conversation
…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>
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
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.systemd-run --user --scopewhen the tick runs inside a unit, so theclaude --bgdaemon no longer lands inpyauto-orchestrator.service's cgroup. Without systemd-run, or when the user bus is unreachable, they launch as before. Nothing ever stops a daemon.worker_template.mdruns the tenant firewall before an organ-repo push. feat: unit-trend chart follow-ups from #338 PyAutoHeart#347 failed CI on this.queue.mdentry in the same ledger commit, through a new idempotentqueue-retireop that uses Mind's ownqueue_retire_text.lifecycle.pystays one op'sMindWriteError, 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
tests/test_batch_warmup_findings.py. Each fails on origin/main.test_grouped_organ_consumers, comes from the task bundle'sPYAUTO_ROOTand fails the same way on main.Science/scratch/m3_1_prep/warmup/render_634/).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