Repository navigation
Open
Labels
area:appsApps line: CLI, Python entrypoints, host inspection, workflows, views, and adaptersApps line: CLI, Python entrypoints, host inspection, workflows, views, and adaptersarea:benchmarkBenchmark line: preparation ports, metric contracts, validators, and isolated workersBenchmark line: preparation ports, metric contracts, validators, and isolated workersarea:harnessHarness module: profile, A/B loop, quality gates, evidence reportsHarness module: profile, A/B loop, quality gates, evidence reportskind:bugDefect report: an observable symptom that differs from expected behaviorDefect report: an observable symptom that differs from expected behaviorstatus:acceptedThe decision owner accepted it in a recorded commentThe decision owner accepted it in a recorded comment
Description
Current state: Accepted. A read-only repository review at main b781edc2 found the 13 bugs below, an incomplete runtime-identity list (X01) and a stale Harness README (DOC-01). Every item was rechecked at main ecd63513: either its code is unchanged since b781edc2, or the changed file was reread.
Decision needed: None for groups 1–3. The items under "Out of scope" each need their own decision.
Next action: Open PRs 1–3 under "Fix grouping". Each PR references this issue. Groups 4 and 5 follow when their dependencies land.
Goal and acceptance
- Problem / desired outcome: Each defect below is fixed on main, and each fix has a regression test.
- Completion criteria:
- Each fixed item has a regression test that fails on main before the fix and passes after it.
- The PRs that touch files listed in
_runtime_identity()change the identity only once. That PR adds a pre-change session fixture and a paired-wheel record, as in theharness/trialsrename. - Each PR merges with two independent approvals on its current head, all required checks green and a CLEAN merge state.
Verified defects
Links point to main ecd63513. Evidence levels:
- reproduced: a script showed the failure on Windows with Python 3.13.
- read: the code path was confirmed by reading it and its callers.
- reviewer repro: a reviewer script showed the failure, and the lead reread the code.
| ID | Location | Defect | Evidence |
|---|---|---|---|
| HC-01 | optimization.py#L676-L698, #L722-L724, optimization_session.py#L309-L316 | A benchmark or AB/BA session interrupted after pending is written but before an execution receipt exists cannot be settled. Two triggers: Ctrl+C, or an agent host killing the CLI on its tool timeout. evaluate_round catches only Exception. recover then refuses with "Execution record unavailable", and --cleanup-receipt is refused outside service-reuse. No CLI path ends the session. |
reviewer repro |
| HC-02 | optimization.py#L178, #L717 | When frozen inputs drift while a round is pending, status and recover call _load first, and _load raises. _settle, which is meant to record the drift as blocked, is never reached. |
reviewer repro |
| HC-03 | task_protocol.py#L149-L150, optimization.py#L683 | A task protocol that calls sys.exit() in arguments or assess is re-raised as SystemExit, which except Exception does not catch. The round stays pending, and every recover re-raises it. When the protocol calls a bare sys.exit(), the CLI exits 0 with no output. |
reviewer repro (end to end) |
| HC-04 | optimization.py#L183-L189 | In exact mode, after every round is done and time has entered the final reserve, status reports search_budget_exhausted_incomplete_session. can_finalize is true at the same time and final succeeds, so an agent that follows next_action stops without finalizing. |
read |
| HC-05 | optimization_session.py#L17-L27, #L91-L95 | runtime_environment() prepends the parent directory of the inferrsi package to the child PYTHONPATH. For a wheel install, that directory is the whole Harness site-packages. AB/BA project steps also receive it, although user commands never import inferrsi. When --python names another environment, packages from the Harness environment shadow the target's own. |
read (not run) |
| X01 | optimization_session.py#L114-L127, optimization.py#L13 | _runtime_identity() hashes a hand-kept list of 17 files. Files the session imports are missing from it, for example harness/records/evidence.py (imported at top level by optimization.py) and knowledge/_skill_selection.py (imported by the listed apps/workflows/campaign.py). After a change to one of these files, an old session resumes instead of being refused. |
reviewer repro |
| HX-02 | execution_service.py#L203-L209, #L273-L277 | Ordinary-mode validation only rejects identical path strings. Two failures follow. (1) If an output path equals an input path, a required output that the step never wrote is recorded available with the input's bytes. (2) Inputs data.txt and DATA.txt, or x and x/y, pass validation and then fail in materialization with ExecutionPersistenceError. The empty workspace is left behind, and a retry returns RecoveryRequired. Evaluation mode already refuses overlapping paths (prepared_binding.py). |
reproduced |
| HX-04 | input_binding.py#L44-L55 | When copy_stream cannot open its target with "xb" because the file already exists, its cleanup branch deletes that existing file, which it did not create. |
read; seen in the HX-02 repro |
| B1 | assessment.py#L410-L438, #L474-L482 | The P1 fixture assessor ignores the record's own status on the samples and cleanup checks. A check marked failed still gives claim M = PASS and eligibility eligible. The same change on the format check correctly gives INCONCLUSIVE. Scope: the fixture-assessor@1 protocol. |
reproduced |
| AVI-01 | dashboard.py#L348-L352, #L404-L411 | The service-reuse dashboard page lacks the generator meta tag. The writer refuses to overwrite a page without that tag, so the second inferrsi dashboard run fails with "refusing to overwrite an existing non-dashboard file". |
read; reviewer repro |
| AVI-02 | codex_search.py#L199-L213, #L231-L232 | Only [shell, -c|-lc|-ic|-ilc, script] is unwrapped. Commands such as bash -o pipefail -c "rg ..." or env bash -lc ... are classified as "no retrieval" with complete=True, so import-search --complete records complete coverage without those searches. |
read; reviewer repro |
| AE-02 | cuda.py#L38-L41, #L72-L74 | inspect_devices matches the device model as a case-insensitive substring, so --device-model L4 accepts an NVIDIA L40S and doctor reports available. qualify_devices in the same file uses a word-boundary match and rejects the same card. |
read |
| AE-03 | benchmark_compare.py#L333-L345 | compare --action status calls agent_sessions.status for every trial without error handling. One damaged or locked job fails the whole command, which breaks the documented resume path. report handles the same error per trial. |
read |
| AE-04 | delivery/__init__.py#L21-L25, #L277-L279 | after_final passes the unresolved --session path to the exporter, and the exporter rejects any symlinked ancestor. A session under a symlinked directory therefore commits final, but its delivery always fails. On macOS, /tmp and $TMPDIR are symlinked directories of this kind. The root cause does not depend on the OS. |
read |
| DOC-01 | harness/README.md#L5, #L23-L24 | The shipped Harness README still points extenders to scenarios/external.py and scenarios/media.py. The harness/trials rename missed this file. |
read |
Reported by reviewers, not yet rechecked by the lead (confirm in the fixing PR)
- HX-03: a NUL character in
argsmakesPopenraiseValueError, which escapesHarness.executeafter registration (local_process.py#L356). - AVI-04: the read agent calls
exposed_filesoutside itstry, somissing_taskandworkspace_symlinkemit noagent.failedevent (anthropic_agent.py#L459). - HX-05 (suspected, Linux):
_group_emptytreats unreaped zombies as live members, so a step that leaves a child behind records the process group as not empty when PID 1 does not reap.
Owner decisions (2026-11-23)
- Interrupted rounds (HC-01, HC-03). An interrupted round must never leave a session stuck. The rule is:
recoveralways settles the round and never relaunches it.- The round is recorded with outcome
interrupted. It is not adopted, and it uses its round slot. - When the process domain is confirmed empty, the session stays active and the search continues. Today the same case blocks the session.
- When cleanup cannot be confirmed (for example, the CLI itself was killed),
recoversays so and names the command that records a manual cleanup confirmation. After that confirmation, the session continues the same way. - A protocol
SystemExitis recorded as a protocol failure of that round. It is no longer re-raised past the round.
- CI path patterns. The knowledge path patterns that match nothing since Unify inference knowledge in skill_library with seven task routes and direct search #516 are fixed in the docs PR. The fix touches the required knowledge-model-policy check,
skill-eval-pr.ymlandtools/knowledge_declaration_paths.py, and changes only the patterns.
Fix grouping
- Harness session PR (changes the runtime identity once): HC-01, HC-02, HC-03, HC-04, HC-05 and X01, plus a pre-change session fixture and a paired-wheel record.
- Apps PR: AE-02, AE-03, AE-04, AVI-01, AVI-02 and AVI-04.
- Docs PR:
- DOC-01.
- Stale
model/andinfra/text inAGENTS.md,docs/architecture.mdanddocs/contracts/function-owners.md. - The CI path patterns above.
- Harness execution PR: HX-04 now. HX-02 and HX-03 wait until fix(harness): preserve evaluation limits and replay original attempts (PR-3) #564 and feat(harness): seal evaluation capture proofs before commit #567 land, because both edit
execution_service.py. - Benchmark PR: B1, after feat(benchmark): deliver the pinned CPU task after Apps integration #575 lands, because feat(benchmark): deliver the pinned CPU task after Apps integration #575 edits
benchmark/assessment.py.
Scope and constraints
- In scope / out of scope:
- In scope: the table above and the three reviewer-reported items once confirmed.
- Out of scope:
- Apps naming and layout (the
apps/views/writers, the twoevidencemodules, the twoexport_bundlefunctions), which are the Apps owner's call. - Benchmark crash semantics, where moe records FAIL and qwen21 blocks the session.
- Unlocked concurrent campaign record writes.
- Apps naming and layout (the
- Relevant dependencies, shared interfaces or limits (if any):
- The runtime-identity change means sessions started before PR 1 must resume with their own runtime.
- Group 4 depends on fix(harness): preserve evaluation limits and replay original attempts (PR-3) #564 and feat(harness): seal evaluation capture proofs before commit #567. Group 5 depends on feat(benchmark): deliver the pinned CPU task after Apps integration #575.
Ownership and authorization
- Proposed by / actual requester: Dong1017, from an agent-assisted repository review.
- Status: Accepted
- Accountable parent (Issue-level owner, if assigned): Dong1017
- Slice implementer(s) / acting contributor (if assigned): Dong1017's Claude Code session
- Goal-acceptance owner: Dong1017
- Accepted decision or scoped delegation: Groups 1–3 and the owner decisions above, accepted by Dong1017 on 2026-11-23 and recorded in this body.
Inputs and deliverables
- Relevant sources, revisions or linked issues: Review snapshot main
b781edc2; recheck at mainecd63513; task: renameharness/scenarios/to match its trial-execution role #558 (theharness/trialsrename); fix(harness): preserve evaluation limits and replay original attempts (PR-3) #564, feat(harness): seal evaluation capture proofs before commit #567, feat(benchmark): deliver the pinned CPU task after Apps integration #575. - Expected artifacts: Five PRs as grouped above, each with regression tests. PR 1 also carries the session fixture and the paired-wheel record.
Completion and closure
- Who accepts completion and may close: Dong1017
- Remaining uncertainty / next decision: The out-of-scope items above. Recheck the three reviewer-reported items in their fixing PRs.
Metadata
Metadata
Assignees
Labels
area:appsApps line: CLI, Python entrypoints, host inspection, workflows, views, and adaptersApps line: CLI, Python entrypoints, host inspection, workflows, views, and adaptersarea:benchmarkBenchmark line: preparation ports, metric contracts, validators, and isolated workersBenchmark line: preparation ports, metric contracts, validators, and isolated workersarea:harnessHarness module: profile, A/B loop, quality gates, evidence reportsHarness module: profile, A/B loop, quality gates, evidence reportskind:bugDefect report: an observable symptom that differs from expected behaviorDefect report: an observable symptom that differs from expected behaviorstatus:acceptedThe decision owner accepted it in a recorded commentThe decision owner accepted it in a recorded comment
Activity
Dong1017 commentedon Nov 23, 2026
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
Triage: scope, grouping and owner decisions hold up; settle two points before PR 1 (how
interruptedrelates to the fail-closed rule, and how later PRs avoid a second runtime-identity change). Dong-bot (authorized delegate); no decision needed from Dong1017.Open points:
interruptedvs. the safety invariant.optimization.pyL694-695 says a missing receipt must leave a blocked session that cannot claim cleanup. The owner decision reverses this once the process domain is confirmed empty. The "manual cleanup confirmation" command is not named: is it new CLI surface or--cleanup-receipt? How is "confirmed empty" established, so a killed CLI never takes the continue path?interruptedhandling does not change benchmark crash semantics (out of scope).input_binding.py,execution_service.pyin groups 4-5) change the identity again. Make the list import-derived, or require those groups to rebase on PR 1 with their own fixtures.Next step: a member comments
@Dong1017 claim <group>to start a group via the PR pool. PR 1 bundles five defects plus fixtures, so consider splitting it.Details
Rechecked on main (read only, nothing run):
optimization.pyL681-698 catches onlyExceptionand writes a syntheticerrorreceipt.recover(L722-724) raises "Execution record unavailable" when none exists.search_budget_exhausted_incomplete_sessiononce the reserve is spent and the mode is notup_to. This confirms the defect._runtime_identity()hashes the 17-file hand-kept list (optimization_session.pyL118-126).harness/scenarios/to match its trial-execution role #558 fixture and paired-wheel record as the precedent for PR 1.Dong1017 commentedon Nov 23, 2026
Accepted. PR 1 can proceed on the two open points. Group 1 stays one PR and one runtime-identity bump.
1.
interruptedand the fail-closed ruleoptimization.pyL694-695).recoverwrites no synthetic execution receipt and no cleanup receipt.recoveralways settles the round and never relaunches it.interrupted, not adopted, round slot used) only after a positive confirmation:recoverprocess observes that domain empty. That observation is the only automatic signal. A missing receipt, the syntheticerrorpath at L681-698, Ctrl+C, or the previous process exiting does not establish emptiness.recoverflag--confirm-domain-empty. It records the attestation, then uses the same continue path.recoverrefuses the flag while it still observes a live member of the recorded domain.recoverstays blocked, reports cleanup unconfirmed, and names--confirm-domain-empty. A killed CLI ends blocked. The nextrecovercontinues only after observed-empty or that flag.--cleanup-receiptstays the service-reuse receipt path and stays refused outside service-reuse.SystemExitis a protocol failure of that round: settled at the round boundary, not re-raised. It stays off the empty-domain continue path and off--confirm-domain-empty.blockedvia_settle.interruptedis the optimization-session settle path. Benchmark crash semantics stay out of scope (moe records FAIL, qwen21 blocks the session).2. Identity changes once
optimization_session.pyL118-126) with the import closure of the session runtime. One identity change in that PR, with the task: renameharness/scenarios/to match its trial-execution role #558 pre-change session fixture and paired-wheel record.input_binding.pyorexecution_service.pyis in the closure, and group 5 when its files are.Binding constraints
Next
@Dong1017 claim 1starts group 1 through the PR pool.Dong-bot (authorized delegate). Settled from the issue body and the triage notes.
Dong1017 commentedon Nov 23, 2026
Accepted. PR 1 can proceed on the two open points. Group 1 stays one PR and one runtime-identity bump, and stays unclaimed. The mention in the decision note names the start command; it does not open the group.
1.
interruptedand the fail-closed ruleoptimization.pyL694-695).recoverwrites no synthetic execution receipt and no cleanup receipt.recoveralways settles the round and never relaunches it.interrupted, not adopted, round slot used) only after a positive confirmation:recoverprocess observes that domain empty. That observation is the only automatic signal. A missing receipt, the syntheticerrorpath at L681-698, Ctrl+C, or the previous process exiting does not establish emptiness.recoverflag--confirm-domain-empty. It records the attestation, then uses the same continue path.recoverrefuses the flag while it still observes a live member of the recorded domain.recoverstays blocked, reports cleanup unconfirmed, and names--confirm-domain-empty. A killed CLI ends blocked. The nextrecovercontinues only after observed-empty or that flag.--cleanup-receiptstays the service-reuse receipt path and stays refused outside service-reuse.SystemExitis a protocol failure of that round: settled at the round boundary, not re-raised. It stays off the empty-domain continue path and off--confirm-domain-empty.blockedvia_settle.interruptedis the optimization-session settle path. Benchmark crash semantics stay out of scope (moe records FAIL, qwen21 blocks the session).2. Identity changes once
optimization_session.pyL118-126) with the import closure of the session runtime. One identity change in that PR, with the task: renameharness/scenarios/to match its trial-execution role #558 pre-change session fixture and paired-wheel record.input_binding.pyorexecution_service.pyis in the closure, and group 5 when its files are.Binding constraints
Next
Dong-bot (authorized delegate).
zengchuang-hw commentedon Nov 23, 2026
NO PASS
dot, acting for @zengchuang-hw. 仅针对第 1 组恢复契约补充验收,不否定已确认的故障或其余分组。方向正确:没有执行回执就不证明清理、recover 不重跑,只有正向确认后才恢复搜索。
请先明确无执行回执时的持久化和重复恢复。 当前 读取路径 会校验每轮的
execution/execution.json;如果按新决定把无回执轮次写入历史但不伪造执行/清理回执,读取和导出也要认识独立的恢复证据。用一条回归固定「子进程启动后控制端中断 → 首次 recover 只消耗一个 slot、保留 cleanup unconfirmed → status/再次 recover 可读且不重复记账 → 确认后恢复搜索」,全程不得重跑、采用候选或造回执。确认记录要绑定原 session/attempt;有活进程或证据含糊时保持阻塞。Windows 的进程域在现有代码中是进程内 Job 句柄,POSIX 进程组也不能只凭旧 PID 消失认定清空;没有可恢复的可信证明时,只走可追溯的人工确认。分开覆盖 final。 同一 pending 路径 也用于独立 final。请明确 final 中断后的终态,不能自动把它计成搜索轮、产出已通过的 final 或默默重跑。
独立静态核对了主干
3b1b4cebf0b2babba37758d3752aec59fdc9a41d的 pending/recover/回执读取、runner 进程域和已记录决定。未模拟真实终止、设备清理或运行 CI;未认领任何分组。