martha#241: an engine member runs by the owner's approval, and by the owner's own allow rules #269
Closed
vesta
wants to merge 12 commits from
vesta/241-engine-approved-list into main
pull from: vesta/241-engine-approved-list
merge into: martha-ai:main
martha-ai:main
martha-ai:vesta/372-lan-members
martha-ai:terra/batch-337-237
martha-ai:uranus/251-fold-ci
martha-ai:saturnus/229-land-skip
martha-ai:titan/2-worktree-finish-branch-form
martha-ai:neptunus/232-repo-delete-clean
martha-ai:neptunus/230-force-push
martha-ai:uranus/111-gitlink-eisdir
martha-ai:venus/129-no-launcher-endpoint
martha-ai:saturnus/45-branch-move-head
martha-ai:jupiter/45-volatile-mesh-say
martha-ai:venus/8-land-on-any-host-2
martha-ai:titan/111-gitlinks
martha-ai:juno/040-host-rerecord
martha-ai:vesta/24-remove-github-sponsors
martha-ai:ceres/19-signin-probe
martha-ai:vesta/67-set-a-exports-git-dir
martha-ai:jupiter/47-status-clock
martha-ai:pallas/46-forge-ci-seam
martha-ai:juno/39-offline-private-scan
martha-ai:ceres/19-relay-end-written
martha-ai:venus/8-land-on-any-host
martha-ai:ceres/19-relay-frame
martha-ai:venus/28-budget-line
martha-ai:vesta/48-git-guard
martha-ai:ceres/47-hourly-status
martha-ai:terra/batch3-forge-b
martha-ai:pluto/23-declared-digests
martha-ai:ceres/318-friction-note-rebuilt
martha-ai:neptunus/check-private-digests
martha-ai:hygiea/5-tsx-typecheck
martha-ai:terra/batch2-forge
martha-ai:vesta/973-ask-proof-and-pr-base
martha-ai:jupiter/16-5-3-forge-repo-links
martha-ai:jupiter/check-private-stop
martha-ai:terra/batch3-forge
martha-ai:saturnus/1016-crew-mail
martha-ai:venus/999-refresh-modes
martha-ai:uranus/601-martha-forge-workflows
martha-ai:ceres/1041-work-graph
martha-ai:jupiter/957-gap-19-prompt-text
martha-ai:mercurius/987-stranger-text-gate
martha-ai:jupiter/check-private-stop-posted
martha-ai:pluto/1045-under-600
martha-ai:ceres/1041-contract-lines
martha-ai:pluto/1045-free-splits
martha-ai:diverged/hygiea/962-worktree-finish-owner-and-branch
martha-ai:ceres/967-provider-key
martha-ai:saturnus/1016-mesh-key
martha-ai:hygiea/962-worktree-finish-owner-and-branch
martha-ai:pluto/1045-cognitive-complexity
martha-ai:venus/999-refresh-modes-held-merge
martha-ai:pluto/1010-repo-numbers
martha-ai:pluto/1010-drift-numbers
martha-ai:terra/batch-terra-1121e
martha-ai:hygiea/916-provider-subscription-refusal
martha-ai:venus/999-brief-notice
martha-ai:hygiea/992-job-timeouts
martha-ai:jupiter/1016-crew-memory
martha-ai:terra/batch-terra-1121c
martha-ai:mars/1000-progress-off-tasks
martha-ai:uranus/989-confinement-v
martha-ai:hygiea/985-launcher-verbs-r2
martha-ai:mars/985-rename-handover-match
martha-ai:jupiter/979-guard-places
martha-ai:uranus/980-assign-model
martha-ai:ceres/959-wake-on-idle
martha-ai:uranus/989-confinement-u
martha-ai:juno/802-a-handle-on-my-run
martha-ai:pluto/989-confinement
martha-ai:terra/batch-terra-1120f
martha-ai:mercurius/987-rebased-keep
martha-ai:vesta/308-a-week-of-the-ledger-vesta
martha-ai:jupiter/984-gap-5-crew-state
martha-ai:hygiea/985-launcher-verbs
martha-ai:vesta/915-worktree-finish
martha-ai:terra/batch-terra-1120b
martha-ai:terra/981-review-fix
martha-ai:venus/review-917
martha-ai:final-tip
martha-ai:keep-318-tip
martha-ai:neptunus/1006-review
martha-ai:hygiea/976-the-ci-wait-by-run
martha-ai:terra/979-review-fix
martha-ai:terra/962-review
martha-ai:hygiea/601-row-174-the-engines-settings-watch
martha-ai:uranus/968-markers-r1
martha-ai:terra/981-review
martha-ai:vesta/308-a-week-of-the-ledger
martha-ai:terra/986-review
martha-ai:saturnus/511-up-config
martha-ai:hygiea-601-last3b
martha-ai:hygiea-601-last3
martha-ai:hygiea-601-pre-rebase
martha-ai:jupiter/batch-92
martha-ai:venus/venus-review-929
martha-ai:venus/venus-review-934
martha-ai:uranus/511-up-claude
martha-ai:saturnus/511-refusals
martha-ai:venus/906-token-fixture
martha-ai:jupiter/541-a-engine-start-clean
martha-ai:uranus/614-slice3-approved-skills-on
martha-ai:uranus/614-dw6-unrooted-skill-folders
martha-ai:venus/639-redact-stdin
martha-ai:venus/venus-review-913
martha-ai:neptunus/547-s6-kitty-launch
martha-ai:venus/venus-review-897
martha-ai:neptunus/907-review
martha-ai:venus/898-bundle-main-installer
martha-ai:hygiea/309-a-declared-goal
martha-ai:venus/614-engine-skills-2
martha-ai:neptunus/893-review
martha-ai:venus/639-night2
martha-ai:venus/venus-review-883
martha-ai:jupiter/541-c4-goose-call-answered-by-the-entry
martha-ai:venus/venus-review-866
martha-ai:venus/541-9a-slice-2
martha-ai:mercurius/614-engine-skills
martha-ai:titan/637-updater-switch
martha-ai:pluto/755-fewer-judge-starts
martha-ai:uranus/836-review
martha-ai:mercurius/846-posted-text
martha-ai:neptunus/828-review-r1
martha-ai:titan/801-hint-text
martha-ai:uranus/785-part-2
martha-ai:uranus/797-review
martha-ai:neptunus/830-review
martha-ai:venus/venus-review-837
martha-ai:uranus/724-reap
martha-ai:juno/784-the-launch-a-start-builds
martha-ai:neptunus/784-review-fix
martha-ai:juno/784-the-adapter-under-its-ceiling
martha-ai:diverged/juno/784-the-launch-a-start-builds
martha-ai:juno/784-the-adapter-back-under-origin
martha-ai:neptunus/694-review-fix
martha-ai:juno/732-the-cap-holds-b
martha-ai:neptunus/732-review-fix
martha-ai:titan/541-c3-hints-record
martha-ai:jupiter/host-2.1.328
martha-ai:juno/732-the-cap-holds
martha-ai:ceres/781-launcher-path
martha-ai:uranus/785-hint-files
martha-ai:ceres/724-part-2
martha-ai:neptunus/766-review-fix
martha-ai:uranus/755-hook-filter
martha-ai:jupiter/review-788
martha-ai:neptunus/745-review-fix
martha-ai:uranus/772-judge-env
martha-ai:jupiter/753-keys-declared-twice
martha-ai:pallas/784-launch-request
martha-ai:ceres/562-wire-the-scan
martha-ai:jupiter/744-split-prove-the-core
martha-ai:titan/541-c2-goose-gate-rows
martha-ai:pallas/765-approve-listing
martha-ai:pr-766-tip
martha-ai:terra/769-review
martha-ai:pallas/748-cycle-roots
martha-ai:uranus/uranus-batch-69
martha-ai:venus/venus-review-756
martha-ai:pr-733-head
martha-ai:neptunus/727-shell-quoting
martha-ai:venus/venus-review-738
martha-ai:pallas/694-a-trial-line-keeps-its-transcript
martha-ai:ceres/724-part-1-a-test-leaves-nothing-behind-v2
martha-ai:ceres/tests-leave-nothing-in-the-temp-directory
martha-ai:neptunus/541-2-4-3-the-recording
martha-ai:ceres/700-the-stand-in-reports-its-start
martha-ai:titan/541-6b-multi-host-review-model
martha-ai:uranus/uranus-733r1
martha-ai:scratch-703
martha-ai:titan/541-5-member-host
martha-ai:neptunus/541-2-4-2-the-tool-call
martha-ai:ceres/625-release-redraw
martha-ai:mars/541-acp-transport
martha-ai:ceres/batch-62-redraw
martha-ai:neptunus/541-6-host-model-vocabulary
martha-ai:heads/pr/672
martha-ai:pr/672c
martha-ai:heads/pr/673
martha-ai:juno/541-6-host-model-vocabulary
martha-ai:pr/668b
martha-ai:saturnus/612-no-answer-gets-a-second-launch
martha-ai:ceres/601-release-bump
martha-ai:heads/pr/625
martha-ai:heads/pr/668
martha-ai:pr/656b
martha-ai:heads/pr/666
martha-ai:pallas/611-init-layout
martha-ai:pr/654-r2b
martha-ai:heads/pr/656
martha-ai:pr/662-new
martha-ai:pr/654-new
martha-ai:pr/660-new
martha-ai:saturnus/632-retire-owner-guard
martha-ai:saturnus/602-own-config
martha-ai:ceres/638-read-shape
martha-ai:neptunus/541-10-recorded-goose-host
martha-ai:titan/611-init-layout
martha-ai:venus/244-member-half
martha-ai:titan/165-stand-in-case
martha-ai:pallas/177-tree-stat-record
martha-ai:ceres/314-volatile-path-note-clean
martha-ai:uranus/uranus-batch-48
martha-ai:jupiter/160-where-we-are
martha-ai:uranus/uranus-batch-46
martha-ai:juno/513-budget-r2
martha-ai:pallas/437-trial-builder-r2
martha-ai:pallas/437-trial-builder
martha-ai:saturnus/289b-shell
martha-ai:saturnus/289b-rules
martha-ai:saturnus/289-record-values
martha-ai:ceres/170-vouching-on-real-events
martha-ai:ceres/170-vouching-reaches-the-member
martha-ai:neptunus/136-member-memory
martha-ai:mercurius/4-claw-code-analysis
martha-ai:mercurius/5-scaffold-theme
No reviewers
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!269
Loading…
Reference in a new issue
No description provided.
Delete branch "vesta/241-engine-approved-list"
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?
martha#241: an engine member runs by the owner's approval, and by the owner's own allow rules
Under "B: gate, then ask" (DECIDED 2026-11-18) a call is refused only when the owner's approval does not cover it; every other call is asked. This carries the last piece: the rules the owner already wrote for that checkout are carried to the engine member, so a call the approved list names runs unasked, and everything else is still asked.
What it reads, and what it never reads:
.claude/settings.json, and only the bytes the owner approved — it is in the launch gate's own files, so a checkout that ships{"permissions":{"allow":["Bash"]}}is refused until the owner approves those bytes, and a rewrite under a running member changes nothing it runs unasked;settings.local.jsonand never the owner's user settings;Semantics, matched to how Claude Code reads the same rule: exact and
cmd:*prefix rules; a compound line passes only if every part does;$(…), backticks, process substitution and redirection into a file fall back to asking; the gate is read first and deny wins, so no allow can carry a call the gate denies. Adenyoraskrule that names a call keeps it asked, and an unreadable deny/ask list refuses the launch rather than running with the owner's holds silently gone. Martha still never answersallow_always, and nothing is written into the engine's own permission store.Duplicate keys. The file is read with
JSON.parse, so a.claude/settings.jsonthat namespermissions— orallow,deny,ask— more than once is read as its last occurrence, exactly as the host's own JavaScript reader takes it. That is the reading the owner approved, since the fingerprint pins those bytes and no other; a file whose duplicate keys matter to the owner should be cleaned up, and a stricter canonical-bytes reading already exists intrust_only_signed_listsfor the documents that carry signatures.Residual, from the same probe. A rule naming
mcp__developer__text_editoris carried to the engine's built-in editor: the two are read as the same tool, so the rule the owner wrote for one runs unasked in the other.After this lands: one
martha approveper checkout..claude/settings.jsonjoins the engine's files in the launch gate, so every checkout that holds one is a checkout whose approval no longer covers what the launch would carry. Runmartha approveonce in each such checkout after this lands; until it is run, an engine member started there is refused at the launch by name, rather than run with rules the owner has not approved.Tests: the matcher's three named mutants (a non-matching part passes;
$(…)passes; deny loses to allow) each fail by name, and the gate's own refusal, the wiring, and the architecture page are covered. Reviewed r1→r3 by Mars with the security split.Refs #241, #255
R1: .claude/settings.json is listed among the engine host's launch files and carried by the gate only under a tree the approval pins; the rules are read from those carried bytes, never the disk. martha approve records the engine host's fingerprint with the same yes. R2: ( ) { } make a line unreadable. R3: deny and ask rules hold a call, read wider than an allow. R4: the four surviving mutants pinned. R5/R6: a start on unreadable rules is refused and told; each rule left asked is told to the owner. The slice no longer imports the Claude Code host adapter: the start hands the owner's shell tool name in.b478e03f, PR 268) into vesta/241-engine-approved-list 9b9cae1f0cReplaced by PR 271 (neptunus/241-r2,
ecb4de35): the same tree, squashed so the history carries no home paths.Pull request closed