- document.rs: comrak marqdo.md.v1 parse -> DocBlock/Inline with exact UTF-8 spans - semantic.rs: typed Analysis v2 validation (schema/profile/root_id/source_digest, units/functions/statements/resources/imports/references/calls/diagnostics, per-span UTF-8 checks with explicit view.source_span_invalid warnings) - presentation.rs: one PresentationModel/Outline with source status matrix - render.rs: one ReaderRenderer; sanitized GFM, statement anchors, heading mode badges (display-only prefix strip), source pane, docs/Live|Static link policy, CSP meta, no inline scripts, no raw HTML execution - server.rs: loopback-only Live reader with Host/DNS-rebinding checks, strict percent decoding, project path boundary, security headers, read-only APIs - app.rs: AppContext degradation (core missing -> prose-only, check error -> diagnostics + revoked semantics, protocol mismatch -> hard error) - assets: single reader.css/reader.js + embedded SHA-256 AssetBundle, copied legacy logo/blossom/feather with provenance - examples + frozen-CLI Analysis goldens + rendering/HTTP/asset/no-coupling tests - ADR-0003 heading prefix/anchor identity; docs updated
3.0 KiB
3.0 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.
Known limitations
exportstill returnsview.unsupported(PR-05); the run control is explicitly disabled (PR-04) and never fakes execution.- Variables/memory/proof states remain
UNSUPPORTED. - Browser screenshot/geometry acceptance is scheduled for PR-06.