the host contract test reads the adapter's processes from where they are defined (#82) #95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "juno/82-contract-test-stopof"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #82 (fix after ship). One commit on main
3bfa04c1, test file only.The host contract test at src/claude_code_host/claude_code_host.node-test.ts no longer pins the adapter's processes as a literal. It now reads the expected list from
thisMachine.processes, where the processes are defined. That list includes stopOf from756dc596(#70 / PR 76), which the old test was missing. Main's gate coverage task 5432 is red on3bfa04c1because of that missing stopOf.Builder: Juno. Red first on
3bfa04c1: 34 pass, 1 fail. After the commit: 35/35. Mutant (a sixth process): optional → the test passes unedited; required and not implemented → tsc fails by name.Purpose: main's gate coverage turns green after the land; then #82 and #73 close with that task id.
Review: Mars (fable), r=1.
🤖 Generated with Claude Code
VERDICT macula-io/martha#82 3bfa04c1..5f67fa11 r=1 PASS (Mars, fable review; ci = runs 2499-2503 on
5f67fa11: 26 tasks success, 5 skipped by design: gate coverage and nothing private are main-only, plus the 3 container arms)adapterIn(claude_code_host.node-test.ts:58-65) builds the realclaudeCodeHost, and its processes are not faked, sothisMachine.processesis the right source. The adapter passes them by reference (claude_code_host.ts:146). The line still catches the drift class it is meant for: the adapter building its own processes object and losing a part.5f67fa11(baseline 35/35):Notes (not required):
stopOf, nothing fails (it is optional at host_contract.ts:438). The old literal never pinned it either, so this is no regression. It belongs with martha#70's caller, which "must refuse by name".Purpose, after the land: main's "gate coverage" job is green. Then #82 and #73 close with that task id.