docs: 记录上下文压缩集成修复

This commit is contained in:
2026-08-15 09:18:04 +08:00
parent 7a811590c4
commit cd48226a5f
3 changed files with 10 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ This file is the integrated default-branch snapshot. Feature tasks record progre
## Integrated Through
- `fd9b5b46a913c515e94e4e26f185d43866c2581f`: Codex-style persistent AI Programming context-compaction timeline and run-lifecycle separation.
- `fd9b5b46a913c515e94e4e26f185d43866c2581f` / `7a811590c4943b7b1b7ea5f3b4d3ce3ce05622a5`: Codex-style persistent AI Programming context-compaction timeline, run-lifecycle separation, polling-idle completion, and cold-hydration hardening.
- `22378efcee07e7fb80b651e65e3202f1a1dfea1d`: AI Canvas bidirectional Agent WebSocket commands, idempotent transport fallback, and Quote-based generation-task recovery.
- `aba5cae286807093cf4ef643fe9f498050985c31`: Robot / AI hardware module, Main-owned Works Square proxy, and cross-repository wire contract.
- `86ece3a` / `4dde8f3`:客户端登录七天滑动续期及集成提交。

View File

@@ -186,6 +186,9 @@ Gate result:
- On 2026-08-15, formed the reviewed context-compaction implementation into source commit `fd9b5b46a913c515e94e4e26f185d43866c2581f`; its parent is exactly current local `main` (`953b0f4`) and the source worktree is clean.
- Started a normal `--no-ff --no-commit` merge of `fd9b5b4` into local `main`; Git reported no textual conflicts. The source task record remains unchanged on `fd9b5b4` and its feature branch and is excluded from the `main` result to preserve task-document ownership boundaries.
- Promoted the accepted compaction facts into canonical current-state, module map, data flow, evidence, and upgrade commitments: compaction is a persistent per-session transcript event, completed status is monotonic, and `session.compacted` cannot end the run or release queued prompts.
- Created no-ff merge commit `1d0878bb5b18e9b17b147a4d43ea0861913da785` with `953b0f4` as first parent and source `fd9b5b4` as second parent.
- The first independent integration review returned `FAIL` on two uncovered edges: HTTP polling-only idle could release the run while leaving its compaction running, and cold busy hydration could misclassify a historical compaction Part as current.
- Closed both findings in `7a811590c4943b7b1b7ea5f3b4d3ce3ce05622a5`: compact polling idle now completes only the matching `runID + generation` event before queue release, and cold hydration keeps a native Part running only when current transcript state provides a matching running identity. Historical compactions remain completed during a later ordinary busy run.
## Verification
@@ -229,6 +232,11 @@ Gate result:
- 2026-08-15 `pnpm run build:vite` — Renderer, Electron Main, and Preload production builds passed; only existing chunk-size and mixed-import warnings remain.
- 2026-08-15 Electron E2E selection — `tests/e2e/opencode-slash-commands.spec.ts` passed 3/3, including the manual compaction running-to-completed timeline transition.
- 2026-08-15 staged/unstaged whitespace checks and project-document structure passed; task-aware drift passed after retaining the source task record only on the feature branch.
- Post-review focused selection — 3 files / 239 tests passed, including polling-only idle completion, queued prompt release, cold historical hydration, realtime native Part preservation, and completed-state monotonicity.
- Post-review `pnpm test` — 156 files / 1715 tests passed.
- Post-review `pnpm run typecheck` and `pnpm run lint:check` — passed; lint retained only the same 6 warnings outside changed files.
- Post-review `pnpm run build:vite` — Renderer, Electron Main, and Preload passed with only existing warnings.
- Post-review Electron E2E selection — 3/3 passed.
## Follow-ups

View File

@@ -12,7 +12,7 @@ Use this index for searchable, traceable evidence records.
| 2026-08-13 | AI 绘画单参考图图生图客户端 | 本地功能验证通过;未执行安装包或真实 Provider smoke | 源任务 `20260812-design-image-to-image-client-c91e``809364e`、集成 `88281b8`、兼容修复 `7a807a2` | 25 项页面回归覆盖图片作品选择、本地上传、视频首帧及 null-medium 兼容22 项云端适配器回归覆盖 REST/WebSocket 缺失 medium 归一化与非法值拒绝typecheck、scoped lint 与 Vite build 通过,生产部署与付费生成另行验收 |
| 2026-08-13 | Makelore Updater 稳定源诊断与错误展示 | 本地功能与构建验证通过;未发布或安装正式包 | `30-worklog/tasks/20260813-makelore-updater-client-7d3a9c.md``f05b9d4` | 4 files / 37 focused tests、typecheck、scoped lint 与 `build:vite` 通过;并发共享错误只投影一次,设置页不显示技术诊断。可用本地产物未签名,真实升级链仍待 Release Owner 验收 |
| 2026-08-14 | AI Canvas 双向 Gateway 与确认任务恢复 | 本地功能验证通过;未执行真实账号付费生成 smoke | 源任务 `20260814-design-generation-runtime-7d3a`、源提交 `22378ef` | 3 files / 74 focused tests、156 files / 1687 full tests、typecheck、lint、Renderer/Main/Preload build 与独立 Sol review 通过;覆盖 WebSocket 命令关联、幂等传输回退、Quote 任务恢复、Conversation 切换与 ABA生产 worker 故障仍需真实环境区分 |
| 2026-08-15 | AI 编程 Codex 风格上下文压缩时间线 | 本地功能验证通过;未运行真实长上下文 OpenCode smoke | 源任务 `20260814-codex-compaction-ux-74b3f2a1`、源提交 `fd9b5b4` | 3 files / 236 focused tests、156 files / 1712 full tests、typecheck、lint、Renderer/Main/Preload build、Electron E2E 3/3 与独立 Sol review 通过E2E 使用受控 EventSource 穿过真实 Store/Renderer 生命周期,不冒充真实 OpenCode 进程验证 |
| 2026-08-15 | AI 编程 Codex 风格上下文压缩时间线 | 本地功能验证通过;未运行真实长上下文 OpenCode smoke | 源任务 `20260814-codex-compaction-ux-74b3f2a1`、源提交 `fd9b5b4`、合并 `1d0878b`、审查修复 `7a81159` | 3 files / 239 focused tests、156 files / 1715 full tests、typecheck、lint、Renderer/Main/Preload build、Electron E2E 3/3 与独立 Sol review 通过;覆盖 HTTP polling-only idle 和历史 Part + 后续普通 busy runE2E 使用受控 EventSource 穿过真实 Store/Renderer 生命周期,不冒充真实 OpenCode 进程验证 |
## When To Add Evidence