fix(build): validation_issues 分批插入;import/build 报告写序对齐 HTML 先;canonical mismatch evidence 修正
- validation_issues 落库改分批(VALIDATION_ISSUES_CHUNK=1000 行/批循环): 单 INSERT 占位符上限(pg ~65535 ÷ 6 列)会被超大 issue 集撞穿; run 行先落、批次间无序依赖。新增测试:1101 坏链注入 → 全量 1101 行 落库、收口 VALIDATION_FAILED(非 GATE_INTERNAL) - import 域报告写序换 HTML 先(与 build 域对齐——json 在则 html 必在) - gates canonical 指错分支 evidence 改 kind:'canonical-mismatch' (mismatch 语义不再误用 missing 键;缺席分支保持 missing:'canonical') - build.html 尾换行对齐 import 域 - 计划文档 Task 9 补审查遗留清单(helper 迁移/Plan 5 前置门禁面) Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -567,8 +567,9 @@ export async function createImportJob(
|
||||
let reportWritten = true
|
||||
try {
|
||||
await mkdir(reportDir, { recursive: true })
|
||||
await writeAtomically(reportPath, `${JSON.stringify(report, null, 2)}\n`)
|
||||
// HTML 先写(与 build 域对齐——json 在则 html 必在:JSON 落盘即"双件齐备"信号)
|
||||
await writeAtomically(htmlPath, `${renderImportReportHtml(report)}\n`)
|
||||
await writeAtomically(reportPath, `${JSON.stringify(report, null, 2)}\n`)
|
||||
} catch (err) {
|
||||
reportWritten = false
|
||||
failed = {
|
||||
|
||||
Reference in New Issue
Block a user