Repository navigation
prm: make the dashboard reconcile + regen part of the close-out - #285
Merged
Jammy2211 merged 2 commits intoAug 25, 2026
Merged
Conversation
Shipped and half-shipped tasks keep showing up on the PyAutoMind dashboard as pickable backlog. The render was never the problem: `intake dashboard --check` on 2026-08-25 reported the page current, while `intake reconcile` over the same tree ranked 24 suspects of 138 scanned. dashboard_refresh.yml self-heals a stale *render* and nothing else — a prompt the merge finished and nobody retired renders faithfully, and no workflow can tell the difference. So the gap is at close-out, and /prm is the door that owns close-out. Step 5 gains a Mind sub-step 4, "leave the page true": - sweep the slug and prompt filename across draft/, active/, epics.md and the registry files, repointing what the merge falsified (a blocked-by now unblocked, an epic phase now done, a superseded-by chain that now ends in a record); - reconcile the neighbourhood with `intake reconcile draft/<work-type>/<target>` — folder-scoped, since both runs are fast but the bare one hands back 24 suspects spanning work this task never touched, which /prm has no proof for and cannot adjudicate without a second question. Proof retires, resemblance reports: a sibling whose issue this PR closed or whose scope sits inside the record gets its own record and a git rm; one that merely looks alike gets a ledger line and the /intake reconcile prefix; - regenerate, and commit the pages *with* the record. The workflow fallback is strictly worse — its heal commit is made with GITHUB_TOKEN, so it triggers no other workflow and has to dispatch pages_dashboard.yml itself. Sub-step 3 also gains the half-shipped rule: record the scope you merged, not the scope you filed. `lifecycle.py check` compares active.md slugs against complete/ records and knows nothing about how much of a prompt's scope the merge covered, so a campaign prompt recorded whole on a phase-1 merge is drift no guard catches. Record what shipped; re-file the remainder as a fresh draft/ prompt pointing back at the record. Why this is a skill step rather than a `lifecycle.py record` step (reference.md says so where the question arises): complete/index.md and the active.md prune were both folded into `record` for exactly this "easy to forget" reason, but the dashboard cannot follow — the state is Mind's and the renderer is Brain's, and a Mind script importing a Brain module inverts the organ boundary. That is why dashboard_refresh.yml checks out both repos. Worktree/branches/ledger renumber to 5/6/7 in prm.md and reference.md. The matching PyAutoMind doc correction ships on the same branch there. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011QFJaycmUfaEhR4XoZajy9
The regen landed as leg 3 of a sub-step whose first two legs are judgement calls, which reads as "do this if the sweep found something". It is the opposite: `lifecycle.py record` changes what the page shows all by itself, so the ordinary close-out — clean sweep, no sibling retired — is exactly the one that still has to re-render. - Leg 3 is now stated as a command with no condition, ahead of the three legs, with both verbs spelled out (`intake --apply dashboard`, then `intake dashboard --check` for the confirmation). - Verified and documented that re-rendering an already-current tree is a no-op: `--apply` rewrites both files byte-identically and `git status` stays clean. So there is no judgement to make about whether it is needed — the cheap mistake is the redundant render, not the stale page. - Added the leg's own check: `git show --stat HEAD` must name dashboard.md and dashboard.html beside the record, or leg 3 did not happen. The ledger's dashboard line is a claim that has to be backed. - Closed the loophole in Notes. "A task with no issue/prompt/worktree skips those sub-steps" does not extend to the regen — that is skippable only where the close-out wrote nothing to Mind at all. - reference.md notes both invocation paths (direct `_intake.py` and the `pyauto-brain` router), since the environment decides which resolves. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011QFJaycmUfaEhR4XoZajy9
This was referenced Aug 25, 2026
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.
Shipped and half-shipped tasks keep appearing on the PyAutoMind dashboard as pickable backlog. The render was never the cause — measured on the same tree, 2026-08-25:
dashboard_refresh.ymlself-heals a stale render and nothing else. A prompt that a merge finished and nobody retired renders faithfully, and no workflow can tell the difference. So the gap is at close-out — and/prmis the door that owns close-out.What changes
Close-out step 5 gains a Mind sub-step 4, leave the page true:
draft/,active/,epics.mdand the registry files — repoint what the merge falsified (ablocked-by:now unblocked, an epic phase now done, asuperseded-by:chain that now ends in a record).intake reconcile draft/<work-type>/<target>, folder-scoped. Not for speed (~5s bare, <1s scoped) but for adjudication: the bare run returns 24 suspects spanning work the task never touched, which/prmhas no proof for and cannot resolve without a second question. The rule is proof retires, resemblance reports — a sibling whose issue this PR closed, or whose scope sits inside the record just written, gets its own record and agit rm; one that merely shares identifiers gets a ledger line and the prefix to re-run.intake --apply dashboard, thenintake dashboard --check, committed in the same commit as the record.Sub-step 3 also gains the half-shipped rule: record the scope you merged, not the scope you filed.
lifecycle.py checkcomparesactive.mdslugs againstcomplete/records and knows nothing about how much of a prompt's scope a merge covered, so a campaign prompt recorded whole on a phase-1 merge is drift no guard catches. Record what shipped; re-file the remainder as a freshdraft/prompt pointing back at the record.Why leg 3 is unconditional
It first landed as the third bullet of a step whose first two bullets are judgement calls, which reads as "regenerate if the sweep found something." That is backwards —
lifecycle.py recordchanges what the page shows by itself, so the ordinary close-out (clean sweep, nothing retired) is exactly the one that still has to re-render. It is now stated ahead of the three legs, with the verbs spelled out, plus a check the leg can fail:git show --stat HEADmust namedashboard.mdanddashboard.htmlbeside the record.Verified rather than asserted: re-rendering an already-current tree is a no-op — both files are rewritten byte-identically and
git statusstays clean. There is no judgement to make about whether it is needed.Why this is a skill step and not a
lifecycle.py recordstepcomplete/index.mdand theactive.mdprune were both folded intorecordfor exactly this "easy to forget" reason. The dashboard cannot follow: the state is Mind's, the renderer is Brain's (agents/conductors/intake/_intake.py), and a Mind script importing a Brain module inverts the organ boundary — which is whydashboard_refresh.ymlchecks out both repos.reference.mdrecords this where the question arises.Scope
Documentation only — skill bodies and the two surfaces that describe
/prm. No agent, script, or workflow behaviour changes. Worktree/branches/ledger renumber to 5/6/7 inprm.mdandreference.md.Checks run by hand:
install.sh --check-agents-surfaceclean; both dashboard verbs verified through thepyauto-brainrouter and the direct_intake.pypath.The matching PyAutoMind doc correction is PyAutoLabs/PyAutoMind#325 — independent, no merge-order constraint.
This does not retroactively clear the 24 existing suspects; it stops new ones accumulating.