Skip to content

Native-resolution residency: one version of the data, blur impossible by construction - #22

Merged
tcurtsinger merged 7 commits into
mainfrom
claude/national-native-residency
Aug 5, 2026
Merged

tcurtsinger merged 7 commits into
mainfrom
claude/national-native-residency

Conversation

@tcurtsinger

Copy link
Copy Markdown
Owner

Summary

Round 3 of docs/29_NATIONAL_RADAR_PERFORMANCE_FINDINGS.md (§0.2), implementing the owner decision of 2026-08-04: quality is never traded for memory on the supported desktop floor.

The blur the owner kept seeing was structural: a two-level model (coarse commons + on-demand sharp detail) makes every detail build visible. This PR removes the second level entirely:

  • Rust retains and serves every observation at the exact native 7,000×3,500 grid (OVERVIEW_FACTOR = 1). Backend target rises to 2 GiB for ~1 GiB of retained native encodings (64 GiB machine).
  • All 20 frames stay GPU-resident at full resolution — ~1 GiB for the loop plus one staged mutation, against a new 1,280 MiB target / 1,536 MiB hard ceiling (RTX 4090: 24 GiB). Receipt, generation, two-credit, and ledger contracts unchanged.
  • Deleted from the product path: playback quality preparation, the zoom-6 sharp gate, selected-frame refinement, camera-key memos, and the moveend playback handler (NationalPlaybackQuality.ts removed). Pan, zoom, play, scrub, and follow-newest all paint the same native-resolution pixels — there is nothing left that can blur.
  • The renderer now routes staging to residency slots explicitly rather than inferring the slot from the manifest factor.

Trade-offs, stated plainly: each observation transfers ~49 MiB (392 chunks) at acquisition instead of ~3 MiB, so backfill to 20 frames takes proportionally longer (newest still paints first; playback is usable throughout) — download pipelining against the single Rust staged slot remains the open follow-up. The supported-device floor is now ~1.2 GiB of free GPU memory, documented in the contract; a low-capability fallback is deliberately not maintained.

Validation

  • npm run verify green: 312 frontend tests, build, rustfmt, clippy, 134 Rust tests, cargo check.
  • Packaged evidence (native sharpness at every zoom with zero restaging, ~1 GiB stable GPU ledger, backfill duration) is owner-run per docs/29 §5.

🤖 Generated with Claude Code

Owner decision (2026-08-04): quality is never traded for memory on the
supported desktop floor. The two-level model - coarse commons plus
on-demand sharp detail - made every detail build visible as blur, and
no amount of scheduling could hide it. There is now exactly one version
of the data.

Rust retains and serves every observation at the exact full-resolution
grid (OVERVIEW_FACTOR 1; backend target 2 GiB for ~1 GiB of retained
native encodings). The GPU budget rises to a 1280 MiB target and
1536 MiB hard ceiling for the 20-frame loop plus one staged mutation;
receipt, generation, credit, and ledger contracts are unchanged. The
renderer routes staging to residency slots explicitly instead of
inferring the slot from the manifest factor.

Deleted from the product path: playback quality preparation, the
sharp-zoom gate, selected-frame refinement, camera-key memos, and the
moveend playback handler. Pan, zoom, play, scrub, and follow-newest
all paint the same native-resolution presentation, so blur is
impossible by construction. Each observation now transfers ~49 MiB at
acquisition; backfill stays serial per frame, with download pipelining
(single Rust staged slot) as the open follow-up.

Contract, README, current-state, decisions, and findings documents
record the decision and the ~1.2 GiB supported-GPU floor.

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: 1adf69c465

ℹ️ 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".

tcurtsinger and others added 2 commits August 4, 2026 20:13
commitStaging and commitInitialHistoryStaging still selected by the
staged manifest's presentation factor, which is 1 under native
residency and names the empty detail slot - the first National
acquisition would throw 'not complete at factor 1' before any paint.
Both commits now use the common-slot selector explicitly, matching the
slot the staging is routed into.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The phase-3 and phase-4 packaged validations asserted the retired
two-level model: 28-chunk factor-4 overviews, viewport refinement,
resident fallback levels, sharp quality locks, and the per-slice 4 ms
throw. Receipts now carry the native manifest factor (1) with 392
complete-domain chunks, no fallback or detail residency exists, motion
locks the common slot, budgets match the raised GPU contract, and
upload slices are gated by the 50 ms long-task ceiling with cold-start
pacing overshoot tolerated. Packaged phase-3 passes end to end on the
validation machine against live NOAA (392 chunks, native paint,
camera-move stability, context recovery, Site handoff).

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

ℹ️ 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".

tcurtsinger and others added 4 commits August 4, 2026 20:29
The driver's inline report conditions still encoded the retired model:
detail residency after a camera move, a factor-1/2 sharp lock during
high-zoom playback, and a factor-4 drop at country zoom. Under native
residency the same complete factor-1 presentation stays painted through
all three.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…controls live through commits

Interactive National point lookups decoded the compressed object on
every painted frame; with an inspection point set, cycling playback
burned a full gzip+GRIB+PNG decode per transition. The retained
presentation is now the exact factor-1 grid, so the lookup reads the
raw code straight out of the retained encoded chunk in constant time -
no decode runs and none is counted. The peak() diagnostic keeps its
full-grid decode scan.

The play control also stayed disabled through each ~49 MiB history
commit window (residentReplacementPending and transient residency
flags), which packaged chrome sampling caught 6 times in 83 samples.
The button now stays live - controller operations already wait out an
in-flight mutation through their residency gates - and
resumeAfterMutation only undoes its own pause, so an operator pause or
play during the commit window owns the final playback state.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tcurtsinger

Copy link
Copy Markdown
Owner Author

Packaged evidence: both suites PASS on the validation machine (RTX 4090, live NOAA).

Phase 3: native first paint (392 chunks, factor 1, complete domain), camera-move stability, context recovery, Site handoff — zero failures.
Phase 4: 20 native observations resident (~38 min span), 1,000 playback transitions at factor 1 with all-zero hot-path activity (network/decode/IPC/upload/point-lookups), peak GPU 996 MiB (target 1,280 MiB), backend ~1.01 GB (target 2 GiB), max upload slice 33.1 ms (ceiling 50 ms), context recovery, failed-transition drill, Site handoff — zero failures.

Also in this PR after review/evidence rounds: Codex's P1 (initial commit selected the empty detail slot — would have broken first paint), point lookups now read the retained native frame in constant time instead of decoding the compressed object per painted frame, playback controls stay live through history commit windows, and the phase-3/phase-4 packaged acceptance suites are updated to the native-residency contract.

🤖 Generated with Claude Code

@tcurtsinger
tcurtsinger merged commit 1cd7d5e into main Aug 5, 2026
1 check passed
@tcurtsinger
tcurtsinger deleted the claude/national-native-residency branch August 5, 2026 02:01
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