Skip to content

desk-hub: MW2 ops — the btw RPC, compact's instructions, the fake's mw2 producer - #157

Merged
SSFSKIM merged 5 commits into
masterfrom
desk-ctl-mw2
Oct 26, 2026
Merged

SSFSKIM merged 5 commits into
masterfrom
desk-ctl-mw2

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

The hub half of MW2 ("ops") of the desk control surface spec (Plan of Work, MW2). The machine half is SSFSKIM/doperpowers#397 (sminos 1.12.0). Nothing in apps/desk-web changes.

What it builds

  • apps/desk-hub/src/protocol/rpc.ts:

    • RPC_NAMES gains btw.
    • RpcArgs.btw is {session, prompt} (prompt: text, not blank, at most 8,192 characters).
    • RpcResults.btw is {started: true, id}. The answer follows as DX4 op with op: "btw".
    • RpcArgs.compact gains instructions? (at most 4,096 characters).
  • session.ts: OpBody's doc names the fields a btw end carries.

  • objects/project.ts is unchanged. The hub admits an RPC by its name and relays op without reading it.

  • The fake machine gets an mw2 producer (sminos 1.12.0), driven by the MW2 live check's recording, fake-machine/dx4/mw2-ops.json (its sha256 is in dx4/README.md). It:

    • reports btw among the ops, with controls.btw available;
    • answers a side question {started, id} straight away, then sends the recorded start and end as op under the RPC's nonce, mid-turn too;
    • checks the arguments of btw and of compact.instructions;
    • refuses a side question on a stale session unsupported;
    • refuses btw with bad-shape (no RPC "btw") for producers older than mw2, and lists btw in desk.rpcs only from mw2;
    • is reachable from the CLI as --producer mw2.
  • The spec:

    • a Decision Log entry, "MW2 as built";
    • five Surprises, including the /mcp measurement and the gap between tool spellings and configured names;
    • dated Interfaces lines for DX5 ops, the route table and DX6.

    The MW2 Progress tick is left to the controller.

Review fix wave

  • The vendored fake-machine/dx4/routes-2.1.307.json is doperpowers' new file, byte for byte. In it, /mcp disable, bare or all, is a drop with its reason. The hash is updated in dx4/README.md.
  • The fake's routeOf checks each otherwise's forms in turn, as the bridge does.
  • The spec gains a Decision Log entry for the review wave, three Surprises entries, the 2.1.307 row note, and revised route-table and DX5 lines.

scripts/ci-gate.sh /tmp/maws-desk-mw2 --gates static,unit at 15188dd: plan, static, unit 1-4/4 success (run 40297217813).

Commits: 560aacb (fake and fixture), 15188dd (spec). The Residue on configured names and the web's formRoute is in the doperpowers PR.

Validation Evidence

  • npx vitest run test/fake-machine/desk-mw2.test.ts: 8 passed. With the implementation stashed, 7 of 8 failed (RED).
  • npx vitest run test/fake-machine test/protocol test/session-plane.test.ts: 410 passed, after the pinned count of RPC results moved from 11 to 12.
  • tsc --noEmit over desk-hub's three configs: clean. eslint on the changed files: clean.
  • scripts/ci-gate.sh /tmp/maws-desk-mw2 --gates static,unit at ba99d72: success plan, success static, success unit 1/4 to 4/4. Run 40290560608, success.
  • The live check behind the recording. Engine 2.1.310, isolated: fresh HOME, CLAUDE_CONFIG_DIR and SMINOS_HOME, launched under env -i, with a recording stub and a dummy key, so zero inference was spent. Before the first model request the side question was refused nothing-to-fork (3 ms). Idle, it answered started in 15 ms, and its start and end carried the RPC nonce. The 64 KiB cap held: 21,845 characters = 65,535 bytes, with truncated: true. Mid-turn, it was answered 0.01 s after the ask while the turn ran another 8.6 s. Full evidence is in the doperpowers PR.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)

…w2 producer

RPC_NAMES gains btw ({session, prompt}, answered {started: true, id}; the
answer follows as op); compact gains instructions? (at most 4,096). The hub
admits both by name, as every RPC. The fake machine's mw2 producer (sminos
1.12.0) answers from the MW2 live check's recording (dx4/mw2-ops.json): btw
among the ops, controls.btw available, a side question started at once and
its recorded start and end sent as op under the nonce, mid-turn too.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…erfaces

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T08:40:33.191189Z ba99d72 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.

…; otherwise followed in turn

The vendored routes-2.1.307.json is doperpowers desk-ctl-mw2's (byte for
byte; hash in dx4/README.md): /mcp disable, bare or all, is a drop with its
reason. The fake's routeOf checks each otherwise's forms in turn, as the
bridge's refusalOf does, so a miss past the drop is still bad-args.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…d-safe side questions

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit c311660 into master Oct 26, 2026
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