Repository navigation
feat(harness): allow AB/BA campaigns to continue after a failed final - #750
Inference1 wants to merge 2 commits into
Conversation
Admit an explicit continuation through the existing Manager lock and unchanged round and time budgets. Retain every independent final with its original candidate and assessment evidence across the published views. Agent-assisted-by: Codex (author) Signed-off-by: Inference1 <[email protected]>
|
Codex, acting for @Inference1 (implementer). @Bounty-hunter @david6666666, please independently review head |
|
Codex, acting for @Inference1 (implementer). @zengchuang-hw, could you independently review the ordinary AB/BA continuation on |
Candidate retention may use the remaining search time. Check the frozen cutoff again under the session lock before recording the pending attempt. Discard the staged snapshot on refusal and keep the prior final. Agent-assisted-by: Codex (author) Signed-off-by: Inference1 <[email protected]>
|
Codex, acting for @Inference1 (implementer). @Bounty-hunter @david6666666 @zengchuang-hw, please review the new signed head |
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for zengchuang-hw.
回应本轮邀请。固定范围 477446f → 915a6dc。
首审普通 up-to AB/BA 的一次显式续跑。原邀请绑定 43accd3;复核了到 915a6dc 的后续两文件改动。Manager 在同一把锁内检查 opt-in、原 failed-final、清理与剩余预算,先持久登记 continuation 和 pending 再交执行。旧 final 留在历史中并绑定其当时的候选,后续无结论不能替换旧 verdict;导出为每个 final 保留可独立定位的 observation。
独立运行当前 head 的实际准入函数与持久化/执行替身:匹配证据可进入准入,已有 pending、重复续跑或无预算拒绝;模拟候选复制到达截止线,没有保存 pending、没有启动 child,原 final 不变。静态检查了重启、并发和导出回归代码,未独立重跑整个 CLI、wheel 或硬件。批准仅限 #749 的普通会话切片。
Codex, acting for @Inference1 (implementer).
Governing Issue and delivery slice
Refs #749
The scope and implementation assignment and the claim cover one explicit continuation of an ordinary AB/BA project. Goal acceptance remains with @Dong1017.
Anchors touched: none.
Problem
An ordinary AB/BA project campaign closes after a completed independent
FAIL, even when the frozen round and time budgets still allow search. On a Linux CPU fixture atba4637e2, the final missed its performance gate after one of three rounds. Roughly 278 seconds remained for search and the next round was rejected. Settlement on the target base · Round admission on the target baseWhat
--allow-final-continuationandcampaign round --continue-after-finalwith its existing reason flag to ordinary up-to-budget AB/BA projects.summary.json, the dashboard and export. The latest conclusive result stays bound to the candidate it actually evaluated.Why needed
Operators can investigate a failed independent check and submit another candidate inside the original campaign. A retained history keeps the failed candidate and its evidence available while the next independent evaluation is pending.
Design and implementation
Manager validates the named final against its retained observation and checks that all executed stages have matching cleanup receipts. Status and admission share this preflight. Manager records the continuation and pending round together under the existing session lock before execution. Recovery uses the same pending attempt, and the original round cap, deadline, final reserve and frozen protocol continue to govern admission.
The final observation pins the selected candidate at admission. Apps uses that binding for the retained result and includes each attempt's observation and evidence in the export artifact index. The existing Executor and Evaluator still run and assess the frozen AB/BA protocol.
Candidate retention can consume the remaining search time. Immediately before writing the pending attempt, Manager checks the original cutoff again. If the cutoff was reached, it discards the staged candidate and leaves the previous final and the round ledger intact.
Checks and dependencies
43accd3. The regression on the revised tree verifies refusal at the cutoff, byte-identical control state, no new attempt directory and the original final still current. The local continuation selections passed 13 tests on Python 3.10 and 22 on 3.11, including the service-reuse path. Ruff andgit diff --checkpassed.915a6dcsdist and wheel built successfully. Core-only installed smoke checks passed on Python 3.10 and 3.11. All 13 ordinary continuation tests passed against the installed Python 3.11 wheel, including the fresh CLI process. A separate Python 3.10 source selection passed 141 tests and 43 import subtests.43accd3. The current PR checks cover the follow-up.477446f6d675. Git merged the revised source tree with #709 at85f78d07182f06dd7b183e4a980c6db72f672922without conflicts. The combined tree passed 25 Python 3.11 tests across ordinary continuations, managed Indexer delivery and read ranges.mainin the same workspace. The detached-process cleanup case passed separately onmainand the preceding signed source.Knowledge authorship declaration