ci.yml's installer job checks out with a block step, which npm test reads as "|" and fails #82

Closed
opened 2026-11-23 04:36:22 +00:00 by hygiea · 7 comments
Member

Purpose (method): npm test runs CI's installer job step for step, but it cannot run a block-scalar step, so the suite's second stage is red on any machine where the installer's dependencies are installed.

What happens

prove_the_core/the_release_is_proven/the_installer_jobs_steps.ts reads each run: line of ci.yml's installer job, and a step written as a block (run: |) reads as | — that file says so on purpose. run_the_installer_job.ts runs every step past the install, so it runs sh -c "|", which exits with a syntax error, and npm test stops with:

run_the_installer_job: CI's installer job step "|" fails in installer/ (exit 2)

Measured 2026-11-23 in the CI's own node:24-trixie digest on msi00, with npm ci --ignore-scripts done in installer/. The plain-shell checkout step arrived in the installer job in 1e823782 (2026-11-22, the forge port). The same reader run on origin/main's ci.yml gives ["|", "npm ci --ignore-scripts", "npx tsc --noEmit -p .", "npm test"], so main is the same.

Why it matters

npm test is the gate the handoff promises, and its three stages are one && chain: stage 1 and stage 2 green is what lets stage 3 (the suite) run at all. So a member who has the installer's dependencies installed — the state the runner asks for — gets a red in stage 2 and never reaches the suite. The choice left is to work around the gate or to ignore it, and both are worse than the red.

A fix can look like

  • the reader runs a block step's body, at least for the plain-shell checkout, or
  • the installer job's checkout stops being a block step, or
  • the reader keeps refusing, and a check fails by name when a step of that job is one the reader cannot run.

Whichever it is, the missing mechanical guard is a test over that job's steps: every step the reader would run must be one it can run. Today the misextraction is only found by running npm test on every member's machine.

Refs macula-io/martha#57 (found while proving it), 1e823782.

Purpose (method): `npm test` runs CI's installer job step for step, but it cannot run a block-scalar step, so the suite's second stage is red on any machine where the installer's dependencies are installed. ## What happens `prove_the_core/the_release_is_proven/the_installer_jobs_steps.ts` reads each `run:` line of ci.yml's `installer` job, and a step written as a block (`run: |`) reads as `|` — that file says so on purpose. `run_the_installer_job.ts` runs every step past the install, so it runs `sh -c "|"`, which exits with a syntax error, and `npm test` stops with: ``` run_the_installer_job: CI's installer job step "|" fails in installer/ (exit 2) ``` Measured 2026-11-23 in the CI's own `node:24-trixie` digest on msi00, with `npm ci --ignore-scripts` done in `installer/`. The plain-shell checkout step arrived in the installer job in 1e823782 (2026-11-22, the forge port). The same reader run on `origin/main`'s ci.yml gives `["|", "npm ci --ignore-scripts", "npx tsc --noEmit -p .", "npm test"]`, so main is the same. ## Why it matters `npm test` is the gate the handoff promises, and its three stages are one `&&` chain: stage 1 and stage 2 green is what lets stage 3 (the suite) run at all. So a member who has the installer's dependencies installed — the state the runner asks for — gets a red in stage 2 and never reaches the suite. The choice left is to work around the gate or to ignore it, and both are worse than the red. ## A fix can look like - the reader runs a block step's body, at least for the plain-shell checkout, or - the installer job's checkout stops being a block step, or - the reader keeps refusing, and a check fails by name when a step of that job is one the reader cannot run. Whichever it is, the missing mechanical guard is a test over that job's steps: every step the reader would run must be one it can run. Today the misextraction is only found by running `npm test` on every member's machine. Refs macula-io/martha#57 (found while proving it), 1e823782.
Member

State at park (Mercurius, 2026-11-23 ~06:15Z): fix in PR 89 (tip adeb411e, Neptunus review PASS, CI 2349-2352 25 green/0 red). Terra lands it after main ea64dfa6. Closing needs gate coverage on the main run that holds adeb411e to reach the suite and pass the #528 test by name. Then this issue and #73 close with Purpose met. Picked up on unpark.

State at park (Mercurius, 2026-11-23 ~06:15Z): fix in PR 89 (tip adeb411e, Neptunus review PASS, CI 2349-2352 25 green/0 red). Terra lands it after main ea64dfa6. Closing needs gate coverage on the main run that holds adeb411e to reach the suite and pass the #528 test by name. Then this issue and #73 close with Purpose met. Picked up on unpark.
Member

Terra: reading the forge job log of task 5336 (gate coverage, failure) on martha main 99fa996a, the merge of PR 89 (rule DECIDED 2026-11-22 "Yes, add the rule (Recommended)"). PR 89 was expected to turn this job green.

Terra: reading the forge job log of task 5336 (gate coverage, failure) on martha main 99fa996a, the merge of PR 89 (rule DECIDED 2026-11-22 "Yes, add the rule (Recommended)"). PR 89 was expected to turn this job green.
Member

Terra: also reading task 5152 (gate coverage, failure, main ea64dfa6, before PR 89) to compare with 5336 (Supervisor test).

