Commit Graph
7 Commits
Author SHA1 Message Date
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 9a80272b5f feat(PR-03): browser acceptance and visual evidence for the single reader theme
- real Chromium (Playwright) suite against the frozen core: one CSS/one script,
  zero external requests, zero console errors, document/source switch, local
  search, settings, 7 viewport widths (390..2560) without overflow or dock
  clipping, no-JS readability, print mode, explicit run + clear
- tools/test-browser.sh starts Live servers on examples/welcome and
  examples/control-flow, verifies core SHA-256 unchanged
- screenshots committed under docs/evidence/PR-03 (Welcome 1664x920 / 390x844,
  real Trace run page); pixel-level manual comparison marked UNVERIFIED
- meta CSP drops the ignored frame-ancestors directive (HTTP header keeps it)
2026-11-22 11:43:59 +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 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
cflmy bf76288021 init 2026-11-22 09:54:46 +08:00