Repository navigation
test(benchmark): stub _verify_phase_configuration for heartbeat-explore prompt parity - #9271
Conversation
…re prompt parity Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · Gemini · Google · self_reported
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
当环境中同时激活 sforge 与 harbor 依赖并运行 EdgeBench 提示词一致性测试套件(benchmark/tests/test_edgebench_prompts.py)时,基准测试维护者与开发者会在 heartbeat-explore 配置下遇到 7 个前置失败用例。
改动前,上游基础分支已在 SForgeWorker.format_run_cmd 中为 heartbeat-explore 冷启动流程接入了 _verify_phase_configuration(..., verify_explore=True) 回读校验,但两个提示词测试中的轻量 SimpleNamespace 测试替身缺少该方法,导致 7 个 heartbeat-explore 用例立即抛出 AttributeError 失败;改动后,通过共用替身补齐 _verify_phase_configuration 并校验阶段调用参数与 explore-activation.json,使全部 78 个用例恢复通过并验证阶段一致性。 如果不做此修复,在完整基准依赖环境下提示词与 AGENTS.md 注入测试将持续阻断,无法及时发现真实回归;而若改为在生产路径静默跳过缺失方法,则会破坏 fail-closed(遇校验接口缺失立即报错)保护。
提取 _sforge_runtime_stub 与 _assert_explore_phase_parity 后,benchmark/tests/test_edgebench_prompts.py 在 sforge 与 harbor 激活条件下达到 78 passed, 0 skipped,并显式断言 heartbeat-explore 与 heartbeat-resume 两条路径对 _prepare_phase、_loopx 与 _verify_phase_configuration 的调用参数及落盘回执。 本 PR 仅修改 benchmark/tests/test_edgebench_prompts.py 中的测试替身与断言逻辑,不修改 SForgeWorker 或 BenchmarkCodex 生产运行时逻辑、Explore 激活参数或无关的 umask 测试用例。
改动思路 / Approach
先评估替代方案:若不做任何改动,提示词套件在激活 sforge 与 harbor 的环境中必然稳定失败 7 项;若修改生产函数 SForgeWorker.format_run_cmd 去容错缺失 _verify_phase_configuration 的替身,则会在生产环境削弱阶段配置强校验。因此最小且正确的边界是同步更新测试替身本身。
在隔离边界与所有权上,这两个测试只关注提示词包装、AGENTS.md 策略追加与 resume=True 幂等性,刻意跳过 BenchmarkCodex.install 的容器内 Python/Node 打包流程,使用 SimpleNamespace stub 捕获调用;而真实的 BenchmarkCodex._prepare_phase 与 _verify_phase_configuration 生产不变量,仍由同文件 test_native_research_objective_and_full_planning_input_survive_real_goal_bootstrap 及 benchmark/tests/test_shared_codex_runtime.py 中的无 stub 测试独立守护。PR 将两处重复内联 stub 合并为 _sforge_runtime_stub 与 _assert_explore_phase_parity(architecture_assessment: not_applicable,仅涉及单一测试模块内的测试辅助重构,无新生产机制或状态所有权变更)。
| Profile(冷启动路径) | _prepare_phase 关键参数 |
_loopx(Explore 激活) |
_verify_phase_configuration 调用 |
|---|---|---|---|
heartbeat-explore |
verify=True, verify_explore=False |
调用 1 次,含 --explore-harness-enabled,写 explore-activation.json |
调用 1 次,verify_explore=True, verify_yardstick=True |
heartbeat-resume |
verify=True, verify_explore=True |
不单独调用([]) |
不单独调用([]) |
具体改动 / Changes
全部改动局限于 benchmark/tests/test_edgebench_prompts.py(+48 / -20 行),无独立书面规范文档(no_spec;行为基线来自基础分支 benchmark/runtime/sforge.py 与 benchmark/runtime/harbor.py 的既有调用契约)。
关键代码讲解
_sforge_runtime_stub(benchmark/tests/test_edgebench_prompts.py:69-96):构造共用的SimpleNamespace运行时替身并返回calls记录字典(prepare、loopx、verify)。其中verify(environment, *, cwd, verify_explore=True, verify_yardstick=True)与生产方法BenchmarkCodex._verify_phase_configuration(benchmark/runtime/harbor.py:645-648) 的仅限关键字参数签名及默认值保持逐参数一致;_prepare_phase与_write_task_document共享prepare异步桩记录文本与参数;_loopx返回{"ok": True}并记录命令与cwd。_assert_explore_phase_parity(benchmark/tests/test_edgebench_prompts.py:99-109):相比旧版仅收集文本并丢弃调用参数的桩函数,新断言显式校验了heartbeat-explore冷启动先以verify_explore=False完成基础配置校验、再执行含--explore-harness-enabled的configure-goal并写入explore-activation.json、最后以verify_explore=True, verify_yardstick=True二次校验的完整顺序;同时校验heartbeat-resume直接以verify_explore=True完成且不触发额外激活或二次校验。test_each_worker_receives_and_records_selected_prompt(benchmark/tests/test_edgebench_prompts.py:116-189):改用_sforge_runtime_stub(uses_loopx=profile.startswith("heartbeat-"), delivered=received)替换原内联prepare/configurestub,并在format_run_cmd后调用_assert_explore_phase_parity,覆盖 5 个 profile × 3 种 feedback 共 15 个组合。test_worker_delivers_exact_file_set_guidance_only_with_native_probe(benchmark/tests/test_edgebench_prompts.py:196-258):同样接入_sforge_runtime_stub与_assert_explore_phase_parity,恢复heartbeat-explore× 4 种 native-probe 组合共 8 个用例的端到端断言。- 生产调用对照
SForgeWorker.format_run_cmd(benchmark/runtime/sforge.py:637-650) 与BenchmarkCodex._verify_phase_configuration(benchmark/runtime/harbor.py:645-688):核实冷启动heartbeat-explore在生产代码中依次调用_prepare_phase(..., verify=True, verify_explore=False)、_loopx(...)与_verify_phase_configuration(..., verify_explore=True),与本 PR 替身签名和断言完全一致。
对主干的风险 / Risks
经核查,为这两个提示词测试补齐 _verify_phase_configuration stub 属于合理的测试隔离维护,而非掩盖生产不变量或基准契约缺陷:
- 未绕过真实不变量验证:这两个单元测试的定位是隔离验证提示词渲染与
AGENTS.md注入,不重复运行容器内loopx安装;而真实的BenchmarkCodex._prepare_phase、_verify_phase_configuration及 fail-closed 负例(例如 Explore 图未激活时拒绝通过、基础 cadence 不匹配在激活 Explore 前阻断、readback 不一致抛错、WarmStart 校验前保持registry.json密封摘要不变)已在同文件test_native_research_objective_and_full_planning_input_survive_real_goal_bootstrap(4/4通过)以及benchmark/tests/test_shared_codex_runtime.py(6/6相关真实运行时用例通过)中得到实测覆盖。 - 签名防漂移保护:替身
verify使用仅限关键字参数签名(environment, *, cwd, verify_explore=True, verify_yardstick=True),若生产端将来修改传参形式或新增未兼容参数,测试仍会报TypeError。 - 范围与隔离边界:本 PR 仅修改测试文件(
scope_fit: coverage-only;无新增生产入口或默认开关变化,default_off_isolation与authority_semantics均为not_applicable)。非阻塞观察:同文件test_native_prompt_upload_is_readable_regardless_of_launcher_umask(行 628)仍保留内联SimpleNamespace(仅运行heartbeat-resume且warm_start=None,当前不受影响);_assert_explore_phase_parity对official/single/native-goal仅依赖外层received断言而未显式校验calls["loopx"] == []。
本地验证实测(均在精确 head 2c7d123d33f2938682c0e9e9c05196d723615f30 与基线 8c2c2233f6a9a06a88ff7830b96749b23780fd40 隔离环境下执行,未等待远程 CI):
- 基线复现(
8c2c2233f6,启用sforge==1.1.0+harbor==0.20.0):FAIL(7 failed, 71 passed in 20.89s,全部在benchmark/runtime/sforge.py:648报AttributeError: 'types.SimpleNamespace' object has no attribute '_verify_phase_configuration')。 - 目标测试集(
2c7d123d33,启用sforge==1.1.0+harbor==0.20.0):PASS(python -m pytest -q -rs benchmark/tests/test_edgebench_prompts.py:78 passed, 0 skipped, 0 failed in21.95s)。 - 真实运行时校验对照(
2c7d123d33,test_shared_codex_runtime.py -k "yardstick or explore or verify_phase"):PASS(6 passed, 206 deselected in6.27s)。 - 静态与边界检查:PASS(
ruff check benchmark/tests/test_edgebench_prompts.py通过;loopx check --scan-path benchmark/tests/test_edgebench_prompts.py返回errors=0, warnings=0,public boundary scan clean;canary premerge中 4 项direct_checks含check_rfc_bilingual.py与py_compile全部通过,6 项选定 catalog canary 中 5 项通过)。 - 环境差异归因说明:
canary premerge中examples/semantic-vocabulary-drift-smoke.py在新建隔离 worktree 中因缺少node_modules(npmtypescript依赖未安装)报环境异常(external_unrelated);另外目标策略下的change_quality_qualification尚未生成当前 diff receipt 且benchmark_sensitive路径存在manual_review_requiredhold,这些属于合并前置门禁而非本 PR 代码缺陷。
我的整体评价 / Verdict
从长期运行与实验基准维护维度看,本 PR 保留了长期运行与配置强校验语义(long_horizon: preserved),未在生产路径留下静默降级或绕过风险;user_experience 为 not_applicable(仅改动测试替身与断言,不改变任何 CLI、前端或用户交互路径,且无渲染界面变化,故 visual_review 为 not_applicable,unverified_scope 为 none)。
在可观测语义与代码体量方面(observable_semantics: intentional_change_validated、code_volume: necessary、change_proportionality: proportionate),抽取 _sforge_runtime_stub 与 _assert_explore_phase_parity 消除了重复替身代码并强化了参数调用断言,不存在兼容性包袱或需立即简化的问题。default_off_isolation 与 authority_semantics 均不适用(not_applicable),semantic_alignment 为 not_applicable(仅本地测试代码改动,未新增或修改任何共享语义词表,无需改动注册表或 RFC)。
残余风险:本次在本地隔离环境使用 sforge==1.1.0 与 harbor==0.20.0 完成了全部 78 项提示词用例及 6 项真实 BenchmarkCodex 校验用例实测,未在 Linux Docker 容器内重跑需显式 Docker 隔离的用例,但 PR 改动严格限定在单元测试替身内。由于 PR 作者与当前审核账号相同,GitHub 限制正式自批,故通过 COMMENTED 形式发布审查结论;此外 PR 当前堆叠在开放分支 codex/fix-warm-start-yardstick-seal-20261122 之上,合并前仍需满足堆叠前置合入、change-quality receipt 与人工 hold 门禁,本次审查保持 PR OPEN。
英文简短结论
English verdict: APPROVE — Reviewed exact head 2c7d123d33f2938682c0e9e9c05196d723615f30 (stacked on 8c2c2233f6a9a06a88ff7830b96749b23780fd40). Adding _verify_phase_configuration to the shared _sforge_runtime_stub and asserting heartbeat-explore vs heartbeat-resume phase parity cleanly resolves the 7 AttributeError failures without weakening real BenchmarkCodex runtime verification; all 78 tests in benchmark/tests/test_edgebench_prompts.py (sforge + harbor active), 6 related real-runtime tests in test_shared_codex_runtime.py, ruff check, and loopx check pass locally.
loopx-agent
left a comment
There was a problem hiding this comment.
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
Reviewer: model_agent · Gemini · Google · self_reported
动机 / Motivation
本变更面向在本地或 CI 中同时安装并启用 sforge 与 harbor 运行 EdgeBench 提示词与运行时单测的开发者与验证流水线。修复前在基线提交运行 pytest 会因两个测试里的 worker.runtime 替身缺少 _verify_phase_configuration 方法,在 SForgeWorker.format_run_cmd 阶段对所有 7 个 heartbeat-explore 用例直接抛出 AttributeError 中断;修复后通过共享夹具 _sforge_runtime_stub 补齐异步签名并在 _assert_explore_phase_parity 校验调用顺序,使 7 个失败用例全部转为真实断言通过。可观察改进体现在:在同时存在 sforge 与 harbor 的测试环境中,benchmark/tests/test_edgebench_prompts.py 的全部 78 个用例稳定通过(0 跳过、0 失败),且 ruff 与 LoopX 边界扫描无报错。清晰边界如下:本 PR 不修改任何生产运行代码、宿主机部署脚本或仅覆盖 heartbeat-resume 的 umask 用例,也不在纯单元测试中拉起真实 Docker 容器或真实 loopx CLI 子进程。 若放任该缺陷留在主干或前置分支,任何开启完整 sforge + harbor 依赖的自动化回归都会把这 7 个虚假夹具异常混入真实运行时回归信号中,阻碍后续 stacked PR(如 WarmStart/Yardstick 与 Explore 链路)的干净判别。
改动思路 / Approach
入口位于测试调用 worker.format_run_cmd,实际状态编排与权威决策归 benchmark/runtime/sforge.py 中的 SForgeWorker.format_run_cmd 与 benchmark/runtime/harbor.py 中的 BenchmarkCodex._verify_phase_configuration 所有,本 PR 仅在测试替身层记录真实编排产生的调用轨迹,不引入新的生产机制或持久化状态,也不存在并行决策分支;因此架构与职责划分的判断边界仅限于测试夹具复用(architecture_assessment: not_applicable,所有被触及代码均为 tests_or_fixtures)。在复用设计上,没有继续在两个测试函数里各自复制粘连的局部 async 闭包,而是抽取模块内单一共享工厂 _sforge_runtime_stub,并将差异校验集中在 _assert_explore_phase_parity。
| 阶段分支 | 修改前(8c2c2233f6) |
修改后(2c7d123d33) |
关键决策与实测状态 |
|---|---|---|---|
heartbeat-explore |
调用 _prepare_phase(..., verify_explore=False) 与 _loopx 后,调用 _verify_phase_configuration 时因替身缺方法抛出 AttributeError(7 例 FAIL) |
经由 _sforge_runtime_stub 记录 prepare / loopx / verify 三类调用并写出 explore-activation.json,断言顺序与参数精确一致 |
PASS(9 个 heartbeat-explore 用例全部通过) |
heartbeat-resume |
仅经过 _prepare_phase(..., verify_explore=True),未断言 _loopx 与 _verify_phase_configuration 未被二次触发 |
通过 _assert_explore_phase_parity 显式断言 verify_explore=True 且 calls["loopx"] == []、calls["verify"] == [] |
PASS |
official / single / native-goal |
沿既有分支返回(official/single 早返回,native-goal 仅走 _write_task_document) |
不进入 explore 与 resume 的特定断言分支,原有行为全部保留 |
PASS |
具体改动 / Changes
- 规范映射与改动分类:
- 依据规范文档
benchmark/runtime/SETTINGS.md#L17-L60; benchmark/runtime/RUNTIME.md#L786-L835(修订基线8c2c2233f6a9a06a88ff7830b96749b23780fd40)验收以下核心准则:explore-post-activation-verify:已实现于_sforge_runtime_stub与_assert_explore_phase_parity(验证_prepare_phase(..., verify=True, verify_explore=False)->configure-goal --explore-harness-enabled+explore-activation.json->_verify_phase_configuration(..., verify_explore=True, verify_yardstick=True))。resume-baseline-isolation:已实现于_assert_explore_phase_parity(验证heartbeat-resume走verify_explore=True且零额外_loopx/_verify_phase_configuration调用)。
- 差异体量与分类:仅修改 1 个测试文件
benchmark/tests/test_edgebench_prompts.py(+48 / -20,净+28行,100% 属于tests_or_fixtures),未触及生产代码或文档。
- 依据规范文档
- 核心符号映射(Symbol Map):
_sforge_runtime_stub(benchmark/tests/test_edgebench_prompts.py):构造供worker.runtime使用的最小共享异步替身,暴露_prepare_phase、_write_task_document、_loopx、_verify_phase_configuration(environment, *, cwd, verify_explore=True, verify_yardstick=True)(经inspect.signature核对与BenchmarkCodex._verify_phase_configuration签名完全一致)与_worker_env,返回(runtime, calls)。_assert_explore_phase_parity(benchmark/tests/test_edgebench_prompts.py):统一验证heartbeat-explore与heartbeat-resume两种 LoopX 档位的调用次数、关键词参数以及explore-activation.json落盘内容。test_each_worker_receives_and_records_selected_prompt与test_worker_delivers_exact_file_set_guidance_only_with_native_probe(benchmark/tests/test_edgebench_prompts.py):移除各自局部闭包与内联SimpleNamespace,统一接入上述共享夹具,同时保持原有 Prompt、AGENTS.md与resume=True幂等断言不变。
- 本地验证与差分基线:
- 差分基线对比(启用
sforge与harbor):在基线8c2c2233f6a9a06a88ff7830b96749b23780fd40上复现pytest -q -rs benchmark/tests/test_edgebench_prompts.py为FAIL(7 failed, 71 passed in 20.58s,全部 7 例均在benchmark/runtime/sforge.py:648抛出AttributeError);在当前 Head2c7d123d33f2938682c0e9e9c05196d723615f30上同一命令输出为PASS(78 passed, 0 skipped, 0 failed in 19.52s),聚焦-k heartbeat-explore为PASS(9 passed, 69 deselected in 11.87s)。 - 静态与边界检查:
git diff --check origin/codex/fix-warm-start-yardstick-seal-20261122..HEADPASS、ruff check benchmark/tests/test_edgebench_prompts.pyPASS、loopx check --scan-path benchmark/tests/test_edgebench_prompts.pyPASS(errors=0, warnings=0,public boundary 1 file clean)。 - 风险门禁
loopx canary premerge --from-git-diff --git-diff-base origin/codex/fix-warm-start-yardstick-seal-20261122:5/5direct_checks与 5/6catalog_canaries通过,manual_holds计 1 项benchmark_sensitive;examples/semantic-vocabulary-drift-smoke.py在独立干净 worktree 中因未安装node_modules的 TypeScript 依赖失败(与本 Python 测试改动无关)。 - 远程 GitHub Actions CI 状态未在审查阶段等待或轮询(
wait_for_ci: false,诊断行标为UNVERIFIED),依据本地实测全量判定。
- 差分基线对比(启用
对主干的风险 / Risks
当前精确 Head 审查未发现阻塞主干的回归、安全边界绕过或职责膨胀问题。残留风险在于测试夹具层边界:_sforge_runtime_stub 通过内存记录替身模拟 BenchmarkCodex._prepare_phase 与 _verify_phase_configuration,不会执行真实容器命令行及 SQLite 状态回读,因此无法替代真库级配置校验测试(真实配置读回链路已由独立集成测试覆盖);此外,同文件末尾的 test_native_prompt_upload_is_readable_regardless_of_launcher_umask 仍保留了简化的局部 SimpleNamespace 替身,因该用例固定测试 heartbeat-resume 而不会触发 Explore 校验路径,保持未动符合最小外科手术原则,仅作为非阻塞的后续可选整理项。最有价值的补充验证是在启用 sforge 与 harbor 的同一环境下加跑 benchmark/tests/test_sforge_runtime.py。
我的整体评价 / Verdict
本 PR 针对性地补齐了测试替身缺失的 _verify_phase_configuration 阶段校验方法,以极小、清晰的净 +28 行改动彻底打通了 sforge 与 harbor 同时激活时 test_edgebench_prompts.py 的全部 78 个用例,并通过共享 _sforge_runtime_stub 与 _assert_explore_phase_parity 消除了重复闭包并显式钉住了 heartbeat-explore 与 heartbeat-resume 两条冷启动分支的状态契约。长周期运行语义与用户交互路径均未受负向影响(visual_review 对纯测试文件变更标注为 not_applicable,检查路径 benchmark/tests/test_edgebench_prompts.py 无任何 UI 或呈现改动,未覆盖范围为 none)。基于基线 7 例失败复现、当前 Head 78/78 实测全绿以及边界检查通过,建议准予合入(受仓库 benchmark_sensitive 策略的独立 maintainer 合并门控约束,与技术正确性无关)。
English verdict: APPROVE — Exact-head review verified at 9271@2c7d123d33f2938682c0e9e9c05196d723615f30. Adds _verify_phase_configuration via shared _sforge_runtime_stub and _assert_explore_phase_parity helpers in benchmark/tests/test_edgebench_prompts.py (+48/-20), turning 7 base-commit AttributeError failures on 8c2c223 into 78 passed, 0 skipped, 0 failed with sforge and harbor active on HEAD plus ruff and loopx check clean (canary direct checks 5/5 passed; unrelated TypeScript npm dependency gap in detached worktree).
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
Request changes conclusion (author-owned PR; GitHub blocks formal self-review)
动机 / Motivation
维护 EdgeBench 提示词和 Explore 冷启动的开发者需要及时发现实际配置执行顺序退化。 目标分支的 7 个 Explore 测试在缺失的替身方法上中断。 真实 SForgeWorker 冷启动执行配置并读回。仅调换这两步,或删除配置的 --execute,7 个针对用例都继续通过。 补齐了共享替身并恢复 78 个用例。当前断言分别记录三类调用,检查了部分参数。 改动只在测试文件。实测 PyPI SForge 1.1.0、Harbor 0.20.0 与本地合成环境。未启 Docker、付费模型或外部 benchmark。
改动思路 / Approach
真实 SForgeWorker 负责阶段编排,测试替身只记录可观察动作。 范围限于测试,不扩展已有 SForge 激活或产品配置权限。 继续共用一个替身,以单一调用轨迹观察各步骤先后,避免测试通过却没有执行配置。 现有运行时规范
具体改动 / Changes
准确头 2c7d123d33f2938682c0e9e9c05196d723615f30,目标分支准确基线 8c2c2233f6a9a06a88ff7830b96749b23780fd40,单文件 +48/-20。按夹具通过、阶段顺序与执行核对。用同一组依赖在 PR 的准确堆叠基线复现 7 项 AttributeError、71 项通过。当前头 78 项通过,无跳过。 两个原来重复的替身现在共用同一个工厂,保留其他 profile 的提示词测试和原生产阶段实现。替身分别写入 prepare、loopx 和 verify 列表,配置回执由替身固定返回。断言检查冷启动配置标记、回执文件和 verify 参数,续跑路径要求省略额外配置与回读。 测试断言 真实阶段
对主干的风险 / Risks
[P2] 探索激活和读回顺序没有被测试守住。 独立对原 SForgeWorker 方法做两次内存故障注入,各只改一个条件。先校验再激活仍 7/7 通过,移除 --execute 只生成配置预览仍 7/7 通过。调用分桶丢失全局次序,且配置替身对预览也返回 ok。 遇到实际没有执行配置或读到了旧配置,这批测试仍会给出通过。用同一个调用序列断言 prepare → configure --execute → verify,并在断言里绑定 Goal 和原有 Explore 参数。让缺少 --execute 或提前验证的反例失败,同时保留 resume 的单次校验约束。 基线和当前头运行了完整 78 项原生提示词测试;Ruff 和准确堆叠 diff 检查通过。
我的整体评价 / Verdict
请求修改。保留补齐替身和消除七个假失败的改动。把调用的先后顺序和实际执行标志纳入现有断言,让两个反例都能被检查识别。上游生产文件和 resume 规则可以保留。
English verdict: REQUEST_CHANGES at 2c7d123. The seven baseline fixture failures are fixed. The new phase oracle still passes when readback runs before activation or configure-goal omits --execute. Check the ordered operations and the actual execution flag.
| if profile == "heartbeat-explore": | ||
| assert calls["prepare"] == [{"cwd": str(workspace), "verify": True, "verify_explore": False}] | ||
| assert len(calls["loopx"]) == 1 | ||
| assert "--explore-harness-enabled" in calls["loopx"][0]["command"] |
There was a problem hiding this comment.
[P2] 独立对原 SForgeWorker 方法做两次内存故障注入,各只改一个条件。先校验再激活仍 7/7 通过,移除 --execute 只生成配置预览仍 7/7 通过。调用分桶丢失全局次序,且配置替身对预览也返回 ok。 用同一个调用序列断言 prepare → configure --execute → verify,并在断言里绑定 Goal 和原有 Explore 参数。让缺少 --execute 或提前验证的反例失败,同时保留 resume 的单次校验约束。
Summary
Unblocks the 7 pre-existing
heartbeat-explorefailures inbenchmark/tests/test_edgebench_prompts.pywhen bothsforgeandharborare importable:test_each_worker_receives_and_records_selected_promptandtest_worker_delivers_exact_file_set_guidance_only_with_native_probe, bothworker.runtimeSimpleNamespacestubs omitted_verify_phase_configuration, whichSForgeWorker.format_run_cmdinvokes withverify_explore=Trueafterconfigure-goal --explore-harness-enabledwhenprofile == "heartbeat-explore"._sforge_runtime_stub(including_verify_phase_configuration(environment, *, cwd, verify_explore=True, verify_yardstick=True)) and_assert_explore_phase_parity, verifying:profile == "heartbeat-explore":_prepare_phasereceivesverify_explore=False,_loopxrunsconfigure-goal ... --explore-harness-enabled ... --execute,explore-activation.jsonrecords the command result, and_verify_phase_configurationis called once withverify_explore=True.profile == "heartbeat-resume":_prepare_phasereceivesverify_explore=True, and neither_loopxnor_verify_phase_configurationis invoked separately.Verification
pytest -q -rs benchmark/tests/test_edgebench_prompts.py(withsforgeandharborboth active) — 78 passed, 0 skipped, 0 failed in19.49s(reproducing 7 failures prior to fix)ruff check benchmark/tests/test_edgebench_prompts.py&git diff --check origin/codex/fix-warm-start-yardstick-seal-20261122...HEAD— passedloopx check --scan-path benchmark/tests/test_edgebench_prompts.py—ok: true, errors: 0, warnings: 0loopx canary premerge --from-git-diff --git-diff-base origin/codex/fix-warm-start-yardstick-seal-20261122—direct_checks: 4/4 passed,python_compile: 1/1 passed,catalog_canaries: 6/6 passed,failures: 0(gate.status: manual_review_required,manual_hold_count: 1)