Repository navigation
Motion-first National playback: never stop for camera, quality, or history - #21
Conversation
Owner retest showed the playing path still failed after PR #20: a camera change paused the loop for a full 20-frame viewport re-preparation, a second pan surfaced RadarSourceSupersededError as the could-not-change-scans notice, the play session held the exclusive resident-only reservation so backfill and polling starved forever, and home-view playback pruned the complete-domain refined presentation. Motion now starts immediately at the always-resident factor-4 commons and is never stopped by sharpness or a camera change. Quality preparation runs beside the loop as prefetch-only residency work: the relaxed commitPrefetchedStaging guard admits the selected observation while its common level is active, prefetch commits wait for paint quiescence, and the prepared factor upgrades the quality lock between frames with a normal receipt. A camera change drops the lock to the camera-independent commons and re-prepares in the background; supersession is filtered from every playback error surface; playback holds no reservation so backfill and strictly-newer polling continue during motion; below the sharp threshold preparation touches no residency, so the refined presentation survives home-view playback. Contract, README, current-state, and findings documents record the motion-first owner decision dated 2026-08-04. Backfill download pipelining stays deferred: the Rust history store holds a single staged frame slot. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec92f44dbe
ℹ️ 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".
pauseAndWait(false) callers - source transitions and history replacement - settle resident paint precisely so no detail work races them. The settled-selection refinement hook ignored that suppression and armed the timer once the pending paint completed. A suppression flag now spans the awaited operation, and both the suppressed and the plain-pause paths are covered by tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 16f20fa25a
ℹ️ 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".
A pause that lands while a selection awaits its paint receipt leaves that operation in flight with the play control re-enabled; a second click then rejected with 'a National frame selection is already awaiting paint' and surfaced as a playback error. play() now awaits the settling selection as part of its own start before issuing the common selection, and the rapid pause/play cycle is covered by a test. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7cde86ca22
ℹ️ 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".
The sharp-preparation gate read the active presentation factor, which flips to the commons before the paint receipt lands, so preparation could reach beginStaging during an unfinished paint; the rejection was swallowed by the background upgrade and sharp playback silently stayed at factor 4. The App gate now requires the authoritative painted factor-4 receipt, and the working set waits out any pending paint immediately before beginStaging - the begin call runs synchronously in that continuation, which no timer-driven selection can interleave with, closing the same window for history commits staged beside motion. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Summary
Round 2 of
docs/29_NATIONAL_RADAR_PERFORMANCE_FINDINGS.md(§0.1): the owner's packaged retest showed PR #20 fixed only the paused path. This PR restructures the playing path so the loop never stops:RadarSourceSupersededError— normal control flow when a newer camera supersedes an in-flight preparation — leaking through the moveend/play/scrub handlers into the playback-area toast. Supersession is now filtered at every playback error surface, and the camera notification path produces no awaited rejections at all.runNationalAcquisitionspins on, so backfill and strictly-newer polling proceed during motion; each history commit briefly pauses/resumes the loop through the existing replacement contract, and sharp preparation defers until retained history settles.Truth contracts unchanged: paint receipts, generation fencing, the two-credit broker, and the memory ledger are untouched; the relaxed
commitPrefetchedStagingguard still forbids replacing an active detail presentation without a paint, and prefetch commits wait for paint quiescence so a motion paint's rollback state can never go stale.Owner decision recorded (2026-08-04): the engineering contract's Phase 4 playback sentence now specifies motion-first playback;
docs/README.md,docs/20_ALPHA_CURRENT_STATE.md, anddocs/29§0.1 are synchronized.Deferred with reason: pipelining backfill downloads against GPU commits needs a staged-frame queue in Rust (
national_history.rsholds onestagedslot); backfill stays serial per frame.Validation
npm run verifygreen: 314 frontend tests (controller/quality suites rewritten to the motion-first contract), build, rustfmt, clippy, 134 Rust tests, cargo check. No Rust changes.🤖 Generated with Claude Code