rehearsal-heal skeleton: rule 3's examples and the fast lane's test commands are consumer-specific #156

Closed
opened 2026-09-20 21:24:09 +00:00 by ben · 2 comments
Owner

Found while landing the fast lane on the remaining drive-enabled consumers (matou-app, coa, matou-website — all three re-rendered from the pinned skeleton this week). Two lines in prompts/rehearsal-heal-prompt.md still carry consumer-specific content, so they render into every consumer's live .sandcastle/rehearsal-heal-prompt.md as text that is wrong outside the repo it was written for. Both are small; neither is urgent.

1. Rule 3's examples name one consumer's mechanisms (prompts/rehearsal-heal-prompt.md:51-52)

   decision, not a heal (the front-door, the co-host-route, the
   secrets class). File it `confident:false` for a ruling.

This is already better than what it replaced — #134 deliberately swapped idss issue numbers for mechanism names, precisely so they could not misresolve against another consumer's tracker. But "the front-door" and "the co-host-route" are still idss's mechanisms. A matou-app or matou-website healer reading that list has nothing to match it against: matou-app's equivalent one-way doors are things like the KERI/witness posture, the credential-issuance path and the any-sync ACL shape.

Options, roughly in order of cost:

  • State the test rather than the examples: "a new default, a changed message at a trust moment, a route shape, a secrets shape, a security posture" — which the same paragraph already says, making the parenthetical redundant.
  • Or make the examples a rendered slot fed from the consumer's prompt-enrichments/, the way the targeted checks already are.

2. The fast lane hardcodes a toolchain (prompts/rehearsal-heal-prompt.md:72)

  own tests (`go test ./<package>` / `pnpm --filter <pkg> exec vitest run`).

This assumes a Go + pnpm/vitest monorepo. Matou/matou-app is Go + npm/Quasar (npm run test:script for Vitest, npm run test for Playwright), so a healer following the instruction literally runs a command that does not exist here. matou-website and coa have their own shapes.

The prompt already has the right pattern two steps down — "one of this repo's targeted checks named above", which comes from the consumer's enrichment. The fast-lane step should defer to that same enrichment instead of naming commands, e.g. "run the package's own tests using this repo's targeted checks named above".

Why it matters

The fast lane is the one place the healer is trusted to touch product code unreviewed. It is worth the prose being exactly right there: a healer that cannot run the named command either improvises a check or falls back to filing, which is the outcome the fast lane exists to avoid.

Refs #134 (the earlier de-numbering of these same lines), #51 (the guard that catches tracker numbers in skeletons), matou-app#577, coa#145, matou-website#12.

Found while landing the fast lane on the remaining drive-enabled consumers (matou-app, coa, matou-website — all three re-rendered from the pinned skeleton this week). Two lines in `prompts/rehearsal-heal-prompt.md` still carry consumer-specific content, so they render into every consumer's live `.sandcastle/rehearsal-heal-prompt.md` as text that is wrong outside the repo it was written for. Both are small; neither is urgent. ## 1. Rule 3's examples name one consumer's mechanisms (`prompts/rehearsal-heal-prompt.md:51-52`) ``` decision, not a heal (the front-door, the co-host-route, the secrets class). File it `confident:false` for a ruling. ``` This is already better than what it replaced — #134 deliberately swapped idss issue *numbers* for mechanism names, precisely so they could not misresolve against another consumer's tracker. But "the front-door" and "the co-host-route" are still **idss's** mechanisms. A matou-app or matou-website healer reading that list has nothing to match it against: matou-app's equivalent one-way doors are things like the KERI/witness posture, the credential-issuance path and the any-sync ACL shape. Options, roughly in order of cost: - State the *test* rather than the examples: "a new default, a changed message at a trust moment, a route shape, a secrets shape, a security posture" — which the same paragraph already says, making the parenthetical redundant. - Or make the examples a rendered slot fed from the consumer's `prompt-enrichments/`, the way the targeted checks already are. ## 2. The fast lane hardcodes a toolchain (`prompts/rehearsal-heal-prompt.md:72`) ``` own tests (`go test ./<package>` / `pnpm --filter <pkg> exec vitest run`). ``` This assumes a Go + pnpm/vitest monorepo. `Matou/matou-app` is Go + **npm/Quasar** (`npm run test:script` for Vitest, `npm run test` for Playwright), so a healer following the instruction literally runs a command that does not exist here. matou-website and coa have their own shapes. The prompt already has the right pattern two steps down — *"one of this repo's targeted checks named above"*, which comes from the consumer's enrichment. The fast-lane step should defer to that same enrichment instead of naming commands, e.g. "run the package's own tests using this repo's targeted checks named above". ## Why it matters The fast lane is the one place the healer is trusted to touch product code unreviewed. It is worth the prose being exactly right there: a healer that cannot run the named command either improvises a check or falls back to filing, which is the outcome the fast lane exists to avoid. Refs #134 (the earlier de-numbering of these same lines), #51 (the guard that catches tracker numbers in skeletons), matou-app#577, coa#145, matou-website#12.

