Repository navigation
desk-hub: MW5 image and PDF intake — the media RPC, MediaOpBody, the fake's mw5 producer - #174
Merged
Merged
Conversation
…fake's mw5 producer
RPC_NAMES gains media ({session, attachments: [{name, mediaType, data}],
delivery: 'queued-turn'}, answered {queued: true, upload, intake:
'native-read', root, paths} once the bridge holds the upload); MEDIA_TYPES
and MediaAttachment name its shape. OpBody's op admits 'media', and
MediaOpBody documents one attachment's change: rpc and id the upload, index,
state, toolUseId, reason, and the whole upload's attachments, phase 'end'
once every attachment has ended. The hub admits the RPC by name and relays
its op messages unread, as every op. The fake machine's mw5 producer (sminos
1.15.0) checks an upload as the daemon does, answers it queued with the
root under the session's live working directory, and sends each
attachment's states as op in the order the MW5 live check recorded them
(dx4/mw5-media.json); an older producer refuses media bad-shape.
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…n Log DX5's media op and event as built (the attachment's index is `index`; the event carries id, phase and the whole upload), DX4's op, DX6's media checks, refusals and restarts; the measured surprises (the engine's module-load rule on `$`, a Read outside the cwd after /cd, reloads deferred past a turn, a PDF document block on the Codex gateway); and the decisions MW5's text left open. 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. |
…the exclude, the wake re-check Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 7, 2026
…; M4's residue on boards #173 and #174 Progress records each merge with its sha; the cutover is ticked. Outcomes gains the cutover's entry, and M4's left-for-later items name their tickets (the conversation fixture is a row in the architect's tracker). Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 7, 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.
This is MW5 of the desk control surface (spec
docs/doperpowers/specs/2026-10-22-desk-control-surface-design.md, Plan of Work, the machine-side wave). It is the hub's half of image and PDF intake. Nothing inapps/desk-webchanges.What it builds
src/protocol/rpc.ts: the RPCmediatakes{attachments: MediaAttachment[]}and answers{upload, root, paths, state: 'queued'}; this file also addsMEDIA_TYPES.session.ts:OpBody.opadmitsmedia, withMediaStateandMediaOpBody. The body is{op:'media', rpc: upload, id, phase, attachments:[{index, name, mediaType, path, state, reason?}], t}.putOp) is unchanged, so media ops are relayed live only.mw5producer (--producer mw5, sminos 1.15.0). It answers from the live check's recording (fake-machine/dx4/mw5-media.json, its sha in the README):unsupportedwithout a bridge that takes media;queuedanswer whose root is under the live cwd;opnotices, ending inforwarded,failed,abortedor indeterminate after reload;uploads.index, notn, because the child stampsnon every line.Validation Evidence
apps/desk-hub/test/fake-machine/desk-mw5.test.ts:Tests 9 passed (9). RED, run on the base commit with only the test and recording added:Tests 7 failed | 2 passed (9).frames.test.tsis updated for the media result.vitest run test/fake-machine test/protocol test/op-store.test.ts test/session-plane.test.ts:24 files, 445 tests passed. desk-hub typecheck exits 0. ESLint on the touched files exits 0.scripts/ci-gate.sh /tmp/maws-desk-mw5 --gates static,unit→run 40333564047 success, exit 0, on a71e6a9 (https://github.com/SSFSKIM/MAWS/actions/runs/40333564047)mw5producer replays its answers. Results:queuedand endedforwarded. The next request carried theimageanddocumentblocks.failed.aborted.aborted(indeterminate after reload).The doperpowers half (bridge, daemon, sminos 1.15.0): SSFSKIM/doperpowers#400
Review fix wave (26f4816)
bad-shape, every walk from/, the scoped rollback, a file already in the way that is not a regular file, and the exclude refusal. A Decision Log entry, "MW5's review fixes", records all six fixes. The hub code is unchanged.Validation:
scripts/ci-gate.sh … --gates static,uniton 26f4816: success (https://github.com/SSFSKIM/MAWS/actions/runs/40340924792).Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)