Repository navigation
org-protocol: a session.spawn proof proves its signer's member (O10 RL9) - #464
Merged
Merged
Conversation
The app's remote spawn (lane B, "+ Session" on another machine) is the endpoint's `session.spawn` act, but SPAWN_ACTIONS listed only `sminos.spawn` and `session.launch`, so every app-spawned session's attestation was refused `not-owner` at the owner-add check and its owners went down unverified on the receiving machine (O7 M7, 2026-11-04). The verifier now takes `session.spawn` as a spawn proof; the action name, already in every machine's ledger, stays. Vectors: an app spawn's proof verifies with its owner; refused for another member's spawn (not-owner), another machine (other-machine), a revoked device (revoked) and a device the org never listed (unknown-signer). Vectors regenerated. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 4, 2026
…cision Log 212; the binding gap is board #465); gate-offload Decision Log 160, the EC2 host released Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This was referenced Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The defect (O7 M7 live sitting, 2026-11-04)
The receiving machine wrote the owners of every session the app spawns on a remote machine (lane B, "A11") as unverified. Each event logged:
The event's
attestwas complete:owners: [<member>]andownersProof: [<one action>]. The action was a step-up-signedsession.spawnby the owner's app device, and it named the machine.The cause is an action-name mismatch.
apps/org-protocol/src/attest.ts:26hadSPAWN_ACTIONS = ['sminos.spawn', 'session.launch'](O10 M1, af0876b). The app's remote spawn sends'session.spawn'(src/main/lane-b/remote-spawn.ts:149and:164, the endpoint's offer rowsrc/endpoint/offers.ts:200). SoverifyOwnersProofskipped its spawn branch, read the proof as an owner-add, and refusednot-owner.The fix
SPAWN_ACTIONSnow includes'session.spawn', per the architect's ruling. The action keeps its name, since it is the endpoint's offer row and is already in every machine's ledger. The module comment lists it.Vectors
New cases in
vectors/scenario-remote.ts, regenerated intovectors.jsonandkeys.json, also listed intest/attest.test.ts's expectations. Each proof is asession.spawnact with DX6's spawn fields as its args, as the app sends it. Each is attested on an event ofmini/<session>(owned by Alice).not-ownerbefore the fix: the field's failure, reproduced)not-ownerother-machinerevoked(at r4)unknown-signerThese are the refusals the verifier performs on a spawn proof today:
machinemust be the sending machine's ref;created, and never revoked;bad-signaturetakes the same path for every action and is already covered by thesminos.spawnvector.The two cases named in the ruling that the verifier doesn't enforce
A stale
stateVersion. Nothing compares it.isAttestchecks only that it is a safe integer of at least 1. The module states that it "is the machine's statement and is not compared": owners are judged with the verifier's own state at the event's (or the proof's)created. So I added no vector.A proof for another session: case (b), not bindable today. Neither spawn act carries an id that could bind it to the session it attests:
session.spawn: its args are exactly DX6's spawn fields (SessionSpawnInputSchema, a strict object:checkout,worktree,brief,model,effort,permission_mode).remote-spawn.tssets nosessionorcontexton the act. The machine chooses theappSessionIdafterwards and returns it in the output. The attested event's writer is<name>/<engine session id>, which can't exist when the act is signed.sminos.spawn: same answer. Its args are the same DX6 fields, andspawnRefusalrefuses any other fieldspec-fieldfor both rows. sminos makes the session's launch and id after the act, and keeps the proof as the new record'sownersProof(SMINOS_DESK_PROOF).launchedBy.opId, which equals the proof's opId. But that record is machine-local. The attest (owners,ownersProof,origin {kind, requester?, spawnerSession?},stateVersion) carries no opId apart from the proof's own. Even if it did, it would be the sending machine's own statement, and the sending machine is the party a binding guards against.As things stand, a machine can reuse one owner's spawn proof to claim that owner for any other session it lists, and the verifier accepts it. Binding needs either a new signed field (for example, an app-chosen session id in the signed act that the event can be checked against, across
/clear's new engine sessions) or a receiver-side rule that one spawn proof attests at most one session. That is the open question for the architect's ticket. This PR adds no semantics for it.Gates
Head 37b3a27,
scripts/ci-gate.sh <worktree> --gates static,unit,probes,e2e:desk-web:success static,success probes,success e2e:desk-web,success unit 1/4..3/4,failure unit 4/4: https://github.com/SSFSKIM/MAWS/actions/runs/41788418951test/support/remote-bench.test.ts› "the mini's removal on this Mac…", which has nothing to do with this change. The run fell at 06:56Z, inside the mini-bench quiet window (06:45–07:00 UTC). That test builds itsBenchRunwith no clock, so it refuses on the real time (mini-bench: refused: nothing reaches it from 06:45 to 07:00 UTC…).--gates unitafter 07:00Z:ci-gate: run 41789480412 success, unit 1/4–4/4 green: https://github.com/SSFSKIM/MAWS/actions/runs/41789480412Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)