- 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
83 lines
2.0 KiB
JSON
83 lines
2.0 KiB
JSON
{
|
|
"events": [
|
|
{
|
|
"detail": null,
|
|
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
|
|
"kind": "call.enter",
|
|
"module_id": "root:control-flow@0.1.0::index.mq.md",
|
|
"seq": 0,
|
|
"span": null
|
|
},
|
|
{
|
|
"detail": "continue",
|
|
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
|
|
"kind": "loop.iteration",
|
|
"module_id": "root:control-flow@0.1.0::index.mq.md",
|
|
"seq": 1,
|
|
"span": {
|
|
"end": 197,
|
|
"start": 182
|
|
}
|
|
},
|
|
{
|
|
"detail": "false",
|
|
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
|
|
"kind": "branch.eval",
|
|
"module_id": "root:control-flow@0.1.0::index.mq.md",
|
|
"seq": 2,
|
|
"span": {
|
|
"end": 211,
|
|
"start": 199
|
|
}
|
|
},
|
|
{
|
|
"detail": "true",
|
|
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
|
|
"kind": "branch.eval",
|
|
"module_id": "root:control-flow@0.1.0::index.mq.md",
|
|
"seq": 3,
|
|
"span": {
|
|
"end": 211,
|
|
"start": 199
|
|
}
|
|
},
|
|
{
|
|
"detail": null,
|
|
"function_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713::io.mq.md::io.写值",
|
|
"kind": "call.enter",
|
|
"module_id": "root:control-flow@0.1.0::index.mq.md",
|
|
"seq": 4,
|
|
"span": {
|
|
"end": 247,
|
|
"start": 239
|
|
}
|
|
},
|
|
{
|
|
"detail": "event_budget",
|
|
"kind": "trace.truncated",
|
|
"module_id": null,
|
|
"seq": 5,
|
|
"span": null
|
|
}
|
|
],
|
|
"limits": {
|
|
"max_bytes": 33554432,
|
|
"max_events": 5
|
|
},
|
|
"run": {
|
|
"entry": "root:control-flow@0.1.0::index.mq.md::main",
|
|
"id": "6-1795317753027990146",
|
|
"status": "ok"
|
|
},
|
|
"schema": "marqdo.trace",
|
|
"schema_version": 2,
|
|
"source": {
|
|
"analysis_digest": "sha256:e2aca5a1a0c9fa073a21b5af7deb8ef493ac981b97c788b721347c24c94f48ab",
|
|
"root_id": "root:control-flow@0.1.0"
|
|
},
|
|
"truncated": {
|
|
"limit": 5,
|
|
"reason": "event_budget",
|
|
"written": 5
|
|
}
|
|
} |