Repository navigation
P5: DX4 StepEnd gains optional t, model and effort (sminos 1.27.12) - #339
Merged
Merged
Conversation
…l (sminos 1.27.12) sminos's plane now sends three optional fields on `step-end`, each only when it knows it and never null for unknown, for remote lane A's cut reply placement and model chip: - `t`: the bridge's DX5 stamp of the event that ended the step (its step end, or the turn complete that cut it off), as a chunk's `t`. - `model` and `effort`: what the step's DX5 start carried, the main loop's override applied; `effort` null when the request named none. A subscription that began mid-step has the snapshot entry's model and no effort; a step known only by its chunks has neither. `StepEnd` types them. The fake machine passes a recording's stamps and start effort through (recording.ts) and, like the plane, keeps per subscription what it knew of each step's start (session.ts), so a mid-step watch gets what a real one would. Dx4Reader records each step-end's body. The hub relays a sub body verbatim, so both shapes pass; session-plane.test.ts pins the widened one. The DX4 spec's step-end row and the fake machine's rules say it. The overlay's cast to reach `t` goes, the type carrying it now. Sminos-Session: p5-desk-track-owner#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. |
SSFSKIM
added a commit
that referenced
this pull request
Oct 29, 2026
…ffort (with sminos 1.27.12) for remote lane A Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This was referenced Oct 29, 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.
DX4
step-end: the end's time and the step's model and effort, optional (sminos 1.27.12)Remote lane A needs two things DX4's
step-enddidn't carry. It places a cut reply's partial text by the step's own clock (DL 132's rule, today fed by local lane A's reshaper), and it shows the session's model chip. sminos 1.27.12's plane now sends both (doperpowers branchsminos-step-end-fields). This PR types the fields, makes the fake machine produce them the way the plane does, and documents them.The contract
step-end {turnId, agentId, step, t?, model?, effort?}. Each field is present only when the producer knows it, and is never null for unknown. Producers older than sminos 1.27.12 send none of the three.t, a number: the bridge's DX5 stamp of the event that ended the step, in ms since the epoch on the machine's clock, the same as a chunk'st.step end's stamp.turn complete's stamp.tcan trail the request's finish by up to 1 s. It is never later than the loop's next step start or its turn complete. This is the sametthat local lane A'sreshape.tsalready puts on its step-ends.modelandeffort: what the step's DX5step startcarried.effortisnullwhen the request named none.What a subscription knows depends on what it saw of the step:
modeleffortmodelThe hub reads nothing in a subscription message's body beyond checking that it is an object (
relay), so it relays both shapes as they came.What changed
apps/desk-hub/src/protocol/session.ts:StepEndgainst?: number,model?: stringandeffort?: string | null, with their semantics.apps/desk-hub/fake-machine/recording.ts: a bridge recording's step end and turn end keep theirt, and its step start keeps itseffort. A synthesized recording has neither.apps/desk-hub/fake-machine/session.ts: each subscription keeps what it knew of each open step's start, as sminos's plane does: the start it saw live, otherwise the snapshot entry's model alone. Its step-end carries that, plus the end'st, or the turn end'stfor a step that was cut off. A mid-step watch on the fake therefore gets what a real one would.apps/desk-hub/test/support/dx4-reader.ts: the reader records each step-end's body (stepEnds).src/renderer/src/lane-a/stream/overlay.ts: the cast it used to reachtis gone, since the type now carries it.docs/doperpowers/specs/2026-10-15-desk-design.md: the DX4step-endrow and the fake machine's rules describe the fields.test/protocol/session.test.tsadmits the widened shapes and refuses a nullmodelor a nullt.test/session-plane.test.tschecks the hub relays a widened step-end verbatim beside the old shape.test/fake-machine/depth.test.tschecks the committed recording's step-ends: each one'stis the recorded end's, or the cutting turn end's, and its model and effort are its start's. It also checks that a mid-step subscriber getsmodelwithouteffort, a chunk-only step gets neither, and an unstamped end gets not.Validation Evidence
e2e:desk-webadded because the first run's coverage warning named it: https://github.com/SSFSKIM/MAWS/actions/runs/40835962872flaky:line and no warning.e2e:desk-webwas added, also passed: https://github.com/SSFSKIM/MAWS/actions/runs/40834145272Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)