Skip to content

sminos 1.27.4: the send RPC on RL10 (MAWS O9 §E, board #155) - #426

Merged
SSFSKIM merged 4 commits into
mainfrom
sminos-rl10-send
Oct 28, 2026
Merged

SSFSKIM merged 4 commits into
mainfrom
sminos-rl10-send

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Board ticket #155 (the board service's own number, so this PR carries no closing line). MAWS O9 Interfaces §E, with M1 landed on MAWS master (#283, 9af2925a3).

What

sminos serves send on RL10: a person's message, sent from the MAWS app, goes into a terminal session on this machine.

  • Offered on RL10 alone. DX2 refuses it loose as unsupported, and machine.desk.rpcs lists it only on RL10.
  • Shape. text must be non-blank, at most 65,536 characters, and must not be a slash command: its first non-whitespace character may not be /, which is how the endpoint's textOf grades a command. Anything else is bad-shape. A session that isn't one of the project's keeps the shared no-session refusal. The text is never logged.
  • Fence. The context's launch goes to the bridge, whose child refuses a stale one (launch). A session with no bridge is refused context, and nothing ever reaches its inbox or its supervisor.
  • Effect. The bridge's deliver op, in either turn state, keyed {writer: "rl10-send", seq}. The writer has no /, while every log writer is <machine>/…, hub/… or legacy/…, so this mark never meets a log delivery's, and report_refused never matches it to a log event.
  • Order and once-only.
    • dispatch reserves the seq per session, after the ledger lookup and admission and before the worker starts.
    • The reservation is written to daemon/sends.json ({version: 1, seq: {session: n}}, 0600) and kept on the claim as send_seq.
    • Each post waits its turn behind every lower seq of its session (Sends.turn), so only one deliver is in flight.
    • A reseal of the op is answered from the ledger and never takes another seq.
    • A restart continues past the file's seqs. The next seq is also above the bridge's kept mark, so a lost file cannot put a send below it.
    • An unreadable file refuses every send and is never replaced.
  • Result. The stream is subscribed before the post. The send answers {entered: true, uuid}, or refused-delivery with the bridge's reason, or {submitted: true} after 10 s with neither. A duplicate to a fresh key fails as duplicate. A claim left by a stop is answered from the child's kept answer and its kept refusals, as a steer's is.

Decisions approved by the dispatching session, against §E's literal text (its wording is being corrected by MAWS's architect):

  1. steer has no text bound for send to share, so send gets its own: SEND_TEXT_MAX = 65536 code points, matching MAWS's typed-prompt bound. steer stays unbounded.
  2. / is read behind leading whitespace, including a BOM.
  3. A session outside the project is no-session.

Validation Evidence

  • The send tests (test_s_*, 8 cases, plus the fence case gaining send): python3 -B -I -c "import runpy,sys; sys.path.insert(0,'sminos/tests'); sys.argv=['test_rpcs.py','-k','test_s_','-k','carries_its_launch']; runpy.run_path('sminos/tests/test_rpcs.py', run_name='__main__')" gives Ran 11 tests ... OK. They cover:
    • entered once in both turn states, with a reseal answered from the ledger and nothing delivered again;
    • the shape: /, whitespace and BOM before /, empty, blank, non-text and oversized texts refused; exactly 65,536 characters accepted;
    • DX2 answering unsupported;
    • context, launch and no-session;
    • refused-delivery, duplicate, and submitted at the bound;
    • two devices' sends in arrival order, the first stalled before its lock while the second waits;
    • a refused send releasing its place in the queue;
    • the seq surviving a restart and a lost sends.json, and an unreadable file refusing sends;
    • reconciliation after a stop.
  • The RL10 conformance replay against the refreshed fixture: python3 -B -I sminos/tests/rl10_conformance.py sminos/skills/sminos/scripts sminos/tests/rl10-conversation.json exits 0 with 103 ok and no FAIL. That includes ok the fixture is MAWS 9af2925a3's test/endpoint/rl10/conversation.json, byte for byte (blob 8cb4e9cec); ok 9.12 down rpc, ok 9.13 up rpc-result (checked to be {entered, uuid} with S1's row) and ok 9.14 down rpc-ack; and ok beyond the fixture: two devices' sends to S1, the first stalled before its lock: the second waited, then both entered in arrival order, each answered with its row.
  • Full suite before the main merge: sminos/tests/run-sminos-tests.sh gave 1 of 2569 assertions FAILED. The one failure was test-hub.sh (hub.json missing in hub check), which touches nothing here. Rerun alone, bash sminos/tests/test-hub.sh exits 0.
  • ci-gate: GREEN https://github.com/SSFSKIM/doperpowers/actions/runs/40675068104 on 540e100 (shell-lint, repo-checks, sminos-mods, mods-types, sminos, issue-tracker, board-api, sminos-suites all PASS); the run on the review fix's HEAD: GREEN https://github.com/SSFSKIM/doperpowers/actions/runs/40677310721 on c8e7876 (all eight gates PASS)
  • Review: doperpowers:reviewer-high found one P2 (a send's stream resubscribe could exceed its 10 s bound under SNAPSHOT_TIMEOUT), fixed in c8e7876 with a test that fails without it (2.27 s against a 0.3 s budget) and passes with it; reviewer-high's verify of c8e7876: no material findings, verdict correct.
  • Version: scripts/bump-version.sh --plugin sminos 1.27.4 reports All declared files are in sync at 1.27.4.

Residue

  • sends.json is never pruned. It keeps one int per session ever sent to remotely. That is harmless in size. Pruning would be safe now, because the next seq is also taken above the bridge's kept mark, but nothing does it.

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

A person's message into a session, from the endpoint alone: the bridge's
deliver under {writer: rl10-send, seq}, the seq reserved per session in
daemon/sends.json as the frame arrives and posted in that order behind a
per-session turn, answered {entered, uuid}, refused-delivery, duplicate,
or {submitted: true} past 10 s; reconciled after a stop from the child's
kept answer. Text non-blank, at most 65,536 characters, and no slash
command behind leading whitespace. DX2 refuses it unsupported; the RL10
desk presence lists it.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
rl10-conversation.json copied byte for byte from MAWS 9af2925a3
(test/endpoint/rl10/conversation.json, blob 8cb4e9c), carrying send's
rpc, rpc-result and rpc-ack; the replay checks the vary'd outcome is the
row S1's bridge entered, and a send case beyond the fixture stalls the
first of two devices' sends before its lock and sees the second wait.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
DeliveryStream.outcome slept and reopened the stream without rechecking
the deadline, and open() read the snapshot under the fixed 8 s bound, so
a slow bridge could hold a send past SEND_WAIT_S. open() now takes a
timeout (SNAPSHOT_TIMEOUT for the first open); outcome rechecks after the
sleep and passes what is left.

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

chatgpt-codex-connector Bot commented Oct 28, 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-28T11:08:58.434314Z c8e7876 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 5dfe362 into main Oct 28, 2026
8 of 10 checks passed
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