rehearsal-report prompt SKELETON names an idss-only spec path — renders into every consumer, resolves in one #49

Closed
opened 2026-08-24 02:15:00 +00:00 by matou-build-agent · 1 comment

Why

Found while ruling #47 (harness docs/ stay factory-only; a harness prompt
string may name a repo-relative path only if the harness itself puts it in the
consumer's tree). Applying that ruling to the ratchet turned up ONE outstanding
occurrence it cannot fix in the same commit.

prompts/rehearsal-report-prompt.md line 3 — a prompt skeleton, i.e. live
text rendered into every consumer's .sandcastle/rehearsal-report-prompt.md:

You are diagnosing a RED run of the #183 rehearsal drive (an unattended
Playwright journey against a one-droplet community — spec
docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md).

That spec lives in Matou/idss. docs/** is vendor-excluded, so the path
resolves in idss and nowhere else — including in this repo, whose
docs/superpowers/specs/ holds one unrelated file. Verified: the rendered
.sandcastle/rehearsal-report-prompt.md here carries the same dead path.

Same defect class as #33 (session prompt) and #42 (/triage prompt), one doc
family over — but it is NOT the same fix, which is why #47 did not fold it in.

Ask

Give it #33's treatment: take the whole sentence (or the paragraph) into a new
{{ENRICH:<slot>}} whose idss enrichment carries the current text verbatim,
so onboarding/tests/onboard-lib-test.sh's cutover fixture stays byte-identical
and this repo's own render loses only the dead path.

The rollout cost is why this is its own ticket: a new slot means every
consumer's render refuses until it authors the file
(onboarding/README.md's
slot list grows), so it needs its own pin-bump note, exactly as #33 did.

Note while you are in there, but do NOT let it block the path fix: the same
skeleton carries a product's drive identity in prose — #183, "one-droplet
community", "Playwright journey". By #33's own rule that is a lesser hazard (a
bare number names no path and cannot 404), but it is the last product prose in
the skeleton family and deserves its own decision.

Ratchet coupling

tests/judgement-call-prompts-test.sh carries this exact path as a NAMED
baseline (baseline_doc_path), so a NEW skeleton doc path reds immediately
while this known one stays visible. The baseline has a staleness check: when
this ticket lands, the test reds until the baseline line is deleted. That is
deliberate — delete it in the same commit.

ready-for-session: prompt-skeleton edit + a new enrichment slot every
consumer must author — protected, high-blast-radius, per CLAUDE.md.

## Why Found while ruling #47 (harness `docs/` stay factory-only; a harness prompt string may name a repo-relative path only if the harness itself puts it in the consumer's tree). Applying that ruling to the ratchet turned up ONE outstanding occurrence it cannot fix in the same commit. `prompts/rehearsal-report-prompt.md` line 3 — a **prompt skeleton**, i.e. live text rendered into every consumer's `.sandcastle/rehearsal-report-prompt.md`: > You are diagnosing a RED run of the #183 rehearsal drive (an unattended > Playwright journey against a one-droplet community — spec > `docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md`). That spec lives in `Matou/idss`. `docs/**` is vendor-excluded, so the path resolves in idss and **nowhere else** — including in this repo, whose `docs/superpowers/specs/` holds one unrelated file. Verified: the rendered `.sandcastle/rehearsal-report-prompt.md` here carries the same dead path. Same defect class as #33 (session prompt) and #42 (`/triage` prompt), one doc family over — but it is NOT the same fix, which is why #47 did not fold it in. ## Ask Give it #33's treatment: take the whole sentence (or the paragraph) into a new `{{ENRICH:<slot>}}` whose idss enrichment carries the current text **verbatim**, so `onboarding/tests/onboard-lib-test.sh`'s cutover fixture stays byte-identical and this repo's own render loses only the dead path. The rollout cost is why this is its own ticket: a new slot means **every consumer's render refuses until it authors the file** (`onboarding/README.md`'s slot list grows), so it needs its own pin-bump note, exactly as #33 did. Note while you are in there, but do NOT let it block the path fix: the same skeleton carries a product's drive identity in prose — `#183`, "one-droplet community", "Playwright journey". By #33's own rule that is a lesser hazard (a bare number names no path and cannot 404), but it is the last product prose in the skeleton family and deserves its own decision. ## Ratchet coupling `tests/judgement-call-prompts-test.sh` carries this exact path as a NAMED baseline (`baseline_doc_path`), so a NEW skeleton doc path reds immediately while this known one stays visible. The baseline has a staleness check: when this ticket lands, the test reds until the baseline line is deleted. That is deliberate — delete it in the same commit. `ready-for-session`: prompt-skeleton edit + a new enrichment slot every consumer must author — protected, high-blast-radius, per CLAUDE.md.
Author
Member

Close report — landed as 68faed9

Ruled by agent under ADR 0174 — veto anytime. Two-way door throughout: one
revertible commit, every claim proven by a test in the offline suite.

What landed

prompts/rehearsal-report-prompt.md's opening paragraph is now
{{ENRICH:rehearsal-drive-intro}} — the ninth slot a consumer authors.

Scope is the ruling. The ask allowed "the whole sentence (or the
paragraph)"; I took the paragraph, which also settles the note the ticket
deliberately did not let block. #183, "one-droplet community" and "Playwright
journey" are one product's drive identity, and at paragraph scope they leave the
skeleton with the path instead of needing their own decision. The split it
records: the factory owns the reporter's CONTRACT — which evidence to read,
the JSON output shape, do-not-modify / do-not-file — and the consumer owns
which drive is being diagnosed
, because that is per-repo by construction
(which drive, what shape, whose tracker number, whose design record). One repo's
reporter prompt cannot state it for another's.

The cutover proof is bought back, not spent (CLAUDE.md's rule for skeleton
edits). onboarding/tests/fixtures/idss-prompts/prompt-enrichments/rehearsal-drive-intro.md
carries the three original lines verbatim, so the idss cutover render stays
byte-identical — 161/161 in onboarding/tests/onboard-lib-test.sh. Proven
load-bearing rather than decorative: deleting the fixture reds five checks, with
render_prompts refusing rather than shipping a partial prompt.

FAIL: render_prompts (idss): exit 0
FAIL: render_prompts (idss): rehearsal-report-prompt.md is byte-identical to the reference copy
...
onboard-lib: 156 passed, 5 failed

This repo's own .sandcastle/rehearsal-report-prompt.md re-renders with exactly
its first paragraph changed — the other four skeletons report unchanged — and
now says what is true here: tier: opt-out in .sandcastle/E2E_TIER, a harness
repo with no product surface to drive, so it stands up no drive and keeps no
design record of one.

The ratchet coupling, honoured

tests/judgement-call-prompts-test.sh loses baseline_doc_path, its staleness
check and the rendered-scan exemption, in the same commit, as the ticket
asked. 31 → 30 checks: the one fewer is the staleness check, which existed
only to red when this landed. The skeleton scan is now unconditional — no
skeleton may name any doc path.

Red proven first, by deleting the baseline before touching the skeleton:

FAIL: a prompt skeleton names a doc path — docs/** is vendor-excluded, so it
404s in every consumer; ...: prompts/rehearsal-report-prompt.md:3:docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md).

Rollout — the cost that made this its own ticket

A new slot means every consumer's render-prompts refuses, naming the file,
until it authors prompt-enrichments/rehearsal-drive-intro.md.
onboarding/README.md's slot list grows 8 → 9 and carries the pin-bump note.

One thing worth stating precisely, because it bounds the blast radius: the pin
bump alone breaks nothing.
check-harness-drift.sh's stale-render advisory is
best-effort and simply goes quiet on a missing enrichment (never a failure), so
a consumer keeps its committed prompt until it chooses to re-render. Only
render-prompts refuses.

Root-only otherwise: a human re-vendor carries the skeleton and the test into
.sandcastle/ (GOTCHAS 4), and idss/matou-app author their file at their next
pin bump.

Proof

  • Full offline suite green, 67 files, run twice — once before pushing and again
    after rebasing onto #48/#50, which landed concurrently.
  • judgement-call-prompts-test: 30 checks passed
  • onboard-lib: 161 passed, 0 failed
  • vendor-manifest-coverage-test: PASS (every tracked path classified exactly once)

Follow-up filed

#51 (ready-for-session) — the rest of that same skeleton's product prose
(droplet-journal.txt, "helper + electron", the whole "Live droplet" ssh
paragraph, #414, the "pairing never flips" frontier), plus two literals in
rehearsal-report.sh itself that are #43's family outright: a hardcoded
matou-workstation in the evidence note (L365) and a rehearsal-183 signature
namespace (L362) sitting beside the already-overridable REHEARSAL_LABEL.
artifacts/legs.json / journey.json are explicitly out of that scope —
the harness writes and reads them, so naming them satisfies #47's rule.

No human residue: no credential, no posture change, no destruction, no spend.

## Close report — landed as `68faed9` **Ruled by agent under ADR 0174 — veto anytime.** Two-way door throughout: one revertible commit, every claim proven by a test in the offline suite. ### What landed `prompts/rehearsal-report-prompt.md`'s opening paragraph is now `{{ENRICH:rehearsal-drive-intro}}` — the ninth slot a consumer authors. **Scope is the ruling.** The ask allowed "the whole sentence (or the paragraph)"; I took the paragraph, which also settles the note the ticket deliberately did not let block. `#183`, "one-droplet community" and "Playwright journey" are one product's drive identity, and at paragraph scope they leave the skeleton *with* the path instead of needing their own decision. The split it records: **the factory owns the reporter's CONTRACT** — which evidence to read, the JSON output shape, do-not-modify / do-not-file — **and the consumer owns which drive is being diagnosed**, because that is per-repo by construction (which drive, what shape, whose tracker number, whose design record). One repo's reporter prompt cannot state it for another's. **The cutover proof is bought back, not spent** (CLAUDE.md's rule for skeleton edits). `onboarding/tests/fixtures/idss-prompts/prompt-enrichments/rehearsal-drive-intro.md` carries the three original lines verbatim, so the idss cutover render stays byte-identical — 161/161 in `onboarding/tests/onboard-lib-test.sh`. Proven load-bearing rather than decorative: deleting the fixture reds five checks, with `render_prompts` **refusing** rather than shipping a partial prompt. ``` FAIL: render_prompts (idss): exit 0 FAIL: render_prompts (idss): rehearsal-report-prompt.md is byte-identical to the reference copy ... onboard-lib: 156 passed, 5 failed ``` This repo's own `.sandcastle/rehearsal-report-prompt.md` re-renders with exactly its first paragraph changed — the other four skeletons report `unchanged` — and now says what is true here: `tier: opt-out` in `.sandcastle/E2E_TIER`, a harness repo with no product surface to drive, so it stands up no drive and keeps no design record of one. ### The ratchet coupling, honoured `tests/judgement-call-prompts-test.sh` loses `baseline_doc_path`, its staleness check **and** the rendered-scan exemption, in the same commit, as the ticket asked. 31 → 30 checks: the one fewer *is* the staleness check, which existed only to red when this landed. The skeleton scan is now unconditional — no skeleton may name **any** doc path. Red proven first, by deleting the baseline *before* touching the skeleton: ``` FAIL: a prompt skeleton names a doc path — docs/** is vendor-excluded, so it 404s in every consumer; ...: prompts/rehearsal-report-prompt.md:3:docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md). ``` ### Rollout — the cost that made this its own ticket A new slot means **every consumer's `render-prompts` refuses**, naming the file, until it authors `prompt-enrichments/rehearsal-drive-intro.md`. `onboarding/README.md`'s slot list grows 8 → 9 and carries the pin-bump note. One thing worth stating precisely, because it bounds the blast radius: **the pin bump alone breaks nothing.** `check-harness-drift.sh`'s stale-render advisory is best-effort and simply goes quiet on a missing enrichment (never a failure), so a consumer keeps its committed prompt until it chooses to re-render. Only `render-prompts` refuses. Root-only otherwise: a human re-vendor carries the skeleton and the test into `.sandcastle/` (GOTCHAS 4), and idss/matou-app author their file at their next pin bump. ### Proof - Full offline suite green, 67 files, run twice — once before pushing and again after rebasing onto #48/#50, which landed concurrently. - `judgement-call-prompts-test: 30 checks passed` - `onboard-lib: 161 passed, 0 failed` - `vendor-manifest-coverage-test: PASS (every tracked path classified exactly once)` ### Follow-up filed **#51** (`ready-for-session`) — the rest of that same skeleton's product prose (`droplet-journal.txt`, "helper + electron", the whole "Live droplet" ssh paragraph, `#414`, the "pairing never flips" frontier), plus two literals in `rehearsal-report.sh` itself that are #43's family outright: a hardcoded `matou-workstation` in the evidence note (L365) and a `rehearsal-183` signature namespace (L362) sitting beside the already-overridable `REHEARSAL_LABEL`. `artifacts/legs.json` / `journey.json` are explicitly **out** of that scope — the harness writes and reads them, so naming them satisfies #47's rule. No human residue: no credential, no posture change, no destruction, no spend.
matou-build-agent 2026-08-24 03:16:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#49
No description provided.