An engine member runs the crew's own tools unasked, and martha up says when no owner rules are found (martha#283) #287
Loading…
Reference in a new issue
No description provided.
Delete branch "neptunus/283-own-tools-approved"
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?
Purpose (fix): an unattended crew on
martha upruns its ownmartha_crew__*tools without asking the owner per call, andmartha upsays in one line when no owner rules are found.Scope as ruled: DECIDED 2026-11-27 "Fix Martha first (Recommended)" (Raf, relayed by Mars). Threat model: #283 comment 6184.
theRulesForAnEngineLaunchapproves each crew tool by its whole engine name (the server key the launcher hands in, the engine's separator, the tool), with no prefix match. The owner's deny and ask rules still win.NO_RULESis gone. The result carriesowners_rules_found.start_an_engine_memberpasses{ server: THE_CREWS_TOOL_SERVER, tools: CREW_TOOL_NAMES }, so the rules slice imports no host glue.martha upprints one notice line (ownersRulesLineOf) when an engine member starts and<root>/.claude/settings.jsonis absent.Left open on #283: the issue's Done-when also names a declared list of approved calls. That is wider than the ruling, so it is not in this PR.
Proof on
8770f835(main7add9fe3merged): wholenpm testin its own namespace rc=0 (5691 pass, 0 fail);npm run verifyrc=0; check:private on 7add9fe3..HEAD reports nothing private; workflows diff 0 lines. The tests failed before the fix (2 fails); mutants M1-M5 on the name matcher were all killed.Refs #283, #239, #241
🤖 Generated with Claude Code
tsc refused the r2 test line: theRulesForAnEngineLaunch({}, ...) may be a refusal, and the assert above it narrowed only the other launch's rules. Refs #283