Repository navigation
P5-E312: MAWS verified against Claude Code 2.1.312 (normal-use frames mapped, fixtures, live groups, tested version) - #341
Conversation
…r, on the engine the owner runs Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…g for; a published change re-asks gh for the PR state Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tus's additive published (wire minor 6), not a new X1 kind, which would take a wire major; dev_intent typed and mapped to none Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…-library-live, plugins-live, p1-live, keep-quit-live, tools-live and agents-live join LIVE_E2E, their specs' own flags set by the e2e job under Live: yes, each script naming its cap, the installed engine and its logs under test-results/; the plugins specs read A-15 themselves, agents-live's row latency goes through the load-aware budget Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ng maws ask) joins LIVE_E2E, its suite skipping without MAWS_LIVE Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…one leaves the PR state alone, and a publish heard while nothing holds the PR state stays for the next status carrying it Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… are known bookkeeping, not unknown frames Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e312-*), replayed by the conformance suite; P5 children admitted to the pass-3 provenance rule Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the probes on a devcloud VM and their replay Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…d the live groups' re-run (the latter on the mini at landing) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…hen it lands, so a read of the state before the publish no longer overwrites it; the PR state left stale for a session that sends no later status is logged as debt Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… one error at the end, so run-pass3 exits non-zero Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tect writes it at landing Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…esidue rows Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 55daed685b
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| export function refreshPublishedPrState(appSessionId: AppSessionId, published: EngineSessionStatus['published'], client: MawsBridge): void { | ||
| if (published === undefined || publishedSeen.get(appSessionId) === published.at) return; | ||
| const key = prStateKey(appSessionId); | ||
| if (Date.now() - Date.parse(published.at) >= PR_STATE_POLL.refetchInterval || queryClient.getQueryState(key) === undefined) return; |
There was a problem hiding this comment.
Consume pending publishes when the PR query becomes enabled
If a publish arrives before this session has a PR query, this early return leaves no refresh scheduled when the query is subsequently created. Opening the row within main's 60-second cache window can therefore retrieve the pre-publish PR state. The new test covers recovery through a later session.status, but an exited session receives no periodic status updates because ProcessTable.sampleMemory excludes exited processes; its row remains stale until the two-minute poll. Retain the pending publish and consume it when usePrState becomes enabled, rather than requiring another status event.
Useful? React with 👍 / 👎.
…S5, p1-live case 3, agents-live v to vii); 2.1.310 on, the Bash tool refuses a foreground command whose first part is `sleep N`, N >= 25; S5 counts the call as running once its permission ask is answered or 2 s pass with none Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… green, keep-quit red on 2.1.310's sleep guard; run 40874225082: keep-quit green with S5's node job); the findings record the guard, what users see, and the probe scenarios it reaches Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…erified against Claude Code 2.1.312; the engine's sleep guard recorded; four tracker rows and two amended; UX ticket #351 Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
MAWS verified against the Claude Code version the owner runs, 2.1.312 (charter D-1, W13).
The notice "Claude Code 2.1.312 is newer than the version MAWS was verified against (2.1.296); some events were not understood" came from a gap older than 2.1.296. Claude Code has sent
system/session_title_changedsince 2.1.284–2.1.287. The owner's own MAWS journals also holdvcs_state_changedandpermission_check_statusframes that MAWS did not map (counts and versions only; nothing from the journals leaves the machine). Before, these were silent, because the notice only fires on an engine newer than the tested version.Findings:
spikes/protocol-probe/findings-p5-e312-engine.txt.What changes
system/*subtypes that a MAWS launch receives in normal use are now typed (src/shared/wire/frames.ts) and mapped on purpose (src/engine-host/normalizer-system.ts).model_fallbackandmodel_consent_fallbackbecomenotice.postedwarnings.code_change_publishedre-asks gh for the PR row at once, through the status's new optionalpublished {url, action, at}field. This is an additive X6 change;WIRE_MINORgoes to 6 and the manifest is regenerated. An X1 event kind would have been a wire major. The renderer side isrefreshPublishedPrState, called from the app-level panel listener.session_title_changed,vcs_state_changed,permission_check_status,per_turn_effort_changed,memory_recallanddev_intentmap to nothing, because an existing path already shows the fact promptly, or no surface shows it at all. The title'scustom-titlerecord lands 5–20 ms after the frame.api-request*) and itstools-usedstamp as known bookkeeping.fixtures/pass3/p5-e312-*, each with its presentation snapshot and conformance pins. The probe scenario isscenarios/pass3/p5-e312.mjs. The pass-3 provenance rule now admits P5 children.--live:available-live,plugins-library-live,plugins-live,p1-live,keep-quit-live,tools-live,agents-live,ask-interrupt-live. They cover P2-F R1/R2/R4 and E11 S1/S2/S3/S5/S6/S7/S8.TESTED_ENGINE_VERSIONmoves from 2.1.296 to 2.1.312.Evidence
docs/doperpowers/evidence/p5-e312/probes.txt. They ran on 2.1.312 on a devcloud VM, with the owner's managed settings hidden, through the mini's relay, and only while the mini had no hold.frame.unknown, 0invalid_frame.docs/doperpowers/evidence/p5-e312/live-mini.txtis to be added.Residue
These are listed as rows in the findings; the architect writes the tracker at landing.
permission_check_status,memory_recallanddev_intenthave no MAWS surface. Whether to add one is a UX decision.model_consent_fallback: the model chip moves at the next system/init.| 2026-10-29 | P5 engine verification, P5-E312 (
src/renderer/src/tools/scm/queries.ts,refreshPublishedPrState) | A publish heard while no surface holds the session's PR state is left unconsumed, so the next status carrying it asks gh again; but nothing asks when the PR state's query is created. An exited session gets no further status (ProcessTable.sampleMemorypasses over exited sessions), so a row opened within main's 60 s kept answer can show the PR state from before the publish until the 2-minute poll. | Review of the P5 E312 publish refresh; the case 'asks for a publish heard before the PR state was held once a later status carries it' (src/renderer/src/ipc/events.panel.test.ts) pins only the later-status path. |usePrStateconsults a pending publish when its query becomes enabled and asks gh past main's kept answer, pinned by a case that opens the row after the session's last status. |Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)