Skip to content

refactor(reporting): share one reviewer runner and esc helper - #146

Merged
lanyue-llk merged 6 commits into
mainfrom
refactor/shared-reviewer-runner
Nov 3, 2026
Merged

lanyue-llk merged 6 commits into
mainfrom
refactor/shared-reviewer-runner

Conversation

@lanyue-llk

@lanyue-llk lanyue-llk commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What, why and how of this PR

Issues

Closes #148.

Part of #102, which is closed, and part of the refactor roadmap #87. Its remaining work moved to #156.

This PR does the reviewer runner and the esc() helper only. These items remain, tracked in #156:

  • the shared publish orchestration (web_fetch/report_publish.publish as harness/reporting/publish.py)
  • the one release-check base
  • the one HAR recorder

Summary

The new harness/review_runner.py holds the wait, kill and reap logic. Callers pick behaviour by choosing one of two entry points. It extends the more complete Web Search implementation.

Caller Entry point Session On timeout Input and output
web_fetch/review_execution.py (blind batches, anomaly groups, content packets) run_reviewer Shares the terminal's session, so Ctrl-C still reaches the child Kills the direct child only, as subprocess.run did Captured text, or a log file for content packets
web_search/review.py ReviewerSessions Own session Kills the whole process group Stdin payload, log files, allowlisted environment

ReviewerSessions also keeps the Web Search cancellation contract: starting and stopping share one lock, so a late worker cannot start a child and cancellation cannot miss one.

These stay with their callers because only one caller uses each, or because they are bound to receipts:

  • the Web Fetch protocol-retry loops
  • the Codex and Claude command lists
  • Web Search's isolated CODEX_HOME setup

esc() now lives in harness/reporting/presentation.py, and every caller imports it from there, including web_fetch/report_changes.py, web_fetch/report_components.py and the tests. The two old helpers differed only for None: Web Fetch rendered an empty string and Web Search rendered the literal None. The shared helper takes a none= parameter, and Web Search binds none="None" in web_search/report.py and web_search/comparison.py. The comparison renderer held a second copy of the old Web Search body; it cannot import from report.py because that would be circular.

Direct standard-library html.escape calls elsewhere in the two tracks stay as they are, since they are not esc() helpers. The wrapper inside render_pricing also stays, because it adds English translations around the esc it receives. No test fixture passes None to Web Search esc, but real report data was not checked, so the old rendering is kept. Whether to drop it is a separate decision.

The issue cites web_fetch/review_execution.py:590-660, but that file has three call sites. All three are swapped.

Hash-bound files edited

