Skip to content

fix(ablation): harness import path, cell fault-isolation, harness stats#3

Merged
michaeldtimpe merged 1 commit into
mainfrom
fix/ablation-orchestration-robustness
Jun 1, 2026
Merged

fix(ablation): harness import path, cell fault-isolation, harness stats#3
michaeldtimpe merged 1 commit into
mainfrom
fix/ablation-orchestration-robustness

Conversation

@michaeldtimpe

Copy link
Copy Markdown
Owner

Summary

Three bugs in the forge-hybrid agentic ablation tooling (shipped in f609edb), all surfaced by an end-to-end pre-flight smoke run before committing the M-host to the ~80-100h matrix. Each would have silently crippled the SWE-bench dimension.

# Bug Impact Fix
1 ablation_harness.py put only src/ on sys.path; run-by-path sets sys.path[0]=scripts/, not repo root ModuleNotFoundError: benchmarks — harness never runs, no scoring in any cell add REPO_ROOT to sys.path
2 cell ran benchmarks under set -e; maintain_suite returns rc=1 whenever the v1_release_gate (≥8/10) is unmet (run.py:1628) — expected for an ablation cell every cell aborts before SWE-bench fault-isolate all 3 steps (set +e + PIPESTATUS + log-and-continue)
3 stats print iterated run_harness's dict[str,HarnessResult] as a list of dicts AttributeError after scoring; nonzero harness exit .values() + dataclass attrs (mirrors write_harness_summary)

Also adds an ABLATION_OUT_ROOT override (defaults to the canonical path) so a smoke can exercise the real orchestration in isolation.

Verification

  • BFCL agentic 10/10 on both baseline and trajectory smoke cells
  • SWE-bench Docker harness scored end-to-end under Rosetta — astropy__astropy-12907 resolved, harness_summary.json correct, clean exit
  • Per-item resume cache confirmed live (BFCL per-problem, swebench per-instance, harness per-instance)
  • Fix TTL caches, session pruning, REPL split + LM Studio provider abstraction #2 matches ablation_run_all.sh's stated "partial data over no data" intent

Fixes are running in the live matrix now (working tree). This PR makes them durable + resumable on any host.

🤖 Generated with Claude Code

Three bugs in the forge-hybrid ablation tooling, all surfaced by an
end-to-end pre-flight smoke before the multi-day M-host run:

1. ablation_harness.py only put src/ on sys.path, so the top-level
   `benchmarks` package failed to import when run by path
   (sys.path[0] = scripts/, not repo root) -> ModuleNotFoundError:
   benchmarks. Add REPO_ROOT alongside src/.

2. ablation_run_cell.sh ran each benchmark under `set -e -o pipefail`.
   maintain_suite returns rc=1 whenever the v1_release_gate (>=8/10)
   is unmet (run.py:1628) -- an EXPECTED outcome for an ablation cell,
   which measures rather than gates -- so every cell aborted before
   SWE-bench. Fault-isolate all three benchmark steps (set +e +
   PIPESTATUS + log-and-continue), matching run_all.sh's stated
   "partial data over no data" philosophy.

3. ablation_harness.py stats print iterated run_harness's
   dict[str, HarnessResult] as a list of dicts (r.get(...)) ->
   AttributeError after scoring completed. Use .values() + dataclass
   attrs, mirroring write_harness_summary.

Also: ABLATION_OUT_ROOT override (defaults to the canonical path) so
smokes can run the real orchestration in isolation.

Verified: BFCL 10/10 both cells, SWE-bench Docker scoring end-to-end
(astropy__astropy-12907 resolved), clean harness exit, resume cache live.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@michaeldtimpe michaeldtimpe merged commit e9566ef into main Jun 1, 2026
@michaeldtimpe michaeldtimpe deleted the fix/ablation-orchestration-robustness branch June 1, 2026 14:45
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.

1 participant