Register U2B system-projects-and-plugins sub-unit
Why: U2A succeeded on RDM (1d9de398) so U2B can proceed using the stable RoleAuthority interface. Evidence: U2A child card .task/feature-iam-role-permission-linked-capabilities-u2a-perms-and-perms-api.md (terminal_status=success, transport.commit=1d9de398). Impact: U2B dispatch ready; targets system_projects/projects_api/project_resource_authz/settings_duties/runtime/plugins/rdm entry points; pins/* materialized for compilation. Refs: plan revision 3 U2; PR #628.
This commit is contained in:
+84
@@ -0,0 +1,84 @@
|
||||
# feature/iam-role-permission-linked-capabilities-u2b-system-projects-and-plugins 任务卡
|
||||
|
||||
任务主记录:<PR 链接,交付前填写>;状态:进行中;owner:weichen
|
||||
|
||||
## 基线与授权
|
||||
|
||||
- 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= 7716b28cfff5200e7cfe9ec75aff5bcd71b234ed
|
||||
- 工作区:/home/weichen/projects/Agent-System-Dev-wt-feature-iam-role-permission-linked-capabilities(worktree);分支:feature/iam-role-permission-linked-capabilities
|
||||
- 分支类型:child;initiative_id:feature-iam-role-permission-linked-capabilities;root_target:main;immediate_target:feature/iam-role-permission-linked-capabilities;accepting_requirements:false;parent_branch:feature/iam-role-permission-linked-capabilities;parent_head_sha:531c642;parent_pr:PR #628
|
||||
|
||||
- 授权与交付终点:U2 拆分后第二个子单元 U2B;目标 RDM `internal/rdmapp/{system_projects,projects_api,project_resource_authz,settings_duties,runtime,iam_i1_*,e2e,project_creator_*}` + `plugins/rdm/{plugin,system_projects,iam_i1_*,member_search,member_api,perm_matrix,roles,register_v2,account_directory,duty_member_check,*}`;不开 PR、不入 main;不动 U2A 路径(perms/perms_api/member_search/accountdir)。
|
||||
- 交付模式:goal-first
|
||||
- 实施执行:agent-per-unit(配置:AGENT-EXECUTION.md)
|
||||
- 合入执行:agent(已授权交付范围内,Review 通过、冲突解决且当前 HEAD 的 CI 通过后合入)
|
||||
- 当前阶段:实施单元待派发
|
||||
- 流程依据:仓库根目录 policy/delivery.md;父 L1 charter 见 `.task/feature-iam-role-permission-linked-capabilities.md`;父单元 U2 任务卡见 `.task/feature-iam-role-permission-linked-capabilities-u2-single-role-authority.md`;U2A 见 `.task/feature-iam-role-permission-linked-capabilities-u2a-perms-and-perms-api.md`
|
||||
|
||||
## 目标与非目标
|
||||
|
||||
**目标**:让 RDM `system_projects`、`projects_api`、`project_resource_authz`、`settings_duties`、`runtime`、`plugins/rdm` 入口全部走 U2A 引入的 `RoleAuthority`(基于 Backend `extension.RolePolicyProvider/extension.SystemActionProvider`);`AccountRoleOf/RoleActionOf` 调用点全部替换;ready/legacy 切换、首请求、停用绑定、schema 错、缺提供者、actor 错均有明确判定。
|
||||
|
||||
**范围**:见单元包 allowed_paths。
|
||||
|
||||
**非目标**:
|
||||
- 不动 `internal/perms/*`、`internal/rdmapp/{perms_api,member_search,accountdir*}`(U2A 已完成,必须保持稳定)。
|
||||
- 不动 Backend / Frontend / Documents / Dev。
|
||||
- 不引入新数据库表。
|
||||
- 不删除 `AccountRoleOf/RoleActionOf` 符号。
|
||||
- 不削弱既有拒绝。
|
||||
|
||||
**验收条件**:方案 C22 + U2 子单元既有不退化 + 新表覆盖七类场景全 PASS。
|
||||
|
||||
## 关联方向与规划
|
||||
|
||||
- 主记录:方案 revision 3 `/tmp/iam-role-permission-plan-20261019-sqfu_4g4/plan.md` U2 + 父单元 U2
|
||||
- 前置:U2A capability-association(RDML1 1d9de398 已推远端)
|
||||
|
||||
## 阶段记录
|
||||
|
||||
| 阶段 | 对象版本 | 状态 | 决策/执行者 | 时间 | 依据 |
|
||||
|---|---|---|---|---|---|
|
||||
| 需求拆解 | 本卡 | 已完成 | host | 2026-10-19 | U2 拆分决定 |
|
||||
| 需求评估 | 本卡 | 已完成 | host | 2026-10-19 | U2A 成功结果 |
|
||||
| 需求表确认 | 本卡 | 已完成 | host | 2026-10-19 | 范围 |
|
||||
| 方案设计 | 单元包 JSON | 已完成 | host | 2026-10-19 | KTD7 + U2A 接口稳定 |
|
||||
| 实施计划 | 单元包 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 |
|
||||
|
||||
## 同步记录
|
||||
|
||||
| 节点 | sync_base_sha | tested_head_sha | checked_at |
|
||||
|---|---|---|---|
|
||||
| 启动 | 531c642 | 531c642 | 2026-10-19T05:30:00Z |
|
||||
|
||||
## 证据(Evidence)
|
||||
|
||||
| 时间(UTC) | 命令 | 被测HEAD | exit | 来源 | sha256(16) |
|
||||
|---|---|---|---|---|---|
|
||||
|
||||
## Agent 实施收据
|
||||
|
||||
| 单元 ID | 预期范围 | 配置摘要 | 角色 | 候选顺序 | attempt | CLI/模型 | 终态 | transport | fallback | 源码外收据路径 |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| iam-link-u2b | RDM `internal/rdmapp/{system_projects,projects_api,project_resource_authz,settings_duties,runtime,iam_i1_*,e2e,project_creator_*}` + `plugins/rdm/{plugin,system_projects,iam_i1_*,member_search,member_api,perm_matrix,roles,register_v2,account_directory,duty_member_check,*}` + `pins/{agent-document-renderer,agent-system-{backend,core,frontend,ui,kb-regulations}}` | AGENT-EXECUTION.md digest=bd3a7de57a3a9e1a4495b94c5fa5c08d71e7be8c | implementation | [cursor, antigravity, pi] | 1 | 待记录 | 待记录 | 待记录 | 否 | 待记录 |
|
||||
|
||||
## 结果与验证(完成后填写)
|
||||
|
||||
- 结果:
|
||||
- 验证:PASS/FAIL/SKIP/NOT_RUN 逐项
|
||||
- 影响与剩余项:
|
||||
|
||||
## 合入与清理
|
||||
|
||||
- Review 记录:NOT_RUN
|
||||
- 冲突记录:NOT_RUN
|
||||
- CI 记录:NOT_RUN
|
||||
- 合入记录:NOT_RUN
|
||||
- 清理记录:NOT_RUN
|
||||
|
||||
<!-- Local receipt: SELF. Digests detect corruption; they do not authenticate a reviewer or CI. -->
|
||||
@@ -62,7 +62,7 @@
|
||||
| feature/iam-role-permission-linked-capabilities-u1-capability-association | 是 | 已完成(Backend 子分支 afb65c5 推送,Dev gitlink bump 待 host;独立 Review 待 fresh session) | —(child 不开 PR) | U1 | Backend `internal/authz/catalog`、`internal/store/role_policy`、公开扩展 DTO;RDM `internal/perms/role_provider.go` 与创建能力判定;KTD1/KTD3/KTD4;C06/C08/C09/C10 |
|
||||
| feature/iam-role-permission-linked-capabilities-u2-single-role-authority | 是 | blocked(cursor 3/3 fail-stop;拆分为 U2A 与 U2B 两个子单元重新派发;U2A 已成功,U2B 待派发) | —(child 不开 PR) | U2 | RDM `perms_api.go`、`system_projects.go`、`plugins/rdm/{system_projects,plugin}.go`;Backend `hostcaps.go`;KTD7;C22 |
|
||||
| feature/iam-role-permission-linked-capabilities-u2a-perms-and-perms-api | 是 | 已完成(RDM L1 子分支 1d9de398 推送,待 Dev gitlink bump + 独立 Review) | —(child 不开 PR) | U2A(U2 拆分) | RDM `internal/perms/*` + `internal/rdmapp/{perms_api,member_search,accountdir*,*_test}.go`;KTD7;U2A 子表 |
|
||||
| feature/iam-role-permission-linked-capabilities-u2b-system-projects-and-plugins | 是 | 待登记(U2A 完成后) | —(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-u2b-system-projects-and-plugins | 是 | 已登记卡片,待 agent 派发 | —(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 | 是 | 待启动 | — | 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-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 |
|
||||
|
||||
Reference in New Issue
Block a user