This was generated by AI during triage.

Triage ruling — bug + ready-for-session

Category: bug (already applied — confirmed).

State: ready-for-session, not ready-for-agent. This is an edit to a prompt skeleton (prompts/rehearsal-heal-prompt.md). Per docs/agents/triage-labels.md, every edit to a prompt skeleton is ready-for-session work an interactive session executes but a swarm worker must not — list-ready-tasks.sh reads only ready-for-agent, so this stays invisible to workers by construction. Routing is dictated by policy here, not a judgement call.

Verification. Both claims hold against the current skeleton:

  • Rule 3's parenthetical still reads (the front-door, the co-host-route, the secrets class) — all Matou/idss mechanisms. #134 de-numbered these same lines (swapped tracker numbers for mechanism names); the mechanism names remain single-consumer.
  • The fast-lane build step still hardcodes `go test ./<package>` / `pnpm --filter <pkg> exec vitest run` — a Go + pnpm/vitest assumption that is wrong for matou-app (Go + npm/Quasar) and others.

Not already implemented (the offending text is live) and no .out-of-scope/ match (the KB is empty).

Ruled by agent under ADR 0174 — veto anytime

The ruling. Adopt the lower-cost option the filer lists first for each line:

  1. Rule 3 examples — drop the consumer-specific parenthetical and rely on the abstract test the same sentence already states (a new default, a changed message at a trust moment, a route shape, a secrets shape, a security posture). The parenthetical is redundant once the test is stated; removing it is cheaper and lower-risk than minting a new enrichment slot. If the session judges an example still earns its keep, it may instead route it through the existing {{ENRICH:rehearsal-heal-intro}} slot — but the default is removal.
  2. Fast-lane commands — replace the hardcoded toolchain with a deferral to the consumer's targeted checks the prompt already names two steps down (run the package's own tests using this repo's targeted checks named above), fed from the same {{ENRICH:rehearsal-heal-intro}} per-repo drive-facts slot.

Why this is a two-way door. Both are wording changes to a skeleton, fully revertible by a later render, and carry no security/trust/credential/spend content — nothing on the one-way-door list. Choosing the cheaper option over the enrichment-slot option is itself revertible: if a consumer later needs its own examples, the slot route is still open.

What proves it. The cutover-proof fixtures (onboarding/tests/onboard-lib-test.sh) must be re-proven — either byte-identical, or deliberately updated with the wording change explained, per CLAUDE.md's skeleton-change rule. The offline suite (for t in tests/*.sh onboarding/tests/*.sh; ...) must stay green, and #51's tracker-number guard must not fire.

Session Brief

Category: bug
Summary: Strip the two remaining consumer-specific lines from the rehearsal-heal skeleton so every consumer's rendered .sandcastle/rehearsal-heal-prompt.md reads correctly.

Current behavior:
The rehearsal-heal prompt skeleton renders into every consumer's live .sandcastle/rehearsal-heal-prompt.md. Two lines carry single-consumer content:

  • Rule 3's one-way-door examples name Matou/idss's mechanisms (front-door, co-host-route, secrets class) — a matou-app/matou-website healer has nothing to match them against.
  • The fast-lane build step names a Go + pnpm/vitest toolchain, so a healer on a Go + npm/Quasar repo (e.g. matou-app) is told to run a command that does not exist there — defeating the fast lane, whose whole point is that the healer can run the check and close hot-context rather than improvise or fall back to filing.

