the rehearsal HEAL skeleton is still whole-cloth product prose — the last {{ENRICH}} slot #49/#51 did not reach #55

Closed
opened 2026-08-24 04:03:50 +00:00 by matou-build-agent · 2 comments

Why

Split out of #53 (which ruled the vocabulary — CONTEXT.md now defines Box —
and renamed the live door, the TUI panel and the worker-class table). #53's
ratchet, tests/box-vocabulary-test.sh, scans the whole vendored surface for one
provider's box-shape product name and left exactly ONE occurrence standing, as a
NAMED baseline with a staleness check:

baseline='prompts/rehearsal-heal-prompt.md'

It is deliberately not a word swap, because the word is not the problem there.
That skeleton — live text rendered into every consumer's
.sandcastle/rehearsal-heal-prompt.md — is whole-cloth product prose, the same
defect family #49 and #51 closed for its sibling, the REPORTER skeleton:

  • line 4: the evidence list is one product's run dir — founding-state.log,
    droplet-journal.txt, error-context.md, "playwright output", "captured flake
    under state/clan-config". A consumer whose drive harvests anything else is
    told to read files it does not have.
  • line 19: the verifiable-here bar names one product's toolchain verbatim — "the
    affected go test ./<package>", "pnpm --filter app exec vitest run <file>".
    A repo with neither is given no bar it can meet.
  • line 21: "infra state outside this checkout (DNS, droplets, secrets)".
  • line 46: "the drive re-fires straight into it and burns a paid droplet" — the
    cost argument is real and factory-owned; the box shape in it is not.

Ask

Take #51's ruling and apply it here: the factory owns the healer's CONTRACT (the
three self-fix conditions, the never-self-fix list, the rails, the JSON answer
shape, the residual hand-back), and the consumer owns what its drive is made
of
— its evidence files, its toolchain's targeted check, its box.

Mechanically that is #51's shape, so the same two questions get asked and the
same cost applies:

  • one enrichment slot or two? The prose sits in three separated places
    (evidence list, targeted-check examples, the two box mentions), so the same
    "an {{ENRICH:<slot>}} owns whole lines" constraint that ruled #51 EXTEND
    applies — and note the reporter's {{ENRICH:rehearsal-drive-intro}} already
    carries a consumer's evidence-file list, so re-using it (rather than minting a
    second slot naming the same files twice) is worth ruling on explicitly.
  • whichever way it goes, GOTCHAS 18 applies: widening a slot is a QUIET rollout
    event, minting one is a LOUD fleet-wide render refusal. State the cost, extend
    the idss cutover fixture in onboarding/tests/fixtures/idss-prompts/ verbatim
    in the same commit, and carry the pin-bump note in onboarding/README.md's
    slot list.

Two-way door (text only). When it lands, DELETE the baseline from
tests/box-vocabulary-test.sh — its staleness check reds the moment this
skeleton stops naming a provider's box, so it cannot outlive this ticket.

