From 73c2a1a51e5717cafc99aa5c9bb0dd51294fcadc Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Fri, 4 Sep 2026 23:37:24 +0800 Subject: [PATCH] docs(report): close BUG-535 after five-theme personal_full ready Staging at 4ef4c406 produced a standard five-theme document with nine charts, five chapter bodies, and an empty blocked disclosure. Co-authored-by: Cursor --- docs/BUG_HISTORY.md | 12 ++++++------ docs/tasks/PROGRESS-report-chart-cap-20260904.md | 6 +++++- docs/tasks/README.md | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/docs/BUG_HISTORY.md b/docs/BUG_HISTORY.md index fe704cf8..47be120e 100644 --- a/docs/BUG_HISTORY.md +++ b/docs/BUG_HISTORY.md @@ -8263,19 +8263,19 @@ ## BUG-535 | 五章写完后终稿 final_parse_rejected,accepted 报告仍无 ready 文档 -- 状态:mitigated +- 状态:resolved - 首次发现:2026-09-04 - 最近更新:2026-09-04 - 影响面:`assembleReportDocumentV2` 之后的 `safeParseServerReportDocument`;standard `personal_full` 终装 - 用户现象:报告中心显示生成失败。错误码 `report_schema_invalid`,日志 `innerReason=final_parse_rejected`。五章其实都已写完。 - 触发条件:accepted 生时、默认五主题、staging @ `e27d5dc5`。干净 attempt 1 与此前被租约打断后恢复的 attempt 都复现。 -- 根因:`c2f23131` 把 `CHART_IDS` 扩到 9 个(加 D6/D8/D30),文档 v2 仍 `charts.max(6)`。分盘提取修好后,五主题装配 9 张图,终稿 parse 拒绝。四主题一直 ≤6 所以从未踩中。 -- 修复:v2 `charts.max(CHART_IDS.length)`;JSON Schema / Python 合同同步;装配允许集改为 `CHART_IDS`。`final_parse_rejected` 日志增加 `parsePaths`(仅 path + code)。装配把 `actionNotes` 截到合同上限 24,不放宽 schema。guard 失败改为字段路径 + 种类。blocked 段去掉确定性用语。 -- 验证:合同测试 9 图过 parse;五主题分章夹具 READY;每章 6 条行动仍 READY 且 notes=24。staging request `31025c49`:`actionNotes/too_big`。`a75929c1` request `f10daf6d`:三条匿名 guard。路径代号与 blocked 清洗待再部署。 -- 防复发:上限必须绑定 `CHART_IDS.length`,不得再写裸 6/9。扩枚举必须同时改 Zod / JSON Schema enum / Python `CHART_IDS`。终稿失败必须带 parse path。 +- 根因:`c2f23131` 把 `CHART_IDS` 扩到 9 个(加 D6/D8/D30),文档 v2 仍 `charts.max(6)`。分盘提取修好后,五主题装配 9 张图,终稿 parse 拒绝。四主题一直 ≤6 所以从未踩中。随后真实五章又踩中 `actionNotes.max(24)`,再踩中匿名 contract guard。 +- 修复:v2 `charts.max(CHART_IDS.length)`;JSON Schema / Python 合同同步;装配允许集改为 `CHART_IDS`。装配把 `actionNotes` 截到合同上限 24,不放宽 schema。`final_parse_rejected` 日志 `parsePaths` 仅 path + code;guard 失败改为字段路径 + 种类。blocked 段去掉确定性用语。 +- 验证:合同测试 9 图过 parse;五主题分章夹具 READY;每章 6 条行动仍 READY 且 notes=24。staging request `31025c49`:`actionNotes/too_big`。`a75929c1` request `f10daf6d`:三条 `(guard)/guard`。`4ef4c406` request `0679321b`:**ready**,v2 文档 9 张图、五章有正文、actionNotes=22、blocked 披露为空,阅读页可打开。 +- 防复发:上限必须绑定 `CHART_IDS.length`,不得再写裸 6/9。扩枚举必须同时改 Zod / JSON Schema enum / Python `CHART_IDS`。装配侧截断须跟合同上限同一常量。终稿失败必须带可区分的 parse path,不得只写 `(guard)`。 - 相关记录:BUG-526、BUG-534;引入半拉子改动的提交 `c2f23131` - 复发自:无 -- 修复版本:`61194690` +- 修复版本:`4ef4c406` ## BUG-536 | 采用后第一道核对题重复已问过的采集题 diff --git a/docs/tasks/PROGRESS-report-chart-cap-20260904.md b/docs/tasks/PROGRESS-report-chart-cap-20260904.md index 68a92b88..514a5d19 100644 --- a/docs/tasks/PROGRESS-report-chart-cap-20260904.md +++ b/docs/tasks/PROGRESS-report-chart-cap-20260904.md @@ -10,7 +10,7 @@ | --- | --- | --- | | 1 上限绑定 + 消费点核对 + 回归 | 完成 | BUG-535 | | 2 终稿 parse path 日志 | 完成 | BUG-535 | -| 3 部署后真实 personal_full | 进行中:第二次 charts/actionNotes 已过;3 条匿名 guard。已补 guard 路径代号,并在降级段去掉确定性用语,待再部署 | BUG-535 | +| 3 部署后真实 personal_full | 完成:`4ef4c406` request `0679321b` ready,九图五章,blocked 空 | BUG-535 | ## 实现要点 @@ -67,6 +67,10 @@ request `31025c49`:5× `consultation_workflow` 200;五章 ready;摘要 `st request `f10daf6d`:五章 ready。终稿 `final_parse_rejected`,`parsePaths` 三条都是 `(guard)/guard`。charts 与 actionNotes 已过。日限默认 5 当天用满,staging 进程临时读 8(下次正式部署前 env 文件置回 8,验收后再恢复 5)。未放宽 schema。 +### 任务 3 第三次(health `4ef4c406`) + +request `0679321b`:**ready**。文档 v2:charts=9(D1/D2/D6/D8/D9/D10/D11/D24/D30),五章有正文(career 1459 / health_pressure 1224 / marriage 1016 / timing 744 / wealth 1136 字),actionNotes=22(上限 24),blocked 披露=0。阅读页可打开。Writer `finishReason=stop`;章 inputTokens 5866 / 6402(随后 repair 6435)/ 5806 / 6036 / 5921,摘要 1542。墙钟约 13s / 9s+21s / 10s / 8s / 12s / 3s。成本 5.22× 不在本单。staging 日限 env 文件已恢复 5。 + ## 让步 无。JSON Schema 的 charts `maxItems` 只能写数字,用合同测试把它锁到 `CHART_IDS.length`。`actionNotes` 合同上限未放宽。 diff --git a/docs/tasks/README.md b/docs/tasks/README.md index c5039123..0ad2bb39 100644 --- a/docs/tasks/README.md +++ b/docs/tasks/README.md @@ -79,7 +79,7 @@ | `TASK-report-section-writer-failure-20260902.md` | `PROGRESS-report-writer-failure-20260902.md` | 写作阶段 report_schema_invalid | 已验收 | `eda37c15`(后续 `43294265`、`5c0bec0c`、`fbd6e480`、`cf6405ed`) | | `TASK-report-sensitivity-crash-20260904.md`(仓库根) | `PROGRESS-report-sensitivity-crash-20260904.md` | consultation_workflow float 时辰崩溃,全量 500 | 执行中 | `codex/report-sensitivity-crash-20260904`(BUG-524) | | `TASK-report-candidate-range-read-20260904.md`(仓库根) | `PROGRESS-report-candidate-range-20260904.md` | accepted 生时报告直读已收权校正表 | 待验收 | `e27d5dc5`(BUG-526/534;终稿见 BUG-535) | -| `TASK-report-chart-cap-20260904.md`(仓库根) | `PROGRESS-report-chart-cap-20260904.md` | 文档 charts 上限绑定 CHART_IDS | 执行中 | `61194690`(BUG-535) | +| `TASK-report-chart-cap-20260904.md`(仓库根) | `PROGRESS-report-chart-cap-20260904.md` | 文档 charts 上限绑定 CHART_IDS | 待验收 | `4ef4c406`(BUG-535) | ### 前端基础与工程