Files
marqdo-view/tests/golden/observation-v1/control-flow.jsonl
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

35 lines
8.7 KiB
JSON

{"kind":"stream.opened","payload":{"limits":{"max_observation_bytes":16777216,"max_observation_events":100000,"max_value_bytes":256},"observation":{"allow_text_values":false,"level":"structural","selected_parameters":[],"selected_variables":[],"values":false},"producer":{"name":"marqdo","version":"3.0.0-rc.4"}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":0}
{"kind":"run.started","payload":{"entry":"root:control-flow@0.1.0::index.mq.md::main","mode":"pure","source":{"analysis_digest":"sha256:7e8711e9cbb5d5c73369da0c6620279468fa957d5ab8af038de6dd07d23117e3","root_id":"root:control-flow@0.1.0"},"started_unix_ms":1795610282724},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":1}
{"kind":"call.enter","payload":{"frame_id":"f1","function_id":"root:control-flow@0.1.0::index.mq.md::演示.main","module_id":"root:control-flow@0.1.0::index.mq.md","parent_frame_id":null,"span":null},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":2}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":202,"start":195},"value_state":"not_requested","value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":3}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.new","result_code":"ok","span":{"end":230,"start":214}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":4}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"buffer","span":{"end":231,"start":204},"value_state":"not_requested","value_type":"Memory"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":5}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":243,"start":234}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":6}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.open","result_code":"ok","span":{"end":304,"start":261}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":7}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"stdout","span":{"end":305,"start":251},"value_state":"not_requested","value_type":"Resource"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":8}
{"kind":"loop.iteration","payload":{"decision":"continue","frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":322,"start":307}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":9}
{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":false,"span":{"end":336,"start":324}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":10}
{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":true,"span":{"end":368,"start":360}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":11}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":380,"start":371}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":12}
{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"MAo=","encoding":"base64"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":13}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.write","result_code":"ok","span":{"end":434,"start":398}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":14}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":450,"start":437},"value_state":"not_requested","value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":15}
{"kind":"loop.iteration","payload":{"decision":"continue","frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":322,"start":307}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":16}
{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":false,"span":{"end":336,"start":324}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":17}
{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":true,"span":{"end":368,"start":360}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":18}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":380,"start":371}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":19}
{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"MAo=","encoding":"base64"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":20}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.write","result_code":"ok","span":{"end":434,"start":398}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":21}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":450,"start":437},"value_state":"not_requested","value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":22}
{"kind":"loop.iteration","payload":{"decision":"continue","frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":322,"start":307}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":23}
{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":true,"span":{"end":336,"start":324}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":24}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":348,"start":339}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":25}
{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"Mgo=","encoding":"base64"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":26}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.write","result_code":"ok","span":{"end":434,"start":398}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":27}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":450,"start":437},"value_state":"not_requested","value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":28}
{"kind":"loop.iteration","payload":{"decision":"exit","frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":322,"start":307}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":29}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.close","result_code":"ok","span":{"end":484,"start":462}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":30}
{"kind":"return","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":497,"start":487},"value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":31}
{"kind":"call.exit","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":null,"status":"return"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":32}
{"kind":"run.completed","payload":{"status":"ok","value":{"decimal":"3","type":"int"},"value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":33}