docs: record BUG-370 fix SHA
Independent Staging Quality Gate / validate (push) Successful in 22m14s
Independent Staging Quality Gate / publish (push) Failing after 11m11s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-08-25 10:12:59 +08:00
parent d2d7542df1
commit c41c0e17ff
+3 -3
View File
@@ -5533,7 +5533,7 @@
## BUG-370 | staging 质量门测试全绿后被 prefer-const ESLint 挡住
- 状态:resolved(本地修复,待提交与发布)
- 状态:resolved
- 首次发现:2026-08-25
- 最近更新:2026-08-25
- 影响面:Gitea `backend-quality-gate.yml` validate 的 `npm run lint --prefix frontend``frontend/tests/rectification-inference-machine.test.ts`、staging 发布
@@ -5541,11 +5541,11 @@
- 触发条件:`npm run lint --prefix frontend`。推断 ledger 测试夹具用 `let engineReceipt` 且从未再赋值。
- 根因:BUG-367 引入的 ledger helper 写成 `let``prefer-const` 报 error。BUG-369 只修了测试合同,没有跑 lint。既有 16 条 warning 不阻断;这一条 error 会。
- 修复:改为 `const engineReceipt`。不改生产代码,不放宽 ESLint。
- 验证:对该测试文件 `eslint` `tsx --test`
- 验证:本机对该文件 `eslint` 0 error`rectification-inference-machine` 11/11;全量 `npx eslint` 0 error / 16 既有 warning、exit 0
- 防复发:生时纠正合同改动在推 staging 前必须跑 `npm run lint --prefix frontend`,不能只跑聚焦测试。
- 相关记录:BUG-339、BUG-367、BUG-369
- 复发自:BUG-339(质量门在测试之后跑 lint;本次是 `prefer-const` 而不是 effect setState
- 修复版本:待发布
- 修复版本:d2d7542df1730efdb240b4902e7eb5aeb7a827c0
## BUG-369 | staging 质量门 2003/2006:计费合同、思考轨迹与业务表清单未跟上 367/368