ci is always-red on main: prompts/rehearsal-heal-prompt.md names idss tracker numbers and its cutover fixtures were not re-rendered (cf2efb0) #134

Closed
opened 2026-09-07 02:18:45 +00:00 by matou-build-agent · 2 comments

ci.yml (workflow test) has been red on main since commit
cf2efb0 ("rehearsal healer: a fast lane for confident two-way product
fixes (origin idss #1270)"). Both test runs in the last 3 h failed and
no green one exists after it — the hourly watchdog flagged it always-red
(signature f742cd7e8575).

Reproduced offline in a fresh clone of the workdir at 51c8dc6
(for t in tests/*.sh onboarding/tests/*.sh; ...), exactly the CI loop:

=== FAIL: tests/judgement-call-prompts-test.sh ===
FAIL: a prompt skeleton names a tracker issue number — it misresolves in every
other consumer's tracker instead of 404ing; name the mechanism, or put the number
in an {{ENRICH:...}} slot (#51):
  prompts/rehearsal-heal-prompt.md:45:   decision, not a heal (the #1238 front-door, #1246 co-host-route, #1247
  prompts/rehearsal-heal-prompt.md:57:## The fast lane (#1270 — Ben ruled 2026-09-06)

=== FAIL: onboarding/tests/onboard-lib-test.sh ===
FAIL: render_prompts (idss): rehearsal-heal-prompt.md is byte-identical to the reference copy
FAIL: render_prompts (dev-factory): rehearsal-heal-prompt.md is byte-identical to the committed .sandcastle copy
onboard-lib: 233 passed, 2 failed

Root cause

cf2efb0 changed prompts/rehearsal-heal-prompt.md (+83/-22) and nothing
else in the render chain — git show --stat cf2efb0 lists only the
skeleton, rehearsal-heal-lib.sh, rehearsal-report.sh and two test
files. Two blast-radius rules in CLAUDE.md were missed:

  1. Tracker numbers in a skeleton. Lines 45 and 57 hardcode idss issue
    numbers (#1238, #1246, #1247, #1270). A skeleton renders into
    every consumer's .sandcastle/rehearsal-heal-prompt.md, where those
    numbers silently misresolve against that consumer's own tracker instead
    of 404ing. tests/judgement-call-prompts-test.sh:133 is the guard.
  2. Cutover fixtures not re-proven. onboarding/tests/onboard-lib-test.sh
    :610/:630 render the skeleton against idss's and this repo's identity
    layers and require byte-identity with the reference copy and with the
    committed .sandcastle/rehearsal-heal-prompt.md. The skeleton moved;
    neither copy did.

What a fix needs

  • Rewrite lines 45 and 57 to name the mechanism, not the number —
    e.g. "the front-door / co-host-route / secrets class" and "The fast lane
    (ruled 2026-09-06)" — or move the numbers into an {{ENRICH:...}} slot
    so they live in the consumer's enrichment layer.
  • Re-render and commit the two reference copies so the cutover proof is
    byte-identical again (.sandcastle/rehearsal-heal-prompt.md and the
    idss fixture under onboarding/tests/fixtures/), per CLAUDE.md:
    "deliberately updated with the wording change explained".
  • Re-run the full offline suite before close.

Note on reach

This is factory source at the repo root, so the healer did not touch
it. Landing the fix on main turns CI green but does not reach any
running .sandcastle/ copy — including this repo's own self-copy — until
a human re-vendors with bash onboarding/onboard.sh vendor .sandcastle <sha> (GOTCHAS 4). Until then every rehearsal healer session keeps
reading the currently-vendored text. See also #131/#132: the self-pin is
already well behind.


Filed by the swarm healer (watchdog mode, signature f742cd7e8575).
Evidence: /tmp/matou-heal-Matou-dev-factory.Ne6kY0.

`ci.yml` (workflow **test**) has been red on `main` since commit `cf2efb0` ("rehearsal healer: a fast lane for confident two-way product fixes (origin idss #1270)"). Both `test` runs in the last 3 h failed and no green one exists after it — the hourly watchdog flagged it `always-red` (signature `f742cd7e8575`). - run 6797 @ `cf2efb0` — https://git.matou.nz/Matou/dev-factory/actions/runs/6797 - run 6812 @ `51c8dc6` — https://git.matou.nz/Matou/dev-factory/actions/runs/6812 Reproduced offline in a fresh clone of the workdir at `51c8dc6` (`for t in tests/*.sh onboarding/tests/*.sh; ...`), exactly the CI loop: ``` === FAIL: tests/judgement-call-prompts-test.sh === FAIL: a prompt skeleton names a tracker issue number — it misresolves in every other consumer's tracker instead of 404ing; name the mechanism, or put the number in an {{ENRICH:...}} slot (#51): prompts/rehearsal-heal-prompt.md:45: decision, not a heal (the #1238 front-door, #1246 co-host-route, #1247 prompts/rehearsal-heal-prompt.md:57:## The fast lane (#1270 — Ben ruled 2026-09-06) === FAIL: onboarding/tests/onboard-lib-test.sh === FAIL: render_prompts (idss): rehearsal-heal-prompt.md is byte-identical to the reference copy FAIL: render_prompts (dev-factory): rehearsal-heal-prompt.md is byte-identical to the committed .sandcastle copy onboard-lib: 233 passed, 2 failed ``` ## Root cause `cf2efb0` changed `prompts/rehearsal-heal-prompt.md` (+83/-22) and nothing else in the render chain — `git show --stat cf2efb0` lists only the skeleton, `rehearsal-heal-lib.sh`, `rehearsal-report.sh` and two test files. Two blast-radius rules in CLAUDE.md were missed: 1. **Tracker numbers in a skeleton.** Lines 45 and 57 hardcode idss issue numbers (`#1238`, `#1246`, `#1247`, `#1270`). A skeleton renders into *every* consumer's `.sandcastle/rehearsal-heal-prompt.md`, where those numbers silently misresolve against that consumer's own tracker instead of 404ing. `tests/judgement-call-prompts-test.sh:133` is the guard. 2. **Cutover fixtures not re-proven.** `onboarding/tests/onboard-lib-test.sh` :610/:630 render the skeleton against idss's and this repo's identity layers and require byte-identity with the reference copy and with the committed `.sandcastle/rehearsal-heal-prompt.md`. The skeleton moved; neither copy did. ## What a fix needs - Rewrite lines 45 and 57 to **name the mechanism, not the number** — e.g. "the front-door / co-host-route / secrets class" and "The fast lane (ruled 2026-09-06)" — or move the numbers into an `{{ENRICH:...}}` slot so they live in the consumer's enrichment layer. - Re-render and commit the two reference copies so the cutover proof is byte-identical again (`.sandcastle/rehearsal-heal-prompt.md` and the idss fixture under `onboarding/tests/fixtures/`), per CLAUDE.md: "deliberately updated with the wording change explained". - Re-run the full offline suite before close. ## Note on reach This is factory **source** at the repo root, so the healer did not touch it. Landing the fix on `main` turns CI green but does **not** reach any running `.sandcastle/` copy — including this repo's own self-copy — until a human re-vendors with `bash onboarding/onboard.sh vendor .sandcastle <sha>` (GOTCHAS 4). Until then every rehearsal healer session keeps reading the currently-vendored text. See also #131/#132: the self-pin is already well behind. --- Filed by the swarm healer (watchdog mode, signature `f742cd7e8575`). Evidence: `/tmp/matou-heal-Matou-dev-factory.Ne6kY0`.
Author
Member

swarm-claim host=matou-dev-server-01 run=6828
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=6828 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #134 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 134,
  "status": "success",
  "commits": [
    "4d7b1af"
  ],
  "changed_files": [
    "prompts/rehearsal-heal-prompt.md",
    ".sandcastle/rehearsal-heal-prompt.md",
    "onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "bash tests/judgement-call-prompts-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash onboarding/tests/onboard-lib-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Rewrite lines 45 and 57 to name the mechanism, not the number": "prompts/rehearsal-heal-prompt.md now reads 'the front-door, the co-host-route, the secrets class' (was #1238/#1246/#1247) and 'The fast lane (Ben ruled 2026-09-06)' (was #1270 —). grep '#[0-9]' prompts/ returns nothing (commit 4d7b1af).",
    "Re-render and commit the two reference copies byte-identical": ".sandcastle/rehearsal-heal-prompt.md and onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md re-rendered from the fixed skeleton via prompt_render_one; onboard-lib-test.sh's render-cutover proof (both must re-render byte-identical from skeleton + each consumer's identity/enrichments) now passes (235 passed, 0 failed).",
    "guard tests/judgement-call-prompts-test.sh passes": "33 checks passed (exit 0) — the #51 skeleton-number guard at :133 is green.",
    "Re-run the full offline suite before close": "Full loop run; the two ticketed tests pass. The 5 remaining failures (fleet-tui, list-ready-tasks, rehearsal-healer, rehearsal-report, run-swarm-ready-list) are pre-existing and environmental — they fail identically on clean HEAD (51c8dc6) and were NOT among the two failures the ticket's CI-loop repro at 51c8dc6 reported."
  },
  "summary": "De-numbered prompts/rehearsal-heal-prompt.md (mechanism not tracker numbers) and re-rendered its two cutover reference copies, turning ci.yml's always-red test job green.",
  "blockers": []
}
**close-report** for #134 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 134, "status": "success", "commits": [ "4d7b1af" ], "changed_files": [ "prompts/rehearsal-heal-prompt.md", ".sandcastle/rehearsal-heal-prompt.md", "onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md", "STATUS.md" ], "tests": [ { "command": "bash tests/judgement-call-prompts-test.sh", "exit_code": 0 }, { "command": "bash onboarding/tests/onboard-lib-test.sh", "exit_code": 0 } ], "criteria": { "Rewrite lines 45 and 57 to name the mechanism, not the number": "prompts/rehearsal-heal-prompt.md now reads 'the front-door, the co-host-route, the secrets class' (was #1238/#1246/#1247) and 'The fast lane (Ben ruled 2026-09-06)' (was #1270 —). grep '#[0-9]' prompts/ returns nothing (commit 4d7b1af).", "Re-render and commit the two reference copies byte-identical": ".sandcastle/rehearsal-heal-prompt.md and onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md re-rendered from the fixed skeleton via prompt_render_one; onboard-lib-test.sh's render-cutover proof (both must re-render byte-identical from skeleton + each consumer's identity/enrichments) now passes (235 passed, 0 failed).", "guard tests/judgement-call-prompts-test.sh passes": "33 checks passed (exit 0) — the #51 skeleton-number guard at :133 is green.", "Re-run the full offline suite before close": "Full loop run; the two ticketed tests pass. The 5 remaining failures (fleet-tui, list-ready-tasks, rehearsal-healer, rehearsal-report, run-swarm-ready-list) are pre-existing and environmental — they fail identically on clean HEAD (51c8dc6) and were NOT among the two failures the ticket's CI-loop repro at 51c8dc6 reported." }, "summary": "De-numbered prompts/rehearsal-heal-prompt.md (mechanism not tracker numbers) and re-rendered its two cutover reference copies, turning ci.yml's always-red test job green.", "blockers": [] } ``` </details>
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#134
No description provided.