## Why Split out of #53 (which ruled the vocabulary — `CONTEXT.md` now defines **Box** — and renamed the live door, the TUI panel and the worker-class table). #53's ratchet, `tests/box-vocabulary-test.sh`, scans the whole vendored surface for one provider's box-shape product name and left exactly ONE occurrence standing, as a NAMED baseline with a staleness check: baseline='prompts/rehearsal-heal-prompt.md' It is deliberately not a word swap, because the word is not the problem there. That skeleton — live text rendered into every consumer's `.sandcastle/rehearsal-heal-prompt.md` — is whole-cloth product prose, the same defect family #49 and #51 closed for its sibling, the REPORTER skeleton: - line 4: the evidence list is one product's run dir — `founding-state.log`, `droplet-journal.txt`, `error-context.md`, "playwright output", "captured flake under `state/clan-config`". A consumer whose drive harvests anything else is told to read files it does not have. - line 19: the verifiable-here bar names one product's toolchain verbatim — "the affected `go test ./<package>`", "`pnpm --filter app exec vitest run <file>`". A repo with neither is given no bar it can meet. - line 21: "infra state outside this checkout (DNS, droplets, secrets)". - line 46: "the drive re-fires straight into it and burns a paid droplet" — the cost argument is real and factory-owned; the box shape in it is not. ## Ask Take #51's ruling and apply it here: the factory owns the healer's CONTRACT (the three self-fix conditions, the never-self-fix list, the rails, the JSON answer shape, the `residual` hand-back), and the consumer owns *what its drive is made of* — its evidence files, its toolchain's targeted check, its box. Mechanically that is #51's shape, so the same two questions get asked and the same cost applies: - one enrichment slot or two? The prose sits in three separated places (evidence list, targeted-check examples, the two box mentions), so the same "an `{{ENRICH:<slot>}}` owns whole lines" constraint that ruled #51 EXTEND applies — and note the reporter's `{{ENRICH:rehearsal-drive-intro}}` already carries a consumer's evidence-file list, so re-using it (rather than minting a second slot naming the same files twice) is worth ruling on explicitly. - whichever way it goes, GOTCHAS 18 applies: widening a slot is a QUIET rollout event, minting one is a LOUD fleet-wide render refusal. State the cost, extend the idss cutover fixture in `onboarding/tests/fixtures/idss-prompts/` verbatim in the same commit, and carry the pin-bump note in `onboarding/README.md`'s slot list. Two-way door (text only). When it lands, DELETE the baseline from `tests/box-vocabulary-test.sh` — its staleness check reds the moment this skeleton stops naming a provider's box, so it cannot outlive this ticket.
Author
Member

Blocked — needs a session's standing (ready-for-session)

Split off ready-for-agent. This is the exact prompt-skeleton design work its
siblings #49 and #51 were, and both landed as session prompts: commits
that edited the protected .sandcastle/ self-copy in the same commit
. A
sandcastle agent cannot: .sandcastle/ is fenced (the protected-paths tripwire
rolls back any change there and reds the run), so an agent cannot keep the
offline suite green through this change. Concretely, splicing the slot into the
heal skeleton reds two cutover checks in onboarding/tests/onboard-lib-test.sh:

FAIL: render_prompts (idss): rehearsal-heal-prompt.md is byte-identical to the reference copy
FAIL: render_prompts (dev-factory): rehearsal-heal-prompt.md is byte-identical to the committed .sandcastle copy
  • The idss red is fixable by an agent (the fixture under
    onboarding/tests/fixtures/idss-prompts/ is not protected).
  • The dev-factory red is not: it compares the render against the
    committed .sandcastle/rehearsal-heal-prompt.md, which only a re-render /
    re-vendor of the protected self-copy can update. That is what #49/#51 did in
    their same commit, as sessions. Landing the root skeleton change without it
    leaves onboard-lib-test.sh red on main until a human re-vendors — the
    invariant #49/#51 were careful never to break.

So the whole ticket belongs to a session. The design below is complete and
ready to apply — the session only has to execute it + re-render .sandcastle/.

Ruling asked by the ticket — re-use rehearsal-drive-intro, mint nothing.
The healer's evidence context (skeleton lines 3–5) is exactly what the
reporter's {{ENRICH:rehearsal-drive-intro}} already carries — which drive,
its evidence files, its box, its frontier. Re-use the same slot name in the
heal skeleton: it renders from the consumer's one already-authored
prompt-enrichments/rehearsal-drive-intro.md (created fleet-wide by #49), so
there is no new file to author and no fleet-wide render refusal — quieter
even than #51's slot-widen. One file feeds both the reporter and the healer;
nobody names the same evidence files twice.

The other two product-prose spots do not need a slot — generalize them with
the box vocabulary #51 already put live in the reporter skeleton (formalized
by #53, but "box" is already rendered text today):

  • evidence list (L3–5) → replace with the re-used slot:
    You are the rehearsal loop's healer, running unattended on {{RUNNER_HOST}}
    after a RED rehearsal drive. Your working directory is the repo checkout,
    already synced to origin/main.
    
    {{ENRICH:rehearsal-drive-intro}}
    
    Evidence for the red is in the run directory given below, alongside the
    harness's own records. Read what exists; diagnose from what's there.
    
  • verifiable-here toolchain (L17–19) — drop the go test ./<package> /
    pnpm --filter app exec vitest run <file> product names; state the contract
    generically (the healer runs inside the consumer's checkout and knows its
    own runner):
       - verifiable here: a targeted check exists that you can run on this
         machine — the repo's own test for the affected unit, scoped to the
         changed package or file, or a seam test.
    
  • infra parenthetical (L21) (DNS, droplets, secrets) → (its box, DNS, secrets).
  • cost line (L46) burns a paid droplet → burns a paid box.

Net: zero new slots, one re-used slot, generic vocabulary elsewhere — the
factory keeps the healer's CONTRACT (the three self-fix conditions, the
never-self-fix list, the rails, the JSON answer/residual shape) and the
consumer owns its drive's make-up via the file it already has.

Same-commit obligations (as #49/#51)

  1. prompts/rehearsal-heal-prompt.md — the change above.
  2. onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md — regenerate
    byte-identical to the new render (idss's drive-intro spliced, generalized
    text), the worked example (GOTCHAS 18).
  3. onboarding/README.md slot list — add rehearsal-heal-prompt.md to
    rehearsal-drive-intro's consumers, and a "at a pin bump crossing #55,
    the healer now consumes the SAME rehearsal-drive-intro file (no new
    authoring, but the heal render CHANGES — GOTCHAS 18 quiet event)" note.
  4. Re-render the protected .sandcastle/rehearsal-heal-prompt.md (dev-factory's
    own render uses its opt-out drive-intro) so onboard-lib-test.sh stays green.
  5. STATUS.md.

box-vocabulary-test.sh baseline / #53 ordering

The ticket's final step — "DELETE the baseline from tests/box-vocabulary-test.sh"
— cannot run yet: that test does not exist. #53 (which was to create it) is
still open and ready-for-session too; CONTEXT.md does not yet define Box.
The two are entangled: land #55's heal split and #53 simply never adds a
rehearsal-heal-prompt.md baseline (there is no provider box name left to
guard), OR land #53's baseline first and #55 removes it in the same commit. A
session taking either should sequence them together.

(Investigated as run 423 on elitebook-distributed-server-03; nothing committed.)

## Blocked — needs a session's standing (`ready-for-session`) Split off `ready-for-agent`. This is the exact prompt-skeleton design work its siblings **#49 and #51** were, and both landed as **session `prompts:` commits that edited the protected `.sandcastle/` self-copy in the same commit**. A sandcastle agent cannot: `.sandcastle/` is fenced (the protected-paths tripwire rolls back any change there and reds the run), so an agent cannot keep the offline suite green through this change. Concretely, splicing the slot into the heal skeleton reds **two** cutover checks in `onboarding/tests/onboard-lib-test.sh`: ``` FAIL: render_prompts (idss): rehearsal-heal-prompt.md is byte-identical to the reference copy FAIL: render_prompts (dev-factory): rehearsal-heal-prompt.md is byte-identical to the committed .sandcastle copy ``` - The **idss** red is fixable by an agent (the fixture under `onboarding/tests/fixtures/idss-prompts/` is not protected). - The **dev-factory** red is **not**: it compares the render against the committed `.sandcastle/rehearsal-heal-prompt.md`, which only a re-render / re-vendor of the protected self-copy can update. That is what #49/#51 did in their same commit, as sessions. Landing the root skeleton change *without* it leaves `onboard-lib-test.sh` red on `main` until a human re-vendors — the invariant #49/#51 were careful never to break. So the whole ticket belongs to a session. The design below is complete and ready to apply — the session only has to execute it + re-render `.sandcastle/`. ### Recommended design (session may re-rule; two-way door, text only) **Ruling asked by the ticket — re-use `rehearsal-drive-intro`, mint nothing.** The healer's evidence context (skeleton lines 3–5) is exactly what the reporter's `{{ENRICH:rehearsal-drive-intro}}` already carries — which drive, its evidence files, its box, its frontier. Re-use the **same slot name** in the heal skeleton: it renders from the consumer's one already-authored `prompt-enrichments/rehearsal-drive-intro.md` (created fleet-wide by #49), so there is **no new file to author and no fleet-wide render refusal** — quieter even than #51's slot-widen. One file feeds both the reporter and the healer; nobody names the same evidence files twice. The other two product-prose spots do **not** need a slot — generalize them with the `box` vocabulary #51 already put live in the reporter skeleton (formalized by #53, but "box" is already rendered text today): - **evidence list (L3–5)** → replace with the re-used slot: ``` You are the rehearsal loop's healer, running unattended on {{RUNNER_HOST}} after a RED rehearsal drive. Your working directory is the repo checkout, already synced to origin/main. {{ENRICH:rehearsal-drive-intro}} Evidence for the red is in the run directory given below, alongside the harness's own records. Read what exists; diagnose from what's there. ``` - **verifiable-here toolchain (L17–19)** — drop the `go test ./<package>` / `pnpm --filter app exec vitest run <file>` product names; state the contract generically (the healer runs *inside* the consumer's checkout and knows its own runner): ``` - verifiable here: a targeted check exists that you can run on this machine — the repo's own test for the affected unit, scoped to the changed package or file, or a seam test. ``` - **infra parenthetical (L21)** `(DNS, droplets, secrets)` → `(its box, DNS, secrets)`. - **cost line (L46)** `burns a paid droplet` → `burns a paid box`. Net: **zero new slots**, one re-used slot, generic vocabulary elsewhere — the factory keeps the healer's CONTRACT (the three self-fix conditions, the never-self-fix list, the rails, the JSON answer/`residual` shape) and the consumer owns its drive's make-up via the file it already has. ### Same-commit obligations (as #49/#51) 1. `prompts/rehearsal-heal-prompt.md` — the change above. 2. `onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md` — regenerate byte-identical to the new render (idss's drive-intro spliced, generalized text), the worked example (GOTCHAS 18). 3. `onboarding/README.md` slot list — add `rehearsal-heal-prompt.md` to `rehearsal-drive-intro`'s consumers, and a "**at a pin bump crossing #55**, the healer now consumes the SAME `rehearsal-drive-intro` file (no new authoring, but the heal render CHANGES — GOTCHAS 18 quiet event)" note. 4. Re-render the protected `.sandcastle/rehearsal-heal-prompt.md` (dev-factory's own render uses its opt-out drive-intro) so `onboard-lib-test.sh` stays green. 5. `STATUS.md`. ### `box-vocabulary-test.sh` baseline / #53 ordering The ticket's final step — "DELETE the baseline from `tests/box-vocabulary-test.sh`" — **cannot run yet**: that test does not exist. #53 (which was to create it) is still open and `ready-for-session` too; CONTEXT.md does not yet define **Box**. The two are entangled: land #55's heal split and #53 simply never adds a `rehearsal-heal-prompt.md` baseline (there is no provider box name left to guard), OR land #53's baseline first and #55 removes it in the same commit. A session taking either should sequence them together. *(Investigated as run 423 on elitebook-distributed-server-03; nothing committed.)*
Author
Member

Close report — #55 landed

Ruled by agent under ADR 0174 — veto anytime.

Two commits on main, both pushed:

commit what
e307033 the skeleton split (the ticket's ask, landed by the prior session)
fdbfee6 this session: the onboarding slot note named the wrong evidence anchor

State on arrival

e307033 was already on origin/main and carried the whole ask — but the
ticket was still open and ready-for-session, so the runner's judgement was
"no progress". This session verified that commit against the ticket item by
item rather than trusting it, found one defect, fixed it, and closes.

What the ask asked for, and where it is

  • The split, #51's ruling applied — the factory keeps the healer's
    CONTRACT (three self-fix conditions, never-self-fix list, rails, JSON answer
    shape, residual hand-back); the consumer owns what its drive is MADE OF.
    All four named prose sites are gone from prompts/rehearsal-heal-prompt.md:
    the product run dir (line 4), the go test/vitest bar (line 19), "DNS,
    droplets, secrets" (line 21), "burns a paid droplet" (line 46). The last two
    did NOT become per-repo: with #53's word ruled they are factory contract in
    shape-neutral words ("the box a drive stands up", "at whatever that costs
    this repo"), so the cost argument survives without asserting a price every
    consumer's box charges.
  • One slot or two — ruled: MINT one, {{ENRICH:rehearsal-heal-intro}},
    explicitly not rehearsal-drive-intro re-used. The reason is mechanical and
    holds: an enrichment is spliced VERBATIM and never re-templated, so a slot
    can only serve a second skeleton whose reader has the same ROLE. The
    reporter's paragraph opens by assigning its reader a role, points at a
    still-up live box, and states a known-red frontier rule — in the healer's
    prompt that is a second contradicting role sentence, an invitation to touch
    infra state the healer's own rules forbid, and still no targeted check, the
    one fact the healer's bar needs.
  • GOTCHAS 18, LOUD branch, cost demonstrated not assumed: rendering the
    new skeleton against the pre-#55 idss enrichment set refuses, names the
    file, exit 1 — a fleet-wide render stop until each consumer authors it. So
    the idss cutover fixture carries every product fact verbatim as the worked
    example, onboarding/README.md's slot list goes 9 -> 10 with the pin-bump
    note, and GOTCHAS 18 gained the verbatim-splice reason a slot may not cross
    roles.
  • Baseline deleted, as the ticket required: tests/box-vocabulary-test.sh
    lost baseline=, its staleness check and the per-file exemption; the scan
    is now unconditional and reports no baseline.

The defect this session found and fixed (fdbfee6)

onboarding/README.md's new slot note documented the healer as anchored on
artifacts/legs.json/artifacts/journey.json — the REPORTER's pair. The
skeleton it documents says legs.json/verdict.json in all three copies, and
that was the ruling (verdict.json is read at rehearsal-report.sh:350;
journey.json appears in no harness file). STATUS.md already recorded it
correctly; only the onboarding note drifted — and that note is exactly the
line a consumer author reads while writing the enrichment the LOUD refusal
demands of them, five lines above "keep their evidence lists in step", which
uncorrected reads as "give the healer the reporter's anchors". The note now
states the skeleton's pair, says the divergence from the reporter is by design
and why, and scopes keep-in-step to the PER-REPO lists. Docs only, root-only:
onboarding/ is not in the vendor manifest, so no re-render, no protected
path, no STATUS.md change (pure wording; the state is already recorded).

Proof

  • Full offline suite green after each commit: 69 scripts, 0 failures
    (for t in tests/*.sh onboarding/tests/*.sh; do ... done), no docker, no
    network.
  • onboard-lib: 161 passed, 0 failed — including the two cutover checks the
    blocking comment named: render_prompts (idss) and
    render_prompts (dev-factory) are both byte-identical again, so main is
    NOT left red awaiting a human re-vendor.
  • box-vocabulary-test: 4/4 checks passed (4 waived line(s), no baseline).
  • grep -rn "journey.json" --include="*.sh" . -> no hits;
    verdict.json -> rehearsal-report.sh:350.

Residue for a human (not blocking this ticket)

  • Pin bump is a human's, and it is LOUD. Root-only change: the running
    .sandcastle/ self-copy gets the new skeleton and the de-baselined test
    only when a human runs
    bash onboarding/onboard.sh vendor .sandcastle <sha> (GOTCHAS 4). Every
    consumer must author prompt-enrichments/rehearsal-heal-intro.md BEFORE
    re-rendering or render-prompts refuses, naming the file.
  • Filed #56 (bug, needs-triage): the sibling REPORTER skeleton anchors
    on artifacts/journey.json, which no harness file writes or reads, while
    claiming the harness does both. Same defect family, one layer up; out of
    #55's scope (this ticket owns the HEAL skeleton), so filed rather than
    widened into.

Closing.

## Close report — #55 landed **Ruled by agent under ADR 0174 — veto anytime.** Two commits on `main`, both pushed: | commit | what | |---|---| | `e307033` | the skeleton split (the ticket's ask, landed by the prior session) | | `fdbfee6` | this session: the onboarding slot note named the wrong evidence anchor | ### State on arrival `e307033` was already on `origin/main` and carried the whole ask — but the ticket was still open and `ready-for-session`, so the runner's judgement was "no progress". This session verified that commit against the ticket item by item rather than trusting it, found one defect, fixed it, and closes. ### What the ask asked for, and where it is - **The split, #51's ruling applied** — the factory keeps the healer's CONTRACT (three self-fix conditions, never-self-fix list, rails, JSON answer shape, `residual` hand-back); the consumer owns what its drive is MADE OF. All four named prose sites are gone from `prompts/rehearsal-heal-prompt.md`: the product run dir (line 4), the `go test`/`vitest` bar (line 19), "DNS, droplets, secrets" (line 21), "burns a paid droplet" (line 46). The last two did NOT become per-repo: with #53's word ruled they are factory contract in shape-neutral words ("the box a drive stands up", "at whatever that costs this repo"), so the cost argument survives without asserting a price every consumer's box charges. - **One slot or two — ruled: MINT one**, `{{ENRICH:rehearsal-heal-intro}}`, explicitly not `rehearsal-drive-intro` re-used. The reason is mechanical and holds: an enrichment is spliced VERBATIM and never re-templated, so a slot can only serve a second skeleton whose reader has the same ROLE. The reporter's paragraph opens by assigning its reader a role, points at a still-up live box, and states a known-red frontier rule — in the healer's prompt that is a second contradicting role sentence, an invitation to touch infra state the healer's own rules forbid, and still no targeted check, the one fact the healer's bar needs. - **GOTCHAS 18, LOUD branch, cost demonstrated not assumed**: rendering the new skeleton against the pre-#55 idss enrichment set refuses, names the file, exit 1 — a fleet-wide render stop until each consumer authors it. So the idss cutover fixture carries every product fact verbatim as the worked example, `onboarding/README.md`'s slot list goes 9 -> 10 with the pin-bump note, and GOTCHAS 18 gained the verbatim-splice reason a slot may not cross roles. - **Baseline deleted**, as the ticket required: `tests/box-vocabulary-test.sh` lost `baseline=`, its staleness check and the per-file exemption; the scan is now unconditional and reports `no baseline`. ### The defect this session found and fixed (`fdbfee6`) `onboarding/README.md`'s new slot note documented the healer as anchored on `artifacts/legs.json`/`artifacts/journey.json` — the REPORTER's pair. The skeleton it documents says `legs.json`/`verdict.json` in all three copies, and that was the ruling (`verdict.json` is read at `rehearsal-report.sh:350`; `journey.json` appears in no harness file). `STATUS.md` already recorded it correctly; only the onboarding note drifted — and that note is exactly the line a consumer author reads while writing the enrichment the LOUD refusal demands of them, five lines above "keep their evidence lists in step", which uncorrected reads as "give the healer the reporter's anchors". The note now states the skeleton's pair, says the divergence from the reporter is by design and why, and scopes keep-in-step to the PER-REPO lists. Docs only, root-only: `onboarding/` is not in the vendor manifest, so no re-render, no protected path, no `STATUS.md` change (pure wording; the state is already recorded). ### Proof - Full offline suite green after each commit: **69 scripts, 0 failures** (`for t in tests/*.sh onboarding/tests/*.sh; do ... done`), no docker, no network. - `onboard-lib: 161 passed, 0 failed` — including the two cutover checks the blocking comment named: `render_prompts (idss)` and `render_prompts (dev-factory)` are both byte-identical again, so `main` is NOT left red awaiting a human re-vendor. - `box-vocabulary-test: 4/4 checks passed (4 waived line(s), no baseline)`. - `grep -rn "journey.json" --include="*.sh" .` -> no hits; `verdict.json` -> `rehearsal-report.sh:350`. ### Residue for a human (not blocking this ticket) - **Pin bump is a human's, and it is LOUD.** Root-only change: the running `.sandcastle/` self-copy gets the new skeleton and the de-baselined test only when a human runs `bash onboarding/onboard.sh vendor .sandcastle <sha>` (GOTCHAS 4). Every consumer must author `prompt-enrichments/rehearsal-heal-intro.md` BEFORE re-rendering or `render-prompts` refuses, naming the file. - **Filed #56** (`bug`, `needs-triage`): the sibling REPORTER skeleton anchors on `artifacts/journey.json`, which no harness file writes or reads, while claiming the harness does both. Same defect family, one layer up; out of #55's scope (this ticket owns the HEAL skeleton), so filed rather than widened into. Closing.
matou-build-agent 2026-08-24 05:50:25 +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#55
No description provided.