Skip to content

Motion-first National playback: never stop for camera, quality, or history - #21

Merged
tcurtsinger merged 4 commits into
mainfrom
claude/national-playback-continuity
Aug 5, 2026
Merged

tcurtsinger merged 4 commits into
mainfrom
claude/national-playback-continuity

Conversation

@tcurtsinger

Copy link
Copy Markdown
Owner

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:

  • Pan/zoom while playing no longer freezes the loop. Motion starts immediately at the always-resident factor-4 commons and never waits for preparation. Sharp factor-1/2 preparation runs beside the loop as prefetch-only residency work and upgrades the quality lock between frames with a normal paint receipt. A camera change drops the lock to the commons (whole-domain, camera-independent) without stopping motion, then re-prepares in the background.
  • The "Mistr could not change scans" notice on pan is gone. It was 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.
  • The timeline fills while playing. The play session no longer holds the exclusive resident-only reservation that runNationalAcquisition spins 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.
  • Home-view playback no longer causes blur-then-sharpen. The below-threshold branch of quality preparation used to reset to the overview and prune all detail, deleting the complete-domain refined presentation; it now touches no residency.

Truth contracts unchanged: paint receipts, generation fencing, the two-credit broker, and the memory ledger are untouched; the relaxed commitPrefetchedStaging guard 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, and docs/29 §0.1 are synchronized.

Deferred with reason: pipelining backfill downloads against GPU commits needs a staged-frame queue in Rust (national_history.rs holds one staged slot); backfill stays serial per frame.

Validation

  • npm run verify green: 314 frontend tests (controller/quality suites rewritten to the motion-first contract), build, rustfmt, clippy, 134 Rust tests, cargo check. No Rust changes.
  • Packaged evidence (pan/zoom during playback, backfill progress while playing, absence of the scans notice) is owner-run per docs/29 §5.

🤖 Generated with Claude Code

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>

@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: 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>

@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: 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>

@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: 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".

Comment thread src/App.tsx Resolved
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>
@tcurtsinger
tcurtsinger merged commit 2dfd869 into main Aug 5, 2026
1 check passed
@tcurtsinger
tcurtsinger deleted the claude/national-playback-continuity branch August 5, 2026 00:27
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