Files
Agent-System/.doc/remediation/2026-09-13-document-revision-pg-id-remap.md
T
weichenandCursor 9345109dca docs(ops): archive completed document-revision session files
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>
2026-09-14 00:27:18 +00:00

1.6 KiB
Raw Blame History

title, status, created, updated
title status created updated
同步 PG 返回 ID 与进程内计数器 done 2026-09-13 2026-09-14

同步 PG 返回 ID 与进程内计数器

背景

链到 ../audit/2026-09-13-document-revision-pg-id-remap.md。

目标

  • 所有 PG 写入后统一 adopt*ID:推进 counter,且仅当 map 旧键仍指向同一对象才删除
  • 临时 ID 分配跳过已占用键,避免覆盖其它文档的真实对象
  • MaterializeAgentOutput 在「baseline DB ID == 下一临时 ID」序列下自动提交成功;不得忽略 ErrNotFound、不得伪造基线/报告、失败任务不得显示成功

分波次计划

波次 内容 验收
Wave 0 统一 ID helper + 首次生成/多文档/重启 hydration 回归 gofmt / go vet / go test -short;隔离 PG 碰撞用例
Wave 1 占槽重跑真实 UI-03 Round20:6159 首次生成 V2/r0 PASS

验收标准

相关链接