Desired behavior:
Neither line names a specific consumer's mechanisms or toolchain. Rule 3 leans on the abstract product-surface test already stated in the same sentence. The fast-lane build step defers to the consumer's targeted checks the prompt already names (fed from the per-repo enrichment slot), the same way the later heal/fast-lane steps do.

Key interfaces:

  • The rehearsal-heal prompt skeleton (prompts/rehearsal-heal-prompt.md) — a high-blast-radius harness file; no repo names, hosts, product paths, or single-consumer mechanism names may render from it (CLAUDE.md blast-radius rule).
  • The {{ENRICH:rehearsal-heal-intro}} slot — the per-repo drive-facts / targeted-checks slot the fast-lane step should defer to rather than hardcoding commands.

Acceptance criteria:

  • Rule 3's product-surface paragraph names no idss-specific mechanism; a reader on any consumer can apply it.
  • The fast-lane build step names no specific toolchain command; it defers to the repo's targeted checks named above (the enrichment slot).
  • onboarding/tests/onboard-lib-test.sh (the cutover fixtures) passes — either re-proven byte-identical or updated with the wording change explained in the commit.
  • The full offline suite passes: for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done.
  • STATUS.md updated in the same commit if this change alters project state (per CLAUDE.md); pure wording may skip it — state which in the commit.
  • A human bumps the .sandcastle/ self-copy pin separately (GOTCHAS 4); the skeleton edit lands in consumers at their next render/pin bump — out of scope for this ticket.

Out of scope:

  • Re-numbering or re-linking to any consumer's decision records.
  • The internal/ / app/src/ path names elsewhere in the fast-lane section (a separate consideration, not raised here).
  • Pushing to or re-rendering any consumer repo (pull-only topology, ADR 0001).

Why a session and not a swarm worker: prompt-skeleton edits are ready-for-session by policy; they are live text handed to every future worker and must be treated as design work, not a mechanical edit.

Refs #134, #51.

