Files
marqdo-view/tests/golden/trace-v2/control-flow.run.json
T
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

113 lines
2.9 KiB
JSON

{
"command": "run",
"diagnostics": [],
"stderr": "",
"stdout": "0\n0\n2\n",
"success": true,
"trace": [
{
"duration_micros": 17,
"module": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713::io/stream.mq.md",
"op": "resource.open",
"result": "ok",
"seq": 66,
"span": {
"end": 1581,
"start": 1538
}
},
{
"duration_micros": 2,
"module": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713::io/stream.mq.md",
"op": "resource.write",
"result": "kind=stdio count=2",
"seq": 70,
"span": {
"end": 730,
"start": 678
}
},
{
"duration_micros": 1,
"module": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713::io/stream.mq.md",
"op": "resource.close",
"result": "flushed_bytes=0",
"seq": 85,
"span": {
"end": 1666,
"start": 1647
}
},
{
"duration_micros": 2,
"module": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713::io/stream.mq.md",
"op": "resource.open",
"result": "ok",
"seq": 160,
"span": {
"end": 1581,
"start": 1538
}
},
{
"duration_micros": 0,
"module": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713::io/stream.mq.md",
"op": "resource.write",
"result": "kind=stdio count=2",
"seq": 164,
"span": {
"end": 730,
"start": 678
}
},
{
"duration_micros": 0,
"module": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713::io/stream.mq.md",
"op": "resource.close",
"result": "flushed_bytes=0",
"seq": 179,
"span": {
"end": 1666,
"start": 1647
}
},
{
"duration_micros": 0,
"module": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713::io/stream.mq.md",
"op": "resource.open",
"result": "ok",
"seq": 253,
"span": {
"end": 1581,
"start": 1538
}
},
{
"duration_micros": 0,
"module": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713::io/stream.mq.md",
"op": "resource.write",
"result": "kind=stdio count=2",
"seq": 257,
"span": {
"end": 730,
"start": 678
}
},
{
"duration_micros": 0,
"module": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713::io/stream.mq.md",
"op": "resource.close",
"result": "flushed_bytes=0",
"seq": 272,
"span": {
"end": 1666,
"start": 1647
}
}
],
"value": {
"decimal": "3",
"type": "int"
}
}