ci red since 4149528: the rehearsal-heal skeleton changed but its two rendered cutover copies did not #148

Closed
opened 2026-09-15 20:11:56 +00:00 by matou-build-agent · 2 comments

ci on main has been red since 4149528 and is still red at the tip
(1c90281). Two cutover-proof checks in onboarding/tests/onboard-lib-test.sh
fail:

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

4149528 ("rehearsal healer rule 1 allows a MOVED assertion") added six lines
of prose to refusal rule 1 in the skeleton prompts/rehearsal-heal-prompt.md
but did not re-render the two derived copies the cutover proof compares
against:

  • .sandcastle/rehearsal-heal-prompt.md
  • onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md

Verified by bisect on the runner host: onboarding/tests/onboard-lib-test.sh
is 235 passed, 0 failed at 9055eb5 (4149528^) and 233 passed, 2 failed at
both 4149528 and 1c90281. No other test in the suite fails; bash -n is clean.

This is the same failure mode as #134 (repaired by 4d7b1af, "de-number the
rehearsal-heal skeleton and re-render its cutover copies — CI back to green").
Every other prompts/ commit in the log (824686b, cb611df, e307033, f0a3daa,
07d779e) lands the skeleton and both derived copies together; cf2efb0 and now
4149528 are the two that did not.

The fix (verified, mechanical)

