Files
Agent-System/.doc/ops/short-term/2026-09-25-p11-cleanup-audit.md
weichen 748eb686ae docs(ops): P11 cleanup audit - 19 ready worktrees cleared, blocked classified
- ready batch: worktree remove + branch -d all clean, no force
- blocked split: keep branches with unmerged features (doc-review-lifecycle,
  dialogue-office-expansion, member-permissions-doc, single-binary-design,
  promote/sync test branches); regenerable caches logged; unique logs to
  archive before removal
- CURRENT stale in_progress rows deferred to closeout audit P14
- copy-kb-to-localpg.sh: never existed; migrate_shared_kb.sh already registered
2026-09-25 18:12:54 +00:00

4.3 KiB
Raw Permalink Blame History

title, task_id, status, created, owner, task_type, task_tier, policy_revision, parent_task
title task_id status created owner task_type task_tier policy_revision parent_task
P11: 未收口任务与 cleanup=pending 复查 cleanup-audit-p11-2026-09-25 in_progress 2026-09-25 cursor-auto research small agent-governance-2026-09-21-r1 backlog-triage-p10-2026-09-25

P11: 未收口任务与 cleanup=pending 复查

执行记录(2026-09-25)

P11a:ready 候选实清(已完成)

agentctl cleanup report:19 个 verdict=ready(全部 tasks done/cancelled = owner 退出、head 为 dev 祖先、registry 清、lifecycle idle)。逐个执行标准 git worktree remove + git branch -d,全部成功,无 --force / -D:

integrate-admin-settings-maint-c/d、integrate-backlog-triage-p10-r3、integrate-dialogue-context-layout-fix、integrate-dm-migration、integrate-fix-stage-brief-panic、integrate-gc-p1-closeout、integrate-governance-console-p1、integrate-planned-tasks-closeout-r2、integrate-security-redline-fp、integrate-single-binary-dev-impl-b、integrate-t20-b5-r2、integrate-t20-s2-r2、integrate-t20-s3、integrate-t20-s4、integrate-u9u12、integrate-websysadmin-r2、t20-b5-chat-observability(源)、t20-s4-image-batch(源)。

P11b:blocked 项分类处置

类别 项 处置
含未合入功能(head 非 dev 祖先且 patch-id 查重确认内容未以其他形式进 dev) doc-review-lifecycle-2026-09-25(docgov 生命周期 lock/notify/comment/reopen + 对话触发,37+30 文件;任务表 done 但代码未集成,落后 dev 45 commits,需 rebase 评估冲突后另立集成任务);dialogue-office-expansion-2026-09-25(对话办公 P0–P3 全景计划文档);member-permissions-doc-2026-09-24(成员权限总览设计文档);single-binary-deploy-design-2026-09-24(非容器化设计收口);promote-rc-beta3-c / sync-local-test-origin(test 晋升/同步分支,含 rc tag 历史) 保留(worktree + 分支),登记为待评估集成/归档清单,不按年龄批量删
废弃集成候选(integrate-* 非 dev 祖先:重试后被 r3 等替代) integrate-admin-settings-maint-b、integrate-backlog-triage-p10(-r2)、integrate-gov-visibility-p0-b 内容已由后续候选合入(如 P10 r3=3cefd5b1 已进 dev),分支删除前需逐个 git log dev..HEAD 确认无独有提交——已确认仅含 merge 提交或已被 dev 包含的等价内容
可再生缓存(dirty = !! 前缀 ignored 文件:.codegraph/、scripts/__pycache__/、internal/server/data/、web/dist/) 大量源 worktree 登记后处理:.codegraph 可 codegraph sync 重建;internal/server/data/ 为运行产物;唯一日志(handoff-e2e.log、focused-security-tests.log)先归档 .doc/test-reports/assets/ 对应目录后才能删 worktree
进程占用 admin-env-settings-maintenance(pid 3484192 = /tmp/TestRealFDHandoffE2E.../stubserver 遗留测试进程);u9u12-keys-rollout(pid 3386059 = bash rcfile 孤儿 shell) 遗留测试 stub 进程待确认无父服务后终止;孤儿 shell 属用户会话,不动

P11c:CURRENT 残留行

  • intent-plan-i2-rollout-b-2026-09-24 / intent-plan-i2-impl-2026-09-24 两行 CURRENT 标 in_progress,但任务表已 done、worktree 已删(早前批次清理)。属共享文档行状态漂移;因 own_row_only 规则需以该任务身份修改而 worktree 已不存在,归入收口审计(P14)统一处置(CURRENT 历史「只迁移、不删除」原则下移入历史区或以 admin 能力任务修正)。
  • worktree-cleanup-closeout-2026-09-24 行 in_progress,任务表 done、worktree 在 blocked 清单(仅缓存脏)。同上处置。

P11d:copy-kb-to-localpg.sh 补登记

结论:无需登记。全仓与全部 git 历史均无 scripts/copy-kb-to-localpg.sh(git log --all -- 'scripts/copy-kb*' 为空)。上轮会话摘要的引用为误记;实际 KB 迁移脚本是 scripts/migrate_shared_kb.sh,已有登记(.doc/test-reports/2026-09-07-regulatory-knowledge-base-integration-test-report.md TC-KB-01)。

红线遵守

  • 未用 --force / -D / 批量按年龄删除;每个删除前核对 owner-exit + ancestor。
  • 唯一日志类未删(所在 worktree 保留待归档)。
  • cleanup=pending 语义为操作状态,不是任务第六状态;本记录即复查证据。