Files
marqdo-view/docs/evidence
cflmy 046834bcb6 feat(PR-04): SSE execution loop, 7-route server and session security
- replace src/server.rs with src/server/{mod,routes,security,sse}.rs implementing
  exactly the RFC-0002 §6.2 routes: GET /, GET /file, GET /assets, GET
  /api/documents, POST /api/runs, GET /api/runs/{id}/events, POST
  /api/runs/{id}/cancel; old /api/health, /api/document, /api/run and
  /api/clear-run are gone (404)
- SSE writes the event-stream directly to the socket and flushes every frame and
  heartbeat (tiny_http's chunked writer would delay frames); Last-Event-ID
  replay or authoritative snapshot, 128-event ring, terminal close, heartbeat
  comments, at most two observers per run, no polling route
- per-session HttpOnly SameSite=Strict cookie + X-View-CSRF, exact same-origin
  Origin, loopback Host, Sec-Fetch-Site cross-site rejection, JSON-only 64 KiB
  run POSTs; cancel is an authenticated bodyless control POST
- reader.js: Analysis-driven function form with text-only command preview,
  pure/project mode + explicit fs grants with second confirmation, one POST then
  EventSource, cancel, live result/stdout/stderr/Trace panel and keyed source
  anchors (skipped when stale); no innerHTML of CLI data and no status polling
- render: hidden live run shell, generic explicit-run dialog, function call
  buttons carrying Analysis function ids/params, data-analysis-digest/document
  attributes; remove the old run-confirm dialog and run-page reload path
- add tests/security/ suite, rewrite HTTP/SSE integration tests, update browser
  suite for EventSource/dark theme/RFC width matrix (incl. 2048x1133)
- ADR-0009 + docs/evidence/PR-04 with real Chromium log/screenshots and a real
  frozen-CLI SSE run (285 Trace v2 events, CLI SHA unchanged)
- unit 63 + contract 41 + integration 40 + security 11 pass; clippy clean
2026-11-22 14:30:40 +08:00
..

验收证据

本目录保存由真实命令生成的验收证据,命名 <CLI-SOURCE-SHA>/manifest.json:

  • view_source_sha:生成证据时的 View Git SHA。
  • view_binary_sha256:发布 bundle 内 bin/marqdo-view 摘要。
  • cli_binary_sha256_before/after:冻结 CLI 在验收前后的 SHA-256,必须相同。
  • cli_source_sha:CLI 发布归档 SOURCE_SHA。
  • tool/analysis/trace_protocol、target、archive_sha256。
  • gates:tools/acceptance.sh 每一步的真实退出状态。
  • tests:contract/browser/export/security 的 PASS/FAIL/SKIP。

生成方式(不要手写/篡改):

MARQDO_BIN=/abs/path/to/frozen/marqdo tools/acceptance.sh

manifest.json 在验收的最后一步写入;若某一步失败,脚本以非零退出且不会声称 PASS。 CI URL 只有在 .woodpecker.yml 真正运行后才可补入;本仓库当前未声称远端 CI 通过。

PR-03/ 子目录保存浏览器截图证据(非协议证据),说明见其 README.md。