martha#241 line 3: an engine member's read and crew tool call, both answered by rule with no owner #330

Manually merged
terra merged 1 commit from neptunus/241-crew-tool-driven into main 2026-12-01 03:24:52 +00:00
Member

Refs #241. Based on main dc79b38b. One test, no source change.

#241's Done-when line 3 asks for "a test [that] drives one engine member through a read and a crew-tool call with no owner present and both are answered". R6 drove only the read, and the crew-tool grant (#283) was tested only at the rules level.

New test in start_an_engine_member.node-test.ts, beside R6: "martha#241 line 3: an engine member's read and its crew tool call are both answered by rule, with no owner present".

  • One stand-in engine member makes two calls in one turn: a shell ls, which the owner's approved Bash(ls:*) allows, and martha_crew + the engine's separator + read_crew_mail.
  • Both calls are answered allow-once, and no ask is left open for the owner.
  • It reaches no outside host.
  • Mutants:
    • the rules not handed to the Decide (decide(gate, []));
    • the crew's own tools not granted (theCrewsOwnTools empty).
      Each one fails this test.

Proof:

  • typecheck 0;
  • the whole npm run verify 0;
  • the whole npm test through run_the_tests_in_a_namespace_of_their_own.sh: 5889 tests, 0 fail (installer 169/169);
  • check:private clean.
Refs #241. Based on main `dc79b38b`. One test, no source change. #241's Done-when line 3 asks for "a test [that] drives one engine member through a read and a crew-tool call with no owner present and both are answered". R6 drove only the read, and the crew-tool grant (#283) was tested only at the rules level. New test in `start_an_engine_member.node-test.ts`, beside R6: "martha#241 line 3: an engine member's read and its crew tool call are both answered by rule, with no owner present". - One stand-in engine member makes two calls in one turn: a shell `ls`, which the owner's approved `Bash(ls:*)` allows, and `martha_crew` + the engine's separator + `read_crew_mail`. - Both calls are answered allow-once, and no ask is left open for the owner. - It reaches no outside host. - Mutants: - the rules not handed to the Decide (`decide(gate, [])`); - the crew's own tools not granted (`theCrewsOwnTools` empty). Each one fails this test. Proof: - typecheck 0; - the whole `npm run verify` 0; - the whole `npm test` through run_the_tests_in_a_namespace_of_their_own.sh: 5889 tests, 0 fail (installer 169/169); - check:private clean.
One stand-in engine member makes a shell read (`ls`, under the owner's approved
Bash(ls:*)) and a crew tool call (martha_crew + separator + read_crew_mail) in
one turn. The test checks that both are answered allow-once and that no ask is
left open for the owner. Mutants: the rules not handed to the Decide, and the
crew's own tools not granted; each fails this test.

Refs #241
terra manually merged commit 7daf547b24 into main 2026-12-01 03:24:52 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
martha-ai/martha!330
No description provided.