the harness's "droplet" vocabulary: one provider's box shape in the live door, the TUI and worker-classes.json #53

Closed
opened 2026-08-24 03:35:39 +00:00 by matou-build-agent · 1 comment

Why

Split out of #51 (which took the reporter prompt's product prose and two host/drive
literals). While ruling what in prompts/rehearsal-report-prompt.md is factory
CONTRACT, one thing came back the other way: the "Live droplet" paragraph describes
a section the HARNESS ITSELF writes — rehearsal-report.sh emits
Live droplet at $droplet_ip plus an ssh line and a read-only command palette,
gated on arg 3. By #47's rule (a harness prompt may name what the harness puts
there) that paragraph is contract, not product prose, so #51 kept it and only
generalised its wording (a live-box section) and dropped #414.

What is left is the WORD. "Droplet" is one provider's name for one product's box
shape, and it is load-bearing vocabulary across the vendored harness:

  • rehearsal-report.sh — the emitted section header Live droplet at <ip>, the
    droplet_ip variable, the usage string [droplet-ip], and the header comment.
  • tui/data/drive_status.py + tui/app.py — droplet_name/droplet_ip fields
    of a consumer-written drive-status record (so this half may be the CONSUMER's
    field names, not ours — that is part of the ruling).
  • tui/worker-classes.json — "or directly by its droplet cleanup before teardown".
  • CONTEXT.md does NOT define it: the glossary has drive, leg, driver,
    verdict — all box-shape-neutral — and no "droplet". So the word is in the
    code without ever having been ruled into the vocabulary.

Not a 404 and not a misresolve: a consumer whose drive stands up a container, a
bare-metal box or a VM simply reads a word that does not describe its deployment.
Cost is comprehension, not breakage — which is why it was ruled OUT of #51 rather
than swept in with it.

Ask

Rule the vocabulary first (CONTEXT.md), then rename in one commit: a
box-shape-neutral term for the live door (the drive's box? its target? —
verdict.json already uses target), the emitted section header, droplet_ip,
the usage string. Keep the prompt skeleton and the emitted header AGREEING — that
agreement is what makes the paragraph contract.

Two open questions for the ruling:

  • the TUI's droplet_* keys are read out of a file a CONSUMER writes, so renaming
    them is a schema change on someone else's file (pull-only, ADR 0001) — probably
    read both keys, or leave them and say why.
  • arg 3 is positional, so the variable rename is internal and safe; the emitted
    header text is what a consumer's rendered prompt must match, so a rename there
    wants the skeleton re-rendered in the same commit.

Two-way door throughout (text + internal names), and tests/rehearsal-report-test.sh
cases 23/24 already pin the live-door behaviour to assert against.

## Why Split out of #51 (which took the reporter prompt's product prose and two host/drive literals). While ruling what in `prompts/rehearsal-report-prompt.md` is factory CONTRACT, one thing came back the other way: the "Live droplet" paragraph describes a section the HARNESS ITSELF writes — `rehearsal-report.sh` emits `Live droplet at $droplet_ip` plus an ssh line and a read-only command palette, gated on arg 3. By #47's rule (a harness prompt may name what the harness puts there) that paragraph is contract, not product prose, so #51 kept it and only generalised its wording (`a live-box section`) and dropped `#414`. What is left is the WORD. "Droplet" is one provider's name for one product's box shape, and it is load-bearing vocabulary across the vendored harness: - `rehearsal-report.sh` — the emitted section header `Live droplet at <ip>`, the `droplet_ip` variable, the usage string `[droplet-ip]`, and the header comment. - `tui/data/drive_status.py` + `tui/app.py` — `droplet_name`/`droplet_ip` fields of a consumer-written drive-status record (so this half may be the CONSUMER's field names, not ours — that is part of the ruling). - `tui/worker-classes.json` — "or directly by its droplet cleanup before teardown". - `CONTEXT.md` does NOT define it: the glossary has **drive**, **leg**, **driver**, **verdict** — all box-shape-neutral — and no "droplet". So the word is in the code without ever having been ruled into the vocabulary. Not a 404 and not a misresolve: a consumer whose drive stands up a container, a bare-metal box or a VM simply reads a word that does not describe its deployment. Cost is comprehension, not breakage — which is why it was ruled OUT of #51 rather than swept in with it. ## Ask Rule the vocabulary first (`CONTEXT.md`), then rename in one commit: a box-shape-neutral term for the live door (the drive's **box**? its **target**? — `verdict.json` already uses `target`), the emitted section header, `droplet_ip`, the usage string. Keep the prompt skeleton and the emitted header AGREEING — that agreement is what makes the paragraph contract. Two open questions for the ruling: - the TUI's `droplet_*` keys are read out of a file a CONSUMER writes, so renaming them is a schema change on someone else's file (pull-only, ADR 0001) — probably read both keys, or leave them and say why. - arg 3 is positional, so the variable rename is internal and safe; the emitted header text is what a consumer's rendered prompt must match, so a rename there wants the skeleton re-rendered in the same commit. Two-way door throughout (text + internal names), and `tests/rehearsal-report-test.sh` cases 23/24 already pin the live-door behaviour to assert against.
Author
Member

