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…
exportPython: make the reproducibility claim true
TheYuchen
fb2cd9e
- input_circuit: sample runs emit a REAL loader (QPY downloaded from
/api/circuits/samples/<key>/download, cached beside the script)
instead of a hardcoded QuantumCircuit(4) placeholder under a header
claiming bit-exactness. Uploaded-circuit runs emit a sys.exit guard
BEFORE the placeholder so the script can never silently print wrong
numbers.
- fake/ibm/compvqc backends: qiskit.providers.fake_provider imports
(dead since Qiskit 1.0, and FakeFezV2 never existed there) replaced
with qiskit_ibm_runtime.fake_provider — the exact import the studio
backend (workflow_service / qlib) uses.
- qucad: removed the dead qc_bound block. Verified against
qlib/qucad.py: run_qucad_training_noisy trains the PARAMETERIZED
circuit (the backend passes ctx["circuit"] unbound; pre-binding
would leave zero trainable parameters), so the emitter now mirrors
_handle_qucad exactly and binds theta*mask after training.
- plugin/unknown steps: emitted as "# Step N: <kind> — plugin step,
no…
An early-stopped run's exported Python ran ALL requested shots — the
stopping rule was part of the run's provenance (RunRecord persists it,
replay re-sends it) but the export path dropped it, so the doc's
"reproduces the archived run's exact draw" overstated for early-stopped
runs. Now: ExportProvenance carries precisionTarget (read
server-authoritatively from the sampled step's distribution payload,
not the toolbar's current selection), the generated
sampledFidelityEstimator call re-sends precision_target=, and the
script header stamps stop_target. Shape-verified by
frontend/scripts/check_export_python.test.ts (esbuild bundle + node).
Doc claim updated to now-true.