Edited file Bound by Effect
web_fetch/review_execution.py review-session.json implementation_sha256, compared exactly when a review workspace resumes A review workspace started on the old bytes must use a new review directory. I compared all 10 review workspaces in my local data home with the base commit's hash. None match, because earlier refactors already changed the file, so no local resume is lost. A workspace in progress on another machine would be stopped.
web_fetch/review_execution.py, web_fetch/report.py runtime_source_sha256, a stamp over every web_fetch/*.py Only new run manifests change. The stamp is compared between stored documents, not with live source, so stored evidence still verifies. A cohort whose physical segments span this change would fail its existing segment-consistency check, as with any web_fetch edit.
web_fetch/report.py presentation_refresh.renderer_sha256 The next build refreshes all result detail pages, as with any report.py edit.
web_fetch/report_changes.py, web_fetch/report_components.py runtime_source_sha256 Same effect as the row above. Neither file is in implementation_sha256 or any other named source list.
web_fetch/report.py rescoring source_sha256 audit stamp Only new rescoring audits change. The value is not compared later.
web_search/report.py manifest.json renderer_sha256 Golden snapshot change, explained below.

Not edited, or not bound:

  • web_search/review.py and web_search/comparison.py are not in collection_implementation, so collection resumes are unaffected. Neither web_search/runner.py nor any other file in that list was edited.

Added to a binding: harness/review_runner.py is now a fifth entry in review-session.json implementation_sha256. The reviewer process code was bound while it lived in review_execution.py, and the web_fetch README requires a new work directory when the review implementation changes. New session receipts therefore gain one key. Receipts already on disk are affected no further, because the edit to review_execution.py already rejects them. A new test changes only the runner's hash and checks that resume is rejected before any work is touched, in both the blind and anomaly phases.

No evidence, frozen profile or stored receipt was rewritten.

Golden snapshots

One route changed: web-search manifest.json, because it records renderer_sha256 of the edited report.py. The review-round commits did not change any snapshot. Putting the base commit's hash back into the new manifest reproduces the old golden hash exactly, so that is the only byte change. No HTML route changed. All other report snapshots are unchanged.

Test plan

  • Lint gate: both ruff commands pass.
  • New tests/test_review_runner.py: uses real child processes. It compares results, the timeout message and log-file output against subprocess.run, and checks direct-child versus group kill, reaping, and refusal of late starts. It also checks non-timeout interruption: a KeyboardInterrupt in run_reviewer kills and reaps the child, and an OSError in ReviewerSessions.communicate kills the whole group and propagates the same error.
  • Updated tests: tests/test_report_presentation_contract.py now pins each track's None rendering. In tests/test_review_execution.py, the "no reviewer calls" guards now patch subprocess.Popen, which also catches subprocess.run. In tests/test_webmainbench_content_review.py, the fakes now target run_reviewer.
  • Paired base-versus-branch runs: a one-off script, not committed, ran the base commit's modules and this branch against the same fake reviewer executables in the same directory. All 11 scenarios match on outcome, call count and every output file. The script normalizes PIDs, timestamps, the whole implementation_sha256 block (which differs by design) and the sub-second jitter in the timeout message.
    • Web Fetch blind batches: success, non-zero exit, timeout with retries, bad JSON
    • Web Fetch content packets: success, non-zero exit, bad JSON
    • Web Search receipts: completed, failed, timeout, cancelled
  • Not paired: the anomaly-group call site and the Web Fetch content-packet timeout (fixed at 3600 s). The anomaly site passes the same arguments as the blind-batch site. Claude reviewer mode was also not paired. It uses the same call, and only its command list and output parsing differ, both unchanged.
  • Local full suite (macOS, excluding real_smoke): 66 failed, 19239 passed, 55 skipped. Re-running the failing test files at the base commit also gives 66 failures, with no test failing only on this branch. 15 are on the known local list. The one sampled from the rest fails on a local dataset lock error (Historical benchmark source is not recorded in the dataset lock); the others were not inspected individually.
    This full run was on the first commit. After the second commit (the runner binding), I re-ran lint, the review tests, the golden snapshots and the paired runs locally, and all pass.
  • CI (Linux, latest commit): "Tests and static checks", "Installation and packaging" and "Rendered reference and report checks" all pass.
  • Review round 1 commits: lint passes. tests/web_search, tests/test_report_*.py, tests/test_public_report_language.py and tests/test_golden_reports.py give 1105 passed, 1 skipped, with golden snapshots unchanged. The full local suite was not re-run after these commits. A new test in tests/web_search/test_comparison.py pins the comparison renderer's escaping, including a None label. It also passes on the old lambda, which shows the bytes are the same.
  • Commits 0367a51d (the two non-timeout kill tests) and 0e74faff (the architecture row), run at 0e74faff: both lint commands pass. tests/test_review_runner.py, tests/test_documented_paths.py, tests/test_review_execution.py, tests/test_webmainbench_content_review.py and tests/test_golden_reports.py give 101 passed, with golden snapshots unchanged. Mutating the except BaseException clause in _communicate, with each mutation reverted afterwards: except subprocess.TimeoutExpired makes both new tests fail (2 failed, 7 passed in tests/test_review_runner.py), and except Exception makes the KeyboardInterrupt test fail (1 failed, 8 passed). The full local suite was not re-run after these commits; CI on 0e74faff is the full-suite result.
  • Automated review: OCR raised one finding on the first commit, that the runner was missing from the workspace identity. The second commit fixes it, and the re-review reports 0 findings.

@lexmount-ocr lexmount-ocr Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Review complete · 8c55a56

This review found 1 issue(s), including 1 blocking issue(s).

from lexbench_webfetch.paths import contained_path, safe_identifier

from harness.record_io import file_sha256, load_jsonl, parse_jsonl, write_json
from harness.review_runner import run_reviewer

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

bug · medium
P2: Include the extracted runner in the review workspace implementation identity. bind_review_workspace() still hashes only the four original modules, although execution now depends on this import. Consequently, changing review_runner.py alone leaves review-session.json unchanged and permits reuse of judgments across different runner implementations. This weakens the documented contract in web_fetch/README.md:387–391 that changed review implementations require a new work directory; the changed hash of review_execution.py only invalidates pre-refactor workspaces once. Add the runner module to implementation_sha256 and a resume regression test that changes only its hash and verifies rejection before outputs are reused.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Re-review complete · fe299d1

No findings in this incremental review.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 1

Reviewed head fe299d18. No correctness regression found in the runner swaps. There are three findings on scope and issue tracking.

Findings

P2: src/harness/web_search/comparison.py:205 keeps a second copy of esc().
e = lambda value: html.escape(str(value), quote=True) has the same body as the old Web Search esc. #148 requires that no second copy remains in the two tracks.
Fix: use harness.reporting.presentation.esc with none="None", which keeps the rendered bytes. Importing from web_search/report.py would be circular, because that module imports comparison.

P2: PR body, "## Issues" points only at closed #102.
#102 was closed by #144, and its remaining work moved to #156. #148 is the open issue for exactly this step and is not linked, so merging will not update #148 or its checkbox in #156. The list of work that "remains" under #102 is tracked in #156.
Fix: link #148 (Closes only once its acceptance is met, including the first finding) and point the remaining items at #156. The workflow brief for this step said "Part of #102", so the orchestrator should confirm the wording.

P3: src/harness/web_fetch/report_changes.py:132,170 and src/harness/web_fetch/report_components.py:508 still import esc through harness.web_fetch.report.
tests/test_report_method_registry.py:41,109 and tests/test_public_report_language.py:37 do the same. #148 asks to migrate callers with no aliases, and these now rely on a name that report.py only re-exports.
Fix: import esc from harness.reporting.presentation directly.

Verified

  • run_reviewer against subprocess.run, by reading the code: same kill and wait on timeout, same handling of other exceptions, same CompletedProcess fields and same inherited stdin. text=True is new at the content-packet site, but it has no effect there because that site opens no pipes.
  • ReviewerSessions against the old Web Search code, by reading the code: same lock around start, same group kill, same status transitions. The one difference is that a ProcessLookupError during a timeout kill in a worker is now swallowed, which is harmless.
  • esc(): both tracks produce the same bytes as before, including for None.
  • Bound files: the base-commit SHA-256 and blob hashes of the five edited source files do not appear anywhere in the repository. web_search/review.py and presentation.py are not in collection_implementation.
  • Local checks: both ruff commands pass. tests/test_review_runner.py, test_review_execution.py, test_webmainbench_content_review.py, test_report_presentation_contract.py, web_search/test_review_runtime.py and test_golden_reports.py gave 82 passed.
  • CI on this head: all checks pass, including "Tests and static checks" and "Installation and packaging".

Not verified

  • Test strength: a mutation run against the call sites and the runner had not finished when this review was written, so I make no claim about whether the tests catch those changes.
  • Golden manifest: the golden test passes and only manifest.json changed, but I did not recompute the claim that restoring the base hash reproduces the old value.
  • Paired runs: I did not rerun the paired base-versus-branch scenarios, and the script is not committed.
  • Local workspace comparison: I did not reproduce the comparison of local review workspaces with the base hash.
  • Local full suite: I did not rerun it.

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review round 1 follow-up. All three findings are fixed and none are disputed.

Hash bindings: the two web_fetch files fall under the runtime_source_sha256 stamp, as the earlier edits do, and the PR body table now lists them. web_search/comparison.py is not in collection_implementation. No golden snapshot changed.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Review complete · 86147af

No findings in this review.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 2

Reviewed head 86147af4. I found no correctness regression, and all three round 1 fixes hold. There are two P3 findings: one test gap and one documentation gap.

Findings

P3: src/harness/review_runner.py:29: the non-timeout kill branch has no test.
_communicate catches BaseException, which matches the except: branch in subprocess.run and is what kills a reviewer on an interrupt or an OSError. I changed it to except subprocess.TimeoutExpired and tests/test_review_runner.py, tests/web_search/test_review.py, tests/web_search/test_review_runtime.py and tests/test_review_execution.py all still pass (113 passed).
The branch matters most for ReviewerSessions. web_search/review.py treats OSError as a recorded failure, while communicate's finally has already removed the process from _running. Without the kill, the reviewer group would keep running and stop() could no longer reach it. #148 asks for kill handling to be covered at the public boundary.
Fix: add two tests. In the first, Popen.communicate raises KeyboardInterrupt under run_reviewer, and the child must end with returncode -9. In the second, it raises OSError under ReviewerSessions.communicate, the error must propagate and the child must end with returncode -9. A throwaway version of both passed on this head and failed under the mutation above.

P3: docs/architecture.md:67: the new shared owner is not in the table.
The "Shared owner or boundary" table tells contributors which module to extend, and harness/review_runner.py is now shared by two tracks but has no row. trajectory_replay/public_webarena/diagnostics.py also launches codex and is outside this PR's scope, so another reviewer call site could plausibly be added without anyone finding this owner.
Fix: add one row, for example | Independent reviewer subprocess execution | src/harness/review_runner.py |.

Verified

Round 1 fixes

  • web_search/comparison.py now uses the shared esc.
  • An AST scan of src, tests and scripts finds no esc import through harness.web_fetch.report and no .esc attribute access. The only import from harness.web_search.report is the test that pins that track's None rendering.
  • The only remaining function named esc is the render_pricing translation wrapper, which the PR body discloses and which delegates to the esc it receives.
  • Closes #148 matches that issue's acceptance, apart from the test gap above. #156 is open and is the follow-up for the remaining items.

esc bytes

  • Web Fetch: html.escape already defaulted to quote=True, and None still renders as an empty string.
  • Web Search: None still renders as the literal None, and the escaping is unchanged.

run_reviewer compared with subprocess.run, by reading the code

  • The result fields, the direct-child kill and wait on timeout, and the kill on other exceptions all match.
  • The added text=True has no effect at the content-packet site, which has no pipes.
  • The subprocess.check_output at review_execution.py:735 only reads --version, so it is not a fourth reviewer call site.

ReviewerSessions compared with the old web_search/review.py code, by reading the code

  • Popen still runs under the lock, and the stopping flag still flips under the lock before the running set is snapshotted.
  • The receipt fields and their write order are unchanged.
  • The interrupted versus failed selection is unchanged.
  • There are two intended small differences. A process is removed from tracking right after communicate instead of after result parsing, which has no effect because stop() skips exited processes. ProcessLookupError is now tolerated on the timeout path, where it would previously have propagated.

Hash bindings

  • collection_implementation lists no edited file.
  • No __file__ or with_name binding names presentation.py, report_changes.py, report_components.py, comparison.py or web_search/review.py.
  • review_runner.py is in implementation_sha256, and removing it makes the new resume test fail.

Mutations that the existing tests caught

  • Killing only the group leader
  • Not tracking started processes
  • Not starting a new session
  • Removing sessions.stop()
  • Removing the interrupted status
  • Removing the runner from the binding

Removing process.wait() from _kill_child also passes, but that is not a gap, because Popen.__exit__ reaps the child.

Local gates

  • Both lint commands pass.
  • tests/test_review_runner.py, tests/test_review_execution.py, tests/test_webmainbench_content_review.py, tests/web_search, tests/test_golden_reports.py and the esc caller test files give 721 passed. I did not run the full local suite.
  • Golden snapshots are unchanged by the round 1 commits. The only snapshot change in this PR is the one web-search line the PR body explains.

CI on this head

  • "Tests and static checks", "Installation and packaging", "Rendered reference and report checks" and "Python 3.11" all pass.
  • The PR is mergeable, and its base equals the current main.

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review round 2 fixes. Both findings are fixed; none are disputed.

  • 0367a51d adds two tests to tests/test_review_runner.py for the non-timeout kill branch. With Popen.communicate raising KeyboardInterrupt under run_reviewer, the child ends with returncode -9. With it raising OSError under ReviewerSessions.communicate, the same error propagates, the reviewer ends with returncode -9 and its grandchild is gone, so the whole group was killed. Both tests fail when except BaseException is narrowed to subprocess.TimeoutExpired, and pass on the actual code.
  • 0e74faff adds a row for src/harness/review_runner.py to the shared-owner table in docs/architecture.md.

No runtime code changed, so no hash-bound source list is affected. Locally, ruff passed, and tests/test_review_runner.py, tests/test_golden_reports.py, tests/web_search/test_review.py, tests/web_search/test_review_runtime.py, tests/test_review_execution.py (125 passed) and tests/test_documented_paths.py (27 passed) all passed.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ℹ️ Review skipped · 0e74faf

No reviewable content was selected for this run.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 3

Reviewed head 0e74faff, based on current main 335217ee. I found no correctness, scope or AGENTS.md defects in the code. There is one P3 finding, in the PR text.

Findings

P3: PR body, "## Test plan". The plan stops at the round 1 commits. It does not mention 0367a51d (the two non-timeout kill tests) or 0e74faff (the architecture row), and the tests/test_review_runner.py bullet still lists only the original coverage.

Suggested fix: add one bullet saying what was run on these two commits and its results, including the mutation result for narrowing the except clause. No code change is needed.

What I verified

Reviewer runner

  • run_reviewer matches CPython 3.11 subprocess.run for the three old call sites: arguments, CompletedProcess fields, TimeoutExpired and kill then reap. The added text=True at the content-packet site has no effect, because that site's output goes to a log file and communicate returns None.
  • ReviewerSessions matches the old Web Search code for start refusal under the lock, the poll() guard before killpg, and the status and return code written to receipts.
  • Three differences are stricter than the old code, and none changes a receipt on a normal path:
    • A ProcessLookupError during a timeout kill is now swallowed.
    • A non-timeout BaseException now kills the group.
    • The process leaves the running set as soon as communicate ends, which is safe because it has already exited or been killed.
  • A text.encode() failure can no longer reach the kill handler, because it is now evaluated outside the runner. This is not a regression: the same expression already runs earlier, when input_sha256 is computed, so it fails before any child starts.

esc()

  • Bytes are unchanged for both tracks, including None (empty in Web Fetch, literal None in Web Search).
  • No esc definition or lambda copy remains in either track. The only other esc is the translation wrapper in render_pricing, which adds behaviour around the helper it receives.
  • No import of esc through harness.web_fetch.report turned up.

Hash bindings

  • collection_implementation lists none of the edited files.
  • implementation_sha256 has the stated five entries, and no other code in web_fetch reads its keys.
  • runtime_source_sha256 globs only web_fetch/*.py, as the PR describes.
  • No file under evaluation/, research/ or scripts/, and no workflow, is changed.

Scope

  • Closes #148 holds: its three acceptance items are met.
  • The publish orchestration, release-check base and HAR recorder are untouched and listed as remaining.

Tests

  • Both lint commands pass.
  • tests/test_review_runner.py, test_review_execution.py, test_webmainbench_content_review.py, web_search/test_review.py, web_search/test_review_runtime.py, web_search/test_comparison.py, test_report_presentation_contract.py, test_report_method_registry.py, test_report_methods.py, test_report_pricing.py, test_public_report_language.py and test_golden_reports.py: 292 passed. Golden snapshots are unchanged by the latest commits.
  • Mutation: narrowing except BaseException to subprocess.TimeoutExpired fails exactly the two new tests.
  • tests/test_review_runner.py passed three more times in a row with no flakes.
  • I did not run the full local suite and relied on CI for it.

CI

  • Run 41619751880 is on head 0e74faff and concluded success. "Tests and static checks", "Installation and packaging" and "Rendered reference and report checks" all pass.
  • The PR is mergeable.

PR hygiene

  • Commits have no attribution trailers.
  • The diff has no local paths or usernames.

@lanyue-llk

Copy link
Copy Markdown
Contributor Author

Review round 3: the one finding is fixed, and none are disputed. This was a PR body change only, so there is no new commit and the head stays at 0e74faff.

Fixed (P3, test plan):

  • The test plan now has a bullet for 0367a51d and 0e74faff, covering what I ran at 0e74faff and the results.
  • Lint passes. The runner, documented-path, review execution, content review and golden snapshot tests give 101 passed, with snapshots unchanged.
  • Narrowing the except BaseException clause in _communicate is caught by the new tests:
    • except subprocess.TimeoutExpired fails both new tests (2 failed, 7 passed in tests/test_review_runner.py).
    • except Exception fails the KeyboardInterrupt test (1 failed, 8 passed).
  • The tests/test_review_runner.py bullet now also lists the non-timeout interruption coverage.

The full local suite was not re-run after these commits, so CI on 0e74faff is the full-suite result.

@lanyue-llk lanyue-llk left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Independent review, round 4

Reviewed head 0e74faff. No defects found. This round made no findings at any severity.

What I verified

Runner semantics, compared with the old code

  • run_reviewer against CPython's subprocess.run: same Popen options, timeout path (kill, wait, re-raise), result fields and with cleanup. The content-packet site now passes text=True, but it has no pipes (stdout=log, stderr=STDOUT), so nothing is decoded and the log bytes do not change. The non-timeout path now waits inside the except instead of in __exit__, which changes only the order.
  • ReviewerSessions against the old web_search/review.py block:
    • The start options and environment are the same, and the start still happens under the lock with the late-start refusal.
    • stopping is still set under the lock, and interrupted receipts are still written.
    • The process now leaves the running set when communicate ends rather than after post-processing. By then the leader has exited, and the old poll() guard skipped those processes anyway, so stop() behaves the same.
    • A failed save() between start and communicate still leaves the process in the running set, so stop() still kills it.
    • Two differences are strict hardening: ProcessLookupError is now swallowed on the timeout path, and a non-timeout BaseException now kills the group.

esc

  • The body matches both old helpers. Web Fetch rendered None as an empty string with default quote=True. Web Search rendered it as None, and now binds none="None" in report.py and comparison.py.
  • An AST scan of src, tests and scripts finds no esc import through harness.web_fetch.report. The one import from harness.web_search.report is the test that pins that track's binding.
  • The remaining def esc in the two tracks is the render_pricing translation wrapper, which the PR body discloses. The one in environments/webarena/map_detail.py is outside the two tracks.

Hash bindings

  • implementation_sha256 gains review_runner.py, and the changed-runner test rejects resume with the workspace untouched.
  • web_search/review.py, web_search/comparison.py and reporting/presentation.py are not in collection_implementation or any other named source list I could find.
  • The assessment revision's implementation_sha256 hashes lexbench_websearch/*.py, which this PR does not edit.
  • git diff shows no change under evaluation/, research/, configs/ or .github/.

Golden snapshots

  • Only the web-search manifest.json hash changes, as the PR explains. tests/test_golden_reports.py passes.

Local runs on this head

  • Both lint commands pass.
  • tests/test_review_runner.py, test_review_execution.py, test_webmainbench_content_review.py, web_search/test_review.py, web_search/test_review_runtime.py, web_search/test_comparison.py, test_report_presentation_contract.py, test_documented_paths.py and test_golden_reports.py give 183 passed.
  • I did not run the full suite locally; CI on this head is the full-suite result.

Mutations (each reverted afterwards; all detected)

Mutation Failing tests
Session path kills only the direct child 2
Foreground path kills by group 1
start_new_session removed 4
sessions.stop() removed from run 2
stop() no longer sets _stopping 3
Interrupted status dropped 1

Noted, not a finding

  • Removing cwd=work from the blind-batch call site fails no test in tests/test_review_execution.py or tests/test_review_result_anomalies.py, so those two files do not execute that call path with a reviewer. I did not run this mutation against the base commit, but the swap keeps the argument visibly unchanged, and the PR's paired runs covered this site. The runner itself is tested at its public boundary, as #148 asks.

Scope

  • Closes #148 holds: the runner and esc each have one owner in the two tracks, and timeout and kill behaviour are tested at the public boundary.
  • The publish orchestration, release-check base and HAR recorder are untouched and listed as remaining in #156.

CI on 0e74faff

  • "Tests and static checks", "Installation and packaging", "Rendered reference and report checks", "Python 3.11", "Select check scope" and "OCR dispatch" all succeeded. The PR is mergeable and clean against main 335217ee.

lanyue-llk added a commit that referenced this pull request Nov 3, 2026
@lanyue-llk
lanyue-llk merged commit 7cc179f into main Nov 3, 2026
7 checks passed
@lanyue-llk
lanyue-llk deleted the refactor/shared-reviewer-runner branch November 3, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Share one reviewer subprocess runner and esc() helper

1 participant