read-first enrichment + session-runner skeleton must carry #196's compact-STATUS/journal read rule (needs a .sandcastle re-vendor) #221

Closed
opened 2026-10-15 05:03:37 +00:00 by matou-build-agent · 1 comment

Filed from #196 (STATUS.md split). The #196 swarm run landed the whole root-side deliverable — a compact STATUS.md (<16 KB, no line >2 KB), docs/journal/ (54 former "Last updated" paragraphs byte-for-byte + milestone log + README with the git log --follow note), docs/GOTCHAS.md as an index + docs/gotchas/NN-slug.md bodies, the tests/docs-budget-test.sh ratchet, and the new read/update rule in CLAUDE.md. Two sub-items of #196's acceptance clause 4 could NOT land in that run because they require editing the protected .sandcastle/ self-copy, which a swarm worker's protected-paths fence rolls back — only a human re-vendor moves the running copy (rule 9, GOTCHAS 4).

Symptom

#196 acceptance asked the read-first enrichment and the prompt skeleton to carry the new "read the compact STATUS + the GOTCHAS index; add a journal entry + update the status row in the same commit" rule, alongside CLAUDE.md. CLAUDE.md landed. The other two are blocked on the protected path:

  • .sandcastle/prompt-enrichments/read-first.md and .sandcastle/prompt-enrichments/workflow-verify.md are the factory's own live enrichments; they still tell a worker to read STATUS.md ("where things stand") and docs/GOTCHAS.md without mentioning the journal / the index split. They are under .sandcastle/ → protected.
  • prompts/session-runner-prompt.md:24-25 ("Read STATUS.md first … update STATUS.md in the same commit") is a root skeleton, but ANY prose edit to it reds onboarding/tests/onboard-lib-test.sh's dev-factory cutover check, which compares the root-skeleton render against the committed .sandcastle/session-runner-prompt.md — and that .sandcastle/ copy can only be re-rendered by a human re-vendor. (Proven: a one-word edit to the skeleton red both the idss-fixture and dev-factory cutover assertions.)

Proposed change (interactive session + human re-vendor)

  1. Update the factory's .sandcastle/prompt-enrichments/read-first.md so STATUS is named as the compact surface and the GOTCHAS line points at the index; optionally note the journal. Keep every docs/ path it names resolvable (tests/judgement-call-prompts-test.sh (d) checks this).
  2. Decide whether prompts/session-runner-prompt.md's STATUS sentence should change at all — a journal is dev-factory's OWN doctrine (it lives in CLAUDE.md, per-repo), and the skeleton is generic across all consumers, so mandating "append a journal entry" fleet-wide may be wrong. If it SHOULD change, re-render the idss cutover fixture (onboarding/tests/fixtures/idss-prompts/session-runner-prompt.md) and re-vendor the .sandcastle/ self-copy in the same change so onboard-lib-test stays green.
  3. bash onboarding/onboard.sh vendor .sandcastle <sha> to move the running copy (GOTCHAS 4), then render-prompts.

Acceptance

  • .sandcastle/prompt-enrichments/read-first.md carries the compact-STATUS + GOTCHAS-index rule; tests/judgement-call-prompts-test.sh green.
  • Any skeleton change re-proven byte-identical in onboarding/tests/onboard-lib-test.sh (idss fixture + dev-factory .sandcastle cutover).
  • Full offline suite green.
