Skip to content

P5 O10 M6: the endpoint's RL10 socket (sminos), with spent, restated and words? project - #236

Merged
SSFSKIM merged 7 commits into
masterfrom
p5-o10-m6
Oct 27, 2026
Merged

SSFSKIM merged 7 commits into
masterfrom
p5-o10-m6

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 27, 2026

Copy link
Copy Markdown
Owner

P5 O10 M6: the endpoint's RL10 socket, the local socket sminos speaks to MAWS over (docs/doperpowers/plans/2026-10-27-p5-o10-endpoint.md §D, Plan of Work M6).

What it does

  • The socket (src/endpoint/rl10/server.ts). It is served while the machine is org-listed. rl10.json and the socket go away when enrollment ends (the hub link stops re-enroll or revoked). An unenrolled endpoint has neither and answers nothing.
  • Frame routing (link.ts). Members, the log plane, words?, and the rpc/query/tombstone frames, with seams that M7 and M8 attach to (rpc(), query(), tombstone(), onResult(), onSession()).
  • The log plane (log-relay.ts).
    • Own uploads are v2-signed once per position across connections, and attested from the held member record.
    • Arriving events are verified before import.
    • A final verdict is rejected up and spent down.
    • A verdict that waits on the head is held and judged again.
  • Words (words.ts). An event needs the signer's current membership and a head within the 30-day backstop. An unsettled decision gets no answer.
  • Members and listings (members.ts). A lane B session is listed under appSessionId once joined. A listing is withdrawn only when no held member is still listed under it.
  • State.
    • hosts.json is the host high-water mark, moved after the wrote is sent.
    • signatures/<project>.jsonl and inbound/<project>.idx are append-only and fsynced.
    • JSONL load and append agree on a torn tail.
    • legacy.json is per org.
  • The conversation fixture (test/endpoint/rl10/conversation.json), replayed against the real socket and desk-hub's Worker in Miniflare. O12 M7b copies it for rl10_conformance.py.

RL10 frames added to §D (the dispatching session's rulings; O12 M7b builds the sminos side)

  • spent {project, writer, seq, reason} (endpoint → sminos), sent in stream order. It is sent only for final verdicts:

    • replay, own non-echo, bad shape;
    • a v2 signature failing under a known key;
    • a revoked signer;
    • a v1 code failing under the held legacy key;
    • expired under a state-retired key.

    These are held, never rejected or spent: an unknown signer or key, no head, v1 while no legacy key is held, and expired when a held machine certificate bears sig.kid. The hold is capped at 1000 events and one hour each.

  • words? requires project; there is no fallback.

  • restated {} (sminos → endpoint) closes the post-welcome restatement and replaces the 15 s timer.

  • The rejected reason mapping: replay → seen-nonce; forged, revoked or expired → bad-code; own non-echo → conflict; shape → bad-shape.

  • revoked names a device or member id only once the head no longer holds it.

Decision Log residue for P5 (under O10)

  • RL10 gained spent, words?'s required project, and restated. These change §D' for O12 M7b.
  • expired is held when the signer came from a machine certificate, because a renewal may accept it. It is final under a state-retired key.
  • An unsettled words? gets no answer. sminos re-asks after WORDS_WAIT, so the delivery stays owed.
  • A conflict spend never spends a real echo: spend_own is a no-op at or below the writer's last seq. O12 pins this in M7b.

Files outside src/endpoint/ and apps/org-protocol/

  • test/endpoint/rl10/* (the suites and conversation.json)
  • vitest.config.ts: one line, so conversation.local.test.ts runs in the node-timing project
  • the O10 spec

Validation Evidence

Residue

  • None new from M6. The executor seams wait for M7 (actions, query and tombstone) and M8 (subscriptions, host events to full subscribers).

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

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… verified, words?, rpc/query/tombstone frames, and the conversation fixture (O10 M6)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…udge yet, words? names its project, restated closes the restatement (O10 M6 rulings)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… a still snapshot; uploads signed once; torn lines cut; legacy key per org; departures withdrawn then settled; host mark after the wrote; signer by its key (O10 M6)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…uperseded lane B engine retired without withdrawing its app, a lapsed machine certificate held (O10 M6)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…les; M6 ticked

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

chatgpt-codex-connector Bot commented Oct 27, 2026 •

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 ✅ Completed 2026-10-27T21:19:12.993884Z 3e9f323 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.

@SSFSKIM
SSFSKIM merged commit a7ceac6 into master Oct 27, 2026
SSFSKIM added a commit that referenced this pull request Oct 27, 2026
…rames, the hold rule)

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