Skip to content

prm: make the dashboard reconcile + regen part of the close-out - #285

Merged
Jammy2211 merged 2 commits into
mainfrom
claude/automind-dashboard-incomplete-tasks-8d9h20
Aug 25, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
claude/automind-dashboard-incomplete-tasks-8d9h20

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

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:

intake dashboard --check   → "dashboard.md + dashboard.html are current"
intake reconcile           → 24 suspect(s) of 138 scanned

dashboard_refresh.yml self-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 /prm is the door that owns close-out.

What changes

Close-out step 5 gains a Mind sub-step 4, leave the page true:

  1. Sweep the slug and prompt filename across draft/, active/, epics.md and the registry files — repoint what the merge falsified (a blocked-by: now unblocked, an epic phase now done, a superseded-by: chain that now ends in a record).
  2. Reconcile the neighbourhood — 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 /prm has 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 a git rm; one that merely shares identifiers gets a ledger line and the prefix to re-run.
  3. Regenerate — unconditionally. intake --apply dashboard, then intake 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 check compares active.md slugs against complete/ 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 fresh draft/ 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 record changes 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 HEAD must name dashboard.md and dashboard.html beside the record.

Verified rather than asserted: re-rendering an already-current tree is a no-op — both files are rewritten byte-identically and git status stays clean. There is no judgement to make about whether it is needed.

Why this is a skill step and not a lifecycle.py record step

complete/index.md and the active.md prune were both folded into record for 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 why dashboard_refresh.yml checks out both repos. reference.md records 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 in prm.md and reference.md.

Checks run by hand: install.sh --check-agents-surface clean; both dashboard verbs verified through the pyauto-brain router and the direct _intake.py path.

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.

claude added 2 commits August 25, 2026 21:57
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
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.

2 participants