3.8 KiB
3.8 KiB
title, task_id, status, created, updated, owner, task_type, task_tier, policy_revision, branch, worktree, base_dev_sha, write_scope, allowed_environments, mutex, review_state, integration_state, deployment, cleanup, remote_sync
| title | task_id | status | created | updated | owner | task_type | task_tier | policy_revision | branch | worktree | base_dev_sha | write_scope | allowed_environments | mutex | review_state | integration_state | deployment | cleanup | remote_sync | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 系统 Code Review P0/P1 修复(2C+3H) | system-review-p0-p1-fixes-2026-09-26 | in_progress | 2026-09-26 | 2026-09-26 | pi | implementation | cross-module | agent-governance-2026-09-21-r1 @ f4c1b73f |
fix/system-review-p0-p1-fixes-2026-09-26 | .worktrees/system-review-p0-p1-fixes-2026-09-26 | f4c1b73f28 |
|
review-fixes-batch | pending | pending | deployed | pending | not_requested |
系统 Code Review P0/P1 修复
用户目标与授权
- 来源:2026-09-26 系统 code review 发现项。
- 用户授权(2026-09-26):一并修复 2 Critical(FIND-SEC-01、FIND-ARCH-01)+ 3 个 High 行(FIND-SEC-02/03、FIND-FLOW-01、FIND-QUAL-01);修复完成后与审计报告一起提交(同一批集成);完成后清理 worktree 任务分支。
- 禁止项:未授权环境写、push、晋升 test/main;FIND-ARCH-02(server Pool 接线)未在授权修复范围(ISSUES 登记 open)。
范围
- 修复主记录(含逐项根因/方案/回归):remediation/2026-09-26-system-code-review-fixes.md。
- Issue 台账:ISSUE-20260926-ctx-idor / archcheck-untracked / authz-failopen / swboot-shell-prefix / intentflow-validated-confirm / dual-flags-drift(resolved)+ governance-multi-entry(deferred)+ server-pool-wiring(open)。
- 经验:LESSON-20260926-failclosed-bypass-contract(validated)。
问题检索与采纳
检索词:IDOR、GetUserContext、session_id、validated_only、table_owners、untracked、fail-open、sh -c、前缀白名单、PlanTier。命中:来源审计 FIND-*(全部);ISSUES 无同题已关闭条目;经验库无同机制 lesson(本轮新建)。采纳检查:模块规范 §2.1/§4(表唯一写者、端口装配)、验证契约「问题修复的回归范围」(原例+同类+正常行为)。
计划与进展
- worktree + 登记(base f4c1b73f)
- 六项修复实施 + 回归用例
- 验证:arch-check block / vet / short 全量 / 隔离 PG(IDOR PG、authz、duty);两个基线既有失败已核对非本批回归
- 文档:修复主记录、ISSUES、lesson、索引
- 提交
- 集成(含审计报告分支同批 --no-ff,候选 integrate-review-fixes)
- 部署核验(用户授权;
launch.sh --no-dockerFORCE_BUILD 重建 + 重启,binary vcs.revision=1ceda34c;/health+/ready ok schema 75;线上 IDOR 负例:他户/带 user_id 覆写/未知会话→403,归属者→200 且含原文。探测留痕:dev 库 probe 用户 dpv_/dpa_ 与项目 idor-live-probe-*) - 清理(本任务 + 审计任务 + 集成候选 worktree/分支均已普通 remove)
验证
详见修复主记录验收汇总。要点:arch-check block PASS(fail-closed 后)、vet/short 全绿、隔离 PG(55432 verify 容器临时库)IDOR/authz/duty PASS;TestHealProjectDocuments_SkipsDutyLocked_PG 与 PI E2E(KB 离线)为基线既有失败(stash 对照证实)。
状态与交接
- 集成后:任务状态改 done;审计任务(system-code-review-2026-09-26)的 integration/cleanup 由本批一并推进。
- 部署:
deployment=pending(代码影响运行内容;dev 服务重启与核验未在本任务授权内,见修复主记录)。