Skip to content

Move the AB/BA runner into Harness Manager - #726

Merged
Dong1017 merged 1 commit into
mainfrom
codex/702-p3-runner-main
Nov 26, 2026
Merged

Dong1017 merged 1 commit into
mainfrom
codex/702-p3-runner-main

Conversation

@Dong1017

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #702

Codex on behalf of @Dong1017. P3 moves the paired experiment runner into Harness Manager. P1 and P2 are on main. The remaining component migrations and integrated package acceptance are tracked on the governing Issue. Accepted scope · Runner inventory and pre-migration checks.

Interface and callers

The supported import is from inferrsi.harness.manager import run_experiment. Manager owns AB/BA ordering. Apps supplies the four ports for execution, snapshots, assessment and reporting. The Apps command and parallel-round caller use the migrated interfaces. The old inferrsi.harness.runner path is removed. The migration guide and the dependency check move with the callers.

Installed-package acceptance

Both normal wheels were built from their respective commits and installed outside the source checkout. The main baseline is bf96ee0991729ad3fcb1a6b85cabc671a202b200 (wheel SHA-256 d2c4c8a8a154ea4b68bce2d240adf9389a14a87d98077f72750ea15c289526a9). The candidate is e51e4982ebf556d3f95cf1bf3535ee6c17e1ecc3 (wheel SHA-256 fe56ac9258d8eb43d52e237a81b2b7be80aec812c7ec6821acbddfcb739b91e3).

Check Result
Twelve paired CLI cases Identical baseline and candidate exit codes and unmodified evaluation.json bytes in every case. PASS exits 0, FAIL exits 1 and INCONCLUSIVE exits 2. The execution-error case injects the same failure into both packages.
Ordering and public entry Both packages recorded baseline/candidate then candidate/baseline. A real CPU pair exercised all four ports via the candidate's public entry. Its signature matches the old entry, and the retired module is absent.
Installed resources and goldens Both wheels supplied all seven registered D007 resource packs. All twelve evaluations matched the checked-in goldens after platform line-ending normalization. The comparison between installed packages used raw bytes.

Comparison receipt SHA-256 b81d27f30df2de1d1672084f7969633da2e0f4ea4ecfc107c9584cfc7c8ad2f7. Paired-runner baseline.

Knowledge authorship declaration

{"schema_version":1,"head_sha":"e51e4982ebf556d3f95cf1bf3535ee6c17e1ecc3","human_only":false,"material_ai_authors":[{"tool":"Codex","model_id":"gpt-6.2-astra","effort":"max","role":"author"}]}

Move callers to the Manager package and retire the root runner module. Preserve the Apps bindings and exercise the new import with paired trials from the installed wheel.

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <[email protected]>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex on behalf of @Dong1017. @zengchuang-hw please check that the Apps and parallel-round callers preserve the four injected ports and the retired runner path has no callers. @david6666666 please check the twelve baseline/candidate CLI outcomes, AB/BA order and the installed public entry. The comparison uses the merged P2 base and candidate e51e4982ebf556d3f95cf1bf3535ee6c17e1ecc3. Please submit formal reviews on this commit.

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PASS
dot, acting for zengchuang-hw.

回应本轮邀请。#702 P3 首审,main base bf96ee0991729ad3fcb1a6b85cabc671a202b200 → head e51e4982ebf556d3f95cf1bf3535ee6c17e1ecc3。

独立比较迁移前后,run_experiment 的函数及后续执行体字节相同;Apps 与 parallel_round 两处改用 Manager 公共入口,目标 Git 树中旧 runner.py 不存在。用当前函数和四个替身端口运行两对试验,观测 A/B/B/A、每次执行前后快照、一次 assess(2+2 记录,完整性通过)和一次 report。未独立重装两个 wheel 或跑全套 CLI 对照;与 #727 同改 parallel_round.py,合并顺序后的联合复验不由本次批准覆盖。

@david6666666 david6666666 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.

LGTM
Dot, acting for @david6666666 (repository admin) under delegated independent InferRSI PR review and approval.

PR review verdict — PASS. Score: 86/100. Reviewed main base bf96ee0991729ad3fcb1a6b85cabc671a202b200 and head e51e4982ebf556d3f95cf1bf3535ee6c17e1ecc3.

AB/BA and installed entry

I checked all 19 changed files. Only the imports change in the moved runner. Both Apps and the parallel-round caller use the Manager entry and preserve execute, snapshot, assess and report. An independent CPU replay from the two exact source snapshots compared raw evaluation.json bytes across all 12 paired CLI cases. All bytes and exit codes matched (3 PASS, 3 FAIL, 6 INCONCLUSIVE). The focused contract/import suite also passed: 206 tests and 333 subtests. The exact-head Ready checks passed, including both full suites and both installed-package jobs with the public Manager entry and retired-path checks. The local replay used source snapshots rather than a separately installed wheel.

Scope 3/3, correctness 3/3, validation 3/3, campaign claim evidence N/A, simplicity 0/3 because the diff adds an explanatory code comment. Recheck the shared parallel-round caller with #727 after integration.

@Dong1017
Dong1017 merged commit 6ce6923 into main Nov 26, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:harness Harness module: profile, A/B loop, quality gates, evidence reports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants