Repository navigation
Batch National chunk transfers and extend history to 60 frames - #25
Conversation
- National history ships up to 16 PackedGrid chunks per MGB1 envelope through a two-credit pipeline that overlaps parse with ordered uploads. - National and Site history capacity rises from 20 to 60 frames, with GPU and backend memory budgets resized to match. - National backfill stops after three consecutive failures instead of starving live polling; Site predecessor loading retries a failed step up to three times. - Playback keeps its selection and remaining dwell across history commits. - Notices move to screen-reader only; scan times use 12-hour local time. - Adds docs 30 (system audit) and 31 (core optimization). Co-Authored-By: Claude Opus 5.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: 6ea5c22ed7
ℹ️ 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".
| import { isSupportedRadarSite } from "../data/radarSites"; | ||
|
|
||
| export const MAX_LIVE_HISTORY_FRAMES = 20; | ||
| export const MAX_LIVE_HISTORY_FRAMES = 60; |
There was a problem hiding this comment.
Update Site acceptance gates for the 60-frame capacity
Raising this shared Site/National limit makes current Site reports expose capacity: 60 and remain partial at 20 frames, but scripts/phase5-packaged-validation.mjs still requires capacity 20, while scripts/alpha-live-soak-validation.mjs and its runner both require a 20-frame capacity and cap the target at 20. Consequently test:phase5:packaged now deterministically reports a capacity failure, and test:alpha:soak cannot validate the new full capacity and fails its capacity/partial-history gates even at its maximum target. Update those active harnesses and their tests/range validation alongside this constant.
Useful? React with 👍 / 👎.
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. |
With notice banners gone, offline, retrying and failed states had no visual signal. A 10px mark beside the frame age now shows that a notice exists: a hollow cyan ring for information, a solid danger dot for a problem. Hover or keyboard focus reveals the text above the playback bar; no banner returns. National history reported "loading" whenever the backend still listed predecessors, even after backfill had given up, so every successful poll reset the status for the rest of the session. Loading now also requires an active backfill run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- maplibre-gl 6.1.0 -> 6.11.2 (GHSA-jrc7-96c5-q579, critical, <=6.4.0). The attribution control passes provider TileJSON text into innerHTML, so the path was reachable; the CSP already blocked script execution. @maplibre/maplibre-gl-style-spec 26.2.1 -> 26.4.4 to match its types. - vitest 4.1.10 -> 4.1.11 (GHSA-82fw-gwwq-j7x9) and a lockfile refresh for nanoid (GHSA-2v37-7h3g-55p8); both dev-only. - rustls 0.23.43 -> 0.23.45 (RUSTSEC-2026-0285) with aws-lc-rs/-sys and rustls-webpki patch updates. - CSP adds object-src, base-uri, form-action and frame-ancestors 'none'. Left as-is: time 0.3.45 (fix needs Rust 1.88 above the declared 1.85 rust-version) and quick-xml 0.38.4 (fix is 0.41); neither vulnerable path is used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tauri:dev ran the backend unoptimized: decoding and encoding one native National frame took ~5.0 s, so a 60-frame loop needed ~5 minutes. With opt-level 1 for the crate and 3 for dependencies it takes ~0.35 s (release: ~0.18 s). Rust unit tests drop from ~12 s to ~2 s. Debug info is kept; the first dev build after this recompiles dependencies once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The phase 5 and Alpha soak validators still required a capacity of 20, so test:phase5:packaged failed deterministically and test:alpha:soak could not target full capacity. Both now read one shared LIVE_HISTORY_CAPACITY, pinned to MAX_LIVE_HISTORY_FRAMES by a test, and the soak defaults to (and allows up to) the full 60 frames. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
First implementation pass on boot-to-complete-loop latency and longer history. Full write-up in
docs/31_RADAR_CORE_OPTIMIZATION.md. This branch also adds the August system audit (docs/30_RADAR_SYSTEM_AUDIT.md).Transfer
MGB1envelope, so a native 392-chunk frame takes 25 batch calls instead of 392 single-chunk calls.History capacity
Playback
NationalPlaybackController: frame 21 could commit and then be rejected.Chrome (owner preference, DESIGN.md 2026-09-10)
Known issues (from the 2026-09-28 audit, not fixed here)
pendingBackfillCountstays above 0, so every successful poll resets the status toloadingfor the rest of the session.rawCodescopies (~2.8 GiB at 60 frames), which no memory budget counts.waitForHistorystill times out at 300 s. The single-chunk and manifest client defaults still sendpresentationFactor = 4, which the backend no longer serves.Validation
tscclean. 344/344 frontend tests pass in 53 files.-D warnings) clean. 135 Rust tests pass.npm run public:checkpassed.🤖 Generated with Claude Code