Skip to content

org-protocol: a session.spawn proof proves its signer's member (O10 RL9) - #464

Merged
SSFSKIM merged 1 commit into
masterfrom
o10-attest-session-spawn
Nov 4, 2026
Merged

SSFSKIM merged 1 commit into
masterfrom
o10-attest-session-spawn

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 4, 2026

Copy link
Copy Markdown
Owner

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:

endpoint: the owner attestation of <writer>:<seq> did not verify (not-owner): its owners go down unverified

The event's attest was complete: owners: [<member>] and ownersProof: [<one action>]. The action was a step-up-signed session.spawn by the owner's app device, and it named the machine.

The cause is an action-name mismatch. apps/org-protocol/src/attest.ts:26 had SPAWN_ACTIONS = ['sminos.spawn', 'session.launch'] (O10 M1, af0876b). The app's remote spawn sends 'session.spawn' (src/main/lane-b/remote-spawn.ts:149 and :164, the endpoint's offer row src/endpoint/offers.ts:200). So verifyOwnersProof skipped its spawn branch, read the proof as an owner-add, and refused not-owner.

The fix

SPAWN_ACTIONS now 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 into vectors.json and keys.json, also listed in test/attest.test.ts's expectations. Each proof is a session.spawn act with DX6's spawn fields as its args, as the app sends it. Each is attested on an event of mini/<session> (owned by Alice).

Case Verdict
an attested owner proven by their session.spawn ok, owners [Bob] (was not-owner before the fix: the field's failure, reproduced)
an attested owner proven by another member's session.spawn not-owner
an attested owner whose session.spawn names another machine other-machine
an attested owner whose session.spawn is from a revoked device revoked (at r4)
an attested owner whose session.spawn names a device the org never listed unknown-signer

These are the refusals the verifier performs on a spawn proof today:

  • the proof's machine must be the sending machine's ref;
  • its step-up key must be current, or retired no earlier than its created, and never revoked;
  • each claimed owner must be the machine's or proven.

bad-signature takes the same path for every action and is already covered by the sminos.spawn vector.

The two cases named in the ruling that the verifier doesn't enforce

A stale stateVersion. Nothing compares it. isAttest checks 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.ts sets no session or context on the act. The machine chooses the appSessionId afterwards 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, and spawnRefusal refuses any other field spec-field for both rows. sminos makes the session's launch and id after the act, and keeps the proof as the new record's ownersProof (SMINOS_DESK_PROOF).
  • The opId: the one shared value is the record's 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:

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

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)
@SSFSKIM
SSFSKIM merged commit 6b53fca into master Nov 4, 2026
@SSFSKIM
SSFSKIM deleted the o10-attest-session-spawn branch November 4, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant