docs: 完成 AgentRun worktree 门禁任务报告

This commit is contained in:
Codex
2026-07-16 11:52:37 +02:00
parent 69c3787598
commit ad5d00d79a
2 changed files with 26 additions and 1 deletions
@@ -0,0 +1,25 @@
# R5.2 任务报告
## 结果
- 已解决 [UniDesk #2310](https://github.com/pikasTech/unidesk/issues/2310)。
- 实现提交:`69c37875`
- 独立 PR[UniDesk #2313](https://github.com/pikasTech/unidesk/pull/2313)。
- 未修改生产运行面,未自行合并。
## 改动
- AgentRun Target preflight 仅保留 Target 重入标记、显式 `targetWorkspace`、绝对路径和目录存在性校验。
- 删除 Git 根、origin、dirty、branch、HEAD 和远端 ref 的全部读取及 admission 结论。
- dirty、ahead、behind、detached、branch/ref/origin 不匹配和已有 diff 不产生 warning 或 blocker。
- `repo``ref``targetWorkspace` 仅作为显式任务身份参与幂等键。
- CLI human、JSON 和 YAML 输出统一披露 `gitStateInspected=false`,不再输出 clean、commit 或 ref relation。
- apply 与 dispatch 路径未发现第二处 task worktree Git 状态读取或门禁。
## 验证
- `bun test scripts/src/agentrun.test.ts`26 项通过,0 失败。
- 回归夹具实际构造 dirty、ahead=1、behind=1、branch/ref/origin 不匹配状态,preflight 仍成功。
- 绝对路径和目录存在性拒绝用例通过。
- `bun scripts/cli.ts check --syntax-only`11 项通过,0 失败。
- `git diff --check`:通过。
+1 -1
View File
@@ -288,6 +288,6 @@
泛化改进 PaC consumer 首次 CI/CD bootstrap 与排错:source-artifact 在 PR 前验证流水线源码入口,debug-step 一次返回失败 task/step/exit code/有界日志,closeout --wait 持续观察并精确关联 source、GitOps、Argo 与 runtime digesthistory 提示单 consumer 快路径;由 [GitHub issue #2307](https://github.com/pikasTech/unidesk/issues/2307) 跟踪,完成任务后将详细报告写入[任务报告](./details/sub2api-upstream-reliability/R5.1_Task_Report.md)。
### R5.2 [in_progress]
### R5.2 [completed]
解决 [UniDesk #2310](https://github.com/pikasTech/unidesk/issues/2310):彻底废弃 AgentRun 对 task worktree 的 Git 状态校验,使 dirty、ahead、behind 和已有 diff 均不阻断 create/apply/dispatch;只保留显式 targetWorkspace、绝对路径和目录存在性校验,不读取 Git 状态形成 warning 或 blocker,不修改生产运行面,提交独立 PR 且不自行合并,完成任务后将详细报告写入[任务报告](./details/sub2api-upstream-reliability/R5.2_Task_Report.md)。