martha#255: Martha refuses a member's line that prints a declared token file #270
Closed
vesta
wants to merge 19 commits from
vesta/255-refuse-a-credential-print into main
pull from: vesta/255-refuse-a-credential-print
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!270
Loading…
Reference in a new issue
No description provided.
Delete branch "vesta/255-refuse-a-credential-print"
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#255: Martha refuses a member's line that prints a declared token file
DECIDED 2026-11-26 "Yes, refuse the print (Recommended)". A crew declares where each host's token is read from (
hosts[].token_file), and a tool reads that file into a request header, never onto a terminal (DECIDED 2026-11-22 "Yes, file path only"). Nothing held the other half: in the martha#239 run a member checked its token withcat <file> | head -c 20, and the owner could not tell that ask from a header read becausemartha answertruncates it. A terminal's bytes reach a pane, a transcript and a log, so the refusal is Martha's to make.Refused: the file named as a command's word (
cat F,head -c 20 F,base64 F,cp F /dev/stdout), except by a command that never prints a file's bytes (ls,stat,chmod, …); the file handed as the input of a command that hands its input on (head < F,cat F | head); and the file's bytes handed toechoorprintf, straight (echo $(cat F)) or through a variable the line filled with them (T=$(cat F); echo $T) — each only when the output reaches the terminal, so>&2counts and a file's own output does not.Allowed: the file read into a value that goes into a request —
curl -H "Authorization: token $(cat F)",tok=$(tr -d '[:space:]' < F),--header @F, andprintf '…%s…' "$tok" | curl -K -.The refusal names the declared file and the way to use it instead: read it into the header. Both hosts reach it, because it reads the shell call's own
command— Claude Code's relay and the engine's entry alike. It reads the home from the launch in the spellings its shell hands it, so~/,$HOME/and${HOME}/all name the same file, and a declared<member>names each member's own.What it does not hold, by the threat model: a member set on getting the bytes out (
python3 -c, a variable exported in one call and echoed in the next, a file written and read back). This is a speed bump in front of an accident, as the git shim is, not a boundary.Residuals (accepted at review, not refused / over-refused)
Not refused:
while read l; do echo $l; done < Fcat F | xargs echocd#is read as a comment (hides nothing a heredoc did not already hide)Over-refused (a print-free line refused):
cp F /tmp/x,grep -c . F,sha256sum F( read -r T; curl -H "Authorization: token $T" url ) < FFixed in the r2 fold-ins: a
#comment holding a quote;cat F>&2,cat<F,cat F >& 2,cat F "">/dev/null.Design note
#255 keeps its own output reader: #241's shell reader must refuse
$(, while this rule must read inside it to let-H "Authorization: token $(cat F)"run.Refs #255, #241, #239
This branch contains martha#241. It carries #241's merge of main in, so #255 can only land after #241 does, and a review of it sees #241's patch as already approved rather than as part of this change.
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 9b9cae1f0c9b9cae1f, with mainb478e03f) into vesta/255-refuse-a-credential-print 6424670872Replaced by PR 272 (neptunus/255-r2,
90fa6717): the same tree, squashed so the history carries no home paths.Pull request closed