Infra S3 sweep: boot honesty, theater stability, export provenance
TheYuchen
cab6fcb
Audit backlog wave 3, infra area:
- App boot: unknown ?scenario= keys warn instead of vanishing;
scenario activation runs before the demo-archive check and writes
its workspace mode before any await (mode flash); StrictMode
double-boot guard landed with the canvas batch
- EvidenceTheater: y-domain target band anchors on the FIRST batch
(no mid-run re-zoom); overlay stop annotations flip when the left
side would clip (shared estimateTextW); frame keys are composite
(shots_done can repeat); scrub-reset dep list documented and its
accidental window.open reference removed; "hatched" doc claim
corrected to the 5%-opacity wash actually drawn
- figureExport: regenerate string and scenario doc say F0..F8 (F8
existed, the string didn't); multiverse/history provenance lists
exactly the ARCHIVE_WINDOW the views render while id lookups scan
unbounded; the live run's config_hash comes from theaterRun (run
start) with lastConfigHash as fallback (archive-time value goes
sta…
Board/theater/export: overlay stacking, figure honesty, export text metrics
TheYuchen
77fb334
- boot "Connecting" overlay at z-50 (painted under board/theater/header)
- band run-start effect skips the band Evidence overlay when the theater
will auto-open (no double overlay)
- DemoArchiveBanner + board hint strips carry data-export-strip (F2 figures
drop guidance chrome); scenario force-reimport after "Clear demo data"
says so in the banner, and the Clear tooltip drops its "never" claim
- shared svgPaper.estimateTextW(chars, fontSize, bumped) budgets the x1.25
PAPER_FONT_BUMP in theater layout math: stop-label flip/intrusion,
panel title-dx, and the cost-anchor line (splits into two tspans when
the bumped width would clip; svg gets bottom pad for the second line)
- DifferenceFunnel viewBox width is two-tier: pane tier derives from the
container (labels stay >=9px effective; legend wraps to two lines),
export tier keeps the documented 760px geometry via a hidden twin
- F6/F8 pair picker excludes scenario-tagged records (F7's guard verified
already in place) and …
Filmstrips: Evidence Theater gains a batch-index trace scrubber
(replayed/archived runs only; live path untouched) that renders the
chart AS OF batch k — truncated intervals/envelope, "so far" readouts,
stop annotation only once reached. Exports in a scrubbed state are
bit-exact per (trace, k) and embed trace_position in the provenance;
F0 filmstrip recipe (batch 2 / batch 4 / final) documented with
live-verified widths (±3.06 / ±2.16 / ±1.93pp).
Illustrator-grade true-SVG: new lib/svgPaper.ts holds the pure
presentation-inlining logic (whitelisted attributes resolved via
getComputedStyle to literals — zero var()/currentColor/class/<style>;
concrete font stacks; px normalized; viewBox-derived pt sizing;
standalone XML header) with a plain-node unit test
(scripts/check_svg_paper.test.ts) and a per-export safety audit.
Raster: hybrid PNG at explicit pixel dimensions (never
devicePixelRatio); 2.5x default, 4x via alt-click/long-press on the
camera. Files named <view>_<scenario|runid>[_b…