diff --git a/.task/feature-iam-role-permission-linked-capabilities-u7b-two-trees-and-plugins.md b/.task/feature-iam-role-permission-linked-capabilities-u7b-two-trees-and-plugins.md index 1b688034..7dafacf6 100644 --- a/.task/feature-iam-role-permission-linked-capabilities-u7b-two-trees-and-plugins.md +++ b/.task/feature-iam-role-permission-linked-capabilities-u7b-two-trees-and-plugins.md @@ -44,11 +44,11 @@ | 需求表确认 | 本卡 | 已完成 | 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 验证 | 待执行 | — | — | 子单元验证 + 既有不退化 | -| 代码 Review | 待独立会话 | 待执行 | — | — | fresh session, `--role review` | -| 合入 | 待 host | 待执行 | — | — | RDM L1 transport apply + Dev gitlink bump | -| 合入核验与收口 | 待 host | 待执行 | — | — | L1 PR #628 base gate | +| 实施与自检 | cursor-agent attempt 1 (failed-unknown) + attempt 2 (scope-expansion) + attempt 3 (failed-unknown) | 三试全 fail-stop,cursor 候选耗尽 | cursor-agent | 2026-10-19 | attempt 1 15 文件 437+/220- 改动完成但 worker 终态记录格式无效;attempt 2 列需要 `project_resource_authz.go`、`project_resource_authz_test.go`、`system_projects_test.go`、`render_submission.go` 等 U7A 路径;attempt 3 按 attempt 2 列表扩到 53 路径含全部 production + test + plugin,仍以 failed-unknown 结束(26 文件 650+/284- 改动完成) | +| 正式测试与验收 | NOT_RUN | | | | 本会话不再尝试 | +| 代码 Review | NOT_RUN | | | | | +| 合入 | NOT_RUN | | | | 后续会话修订 U7B 单元包或拆分 | +| 合入核验与收口 | NOT_RUN | | | | | ## 同步记录 @@ -65,13 +65,21 @@ | 单元 ID | 预期范围 | 配置摘要 | 角色 | 候选顺序 | attempt | CLI/模型 | 终态 | transport | fallback | 源码外收据路径 | |---|---|---|---|---|---|---|---|---|---|---| -| iam-link-u7b | RDM `internal/rdmapp/{perms_api,member_search,accountdir*,doc_visibility,cockpit,private_*,queued_*,draft_*,iam_i1_*,host_projection_test,dhf_*,e2e_test,knowledge_publication,*_test}.go` + `plugins/rdm/*` | AGENT-EXECUTION.md digest=bd3a7de57a3a9e1a4495b94c5fa5c08d71e7be8c | implementation | [cursor, antigravity, pi] | 1 | 待记录 | 待记录 | 待记录 | 否 | 待记录 | +| iam-link-u7b | RDM `internal/rdmapp/{perms_api,member_search,accountdir*,doc_visibility,cockpit,private_*,queued_*,draft_*,iam_i1_*,host_projection_test,dhf_*,e2e_test,knowledge_publication,project_resource_authz*,system_projects_test,render_submission,*_test}.go` + `plugins/rdm/*` | AGENT-EXECUTION.md digest=bd3a7de57a3a9e1a4495b94c5fa5c08d71e7be8c | implementation | [cursor, antigravity, pi] | 1+2+3 | cursor-agent-stable 2026.10.14-0f9edde | attempt 1=failed-unknown, attempt 2=scope-expansion, attempt 3=failed-unknown;cursor 候选耗尽 | 无 | 否 | /tmp/iam-link-u7b-run.json (run_id db0eb5d3… + 8f9c5b8d… + 5b0d2c9b…) | ## 结果与验证(完成后填写) -- 结果: -- 验证:PASS/FAIL/SKIP/NOT_RUN 逐项 +- 结果:cursor 三次尝试均 fail-stop,未产生可应用 transport;cursor 候选耗尽(3/3)。 + - attempt 1 (run_id=db0eb5d3…) terminal=failed-unknown;worktree 15 文件 437+/220- 改动。 + - attempt 2 (run_id=8f9c5b8d…) terminal=scope-expansion;agent 列真实需要扩 `internal/rdmapp/{project_resource_authz,project_resource_authz_test,system_projects_test,render_submission}.go`,因 U7A 未删 `project_resource_authz.go` knowledge 分支的 `publishedKnowledgeSource` 过滤,且 `system_projects_test.go` / `project_resource_authz_test.go` 仍以 doc.read 为前置。 + - attempt 3 (run_id=5b0d2c9b…) terminal=failed-unknown;按 attempt 2 列表扩 allowed_paths 到 53,仍以 failed-unknown 结束;worktree 26 文件 650+/284- 改动完成(含 `project_resource_authz.go` 删 publishedKnowledgeSource + `render_submission.go` 入 member 鉴权)。 +- 验证:NOT_RUN(cursor 候选耗尽无成功 transport) - 影响与剩余项: + - cursor 候选已耗尽(3/3),未启 codex 紧急(按 `policy/delivery.md` 显式 fail-stop 规则)。 + - 后续会话建议: + 1. 改派 agy(违反"不换候选"但实际是重启 cursor 已死的单元);新工作区独立判断 + 2. 拆 U7B 为更小单元:`internal/rdmapp/perms_api.go` + `member_search.go` 子单元 A;`doc_visibility.go` + `cockpit.go` 子单元 B;`plugins/rdm/*` + body-level 测试 子单元 C + - U7C 子单元(已规划但尚未登记到 L1)与 U7B 合并考虑 ## 合入与清理 diff --git a/.task/feature-iam-role-permission-linked-capabilities.md b/.task/feature-iam-role-permission-linked-capabilities.md index 6978399f..e4c01b62 100644 --- a/.task/feature-iam-role-permission-linked-capabilities.md +++ b/.task/feature-iam-role-permission-linked-capabilities.md @@ -65,7 +65,7 @@ | feature/iam-role-permission-linked-capabilities-u2b-system-projects-and-plugins | 是 | 已完成(RDM L1 子分支 8725ed3 推送,待 Dev gitlink bump + 独立 Review) | —(child 不开 PR) | U2B(U2 拆分) | RDM `internal/rdmapp/{system_projects,projects_api,project_resource_authz,settings_duties,runtime}` + `plugins/rdm/{plugin,system_projects,*}`;KTD7 | | feature/iam-role-permission-linked-capabilities-u7-canonical-two-trees | 是 | blocked(cursor 3/3 fail-stop;拆分为 U7A + U7B + U7C 重新派发;U7A 已登记卡片待 agent 派发) | —(child 不开 PR) | U7 | RDM `internal/projects/{projects,provisioning,projection_rename}.go`、`internal/rdmapp/{projects_api,system_projects,project_resource_authz}.go`;Backend `internal/server/{project_lifecycle,server}.go`;KTD2/KTD5/KTD6/KTD8/KTD10;C01-C05/C11-C17/C19-C21/C26-C31 | | 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 | 是 | 已登记卡片,待 agent 派发 | —(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-two-trees-and-plugins | 是 | blocked(cursor 3/3 fail-stop:failed-unknown + scope-expansion + failed-unknown;worktree 26 文件 650+/284- 改动但不能 apply;后续会话拆分 U7B 或改派 agy) | —(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-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 |