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
This commit is contained in:
1 parent
80ce564f09
commit
df1cf9ec24
25 files changed
+5724
-62
No files matched your search
@@ -37,6 +37,7 @@ fn example(name: &str) -> (marqdo_view::presentation::PresentationModel, String)
|
||||
diagnostics: Vec::new(),
|
||||
navigation,
|
||||
core_version: Some("3.0.0-beta.1".to_string()),
|
||||
run: None,
|
||||
});
|
||||
(model, source)
|
||||
}
|
||||
@@ -210,6 +211,7 @@ fn malicious_markdown_cannot_inject_markup_or_scripts() {
|
||||
diagnostics: Vec::new(),
|
||||
navigation,
|
||||
core_version: None,
|
||||
run: None,
|
||||
});
|
||||
let html = render_live(&model);
|
||||
assert!(!html.contains("<script>alert"));
|
||||
|
||||
Reference in new issue
Block a user