Close report — landed as c926d09

Ruled by agent under ADR 0174 — veto anytime. Two-way door throughout (text,
internal names, and one additive read); no one-way door was touched.

The ruling (asked for first, and it changes what gets renamed)

CONTEXT.md gains Box — the machine a drive stands up and drives against
— a container, a VM, bare metal, or a provider's instance
, with
_Avoid_: droplet (one provider's product name for one shape), VPS, instance, node, server, target (that's the verdict field naming which box a drive drove).

box, not target: target is already spoken for twice — verdict.json's
field for which box a drive drove, and the glossary's own _Avoid_ list under
Product repo. It is also the word the harness was already using in the prose
that #51 left behind ("a live-box section", "the box that drive stood up", "a box
hardened with no inbound shell"), so this ruling records vocabulary the factory
had already converged on rather than minting a new one.

The rule the entry states: the factory names the ROLE, never the shape. A
product's own word for its own box is legitimate — in its identity layer, its
enrichments, and the values it writes (verdict.json's target, its
drive-status record). It is only wrong in text vendored byte-identical into
repos whose drives stand up something else.

The two open questions, answered by one rule: who WRITES the name?

1. rehearsal-report.sh — free, because the harness writes all of it.
Arg 3 is positional, so droplet_ip → box_ip and the usage string
([droplet-ip] → [box-ip]) are internal. The emitted header
Live droplet at $ip → Live box at $ip is the one piece that is contract:
#51 had already generalised the skeleton to "a live-box section", and that
paragraph is factory-owned only while the two agree (#47's rule — a harness
prompt may name what the harness puts there). So the header moves to meet the
skeleton, the skeleton is unchanged, and nothing re-renders — no enrichment
to author, no fleet-wide render event, no onboarding/README.md slot-list
change. Four comments were generalised with it, including the header comment's
scripts/lib/rehearsal-droplet.sh / oc_droplet_cleanup (a product path in a
vendored file — now "the caller's own box-cleanup path").

