Skip to content

P5 O12 M11: the spawner as owner (plan and wave 2 ledger) - #423

Merged
SSFSKIM merged 3 commits into
masterfrom
p5-o12-m11-doc
Nov 1, 2026
Merged

SSFSKIM merged 3 commits into
masterfrom
p5-o12-m11-doc

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Summary

This PR writes O12 M11, "the spawner as owner", into O12's plan and names its files in the wave 2 ledger. It changes no code.

O7 M4d found that a lane B session a member spawns on another machine through session.spawn can't be opened until that machine's sminos lists it. The cause: the endpoint ranks a lane B session only from sminos's record (sessionRank), and O7 meanwhile waits up to 60 s on the main side. Who owns a session is O12's trust decision, and O7's F15 already named the sminos half, which O12's plan had not. M11 is routed to O12 on the architect's word: the environment line, its consumer and the endpoint's rank sit under one owner.

What M11 builds, after O7 M4 (which adds launchedBy), not blocked by O16:

  • The launch. The engine host launches a spawned session with MAWS_LAUNCHED_BY at its start and at every resume.
    • The variable is {appSessionId, member, device, opId, proofFile}.
    • The proof file is a 0600 envelope {member, device, opId, action}, written by the spine before the launch and removed with the record. It's an envelope because the sealed Action carries no member.
    • The action can't go in the variable itself: it carries the brief, up to the channel's 4 MiB, while macOS bounds argv and environment together at 1 MiB.
  • sminos.
    • hook_provenance honours the variable only when member_mark confirms the engine host's own child (M3's check), so a claude started from the session's Bash claims nothing.
    • The first session bound to the appSessionId gets owners: [member], origin: {kind: 'maws', requester} and ownersProof: [action], final.
    • A later session under the same appSessionId (a /clear) takes its predecessor's record, so an owner change carries over.
    • launch_env drops the variable.
  • The endpoint.
    • Reads.record answers {owners: [launchedBy.member], access: 'private'} for a lane B target until the endpoint first sees a sminos record for that appSessionId.
    • That first sight is kept on disk (the handed-off mark), so an endpoint restart, a /clear or a gone never reopens the bridge; after it, a missing record fails closed.
    • The bridge is part of recordsMoved, so every reader in one decision sees the same answer.
  • Two PRs: sminos's first (it reads a variable nobody sets until MAWS's lands), then MAWS's.

The ledger.

  • launchedBy's consumer row now names M11, and the write-once rule O7 M4 pins: session.spawn's handler alone writes it.
  • A row for M11's names.
  • Two shared-files rows: the launch environment and flows, beside O16 M3b/M3c and O5's landing 2; and targets.ts/authorize.ts, after O7 M4.

Review

doperpowers:adversarial-reviewer, two rounds. Each finding was checked against the code and folded, and each round is recorded in the Decision Log entry.

  • Round 1, P1. The endpoint's record source is an in-memory cache (members.ts), so "no record" after a restart, a /clear or a gone could hand a transferred session back to its spawner. Fixed by the durable handed-off mark, plus sminos's /clear lineage.
  • Round 1, P2. The proof check compared a member the sealed action doesn't carry. Fixed by the envelope.
  • Round 2, P2. Both fixes were confirmed, but the lineage was keyed by the spawn's opId, which an op ledger accepts again after a day. It's now keyed by the appSessionId.

The review stopped there: the last round's only finding was a key change.

Validation

  • Static gate on f43108d: GREEN, run 41266345501 (attempt 1).
  • No key, certificate, delegation or ref id appears in the text.

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

A lane B session O7's session.spawn starts for a remote member is that
member's from its first second: the engine host launches it with
MAWS_LAUNCHED_BY (the sealed action in a proof file), sminos's record
reads it from the first SessionStart, and the endpoint ranks the spawner
from the spine's launchedBy only while sminos holds no record. Blocked by
O7 M4; two PRs, sminos's first. The wave 2 ledger names M11's launch
fields and shared files.

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

The endpoint's record source is an in-memory cache, so the bridge keys on
a durable handed-off mark per appSessionId and never reopens; a /clear's
new session takes its predecessor's record in sminos (the launch's opId
bound to its sessions), not the variable. The proof file is an envelope
{member, device, opId, action}: org-protocol's Action carries no member.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…wn's opId (review round 2)

An op ledger forgets a claim after a day and accepts the same id again,
so two spawns could share one lineage; MAWS_LAUNCHED_BY carries the
appSessionId and sminos binds on it.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-01T02:47:18.449531Z
We couldn’t complete this review. Comment @codex review to try again.
f43108d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@SSFSKIM
SSFSKIM merged commit 8ad8967 into master Nov 1, 2026
@SSFSKIM
SSFSKIM deleted the p5-o12-m11-doc branch November 1, 2026 02:48
SSFSKIM added a commit that referenced this pull request Nov 1, 2026
… its series met every bound); O12 gains M11, the spawner as owner (PR #423); O5 landing 1's series met every bound; a tracker row for spine requests and the park; the wave 2 ledger gains O4 M4's and O5 M5's names

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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