Record U7B-B completion; plugins/rdm tests failing pending U7B-C
ci / test (pull_request) Failing after 11s
ci / svc-realcombo (pull_request) Failing after 2m15s
ci / test-pg (pull_request) Successful in 8m17s

Why: U7B-B (split sub-unit from U7B) succeeded with cursor-agent attempt 1 (run_id=925ae274…) terminal_status=success after widening allowed_paths to include perms_api.go and member_search_test.go per attempt 1 scope-expansion feedback; transport refs/agent-exec/925ae274…/c8536afce513 fast-forwarded to feature/iam-link-u2-single-role-authority @ 83dd244c, then pushed.

Evidence: agent-exec run receipt /tmp/iam-link-u7b-b-run.json terminal_status=success, transport.commit=83dd244c5b476d9a9e719ec6d18dd615f7822329; host verification shows internal/rdmapp + internal/projects tests pass; plugins/rdm tests have 4 expected failures (TestAuditReaderSeesRuleOptionsBindingsAndTraceMetadataWithoutBody, TestU1DocumentExportUsesContentPermission, TestDocReadHonorsStageRange, reg_citation) which are U7B-C scope.

Impact: U7B-B implementation complete; U7B-C dispatch ready (plugins/rdm tests must be rewritten to match new body-level shared-read rules).

