Move done DOCREV short-terms, checklists, and handoffs into archive/ops and retarget relative links after Round20 close-out. Co-authored-by: Cursor <cursoragent@cursor.com>
2.5 KiB
2.5 KiB
title, status, created, updated, owner, branch, worktree, mutex
| title | status | created | updated | owner | branch | worktree | mutex |
|---|---|---|---|---|---|---|---|
| 文档账本 PG ID 与计数器重映射 | done | 2026-09-13 | 2026-09-14 | Cursor-Auto | fix/document-revision-pg-id-remap | - | document-revision |
文档账本 PG ID 与计数器重映射
目标
堵住 schema31-round19:首次生成 PG 已写入 snapshot/version/candidate,但 CommitAgentVersion 因内存 map 误删 baseline 而 not found。
范围
internal/docrevisionID 分配、adopt、PG persist- 确定性单测 + 隔离 PG 回归
- audit / remediation / CURRENT / FEATURE-MATRIX / gap-matrix
非目标
- 本任务编码阶段不 merge / 不启停容器 / 不 push;Round20 验收见运行时 UI 报告
- 不删不改证据目录
- 不忽略
ErrNotFound,不伪造基线/报告
步骤
- 从
dev@fa6a033开分支并登记 mutex - 独立验证 openTemplate 不推进 counter + 无条件 delete 误删
- 统一 helper + 全路径 adopt
gofmt/go vet/go test -short/ 相关包测试- 原子提交
验收标准
- 占用 ID 不覆盖;adopt 只删同一对象
- 高序列首次生成:自动提交、V2、candidate committed、baseline 未丢、重启 hydration
- 现场 UI-03:Round20 项目 6159 首次生成 V2/r0,任务
run_1789343479579646533成功(相对 6158 candidate id=175 / output snapshot 250 的 not found)
相关链接
- Audit: ../../audit/2026-09-13-document-revision-pg-id-remap.md
- Remediation: ../../remediation/2026-09-13-document-revision-pg-id-remap.md
- Checklist: ../checklists/2026-09-13-document-revision-pg-id-remap.md
- Handoff: ../handoffs/2026-09-13-document-revision-pg-id-remap.md
证据 / 备注
- 基线:
dev@fa6a033 - 验证:
gofmt/go vetPASS;go test -short ./...PASS;隔离临时库HighSequenceFirstGenPASS(拒绝agent_system_dev,测完 DROP) - 失败归档(只读):
.doc/test-reports/assets/2026-09-13-document-revision-runtime-ui/schema31-round19-ui03-advisor-briefing-docrevision-not-found/ - 验收:Round20 UI-03 PASS,见 ../../test-reports/2026-09-14-document-revision-runtime-ui-test-report.md
- 工程修复已合入
dev@b258ab8