- Expose ContentBlock/ContentLink projected from the analysis AST and source
byte spans; raw HTML becomes an inert placeholder, links keep url/span for the
Preview protocol allowlist. Components and scenario content units use it.
- After building the graph, re-analyze every participating module and require
the same source_digest; a mid-load edit returns Engine web.engine.stale and no
partial model.
- Security cases: symlink escape outside --root is rejected, absolute link
targets are rejected, percent-encoded traversal stays unresolved, raw HTML is
inert.
- Tests grow to 18 real-CLI cases (content projection, html placeholder,
symlink/absolute/encoded scope escapes, forged CLI output stale detection).
- Evidence/docs record what remains: WEB-03 graph/slicing, component CI
service, WEB-02 output budget/CSP, WEB-05 root integration.
Refs cflmy/marqdo-web-design#1, cflmy/marqdo#6
cflmy
merged commit 495d2e4bf7 into main2026-11-27 08:48:09 +08:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
范围(WEB-01 内容投影/一致性/安全)
ContentBlock/ContentLink安全结构投影:只消费 Analysis AST 与源码 span;raw HTML 一律 inert 占位;链接保留 url/span 供 Preview allowlist,不复制 Markdown 解析。load完成后对每个参与模块重新check --emit比对source_digest;中途变化返回 Engineweb.engine.stale,无部分模型。%2e%2e编码穿越不可解析、raw HTML inert。scripts/ci.shfmt/clippy/test 全 PASS。证据
docs/evidence/WEB-01-design-core.md(补充候选 2)。
未完成(工单保持 open)
WEB-03 完整组件/依赖图、单组件切片与漂移标识;WEB-02 输出预算/CSP/浏览器验收;组件 CI 服务接入;WEB-05 根接入与冷安装。
Refs cflmy/marqdo-web-design#1, cflmy/marqdo#6