the REPORTER skeleton anchors on artifacts/journey.json — a record no harness file writes or reads #56

Closed
opened 2026-08-24 05:49:40 +00:00 by matou-build-agent · 4 comments

What

prompts/rehearsal-report-prompt.md lines 3-7 tell every consumer's diagnosis reader:

Evidence in the run directory given below: artifacts/legs.json (per-leg
records) and artifacts/journey.json (founding rows, when reached) — the two
files this harness itself writes and reads — plus whatever else that drive
harvests beside them

The claim "the two files this harness itself writes and reads" is not true of
journey.json:

$ grep -rn "journey.json" --include="*.sh" .      # no hits anywhere in the harness
$ grep -rn "verdict.json" --include="*.sh" .
rehearsal-report.sh:350:verdict_file="$run_dir/artifacts/verdict.json"

journey.json appears only in prose: this skeleton, its two rendered copies
(.sandcastle/, the idss cutover fixture) and onboarding/README.md's slot
note for rehearsal-drive-intro. verdict.json — the record
rehearsal-report.sh demonstrably reads (ADR 0183 clause 5, #574) — is named
nowhere in the reporter's own anchor.

Why it matters

Same defect family as #49/#51/#55, one layer up: the anchor paragraph is
factory CONTRACT (it is the part deliberately kept OUT of
{{ENRICH:rehearsal-drive-intro}}), so it must state what is provable in the
harness rather than one product's run directory. A consumer whose drive writes
no journey.json is told the harness reads a file that does not exist, and
gets no pointer to the verdict marker the reporter actually consults.

#55 ruled this explicitly for the HEALER and did NOT inherit it: the new
prompts/rehearsal-heal-prompt.md anchor names
artifacts/legs.json/artifacts/verdict.json. The two sibling skeletons now
state different harness anchors — correct for the healer, unproven for the
reporter. onboarding/README.md (fdbfee6) says so in as many words, which is
an honest description of today's state, not a resting place.

Ask

Rule on the reporter's anchor and make it provable:

  • either journey.json is a real harness record and something must write or
    read it (nothing does today), or the anchor names legs.json +
    verdict.json like the healer's and journey.json moves down into
    {{ENRICH:rehearsal-drive-intro}} as the per-repo evidence it actually is
    (idss's enrichment already carries an evidence list — this is a widening of
    an existing slot, GOTCHAS 18's QUIET branch, not a new slot);
  • whichever way, the two skeletons' anchors should agree or the difference
    should be a stated ruling, and onboarding/README.md's two slot notes
    follow.

Skeleton work, so a session, not a sandcastle agent: it edits the protected
.sandcastle/ self-copy in the same commit and re-proves the cutover fixtures
in onboarding/tests/fixtures/idss-prompts/ (the reason #55 was itself split
to ready-for-session).

Filed by the #55 session under ADR 0174 — out of #55's scope (that ticket owns
the HEAL skeleton), surfaced while proving its anchor. Veto anytime.

## What `prompts/rehearsal-report-prompt.md` lines 3-7 tell every consumer's diagnosis reader: > Evidence in the run directory given below: `artifacts/legs.json` (per-leg > records) and `artifacts/journey.json` (founding rows, when reached) — the two > files this harness itself writes and reads — plus whatever else that drive > harvests beside them The claim "the two files this harness itself writes and reads" is not true of `journey.json`: ``` $ grep -rn "journey.json" --include="*.sh" . # no hits anywhere in the harness $ grep -rn "verdict.json" --include="*.sh" . rehearsal-report.sh:350:verdict_file="$run_dir/artifacts/verdict.json" ``` `journey.json` appears only in prose: this skeleton, its two rendered copies (`.sandcastle/`, the idss cutover fixture) and `onboarding/README.md`'s slot note for `rehearsal-drive-intro`. `verdict.json` — the record `rehearsal-report.sh` demonstrably reads (ADR 0183 clause 5, #574) — is named nowhere in the reporter's own anchor. ## Why it matters Same defect family as #49/#51/#55, one layer up: the anchor paragraph is factory CONTRACT (it is the part deliberately kept OUT of `{{ENRICH:rehearsal-drive-intro}}`), so it must state what is provable in the harness rather than one product's run directory. A consumer whose drive writes no `journey.json` is told the harness reads a file that does not exist, and gets no pointer to the verdict marker the reporter actually consults. #55 ruled this explicitly for the HEALER and did NOT inherit it: the new `prompts/rehearsal-heal-prompt.md` anchor names `artifacts/legs.json`/`artifacts/verdict.json`. The two sibling skeletons now state different harness anchors — correct for the healer, unproven for the reporter. `onboarding/README.md` (fdbfee6) says so in as many words, which is an honest description of today's state, not a resting place. ## Ask Rule on the reporter's anchor and make it provable: - either `journey.json` is a real harness record and something must write or read it (nothing does today), or the anchor names `legs.json` + `verdict.json` like the healer's and `journey.json` moves down into `{{ENRICH:rehearsal-drive-intro}}` as the per-repo evidence it actually is (idss's enrichment already carries an evidence list — this is a widening of an existing slot, GOTCHAS 18's QUIET branch, not a new slot); - whichever way, the two skeletons' anchors should agree or the difference should be a stated ruling, and `onboarding/README.md`'s two slot notes follow. Skeleton work, so a session, not a sandcastle agent: it edits the protected `.sandcastle/` self-copy in the same commit and re-proves the cutover fixtures in `onboarding/tests/fixtures/idss-prompts/` (the reason #55 was itself split to `ready-for-session`). Filed by the #55 session under ADR 0174 — out of #55's scope (that ticket owns the HEAL skeleton), surfaced while proving its anchor. Veto anytime.
Author
Member

This was generated by AI during triage.

Triage: ready-for-session

Ruled by agent under ADR 0174 — veto anytime.

Verified the claim. grep -rn "journey.json" --include="*.sh" . returns zero
hits anywhere in the harness; verdict.json is read at
rehearsal-report.sh:350 (guarded by ADR 0183 clause 5, #574). The reporter
skeleton's anchor paragraph is factually wrong about which file the harness
itself writes/reads.

Ruling — option 2 from the Ask, matching #55's precedent for the sibling
HEALER skeleton (landed this run, e307033/fdbfee6):
the reporter's
anchor should name legs.json + verdict.json — the pair rehearsal-report.sh
demonstrably reads — and journey.json, if a consumer's drive genuinely
produces one, moves down into {{ENRICH:rehearsal-drive-intro}} as that
consumer's own evidence: the same slot #55 just proved widens cleanly for
exactly this kind of per-repo evidence fact (GOTCHAS 18's QUIET branch — the
slot's existing idss enrichment already carries an evidence list, so no
fleet-wide render refusal).

This is a two-way door: a prose anchor in a prompt skeleton, revertible by a
later commit, and provable by the same mechanism #55 just used —
grep -rn "journey.json" / "verdict.json" --include="*.sh" . plus the
cutover fixtures in onboarding/tests/fixtures/idss-prompts/ staying
byte-identical to the render. Not a one-way door (no credentials, no
security-posture change, no member-facing trust accept, no data destruction,
no spend).

Why ready-for-session, not ready-for-agent: same reason #55 was split
— this edits prompts/rehearsal-report-prompt.md, a protected prompt
skeleton, and the fix must land together with a re-render of the vendored
.sandcastle/rehearsal-report-prompt.md self-copy in the same commit
(.sandcastle/ is fenced; a sandcastle agent's protected-paths tripwire rolls
that back and reds the run — onboard-lib-test.sh's
render_prompts (dev-factory) cutover check would go red on main
otherwise).

Agent Brief

Category: bug
Summary: The reporter prompt skeleton's evidence anchor names a file
(journey.json) no harness script writes or reads, and omits the one it
actually does (verdict.json).

Current behavior:
prompts/rehearsal-report-prompt.md (and its two rendered copies —
.sandcastle/rehearsal-report-prompt.md,
onboarding/tests/fixtures/idss-prompts/rehearsal-report-prompt.md) states
the evidence anchor as artifacts/legs.json and artifacts/journey.json,
calling them "the two files this harness itself writes and reads."
journey.json is not written or read by any .sh file in the harness;
artifacts/verdict.json is (rehearsal-report.sh, guarded by ADR 0183
clause 5 / #574) and is absent from the anchor entirely.

Desired behavior:
The anchor names the pair the harness actually reads: legs.json +
verdict.json, mirroring the healer skeleton's anchor as split in #55. If a
consumer's drive genuinely produces a journey.json-shaped record, that fact
belongs in that consumer's own {{ENRICH:rehearsal-drive-intro}} enrichment,
not the factory-owned anchor paragraph.

Key interfaces:

  • prompts/rehearsal-report-prompt.md's anchor paragraph (the lines just
    below {{ENRICH:rehearsal-drive-intro}})
  • The two rendered copies that must move in the same commit: the protected
    .sandcastle/ self-copy and the idss cutover fixture under
    onboarding/tests/fixtures/idss-prompts/
  • onboarding/README.md's slot note for rehearsal-drive-intro / the
    reporter skeleton, kept in step with the healer's note (already correct per
    #55's close report)
  • STATUS.md

Acceptance criteria:

  • grep -rn "journey.json" prompts/rehearsal-report-prompt.md returns no
    hits
  • The anchor paragraph names legs.json and verdict.json
  • .sandcastle/rehearsal-report-prompt.md is re-rendered and
    byte-identical to the new skeleton's render (offline suite's cutover
    check green)
  • onboarding/tests/fixtures/idss-prompts/rehearsal-report-prompt.md
    stays byte-identical to its render
  • Full offline suite green:
    for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done
  • STATUS.md updated in the same commit (state change: a skeleton anchor
    corrected)

Out of scope:

  • Whether any consumer's drive should start producing a journey.json-shaped
    record — that's a per-consumer decision, not this ticket's
  • The HEAL skeleton (prompts/rehearsal-heal-prompt.md) — already split by
    #55
  • #53's box-vocabulary-test.sh work — unrelated
> *This was generated by AI during triage.* ## Triage: ready-for-session **Ruled by agent under ADR 0174 — veto anytime.** **Verified the claim.** `grep -rn "journey.json" --include="*.sh" .` returns zero hits anywhere in the harness; `verdict.json` is read at `rehearsal-report.sh:350` (guarded by ADR 0183 clause 5, #574). The reporter skeleton's anchor paragraph is factually wrong about which file the harness itself writes/reads. **Ruling — option 2 from the Ask, matching #55's precedent for the sibling HEALER skeleton (landed this run, `e307033`/`fdbfee6`):** the reporter's anchor should name `legs.json` + `verdict.json` — the pair `rehearsal-report.sh` demonstrably reads — and `journey.json`, if a consumer's drive genuinely produces one, moves down into `{{ENRICH:rehearsal-drive-intro}}` as that consumer's own evidence: the same slot #55 just proved widens cleanly for exactly this kind of per-repo evidence fact (GOTCHAS 18's QUIET branch — the slot's existing idss enrichment already carries an evidence list, so no fleet-wide render refusal). This is a two-way door: a prose anchor in a prompt skeleton, revertible by a later commit, and provable by the same mechanism #55 just used — `grep -rn "journey.json"` / `"verdict.json" --include="*.sh" .` plus the cutover fixtures in `onboarding/tests/fixtures/idss-prompts/` staying byte-identical to the render. Not a one-way door (no credentials, no security-posture change, no member-facing trust accept, no data destruction, no spend). **Why `ready-for-session`, not `ready-for-agent`:** same reason #55 was split — this edits `prompts/rehearsal-report-prompt.md`, a protected prompt skeleton, and the fix must land together with a re-render of the vendored `.sandcastle/rehearsal-report-prompt.md` self-copy in the same commit (`.sandcastle/` is fenced; a sandcastle agent's protected-paths tripwire rolls that back and reds the run — `onboard-lib-test.sh`'s `render_prompts (dev-factory)` cutover check would go red on `main` otherwise). ## Agent Brief **Category:** bug **Summary:** The reporter prompt skeleton's evidence anchor names a file (`journey.json`) no harness script writes or reads, and omits the one it actually does (`verdict.json`). **Current behavior:** `prompts/rehearsal-report-prompt.md` (and its two rendered copies — `.sandcastle/rehearsal-report-prompt.md`, `onboarding/tests/fixtures/idss-prompts/rehearsal-report-prompt.md`) states the evidence anchor as `artifacts/legs.json` and `artifacts/journey.json`, calling them "the two files this harness itself writes and reads." `journey.json` is not written or read by any `.sh` file in the harness; `artifacts/verdict.json` is (`rehearsal-report.sh`, guarded by ADR 0183 clause 5 / #574) and is absent from the anchor entirely. **Desired behavior:** The anchor names the pair the harness actually reads: `legs.json` + `verdict.json`, mirroring the healer skeleton's anchor as split in #55. If a consumer's drive genuinely produces a `journey.json`-shaped record, that fact belongs in that consumer's own `{{ENRICH:rehearsal-drive-intro}}` enrichment, not the factory-owned anchor paragraph. **Key interfaces:** - `prompts/rehearsal-report-prompt.md`'s anchor paragraph (the lines just below `{{ENRICH:rehearsal-drive-intro}}`) - The two rendered copies that must move in the same commit: the protected `.sandcastle/` self-copy and the idss cutover fixture under `onboarding/tests/fixtures/idss-prompts/` - `onboarding/README.md`'s slot note for `rehearsal-drive-intro` / the reporter skeleton, kept in step with the healer's note (already correct per #55's close report) - `STATUS.md` **Acceptance criteria:** - [ ] `grep -rn "journey.json" prompts/rehearsal-report-prompt.md` returns no hits - [ ] The anchor paragraph names `legs.json` and `verdict.json` - [ ] `.sandcastle/rehearsal-report-prompt.md` is re-rendered and byte-identical to the new skeleton's render (offline suite's cutover check green) - [ ] `onboarding/tests/fixtures/idss-prompts/rehearsal-report-prompt.md` stays byte-identical to its render - [ ] Full offline suite green: `for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done` - [ ] `STATUS.md` updated in the same commit (state change: a skeleton anchor corrected) **Out of scope:** - Whether any consumer's drive should start producing a `journey.json`-shaped record — that's a per-consumer decision, not this ticket's - The HEAL skeleton (`prompts/rehearsal-heal-prompt.md`) — already split by #55 - #53's `box-vocabulary-test.sh` work — unrelated
Author
Member

session-runner: two unattended attempts did not advance this ticket — labelled agent-blocked for a human look (ADR 0174 escalation). Latest session log: /home/dev/.local/state/matou-session-runner/logs/run-56-20260824T071007Z.log on the workstation. Remove agent-blocked (and the stale fail counter if re-arming by hand) to let the runner retry.

session-runner: two unattended attempts did not advance this ticket — labelled `agent-blocked` for a human look (ADR 0174 escalation). Latest session log: `/home/dev/.local/state/matou-session-runner/logs/run-56-20260824T071007Z.log` on the workstation. Remove `agent-blocked` (and the stale fail counter if re-arming by hand) to let the runner retry.
Owner

Re-armed (agent-blocked removed) on Ben's instruction: both session-runner attempts that triggered the escalation never ran — their logs are solely API Error: 529 Overloaded from the Claude API. Not an agent-blocked ticket; retry when the runner next ticks.

Re-armed (agent-blocked removed) on Ben's instruction: both session-runner attempts that triggered the escalation never ran — their logs are solely `API Error: 529 Overloaded` from the Claude API. Not an agent-blocked ticket; retry when the runner next ticks.
Author
Member

Close report — ruled and landed (cb611df)

Ruled by agent under ADR 0174 — veto anytime. The ticket's second branch is
the right one: journey.json is NOT a harness record. It is named in no
harness file, and nothing here should be made to write or read one product's
founding rows — so the anchor names artifacts/legs.json +
artifacts/verdict.json, exactly the healer's pair, and journey.json moves
down into {{ENRICH:rehearsal-drive-intro}} as the per-repo evidence it always
was.

What landed (cb611df, on origin/main):

  • prompts/rehearsal-report-prompt.md — the anchor is now word for word
    prompts/rehearsal-heal-prompt.md's: "artifacts/legs.json (per-leg
    records) and artifacts/verdict.json (the drive's own verdict marker, when
    it got that far) — the two records this harness itself reads". Note the
    claim also weakened from "writes and reads" to "reads": the harness only
    READS both (rehearsal-report.sh:324, :350); the drive writes them.
  • The two skeletons' anchors AGREE, by ruling rather than by accident — the
    ticket's "should agree or the difference should be a stated ruling".
  • onboarding/tests/fixtures/idss-prompts/prompt-enrichments/rehearsal-drive-intro.md
    gains artifacts/journey.json (this drive's own founding rows, when
    reached) at the head of its harvested-evidence list — a widening of an
    existing slot (GOTCHAS 18's QUIET branch), so no consumer's render refuses;
    the fixture is the worked example, verbatim.
  • onboarding/README.md — both slot notes follow: #51's anchor pair
    corrected, #55's "deliberately not the reporter's legs.json/journey.json"
    paragraph rewritten to the agreement it now describes (a change to one
    anchor is a change to both), and a #56 pin-bump instruction beside #49's and
    #51's: EXTEND rehearsal-drive-intro.md if your drive writes a
    journey.json, or your re-render silently stops naming it.
  • tests/judgement-call-prompts-test.sh — a FOURTH skeleton scan, and the
    first about TRUTH rather than reach: every artifacts/<record> a skeleton
    names must appear in NON-COMMENT text of some harness .sh beside it. The
    three existing scans catch text that cannot RESOLVE in a consumer (doc path,
    repo slug, tracker number); this one catches text that resolves fine and is
    simply untrue of the harness — the defect this ticket found.
  • .sandcastle/rehearsal-report-prompt.md (the protected self-copy's rendered
    layer) updated in the same commit; the vendored skeleton under
    .sandcastle/prompts/ deliberately untouched — that moves only at a human's
    pin bump (GOTCHAS 4). STATUS.md updated (header + Prompt skeletons row +
    milestone entry).

Proof

  • RED first, twice. (1) Editing the skeleton alone reds both cutover checks by
    name: FAIL: render_prompts (idss): rehearsal-report-prompt.md is byte-identical to the reference copy and the dev-factory one. (2) With the
    new scan in place, re-inserting artifacts/journey.json into the skeleton
    reds it: FAIL: a prompt skeleton's evidence anchor names artifacts/journey.json, which no harness script reads or writes.
  • GREEN after: onboarding/tests/onboard-lib-test.sh 224 passed / 0 failed
    (cutover fixtures re-proven byte-identical, both consumers);
    tests/judgement-call-prompts-test.sh 31 -> 33 checks passed.
  • Full offline suite green, and re-run in a CLEAN CLONE of the commit (this
    checkout was shared with a concurrent session working ADR 0006 /
    install-prompt.md; only this ticket's files and hunks were staged, verified
    by git show --stat).

One thing deliberately NOT done, as a stated ruling: idss's
rehearsal-heal-intro.md fixture was left alone. The rule the fixtures follow
is that they carry, verbatim, what the skeleton used to state — the HEAL
skeleton never named journey.json, so adding it there would be the factory
inventing another repo's prose. idss's healer list already names
founding-state.log for founding evidence. If that repo wants the healer
pointed at journey.json too, that is its own enrichment edit at its next pin
bump, not a factory change.

Closing: work landed, pushed, proven.

## Close report — ruled and landed (`cb611df`) **Ruled by agent under ADR 0174 — veto anytime.** The ticket's second branch is the right one: `journey.json` is NOT a harness record. It is named in no harness file, and nothing here should be made to write or read one product's founding rows — so the anchor names `artifacts/legs.json` + `artifacts/verdict.json`, exactly the healer's pair, and `journey.json` moves down into `{{ENRICH:rehearsal-drive-intro}}` as the per-repo evidence it always was. **What landed** (`cb611df`, on `origin/main`): - `prompts/rehearsal-report-prompt.md` — the anchor is now word for word `prompts/rehearsal-heal-prompt.md`'s: "`artifacts/legs.json` (per-leg records) and `artifacts/verdict.json` (the drive's own verdict marker, when it got that far) — the two records this harness itself reads". Note the claim also weakened from "writes and reads" to "reads": the harness only READS both (`rehearsal-report.sh:324`, `:350`); the drive writes them. - The two skeletons' anchors AGREE, by ruling rather than by accident — the ticket's "should agree or the difference should be a stated ruling". - `onboarding/tests/fixtures/idss-prompts/prompt-enrichments/rehearsal-drive-intro.md` gains `artifacts/journey.json` (this drive's own founding rows, when reached) at the head of its harvested-evidence list — a widening of an existing slot (GOTCHAS 18's QUIET branch), so no consumer's render refuses; the fixture is the worked example, verbatim. - `onboarding/README.md` — both slot notes follow: #51's anchor pair corrected, #55's "deliberately not the reporter's `legs.json`/`journey.json`" paragraph rewritten to the agreement it now describes (a change to one anchor is a change to both), and a #56 pin-bump instruction beside #49's and #51's: EXTEND `rehearsal-drive-intro.md` if your drive writes a `journey.json`, or your re-render silently stops naming it. - `tests/judgement-call-prompts-test.sh` — a FOURTH skeleton scan, and the first about TRUTH rather than reach: every `artifacts/<record>` a skeleton names must appear in NON-COMMENT text of some harness `.sh` beside it. The three existing scans catch text that cannot RESOLVE in a consumer (doc path, repo slug, tracker number); this one catches text that resolves fine and is simply untrue of the harness — the defect this ticket found. - `.sandcastle/rehearsal-report-prompt.md` (the protected self-copy's rendered layer) updated in the same commit; the vendored skeleton under `.sandcastle/prompts/` deliberately untouched — that moves only at a human's pin bump (GOTCHAS 4). `STATUS.md` updated (header + Prompt skeletons row + milestone entry). **Proof** - RED first, twice. (1) Editing the skeleton alone reds both cutover checks by name: `FAIL: render_prompts (idss): rehearsal-report-prompt.md is byte-identical to the reference copy` and the dev-factory one. (2) With the new scan in place, re-inserting `artifacts/journey.json` into the skeleton reds it: `FAIL: a prompt skeleton's evidence anchor names artifacts/journey.json, which no harness script reads or writes`. - GREEN after: `onboarding/tests/onboard-lib-test.sh` 224 passed / 0 failed (cutover fixtures re-proven byte-identical, both consumers); `tests/judgement-call-prompts-test.sh` 31 -> 33 checks passed. - Full offline suite green, and re-run in a CLEAN CLONE of the commit (this checkout was shared with a concurrent session working ADR 0006 / `install-prompt.md`; only this ticket's files and hunks were staged, verified by `git show --stat`). **One thing deliberately NOT done, as a stated ruling:** idss's `rehearsal-heal-intro.md` fixture was left alone. The rule the fixtures follow is that they carry, verbatim, what the skeleton used to state — the HEAL skeleton never named `journey.json`, so adding it there would be the factory inventing another repo's prose. idss's healer list already names `founding-state.log` for founding evidence. If that repo wants the healer pointed at `journey.json` too, that is its own enrichment edit at its next pin bump, not a factory change. Closing: work landed, pushed, proven.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#56
No description provided.