docs(ops): claim and close document-author-only U2
Record short-term evidence and mark the CURRENT claim done. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
| owner | task | branch | worktree | mutex | status |
|
| owner | task | branch | worktree | mutex | status |
|
||||||
|-------|------|--------|----------|-------|--------|
|
|-------|------|--------|----------|-------|--------|
|
||||||
|
| Cursor | 2026-09-17-document-author-only-u2 | feature/document-author-only-plan | .worktrees/feature-document-author-only-plan | projectinstance + document-duty-policy | done |
|
||||||
| Cursor | 2026-09-17-document-author-only-u1 | feature/document-author-only-plan | .worktrees/feature-document-author-only-plan | sysadmin + document-duty-policy | done |
|
| Cursor | 2026-09-17-document-author-only-u1 | feature/document-author-only-plan | .worktrees/feature-document-author-only-plan | sysadmin + document-duty-policy | done |
|
||||||
| Codex | 2026-09-17-document-author-only-plan | feature/document-author-only-plan | .worktrees/feature-document-author-only-plan | document-duty-policy-plan | done |
|
| Codex | 2026-09-17-document-author-only-plan | feature/document-author-only-plan | .worktrees/feature-document-author-only-plan | document-duty-policy-plan | done |
|
||||||
| Cursor | 2026-09-17-initial-load-perf-u2 | feature/initial-load-perf-u2 | - | web + static-delivery | done |
|
| Cursor | 2026-09-17-initial-load-perf-u2 | feature/initial-load-perf-u2 | - | web + static-delivery | done |
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
---
|
||||||
|
title: "文档编制人兼任:U2 逐文档模式与激活"
|
||||||
|
status: done
|
||||||
|
created: 2026-09-17
|
||||||
|
updated: 2026-09-17
|
||||||
|
owner: Cursor
|
||||||
|
branch: feature/document-author-only-plan
|
||||||
|
worktree: ".worktrees/feature-document-author-only-plan"
|
||||||
|
mutex: projectinstance + document-duty-policy
|
||||||
|
---
|
||||||
|
|
||||||
|
# 文档编制人兼任:U2 逐文档模式与激活
|
||||||
|
|
||||||
|
## 目标
|
||||||
|
|
||||||
|
落地逐文档 `duty_policy=author_only`:规划校验、预览摘要、激活 token 绑定策略 revision,激活事务内行锁串行化关闭总开关。
|
||||||
|
|
||||||
|
## 范围
|
||||||
|
|
||||||
|
- DocTaskPlan / PreviewSummary / ProjectSettings 扩展
|
||||||
|
- ResolveDocTaskDuty、Save/Preview/Activate 消费 U1 策略
|
||||||
|
- Goose 00051 token revision 列
|
||||||
|
- app 适配器装配、HTTP 错误码映射
|
||||||
|
- 单元测试
|
||||||
|
|
||||||
|
## 非目标
|
||||||
|
|
||||||
|
- Heal/文档投影(U3)
|
||||||
|
- 前端 UI(U5)
|
||||||
|
- 运行时动作多职责(U4/U6)
|
||||||
|
|
||||||
|
## 步骤
|
||||||
|
|
||||||
|
1. [x] 类型与解析器
|
||||||
|
2. [x] service/store/迁移
|
||||||
|
3. [x] app 装配与 handler
|
||||||
|
4. [x] 测试与提交
|
||||||
|
|
||||||
|
## 验收标准
|
||||||
|
|
||||||
|
- [x] 一位成员兼任可存/预览/激活(总开关开)
|
||||||
|
- [x] 总开关关时 Save 拒绝
|
||||||
|
- [x] 预览后 revision 变化旧 token 409
|
||||||
|
- [x] 未开模式只填作者仍 partial 拒绝
|
||||||
|
- [x] 旧快照缺 duty_policy 时 hash 稳定
|
||||||
|
|
||||||
|
## 相关链接
|
||||||
|
|
||||||
|
- Plan: `.doc/remediation/2026-09-17-document-author-only-plan.md` U2
|
||||||
|
|
||||||
|
## 证据 / 备注
|
||||||
|
|
||||||
|
- `go vet ./internal/projectinstance/ ./internal/app/ ./internal/server/`
|
||||||
|
- `go test -short ./internal/projectinstance/ ./internal/server/ ./internal/app/` PASS
|
||||||
Reference in New Issue
Block a user