Files
Agent-System-Frontend/.task/archive/feature-iam-u3-account-ui.md
T
weichenandCursor 22ef3c4b67
governance / governance (pull_request) Successful in 15s
ci / test-and-build (pull_request) Successful in 29s
Fold-close the IAM U3 Frontend task card before merge
Why: close the card in the same PR before merging.
Evidence: pr-check PR_CHECK_OK on 080c630.
Impact: task card only.
Refs: Frontend PR #86
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-19 01:07:00 +00:00

4.9 KiB
Raw Blame History

IAM U3 账号管理与本人恢复前端 任务卡

任务主记录:本文件随 PR 描述维护。 状态:已完成(合入前闭合);owner:weichen。PR:Frontend PR #86

基线与授权

  • 权威仓:weichen/Agent-System-Frontend;root_target:main;immediate_target:main
  • branch_kind:standalone;initiative_id:无(跨仓任务 Agent-System-Dev feature/iam-u3-account-directory-recovery 的前端子交付)
  • R0:710ef836(分支创建时的 origin/main;分支早于本仓治理接入,原无任务卡,本卡在收口时补建);工作区:/home/weichen/projects/Agent-System-IAM-U3-Frontend-Combo/frontend(worktree);分支:feature/iam-u3-account-ui
  • 父任务信息(仅子任务填写):无
  • accepting_requirements:false
  • 需求分流:由 Dev U3 主任务承接
  • 授权与交付终点:用户已批准 U3 阶段 4–6 与 Frontend 组件阶段 7(HEAD 93ee723);U4 合入后用户选择 merge_then_accept:同步 main、重跑证据、独立 Review、当前 HEAD CI 通过后合入,用户在部署上验收,问题另立修复。终点为本 PR 合入 main,再由 RDM/Dev 组合固定。
  • 实施执行:agent-per-unit(配置:AGENT-EXECUTION.md;外部 Agent 一单元一新进程/会话/工作区)

目标与非目标

目标:把 U3 账号界面移植到含 U4 职位权限 UI、账号链路修复(#94/#95)、密码登录与管理员临时重置(#107)、RDM 成员检索(#108)的 main 上,每项能力只保留一套实现(以 main 为基础补入 U3 缺少的行为),并按 U3 RDM 目录消费的命令合同补回成员/职责候选选择器。

非目标:不恢复 U3 登录 Key 标签页(main 已改为纯密码登录);不恢复 main 已删除的 rdm.duty.get 编辑器;不改 Backend/RDM/UI。

Agent 实施收据

单元 ID 预期范围 角色 候选顺序 attempt CLI/模型 终态 transport fallback 源码外收据路径
iam-u3-frontend-onto-main-r2 .gitea/workflows/ci.yml、src/、test/ implementation cursor→antigravity→pi 1(e80375762b4e) cursor / not-observable(新进程,fresh_session=true) success d47c493(apply 快进) 否 /tmp/cleanup-20261018/render/u3-fe-onto-main-run2.json
iam-u3-frontend-rdm-selectors-r1 src/、test/ implementation cursor→antigravity→pi 1(16e6bae28677) cursor / not-observable(新进程,fresh_session=true) success 72c941c(apply 快进) 否 /tmp/cleanup-20261018/render/u3-fe-rdm-selectors-run.json
iam-u3-frontend-ci-ui-sha-r1 .gitea/workflows/ci.yml repair cursor→antigravity→pi 1(3f39344cbd2e) cursor / not-observable(新进程,fresh_session=true) success afd9e75(apply 快进) 否 /tmp/cleanup-20261018/render/u3-fe-ci-ui-sha-run.json

首个单元 r1 因 U3 分支缺 AGENT-EXECUTION.md 返回 invalid-config(未启动 worker);改为在 main 上建同步分支移植。e4041b3 以 -s ours 记录原分支 bc9b17a 历史,树等于 afd9e75。

同步记录

节点 sync_base_sha tested_head_sha checked_at
U4 后再同步 1650b4fff0 e4041b36b9 2026-10-18
合入前 pr-check 1650b4fff0 080c630816 2026-10-19(PR_CHECK_OK,落后 main 0)

结果与验证

  • 结果:每个冲突文件的取舍(worker 记录):api.ts 以 main 为基础,删除 U3 重复方法,redeem 改走 /api/auth/recovery-grants/redeem;AccountUsersPanel 保留 main 组件并补入 U3 的写后重读、刷新失败提示、游标重置、409/启停提示与凭据状态列;adminSections 补入 U3 恢复提案幂等重试、创建后重读与终态提示、迟到响应丢弃;LoginPage/AdminZone/MyAccountSettings/SettingsModal 用 main;RDM 选择器按 RDM U3 合同(mode/searchFields/docId/cursor,成员添加带 userId,职责指派/预览带 accountIds)补回。
  • 验证:主机在 72c941c(配对 UI 5c2b103)上 npx tsc -b、npx vitest run(48 文件 565 测试)、npm run build、node scripts/check-knip.mjs 通过,日志 /tmp/cleanup-20261018/render/u3-fe-72c941c-verify.log(SELF)。当前 HEAD e4041b3 的 CI ci / test-and-build 与 governance / governance 通过(GATE)。
  • Review:全新只读子代理会话审阅 1650b4f..72c941c,阻塞项为 ci.yml 的 UI_SHA 仍是旧 7c35a78(复现 tsc 失败),已由 afd9e75 改为 5c2b103 并经 CI 证明;非阻塞记录:accountCandidatePager 的 issuedFor 共享闭包在迟到响应下可能丢游标;adminSections 任何 409 都回落为临时重置(main 既有行为)。
  • 验收:按 merge_then_accept,用户在部署上验收,问题另立修复。