An unattended engine crew asks the owner for every tool call, and nothing says which calls it may make itself #241

Closed
opened 2026-11-26 06:40:23 +00:00 by pluto · 4 comments
Member

Purpose (gap): an unattended DeepSeek crew works through its calls without the owner answering each one by hand, and the crew rule that answers them is named.

Instance: 2026-11-26 06:35Z to 07:40Z, crew martha-239 (martha-ai/martha#239, the proof run), three martha-engine members on deepseek-flash. The reviewer's first turn asked the owner, one call at a time:

reviewer  permission:call_00_CRMZgleVQlaL8V65ZNkh5022@20261126_1  shell: shell · ls -la /home/rl/work/martha-239-ws
reviewer  permission:call_01_kZdfVoOEtwHZ2aJ4j7PL0296@20261126_1  martha_crew__see_the_crew: martha crew: see the crew

then, after both were allowed,

reviewer  permission:call_00_7h8e6oCAQIyU9FX9kv615083@20261126_1  shell: shell · find /home/rl/work/martha-239-ws -maxdepth 4 ...
reviewer  permission:call_01_2aGTO84qDBYEcxay7geB8496@20261126_1  martha_crew__read_crew_mail: martha crew: read crew mail

Every one was a read of the crew's own workspace or of a crew tool. martha gate reports off for all three members, so this is not the shell gate audit; it is the engine's own permission request reaching the owner. martha answer refuses outside a terminal ("only the owner, at a terminal, answers what a member asks, and this is no terminal"), so a driver who is not sitting in the pane cannot answer at all, and a crew left unattended stops at its first call.

Shape: the engine asks the owner for every tool call, and the crew has no rule that says which calls a member may make without one. In crew-code a member's routine reads are allowed by a declaration rule, and only the acts the owner keeps (a land, a push, a release) reach the owner. Martha's mode.may covers acts between members, and house_rules.gate_* covers the shell gate's audit, but nothing covers the engine's own permission request.

Done when: a crew declares which tool calls its members may make without the owner (at least reads inside the crew's workspace and the crew's own tools), the engine's permission request is answered from that rule rather than from a person, and a test drives one engine member through a read and a crew-tool call with no owner present and both are answered.

Refs martha-ai/martha#239

Purpose (gap): an unattended DeepSeek crew works through its calls without the owner answering each one by hand, and the crew rule that answers them is named. Instance: 2026-11-26 06:35Z to 07:40Z, crew `martha-239` (martha-ai/martha#239, the proof run), three `martha-engine` members on `deepseek-flash`. The reviewer's first turn asked the owner, one call at a time: ``` reviewer permission:call_00_CRMZgleVQlaL8V65ZNkh5022@20261126_1 shell: shell · ls -la /home/rl/work/martha-239-ws reviewer permission:call_01_kZdfVoOEtwHZ2aJ4j7PL0296@20261126_1 martha_crew__see_the_crew: martha crew: see the crew ``` then, after both were allowed, ``` reviewer permission:call_00_7h8e6oCAQIyU9FX9kv615083@20261126_1 shell: shell · find /home/rl/work/martha-239-ws -maxdepth 4 ... reviewer permission:call_01_2aGTO84qDBYEcxay7geB8496@20261126_1 martha_crew__read_crew_mail: martha crew: read crew mail ``` Every one was a read of the crew's own workspace or of a crew tool. `martha gate` reports `off` for all three members, so this is not the shell gate audit; it is the engine's own permission request reaching the owner. `martha answer` refuses outside a terminal ("only the owner, at a terminal, answers what a member asks, and this is no terminal"), so a driver who is not sitting in the pane cannot answer at all, and a crew left unattended stops at its first call. Shape: the engine asks the owner for every tool call, and the crew has no rule that says which calls a member may make without one. In crew-code a member's routine reads are allowed by a declaration rule, and only the acts the owner keeps (a land, a push, a release) reach the owner. Martha's `mode.may` covers acts between members, and `house_rules.gate_*` covers the shell gate's audit, but nothing covers the engine's own permission request. Done when: a crew declares which tool calls its members may make without the owner (at least reads inside the crew's workspace and the crew's own tools), the engine's permission request is answered from that rule rather than from a person, and a test drives one engine member through a read and a crew-tool call with no owner present and both are answered. Refs martha-ai/martha#239
Member

Threat model, before any code (as ordered)

Scope, as the Supervisor ruled it through Mars, and it is binding: "B: gate, then ask" (DECIDED 2026-11-18) stays as
it is.
A call the gate allows and the approved list does not name is asked of the owner. This package does not drop
asks, auto-answer them, or add an "unattended mode" — that is the owner's call, not ours. What it does is make the
owner's approved list actually reach an engine member, so that only unlisted calls are asked.

What is broken today

src/start_an_engine_member/start_an_engine_member.ts:383:

decideOver: (gate) => asked.asks.decide(gate, []),

The approved list is a hard-coded empty array. theWayAfterTheGate (../hear_an_acp_agents_asks) therefore has one way
out for every call the gate allows: ask-the-owner. Nothing the owner allows reaches an engine member, so the crew in
#239 asked once per call for ls, for find, and for two of the crew's own tools. This is not "every call is genuinely
unlisted" — the list is simply never supplied, so the STOP condition Mars named does not apply and the work goes ahead.

For a Claude Code member the same rules are not Martha's to pass on: the host reads the checkout's own allowed settings
and applies them itself. An engine has no such reader, so Martha is the only one who can carry them.

What the rule may answer, and what stays refused

The list carries exactly what the owner already wrote, for the same checkout the owner approved, and nothing wider.
A call runs without the owner's yes only when all of these hold:

  1. the gate allowed it (unchanged — a deny is refused once and nobody is asked);
  2. the owner's own allow rules, in the settings the owner approved for this checkout, name that tool;
  3. the rule names the tool with no input pattern — a bare tool name. A rule that carries a pattern is a decision
    about particular inputs, and this list matches whole tool names only, so carrying Bash(ls:*) here would allow the
    shell tool for every command — a widening the owner never made. A patterned rule is never carried; that call stays
    asked.
    Each rule left behind is named in a note, so an owner reading the crew's records sees what is still being
    asked and why.

Everything else stays refused or stays asked, unchanged:

  • a call the gate denies — refused once, never asked;
  • a tool no owner rule names — asked, as today;
  • a tool named only by a patterned rule — asked, as today;
  • a tool Martha cannot place in the engine's own naming — asked, never guessed at;
  • a call the engine gives no name for — refused unasked, as today (answer_a_goose_call_by_the_entry).

What this must never do

  • Never answer allow_always. Martha keeps answering allow_once / reject_once only, and a request offering no
    once-answer is cancelled (martha#677). Nothing is saved into the engine's own permission store, so nothing can run
    later on a rule the engine kept rather than one the owner wrote.
  • Never let a member answer its own ask. The route, its 0600 socket and martha answer's record are untouched; an
    answer with no owner act behind it still shows as such.
  • Never widen a rule by translation. A rule carries only when the mapping between the host's tool name and the
    engine's is one the engine's facts pin; a mapping that cannot be pinned leaves the call asked.
  • Never read a settings file the owner has not approved — the list is read from the launch the owner approved, and
    the launch is still re-checked on every call (../refuse_launch_of_unapproved_config).

Where it lands

Nothing in src/apply_the_owners_release, release_a_held_member, session_records_in_rows,
start_an_engine_member or the_environment_a_member_is_given is touched by the design except the one line above that
passes the list in, which is Pluto's #240's file. So this waits for #240 (PR 242) to land and branches from the new
main; the rule reading itself is a slice of its own.

## Threat model, before any code (as ordered) Scope, as the Supervisor ruled it through Mars, and it is binding: **"B: gate, then ask" (DECIDED 2026-11-18) stays as it is.** A call the gate allows and the approved list does not name is asked of the owner. This package does **not** drop asks, auto-answer them, or add an "unattended mode" — that is the owner's call, not ours. What it does is make the owner's approved list actually reach an engine member, so that only unlisted calls are asked. ### What is broken today `src/start_an_engine_member/start_an_engine_member.ts:383`: decideOver: (gate) => asked.asks.decide(gate, []), The approved list is a hard-coded empty array. `theWayAfterTheGate` (../hear_an_acp_agents_asks) therefore has one way out for every call the gate allows: `ask-the-owner`. Nothing the owner allows reaches an engine member, so the crew in #239 asked once per call for `ls`, for `find`, and for two of the crew's own tools. This is not "every call is genuinely unlisted" — the list is simply never supplied, so the STOP condition Mars named does not apply and the work goes ahead. For a Claude Code member the same rules are not Martha's to pass on: the host reads the checkout's own allowed settings and applies them itself. An engine has no such reader, so Martha is the only one who can carry them. ### What the rule may answer, and what stays refused The list carries **exactly what the owner already wrote**, for the same checkout the owner approved, and nothing wider. A call runs without the owner's yes only when all of these hold: 1. the gate allowed it (unchanged — a deny is refused once and nobody is asked); 2. the owner's own allow rules, in the settings the owner approved for this checkout, name that tool; 3. the rule names the tool **with no input pattern** — a bare tool name. A rule that carries a pattern is a decision about particular inputs, and this list matches whole tool names only, so carrying `Bash(ls:*)` here would allow the shell tool for every command — a widening the owner never made. **A patterned rule is never carried; that call stays asked.** Each rule left behind is named in a note, so an owner reading the crew's records sees what is still being asked and why. Everything else **stays refused or stays asked**, unchanged: - a call the gate denies — refused once, never asked; - a tool no owner rule names — asked, as today; - a tool named only by a patterned rule — asked, as today; - a tool Martha cannot place in the engine's own naming — asked, never guessed at; - a call the engine gives no name for — refused unasked, as today (`answer_a_goose_call_by_the_entry`). ### What this must never do - **Never answer `allow_always`.** Martha keeps answering `allow_once` / `reject_once` only, and a request offering no once-answer is cancelled (martha#677). Nothing is saved into the engine's own permission store, so nothing can run later on a rule the engine kept rather than one the owner wrote. - **Never let a member answer its own ask.** The route, its 0600 socket and `martha answer`'s record are untouched; an answer with no owner act behind it still shows as such. - **Never widen a rule by translation.** A rule carries only when the mapping between the host's tool name and the engine's is one the engine's facts pin; a mapping that cannot be pinned leaves the call asked. - **Never read a settings file the owner has not approved** — the list is read from the launch the owner approved, and the launch is still re-checked on every call (../refuse_launch_of_unapproved_config). ### Where it lands Nothing in `src/apply_the_owners_release`, `release_a_held_member`, `session_records_in_rows`, `start_an_engine_member` or `the_environment_a_member_is_given` is touched by the design except the one line above that passes the list in, which is Pluto's #240's file. So this waits for #240 (PR 242) to land and branches from the new main; the rule reading itself is a slice of its own.
Member

Addendum: the Supervisor's ruling on patterned rules (binding; Raf can overrule)

The Supervisor ruled that carrying patterned rules is in #241, and is what "B: gate, then ask" already says rather
than a widening: under B the owner is asked only for a call the approved list does not name, and Bash(ls:*) names
ls -la. This replaces the one paragraph of the threat model above that left patterned rules asked. Everything else in
it stands: no asks dropped, no auto-answer, no unattended mode, no allow_always, no member answering its own ask,
nothing read but the settings the owner approved.

The semantics, matched to how Claude Code reads the same rule

  1. Exact and prefix rules. Bash(cmd) matches a command line equal to cmd. Bash(cmd:*) matches a command line
    that is cmd itself or begins with cmd as a whole word.
  2. A compound line passes only if every part does. A line split by ;, &&, ||, | or a newline runs unasked
    only when every part matches a rule. One part that no rule names sends the whole line to the owner.
  3. When in doubt, ask. Command substitution ($(…)), backticks, process substitution (<(…), >(…)), and any
    redirection into a file (>, >>, and <>) fall back to asking. Nothing is evaluated, and nothing is guessed at.
  4. The gate first, and deny wins. The gate's verdict is read before any rule; a call the gate denies is refused once
    and no rule can allow it, whatever the owner's settings say.
  5. The same for the crew's own tools and the shell. A bare mcp__martha_crew__x carries as martha_crew__x; a rule
    for a tool whose engine name no fact pins is asked, never guessed at.

Mutants the matcher must fail by name

Guard code, so the tests are written to kill these three, each of which must make a case fail:

  • a non-matching part passes — a compound line whose second part no rule names runs;
  • $(…) passes — a command substitution is treated as an ordinary word and matched;
  • deny loses to allow — a call the gate denies runs because a rule matched it.

If this is more than about a day's work I say so before building it, per Mars's instruction; it is not, it is a
conservative splitter and a matcher, and the conservatism (ask on anything not read plainly) is what keeps it small.

## Addendum: the Supervisor's ruling on patterned rules (binding; Raf can overrule) The Supervisor ruled that carrying patterned rules is **in #241**, and is what "B: gate, then ask" already says rather than a widening: under B the owner is asked only for a call the approved list does not name, and `Bash(ls:*)` names `ls -la`. This replaces the one paragraph of the threat model above that left patterned rules asked. Everything else in it stands: no asks dropped, no auto-answer, no unattended mode, no `allow_always`, no member answering its own ask, nothing read but the settings the owner approved. ### The semantics, matched to how Claude Code reads the same rule 1. **Exact and prefix rules.** `Bash(cmd)` matches a command line equal to `cmd`. `Bash(cmd:*)` matches a command line that is `cmd` itself or begins with `cmd` as a whole word. 2. **A compound line passes only if every part does.** A line split by `;`, `&&`, `||`, `|` or a newline runs unasked only when **every** part matches a rule. One part that no rule names sends the whole line to the owner. 3. **When in doubt, ask.** Command substitution (`$(…)`), backticks, process substitution (`<(…)`, `>(…)`), and any redirection into a file (`>`, `>>`, and `<>`) fall back to asking. Nothing is evaluated, and nothing is guessed at. 4. **The gate first, and deny wins.** The gate's verdict is read before any rule; a call the gate denies is refused once and no rule can allow it, whatever the owner's settings say. 5. **The same for the crew's own tools and the shell.** A bare `mcp__martha_crew__x` carries as `martha_crew__x`; a rule for a tool whose engine name no fact pins is asked, never guessed at. ### Mutants the matcher must fail by name Guard code, so the tests are written to kill these three, each of which must make a case fail: - **a non-matching part passes** — a compound line whose second part no rule names runs; - **`$(…)` passes** — a command substitution is treated as an ordinary word and matched; - **deny loses to allow** — a call the gate denies runs because a rule matched it. If this is more than about a day's work I say so before building it, per Mars's instruction; it is not, it is a conservative splitter and a matcher, and the conservatism (ask on anything not read plainly) is what keeps it small.
Member

PR #313 lands two commits from Raf's owner/953-chat on this issue: a wildcard in a shell deny holds its lines, not the whole shell (64c66e00), and a redirect that writes nowhere does not make a line unreadable (f3b4b52a). It also adds Saturnus's required fix F1: a >&<word> or digit-glued redirect that writes a file is refused, so the call is asked.

Neither commit is this issue's Done-when (an unattended crew answered by rule). They are fixes inside it, and #241 stays open.

Refs #241, #313

PR #313 lands two commits from Raf's owner/953-chat on this issue: a wildcard in a shell deny holds its lines, not the whole shell (64c66e00), and a redirect that writes nowhere does not make a line unreadable (f3b4b52a). It also adds Saturnus's required fix F1: a `>&<word>` or digit-glued redirect that writes a file is refused, so the call is asked. **Neither commit is this issue's Done-when** (an unattended crew answered by rule). They are fixes inside it, and #241 stays open. Refs #241, #313
Member

Done-when check against main 7daf547b:

  • "a crew declares which tool calls its members may make without the owner (at least reads inside the crew's workspace and the crew's own tools)": MET.
    • The rule is the owner's own approved allow rules, carried to an engine member (land 45a5c0dc, PASS r=2). This follows the Supervisor's ruling "B: gate, then ask" in comments 5762 and 5773.
    • The crew's own tools run unasked by their whole engine names, with or without owner rules (#283, land e1561073).
    • Later fixes inside it landed in #313: a wildcard shell deny, a redirect that writes nowhere, and F1.
  • "the engine's permission request is answered from that rule rather than from a person": MET.
    • start_an_engine_member.ts hands the launch's rules to the decision (asked.asks.decide(gate, mayRun)), where it was a hard-coded [] before.
    • Test: "martha#241 r2 R6: the owner's approved rule runs the engine's call unasked, and each rule left asked is told to the owner".
  • "a test drives one engine member through a read and a crew-tool call with no owner present and both are answered": MET by PR #330 (7fdeec25).
    • Test: start_an_engine_member.node-test.ts "martha#241 line 3: an engine member's read and its crew tool call are both answered by rule, with no owner present".
    • One engine member makes a shell ls (allowed by the owner's Bash(ls:*)) and a martha_crew read_crew_mail call in one turn. Both are answered allow-once, and no ask is left open.
    • Mutants: the rules not handed to the decision, and the crew's own tools not granted. Each fails this test.

Every line is met. Closing.

**Done-when check against main `7daf547b`**: - "a crew declares which tool calls its members may make without the owner (at least reads inside the crew's workspace and the crew's own tools)": **MET**. - The rule is the owner's own approved allow rules, carried to an engine member (land `45a5c0dc`, PASS r=2). This follows the Supervisor's ruling "B: gate, then ask" in comments 5762 and 5773. - The crew's own tools run unasked by their whole engine names, with or without owner rules (#283, land `e1561073`). - Later fixes inside it landed in #313: a wildcard shell deny, a redirect that writes nowhere, and F1. - "the engine's permission request is answered from that rule rather than from a person": **MET**. - `start_an_engine_member.ts` hands the launch's rules to the decision (`asked.asks.decide(gate, mayRun)`), where it was a hard-coded `[]` before. - Test: "martha#241 r2 R6: the owner's approved rule runs the engine's call unasked, and each rule left asked is told to the owner". - "a test drives one engine member through a read and a crew-tool call with no owner present and both are answered": **MET** by PR #330 (`7fdeec25`). - Test: `start_an_engine_member.node-test.ts` "martha#241 line 3: an engine member's read and its crew tool call are both answered by rule, with no owner present". - One engine member makes a shell `ls` (allowed by the owner's `Bash(ls:*)`) and a `martha_crew` `read_crew_mail` call in one turn. Both are answered allow-once, and no ask is left open. - Mutants: the rules not handed to the decision, and the crew's own tools not granted. Each fails this test. Every line is met. Closing.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
3 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#241
No description provided.