Comprehension audit: close the self-explanation gaps
TheYuchen
530ca91
Walked every interactive element (toolbar, Evidence pane, history
rows, multiverse cards, theater, pickers, param editors) asking "does
this explain itself where the user finds it?". Most surfaces already
carry task-language titles/TipIcons; six gaps fixed:
- ×N replicate selector now states the caching consequence (the
deterministic prefix is served from cache after run 1; only
stochastic steps re-run) — previously only the cost chip said so,
and only once N>1 with history present.
- Precision-target selector states that the target is archived with
the run and restored on replay (an early stop reproduces exactly).
- Evidence tabs (Current run / History / Compare) gained one-line
title tooltips; the count badges inherit context from them.
- The two funnels now explain their relationship in both directions:
the fidelity-card funnel (shot batches inside one run) and the
lineage funnel (runs across a replicate group) cross-reference each
other as one motif in two contexts…
- EvidenceTheater stop annotation: a late stop (batch 7 of 8) ran the
~330px label past the 1000px viewBox; it now flips to the left of
the stop line only when the right side would clip. Threshold keeps
the verified F0 teaser label on its right side, bit-identical.
- Target corridor: yDomain clamps to [0,1], so with a point near the
scale ends a corridor value can fall outside the domain and y()
extrapolated the dashed line into the panel title. Out-of-domain
lines are skipped and the label y is clamped into the plot band.
- Manual Run now clears a still-pending scenario auto-run (the
consumer only defers on `running`, so it used to fire a second
unasked run after the manual one finished).
- Theater's pooled prior-evidence band refreshes on historyVersion
(deleting archived runs while the theater is open left it stale);
the created_at < startedAt cutoff makes the refetch idempotent
during replicate loops.
- Multiverse card stats row wraps at the 240px card minimum…
Wave J: uncertainty-in-provenance (evidence-mass lineage, pooled CIs)
TheYuchen
75184f5
Provenance views stop pretending states are deterministic — lineage
nodes ARE distributions, so the timeline now shows how certainty
accumulated over the session. Minimal honest version, one task per
mark:
* evidence mass (marker `evidence-mass`): lineage dot AREA propto
sqrt(executed shots), radius 3-7px against a fixed 2048-shot
reference; early-stopped runs are visibly lighter. Ring / slash /
edges / hover target track the radius; tooltip gains "N shots of
evidence".
* replicate-band certainty funnel: pooled Wilson CI half-width at
each row (counts summed oldest->newest; valid within a config
group: same underlying p), mirrored polylines around the lane
spine, narrowing upward ~1/sqrt(N) — Wave I's funnel motif, second
context. Tooltip: "pooled +/-X.Xpp after n runs / N shots".
* lib/stats.ts (new): wilson95 ported from
app/services/stats.py::wilson_interval with unit-anchor comments;
runEvidence / poolEvidence helpers.
* Multiverse cards: "pooled mu x.x% +/-y.y…
Wave P: paper-first reorientation
TheYuchen
79cd0aa
De-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…
Backend: sampled fidelity always runs as B=min(8,max(2,shots//128))
batches; batch i seeded sha256(f"{node_seed}:batch:{i}") so replays
are bit-exact regardless of any run's stopping point. Streaming SSE
interleaves {"step_progress": {node_id, batch_i, n_batches,
shots_done, successes, point, ci95}} frames (worker thread + queue in
the executor; eager path unaffected). RunRequest.precision_target
(CI half-width, (0,0.5]) = server-honoured optional stopping, min 2
batches; distribution records shots executed vs requested,
stopped_early, and the full per-batch trace. qlib duplicates the
Wilson fn (no app import from qlib); twins pinned equal by test.
Frontend: toolbar precision-target select (off/±5/±2/±1pp); live
narrowing CI band + shot counter on node faces from streamed frames;
evidence-funnel in the fidelity card (one line per batch, opacity
ramp, target ticks at point±target, early-stop annotation); RunRecord
persists precision_target + stopped_early; restore/replay writes the
tar…
Backend: AerSimulator.from_backend / NoiseModel.from_backend rebuilt
the full 100+ qubit device noise model on every sampled-fidelity and
QuCAD step (~40-90 s of GIL-bound Python per fresh run — the dominant
cost of every uncached run on the Space). Fake* snapshots are frozen,
so the derived model is memoized by backend name (live IBM backends
never cached). qlib/qiskit_utils.aer_simulator_for / noise_model_for.
Frontend: plumbing for a bundled first-visit evidence archive —
RunRecord.demo flag, lib/demoArchive.ts (ensureDemoArchive imports
data/demoArchive.json via buildRunRecord on first visit only, decided
flag quda-demo-decided, clearDemoRuns), DemoArchiveBanner on the
Multiverse board + History tab, per-row demo chip, multiverse landing
for first visits, welcome-slide tagline reframed to the evidence
story. Archive JSON itself ships in the next commit (placeholder []).
Multiverse board: configurations as small-multiple evidence
TheYuchen
4bf1a9d
The set of configurations the analyst has tried becomes a first-class
workspace. A Compose|Multiverse segmented toggle in the canvas toolbar
flips the center column to a MultiverseBoard: one card per config_hash
group, each with a topological pipeline schematic (family-colored 8px
squares, warn dots on stages whose params differ from the baseline),
the outcome distribution on a shared 0-1 scale (group hue, mean tick,
latest emphasized), Δmean vs the most-tried (baseline) configuration
in pp with an "(n small)" honesty flag under 3 replicates, and
Open/A-B actions wired into the existing restore + compare bridges.
The board overlays the canvas instead of replacing it so React Flow
graph state and the pendingRestore watcher survive mode flips.
hashHue/hueCss move to lib/hues.ts, shared by RunHistory and the
board so a configuration keeps one color everywhere. Tour welcome
slide gains one sentence pointing at the mode.