Repository navigation
Harden SWE-bench deck drift guard and drop synthetic fixture - #123
Merged
Merged
Conversation
Address the four non-blocking Minors from the rossoctl#117 review (issue rossoctl#118), all test-hardening ahead of the baked-image task: - Drift guard now asserts each deck instance's (repo, env_key) as a pair via bake-list.envs, not repo and env_key independently. - bake-list.envs entries now assert repo matches the group's deck repo and that instance_image_key embeds the representative_instance_id (swebench maps "__" -> "_1776_" in image tags). - Add a reverse drift guard: no bake-list repo/env_key may be absent from the deck (catches stale extra entries). - Drop experiments/swebench/fixtures/verified-sample.jsonl (unused, synthetic SHAs, no offline generator path) and document the input JSONL shape in gen_swebench_deck.py's load_rows() docstring instead. Closes rossoctl#118 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses the four non-blocking Minors from the #117 review (Plan B Tasks 1–2). All test-hardening, landing before the baked-image task (Plan B Task 3) starts pulling by these keys.
Changes
Minor #1 — paired drift guard. The drift guard asserted
repos.has(inst.repo)andkeys.has(inst.env_key)independently, so a mismatched(repo, env_key)pairing would pass. It now asserts the pair together viabake-list.envs(env_key -> repo).Minor #2 —
bake-list.envs[]under-asserted. Added two assertions per env entry:envs[].repomatches the group's deck repo (a wrong repo now fails).instance_image_keyembeds therepresentative_instance_id. swebench maps__→_1776_in image tags (e.g.django__django-11555→…django_1776_django-11555…), so the check applies that transform.Minor #3 — reverse membership (
bake ⊆ deck). Previously onlybake ⊇ deckwas enforced. Added a reverse drift guard: nobake-listrepo/env_key/envs[].env_keymay be absent from the deck, catching stale extra entries.Minor #4 — synthetic fixture.
experiments/swebench/fixtures/verified-sample.jsonlused synthetic commit SHAs, was consumed by nothing, and could not drive an offline generator run (make_test_specresolves the per-repo environment atenvironment_setup_commit, needing a real cache or network). Enabling an offline dry-run would add aswebench+datasetsPython/network dependency to CI, contradicting the generator's stated design (CI structural tests need neither network nor Python). Per maintainer decision, the fixture is dropped and the input JSONL shape is documented ingen_swebench_deck.py'sload_rows()docstring instead.Testing
experiments/test/swebench-deck.test.ts: 5 passed (was 4; +1 reverse drift guard). Tests read only the committed JSON — no network, no Python.Closes #118
Assisted-By: Claude Code