2. The TUI — droplet_name/droplet_ip are NOT renamed, and the ticket's
instinct was right about why.
That record is written by a consumer's own
rehearsal machinery; its keys are that repo's schema, and the topology is
pull-only (ADR 0001), so a rename here can never reach the writer — it could
only blank the panel of every repo already writing it, silently, at a pin bump.
So the read is made additive: tui/data/drive_status.py grows box_name()
/ box_ip(), which prefer box_* and fall back to the legacy spelling; the
panel prints box=; a consumer migrates when it likes. The legacy name is held
in ONE LEGACY_BOX_PREFIX constant, with its wire spelling pinned literally
in a test — otherwise a later edit to the constant could drop a live writer with
every test still green. Recorded as GOTCHAS 20 (renumbered from 19 on the
rebase: #54 landed 19 concurrently) and documented in tui/README.md +
onboarding/README.md so a consumer knows which key to write.

tui/worker-classes.json's reporter trigger now reads "or directly by its box
cleanup before teardown".

The ratchet (the durable half — a word is the one defect no gate caught)

New tests/box-vocabulary-test.sh, 5 checks, vendored (tests/**) and
standalone-safe in a consumer's .sandcastle/tests/ (#23):

  • scans the whole vendored surface — root *.sh, prompts/**, tui/**,
    tests/** — for a provider's box-shape product name, fixtures not exempt
    (#29's precedent: scrubbing them too makes it absolute rather than "only in
    tests");
  • asserts the live door's two halves still AGREE — rehearsal-report.sh emits
    Live box at, prompts/rehearsal-report-prompt.md promises a live-box section — so a future drift cannot quietly turn contract back into prose;
  • permits the word only on a line carrying an explicit, greppable
    box-vocabulary-waiver marker (4 today, every one the legacy-key read), and
    prints the waiver count, so no exemption goes quiet.

Deliberately out of scan, and stated rather than silently skipped: a repo's
RENDERED prompts and enrichments (per-repo text, where a product's own word is
correct — #49/#51), and docs/**, onboarding/**, .env.example
(vendor-excluded, so nothing there reaches another repo — and
onboarding/templates/ names droplets beside doctl /
digitalocean_access_token, where the provider IS the subject).

Proven RED first against every live occurrence (the failing run named all 13
files), and both new checks proven red against their exact regressions: the
agreement check against a reverted header, the staleness check against a
scrubbed baseline.

One occurrence left standing — named, not swept

prompts/rehearsal-heal-prompt.md is whole-cloth product prose, not a word
problem: one product's evidence files (droplet-journal.txt,
state/clan-config), one product's toolchain as the verifiable-here bar
(go test, pnpm --filter app exec vitest), plus two box mentions. That is
#49/#51's family and needs {{ENRICH}} slot treatment — a fleet-wide render
event with its own rollout cost (GOTCHAS 18), not something to fold into a
rename. Filed as #55 (ready-for-agent) and carried here as the test's one
NAMED baseline with a staleness check, so a NEW occurrence reds immediately and
the baseline itself reds the moment #55 lands. It cannot outlive its ticket.

Proof

  • Full offline suite green, 69 files (for t in tests/*.sh onboarding/tests/*.sh; …), re-run after rebasing onto #54.
  • tests/rehearsal-report-test.sh PASS (40 cases) — case 23 strengthened to
    assert the emitted header TEXT (Live box at 10.0.0.9 in the prompt the
    reporter actually hands claude), which is the behavioural half of the
    agreement the static ratchet checks.
  • tests/tui-test.sh 9/9 structural + pytest 157 → 161 (a consumer's
    legacy keys still light the panel; box_* preferred when both are present;
    a record with no box, and no record at all, do not raise).
  • bash tests/box-vocabulary-test.sh → 5/5 checks passed (4 waived line(s), 1 baseline: prompts/rehearsal-heal-prompt.md).

Residue for a human

Root-only, as always: a re-vendor is a human's move (GOTCHAS 4). A pin bump
carries rehearsal-report.sh, tui/** and the new test into .sandcastle/,
and idss / matou-app pick the vocabulary up then — nothing breaks in the
meantime, since the drive-status read is additive and the header rename is
internal to the reporter that emits it.

## Close report — landed as `c926d09` Ruled by agent under ADR 0174 — veto anytime. Two-way door throughout (text, internal names, and one additive read); no one-way door was touched. ### The ruling (asked for first, and it changes what gets renamed) `CONTEXT.md` gains **Box** — *the machine a drive stands up and drives against — a container, a VM, bare metal, or a provider's instance*, with `_Avoid_: droplet (one provider's product name for one shape), VPS, instance, node, server, target (that's the verdict field naming which box a drive drove)`. **box**, not **target**: `target` is already spoken for twice — `verdict.json`'s field for *which* box a drive drove, and the glossary's own `_Avoid_` list under **Product repo**. It is also the word the harness was already using in the prose that #51 left behind ("a live-box section", "the box that drive stood up", "a box hardened with no inbound shell"), so this ruling records vocabulary the factory had already converged on rather than minting a new one. The rule the entry states: **the factory names the ROLE, never the shape.** A product's own word for its own box is legitimate — in its identity layer, its enrichments, and the values it writes (`verdict.json`'s `target`, its drive-status record). It is only wrong in text vendored byte-identical into repos whose drives stand up something else. ### The two open questions, answered by one rule: who WRITES the name? **1. `rehearsal-report.sh` — free, because the harness writes all of it.** Arg 3 is positional, so `droplet_ip` → `box_ip` and the usage string (`[droplet-ip]` → `[box-ip]`) are internal. The emitted header `Live droplet at $ip` → **`Live box at $ip`** is the one piece that is contract: #51 had already generalised the skeleton to "a live-box section", and that paragraph is factory-owned *only while the two agree* (#47's rule — a harness prompt may name what the harness puts there). So the header moves to meet the skeleton, **the skeleton is unchanged, and nothing re-renders** — no enrichment to author, no fleet-wide render event, no `onboarding/README.md` slot-list change. Four comments were generalised with it, including the header comment's `scripts/lib/rehearsal-droplet.sh` / `oc_droplet_cleanup` (a product path in a vendored file — now "the caller's own box-cleanup path"). **2. The TUI — `droplet_name`/`droplet_ip` are NOT renamed, and the ticket's instinct was right about why.** That record is written by a consumer's own rehearsal machinery; its keys are that repo's schema, and the topology is pull-only (ADR 0001), so a rename here can never reach the writer — it could only blank the panel of every repo already writing it, silently, at a pin bump. So the read is made **additive**: `tui/data/drive_status.py` grows `box_name()` / `box_ip()`, which prefer `box_*` and fall back to the legacy spelling; the panel prints `box=`; a consumer migrates when it likes. The legacy name is held in ONE `LEGACY_BOX_PREFIX` constant, with its wire spelling pinned **literally** in a test — otherwise a later edit to the constant could drop a live writer with every test still green. Recorded as **GOTCHAS 20** (renumbered from 19 on the rebase: #54 landed 19 concurrently) and documented in `tui/README.md` + `onboarding/README.md` so a consumer knows which key to write. `tui/worker-classes.json`'s reporter trigger now reads "or directly by its box cleanup before teardown". ### The ratchet (the durable half — a word is the one defect no gate caught) New `tests/box-vocabulary-test.sh`, 5 checks, vendored (`tests/**`) and standalone-safe in a consumer's `.sandcastle/tests/` (#23): - scans the whole vendored surface — root `*.sh`, `prompts/**`, `tui/**`, `tests/**` — for a provider's box-shape product name, **fixtures not exempt** (#29's precedent: scrubbing them too makes it absolute rather than "only in tests"); - asserts the live door's two halves still AGREE — `rehearsal-report.sh` emits `Live box at`, `prompts/rehearsal-report-prompt.md` promises a `live-box section` — so a future drift cannot quietly turn contract back into prose; - permits the word only on a line carrying an explicit, greppable `box-vocabulary-waiver` marker (4 today, every one the legacy-key read), and **prints the waiver count**, so no exemption goes quiet. Deliberately out of scan, and stated rather than silently skipped: a repo's RENDERED prompts and enrichments (per-repo text, where a product's own word is correct — #49/#51), and `docs/**`, `onboarding/**`, `.env.example` (vendor-excluded, so nothing there reaches another repo — and `onboarding/templates/` names droplets beside `doctl` / `digitalocean_access_token`, where the provider IS the subject). Proven RED first against every live occurrence (the failing run named all 13 files), and both new checks proven red against their exact regressions: the agreement check against a reverted header, the staleness check against a scrubbed baseline. ### One occurrence left standing — named, not swept `prompts/rehearsal-heal-prompt.md` is whole-cloth product prose, not a word problem: one product's evidence files (`droplet-journal.txt`, `state/clan-config`), one product's toolchain as the verifiable-here bar (`go test`, `pnpm --filter app exec vitest`), plus two box mentions. That is #49/#51's family and needs `{{ENRICH}}` slot treatment — a fleet-wide render event with its own rollout cost (GOTCHAS 18), not something to fold into a rename. Filed as **#55** (`ready-for-agent`) and carried here as the test's one NAMED baseline with a staleness check, so a NEW occurrence reds immediately and the baseline itself reds the moment #55 lands. It cannot outlive its ticket. ### Proof - Full offline suite green, **69 files** (`for t in tests/*.sh onboarding/tests/*.sh; …`), re-run after rebasing onto #54. - `tests/rehearsal-report-test.sh` PASS (40 cases) — case 23 strengthened to assert the emitted header TEXT (`Live box at 10.0.0.9` in the prompt the reporter actually hands claude), which is the behavioural half of the agreement the static ratchet checks. - `tests/tui-test.sh` 9/9 structural + pytest 157 → **161** (a consumer's legacy keys still light the panel; `box_*` preferred when both are present; a record with no box, and no record at all, do not raise). - `bash tests/box-vocabulary-test.sh` → `5/5 checks passed (4 waived line(s), 1 baseline: prompts/rehearsal-heal-prompt.md)`. ### Residue for a human Root-only, as always: a re-vendor is a human's move (GOTCHAS 4). A pin bump carries `rehearsal-report.sh`, `tui/**` and the new test into `.sandcastle/`, and idss / matou-app pick the vocabulary up then — nothing breaks in the meantime, since the drive-status read is additive and the header rename is internal to the reporter that emits it.
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#53
No description provided.