- 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
144 lines
4.3 KiB
Plaintext
144 lines
4.3 KiB
Plaintext
==> browser suite: examples/welcome
|
|
ok reader root rendered
|
|
ok document title has Marqdo
|
|
ok one stylesheet
|
|
ok one script
|
|
ok no external requests
|
|
ok no browser console errors
|
|
ok dock has all actions
|
|
ok dock run control present
|
|
ok interactive controls have accessible names
|
|
ok Tab reaches named controls
|
|
ok more dialog opens
|
|
ok source mode attribute
|
|
ok source pane visible
|
|
ok document hidden in source mode
|
|
ok document mode restored
|
|
ok search dialog opens
|
|
ok search returns local results
|
|
ok text size toggled
|
|
ok annotations toggled
|
|
ok welcome hero only on configured page
|
|
ok grammar statement is a real element
|
|
ok GFM table rendered
|
|
ok dark theme applied
|
|
ok theme preference persisted
|
|
ok paper theme restored
|
|
ok no horizontal overflow at 2048
|
|
ok dock inside viewport at 2048
|
|
ok no horizontal overflow at 1664
|
|
ok dock inside viewport at 1664
|
|
ok no horizontal overflow at 1440
|
|
ok dock inside viewport at 1440
|
|
ok no horizontal overflow at 1024
|
|
ok dock inside viewport at 1024
|
|
ok no horizontal overflow at 768
|
|
ok dock inside viewport at 768
|
|
ok no horizontal overflow at 390
|
|
ok dock inside viewport at 390
|
|
ok no-JS document remains readable
|
|
ok no-JS exposes no active run UI
|
|
ok print hides dock
|
|
ok print keeps prose
|
|
|
|
browser: PASS
|
|
==> browser suite: examples/control-flow
|
|
ok reader root rendered
|
|
ok document title has Marqdo
|
|
ok one stylesheet
|
|
ok one script
|
|
ok no external requests
|
|
ok no browser console errors
|
|
ok dock has all actions
|
|
ok dock run control present
|
|
ok interactive controls have accessible names
|
|
ok Tab reaches named controls
|
|
ok more dialog opens
|
|
ok source mode attribute
|
|
ok source pane visible
|
|
ok document hidden in source mode
|
|
ok document mode restored
|
|
ok search dialog opens
|
|
ok search returns local results
|
|
ok text size toggled
|
|
ok annotations toggled
|
|
ok dark theme applied
|
|
ok theme preference persisted
|
|
ok paper theme restored
|
|
ok no horizontal overflow at 2048
|
|
ok dock inside viewport at 2048
|
|
ok no horizontal overflow at 1664
|
|
ok dock inside viewport at 1664
|
|
ok no horizontal overflow at 1440
|
|
ok dock inside viewport at 1440
|
|
ok no horizontal overflow at 1024
|
|
ok dock inside viewport at 1024
|
|
ok no horizontal overflow at 768
|
|
ok dock inside viewport at 768
|
|
ok no horizontal overflow at 390
|
|
ok dock inside viewport at 390
|
|
ok no-JS document remains readable
|
|
ok no-JS exposes no active run UI
|
|
ok print hides dock
|
|
ok print keeps prose
|
|
ok run dialog opens
|
|
ok run dialog mentions pure mode
|
|
ok run dialog previews the command
|
|
ok run state succeeded via SSE
|
|
ok run panel visible
|
|
ok run chips anchored
|
|
ok trace event list rendered
|
|
ok stdout rendered escaped
|
|
ok no polling API was used
|
|
ok clear hides run panel
|
|
ok page was never reloaded by the run
|
|
|
|
browser: PASS
|
|
==> browser suite: tests/fixtures/security-project
|
|
ok reader root rendered
|
|
ok document title has Marqdo
|
|
ok one stylesheet
|
|
ok one script
|
|
ok no external requests
|
|
ok no browser console errors
|
|
ok dock has all actions
|
|
ok dock run control present
|
|
ok interactive controls have accessible names
|
|
ok Tab reaches named controls
|
|
ok more dialog opens
|
|
ok source mode attribute
|
|
ok source pane visible
|
|
ok document hidden in source mode
|
|
ok document mode restored
|
|
ok search dialog opens
|
|
ok search returns local results
|
|
ok text size toggled
|
|
ok annotations toggled
|
|
ok adversarial doc has no alert dialog
|
|
ok adversarial doc has no external requests
|
|
ok raw HTML omitted note rendered
|
|
ok prose survives sanitization
|
|
ok javascript link neutralized
|
|
ok dark theme applied
|
|
ok theme preference persisted
|
|
ok paper theme restored
|
|
ok no horizontal overflow at 2048
|
|
ok dock inside viewport at 2048
|
|
ok no horizontal overflow at 1664
|
|
ok dock inside viewport at 1664
|
|
ok no horizontal overflow at 1440
|
|
ok dock inside viewport at 1440
|
|
ok no horizontal overflow at 1024
|
|
ok dock inside viewport at 1024
|
|
ok no horizontal overflow at 768
|
|
ok dock inside viewport at 768
|
|
ok no horizontal overflow at 390
|
|
ok dock inside viewport at 390
|
|
ok no-JS document remains readable
|
|
ok no-JS exposes no active run UI
|
|
ok print hides dock
|
|
ok print keeps prose
|
|
|
|
browser: PASS
|
|
browser: PASS (core sha256 062cb56e226bee55c21d238e195920caa985e62bb3877ba7b07abcc04dc0fe3f unchanged; screenshots: /root/work/marqdo-view/tests/browser/artifacts)
|