Repository navigation
sminos: MW2 ops — the side question, compact's instructions, /mcp as measured (1.12.0) - #397
Merged
Merged
Conversation
…measured (1.12.0) - btw: the bridge op (bridge-btw.tsx) frames the question, answers started at once (nothing-to-fork within 250 ms refuses it), and posts btw start and end, the answer bounded at 64 KiB of UTF-8 (truncated when cut); the child carries the RPC's nonce on both and keeps the end; the daemon's btw RPC (prompt at most 8,192) relays them as DX4 op "btw", through a stop too. - compact takes instructions (at most 4,096), passed to the bridge. - /mcp on 2.1.310: routes-2.1.310.json, carried from 2.1.307 with mcp re-measured: one server by its configured name (spaces admitted), the every-server forms through otherwise with confirm, a bare reconnect refused; routes_check.py checks every fixture and the carry, and writes one table per engine. 2.1.307's fixture is unchanged. Sminos-Session: desk-sminos-orchestrator#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. |
…pt until taken - The ids of side questions answered started are kept in session-scoped $.state (sminos/btw) until the child took their end; the module that loads after a reload ends each it finds and does not hold, aborted, and the child names that end by the original nonce. - A run or btw end is owed until a post the child answered carried it: every resync is followed by the ends still owed, so one that came while no child was there, or whose post failed, reaches the next child. - The child relays each op's end once, by its id (an end kept beside an answer counts), dropping one the mod posts again. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
… a server name - /mcp disable, bare or all, is refused on 2.1.310 and 2.1.307 alike: "turns off every server, this desk's own tools among them: run it in the terminal" (the write persists for the project and turns off the desk's own tool servers). enable all and reconnect all keep their confirm. On 2.1.307 it is a refusal only, not a new measurement (measured: I). - 2.1.310 parses /mcp's arguments with a `.` that stops at U+2028/U+2029: the one-server form excludes both, so such a name never opens the panel. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
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.
The machine half of MW2 ("ops") of the desk control surface spec (MAWS
docs/doperpowers/specs/2026-10-22-desk-control-surface-design.md, Plan of Work, MW2). sminos 1.11.0 → 1.12.0. The hub half is SSFSKIM/MAWS#157.What it builds
btw. A new bridge op insminos/hooks/mods/bridge-btw.tsxputs the spec's frame in front of the question (Answer the following without using any tools and without continuing your current task; one reply, then stop.), calls$.model.fork, and answers{started: true, id}straight away. If the engine says within 250 ms that there is nothing to fork, the op is refused instead (code: "nothing-to-fork"). Then it postsbtwstart and end events. An end carries eithertextandusage {input, output, cacheRead, cacheWrite}or areason. The text is capped at 65,536 bytes of UTF-8, cut between code points and markedtruncated: true. Anapi-errorend addsstatusanderror, and a fork that rejects endsreason: "failed", so every side question that started also ends.sminos_bridge.py) keeps the RPC nonce for abtwop, as it does for arun. It stamps the nonce on the start and end events and keeps the end (text cut to 4,096 characters).sminos_requests.pyaddsbtwtoWANTED.sminos_rpc.pyadds thebtwRPC: the prompt must be text, not blank, at most 8,192 characters. The op path is now general: the op's kind is stored on its claim, so restart, reconcile and recovery all report abtwevent asop: "btw".compacttakesinstructionsof at most 4,096 characters and passes them to the bridge./mcp's grammar, measured on 2.1.310. A new fixture,sminos/tests/routes-2.1.310.json, is carried from 2.1.307 with onlymcpre-measured.routes_check.pynow takes every fixture, checks the carry and the mcp row, and writesbridge-routes.tsxwith one table per engine. The 2.1.307 fixture is byte-unchanged, so MAWS's vendored copy stays identical. The 2.1.310mcprow:^(?:enable|disable|reconnect) (?!all$)[^\s\x00-\x1f\x7f][^\x00-\x1f\x7f]*$. Spaces inside the name are allowed;allis excluded.enableordisable,… all,reconnect all) goes throughotherwise, withconfirmand an outlives that names the plugins' own tool servers.reconnect(it opens a panel), a doubled space, a control character, and any other verb.Validation Evidence
The live check: engine 2.1.310, fully isolated.
HOME,CLAUDE_CONFIG_DIRandSMINOS_HOMEunder/private/tmp/mw2-live/<case>, launched underenv -i.ANTHROPIC_BASE_URLpoints at a recording stub on 127.0.0.1 with a dummy key, so zero inference was spent.--plugin-dir, with the bridge child's/commanddriven directly./tmp/dsk-scripts/mw-wave/mw2-live/live.py, evidence/tmp/dsk-scripts/mw-wave/mw2-live/evidence/{b1,g1,r1}.python3 -I live.py btw b1:{"ok": false, "code": "nothing-to-fork"}in 3 ms.startedin 15 ms. The start and end carryrpc: "nonce-btw-1". The end hastext: "BTW stub answer"andusage {input 100, output 10, cacheRead 50, cacheWrite 7}.가, 90,000 bytes): the end hastruncated: true, with 21,845 characters = 65,535 bytes, a prefix of the reply.startedin 11 ms, the answer came 0.01 s after the ask, and the turn ended 8.6 s after it.compactwith instructions: the marker reached the summarizer's request.python3 -I live.py grammar g1ran on a measurement copy whosemcpform admitted any text, so the engine's own answer is what got recorded:disable probe_server(the tool spelling)MCP server "probe_server" not founddisable probe server/enable probe serverprobe serverreconnect probe serverSuccessfully reconnected to probe serverdisable(bare)Disabled 3 MCP server(s)probe server,plain,sminosdisable all/enable all/reconnect allDisabled 4/Enabled 4/No MCP servers need reconnectingreconnect(bare)python3 -I live.py routes r1used the built table. Every admitted form ran with the same answers as above.reconnect,remove plain,enable a\tb,reconnect probe serverandenable plaineach answeredbad-argsin 2–7 ms and never reached the engine.Tests, run locally:
claude plugin test .(insminos/): 520 pass, 0 fail.bash sminos/tests/test-bridge-control.sh: all 163 passed.python3 sminos/tests/test_rpcs.py -k m2 -k test_l_ -k test_f_ -k test_i_: 34 tests OK.python3 sminos/tests/routes_check.py sminos/tests/routes-*.json: 44 ok, 0 FAIL.tsc -p sminos/hooks/mods/tsconfig.jsonagainst the 2.1.310 declarations: clean.bash sminos/tests/run-sminos-tests.sh: 2 of 2,413 assertions failed. Both are the "send to codex without codex on PATH" assertions. They fail locally only becausepython3andcodexshare/opt/homebrew/binon this machine; the gate'ssminosjob passes them.ci-gate(a0febef): GREEN, every gate (repo-checks, sminos-mods, mods-types, shell-lint, board-api, sminos, issue-tracker, sminos-suites): https://github.com/SSFSKIM/doperpowers/actions/runs/40292170462Review fix wave
btwsurvives a reload (P1). Each open side question is kept in$.state(sminos/btw) from before itsstartedanswer until the child took its end. The next module ends each one it finds there,aborted, under the original nonce.{"phase": "end", "reason": "aborted", "rpc": "review-btw-pending-reload"}. Before the fix there was none. Evidence:/tmp/dsk-scripts/mw-wave/mw2-live/evidence/fix-reload-21950/.runandbtwends are owed until a post the child answered carried them, and every resync is followed by those still owed. The child relays each op's end once, by its id.all, on 2.1.310 and 2.1.307. The reason: turns off every server, this desk's own tools among them: run it in the terminal.enable allandreconnect allkeep their confirm. On 2.1.307 this is a refusal only, recordedmeasured: I.ci-gateat 3266824: GREEN, all 9 gates (https://github.com/SSFSKIM/doperpowers/actions/runs/40297214391).Commits: c7c3cd4 (side-question reload recovery, owed ends, the child's dedupe), 3266824 (the routes). The regenerated
bridge-routes.tsxand the new route tests landed in c7c3cd4 by mistake and its fixtures in 3266824, soroutes_checkand the route tests pass only at the head. No amends, per the brief.Residue
The orchestrator's ruling on the configured-name gap: ship as measured, and decide it when the web half lands.
/mcpresolves a server only by its configured name. Themcpread names a connected server by its tool spelling (probe serverreads asprobe_server), and the engine answers "not found" for a tool spelling.plugin:<p>:<s>), which are most of the owner's MCP servers.formRoutefollows one level ofotherwisewithout checking its pattern. The bridge and the fake check each level, but the web would offerdisable allbehind a confirm (the bridge then refuses it) and draw a 2.1.307restart xas that drop's reason. It should follow the chain as the bridge does.Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)