Commit History
-
Figure export: one <base>.bundle.zip download (STORE zip writer, no deps)
TheYuchenPackaging decision resolved: zip, without the dependency. New frontend/src/lib/zip.ts is a minimal STORE-method ZIP writer (local file headers + central directory + EOCD, table-driven CRC-32, ~100 lines, pure JS). exportFigure now collects the .svg, the .png (hybrid/ raster path only) and the .provenance.json and downloads exactly ONE <base>.bundle.zip — a single camera click can no longer trip browser multi-download blocking, which silently dropped the sidecar and/or PNG. In-SVG provenance <metadata> unchanged. New node lane scripts/check_zip.test.ts asserts the CRC-32 check vector ("123456789" -> 0xCBF43926), the archive structure, and interop: the fixture is listed with `python3 -m zipfile -l` and CRC-tested with `-t` (Done testing). Camera button/claims-map wording and the Wave-Q export contract + filename notes updated. Backlog entry removed.c4e53ef -
Infra S3 sweep: boot honesty, theater stability, export provenance
TheYuchenAudit 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…cab6fcb
-
Difference funnel (difference-funnel): sequential A/B evidence + F8
TheYuchenThird funnel scale, between-configuration: the Compare tab now draws the 95% interval of the DIFFERENCE d(B-A) narrowing as replicates of both configurations accumulate chronologically -- comparing two configurations honestly means watching the interval of the difference, not eyeballing two separate CIs. * stats.ts: newcombe95 (Newcombe 1998 method-10 hybrid score interval for p1-p2, built from the same Wilson bounds every other surface uses; anchor 56/70 vs 48/80 -> [0.0524, 0.3339]), dedupeDraws (pinned replays are the same draw bit-exactly -- never pooled twice), differenceTrace (chronological accumulation, unequal run counts and unequal shots-per-run pool on raw counts), differenceVerdict (established / lost / sustained). * DifferenceFunnel.tsx: one true-SVG chart in the theater's funnel grammar -- x = shots consumed by both sides (evidence bought), y = d(B-A) in pp always including the dashed "no difference" zero line, per-step Newcombe intervals + envelope + po…02aa1f6 -
Doc: improvement wave section (export-gap + health blemishes closed)
TheYuchenEVIDENCE_WORKBENCH.md gains the 2026-07-10 improvement-wave section (all seven items with rationale and verification bar), the scenario range references move F0..F6 -> F0..F7, and item 12's export claim was already updated to now-true in the first commit of the wave.19e23d4 -
Theater overlay comparison (theater-overlay) + scenario F7
TheYuchenNew figure capability: when two archived runs share a config_hash and both persisted per-batch traces, the Compare tab offers "overlay in theater" — the evidence theater renders BOTH runs' funnels on one axis pair (run A accent/blue, run B warn/amber, envelopes at .07 alpha, constant ∓3.5px x-dodge on the shared batch grid, per-run stop annotations in stacked top-band rows, a shared target corridor only when both runs executed the same rule, per-run id+seed legend in the context strip). The visual argument: the stopping rule is deterministic, the draws are not — "two replays of one configuration — same rule, different draws". The trace scrubber drives both series in lockstep (scrubSeries clamps per series). Store: theaterOverlayIds; closing the theater or starting a new run exits overlay mode; deleting either record mid-view exits instead of rendering a stale pair. Figure export takes the true-SVG path as evidence-theater-overlay_<slug>.svg with both run_ids/root_seeds in the provenanc…ecfb151
-
Wave Q: paper figure pipeline (trace scrubbing, AI-grade SVG, 4x raster)
TheYuchenFilmstrips: 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…9ee0efc -
Evidence Theater: steering becomes the visual protagonist (+F0 teaser)
TheYuchenThe system's most novel contribution -- anytime evidence steering (streaming CI narrowing + optional stopping, Wave I) -- was the smallest element on screen. New EvidenceTheater overlay (auto-opens on the first step_progress frame, dismissable, localStorage auto-open pref, toolbar + fidelity-card reopen affordances): one big SVG funnel per sampled node -- per-batch Wilson CIs on a linear shots axis with convergence envelope, first-interval-anchored auto-zoom, dashed target corridor + early-stop annotation with unspent-shots region, client- timed cost row (caveat commented) with server-total fallback, and a context strip (config hue chip, live root-seed via new runStream onMeta hook, pooled prior-evidence archive band). Store retains per- node stamped traces until the next run so the theater outlives the step; true-SVG figure export with embedded provenance. Scenario F0 (the teaser): bell_state on FakeFez, 4096 shots, sampled fidelity, target +/-2pp, pinned seed 2026 (probed live: all …f686793 -
Wave P: paper-first reorientation
TheYuchenDe-product: remove WelcomeTour(+slides), AuthButton/session UI, Support(NSF)/Papers/Developers popovers, Lab link, UploadPluginModal trigger; plugin protocol stays live via API. Neutral index.html title/meta + PWA manifest. Header = name/tagline/env chip/live toggle/theme. Anonymous mode (double-blind): lib/anon.ts. VITE_ANON=1 build folds identifying strings out of the bundle (EvidenceQ codename, no paper bibtex, no GMU theme, vite plugin rewrites index.html+manifest); ?anon=1 runtime fallback hides the same surfaces on normal builds. Audit: zero user-visible identifying strings in the anon dist. Figure export with embedded provenance: lib/figureExport.ts + camera buttons on canvas toolbar / Multiverse header / Evidence header. True-SVG for svg targets, foreignObject-SVG + 2.5x PNG for HTML composites; paper transform (white bg, fonts x1.25, chrome stripped); SVG <metadata> + .provenance.json carry app version, export time, run_ids/root_seeds/config_hashes of every visible run and t…79cd0aa