_Filed from #196 (STATUS.md split). The #196 swarm run landed the whole root-side deliverable — a compact `STATUS.md` (<16 KB, no line >2 KB), `docs/journal/` (54 former "Last updated" paragraphs byte-for-byte + milestone log + README with the `git log --follow` note), `docs/GOTCHAS.md` as an index + `docs/gotchas/NN-slug.md` bodies, the `tests/docs-budget-test.sh` ratchet, and the new read/update rule in `CLAUDE.md`. Two sub-items of #196's acceptance clause 4 could NOT land in that run because they require editing the protected `.sandcastle/` self-copy, which a swarm worker's protected-paths fence rolls back — only a human re-vendor moves the running copy (rule 9, GOTCHAS 4)._ ## Symptom #196 acceptance asked the **read-first enrichment** and the **prompt skeleton** to carry the new "read the compact STATUS + the GOTCHAS index; add a journal entry + update the status row in the same commit" rule, alongside `CLAUDE.md`. `CLAUDE.md` landed. The other two are blocked on the protected path: - `.sandcastle/prompt-enrichments/read-first.md` and `.sandcastle/prompt-enrichments/workflow-verify.md` are the factory's own live enrichments; they still tell a worker to read `STATUS.md` ("where things stand") and `docs/GOTCHAS.md` without mentioning the journal / the index split. They are under `.sandcastle/` → protected. - `prompts/session-runner-prompt.md:24-25` ("Read `STATUS.md` first … update `STATUS.md` in the same commit") is a root skeleton, but ANY prose edit to it reds `onboarding/tests/onboard-lib-test.sh`'s dev-factory cutover check, which compares the root-skeleton render against the committed `.sandcastle/session-runner-prompt.md` — and that `.sandcastle/` copy can only be re-rendered by a human re-vendor. (Proven: a one-word edit to the skeleton red both the idss-fixture and dev-factory cutover assertions.) ## Proposed change (interactive session + human re-vendor) 1. Update the factory's `.sandcastle/prompt-enrichments/read-first.md` so STATUS is named as the compact surface and the GOTCHAS line points at the index; optionally note the journal. Keep every `docs/` path it names resolvable (`tests/judgement-call-prompts-test.sh` (d) checks this). 2. Decide whether `prompts/session-runner-prompt.md`'s STATUS sentence should change at all — a journal is dev-factory's OWN doctrine (it lives in `CLAUDE.md`, per-repo), and the skeleton is generic across all consumers, so mandating "append a journal entry" fleet-wide may be wrong. If it SHOULD change, re-render the idss cutover fixture (`onboarding/tests/fixtures/idss-prompts/session-runner-prompt.md`) and re-vendor the `.sandcastle/` self-copy in the same change so onboard-lib-test stays green. 3. `bash onboarding/onboard.sh vendor .sandcastle <sha>` to move the running copy (GOTCHAS 4), then `render-prompts`. ## Acceptance - `.sandcastle/prompt-enrichments/read-first.md` carries the compact-STATUS + GOTCHAS-index rule; `tests/judgement-call-prompts-test.sh` green. - Any skeleton change re-proven byte-identical in `onboarding/tests/onboard-lib-test.sh` (idss fixture + dev-factory `.sandcastle` cutover). - Full offline suite green.
Author
Member

Close report — #221 (advances/finishes #196 acceptance clause 4)

Landed: c436d49b622c7eed7683d165c1ded32285008db4 on origin/main (reachable, verified).

What changed (all per-repo .sandcastle/ layer + docs — no root/harness files)

  • .sandcastle/prompt-enrichments/read-first.md now carries #196's rule: STATUS.md is named as the compact status surface (header line + consumer/host tables + open blockers + journal pointer); the GOTCHAS line points at the hazard index (one row per hazard, full Symptom→Cause→Rule bodies linked); and it states the same-commit docs/journal/ entry + STATUS.md surface-row rule (deferring to CLAUDE.md).
  • .sandcastle/prompt.md re-rendered byte-identical from the edited enrichment (only the {{ENRICH:read-first}} slot changed). Rendered from the working-tree skeleton, matching the onboard-lib-test.sh dev-factory cutover's render path — the #217 per-repo-layer pattern, so the running self-copy carries it now with no pin bump.
  • STATUS.md #221 header line added; oldest paragraph (#216) trimmed to stay under the 16 KB budget (its content is preserved byte-for-byte in docs/journal/2026-10-15-216.md). docs/journal/2026-10-15-221.md added.

Ruling (Ruled by agent under ADR 0174 — veto anytime)

The prompts/session-runner-prompt.md skeleton was deliberately NOT changed. #196 clause 4 asked both the read-first enrichment AND the skeleton to carry the rule. The journal / compact-STATUS / GOTCHAS-index structure is dev-factory's OWN doctrine — it lives in dev-factory's CLAUDE.md, per-repo — so it belongs in dev-factory's own read-first enrichment, not in the skeleton that renders byte-identical into every consumer. Mandating "append a docs/journal/ entry" fleet-wide would be wrong (a consumer need not have a journal), and the skeleton's generic "Read STATUS.md first … update STATUS.md in the same commit" is already correct for every consumer. Confining the change to the per-repo layer kept the whole ticket a two-way door: a skeleton edit would have red the idss cutover fixture AND required a human .sandcastle re-vendor (a one-way door; GOTCHAS 4), neither of which was needed.

