- 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
3.9 KiB
3.9 KiB
Changelog
All notable changes to marqdo-view are documented here. The format follows
Keep a Changelog and the project uses SemVer for the View product version.
Protocol axes (Tool v1, Analysis v2, Trace v2) are versioned separately.
[Unreleased]
Added
- PR-00: legacy View static audit (
docs/audits/legacy-render-paths.md), visual tokens, run-state matrix, ADR-0001/0002, MIT/Apache-2.0 licensing, STATUS. - PR-01: single Rust package with a testable library boundary;
marqdo-viewCLI (browse,export,verify) owned entirely by View; Tool Protocol v1 manifest (tool.json) and packaging/install smoke scripts. - PR-01:
PublicCoreClientoverMARQDO_BINwith explicit argv arrays, private 0700 scratch artifacts, wall-clock timeout that kills the whole process group, product-range and protocol negotiation, and stableview.*error codes. - PR-01:
verifycommand/use case that checks CLI version, Analysis v2 schema, Markdown profile, project identity and exact source digest without executing. - PR-01: contract tests with a real fake-core executable (argv, exit codes, stderr preservation, missing emit, timeout, invalid JSON) and architectural coupling gates.
Added (PR-02)
- Reader-oriented
DocumentModelover the frozenmarqdo.md.v1Comrak profile: headings, GFM tables/task lists, blockquotes, code fences, math literals, exact UTF-8 byte spans, source line index. - Typed
SemanticProjectionwith full Analysis v2 validation: schema/product/ profile checks, project identity, exactsource_digest, unit/function/ statement/resource/import/reference/call/diagnostic projection and per-span UTF-8 boundary validation with explicit warnings. - One
PresentationModel+ oneReaderRenderer; Live and Export share the same bytes and differ only byLinkPolicyand control availability. - Single
assets/reader.css+assets/reader.jstheme (layered tokens, warm paper, serif prose, gold/olive semantics, source pane, dialogs, responsive, print, reduced motion) andsrc/assets.rsSHA-256 asset bundle. - Local Live reader: loopback Host validation, strict request limits,
single-pass percent decoding, safe project paths, CSP/security headers,
read-only
/,/file,/assets/*,/api/document,/api/health. AppContextdegradation: missing core → prose-only withCORE_UNAVAILABLE; failed check → diagnostics + revoked semantics; protocol mismatch → hard error.- Examples (
welcome,mixed-modes,control-flow,tables-math,diagnostics) and real Analysis v2 goldens generated from the frozen CLI. - Tests: rendering contracts, XSS/URL sanitization, Live/Export link parity, raw HTTP server security tests, asset integrity, architectural gates.
Added (PR-04)
trace.rs: Trace v2 validation (schema/product,analysis_digest,root_id, module references, strictly increasing seq, span bounds) and projection with explicitNOT_RUN/STATIC_ONLY/RUNNING/SUCCEEDED/FAILED/ STALE/TRUNCATED/UNSUPPORTEDstates.- Explicit-run flow: in-page confirmation, CSRF token + strict Origin check,
JSON body limits, one active run per session,
pure-only mode, process-group timeout, run cache keyed by validated Analysis digest. - Server-rendered run panel (stdout/stderr escaped, Core error code, public final value only, event list capped with explicit truncation) and inline run chips anchored to real statement spans; never per-assignment values.
- Real Trace v2 goldens from the frozen CLI (success, truncated, failed arity) and contract/HTTP tests proving refresh never runs and rejected requests never spawn a process.
- ADR-0004 for the run/CSRF/cache design.
Known limitations
exportstill returnsview.unsupported(PR-05).project/strictgrant UI, streaming output, cancellation and debugger are not implemented; variables/memory/proof states remainUNSUPPORTED.- Browser screenshot/geometry acceptance is scheduled for PR-03/PR-06.