docs: claim pi-agent settle-policy image COPY hotfix
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -63,7 +63,7 @@ app 日志:`taskrun_status_transition run_id=run_1789325979820025769 error="st
|
||||
|
||||
- Remediation: [../remediation/2026-09-13-document-revision-prelim-output.md](../remediation/2026-09-13-document-revision-prelim-output.md)
|
||||
- Short-term: [../ops/short-term/2026-09-13-document-revision-prelim-output.md](../ops/short-term/2026-09-13-document-revision-prelim-output.md)
|
||||
- 分支: `fix/document-revision-prelim-output`
|
||||
- 分支: `fix/document-revision-pi-runner-module`(由 `dev@55a4f39` 检出;前序 `fix/document-revision-prelim-output` 已合入)
|
||||
|
||||
## 证据
|
||||
|
||||
@@ -75,3 +75,4 @@ app 日志:`taskrun_status_transition run_id=run_1789325979820025769 error="st
|
||||
- 占槽后真实 UI-11 重跑;本任务保持 `in_progress`,不得标 `done`
|
||||
- 本轮不执行 `env-service` 重建;Dockerfile / `.dockerignore` 已按 `/app/templates/docs` 读路径修好并做 context 实测。占槽后的镜像重建才带进运行中的 dev 容器
|
||||
- Go 侧必须能在**旧 runner 假成功**时靠 `execution.log` 识别瞬时失败并全新重试;仅修 runner 假成功只会更早 FAIL,不会单独提高成功率
|
||||
- **热修(dev@55a4f39 重建后)**:`deploy/pi-agent/Dockerfile` 只 COPY 了 `runner.mjs`,未 COPY `settle-policy.mjs`;`shuimu-pi-agent-dev` 因 `ERR_MODULE_NOT_FOUND file:///app/settle-policy.mjs` 重启循环。app 侧 `/app/templates/docs` 与 configs 已正常。
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@
|
||||
|
||||
## 焦点
|
||||
|
||||
1. **DOCREV-RT**: [prelim_design 缺 output.md 产物契约修复](short-term/2026-09-13-document-revision-prelim-output.md)(`fix/document-revision-prelim-output`:Dockerfile + dockerignore 已测 context;有界全新 step 重试;不伪造产物 / 不改 prompt / 不重跑 E2E / 不执行 env-service 重建;仍 `in_progress`)
|
||||
1. **DOCREV-RT**: [prelim_design 缺 output.md 产物契约修复](short-term/2026-09-13-document-revision-prelim-output.md)(`fix/document-revision-pi-runner-module`:dev@55a4f39 重建后 runner 缺 `settle-policy.mjs` 热修;不执行 env-service 重建;仍 `in_progress`)
|
||||
2. **CHAT**: [刷新恢复整改已实施](short-term/2026-09-13-chat-history-refresh-remediation.md)(待合 dev + PI E2E 补录)
|
||||
3. **CI**: `TEST_DATABASE_URL` + 真实 PI E2E 实录;INTENT 发布 blocker 见 conversation-intent short-term
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
| Cursor-Auto | document-revision-e2e-overlay-selector | fix/document-revision-e2e-overlay-selector | - | document-revision-overlay-selector | in_progress |
|
||||
| Cursor-Auto | document-revision-e2e-overlay-transition | fix/document-revision-e2e-overlay-transition | - | document-revision-overlay-transition | in_progress |
|
||||
| Cursor-Auto | document-revision-second-doc-routing-lease | fix/document-revision-second-doc-routing-lease | - | document-revision-second-doc-routing-lease | in_progress |
|
||||
| Cursor-Auto | document-revision-prelim-output | fix/document-revision-prelim-output | - | document-revision-prelim-output | in_progress |
|
||||
| Cursor-Auto | document-revision-prelim-output | fix/document-revision-pi-runner-module | - | document-revision-prelim-output | in_progress |
|
||||
|
||||
> 新任务开始前登记。`branch` 必须为 `feature/<slug>` 或 `fix/<slug>`,**禁止** `dev` / `test` / `main`。同一 `mutex` 同时仅一个 `in_progress`。
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ status: in_progress
|
||||
created: 2026-09-13
|
||||
updated: 2026-09-13
|
||||
owner: Cursor-Auto
|
||||
branch: fix/document-revision-prelim-output
|
||||
branch: fix/document-revision-pi-runner-module
|
||||
worktree: "-"
|
||||
mutex: document-revision-prelim-output
|
||||
---
|
||||
@@ -21,6 +21,7 @@ mutex: document-revision-prelim-output
|
||||
- `internal/agent` 路径映射、目标强制、瞬时/永久分类、`Result.Retryable`
|
||||
- `internal/squad` `runOneStep` 有界全新 invocation
|
||||
- `deploy/pi-agent/runner.mjs` + `settle-policy.mjs`
|
||||
- `deploy/pi-agent/Dockerfile` 必须 COPY runner 的全部相对 import 到 `/app`
|
||||
- `deploy/app/Dockerfile` `COPY templates` / `COPY configs` 到 `/app`;`.dockerignore` 放行官方 markdown
|
||||
- Docker build context / `/app/templates/docs` 读路径实测(不执行 env-service 重建)
|
||||
- 文档:audit / remediation / CURRENT
|
||||
@@ -41,7 +42,8 @@ mutex: document-revision-prelim-output
|
||||
5. [x] settle-policy + Go 分类 + `runOneStep` 有界全新重试 + 单测
|
||||
6. [x] `.dockerignore` 放行 `templates/**/*.md`;Docker context 实测 `/app/templates/docs/prelim_design.md`
|
||||
7. [x] 本次写入的目标不覆盖、不再调用;backend 明确失败仍 FAIL(不把文件存在当成功);上一轮残留不当成功
|
||||
8. [ ] 占槽后真实 UI 重跑(本轮不做)
|
||||
8. [x] `dev@55a4f39` 重建后 runner `ERR_MODULE_NOT_FOUND settle-policy.mjs`:Dockerfile COPY 齐相对模块 + COPY 契约测试
|
||||
9. [ ] 占槽后真实 UI 重跑(本轮不做)
|
||||
|
||||
## 验收标准
|
||||
|
||||
@@ -49,6 +51,7 @@ mutex: document-revision-prelim-output
|
||||
- [ ] 绝对/`./`/重复子目录 `rel_path` 能落到目标文件
|
||||
- [ ] `ok:true` 但无非空目标 → 失败,不发明正文
|
||||
- [x] 瞬时 settled failure → 最多一次全新 step;永久缺失不重试;耗尽 fail-closed
|
||||
- [x] pi-agent 镜像 COPY 含 runner 全部相对 import(含 `settle-policy.mjs`)
|
||||
- [ ] intake 工作流单测仍绿
|
||||
- [ ] 真实 UI-11 PASS 后才可标 `done`
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ updated: 2026-09-13
|
||||
| Wave 1 | `settle-policy`:`terminated` / `Connection error` / `auto_retry_end` 后 settle 失败,返回 `retryable` | 干净 settle + 缺文件 → `retryable=false` |
|
||||
| Wave 1 | Go `AssessStepFailure` + `runOneStep` 有界全新 invocation(≤2) | 仅 `(provider terminated/connection + 缺目标)` 或 runner 明确失败;本次写入不覆盖且失败不翻成功;上一轮残留不当成功;耗尽 fail-closed |
|
||||
| Wave 1 | 旧 runner 假成功:扫描 `execution.log` 识别 settled failure | 不依赖本轮 env-service 重建 |
|
||||
| Wave 2 | `deploy/pi-agent/Dockerfile` COPY `settle-policy.mjs` 及 runner 全部相对 import | `TestPiAgentDockerfileCopiesRunnerRelativeImports` + context smoke;本轮不重建运行中容器 |
|
||||
|
||||
## 取舍
|
||||
|
||||
@@ -42,6 +43,7 @@ updated: 2026-09-13
|
||||
- [x] embed + 路径映射 + runner fail-closed + 单测
|
||||
- [x] dockerignore 放行官方 markdown;Docker context 可读 `/app/templates/docs/prelim_design.md`
|
||||
- [x] 瞬时/永久分类 + 有界全新 step 重试 + 已有目标不覆盖 + 单测(本机门禁;真实 UI 未重跑)
|
||||
- [x] pi-agent 镜像 COPY 齐 runner 相对模块(`settle-policy.mjs`);契约测试防回归
|
||||
- [ ] 占槽后真实 UI-11 PASS 才可将本任务标 `done`
|
||||
|
||||
## 相关链接
|
||||
|
||||
Reference in New Issue
Block a user