rehearsal-report's REMAINING product prose: the skeleton's droplet/electron/#414 lines, and two host+drive literals in rehearsal-report.sh #51

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

Why

Ruled out of scope while closing #49 (which took the rehearsal reporter's
opening PARAGRAPH into {{ENRICH:rehearsal-drive-intro}}, so the drive's spec
path, its #183, its "one-droplet community" and its "Playwright journey" all
left the skeleton together). #49's note called that paragraph "the last product
prose in the skeleton family". It was the last drive-identity prose. The REST
of the same skeleton still describes one product's deployment, and two literals
in the reporter script itself are the #43 defect family outright.

prompts/rehearsal-report-prompt.md — still factory-owned text rendered
into every consumer:

  • logs/droplet-journal.txt (the droplet's journal), logs/ (helper + electron), "the playwright report" — one product's stack and box shape.
  • the whole "Live droplet" paragraph: ssh into the box as the primary source.
  • #414's no-sshd hardening — another repo's issue number.
  • "the KNOWN frontier (pairing never flips — the own-VPS carrier issue named
    in legs.json's skip reasons)" — one product's known-red, stated as fact to
    every consumer's reporter.

By #33's rule these are a LESSER hazard than #49's path: a bare number names no
path and cannot 404. But this repo's own rendered copy now opens by saying it
stands up no drive and then spends fifteen lines telling the reader how to ssh
into a droplet — so the cost is a prompt that argues with itself.

artifacts/legs.json / artifacts/journey.json are NOT in scope: the harness
itself writes and reads them (rehearsal-report.sh keys its whole red set on
legs.json), so naming them is the #47 rule satisfied, not violated.

rehearsal-report.sh — two literals, both #43's family (a vendored harness
file carrying a product's host/tracker fact):

  • L365: the evidence note says on matou-workstation — a host literal, while
    RUNNER_HOST/SWARM_HOST already exist in the identity layer.
  • L362: compute_signature "rehearsal-183" "$leg" hardcodes the signature
    namespace, one line's worth of drive number — while L66 already has the
    overridable REHEARSAL_LABEL (defaulting to the same string) for the label.
    Two repos running a drive would collide in the signature space.

Ask

Decide how much of the reporter prompt is factory-owned CONTRACT and how much
is per-repo. #49's split is the precedent: the factory owns the evidence-reading
discipline, the JSON output shape and the do-not-file rule; the consumer owns
which drive is being diagnosed and what it is made of. Under that split the
stack/box/frontier prose is the consumer's, and the natural fix is either one
more slot or an extension of rehearsal-drive-intro's scope — but a second slot
is a second render refusal for every consumer, so it wants ruling, not reflex.

Then fix the two script literals: derive the host from the identity layer, and
give the signature namespace the same overridable shape REHEARSAL_LABEL has.

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

## Why Ruled out of scope while closing #49 (which took the rehearsal reporter's opening PARAGRAPH into `{{ENRICH:rehearsal-drive-intro}}`, so the drive's spec path, its `#183`, its "one-droplet community" and its "Playwright journey" all left the skeleton together). #49's note called that paragraph "the last product prose in the skeleton family". It was the last *drive-identity* prose. The REST of the same skeleton still describes one product's deployment, and two literals in the reporter script itself are the #43 defect family outright. **`prompts/rehearsal-report-prompt.md`** — still factory-owned text rendered into every consumer: - `logs/droplet-journal.txt` (the droplet's journal)`, `logs/` (helper + electron)`, "the playwright report" — one product's stack and box shape. - the whole "Live droplet" paragraph: ssh into the box as the primary source. - `#414's no-sshd hardening` — another repo's issue number. - "the KNOWN frontier (pairing never flips — the own-VPS carrier issue named in legs.json's skip reasons)" — one product's known-red, stated as fact to every consumer's reporter. By #33's rule these are a LESSER hazard than #49's path: a bare number names no path and cannot 404. But this repo's own rendered copy now opens by saying it stands up no drive and then spends fifteen lines telling the reader how to ssh into a droplet — so the cost is a prompt that argues with itself. `artifacts/legs.json` / `artifacts/journey.json` are NOT in scope: the harness itself writes and reads them (`rehearsal-report.sh` keys its whole red set on `legs.json`), so naming them is the #47 rule satisfied, not violated. **`rehearsal-report.sh`** — two literals, both #43's family (a vendored harness file carrying a product's host/tracker fact): - L365: the evidence note says ``on matou-workstation`` — a host literal, while `RUNNER_HOST`/`SWARM_HOST` already exist in the identity layer. - L362: `compute_signature "rehearsal-183" "$leg"` hardcodes the signature namespace, one line's worth of drive number — while L66 already has the overridable `REHEARSAL_LABEL` (defaulting to the same string) for the label. Two repos running a drive would collide in the signature space. ## Ask Decide how much of the reporter prompt is factory-owned CONTRACT and how much is per-repo. #49's split is the precedent: the factory owns the evidence-reading discipline, the JSON output shape and the do-not-file rule; the consumer owns which drive is being diagnosed and what it is made of. Under that split the stack/box/frontier prose is the consumer's, and the natural fix is either one more slot or an extension of `rehearsal-drive-intro`'s scope — but a second slot is a second render refusal for every consumer, so it wants ruling, not reflex. Then fix the two script literals: derive the host from the identity layer, and give the signature namespace the same overridable shape `REHEARSAL_LABEL` has. `ready-for-session`: prompt-skeleton edit + possibly a new enrichment slot every consumer must author — protected, high-blast-radius, per CLAUDE.md.
Author
Member

Ruled by agent under ADR 0174 — veto anytime

The ask was "one more slot, or extend rehearsal-drive-intro's scope?" — ruled EXTEND, on three grounds, in order of weight:

  1. Shape. An {{ENRICH:<slot>}} owns whole LINES, and the prose sat in three separated places (the evidence list, the Live-droplet paragraph, the frontier clause in the last paragraph). A second slot would have needed the prose made contiguous anyway — and once contiguous, it belongs with the paragraph that already describes the drive.
  2. Category. "Which drive" and "what that drive is made of" are one per-repo fact. Two slots would split it across two files with no boundary a consumer could reason about ("does my playwright report go in the intro or the stack slot?").
  3. Cost, last and not decisive on its own: a new slot is a fleet-wide render REFUSAL, which #49 already spent once.

The split, stated so the next skeleton edit can apply it: the factory owns the reporter's CONTRACT — read the evidence and say what's absent, prefer a still-up box over harvested logs, the JSON output shape, do-not-modify/do-not-file, and "a known frontier ⇒ confident=true" as a RULE with no product's frontier named in it. The consumer owns which drive is being diagnosed and what it is made of: the evidence files it harvests beside the harness's own artifacts/legs.json/journey.json, its live box (or the absence of one), its known-red frontier.

One clause of the ticket is ruled the other way, and it is the interesting half

The ticket lists "the whole 'Live droplet' paragraph: ssh into the box as the primary source" as product prose. It is not. rehearsal-report.sh WRITES that section itself (rehearsal-report.sh:426, gated on arg 3, the droplet IP): the header, the ssh -o StrictHostKeyChecking=accept-new … root@<ip> line and the read-only command palette are all emitted by the harness at run time. That is exactly the test the ticket already applies to legs.json — "the harness itself writes and reads them, so naming them is the #47 rule satisfied, not violated." The paragraph is contract, and the prompt/script agreement is what makes it one.

What IS product there is the word: "droplet" is one provider's box shape, it is not in CONTEXT.md's glossary (which has drive / leg / driver / verdict, all box-neutral), and it runs through rehearsal-report.sh, tui/, and worker-classes.json. That is a vocabulary ruling with its own blast radius, so it is filed as #53, not swept in here.

The paragraph shrank anyway, for an unrelated and better reason: most of it duplicated the text the script emits. The skeleton now states only the preference rule (live box over harvested logs) and points at the section for its own mechanics — so the two cannot drift apart.

What the "no new slot" choice costs, stated because it is the opposite hazard

A new slot REFUSES fleet-wide — loud. A widened slot is quiet: prompt_render_one refuses only on a MISSING file, so a consumer that authored rehearsal-drive-intro.md under #49 and re-renders unchanged gets a prompt that has silently LOST the moved lines. Demonstrated rather than assumed — rendering the new skeleton against the pre-#51 idss enrichment:

RENDER: exit 0 (no refusal)
  SILENTLY LOST: droplet-journal
  SILENTLY LOST: helper + electron
  SILENTLY LOST: playwright report
  SILENTLY LOST: pairing never flips
  SILENTLY LOST: 414

Recorded as GOTCHAS 18, carried in onboarding/README.md's slot list as "at a pin bump crossing #51, EXTEND this file", and given a worked example: the idss cutover fixture carries every product fact the old skeleton stated, verbatim. Consequence, named: the idss render is content-complete but not byte-identical — CLAUDE.md's second option ("deliberately updated with the wording change explained"), as #14 took.

The ratchet names a sharper hazard than the ticket did

The ticket files bare numbers as "a LESSER hazard than #49's path: a bare number names no path and cannot 404." True — and that is the problem. A path 404s, which is at least loud. #414 misresolves: the prompt is read by an agent whose tracker is a different repo's, where that number exists and means something else entirely. So the ratchet is unconditional — no skeleton may name a tracker number at all (tests/judgement-call-prompts-test.sh, 30→31 checks, proven RED first against both live occurrences).

The second occurrence is prompts/session-runner-prompt.md's (#538) — idss's number for the standing-session drainer, in the prompt governing this very session. Fixed here too: the prompt now names the mechanism ("the standing-session drainer"). Out of the ticket's literal scope, but forced by the ratchet and one clause long; the alternative was a rule with a silent exemption.

## Ruled by agent under ADR 0174 — veto anytime **The ask was "one more slot, or extend `rehearsal-drive-intro`'s scope?" — ruled EXTEND**, on three grounds, in order of weight: 1. **Shape.** An `{{ENRICH:<slot>}}` owns whole LINES, and the prose sat in three separated places (the evidence list, the Live-droplet paragraph, the frontier clause in the last paragraph). A second slot would have needed the prose made contiguous anyway — and once contiguous, it belongs with the paragraph that already describes the drive. 2. **Category.** "Which drive" and "what that drive is made of" are one per-repo fact. Two slots would split it across two files with no boundary a consumer could reason about ("does my playwright report go in the intro or the stack slot?"). 3. **Cost**, last and not decisive on its own: a new slot is a fleet-wide render REFUSAL, which #49 already spent once. **The split, stated so the next skeleton edit can apply it:** the factory owns the reporter's CONTRACT — read the evidence and say what's absent, prefer a still-up box over harvested logs, the JSON output shape, do-not-modify/do-not-file, and *"a known frontier ⇒ confident=true"* as a RULE with no product's frontier named in it. The consumer owns which drive is being diagnosed **and what it is made of**: the evidence files it harvests beside the harness's own `artifacts/legs.json`/`journey.json`, its live box (or the absence of one), its known-red frontier. ### One clause of the ticket is ruled the other way, and it is the interesting half The ticket lists *"the whole 'Live droplet' paragraph: ssh into the box as the primary source"* as product prose. It is not. **`rehearsal-report.sh` WRITES that section itself** (`rehearsal-report.sh:426`, gated on arg 3, the droplet IP): the header, the `ssh -o StrictHostKeyChecking=accept-new … root@<ip>` line and the read-only command palette are all emitted by the harness at run time. That is exactly the test the ticket already applies to `legs.json` — *"the harness itself writes and reads them, so naming them is the #47 rule satisfied, not violated."* The paragraph is contract, and the prompt/script agreement is what makes it one. What IS product there is the **word**: "droplet" is one provider's box shape, it is not in `CONTEXT.md`'s glossary (which has drive / leg / driver / verdict, all box-neutral), and it runs through `rehearsal-report.sh`, `tui/`, and `worker-classes.json`. That is a vocabulary ruling with its own blast radius, so it is filed as **#53**, not swept in here. The paragraph shrank anyway, for an unrelated and better reason: most of it **duplicated the text the script emits**. The skeleton now states only the preference rule (live box over harvested logs) and points at the section for its own mechanics — so the two cannot drift apart. ### What the "no new slot" choice costs, stated because it is the opposite hazard A new slot REFUSES fleet-wide — loud. A **widened** slot is quiet: `prompt_render_one` refuses only on a MISSING file, so a consumer that authored `rehearsal-drive-intro.md` under #49 and re-renders unchanged gets a prompt that has silently LOST the moved lines. Demonstrated rather than assumed — rendering the new skeleton against the pre-#51 idss enrichment: ``` RENDER: exit 0 (no refusal) SILENTLY LOST: droplet-journal SILENTLY LOST: helper + electron SILENTLY LOST: playwright report SILENTLY LOST: pairing never flips SILENTLY LOST: 414 ``` Recorded as **GOTCHAS 18**, carried in `onboarding/README.md`'s slot list as *"at a pin bump crossing #51, EXTEND this file"*, and given a worked example: the idss cutover fixture carries **every** product fact the old skeleton stated, verbatim. Consequence, named: the idss render is content-complete but **not byte-identical** — CLAUDE.md's second option ("deliberately updated with the wording change explained"), as #14 took. ### The ratchet names a sharper hazard than the ticket did The ticket files bare numbers as *"a LESSER hazard than #49's path: a bare number names no path and cannot 404."* True — and that is the problem. A path 404s, which is at least loud. `#414` **misresolves**: the prompt is read by an agent whose tracker is a *different repo's*, where that number exists and means something else entirely. So the ratchet is unconditional — no skeleton may name a tracker number at all (`tests/judgement-call-prompts-test.sh`, 30→31 checks, proven RED first against both live occurrences). The second occurrence is `prompts/session-runner-prompt.md`'s `(#538)` — idss's number for the standing-session drainer, in the prompt governing **this very session**. Fixed here too: the prompt now names the mechanism ("the standing-session drainer"). Out of the ticket's literal scope, but forced by the ratchet and one clause long; the alternative was a rule with a silent exemption.
Author
Member

Close report

Landed: f0a3daa — prompts: the drive-intro slot widens from the drive's identity to the whole drive (#51) (14 files, on origin/main).

1. The skeleton — prompts/rehearsal-report-prompt.md

was now
logs/droplet-journal.txt (the droplet's journal), logs/ (helper + electron), the playwright report the harness's own artifacts/legs.json / artifacts/journey.json, "plus whatever else that drive harvests beside them, named in the paragraph above"
the "Live droplet" ssh paragraph (7 lines, duplicating what the script emits) one preference rule + "that section carries its own access line and its read-only limits — obey them"
once #414's no-sshd hardening lands, that becomes the ordinary case a box hardened with no inbound shell is an ordinary case, not a failure
the KNOWN frontier (pairing never flips — the own-VPS carrier issue …) a KNOWN frontier — one this drive's own skip reasons in legs.json name as out of scope, or one the paragraph above names as known-red

prompts/session-runner-prompt.md loses (#538) (see the ruling comment).

2. The script — rehearsal-report.sh

  • L365 host literal. The evidence note said test-results/…/<stamp>/ on matou-workstation; it now names the run dir it was actually handed, on REHEARSAL_EVIDENCE_HOST = SWARM_HOST (the claim identity — the only name that survives a container, where hostname is a random id) → the identity layer's RUNNER_HOST → hostname. Declared-before-probed, the order ADR 0005 sets for every other host fact; overridable directly for a drive whose evidence lands on neither box. The stale (#596) on that same line went with it (it posts into the consumer's tracker, where #596 is a different issue).
  • L362 signature namespace. compute_signature "rehearsal-183" → REHEARSAL_SIGNATURE_NS, defaulting to $REHEARSAL_LABEL — the drive's own per-repo name — so two repos running a drive can no longer collide in one signature space. It stays separately overridable for the one case where following the label is wrong: a repo that RENAMES its label after filing pins the old value, or every open issue's dedup marker orphans and re-files.

Today's signatures are unchanged, proven rather than asserted: the default reproduces the pre-change hex (68fd640e8954 for the suite's standard red leg, before and after), so no already-filed issue's <!-- rehearsal-sig: … --> marker orphans.

3. Proof

  • tests/judgement-call-prompts-test.sh 30→31 checks — the new skeleton scan, proven RED first against the un-fixed skeletons, naming both #414 and (#538).
  • tests/rehearsal-report-test.sh 33→37 cases — evidence host from SWARM_HOST; from RUNNER_HOST when there is no claim; explicit override beating both; and no hardcoded host anywhere in the posted body. Signature namespace: default == today's, follows REHEARSAL_LABEL, explicit beats label. All four red before the script changed (case 32 failed on the literal). Its curl shim now matches the open-issues query by SHAPE, so a case may move the label.
  • onboarding/tests/onboard-lib-test.sh 161/161 — both cutover renders re-proven against the updated idss reference copies.
  • GOTCHAS 18 demonstrated live (the silent-loss render above).
  • Full offline suite green, 67 files, re-run after rebasing onto #52.

4. Rollout — what a human still has to do

  • Root-only. A re-vendor (bash onboarding/onboard.sh vendor .sandcastle <sha>) carries the skeleton, rehearsal-report.sh and the two tests into .sandcastle/ (GOTCHAS 4). This repo's own rendered .sandcastle/*prompt*.md + its enrichment are updated in this commit (its intro now also says there is no live box and no known-red frontier — the "prompt that argues with itself" the ticket named is gone).
  • idss / matou-app: EXTEND prompt-enrichments/rehearsal-drive-intro.md at the next pin bump. This does NOT refuse — that is GOTCHAS 18. The extended fixture in onboarding/tests/fixtures/idss-prompts/ is the copy-ready text for idss.

5. Follow-ups filed

  • #53 (ready-for-session) — the harness's "droplet" vocabulary: the live door's own emitted header, droplet_ip, tui/, worker-classes.json; needs a CONTEXT.md ruling first.
  • #54 (ready-for-agent) — rehearsal-report.sh still defaults REHEARSAL_DRIVE_ISSUE=492 (the literal #43 removed from its sibling, still here in the script that WRITES with it), plus product issue numbers inside strings posted to a consumer's tracker (#381 at L640).

No one-way door was touched: every change is text or a defaulted variable, revertible by git revert f0a3daa, and nothing was pushed to a product repo (ADR 0001, pull-only).

## Close report **Landed:** `f0a3daa` — *prompts: the drive-intro slot widens from the drive's identity to the whole drive (#51)* (14 files, on `origin/main`). ### 1. The skeleton — `prompts/rehearsal-report-prompt.md` | was | now | |---|---| | `logs/droplet-journal.txt` (the droplet's journal), `logs/` (helper + electron), the playwright report | the harness's own `artifacts/legs.json` / `artifacts/journey.json`, "plus whatever else that drive harvests beside them, named in the paragraph above" | | the "Live droplet" ssh paragraph (7 lines, duplicating what the script emits) | one preference rule + "that section carries its own access line and its read-only limits — obey them" | | `once #414's no-sshd hardening lands, that becomes the ordinary case` | `a box hardened with no inbound shell is an ordinary case, not a failure` | | `the KNOWN frontier (pairing never flips — the own-VPS carrier issue …)` | `a KNOWN frontier — one this drive's own skip reasons in legs.json name as out of scope, or one the paragraph above names as known-red` | `prompts/session-runner-prompt.md` loses `(#538)` (see the ruling comment). ### 2. The script — `rehearsal-report.sh` - **L365 host literal.** The evidence note said ``test-results/…/<stamp>/`` `on matou-workstation`; it now names the run dir it was actually handed, on **`REHEARSAL_EVIDENCE_HOST`** = `SWARM_HOST` (the claim identity — the only name that survives a container, where `hostname` is a random id) → the identity layer's `RUNNER_HOST` → `hostname`. Declared-before-probed, the order ADR 0005 sets for every other host fact; overridable directly for a drive whose evidence lands on neither box. The stale `(#596)` on that same line went with it (it posts into the consumer's tracker, where #596 is a different issue). - **L362 signature namespace.** `compute_signature "rehearsal-183"` → **`REHEARSAL_SIGNATURE_NS`**, defaulting to `$REHEARSAL_LABEL` — the drive's own per-repo name — so two repos running a drive can no longer collide in one signature space. It stays *separately* overridable for the one case where following the label is wrong: a repo that RENAMES its label after filing pins the old value, or every open issue's dedup marker orphans and re-files. **Today's signatures are unchanged, proven rather than asserted:** the default reproduces the pre-change hex (`68fd640e8954` for the suite's standard red leg, before and after), so no already-filed issue's `<!-- rehearsal-sig: … -->` marker orphans. ### 3. Proof - `tests/judgement-call-prompts-test.sh` 30→31 checks — the new skeleton scan, **proven RED first** against the un-fixed skeletons, naming both `#414` and `(#538)`. - `tests/rehearsal-report-test.sh` 33→37 cases — evidence host from `SWARM_HOST`; from `RUNNER_HOST` when there is no claim; explicit override beating both; and no hardcoded host anywhere in the posted body. Signature namespace: default == today's, follows `REHEARSAL_LABEL`, explicit beats label. All four **red before the script changed** (case 32 failed on the literal). Its curl shim now matches the open-issues query by SHAPE, so a case may move the label. - `onboarding/tests/onboard-lib-test.sh` 161/161 — both cutover renders re-proven against the updated idss reference copies. - GOTCHAS 18 demonstrated live (the silent-loss render above). - **Full offline suite green, 67 files**, re-run after rebasing onto #52. ### 4. Rollout — what a human still has to do - **Root-only.** A re-vendor (`bash onboarding/onboard.sh vendor .sandcastle <sha>`) carries the skeleton, `rehearsal-report.sh` and the two tests into `.sandcastle/` (GOTCHAS 4). This repo's own rendered `.sandcastle/*prompt*.md` + its enrichment are updated in this commit (its intro now also says there is no live box and no known-red frontier — the "prompt that argues with itself" the ticket named is gone). - **idss / matou-app: EXTEND `prompt-enrichments/rehearsal-drive-intro.md` at the next pin bump.** This does NOT refuse — that is GOTCHAS 18. The extended fixture in `onboarding/tests/fixtures/idss-prompts/` is the copy-ready text for idss. ### 5. Follow-ups filed - **#53** (`ready-for-session`) — the harness's "droplet" vocabulary: the live door's own emitted header, `droplet_ip`, `tui/`, `worker-classes.json`; needs a `CONTEXT.md` ruling first. - **#54** (`ready-for-agent`) — `rehearsal-report.sh` still defaults `REHEARSAL_DRIVE_ISSUE=492` (the literal #43 removed from its sibling, still here in the script that WRITES with it), plus product issue numbers inside strings posted to a consumer's tracker (`#381` at L640). No one-way door was touched: every change is text or a defaulted variable, revertible by `git revert f0a3daa`, and nothing was pushed to a product repo (ADR 0001, pull-only).
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#51
No description provided.