heal prompt: list job-log.txt in the charter's "Ground truth to read FIRST" block (#188 AC1 part 2, needs a protected-copy re-render) #189

Closed
opened 2026-10-09 19:39:06 +00:00 by matou-build-agent · 1 comment

Follow-up to #188 (the healer now writes the failing run's own log into every evidence bundle as job-log.txt).

What is left

#188 AC1 has two parts:

  1. heal.sh writes job-log.txt into the evidence dir — DONE in #188.
  2. The charter prompt lists job-log.txt in the "Ground truth to read FIRST" block — this ticket.

Part 2 could not land in #188: it is a prompt-skeleton design change. Adding the line to prompts/heal-prompt.md re-renders the prompt, which then diverges from the committed .sandcastle/heal-prompt.md (a protected path a sandcastle worker cannot touch) and from the onboarding cutover fixtures — onboarding/tests/onboard-lib-test.sh goes RED on both the idss and dev-factory byte-identical cutover proofs. Keeping the suite green requires re-rendering the protected self-copy (onboard.sh render-prompts / a re-vendor), which needs an interactive session's standing, not a fenced worker.

Note: the heal prompt already says "read every file" of the evidence dir, so the diagnosis agent reads job-log.txt today — this is the explicit "read FIRST" enumeration, a prominence nicety, not a functional gap.

What a session must do

  1. Add job-log.txt to the "Ground truth to read FIRST" list in prompts/heal-prompt.md (describe it: the failing run's own job log — on a cross-host failure the only fault text the bundle carries; built per-leg for a matrix).
  2. Re-render: bash onboarding/onboard.sh render-prompts .sandcastle so .sandcastle/heal-prompt.md matches the skeleton again.
  3. Update the onboarding cutover fixture onboarding/tests/fixtures/idss-prompts/heal-prompt.md to the new rendered text (and confirm the dev-factory cutover proof is byte-identical to the re-rendered .sandcastle/heal-prompt.md).
  4. Optionally mirror the enumeration into heal-test.sh's prompt assertions if one is added.

Acceptance

prompts/heal-prompt.md lists job-log.txt in "Ground truth to read FIRST"; onboarding/tests/onboard-lib-test.sh and the full offline suite are green.

Found while working #188.

Follow-up to #188 (the healer now writes the failing run's own log into every evidence bundle as `job-log.txt`). ## What is left #188 AC1 has two parts: 1. `heal.sh` writes `job-log.txt` into the evidence dir — **DONE** in #188. 2. The charter prompt lists `job-log.txt` in the **"Ground truth to read FIRST"** block — **this ticket.** Part 2 could not land in #188: it is a prompt-skeleton design change. Adding the line to `prompts/heal-prompt.md` re-renders the prompt, which then diverges from the committed `.sandcastle/heal-prompt.md` (a protected path a sandcastle worker cannot touch) and from the onboarding cutover fixtures — `onboarding/tests/onboard-lib-test.sh` goes RED on both the `idss` and `dev-factory` byte-identical cutover proofs. Keeping the suite green requires re-rendering the protected self-copy (`onboard.sh render-prompts` / a re-vendor), which needs an interactive session's standing, not a fenced worker. Note: the heal prompt already says *"read every file"* of the evidence dir, so the diagnosis agent reads `job-log.txt` **today** — this is the explicit "read FIRST" enumeration, a prominence nicety, not a functional gap. ## What a session must do 1. Add `job-log.txt` to the "Ground truth to read FIRST" list in `prompts/heal-prompt.md` (describe it: the failing run's own job log — on a cross-host failure the only fault text the bundle carries; built per-leg for a matrix). 2. Re-render: `bash onboarding/onboard.sh render-prompts .sandcastle` so `.sandcastle/heal-prompt.md` matches the skeleton again. 3. Update the onboarding cutover fixture `onboarding/tests/fixtures/idss-prompts/heal-prompt.md` to the new rendered text (and confirm the dev-factory cutover proof is byte-identical to the re-rendered `.sandcastle/heal-prompt.md`). 4. Optionally mirror the enumeration into `heal-test.sh`'s prompt assertions if one is added. ## Acceptance `prompts/heal-prompt.md` lists `job-log.txt` in "Ground truth to read FIRST"; `onboarding/tests/onboard-lib-test.sh` and the full offline suite are green. Found while working #188.
Author
Member

Close report — #189 landed (commit fc75fab)

Ruled by agent under ADR 0174 — veto anytime.

What landed

The heal charter's "Ground truth to read FIRST" block now enumerates job-log.txt:

job-log.txt (the failing run's own job log — on a cross-host failure the only fault text the bundle carries; built per-leg for a matrix),

placed right after the run-verdict.txt bullet (both are the failing workflow's own fault text).

Files changed (1 commit, fc75fab):

  • prompts/heal-prompt.md — the skeleton (the source of the re-render).
  • .sandcastle/heal-prompt.md — the protected committed self-copy, mirrored byte-identical.
  • onboarding/tests/fixtures/idss-prompts/heal-prompt.md — the idss cutover fixture, same two placeholder-free lines.
  • STATUS.md — new head entry.

Why not onboard.sh render-prompts .sandcastle

The ticket suggested re-rendering via render-prompts .sandcastle, but that command fetches the skeleton at .sandcastle/FACTORY_REF (the pinned self-copy ref 2445159, well behind HEAD) and would have rolled prompt.md + rehearsal-heal-prompt.md back to the old pin while dropping my new line entirely (verified: it produced 24 deletions / 0 insertions on the heal copy). The onboard-lib cutover proof compares against the current root skeleton, so the correct, byte-identical result is produced by editing the skeleton and mirroring the same lines into the protected copy + fixture. The lines carry no {{...}} placeholders, so idss and dev-factory renders are identical for this block — confirmed by the test.

Proof

  • onboarding/tests/onboard-lib-test.sh — 238/0; both cutover proofs green (dev-factory: render == committed .sandcastle/heal-prompt.md; idss: render == fixture).
  • Full offline suite — 88 files, 0 failed.
  • tests/heal-test.sh — pass.

Sequencing with #188

The gating writer — #188's heal.sh collect_job_logs, which actually writes job-log.txt per matrix leg into the bundle — landed immediately before this (origin/main d40f3b8), so the enumeration now names a file the healer genuinely produces. Both halves are root/skeleton changes that reach the running self-copy only at the next re-vendor (GOTCHAS 4) — a human pin bump carries them together.

Acceptance — met

prompts/heal-prompt.md lists job-log.txt in "Ground truth to read FIRST"; onboard-lib-test.sh and the full offline suite are green.

## Close report — #189 landed (commit `fc75fab`) **Ruled by agent under ADR 0174 — veto anytime.** ### What landed The heal charter's **"Ground truth to read FIRST"** block now enumerates `job-log.txt`: > `job-log.txt` (the failing run's own job log — on a cross-host failure the only fault text the bundle carries; built per-leg for a matrix), placed right after the `run-verdict.txt` bullet (both are the failing workflow's own fault text). Files changed (1 commit, `fc75fab`): - `prompts/heal-prompt.md` — the skeleton (the source of the re-render). - `.sandcastle/heal-prompt.md` — the protected committed self-copy, mirrored byte-identical. - `onboarding/tests/fixtures/idss-prompts/heal-prompt.md` — the idss cutover fixture, same two placeholder-free lines. - `STATUS.md` — new head entry. ### Why not `onboard.sh render-prompts .sandcastle` The ticket suggested re-rendering via `render-prompts .sandcastle`, but that command fetches the skeleton **at `.sandcastle/FACTORY_REF`** (the pinned self-copy ref `2445159`, well behind HEAD) and would have rolled `prompt.md` + `rehearsal-heal-prompt.md` *back* to the old pin while **dropping my new line entirely** (verified: it produced 24 deletions / 0 insertions on the heal copy). The onboard-lib cutover proof compares against the **current root** skeleton, so the correct, byte-identical result is produced by editing the skeleton and mirroring the same lines into the protected copy + fixture. The lines carry no `{{...}}` placeholders, so idss and dev-factory renders are identical for this block — confirmed by the test. ### Proof - `onboarding/tests/onboard-lib-test.sh` — **238/0**; both cutover proofs green (dev-factory: render == committed `.sandcastle/heal-prompt.md`; idss: render == fixture). - Full offline suite — **88 files, 0 failed**. - `tests/heal-test.sh` — pass. ### Sequencing with #188 The gating writer — #188's `heal.sh` `collect_job_logs`, which actually writes `job-log.txt` per matrix leg into the bundle — **landed immediately before this** (origin/main `d40f3b8`), so the enumeration now names a file the healer genuinely produces. Both halves are root/skeleton changes that reach the running self-copy only at the next re-vendor (GOTCHAS 4) — a human pin bump carries them together. ### Acceptance — met `prompts/heal-prompt.md` lists `job-log.txt` in "Ground truth to read FIRST"; `onboard-lib-test.sh` and the full offline suite are green.
matou-build-agent 2026-10-09 19:54:17 +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#189
No description provided.