marqdo-view dev
d641ca58ac
feat(PR-06): one-command frozen-CLI acceptance, evidence and final docs
...
- tools/acceptance.sh: RFC §18.1 end-to-end acceptance against the frozen CLI
release archive in an isolated tool home (build/test/bundle/archive-install/
view help/verify/export/browse/explicit CSRF run/export+security+browser
suites/CLI SHA check) and generation of docs/evidence/<CLI-SHA>/manifest.json
- tools/test-contract.sh + .woodpecker.yml CI lanes (remote CI unverified)
- docs/ACCEPTANCE.md gate table (P0 all PASS; U-01/U-04 honestly PARTIAL),
docs/audits/protocol-conformance.md, ADR-0006 documented RFC deviations
- unicode/CRLF/duplicate-text examples + frozen goldens + tests (S-04)
- presentation degradation matrix tests (S-05..S-07), hostile-stdout escaping
test (X-05), keyboard accessibility browser checks (U-03)
- final README/STATUS/COMPATIBILITY/CHANGELOG with honest limitations
2026-11-22 12:06:45 +08:00
marqdo-view dev
1f34daffb0
feat(PR-05): pure static export and hardened Live boundary
...
- export.rs: marqdo view export PATH --out DIR through the same ReaderRenderer;
index.html + pages/<relative>.html + hash-named assets + manifest.json
- export never calls Core run; refuses output inside project root and unrelated
non-empty dirs; staging + atomic rename replaces only prior View exports
- offline by construction: embedded asset bytes, data-URI images, relative
links, no remote subresources; --no-annotations hides anchors only
- HTTP hardening: max 32 concurrent requests (503), detail-free public error
JSON/pages (no absolute paths/subprocess text), 30s page check budget
- tools/test-export.sh (manifest hashes + file:// Chromium offline check),
tools/test-security.sh, adversarial security-project browser fixture
- tests/export.rs export contracts; ADR-0005; docs updated
2026-11-22 11:52:22 +08:00
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
marqdo-view dev
80ce564f09
feat(PR-02): DocumentModel, Analysis v2 projection, single renderer and Live browsing
...
- 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
2026-11-22 11:19:11 +08:00
marqdo-view dev
8ba20a5c67
feat(PR-01): single Rust package, Tool Protocol v1 bundle and PublicCoreClient
...
- src/lib.rs module layout + thin main.rs dispatcher; CLI owns browse/export/verify
- core_client: MARQDO_BIN only, explicit argv (no shell), 0700 scratch dirs,
wall-clock timeout killing the whole process group, version/protocol negotiation
- project/source_map: canonical path boundary, SafeRelativePath, exact UTF-8
byte <-> line/column <-> UTF-16 mapping, SHA-256 of exact bytes
- stable view.* error codes with 0/1/2 exit classes; BindDenied for non-loopback
- verify use case: Analysis v2 schema/profile/root_id/source_digest binding, no execution
- tool.json + tools/package.sh + tools/install-smoke.sh; frozen-CLI install smoke PASS
- contract tests with a real fake-core executable + architectural coupling gates
- COMPATIBILITY/CHANGELOG/STATUS updated
2026-11-22 10:33:14 +08:00
marqdo-view dev
ef546f2ca6
docs(PR-00): legacy view audit, visual/state design baseline, ADRs
...
- audit legacy src/view render paths (serve/output/document/debug) with exact file:line evidence
- document CSS cascade: stylesheet -> notebook_ui (dormant skin) -> reader.css
- record Welcome-hero filename regex, export-time execution, missing CSRF in /api/run
- classify legacy assets (logo/blossom/feather reused under Apache-2.0; KaTeX not)
- add visual tokens, run-state matrix, ADR-0001/0002, STATUS, licenses, gitignore
- mark LEGACY_RUNTIME_UNVERIFIED (no build/mutation of legacy repos)
2026-11-22 10:08:03 +08:00