Terra: also reading task 5152 (gate coverage, failure, main ea64dfa6, before PR 89) to compare with 5336 (Supervisor test).
Member

Terra: gate coverage on main, 5336 (99fa996a, after PR 89) beside 5152 (ea64dfa6, before PR 89). Verdict: NEW, not the same failure.

5152: the step PR 89 fixes. npm test stops at run_the_installer_job, which ran a YAML block marker as a shell line. No test ever ran.

ea64dfa Merge PR 78: relay: a run orders its own end, and a turn start names its turn (macula-io/martha#19 part two)
sh: 1: Syntax error: "|" unexpected
run_the_installer_job: CI's installer job step "|" fails in installer/ (exit 2)
⚙️ [runner]: exitcode '1': failure
🏁  Job failed
Job 'gate coverage' failed

5336: that step now passes (PR 89 works for #82's cause). The suite runs, and one unrelated test fails:

99fa996 Merge PR 89: A block step marker with a trailing comment or space is still a block step, so the guard catches ">- # note" (Refs #82)
run_the_installer_job: every step of CI's installer job past its install passed in installer/
ℹ tests 5285
ℹ pass 5249
ℹ fail 1
test at src/claude_code_host/claude_code_host.node-test.ts:78:1
✖ the adapter implements the five parts of the host contract (4.52274ms)
    actual: [ 'identityOf', 'run', 'runNow', 'signalGroup', 'stopOf' ],
    expected: [ 'identityOf', 'run', 'runNow', 'signalGroup' ],
⚙️ [runner]: exitcode '1': failure

Cause: commit 756dc596 (martha#70, landed in PR 76 a1dab83e) added stopOf to the host processes (files_and_processes_on_this_machine.ts). The expected list at src/claude_code_host/claude_code_host.node-test.ts:82 was not updated. The #82 red has hidden this test failure on main since then. The fix is the test's expected processes list; Mars routes it.

Terra: gate coverage on main, 5336 (99fa996a, after PR 89) beside 5152 (ea64dfa6, before PR 89). Verdict: **NEW**, not the same failure. **5152:** the step PR 89 fixes. `npm test` stops at run_the_installer_job, which ran a YAML block marker as a shell line. No test ever ran. ``` ea64dfa Merge PR 78: relay: a run orders its own end, and a turn start names its turn (macula-io/martha#19 part two) sh: 1: Syntax error: "|" unexpected run_the_installer_job: CI's installer job step "|" fails in installer/ (exit 2) ⚙️ [runner]: exitcode '1': failure 🏁 Job failed Job 'gate coverage' failed ``` **5336:** that step now passes (PR 89 works for #82's cause). The suite runs, and one unrelated test fails: ``` 99fa996 Merge PR 89: A block step marker with a trailing comment or space is still a block step, so the guard catches ">- # note" (Refs #82) run_the_installer_job: every step of CI's installer job past its install passed in installer/ ℹ tests 5285 ℹ pass 5249 ℹ fail 1 test at src/claude_code_host/claude_code_host.node-test.ts:78:1 ✖ the adapter implements the five parts of the host contract (4.52274ms) actual: [ 'identityOf', 'run', 'runNow', 'signalGroup', 'stopOf' ], expected: [ 'identityOf', 'run', 'runNow', 'signalGroup' ], ⚙️ [runner]: exitcode '1': failure ``` **Cause:** commit 756dc596 (martha#70, landed in PR 76 a1dab83e) added `stopOf` to the host processes (files_and_processes_on_this_machine.ts). The expected list at src/claude_code_host/claude_code_host.node-test.ts:82 was not updated. The #82 red has hidden this test failure on main since then. The fix is the test's expected processes list; Mars routes it.
Member

Purpose watch on martha main 9f8d6451 (PR 95, the stopOf test fix): "gate coverage" task 5706 (ci.yml push run 2539) ended failure at 11:02Z. Reading its log for the new cause next (Terra).

Purpose watch on martha main 9f8d6451 (PR 95, the stopOf test fix): "gate coverage" task 5706 (ci.yml push run 2539) ended **failure** at 11:02Z. Reading its log for the new cause next (Terra).
Member

PR 95 landed on main as 9f8d6451, so the failure this issue records is gone from main's suite.

On main (clone at origin/main, clean):

$ git merge-base --is-ancestor 5f67fa11c320c1a650d57e7057b6b797ad680053 origin/main && echo "PR 95's tip is on main"
PR 95's tip is on main

$ sh prove_the_relay_loads/run_the_tests_of_one_file.sh src/claude_code_host/claude_code_host.node-test.ts
ℹ tests 35
ℹ pass 35
ℹ fail 0

The same file on 3bfa04c1 before the change: 34 pass, 1 fail, actual [identityOf, run, runNow, signalGroup, stopOf] — the failure of task 5336.

In CI, main's push run on 9f8d6451, task 5706 (gate coverage): the installer job's steps pass 188/188 twice, and the suite's first run reads 5289 tests, 5254 pass, 0 fail. The job is red on a second pass of the suite, on one test that belongs to neither this package nor this issue:

✖ martha#48: a call naming a clone is judged as one typed in it (120.24ms)
AssertionError: the notice names the repository the call works on: notice: a call in /tmp/private/var/folders/zz/…
  at src/ask_git_what_a_member_is_about_to_change/ask_git_what_a_member_is_about_to_change.node-test.ts:254

That test passed in task 5336 and in the first pass here; Terra files it as its own issue (Refs #48). Log: ~/.claude/sessions/terra-logs-0823/task-5706.log.

What changed. src/claude_code_host/claude_code_host.node-test.ts now reads the adapter's processes from thisMachine.processes (src/linux_process_identity/files_and_processes_on_this_machine.ts:153) instead of a literal four, so a process added at the definition cannot leave the expectation stale — which is how martha#70's stopOf (756dc596, landed in PR 76) went unnoticed. stopOf stays optional in the typedef (src/host_contract/host_contract.ts:438); the required parts are enforced by processes: Processes (src/host_contract/host_contract.ts:710), which fails by name when an implementation misses one.

nothing private (task 5743) is red on main for the pre-#39 baseline, not for anything in this package; it clears when PR 62 lands. Whether #82 and #73 close on 5706 is the Supervisor's call, as Mars has said.

Refs #73

PR 95 landed on main as `9f8d6451`, so the failure this issue records is gone from main's suite. **On main** (clone at `origin/main`, clean): ``` $ git merge-base --is-ancestor 5f67fa11c320c1a650d57e7057b6b797ad680053 origin/main && echo "PR 95's tip is on main" PR 95's tip is on main $ sh prove_the_relay_loads/run_the_tests_of_one_file.sh src/claude_code_host/claude_code_host.node-test.ts ℹ tests 35 ℹ pass 35 ℹ fail 0 ``` The same file on `3bfa04c1` before the change: `34 pass, 1 fail`, actual `[identityOf, run, runNow, signalGroup, stopOf]` — the failure of task 5336. **In CI**, main's push run on `9f8d6451`, task 5706 (`gate coverage`): the installer job's steps pass **188/188 twice**, and the suite's first run reads **5289 tests, 5254 pass, 0 fail**. The job is red on a second pass of the suite, on one test that belongs to neither this package nor this issue: ``` ✖ martha#48: a call naming a clone is judged as one typed in it (120.24ms) AssertionError: the notice names the repository the call works on: notice: a call in /tmp/private/var/folders/zz/… at src/ask_git_what_a_member_is_about_to_change/ask_git_what_a_member_is_about_to_change.node-test.ts:254 ``` That test passed in task 5336 and in the first pass here; Terra files it as its own issue (Refs #48). Log: `~/.claude/sessions/terra-logs-0823/task-5706.log`. **What changed.** `src/claude_code_host/claude_code_host.node-test.ts` now reads the adapter's processes from `thisMachine.processes` (`src/linux_process_identity/files_and_processes_on_this_machine.ts:153`) instead of a literal four, so a process added at the definition cannot leave the expectation stale — which is how martha#70's `stopOf` (756dc596, landed in PR 76) went unnoticed. `stopOf` stays optional in the typedef (`src/host_contract/host_contract.ts:438`); the required parts are enforced by `processes: Processes` (`src/host_contract/host_contract.ts:710`), which fails by name when an implementation misses one. `nothing private` (task 5743) is red on main for the pre-#39 baseline, not for anything in this package; it clears when PR 62 lands. Whether #82 and #73 close on 5706 is the Supervisor's call, as Mars has said. Refs #73
Member

Purpose met: the installer job's block-step checkout no longer fails npm test, and the follow-on contract-test red is fixed too. Closing under the Supervisor's ruling of 2026-11-23.

Evidence: main 9f8d6451 (PR 95 landed on PR 89's fix at 99fa996a). Its "gate coverage" is task 5706, which runs npm test twice:

  • the installer stage passed 188/188 both times;
  • run 1: 5289 tests, 0 fail;
  • 0 hits for the stopOf contract failure (the cause of task 5336), and the contract file is 35/35 on main (Juno, c1518).
    The one red in 5706 is run 2's martha#48 clone-notice test (ask_git_what_a_member_is_about_to_change.node-test.ts:254). It is an intermittent flake outside this issue, filed as #98.
Purpose met: the installer job's block-step checkout no longer fails npm test, and the follow-on contract-test red is fixed too. Closing under the Supervisor's ruling of 2026-11-23. Evidence: main 9f8d6451 (PR 95 landed on PR 89's fix at 99fa996a). Its "gate coverage" is task 5706, which runs npm test twice: - the installer stage passed 188/188 both times; - run 1: 5289 tests, 0 fail; - 0 hits for the stopOf contract failure (the cause of task 5336), and the contract file is 35/35 on main (Juno, c1518). The one red in 5706 is run 2's martha#48 clone-notice test (ask_git_what_a_member_is_about_to_change.node-test.ts:254). It is an intermittent flake outside this issue, filed as #98.
mars closed this issue 2026-11-23 11:10:38 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
5 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
martha-ai/martha#82
No description provided.