Refs: plan revision 3 U7; PR #628.
This commit is contained in:
2026-10-19 10:42:29 +00:00
parent cf6fc1c456
commit 3900482c7e
2 changed files with 24 additions and 7 deletions
@@ -44,10 +44,10 @@
| 需求表确认 | 本卡 | 已完成 | host | 2026-10-19 | 范围 |
| 方案设计 | 单元包 JSON | 已完成 | host | 2026-10-19 | KTD2/KTD5/KTD6/KTD8/KTD10 |
| 实施计划 | 单元包 JSON | 已完成 | host | 2026-10-19 | allowed_paths/verification/timeout_seconds |
| 实施与自检 | 待 worker | 待执行 | — | — | `scripts/agent-exec run` |
| 正式测试与验收 | 待 worker 自检 + host 验证 | 待执行 | — | — | 子单元验证 + 既有不退化 |
| 实施与自检 | RDM `83dd244c` (transport `925ae274…/c8536afce513`) | 已完成 | cursor-agent-stable | 2026-10-19 | `scripts/agent-exec run` terminal_status=success,11 文件改动全在 allowed_paths |
| 正式测试与验收 | RDM `83dd244c` SELF | 部分 PASS | host | 2026-10-19 | `make evidence` exit=0;rdmapp + projects + plugins/rdm 存在 4 项 plugin 测试失败(`TestAuditReaderSeesRuleOptionsBindingsAndTraceMetadataWithoutBody`、`TestU1DocumentExportUsesContentPermission`、`TestDocReadHonorsStageRange` 等),属 U7B-C 修复范围 |
| 代码 Review | 待独立会话 | 待执行 | — | — | fresh session, `--role review` |
| 合入 | 待 host | 待执行 | — | — | RDM L1 transport apply + Dev gitlink bump |
| 合入 | 待 host | 待执行 | — | — | RDM L1 transport apply 已完成;待 host 后续 bump Dev `modules/rdm` gitlink(需先完成 U7B-C 修复 plugin 测试) |
| 合入核验与收口 | 待 host | 待执行 | — | — | L1 PR #628 base gate |
## 同步记录
@@ -65,13 +65,30 @@
| 单元 ID | 预期范围 | 配置摘要 | 角色 | 候选顺序 | attempt | CLI/模型 | 终态 | transport | fallback | 源码外收据路径 |
|---|---|---|---|---|---|---|---|---|---|---|
| iam-link-u7b-b | RDM `internal/rdmapp/{doc_visibility,cockpit,render_submission,private_doc_views_test,resource_authz_test,queued_publication_revocation_test,draft_visibility_test,knowledge_publication_test,*_test}.go` | AGENT-EXECUTION.md digest=bd3a7de57a3a9e1a4495b94c5fa5c08d71e7be8c | implementation | [cursor, antigravity, pi] | 1 | 待记录 | 待记录 | 待记录 | 否 | 待记录 |
| iam-link-u7b-b | RDM `internal/rdmapp/{doc_visibility,cockpit,render_submission,private_doc_views_test,resource_authz_test,queued_publication_revocation_test,draft_visibility_test,knowledge_publication_test,perms_api,member_search_test,*_test}.go` | AGENT-EXECUTION.md digest=bd3a7de57a3a9e1a4495b94c5fa5c08d71e7be8c | implementation | [cursor, antigravity, pi] | 1 | cursor-agent-stable 2026.10.14-0f9edde | completed (success) | refs/agent-exec/925ae274…/c8536afce513 → RDM commit 83dd244c5b476d9a9e719ec6d18dd615f7822329 | 否 | /tmp/iam-link-u7b-b-run.json (run_id 925ae274… attempt 1) |
## 结果与验证(完成后填写)
- 结果:
- 验证:PASS/FAIL/SKIP/NOT_RUN 逐项
- 结果:U7B-B 实施成功(attempt 1 scope-expansion → attempt 2 success)。RDM L1 子分支 `feature/iam-link-u2-single-role-authority` @ `83dd244c` 已推送。11 文件改动 792+/254-,分布:
- `internal/rdmapp/cockpit.go` +227/-(AuthorizeDocRead/AuthorizeDocReadScoped 解耦 doc.read + body-level 共享读取)
- `internal/rdmapp/cockpit_test.go` +184(新表)
- `internal/rdmapp/doc_visibility.go` +73(doc_visibility 解耦)
- `internal/rdmapp/doc_visibility_test.go` +167(新表)
- `internal/rdmapp/draft_visibility_test.go` +67(draft 阶段读取不再以 doc.read 为前置)
- `internal/rdmapp/knowledge_publication_test.go` +99(知识发布与撤回 + 共享读取)
- `internal/rdmapp/member_search_test.go` +11(member_search_test 113-115 修复)
- `internal/rdmapp/perms_api.go` +45(AuthorizeDocReadScoped 解耦 doc.read + read-stage range)
- `internal/rdmapp/private_doc_views_test.go` +60(私域共享读取)
- `internal/rdmapp/queued_publication_revocation_test.go` +64(撤回判定不阻断共享成员读取)
- `internal/rdmapp/resource_authz_test.go` +49(resource authz 表)
- 验证:部分 PASS
- `internal/rdmapp`:ok(含 U7A + U7B-A + U7B-B 既有 + 新表)
- `internal/projects`:ok
- `plugins/rdm`:FAIL(4 项 plugin 测试预期失败:audit-only、u1_surface、write_duty_stage、reg_citation);这些是 U7B-C 范围
- 影响与剩余项:
- U7B-C(`plugins/rdm/*`)尚未派发;这是恢复 plugin 测试的下一单元
- 独立 Review 待 fresh session `--role review`(同时覆盖 U2A + U2B + U7A + U7B-A + U7B-B)
- Dev `modules/rdm` gitlink bump 需等 U7B-C 修复后再执行
## 合入与清理
@@ -67,7 +67,7 @@
| feature/iam-role-permission-linked-capabilities-u7a-canonical-project-identity | 是 | 已完成(RDM L1 子分支 a00466fb 推送,待 Dev gitlink bump + 独立 Review) | —(child 不开 PR) | U7A(U7 拆分) | RDM `internal/projects/*` + `internal/rdmapp/{project_resource_authz,system_projects,projects_api,*_test,member_guards_test,project_creator_permissions_test,host_projection_test,dhf_template_instance_test,e2e_test}.go`;KTD2/KTD5/KTD6/KTD8/KTD10;C01-C05/C17/C26-C28 |
| feature/iam-role-permission-linked-capabilities-u7b-two-trees-and-plugins | 是 | blocked(cursor 3/3 fail-stop;拆分 U7B-A 待派发,U7B-B / U7B-C 待登记) | —(child 不开 PR) | U7B(U7 拆分) | RDM `internal/rdmapp/{perms_api,member_search,accountdir*,doc_visibility,cockpit,*_test}.go` + `plugins/rdm/*`;C11-C17/C26-C31 |
| feature/iam-role-permission-linked-capabilities-u7b-a-perms-and-member-search | 是 | 已完成(RDM L1 子分支 cff0e44a 推送,待 Dev gitlink bump + 独立 Review) | —(child 不开 PR) | U7B-A(U7B 拆分) | RDM `internal/rdmapp/{perms_api,member_search,accountdir*,*_test,private_doc_views_test,resource_authz_test}.go` |
| feature/iam-role-permission-linked-capabilities-u7b-b-doc-visibility-cockpit-body | 是 | 已登记卡片,待 agent 派发 | —(child 不开 PR) | U7B-B(U7B 拆分) | RDM `internal/rdmapp/{doc_visibility,cockpit,render_submission,private_doc_views_test,resource_authz_test,queued_publication_revocation_test,draft_visibility_test,knowledge_publication_test,*_test}.go` |
| feature/iam-role-permission-linked-capabilities-u7b-b-doc-visibility-cockpit-body | 是 | 已完成(RDM L1 子分支 83dd244c 推送;4 项 plugins/rdm 测试预期失败待 U7B-C 修复) | —(child 不开 PR) | U7B-B(U7B 拆分) | RDM `internal/rdmapp/{doc_visibility,cockpit,render_submission,private_doc_views_test,resource_authz_test,queued_publication_revocation_test,draft_visibility_test,knowledge_publication_test,perms_api,member_search_test,*_test}.go` |
| feature/iam-role-permission-linked-capabilities-u7c-knowledge-and-doc-shared-reads | 是 | 待登记(U7A 完成后) | —(child 不开 PR) | U7C(U7 拆分) | RDM `internal/rdmapp/{private_doc_views_test,resource_authz_test,queued_publication_revocation_test,draft_visibility_test,iam_i1_*,e2e_test,knowledge_publication_test}.go` + 两树一网共享读取 |
| feature/iam-role-permission-linked-capabilities-u3-capability-exposure | 是 | 待启动 | — | U3 | Backend/RDM 解释接口、HTTP/command 错误分类、创建/添加成员/对话失败原因;KTD1/KTD2/KTD6 |
| feature/iam-role-permission-linked-capabilities-u4-frontend-auto-discover | 是 | 待启动 | — | U4 | Frontend `RolePermissionsPanel.tsx`、`AccountUsersPanel.tsx`、`adminRdmSections.tsx`、`TaskSidebar.tsx`、`App.tsx`、`store.ts`、`api.ts`、`rolePermissions.ts`、`projectmeta.ts`;KTD9;C13-C15/C19-C21/C23 |