Files
marqdo-view/tests/golden/README.md
T
Marqdo View 340ecb035f
ci/woodpecker/push/woodpecker Pipeline was successful
feat: migrate View 0.3.0 to marqdo 3.0.0-rc.4 contracts
Replace the retired rc.2 Analysis v2/Trace v2/Execution Events v1 stack with the
single current contract family:

- Analysis v3 (ADR-0069 public boundary): one check --emit artifact carries the
  exact source, Markdown AST, heading scopes (heading_span + complete span),
  anchors, state-bearing references, calls, resources and diagnostics; the old
  revision-3 shape is rejected with a rebuild hint.
- Observation v1: one run/call --output jsonl stream (+ atomic
  --observation-file snapshot) decoded by one decoder and projected into the
  reader/SSE/export layers; stale/malformed/truncated/incomplete never render
  as success.
- CLI Tool revision 1: requires {api_revision:1, analysis:3, observation:1},
  product range >=3.0.0-rc.3,<4.0.0, only MARQDO_BIN and
  MARQDO_API_REVISION are consumed.
- Remove compatibility branches, retired flags/env vars and duplicate decoders;
  re-record Analysis v3 and Observation v1 fixtures; rewrite contract,
  integration and security tests (173 passing locally).
- Add check-no-legacy/check-docs/check-observation gates, rc.4 pins in the
  CI pipelines, 0.3.0 Tool bundle and evidence manifest support.

See issues #4, #5 and #6; acceptance baseline is CLI source
452e9a32bd9e40dba427d4180691c58bab74449e, archive
9c3f166b5e5b8840d39d10019074e4e1c42432fc23e26c69670e64fdcf4e15d8.
2026-11-25 22:12:51 +08:00

30 lines
1.1 KiB
Markdown

# 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:
```bash
"$MARQDO_BIN" check <example> --emit tests/golden/analysis-v3/<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.