Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LutgzyJqNhPpZy1nFsJtN3
37 lines
2.6 KiB
Markdown
37 lines
2.6 KiB
Markdown
# TASK · 内测主路径修复单(issue #73,第 1 次打回:与 #63 代码冲突)
|
||
|
||
- 日期:2026-10-14
|
||
- 原任务书:`docs/tasks/TASK-beta-main-path-20261014.md`
|
||
- 被验 SHA:`fca62fda43b3f8b7bb76303bf0c83427d25c63ee`(`codex/beta-main-path-20261014`)
|
||
- 执行方:Grok,同一分支续做(merge 最新 `origin/staging`,不改写已推历史)
|
||
- BUG 编号:沿用 BUG-1063 等本单编号
|
||
|
||
## 1. 验收结论:内容通过,与 staging 合并有代码冲突
|
||
|
||
| 检查 | 结果 | 证据 |
|
||
| --- | --- | --- |
|
||
| 迁移 `20261014010000_chart_profiles_service_role_select.sql` | 通过 | 只加逐列 SELECT,列与 `CHART_SUBJECT_SELECT` 一致;不授写、不改 RLS、不动 authenticated;只增不删,对已部署代码向后兼容(§7.6) |
|
||
| `test:db` | 以 Grok 为准 | 82 项 / 失败 13,与 `windows-known-failures.txt` 逐名相同 |
|
||
| AI 生成标识 | 通过 | 输入框下一行、报告标题下一行;英文句只锁不显示 |
|
||
| 状态板清账 | 通过 | 写「已部署 staging `xxxx`」的 11 个提交号,我逐个核对都在 `origin/staging` 上;未把任何一条标成 resolved |
|
||
| 与最新 staging 合并 | **未通过** | `CONFLICT (modify/delete): frontend/src/components/personal-report/personal-report-document-view.tsx deleted in origin/staging and modified in HEAD` |
|
||
|
||
**原因**:#63(BUG-1342,已在 staging)把从不挂载的旧报告视图 `personal-report-document-view.tsx` 整个删了;本单给它的 `ReportCover` 加了一行 AI 标识。两单同时在做,不是你的疏漏。
|
||
|
||
## 2. 修法要求
|
||
|
||
1. `git merge origin/staging`,冲突里**接受删除**(`git rm frontend/src/components/personal-report/personal-report-document-view.tsx`)。现行报告页是 `personal-report-markdown-view.tsx`,那里的标识已经加上,不需要再找新位置。
|
||
2. `frontend/tests/ai-generated-notice-20261014.test.ts` 里若有读取 / 断言该已删文件的,删掉那部分,按 §7.3 写三栏;markdown 视图、输入框的断言保留不动。
|
||
3. `CHANGELOG.md`、`docs/BUG_HISTORY.md` 的文档冲突两边都保留。
|
||
4. 合并后在本机跑:`tsc --noEmit`、`npm run lint`、`npx tsx --test tests/ai-generated-notice-20261014.test.ts tests/runtime-sources-no-test-imports.test.ts tests/class-name-definition-contract.test.ts`,fail 与 cancelled 都为 0。
|
||
5. 业务代码除上面这处外不改。PROGRESS 末尾记一行。
|
||
|
||
## 3. 验收标准
|
||
|
||
- `git merge-base --is-ancestor origin/staging <新 SHA>` 成立;
|
||
- Claude 前端全量 `npm test` 失败清单与 staging 基线逐名相同。
|
||
|
||
## 4. 让步顺序
|
||
|
||
无。第 1 次打回。
|