Skip to content

Qualify guarded Host recovery and cold descriptor startup in CI - #9718

Open
cocolord wants to merge 1 commit into
loopx-project:mainfrom
cocolord:codex/mainline-worker-recovery-20261201
Open

cocolord wants to merge 1 commit into
loopx-project:mainfrom
cocolord:codex/mainline-worker-recovery-20261201

Conversation

@cocolord

@cocolord cocolord commented Dec 1, 2026

Copy link
Copy Markdown
Member

Problem

The recent full main run reported ten failures in guarded external-worker recovery and one in the cold Codex descriptor probe. The guarded test created its own receipts without the dispatch attempt ID required by #9633. Coverage's subprocess site hook imported SQLite before the descriptor probe started. Main run · Shard with both failures

Change

Route the guarded recovery test through the existing Host subprocess fixture. It echoes the dispatched attempt ID. The test still commits the original File or SQLite settlement before observing a capacity error, and verifies next-work admission, recovery after restart, proof rejection, and once-only quota accounting. Launch the cold descriptor probe with an isolated interpreter and an explicit source path. Its existing import assertions detect product-caused eager imports.

Validation

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh

动机 / Motivation

依赖外部 Worker 恢复用例和 Codex 描述符冷启动检测的维护者。 内联假回执缺少当前实际派发身份。覆盖工具的启动加载让原先冷启动断言读到了测试框架已载入的模块。 由已有子进程夹具从 dispatch 回传原身份,冷启动探针在明确源码目录的隔离解释器内仍捕获产品侧急加载。 变更只整理两个现有测试入口。合成宿主只代替模型和容量错误,真实 CLI、File/SQLite 回执和原结算继续执行。 托管整仓分片和其它平台仍由原 CI 验收。 固定依据

改动思路 / Approach

保留真实 quota 与断线前结算,继续沿 guarded Host subprocess 运行;冷探针用当前解释器的 -I -S 和明确源码根。 Python 3.11、两个 xdist worker 和 coverage 下,三个定向文件 85 项通过。真实 Host 子进程回传派发的 attempt ID,File 与 SQLite 分别验证正常、重启和三种不可用证明。 恢复测试

具体改动 / Changes

精确提交 a591a52396a829c7ce55eddd034a2ac5046527bc,基线 d19a0d7e0d417f80f7460326960ab3bb73588a07。两个测试文件 +9/-11。生产运行路径与 GitHub 工作流配置无变化。 依据 docs/reference/protocols/loopx-turn-v0.md。原结算和恢复通过两后端组合。冷启动能力目录通过隔离启动与主动注入 SQLite 反例。

关键内容讲解

正常返回或重启后,有效原结算允许后继工作。证明缺失、不可读或身份不同继续 hold。隔离器跳过 coverage 的 site hook,SQLite 等实际急加载仍会触发原断言。

对主干的风险 / Risks

相同覆盖设置在基线得到 11 项失败。十个恢复样例将缺派发 ID 的返回归为 unknown。另一个冷启动测试在 coverage 启动时已载入 SQLite。向候选的隔离探针加产品侧 SQLite import 后,负例仍然失败。 精确头 standard premerge 与 git diff --check 通过。 实际运行了本地 source checkout、隔离 CLI/Host 子进程、File 与 SQLite。模型为合成,未等待或触发远端 CI。 恢复调用 · 冷探针

我的整体评价 / Verdict

批准。 两个修复保留了原恢复和冷启动断言的强度,并消除了独立复现的测试失败。

English verdict: APPROVE at a591a52. Under matching coverage settings the base reproduces 11 failures and 85 targeted candidate tests pass. The guarded Host now echoes its dispatched attempt ID, and the isolated cold probe still rejects an injected SQLite import.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants