Skip to content

desk-hub: MW1's reads and capabilities.controls — types, the fake machine's mw1 producer, the spec as built - #153

Merged
SSFSKIM merged 6 commits into
masterfrom
desk-ctl-mw1
Oct 26, 2026
Merged

SSFSKIM merged 6 commits into
masterfrom
desk-ctl-mw1

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 26, 2026

Copy link
Copy Markdown
Owner

The hub half of MW1 ("reads") in the desk control surface spec's machine-side wave, plus the spec's record of how MW1 was built.

What it builds

  • Protocol types (apps/desk-hub/src/protocol/session.ts, the one place each shape is written):
    • Capabilities.controls? as ControlCapabilities, keyed by CONTROL_KEYS, the lane map's 20 control names. A missing key means unavailable.
    • The read results UsageRead, ConfigRead (with ConfigRow), SettingsRead (with PermissionRule) and McpRead (with McpServerStatus). Each is path-neutral: lane B's optional fields are named, and lane A leaves them out.
  • Hub admission is unchanged. A presence's capabilities is relayed and kept whole, unread, so controls passes through as it is. The session-plane test now carries controls to prove it.
  • The fake machine has a new mw1 producer:
    • Each bridged session's presence carries capabilities.controls, and the machine's desk.sminos is 1.11.0.
    • On a main subscription it answers read usage (the full count when {breakdown: 'full'} is asked), config, settings and mcp. A bad breakdown is answered failed, and an agent's subscription unsupported.
    • The answers come from the MW1 live check's recording, fake-machine/dx4/mw1-reads.json, whose sha256 the README pins and a test checks.
  • The spec:
    • Interfaces: the DX5 read results as built (a dated line) and DX4's Capabilities with controls.
    • Surprises & Discoveries: six observations from the live check.
    • Decision Log: "MW1 as built".
    • The MW1 Progress tick is left to the orchestrator.

Validation Evidence

  • Gates. scripts/ci-gate.sh /tmp/maws-desk-mw1 --gates static,unit on 4dca95608: ci-gate: run 40279718715 success (plan, static, unit 1/4–4/4 success): https://github.com/SSFSKIM/MAWS/actions/runs/40279718715
  • Focused tests. npx vitest run test/fake-machine/desk-mw1.test.ts test/fake-machine/desk-m0.test.ts test/session-plane.test.ts: 3 files passed, 70 tests passed. After the recording-hash test was added, desk-mw1.test.ts alone showed 5 passed.
  • RED for desk-mw1.test.ts, run against the previous fake machine: 3 failed, e.g. expected undefined to be '1.11.0' and no six answers within 10000 ms. The M1 control test passed, as it should.
  • Typechecks. tsc --noEmit over tsconfig.json, tsconfig.protocol.json and tsconfig.test.json exits 0. eslint on the changed files is clean.
  • Live check. The machine half's live check (Claude Code 2.1.310, isolated profile, recording stub, zero inference) is in the doperpowers PR. Its recorded answers are this PR's fixture.

Machine half: SSFSKIM/doperpowers#395

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

…tate, branches, versions, reviews

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…hine's mw1 producer

The hub half of the machine-side wave's MW1 (the desk control surface spec): the
protocol's types for the four new reads (UsageRead, ConfigRead, SettingsRead,
McpRead) and for capabilities.controls (the lane map's 20 control keys), and the
fake machine's `mw1` producer, which carries controls in each bridged session's
presence and answers `read usage` (full when asked), `config`, `settings` and
`mcp` from the MW1 live check's recording (fake-machine/dx4/mw1-reads.json).
The hub relays a presence's capabilities and a read's body unread, so nothing it
admits changes; the session-plane test now carries controls through.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
… check's discoveries

Interfaces: DX5's read results as MW1 built them (a dated line), DX4's
Capabilities with controls. Surprises: rate limits absent off a subscription,
the full breakdown's token-count cost, MCP names in tool spelling, the
project key of .claude.json, the engine's text config rows, the harness's
marketplace clone. Decision Log: MW1 as built. The MW1 Progress tick is left to
the orchestrator.

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-26T06:56:39.522112Z 4dca956 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.

The spec's Decision Log took both sides: master's MW5 review entry, then this
branch's pre-flight and MW1-as-built entries.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…e and project key

The MW1 review's two fixes, folded into the as-built text: the plane reads the
legacy .config.json while it is nonempty, and keys a linked worktree by its
primary checkout, as 2.1.310 does (Interfaces' dated MW1 paragraph, the
Surprises observation with the w1 and l1 live runs, the Decision Log's MW1 entry).

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit 3202573 into master Oct 26, 2026
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
…and B4 step 3 take DL 86's two checks

Follows P5 Decision Log 86, which is on this branch through the merge with
master.

- M5b's Touches and Decisions name the staging check's retirement. O13 M7's
  phone run supersedes it.
- sminos's opt-in DX2 tests are deferred to after B4 (board #153).
- B1 step 7 watches the first production `json_extract`.
- B4 step 3 checks `node` on the VM's PATH before the merge.
- One dated Decision Log entry records the retirement.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM added a commit that referenced this pull request Nov 7, 2026
… track's finding at doperpowers board #153); PR #510 closes the two 11-07 hosted flake rows

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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