Repository navigation
sminos 1.27.4: the send RPC on RL10 (MAWS O9 §E, board #155) - #426
Merged
Merged
Conversation
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)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 28, 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.
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
sendon RL10: a person's message, sent from the MAWS app, goes into a terminal session on this machine.unsupported, andmachine.desk.rpcslists it only on RL10.textmust 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'stextOfgrades a command. Anything else isbad-shape. A session that isn't one of the project's keeps the sharedno-sessionrefusal. The text is never logged.launch). A session with no bridge is refusedcontext, and nothing ever reaches its inbox or its supervisor.deliverop, in either turn state, keyed{writer: "rl10-send", seq}. The writer has no/, while every log writer is<machine>/…,hub/…orlegacy/…, so this mark never meets a log delivery's, andreport_refusednever matches it to a log event.dispatchreserves the seq per session, after the ledger lookup and admission and before the worker starts.daemon/sends.json({version: 1, seq: {session: n}}, 0600) and kept on the claim assend_seq.Sends.turn), so only onedeliveris in flight.{entered: true, uuid}, orrefused-deliverywith the bridge's reason, or{submitted: true}after 10 s with neither. Aduplicateto a fresh key fails asduplicate. 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):
steerhas no text bound forsendto share, sosendgets its own:SEND_TEXT_MAX = 65536code points, matching MAWS's typed-prompt bound.steerstays unbounded./is read behind leading whitespace, including a BOM.no-session.Validation Evidence
test_s_*, 8 cases, plus the fence case gainingsend):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__')"givesRan 11 tests ... OK. They cover:/, whitespace and BOM before/, empty, blank, non-text and oversized texts refused; exactly 65,536 characters accepted;unsupported;context,launchandno-session;refused-delivery,duplicate, andsubmittedat the bound;sends.json, and an unreadable file refusing sends;python3 -B -I sminos/tests/rl10_conformance.py sminos/skills/sminos/scripts sminos/tests/rl10-conversation.jsonexits 0 with 103okand no FAIL. That includesok 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) andok 9.14 down rpc-ack; andok 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.sminos/tests/run-sminos-tests.shgave1 of 2569 assertions FAILED. The one failure was test-hub.sh (hub.jsonmissing inhub check), which touches nothing here. Rerun alone,bash sminos/tests/test-hub.shexits 0.GREEN https://github.com/SSFSKIM/doperpowers/actions/runs/40675068104on 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/40677310721on c8e7876 (all eight gates PASS)doperpowers:reviewer-highfound one P2 (a send's stream resubscribe could exceed its 10 s bound underSNAPSHOT_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.scripts/bump-version.sh --plugin sminos 1.27.4reportsAll declared files are in sync at 1.27.4.Residue
sends.jsonis 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)