docs(tasks): 校正标题修补迁移的进度记录与 Bug 历史回填
- PROGRESS-rectification-title-repair-migration-20260916.md:前提复核、 逐字一致的复核命令、幂等两层的说明、基线比对与环境缺口。 - BUG_HISTORY:BUG-699 / BUG-704 的「修复」补记改由迁移承担,「验证」 的欠账改成待产品在 staging 应用后从 NOTICE 回填。不新增编号。 - BLOCKED.md:BLK-002 无 Docker / 无本地 PostgreSQL,test:db 未跑、 db:migrate:check 缺 SCHEMA_DATABASE_URL,附已实跑的替代证据。 - deploy/README.md:一次性数据修补走同一个 Migrate Staging Database 按钮,行数看日志里的 notice 行。 - docs/tasks/README.md:该单改记待验收。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JUei7K13cYxLHE3Axe4A45
This commit is contained in:
co-authored by
Claude Opus 5
parent
d6c359b205
commit
10afdcddeb
+15
@@ -166,3 +166,18 @@
|
||||
- 本单范围:只记录。不改引擎、不改门槛、不改断言来让它变绿。
|
||||
- 相关:BUG-560 根因升级(分钟级原始分区分力≈随机);`docs/tasks/TASK-rectification-convergence-exit-20260906.md` 验收段。
|
||||
|
||||
|
||||
## BLK-002 · 校正标题/活跃时间修补迁移无法本机实跑(2026-09-16)
|
||||
|
||||
- 状态:blocked(环境缺口,非代码缺陷)
|
||||
- 分支:`codex/rectification-title-repair-migration-20260916`
|
||||
- 对象:`frontend/supabase/migrations/20260916020000_rectification_session_title_repair.sql`(BUG-699 / BUG-704 的一次性数据修补)
|
||||
- 缺什么:本机既没有 Docker(`docker info` 失败),也没有本地 PostgreSQL(`which psql postgres pg_ctl initdb` 全空),因此
|
||||
- `npm run test:db --prefix frontend` **没跑**,不得视为通过;
|
||||
- `npm run db:migrate:check --prefix frontend` 在连库前就以 `SCHEMA_DATABASE_URL is required` 退出 1,拿不到 pending 清单。
|
||||
- 替代证据(都已实跑):
|
||||
- 迁移的两段 SQL 与 `frontend/scripts/repair-rectification-session-titles.mjs` 逐字一致,由 `frontend/tests/rectification-session-title-repair-migration.test.ts` 比对,5/5 通过;
|
||||
- 迁移器的文件级校验(文件名正则、重复文件名、目录扫描)在连库前完成——用假连接串调 `runMigrations({check:true})`,报错停在 `connect ECONNREFUSED` 而不是 `invalid migration filename`,说明新文件名与排序被接受;
|
||||
- `update public.chat_sessions as session`、`join lateral`、`get diagnostics ... = row_count` 三种写法在已应用的迁移里都有先例(`20260808030000`、`20260901010000`、`20260811020000`);
|
||||
- 全量 `npm test`:3334 tests / 31 fail,与同一工作树上 `origin/staging` @ `37e6c519` 的 3329 / 31 逐条一致(本轮 +5 test 全绿,失败集合未变)。
|
||||
- 真实证据待补:产品在 staging 点一次 `Migrate Staging Database`,从运行日志的 `notice ... repaired_titles=` / `notice ... refreshed_activity=` 读回行数,回填进 BUG-699 / BUG-704 的「验证」。解除后划掉本条而不是删除。
|
||||
|
||||
Reference in New Issue
Block a user