# PROGRESS · 归档下线验收修复单(2026-09-21) 工作树:`.worktrees/archive-retire-fix-20260921` 分支:`codex/archive-retire-fix-20260921` 基线:`origin/staging` @ `d3e0edfd`(修复单;代码基线 `5a4b8738`) ## 任务状态 | 任务 | 状态 | 说明 | | --- | --- | --- | | F1 两条 Python 合同 | 完成 | 五个归档 token 反向断言只打在 row + management;写入 POST/PATCH 合同保留 | | F2 `frontend/AGENTS.md` | 完成 | 删符号前 `git grep -- tests/ frontend/` | | F3 记录 | 完成 | BUG-992;未改 BUG-991 状态 | | P3 迁移测试从文件切 SQL | 完成 | `retireSql.match` 取出 update 再执行,不再手抄 | ## 改断言三栏(F1) | 测试 | 原值 | 新值 | 原因 | | --- | --- | --- | --- | | `test_chat_history_management_actions_are_exposed` | `toggleArchivedSession` / `showArchivedSessions` / 「已归档,可在左侧归档中恢复。」 / 「归档」 / 「恢复」必须出现 | 必须不出现,且只对 `sidebar-session-row.tsx` 与 `use-session-management.ts` | 归档能力于 2026-09-21 整体下线(BUG-991) | | `test_archiving_never_calls_the_delete_endpoint` | 切片 `function toggleArchivedSession`,断言归档走 PATCH 不含 DELETE | 改名为 `test_session_archive_is_retired_and_write_helper_still_patches`:归档函数不存在;`writeChatSession` 仍是 `method: mode === "create" ? "POST" : "PATCH"`;`deleteSession` 切片含 `method: "DELETE"` | 函数没了 `index()` 会抛;D3 写入合同与删除路径不得丢 | ## 测试 | 项 | 结果 | | --- | --- | | `python -m pytest tests/test_session_management_entrypoints.py` | 3 条全绿(函数数未减) | | 反向自测 | `sidebar-session-row.tsx` 临时加「归档」后该测试转红,已撤回未提交 | | `tsc --noEmit` | 0 错 | | `npm run lint` | 0 error / 119 warning | | `run_quality_gate.py` | 本 worktree 无 `.venv`,未跑 | 未改前端业务代码。D3 的 `method: mode === "create" ? "POST" : "PATCH"` 仍在 `test_session_archive_is_retired_and_write_helper_still_patches`。