> *This was generated by AI during triage.* ## Triage ruling — `bug` + `ready-for-session` **Category:** `bug` (already applied — confirmed). **State: `ready-for-session`, not `ready-for-agent`.** This is an edit to a prompt skeleton (`prompts/rehearsal-heal-prompt.md`). Per `docs/agents/triage-labels.md`, every edit to a prompt skeleton is `ready-for-session` work an interactive session executes but a swarm worker must not — `list-ready-tasks.sh` reads only `ready-for-agent`, so this stays invisible to workers by construction. Routing is dictated by policy here, not a judgement call. **Verification.** Both claims hold against the current skeleton: - Rule 3's parenthetical still reads `(the front-door, the co-host-route, the secrets class)` — all `Matou/idss` mechanisms. #134 de-numbered these same lines (swapped tracker numbers for mechanism names); the mechanism names remain single-consumer. - The fast-lane build step still hardcodes `` `go test ./<package>` / `pnpm --filter <pkg> exec vitest run` `` — a Go + pnpm/vitest assumption that is wrong for `matou-app` (Go + npm/Quasar) and others. Not already implemented (the offending text is live) and no `.out-of-scope/` match (the KB is empty). ## Ruled by agent under ADR 0174 — veto anytime **The ruling.** Adopt the **lower-cost option** the filer lists first for each line: 1. **Rule 3 examples** — drop the consumer-specific parenthetical and rely on the abstract test the same sentence already states (`a new default, a changed message at a trust moment, a route shape, a secrets shape, a security posture`). The parenthetical is redundant once the test is stated; removing it is cheaper and lower-risk than minting a new enrichment slot. If the session judges an example still earns its keep, it may instead route it through the existing `{{ENRICH:rehearsal-heal-intro}}` slot — but the default is removal. 2. **Fast-lane commands** — replace the hardcoded toolchain with a deferral to the consumer's targeted checks the prompt already names two steps down (`run the package's own tests using this repo's targeted checks named above`), fed from the same `{{ENRICH:rehearsal-heal-intro}}` per-repo drive-facts slot. **Why this is a two-way door.** Both are wording changes to a skeleton, fully revertible by a later render, and carry no security/trust/credential/spend content — nothing on the one-way-door list. Choosing the cheaper option over the enrichment-slot option is itself revertible: if a consumer later needs its own examples, the slot route is still open. **What proves it.** The cutover-proof fixtures (`onboarding/tests/onboard-lib-test.sh`) must be re-proven — either byte-identical, or deliberately updated with the wording change explained, per CLAUDE.md's skeleton-change rule. The offline suite (`for t in tests/*.sh onboarding/tests/*.sh; ...`) must stay green, and `#51`'s tracker-number guard must not fire. ## Session Brief **Category:** bug **Summary:** Strip the two remaining consumer-specific lines from the `rehearsal-heal` skeleton so every consumer's rendered `.sandcastle/rehearsal-heal-prompt.md` reads correctly. **Current behavior:** The `rehearsal-heal` prompt skeleton renders into every consumer's live `.sandcastle/rehearsal-heal-prompt.md`. Two lines carry single-consumer content: - Rule 3's one-way-door examples name `Matou/idss`'s mechanisms (front-door, co-host-route, secrets class) — a `matou-app`/`matou-website` healer has nothing to match them against. - The fast-lane build step names a Go + pnpm/vitest toolchain, so a healer on a Go + npm/Quasar repo (e.g. `matou-app`) is told to run a command that does not exist there — defeating the fast lane, whose whole point is that the healer can run the check and close hot-context rather than improvise or fall back to filing. **Desired behavior:** Neither line names a specific consumer's mechanisms or toolchain. Rule 3 leans on the abstract product-surface test already stated in the same sentence. The fast-lane build step defers to the consumer's targeted checks the prompt already names (fed from the per-repo enrichment slot), the same way the later heal/fast-lane steps do. **Key interfaces:** - The `rehearsal-heal` prompt skeleton (`prompts/rehearsal-heal-prompt.md`) — a high-blast-radius harness file; no repo names, hosts, product paths, or single-consumer mechanism names may render from it (CLAUDE.md blast-radius rule). - The `{{ENRICH:rehearsal-heal-intro}}` slot — the per-repo drive-facts / targeted-checks slot the fast-lane step should defer to rather than hardcoding commands. **Acceptance criteria:** - [ ] Rule 3's product-surface paragraph names no `idss`-specific mechanism; a reader on any consumer can apply it. - [ ] The fast-lane build step names no specific toolchain command; it defers to the repo's targeted checks named above (the enrichment slot). - [ ] `onboarding/tests/onboard-lib-test.sh` (the cutover fixtures) passes — either re-proven byte-identical or updated with the wording change explained in the commit. - [ ] The full offline suite passes: `for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done`. - [ ] `STATUS.md` updated in the same commit if this change alters project state (per CLAUDE.md); pure wording may skip it — state which in the commit. - [ ] A human bumps the `.sandcastle/` self-copy pin separately (GOTCHAS 4); the skeleton edit lands in consumers at their next render/pin bump — out of scope for this ticket. **Out of scope:** - Re-numbering or re-linking to any consumer's decision records. - The `internal/` / `app/src/` path names elsewhere in the fast-lane section (a separate consideration, not raised here). - Pushing to or re-rendering any consumer repo (pull-only topology, ADR 0001). **Why a session and not a swarm worker:** prompt-skeleton edits are `ready-for-session` by policy; they are live text handed to every future worker and must be treated as design work, not a mechanical edit. Refs #134, #51.

Close-report — landed on main as 142c268165fb6a6fda90fbec06b7d3aea96645f9.

