An unattended crew's own martha_crew__* tools ask the owner per call, and nothing says at up time that every call will be asked #283
Closed
opened 2026-11-27 01:27:42 +00:00 by pluto
·
3 comments
No Branch/Tag specified
main
vesta/372-lan-members
terra/batch-337-237
uranus/251-fold-ci
saturnus/229-land-skip
titan/2-worktree-finish-branch-form
neptunus/232-repo-delete-clean
neptunus/230-force-push
uranus/111-gitlink-eisdir
venus/129-no-launcher-endpoint
saturnus/45-branch-move-head
jupiter/45-volatile-mesh-say
venus/8-land-on-any-host-2
titan/111-gitlinks
juno/040-host-rerecord
vesta/24-remove-github-sponsors
ceres/19-signin-probe
vesta/67-set-a-exports-git-dir
jupiter/47-status-clock
pallas/46-forge-ci-seam
juno/39-offline-private-scan
ceres/19-relay-end-written
venus/8-land-on-any-host
ceres/19-relay-frame
venus/28-budget-line
vesta/48-git-guard
ceres/47-hourly-status
terra/batch3-forge-b
pluto/23-declared-digests
ceres/318-friction-note-rebuilt
neptunus/check-private-digests
hygiea/5-tsx-typecheck
terra/batch2-forge
vesta/973-ask-proof-and-pr-base
jupiter/16-5-3-forge-repo-links
jupiter/check-private-stop
terra/batch3-forge
saturnus/1016-crew-mail
venus/999-refresh-modes
uranus/601-martha-forge-workflows
ceres/1041-work-graph
jupiter/957-gap-19-prompt-text
mercurius/987-stranger-text-gate
jupiter/check-private-stop-posted
pluto/1045-under-600
ceres/1041-contract-lines
pluto/1045-free-splits
diverged/hygiea/962-worktree-finish-owner-and-branch
ceres/967-provider-key
saturnus/1016-mesh-key
hygiea/962-worktree-finish-owner-and-branch
pluto/1045-cognitive-complexity
venus/999-refresh-modes-held-merge
pluto/1010-repo-numbers
pluto/1010-drift-numbers
terra/batch-terra-1121e
hygiea/916-provider-subscription-refusal
venus/999-brief-notice
hygiea/992-job-timeouts
jupiter/1016-crew-memory
terra/batch-terra-1121c
mars/1000-progress-off-tasks
uranus/989-confinement-v
hygiea/985-launcher-verbs-r2
mars/985-rename-handover-match
jupiter/979-guard-places
uranus/980-assign-model
ceres/959-wake-on-idle
uranus/989-confinement-u
juno/802-a-handle-on-my-run
pluto/989-confinement
terra/batch-terra-1120f
mercurius/987-rebased-keep
vesta/308-a-week-of-the-ledger-vesta
jupiter/984-gap-5-crew-state
hygiea/985-launcher-verbs
vesta/915-worktree-finish
terra/batch-terra-1120b
terra/981-review-fix
venus/review-917
final-tip
keep-318-tip
neptunus/1006-review
hygiea/976-the-ci-wait-by-run
terra/979-review-fix
terra/962-review
hygiea/601-row-174-the-engines-settings-watch
uranus/968-markers-r1
terra/981-review
vesta/308-a-week-of-the-ledger
terra/986-review
saturnus/511-up-config
hygiea-601-last3b
hygiea-601-last3
hygiea-601-pre-rebase
jupiter/batch-92
venus/venus-review-929
venus/venus-review-934
uranus/511-up-claude
saturnus/511-refusals
venus/906-token-fixture
jupiter/541-a-engine-start-clean
uranus/614-slice3-approved-skills-on
uranus/614-dw6-unrooted-skill-folders
venus/639-redact-stdin
venus/venus-review-913
neptunus/547-s6-kitty-launch
venus/venus-review-897
neptunus/907-review
venus/898-bundle-main-installer
hygiea/309-a-declared-goal
venus/614-engine-skills-2
neptunus/893-review
venus/639-night2
venus/venus-review-883
jupiter/541-c4-goose-call-answered-by-the-entry
venus/venus-review-866
venus/541-9a-slice-2
mercurius/614-engine-skills
titan/637-updater-switch
pluto/755-fewer-judge-starts
uranus/836-review
mercurius/846-posted-text
neptunus/828-review-r1
titan/801-hint-text
uranus/785-part-2
uranus/797-review
neptunus/830-review
venus/venus-review-837
uranus/724-reap
juno/784-the-launch-a-start-builds
neptunus/784-review-fix
juno/784-the-adapter-under-its-ceiling
diverged/juno/784-the-launch-a-start-builds
juno/784-the-adapter-back-under-origin
neptunus/694-review-fix
juno/732-the-cap-holds-b
neptunus/732-review-fix
titan/541-c3-hints-record
jupiter/host-2.1.328
juno/732-the-cap-holds
ceres/781-launcher-path
uranus/785-hint-files
ceres/724-part-2
neptunus/766-review-fix
uranus/755-hook-filter
jupiter/review-788
neptunus/745-review-fix
uranus/772-judge-env
jupiter/753-keys-declared-twice
pallas/784-launch-request
ceres/562-wire-the-scan
jupiter/744-split-prove-the-core
titan/541-c2-goose-gate-rows
pallas/765-approve-listing
pr-766-tip
terra/769-review
pallas/748-cycle-roots
uranus/uranus-batch-69
venus/venus-review-756
pr-733-head
neptunus/727-shell-quoting
venus/venus-review-738
pallas/694-a-trial-line-keeps-its-transcript
ceres/724-part-1-a-test-leaves-nothing-behind-v2
ceres/tests-leave-nothing-in-the-temp-directory
neptunus/541-2-4-3-the-recording
ceres/700-the-stand-in-reports-its-start
titan/541-6b-multi-host-review-model
uranus/uranus-733r1
scratch-703
titan/541-5-member-host
neptunus/541-2-4-2-the-tool-call
ceres/625-release-redraw
mars/541-acp-transport
ceres/batch-62-redraw
neptunus/541-6-host-model-vocabulary
heads/pr/672
pr/672c
heads/pr/673
juno/541-6-host-model-vocabulary
pr/668b
saturnus/612-no-answer-gets-a-second-launch
ceres/601-release-bump
heads/pr/625
heads/pr/668
pr/656b
heads/pr/666
pallas/611-init-layout
pr/654-r2b
heads/pr/656
pr/662-new
pr/654-new
pr/660-new
saturnus/632-retire-owner-guard
saturnus/602-own-config
ceres/638-read-shape
neptunus/541-10-recorded-goose-host
titan/611-init-layout
venus/244-member-half
titan/165-stand-in-case
pallas/177-tree-stat-record
ceres/314-volatile-path-note-clean
uranus/uranus-batch-48
jupiter/160-where-we-are
uranus/uranus-batch-46
juno/513-budget-r2
pallas/437-trial-builder-r2
pallas/437-trial-builder
saturnus/289b-shell
saturnus/289b-rules
saturnus/289-record-values
ceres/170-vouching-on-real-events
ceres/170-vouching-reaches-the-member
neptunus/136-member-memory
mercurius/4-claw-code-analysis
mercurius/5-scaffold-theme
v0.5.0
dry-run-v0.5.0
installer-v2.0.4
dry-run-installer-v2.0.4
v0.4.3
installer-v2.0.3
dry-run-installer-v2.0.3
dry-run-v0.4.3
v0.4.2
dry-run-v0.4.2
installer-v2.0.2
dry-run-installer-v2.0.2
v0.4.1
dry-run-v0.4.1
installer-v2.0.1
installer-v2.0.0
tested-locks
v0.4.0
ci-tools
v0.3.0
installer-v1.1.1
v0.2.0
installer-v1.1.0
v0.1.0
installer-v1.0.2
installer-v1.0.1
installer-v1.0.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 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#283
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 martha-ai/martha#239
Refs martha-ai/martha#241
Purpose (bug): an unattended crew moves through its own first turn without the owner answering a dialog for each call, and where a crew's approved calls come from is said up front rather than discovered when the run stalls.
Instance, 2026-11-27T00:44Z, the #239 proof run, crew
martha-239, threemartha-enginemembers ondeepseek-flash, launcher worktree detached at5d3c4813e35df599b1953164077a91fa24c94d0c(which carries martha#241, #255 and #256), workspace/home/rl/work/martha-239-ws.The crew never left its first turn. Six permission dialogs were pending, two per member, and every one was for the crew's own
martha_crew__*tool:permission:call_00_ET_QgLS20vyb09phH2cpZH38910martha_crew__see_the_crewpermission:call_01_ET_UUqplSGJYWfXebKK7qf06575martha_crew__who_is_freepermission:call_00_ET_BhTjDm4FqJb4qClWdkdy6627martha_crew__see_the_crewpermission:call_01_ET_u4Miho9OvEfO7TnZ3qGX6322martha_crew__read_crew_mailpermission:call_00_ET_ozFcdQs2w7Ud8BOcckdH7728martha_crew__see_the_crewpermission:call_01_ET_6PXr0d2iINWt1Y64yQdJ3764martha_crew__read_crew_mailTimes: crew started 00:44:17Z; the asks were on the crew strip from 00:47Z and unchanged at 00:48Z; none answered; the run was still stalled at 01:06Z, all three members alive and idle.
permission dialogsare read from the crew's ownrow/<member>.json.What is there, and what is not:
5d3c4813carries martha#241:start_an_engine_member.tshands the enginerunning.rules.mayRuninstead of the hard-coded empty list, andcarry_the_owners_allow_rules_to_an_engine/the_rules_for_a_launch.tsreads the owner's rules from the checkout's.claude/settings.json(permissions), carried only under a tree the owner approved..claude/settings.jsonor.claude/settings.local.jsonin/home/rl/work/martha-239-ws, none in/home/rl/work/martha-239-ws/git.macula.io/martha-ai/martha, and no.claudedirectory anywhere in the workspace.theRulesForAnEngineLaunchtherefore returnsNO_RULES, whose documented effect is "every call it allows is asked".martha upstarts the crew,martha lsshows three membersneeds-you, andmartha gatereportsofffor all three, which reads as "nothing to audit" rather than "every call will be asked".martha bellsreportsrings nothing (the declaration turns owner_bell off), so no bell tells the driver either, and the crew's own strip only shows the latest ask per member./home/rl/work/martha-239-ws/.martha/martha.json,version1) has no field for approved calls;mode.maycovers acts between members only.So the half martha#241 leaves: a crew needs an owner-rules file in its checkout to move unattended, and today nothing declares one, nothing tells the owner at up time that it is missing, and the first signal is a run that has stopped at its first call. For a proof run whose point is that an unattended crew lands a package, that is the whole run.
Done when: a crew declares, in its own declaration or in a file it points at, which tool calls its members may make without the owner (at least reads inside the crew's workspace and its own
martha_crew__*tools);martha upreads it and the engine's ask is answered from it; and when it is absent,martha upormartha lssays plainly, before the crew starts, that every call will be asked and what to add to stop that.Found while driving the #239 proof run for Mars; the facts-only record of the stall is on martha-ai/martha#239 comment 6151.
Threat model for the fix (Neptunus, 2026-11-27), before any code. Scope as ruled: DECIDED 2026-11-27 "Fix Martha first (Recommended)". A member's own crew tools are approved by default, and
martha upprints one notice line when no owner rules are found.What changes. An engine member's
mayRun(carry_the_owners_allow_rules_to_an_engine/the_rules_for_a_launch.ts) approves the crew's own tools without asking the owner, whether or not the checkout carries.claude/settings.json. Today a launch with no rules file asks for every call, the crew's own tools included (#239's stall).What is approved, exactly. Only the names the engine gives the tools Martha's crew server serves:
martha_crew+ the engine's separator + each name inCREW_TOOL_NAMES, read froma_crews_toolsand never restated. Each name is matched whole, as one string. There is no prefix, no wildcard and nomartha_crew__*.Who could claim such a name, and why they cannot.
martha_crew, plus the declared mesh server (launch_a_goose_member.ts:486). No checkout file adds a server to an engine launch. The engine names a server's tool<server>__<tool>, and no crew tool name contains__. Somartha_crew__<crew tool>can only come from a server keyed exactlymartha_crew(servermartha, toolcrew__…givesmartha__crew__…, a different string).CREW_TOOLSand refuses any other name by name (serve_the_crews_tools.ts:8-12). The approval list is the same list, so the two cannot drift apart.every_act_is_asked.node-test.ts). Approval adds no act the member could not already take with the owner's yes.What still wins.
hear_an_acp_agents_asks.tstheWayAfterTheGate).theOwnersRulesOf). Somcp__martha_crew__land_batch, or a baremcp__martha_crew, inpermissions.denyorpermissions.askkeeps that tool asked.What is not changed. Shell, file and other servers' tools stay exactly as #241 left them: approved only by the owner's carried rules, otherwise asked. Claude Code members are not touched, since their host reads the settings itself. No new check, guard or refusal.
The notice. When the checkout carries no owner rules,
martha upprints one line before the crew starts. It says the crew's own tools run unasked, that every other call will be asked, and thatpermissions.allowin.claude/settings.jsonis where to approve more.Tests. A red test first: a launch with no rules file asks for
martha_crew__see_the_crewtoday. Mutants on the matcher: a prefix match, the separator dropped, a hold that loses to the approval, and a name outsideCREW_TOOL_NAMES.Not in this fix: the issue's wider Done-when (a declared list of approved calls beyond the crew's own tools). The ruling is narrower, so that part stays open on this issue.
Refs #283
r=2 (Neptunus, 2026-11-27): one threat-model line added, and the scope of the Done-when marked.
Threat model, added to comment 6184: an owner's deny written under the name Claude Code shows. In
.claude/settings.jsonthe crew server ismartha(mcp__martha__<tool>), but an engine names the same callmartha_crew__<tool>. Before r2, a deny ofmcp__martha__land_batch,mcp__martha__*ormcp__marthaheld nothing on the engine, so the crew tool it named ran unasked (found by Jupiter's fable review, r=1). Now every deny or ask under the relay's name (the manifest's name,THE_RELAYS_NAME) is held again under the engine's server key. A server whose name only begins the same (mcp__marthax) holds nothing of the crew's. Tested, and mutants on each branch were killed.Scope of the Done-when:
martha_crew__*tools run without the owner, by exact name, andmartha upsays in one line when no owner rules are found.martha upreads it and the engine's ask is answered from it", and "what to add to stop that". This is wider than the ruling. It stays open on this issue until it is ruled, and it is not trimmed.The PR (287) says "Refs #283" and closes nothing.
Done-when, line by line, at main
e1561073(Neptunus, 2026-11-27). The tests below are on main and passed in the r=3 land.martha_crew__*tools": MET without a declaration. Within DECIDED 2026-11-27 "Fix Martha first (Recommended)", the crew's own tools are approved by default, by exact name (src/carry_the_owners_allow_rules_to_an_engine/the_rules_for_a_launch.ts). Tests inthe_rules_for_a_launch.node-test.ts: "martha#283: with no owner rules, the crew's own tools run unasked by their exact names, and nothing else does", "martha#283: the owner's deny and ask rules still hold the crew's own tools, and the owner's allow rules still add to them", and "martha#283 r2: a deny or ask the owner writes under the crew server's Claude Code name holds the same tool on the engine". The wiring is tested insrc/start_an_engine_member/the_crews_own_tools_are_wired.node-test.ts.martha upreads it and the engine's ask is answered from it": RULED OUT of this issue. Jupiter ruled it an IDEA at the r=1 review (2026-11-27, about 13:25Z), and comment 6221 records it as unruled. It is not dropped: martha-ai/martha#241, which is still open, has the same 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) …"). It stays there, so no new issue is filed.martha up… says plainly, before the crew starts, that every call will be asked and what to add to stop that": MET.ownersRulesLineOfinsrc/bring_up_the_declared_crew/bring_up_the_declared_crew.tsprints one line before the crew starts. The line names the missing file, says the crew's own tools run unasked and every other call is asked, and says to list calls underpermissions.allowthere. Test inbring_up_the_declared_crew.node-test.ts: "#283: up says once that every call but the crew's own tools will be asked when an engine member starts and the workspace holds no owner rules".Every line is either MET or RULED OUT, and the remaining part lives on in #241, so this issue is closed.
Refs martha-ai/martha#241