Repository navigation
Move managed sessions, budgets and recovery into Harness Manager - #741
Conversation
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author) Signed-off-by: dongxinwen <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author) Signed-off-by: dongxinwen <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author) Signed-off-by: dongxinwen <[email protected]>
Signed-off-by: dongxinwen <[email protected]> Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]> Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
|
Codex 代表 @Dong1017 提请复核 @amy-why-3459 请核对普通会话从 CLI 和直接 Manager 调用进入同一写入锁、两进程竞争时只有持锁者记 observation 和预算,以及 #705 显式续跑的请求身份。 @david6666666 请核对 service-reuse 的版本门槛、原 attempt 与服务身份匹配的清理证明、恢复只结算原轮次,以及静态指纹覆盖迁入 Manager 的路径。两个普通 CLI 已在此 wheel 实跑子进程,旧普通样本的八次查询与恢复均拒绝且文件逐字节一致。候选包的旧 schema 3 状态查询、版本错配拒写与同版本补证单次结算也已通过。请将正式评审提交到这个 head。接口时序 · P1 样本和校验清单 |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — DO NOT PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
Reviewed base 8e5cca9 and head 2723355. First review of this head, so there is no incremental range. This is a self-review: the PR author is Dong1017, so this COMMENT is not an independent approval.
Blockers
-
The diff is not complete.
pr/meta.jsonhasdiffComplete: false. The seededpr/diff.patchexceeded the read limit, and its stored copy could not be opened from this session. I therefore did not review the changed lines, and I cannot confirm which part is missing. The author should re-seed a complete diff for this head, or show that the missing part is covered, before any PASS. -
The exact-head installed checks are still pending.
pr/body.mdsays "Exact-head installed checks are being rerun from clean copies". No result for27233555862ee0bcd95c261bc51ba5a756909546is posted in the body or the thread. The result needs to be posted on this head. -
There is no independent approval on this head.
pr/prior-reviews.mdlists no formal reviews on this head and no outstanding CHANGES_REQUESTED. The author and the Codex-declared material author (knowledge-model-policyinpr/body.md) cannot supply an independent approval. The thread asks @amy-why-3459 (shared write lock, #705 request identity) and @david6666666 (service-reuse version gate, original attempt and service cleanup proof, fingerprint coverage) to review. Their formal reviews on this head are still needed.
Verified here
src/inferrsi/harness/README.mdL17-L18 and L123-L129 describe Manager as the entry point forrun_sessionand the service-reuse recovery path. Recovery checks the plan version before writing, and it matches the checkpoint and cleanup proof to the original attempt and service. This is documentation at the head, not a code check.src/inferrsi/harness/manager/__init__.pyL36 exportsrun_session, which is consistent with the body's entry-point claim.
Not verified here
- The changed code in the diff (see blocker 1).
- Tests, the wheel build and its SHA-256, the archive member check, the 13 frozen service-reuse cases, and the cross-process lock regression. I did not run any of them.
- The #702 issue body. The read output could not be opened from this session.
Scope: this review does not change the #702 scope or the final acceptance, which stay with Dong1017 (decisions.md, 2026-11-26T13:16:49Z).
Next step: I will re-read after the author pushes. Blockers 1 and 2 must be closed on the new head, and blocker 3 needs the reviewers' formal reviews.
Self-review: the PR author and the posting account are the same, so this review is not an independent approval.
Signed-off-by: dongxinwen <[email protected]> Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for zengchuang-hw.
首次独立检视 #702 的 P9,基线 8e5cca9 → eeeb33f。两个 CLI 共用 typed request 转换,Manager 接管生命周期,分流后仍由 Executor 执行、Evaluator 判定。8 个旧根模块已迁走;16 个改动的生产 Python 文件未发现仍依赖这些旧模块的入口。末次增量只改两份测试代码:锁回归参数换行,冻结包检查只在旧包校验分支动态读取旧入口,生产代码未变。
在隔离样本中运行实际 Manager 入口和 CLI 转换:8 种无效预算均未创建会话目录;旧指纹的 status/recover 在状态控制器调用前拒绝,文件不变;服务 status/resume 进入同一控制器。另用实际锁函数启动第二个 Python 进程,竞争同一锁时收到 EAGAIN,目录内容不变。与 P8 对照,清理回执身份检查、服务与普通结算、恢复及 round 的函数体除迁移 import 外保持一致。
未独立重建 wheel 或重放真实服务。此结论不替代 #702 要求的合入后 main wheel、旧样本与真实 CLI 回执。
|
Codex 代表 @Dong1017。@amy-why-3459 @david6666666 请复核当前提交 这一版修正了 Linux lint 发现的两个测试问题。原 P1 wheel 重新独立重放 6 次通过。当前正常 wheel 的 SHA-256 是 本 PR 有 46 个文件。GitHub 的文件列表可分五页读,每页最多十个。第 1 页 · 第 2 页 · 第 3 页 · 第 4 页 · 第 5 页 在有仓库访问权限的 checkout 中可按目录读取两个确定提交之间的完整补丁,保留重命名关系。 git fetch origin main refs/pull/741/head
git diff --find-renames --stat 8e5cca94b67b98089bf5b06703dd8d3b851bca4d eeeb33f5ffe989e88adaf4634d4a027fef9ee97e
git diff --find-renames 8e5cca94b67b98089bf5b06703dd8d3b851bca4d eeeb33f5ffe989e88adaf4634d4a027fef9ee97e -- src/inferrsi
git diff --find-renames 8e5cca94b67b98089bf5b06703dd8d3b851bca4d eeeb33f5ffe989e88adaf4634d4a027fef9ee97e -- tests
git diff --find-renames 8e5cca94b67b98089bf5b06703dd8d3b851bca4d eeeb33f5ffe989e88adaf4634d4a027fef9ee97e |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — DO NOT PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
Reviewed base 8e5cca9 and head eeeb33f (PTAL after the previous DO NOT PASS on 2723355). I did not separately verify the incremental range 2723355..eeeb33f. This is a self-review: the PR author is Dong1017, so this COMMENT is not an independent approval.
Blockers
-
The diff is not complete.
pr/meta.jsonhasdiffComplete: false. The seededpr/diff.patchis about 154 KB on one line, and I could not read its contents in this session. I therefore did not review the changed lines and cannot confirm which part is missing. Re-seed a complete diff for eeeb33f, or show that the missing part is covered, before any PASS. -
Installed checks are not posted for this head.
pr/body.md(Verification) says "Fresh installed runs on this revision are in progress." The 00:50Z trigger comment reports the wheel SHA-25655ef284898848ed4d60fcfa2b5382d19af23c36d5e94b2682a178181fc57be5cand says the CLI child-process runs and the frozen-package replays passed on that wheel. The record does not contain the per-check results for eeeb33f itself. Post those results with the head SHA and wheel hash.
Resolved or updated since the previous review
- Independent approval (previous blocker 3, partly):
pr/prior-reviews.mdshows @zengchuang-hw APPROVED on eeeb33f (2026-11-27T00:39:36Z). I weigh it as independent re-check evidence. Its own text says it did not rebuild the wheel or replay the real service. Formal reviews from @amy-why-3459 (shared session lock, direct Manager vs second CLI process) and @david6666666 (service-reuse version gate, original attempt and cleanup proof, fingerprint coverage) are still not in the record on this head. Both were asked for review in the thread. - Previous blocker 1 (incomplete diff) and blocker 2 (installed checks) remain open, as above.
Not verified here
- I did not run tests, installs, wheel builds or the real service, and I did not read the diff lines.
- I checked the layout at eeeb33f only:
src/inferrsi/harness/manager/contains_session.py,_runner.py,_round_budget.py,_attempt_recovery.pyand_service_backfill.py. - I have not confirmed the claim that the 8 retired root modules have no remaining callers.
Next step: once the author pushes a new head or re-seeds a complete diff, and the installed results for that head are posted, I will re-read the review record and the diff.
Self-review: the PR author and the posting account are the same, so this review is not an independent approval.
|
Codex on behalf of @Dong1017. The installed checks on I fetched all five pages of the GitHub files API (10 + 10 + 10 + 10 + 6). I applied the returned hunks for each of the 46 files to its named base Git blob, including all eight rename sources. All 46 outputs matched the destination blobs byte for byte. The diff contains 37 modifications, eight renames and one addition, 857 added and 449 removed lines. All eight old module names are absent in the installed wheel. An AST scan found zero imports of them in active Python source, examples, tools and tests. The independently frozen historical inputs are preserved. The per-file reconstruction receipt SHA-256 is Read the decision-bearing files separately or reproduce the complete diffThe links below open the individual PR diffs. The Git commands compare the pinned objects and show regular line breaks even when a review client truncates its aggregate patch.
git diff --find-renames --stat 8e5cca94b67b98089bf5b06703dd8d3b851bca4d eeeb33f5ffe989e88adaf4634d4a027fef9ee97e
git diff --find-renames 8e5cca94b67b98089bf5b06703dd8d3b851bca4d eeeb33f5ffe989e88adaf4634d4a027fef9ee97e -- src/inferrsi/harness/optimization_session.py src/inferrsi/harness/manager/_session.py
gh api --paginate 'repos/InferMatrixLab/InferRSI/pulls/741/files?per_page=10' --jq '.[] | [.filename, .sha] | @tsv' |
david6666666
left a comment
There was a problem hiding this comment.
LGTM
Dot, acting for @david6666666 (repository admin) under delegated independent InferRSI PR review and approval.
PR review verdict — PASS
Reviewed base 8e5cca94b67b98089bf5b06703dd8d3b851bca4d and head eeeb33f5ffe989e88adaf4634d4a027fef9ee97e for #702 P9. Advisory score: 86/100.
Evidence and scoring
- Scope 3/3: CLI adaptation and the direct typed entry share Manager lifecycle ownership without moving process execution or evaluation into Manager.
- Correctness 3/3: Traced ordinary fingerprint rejection, service version rejection before mutation, and cleanup proof binding to the original attempt and service. The matching proof settles the retained outcome once; repeat recovery does not relaunch or debit it again. The direct Manager and CLI contender use one session lock.
- Validation 3/3: On the pinned source, 44 focused CPU cases passed (one skipped), including lock contention, retention and recovery. Independently installed and replayed normal and frozen-version wheels outside source; the cross-version rejection and frozen service matrix passed, and wheel package payloads matched except generated version metadata. Both required Linux full and installed lanes passed on the exact head; both advisory hosts passed.
- Claim evidence N/A: No model performance claim. Simplicity 0/3: new or rewritten explanatory comments in repository test/check helpers trigger the rubric's hard zero.
Normal independently rebuilt wheel SHA-256: d6fc130c3e5392b86b54c4042ab90fa4fe95a46bb8b81f96356c456cd4e648d8; separately built frozen replay wheel: 6df8f8b77590e909de7e5fbacd39231717693e27f1981a60e74677faf4a89618. This vote does not substitute for the owner’s post-merge main-wheel and Issue acceptance checks.
Refs #702
Session ownership
Both CLI entry points now construct typed requests and call
inferrsi.harness.manager.run_session. The same public entry point accepts direct callers. Manager owns ordinary and service-reuse state, round budgets, cancellation, checkpoint recovery, agent session records and parallel round accounting. Apps supplies the knowledge reader, service-context collector and CLI presentation. The component package is the public import path. The migration guide maps the retired modules and their callers. Accepted design · Interface and sequence · Public importsA direct Manager round and a second, real CLI process contend for the same session lock in the new regression. The CLI contender is refused before it can change a session file. The lock holder commits one observation and the next CLI read sees that decision and budget. Separate regressions cover invalid budgets on direct entry, stale and duplicate receipts, and the distinction between settling a pending round and explicitly resuming after a final FAIL.
Verification
The base is the merged P8 commit
8e5cca94. The normal wheel built fromeeeb33f5ffe989e88adaf4634d4a027fef9ee97eis0.3.5.dev19+geeeb33f5, SHA-25655ef284898848ed4d60fcfa2b5382d19af23c36d5e94b2682a178181fc57be5c. Checked 1,037 archive members and read all seven registered D007 packs. The source archive SHA-256 isfea68986b9c98b181bdfa91853f7e0aa64985b7e23ba0cdbe6f5991c279e7cda.campaignandbenchmarks sessioneach launch real arguments, benchmark and assess children. Interrupted assessment runs once. Two historical ordinary sessions × both CLIs × status/recover yield eight fingerprint refusals with byte-identical files and zero launches.The overlap check found eight paths shared with #699 and seventeen with #709 against their current heads. The Manager migration includes the public callers, fixed documentation entry points and package checks affected by these moves. Codex implements and integrates on behalf of @Dong1017. P9 baseline · P8 integration