Proof

  • bash tests/judgement-call-prompts-test.sh → exit 0 (acceptance: enrichment doc-paths all resolve).
  • bash onboarding/tests/onboard-lib-test.sh → exit 0 (acceptance: dev-factory .sandcastle cutover byte-identical; no skeleton change, so idss fixture untouched).
  • bash tests/docs-budget-test.sh → exit 0 (STATUS.md 15650 B < 16384 B).
  • Full offline suite (for t in tests/*.sh onboarding/tests/*.sh; ...): the only reds are the pre-existing, documented env failures (claude-call-guards, limit-lib, session-runner — fp-keying #200; fleet-tui, tui — #202/#205; git-cred-lib — #195), an identical set before and after this change; they reproduce on pristine origin/main.

Acceptance

  • read-first.md carries the compact-STATUS + GOTCHAS-index rule; judgement-call-prompts-test.sh green.
  • No skeleton change ⇒ onboard-lib-test.sh (idss fixture + dev-factory .sandcastle cutover) stays byte-identical/green.
  • Full offline suite green modulo the pre-existing env reds (unchanged set).

The remaining #196-clause-4 artifact — a full .sandcastle re-vendor + FACTORY_REF pin bump — was not required: this is a per-repo-layer change that reaches the running self-copy immediately. (A coordinated human re-vendor across #200/#205/#217/#218/#220/#228 is still separately owed per those tickets; it is not a prerequisite for #221's deliverable.)

## Close report — #221 (advances/finishes #196 acceptance clause 4) **Landed:** `c436d49b622c7eed7683d165c1ded32285008db4` on `origin/main` (reachable, verified). ### What changed (all per-repo `.sandcastle/` layer + docs — no root/harness files) - **`.sandcastle/prompt-enrichments/read-first.md`** now carries #196's rule: `STATUS.md` is named as the **compact status surface** (header line + consumer/host tables + open blockers + journal pointer); the GOTCHAS line points at the **hazard index** (one row per hazard, full Symptom→Cause→Rule bodies linked); and it states the same-commit `docs/journal/` entry + `STATUS.md` surface-row rule (deferring to `CLAUDE.md`). - **`.sandcastle/prompt.md`** re-rendered **byte-identical** from the edited enrichment (only the `{{ENRICH:read-first}}` slot changed). Rendered from the working-tree skeleton, matching the `onboard-lib-test.sh` dev-factory cutover's render path — the #217 per-repo-layer pattern, so the running self-copy carries it now with **no pin bump**. - **`STATUS.md`** #221 header line added; oldest paragraph (#216) trimmed to stay under the 16 KB budget (its content is preserved byte-for-byte in `docs/journal/2026-10-15-216.md`). **`docs/journal/2026-10-15-221.md`** added. ### Ruling (Ruled by agent under ADR 0174 — veto anytime) **The `prompts/session-runner-prompt.md` skeleton was deliberately NOT changed.** #196 clause 4 asked both the read-first enrichment AND the skeleton to carry the rule. The journal / compact-STATUS / GOTCHAS-index structure is **dev-factory's OWN doctrine** — it lives in dev-factory's `CLAUDE.md`, per-repo — so it belongs in dev-factory's own read-first enrichment, not in the skeleton that renders byte-identical into every consumer. Mandating "append a `docs/journal/` entry" fleet-wide would be wrong (a consumer need not have a journal), and the skeleton's generic "Read `STATUS.md` first … update `STATUS.md` in the same commit" is already correct for every consumer. Confining the change to the per-repo layer kept the whole ticket a **two-way door**: a skeleton edit would have red the idss cutover fixture AND required a human `.sandcastle` re-vendor (a one-way door; GOTCHAS 4), neither of which was needed. ### Proof - `bash tests/judgement-call-prompts-test.sh` → **exit 0** (acceptance: enrichment doc-paths all resolve). - `bash onboarding/tests/onboard-lib-test.sh` → **exit 0** (acceptance: dev-factory `.sandcastle` cutover byte-identical; no skeleton change, so idss fixture untouched). - `bash tests/docs-budget-test.sh` → **exit 0** (STATUS.md 15650 B < 16384 B). - Full offline suite (`for t in tests/*.sh onboarding/tests/*.sh; ...`): the only reds are the pre-existing, documented env failures (`claude-call-guards`, `limit-lib`, `session-runner` — fp-keying #200; `fleet-tui`, `tui` — #202/#205; `git-cred-lib` — #195), an **identical** set before and after this change; they reproduce on pristine `origin/main`. ### Acceptance - [x] `read-first.md` carries the compact-STATUS + GOTCHAS-index rule; `judgement-call-prompts-test.sh` green. - [x] No skeleton change ⇒ `onboard-lib-test.sh` (idss fixture + dev-factory `.sandcastle` cutover) stays byte-identical/green. - [x] Full offline suite green modulo the pre-existing env reds (unchanged set). The remaining #196-clause-4 artifact — a full `.sandcastle` re-vendor + `FACTORY_REF` pin bump — was **not required**: this is a per-repo-layer change that reaches the running self-copy immediately. (A coordinated human re-vendor across #200/#205/#217/#218/#220/#228 is still separately owed per those tickets; it is not a prerequisite for #221's deliverable.)
matou-build-agent 2026-10-15 09:35:24 +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#221
No description provided.