The freshness test's IDENTITY_FORBIDDEN_PREFIXES list is append-only; the branch replaced the two sync8 entries instead of adding the sync9b ones after them, which weakens the identity guard. Restore them. Co-Authored-By: Claude (agent loop) <noreply@anthropic.com>
46 lines
2.5 KiB
Markdown
46 lines
2.5 KiB
Markdown
# TASK · 上游同步第九轮乙批 · 第 1 次打回(2026-10-28)
|
||
|
||
- 原任务书:`docs/tasks/TASK-upstream-sync9b-20261028.md`(issue #159)
|
||
- 被验 SHA:`5c5f333d4d93fb691c10790988d3d4c986ac1bd3`(分支 `codex/upstream-sync9b-20261028`)
|
||
- 执行方:Grok,同一分支继续提交;不新开 BUG 号
|
||
|
||
## 1. 验收结果
|
||
|
||
| 检查 | 结果 |
|
||
| --- | --- |
|
||
| 回报 SHA 是分支最新提交,可快进到当前 `origin/staging` | 是 |
|
||
| `varga.py` 改动 | 与上游 `50847e57` 一致,只改了任务书点名的三处 |
|
||
| 上游测试 + `test_varga_bphs.py` + 冻结契约 + 敏感点冒烟(Linux) | 49 过 |
|
||
| 生时校正 20 条 + 900 条(Linux 复跑) | 与第八轮记录逐条相同 |
|
||
| 旧冻结记录 | 逐字节未动 |
|
||
| 两处偏离(临时记录回放、前端测试路径) | 认可,与第八轮做法一致 |
|
||
| 任务书里 `-k "sarpa or drekkana or special"` 选中 0 条 | 这是任务书写错了,你改用真实测试名是对的 |
|
||
|
||
## 2. 失败项:冻结契约测试的排除清单被删了两条
|
||
|
||
`tests/test_sealed_holdout_contract_freshness.py::IDENTITY_FORBIDDEN_PREFIXES` 这份清单历来是**追加**的(每次重新冻结都「再排除」新路径,旧路径留着)。本分支把第八轮的两条:
|
||
|
||
```
|
||
"docs/research/sealed_holdout_rerun_upstream_sync8_2026_10_18",
|
||
"docs/research/reported_offset_upstream_sync8_2026_10_18",
|
||
```
|
||
|
||
**替换**成了第九轮乙批的两条,第八轮那段注释还在、条目没了。这条测试守的是「冻结记录文件不能混进打分身份」,删掉以后第八轮的记录混进去也不会报错——测试仍然通过,但守门变弱了。
|
||
|
||
## 3. 要做的
|
||
|
||
1. 把上面两条第八轮路径加回去,放在原来那段注释下面;第九轮乙批两条保留在其后。即清单同时含第八轮与第九轮乙批共 4 条。
|
||
2. PROGRESS「断言三栏」这一行改写为「新增两条、原有全部保留」。
|
||
3. 跑 `tests/test_sealed_holdout_contract_freshness.py`,回报通过数。
|
||
4. 前端:在工作树 `frontend/` 里 `npm ci` 后跑 `npm test -- tests/rectification-confirmation-gate.test.ts`(或该仓等价的单文件命令),回报结果。
|
||
|
||
## 4. 验收命令
|
||
|
||
| 检查 | Grok 自跑 | Claude 验收 |
|
||
| --- | --- | --- |
|
||
| `tests/test_sealed_holdout_contract_freshness.py` | 必跑 | 复验 |
|
||
| `frontend/tests/rectification-confirmation-gate.test.ts` | 必跑 | 复验 |
|
||
| 上游两个测试文件、校正 20 + 900 | 不必重跑(本次不改代码) | 复验 |
|
||
|
||
完成后照旧回报新的 head SHA。
|