Skip to content

P5-E312: MAWS verified against Claude Code 2.1.312 (normal-use frames mapped, fixtures, live groups, tested version) - #341

Merged
SSFSKIM merged 21 commits into
masterfrom
p5-engine-2-1-312
Oct 29, 2026
Merged

SSFSKIM merged 21 commits into
masterfrom
p5-engine-2-1-312

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 29, 2026

Copy link
Copy Markdown
Owner

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_changed since 2.1.284–2.1.287. The owner's own MAWS journals also hold vcs_state_changed and permission_check_status frames 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

  • Frames typed and mapped. Nine 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_fallback and model_consent_fallback become notice.posted warnings.
    • code_change_published re-asks gh for the PR row at once, through the status's new optional published {url, action, at} field. This is an additive X6 change; WIRE_MINOR goes to 6 and the manifest is regenerated. An X1 event kind would have been a wire major. The renderer side is refreshPublishedPrState, called from the app-level panel listener.
    • session_title_changed, vcs_state_changed, permission_check_status, per_turn_effort_changed, memory_recall and dev_intent map to nothing, because an existing path already shows the fact promptly, or no surface shows it at all. The title's custom-title record lands 5–20 ms after the frame.
  • Transcript records. The chain follower now treats 2.1.312's request-replay transcript records (api-request*) and its tools-used stamp as known bookkeeping.
  • Fixtures. Five 2.1.312 fixtures, fixtures/pass3/p5-e312-*, each with its presentation snapshot and conformance pins. The probe scenario is scenarios/pass3/p5-e312.mjs. The pass-3 provenance rule now admits P5 children.
  • Live groups. Eight core live paths are now LIVE_E2E groups that run on the mini under --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 version. TESTED_ENGINE_VERSION moves from 2.1.296 to 2.1.312.

Evidence

  • Probes: 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.
    • 36 existing scenarios were re-recorded and replayed through this branch's Normalizer: 0 frame.unknown, 0 invalid_frame.
    • Spend: US$0.62. The VM cost about US$0.33 and has been deleted.
  • Gates on 55daed6:
    • class 1a green, run 40837846186;
    • the hosted reach groups green on the same code (7ef4cd6, run 40834976335): delivery, panel, scm, supervisor, supervisor-daemon, transcript.
  • Live mini run: pending the architect's go. docs/doperpowers/evidence/p5-e312/live-mini.txt is to be added.

Residue

These are listed as rows in the findings; the architect writes the tracker at landing.

  • to-human-live (R3) cannot run. P4-R7z withdrew the contract it asserts, so it needs a rewrite or retirement.
  • E11 S4's browser cases were retired.
  • permission_check_status, memory_recall and dev_intent have no MAWS surface. Whether to add one is a UX decision.
  • model_consent_fallback: the model chip moves at the next system/init.
  • Probe upkeep: end-session-archive and context-full are macOS-only, and p1-side-question's disk check misreads the request-replay records.
  • Tracker row:

| 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.sampleMemory passes 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. | usePrState consults 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)

…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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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-29T08:12:09.496477Z 55daed6 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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)
@SSFSKIM
SSFSKIM merged commit a40a91d into master Oct 29, 2026
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
…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)
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