Files
marqdo-view/tests/golden
marqdo-view dev df1cf9ec24 feat(PR-04): explicit-run flow, Trace v2 validation and run visualization
- trace.rs: strict Trace v2 validation (schema/product/root_id/analysis_digest,
  known module ids, increasing seq, span bounds) + run states and anchor summaries
- POST /api/run: explicit confirm, CSRF token, Origin/Host checks, JSON limits,
  pure-only mode, one active run, process-group timeout, in-memory run cache
- POST /api/clear-run: session cache cleanup without touching project files
- server-rendered run panel (escaped stdout/stderr, Core error code, public final
  value only, capped event list, truncation/stale/failure states) and inline chips
  anchored to real statement spans; no per-assignment values or memory claims
- page refresh/open never invokes run (tested 10x); rejected requests never spawn
- real Trace v2 goldens (ok/truncated/arity error) from frozen CLI + contract
  and raw-HTTP tests; ADR-0004; docs updated
2026-11-22 11:38:39 +08:00
..

Protocol goldens

These Analysis v2 files were emitted by the frozen marqdo CLI release binary, not hand-written:

Binary SHA-256
marqdo 3.0.0-beta.1 062cb56e226bee55c21d238e195920caa985e62bb3877ba7b07abcc04dc0fe3f
CLI source SHA 2c7c4f31e7a388d3fcfa717a77067e696ed13854

Command shape used for every golden:

"$MARQDO_BIN" check <example> --emit tests/golden/analysis-v2/<name>.json
Golden Input
mixed-modes.json examples/mixed-modes/index.mq.md
control-flow.json examples/control-flow/index.mq.md
tables-math.json examples/tables-math/index.mq.md
welcome.json examples/welcome/00-welcome.mq.md

tools/gen-golden.sh regenerates them from a frozen binary. If an example's bytes change, its source_digest changes too and the tests will fail until the golden is regenerated — that is intentional evidence, not a test bug.

examples/diagnostics/index.mq.md is deliberately invalid and has no golden; its failure path is covered with check --json output.