Re-rendering both copies from the CURRENT skeleton produces exactly the six
lines 4149528 added to rule 1 and nothing else — no other slot moved, no other
file differs. I proved this in a throwaway clone on matou-workstation by
driving onboard_render_prompts the same way the test does (temp FACTORY_REPO
carrying prompts/*.md, each consumer's own identity + prompt-enrichments/):
after the render only rehearsal-heal-prompt.md differs, by this hunk, in both
consumers:

+   **MOVING a check is allowed** - if the fix is to run the SAME assertion
+   somewhere else (e.g. pull a read-back below the step that persists what it
+   reads) and the assertion line reappears byte-for-byte (indentation aside),
+   nothing it proves is weakened; heal it in-lane, do not pre-emptively file. The
+   rails know the difference: a removed assertion re-added verbatim is a move and
+   passes; a removed assertion whose value changed, or with no twin, is refused.

So: re-render both copies, confirm onboard-lib-test.sh returns to
235 passed, 0 failed, and land it as one commit. The wording itself is
already decided and explained in 4149528's message, so this is a deliberate
re-render, not a new prose decision.

Why the healer did not do it

The complete fix has to touch onboarding/tests/fixtures/idss-prompts/ — the
factory source at the repo root, which is product-class and outside the swarm
healer's lane. .sandcastle/rehearsal-heal-prompt.md alone would have left CI
red, so I changed nothing. Note also that a root change only reaches the
running .sandcastle/ copy when a human bumps the pin
(bash onboarding/onboard.sh vendor .sandcastle <sha>) — but the .sandcastle
half of THIS fix is one of the five rendered prompt copies the consumer commits
directly, so landing it here is what the test checks; the pin (currently
2445159, see #131/#132) is a separate arc.

Worth considering as a follow-up

The suite catches this only after the push. If check-harness-drift.sh's
stale-rendered-prompt check (GOTCHAS 18 / the note at GOTCHAS:273) ran as a
pre-push or Gate-0 step for commits touching prompts/, this class of red
would be impossible to land. Two occurrences now (#134, this one) suggests the
guard is worth the wiring.


Filed by the swarm healer (watchdog mode, signature f742cd7e8575) from evidence
in /tmp/matou-heal-Matou-dev-factory.g27QZw.

`ci` on `main` has been red since 4149528 and is still red at the tip (1c90281). Two cutover-proof checks in `onboarding/tests/onboard-lib-test.sh` fail: 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 4149528 ("rehearsal healer rule 1 allows a MOVED assertion") added six lines of prose to refusal rule 1 in the skeleton `prompts/rehearsal-heal-prompt.md` but did **not** re-render the two derived copies the cutover proof compares against: - `.sandcastle/rehearsal-heal-prompt.md` - `onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md` Verified by bisect on the runner host: `onboarding/tests/onboard-lib-test.sh` is `235 passed, 0 failed` at 9055eb5 (4149528^) and `233 passed, 2 failed` at both 4149528 and 1c90281. No other test in the suite fails; `bash -n` is clean. This is the same failure mode as #134 (repaired by 4d7b1af, "de-number the rehearsal-heal skeleton and re-render its cutover copies — CI back to green"). Every other prompts/ commit in the log (824686b, cb611df, e307033, f0a3daa, 07d779e) lands the skeleton and both derived copies together; cf2efb0 and now 4149528 are the two that did not. ## The fix (verified, mechanical) Re-rendering both copies from the CURRENT skeleton produces exactly the six lines 4149528 added to rule 1 and nothing else — no other slot moved, no other file differs. I proved this in a throwaway clone on `matou-workstation` by driving `onboard_render_prompts` the same way the test does (temp FACTORY_REPO carrying `prompts/*.md`, each consumer's own identity + `prompt-enrichments/`): after the render only `rehearsal-heal-prompt.md` differs, by this hunk, in both consumers: + **MOVING a check is allowed** - if the fix is to run the SAME assertion + somewhere else (e.g. pull a read-back below the step that persists what it + reads) and the assertion line reappears byte-for-byte (indentation aside), + nothing it proves is weakened; heal it in-lane, do not pre-emptively file. The + rails know the difference: a removed assertion re-added verbatim is a move and + passes; a removed assertion whose value changed, or with no twin, is refused. So: re-render both copies, confirm `onboard-lib-test.sh` returns to `235 passed, 0 failed`, and land it as one commit. The wording itself is already decided and explained in 4149528's message, so this is a deliberate re-render, not a new prose decision. ## Why the healer did not do it The complete fix has to touch `onboarding/tests/fixtures/idss-prompts/` — the factory source at the repo root, which is product-class and outside the swarm healer's lane. `.sandcastle/rehearsal-heal-prompt.md` alone would have left CI red, so I changed nothing. Note also that a root change only reaches the running `.sandcastle/` copy when a human bumps the pin (`bash onboarding/onboard.sh vendor .sandcastle <sha>`) — but the `.sandcastle` half of THIS fix is one of the five rendered prompt copies the consumer commits directly, so landing it here is what the test checks; the pin (currently 2445159, see #131/#132) is a separate arc. ## Worth considering as a follow-up The suite catches this only after the push. If `check-harness-drift.sh`'s stale-rendered-prompt check (GOTCHAS 18 / the note at GOTCHAS:273) ran as a pre-push or Gate-0 step for commits touching `prompts/`, this class of red would be impossible to land. Two occurrences now (#134, this one) suggests the guard is worth the wiring. --- Filed by the swarm healer (watchdog mode, signature f742cd7e8575) from evidence in `/tmp/matou-heal-Matou-dev-factory.g27QZw`.
Author
Member

swarm-claim host=bens-mac-04 run=10384
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=10384 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #148 — status success

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

envelope
{
  "issue": 148,
  "status": "success",
  "commits": [
    "c4c3c30"
  ],
  "changed_files": [
    ".sandcastle/rehearsal-heal-prompt.md",
    "onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "bash onboarding/tests/onboard-lib-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "re-render both cutover copies from the current skeleton": "commit c4c3c30 rewrites .sandcastle/rehearsal-heal-prompt.md and onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md; produced by driving the real onboard_render_prompts for both consumers against the current prompts/rehearsal-heal-prompt.md skeleton",
    "only the six-line rule-1 hunk changes, no other slot moved": "the render diff for both consumers is exactly 4149528's six-line MOVED-assertion hunk in rule 1; the other four rendered prompts (prompt.md, heal-prompt.md, rehearsal-report-prompt.md, session-runner-prompt.md) were byte-identical for both idss and dev-factory",
    "onboard-lib-test.sh returns to 235 passed, 0 failed": "bash onboarding/tests/onboard-lib-test.sh -> 'onboard-lib: 235 passed, 0 failed' (exit 0); the two previously-failing render_prompts (idss)/(dev-factory) rehearsal-heal checks now pass",
    "land as one commit": "single commit c4c3c30 on origin/main"
  },
  "summary": "Re-rendered the rehearsal-heal cutover copies (.sandcastle + idss fixture) from the current skeleton, restoring onboard-lib-test.sh to 235 passed and ci to green.",
  "blockers": []
}
**close-report** for #148 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 148, "status": "success", "commits": [ "c4c3c30" ], "changed_files": [ ".sandcastle/rehearsal-heal-prompt.md", "onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md", "STATUS.md" ], "tests": [ { "command": "bash onboarding/tests/onboard-lib-test.sh", "exit_code": 0 } ], "criteria": { "re-render both cutover copies from the current skeleton": "commit c4c3c30 rewrites .sandcastle/rehearsal-heal-prompt.md and onboarding/tests/fixtures/idss-prompts/rehearsal-heal-prompt.md; produced by driving the real onboard_render_prompts for both consumers against the current prompts/rehearsal-heal-prompt.md skeleton", "only the six-line rule-1 hunk changes, no other slot moved": "the render diff for both consumers is exactly 4149528's six-line MOVED-assertion hunk in rule 1; the other four rendered prompts (prompt.md, heal-prompt.md, rehearsal-report-prompt.md, session-runner-prompt.md) were byte-identical for both idss and dev-factory", "onboard-lib-test.sh returns to 235 passed, 0 failed": "bash onboarding/tests/onboard-lib-test.sh -> 'onboard-lib: 235 passed, 0 failed' (exit 0); the two previously-failing render_prompts (idss)/(dev-factory) rehearsal-heal checks now pass", "land as one commit": "single commit c4c3c30 on origin/main" }, "summary": "Re-rendered the rehearsal-heal cutover copies (.sandcastle + idss fixture) from the current skeleton, restoring onboard-lib-test.sh to 235 passed and ci to 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#148
No description provided.