Eats in the ai-audit-report-template as a module. The template is the mutable skin: describeTemplate() infers per-section data demands from ##/### headings (keyword rules), so editing/renaming/reordering sections does not require touching collect or render code. - src/domains/seal/reports/: describe (heading to demand), collect (performance/ risk blocks/template groups, fetched only for declared demands), render (fills tables by section+column signature, rewrites narrative by structure not line number), monthly (orchestrator returning content + per-section completeness + notes). - report-templates/: the template body, assets, example, and downstream validate.py/render.py (not bundled; next.validate/render in the result point at them). - Capability sealReportMonthlyGet (read-only, allow-listed) + CLI "seal-use report monthly --month <YYYY-MM>" + help + KNOWN_FLAGS month + read-only report:monthly. - SKILL.md: routing row + a section stating the two hard rules: the template is swappable, and metrics with no upstream source keep template sample values with a warning note instead of fabricated numbers. Template-path resolution branches on isCompiledBinary() (dev: module-relative to repo root; compiled: cwd), matching how rules lint --file resolves paths, since templates are not embedded. Verified: bun test 633 pass (6 new reports tests), tsc clean, oxlint 0 warnings. Live smoke: 2026-08 report for a real corp fills real accuracy/counts/distribution and marks human-accuracy + mismatch-classification + section-6 sample rows with gap notes.
Report templates
月度 AI 审核准确率报告的模板与配套资产(供 seal-use report monthly 消费)。
| 文件 | 用途 |
|---|---|
monthly.md |
模板本体。可变的皮:章节标题、表格结构允许增删改名——填充逻辑从标题反推数据需求(src/domains/seal/reports/describe.ts),改这里通常不用改代码 |
assets/ |
报告配图(图 1 数据图、图 2/3 占位图),相对引用,渲染时随 md 一起解析 |
examples/ |
填充真实数据的成品示例(结构参考 + 测试夹具) |
validate.py / render.py |
下游工具:结构校验 + HTML/PNG/PDF 渲染。不进包,需要时用 python3 report-templates/validate.py 执行 |
模板纪律见模板仓库 README:不引入 frontmatter/占位符标记(结构即契约)、正文不含 HTML 注释、表格只换数据行。