Both consumer-specific lines in prompts/rehearsal-heal-prompt.md are gone, each fixed by the ticket's cheapest option:

  1. Rule 3's examples — dropped the parenthetical (the front-door, the co-host-route, the secrets class). The same paragraph already states the test (a new default, a changed message at a trust moment, a route shape, a secrets shape, a security posture), so the idss-specific examples were redundant as well as wrong outside idss. This is the ticket's first listed option (state the test, not the examples).

  2. Fast-lane toolchain — replaced run the package's own tests (go test .//pnpm --filter exec vitest run) with run the package's own tests using this repo's targeted checks named above, deferring to the consumer's prompt-enrichments/rehearsal-heal-intro.md — exactly the pattern step 2/3 already use. idss's enrichment already names go test/vitest; dev-factory's names bash tests/<name>-test.sh; each consumer supplies its own. This is the ticket's proposed wording verbatim.

Blast-radius handled. The changed lines carry no render slots, so the two rendered cutover copies took the identical hunk in the same commit: .sandcastle/rehearsal-heal-prompt.md and onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md. STATUS.md updated in the same commit (same class as #148/#134).

Proof.

  • Red-before-green: with only the skeleton edited, onboarding/tests/onboard-lib-test.sh reported FAIL: render_prompts (idss): rehearsal-heal-prompt.md byte-identical and FAIL: render_prompts (dev-factory): ... — the cutover guard bites for both consumers.
  • After re-rendering both copies: onboard-lib: 235 passed, 0 failed.
  • Full offline suite (for t in tests/*.sh onboarding/tests/*.sh; do ...; done) — no failures, exit 0.

Ruled by agent under ADR 0174 — veto anytime. Two-way door: skeleton prose, revertible by a later commit, proven by the render-cutover check (render_prompts), no security/trust/design content — the change removes consumer-specific content and defers to the existing per-repo enrichment layer.

Refs #134 (the earlier de-numbering of these lines), #51 (the skeleton tracker-number guard). Consumers pick up the corrected skeleton at their next FACTORY_REF bump (GOTCHAS 4).

**Close-report — landed on `main` as `142c268165fb6a6fda90fbec06b7d3aea96645f9`.** Both consumer-specific lines in `prompts/rehearsal-heal-prompt.md` are gone, each fixed by the ticket's cheapest option: 1. **Rule 3's examples** — dropped the parenthetical `(the front-door, the co-host-route, the secrets class)`. The same paragraph already states the *test* (`a new default, a changed message at a trust moment, a route shape, a secrets shape, a security posture`), so the idss-specific examples were redundant as well as wrong outside idss. This is the ticket's first listed option (state the test, not the examples). 2. **Fast-lane toolchain** — replaced `run the package's own tests (`go test ./<package>` / `pnpm --filter <pkg> exec vitest run`)` with `run the package's own tests using this repo's targeted checks named above`, deferring to the consumer's `prompt-enrichments/rehearsal-heal-intro.md` — exactly the pattern step 2/3 already use. idss's enrichment already names `go test`/`vitest`; dev-factory's names `bash tests/<name>-test.sh`; each consumer supplies its own. This is the ticket's proposed wording verbatim. **Blast-radius handled.** The changed lines carry no render slots, so the two rendered cutover copies took the identical hunk in the same commit: `.sandcastle/rehearsal-heal-prompt.md` and `onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md`. `STATUS.md` updated in the same commit (same class as #148/#134). **Proof.** - Red-before-green: with only the skeleton edited, `onboarding/tests/onboard-lib-test.sh` reported `FAIL: render_prompts (idss): rehearsal-heal-prompt.md byte-identical` and `FAIL: render_prompts (dev-factory): ...` — the cutover guard bites for both consumers. - After re-rendering both copies: `onboard-lib: 235 passed, 0 failed`. - Full offline suite (`for t in tests/*.sh onboarding/tests/*.sh; do ...; done`) — **no failures, exit 0**. Ruled by agent under ADR 0174 — veto anytime. Two-way door: skeleton prose, revertible by a later commit, proven by the render-cutover check (`render_prompts`), no security/trust/design content — the change *removes* consumer-specific content and defers to the existing per-repo enrichment layer. Refs #134 (the earlier de-numbering of these lines), #51 (the skeleton tracker-number guard). Consumers pick up the corrected skeleton at their next `FACTORY_REF` bump (GOTCHAS 4).
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory#156
No description provided.