Repository navigation
desk-hub: MW2 ops — the btw RPC, compact's instructions, the fake's mw2 producer - #157
Merged
Merged
Conversation
…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)
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. |
…; 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)
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 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-webchanges.What it builds
apps/desk-hub/src/protocol/rpc.ts:RPC_NAMESgainsbtw.RpcArgs.btwis{session, prompt}(prompt: text, not blank, at most 8,192 characters).RpcResults.btwis{started: true, id}. The answer follows as DX4opwithop: "btw".RpcArgs.compactgainsinstructions?(at most 4,096 characters).session.ts:OpBody's doc names the fields abtwend carries.objects/project.tsis unchanged. The hub admits an RPC by its name and relaysopwithout reading it.The fake machine gets an
mw2producer (sminos 1.12.0), driven by the MW2 live check's recording,fake-machine/dx4/mw2-ops.json(its sha256 is indx4/README.md). It:btwamong the ops, withcontrols.btwavailable;{started, id}straight away, then sends the recorded start and end asopunder the RPC's nonce, mid-turn too;btwand ofcompact.instructions;unsupported;btwwithbad-shape(no RPC "btw") for producers older thanmw2, and listsbtwindesk.rpcsonly frommw2;--producer mw2.The spec:
/mcpmeasurement and the gap between tool spellings and configured names;The MW2 Progress tick is left to the controller.
Review fix wave
fake-machine/dx4/routes-2.1.307.jsonis doperpowers' new file, byte for byte. In it,/mcp disable, bare orall, is adropwith its reason. The hash is updated indx4/README.md.routeOfchecks eachotherwise's forms in turn, as the bridge does.scripts/ci-gate.sh /tmp/maws-desk-mw2 --gates static,unitat 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
formRouteis 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 --noEmitover desk-hub's three configs: clean.eslinton the changed files: clean.scripts/ci-gate.sh /tmp/maws-desk-mw2 --gates static,unitat ba99d72:success plan,success static,success unit 1/4to4/4. Run 40290560608, success.HOME,CLAUDE_CONFIG_DIRandSMINOS_HOME, launched underenv -i, with a recording stub and a dummy key, so zero inference was spent. Before the first model request the side question was refusednothing-to-fork(3 ms). Idle, it answeredstartedin 15 ms, and its start and end carried the RPC nonce. The 64 KiB cap held: 21,845 characters = 65,535 bytes, withtruncated: 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)