Skip to content

Deduplicate candidate and sandbox validation - #1920

Merged
mergify[bot] merged 4 commits into
mainfrom
lean178/575-r58-sandbox-candidate-worktree
Nov 26, 2026
Merged

mergify[bot] merged 4 commits into
mainfrom
lean178/575-r58-sandbox-candidate-worktree

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Deduplicate candidate and sandbox validation

Context and goal

Refs #575.

Acceptance

  • Remove at least 20 counted source lines without changing behavior or touching tests.
  • Leave open PR hunks and the helpers they depend on intact.
  • Compare focused statement and branch coverage against the same main snapshot and run a full trusted check.

Base

main @ a472c8f
Base: a472c8f

Validation

Recorded for a5afd2392527

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

eowca and others added 2 commits November 26, 2026 15:01
Architecture-Review: unchanged; the predicates retain the same errors, isolation boundaries, and GitHub checks.
Co-Authored-By: Codex <noreply@openai.com>
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

The counted source delta is −24 and the test delta is zero against a472c8f9. The focused suites used the same tests and slotted coverage commands on both revisions.

File Covered statements before → after Covered branches before → after
candidate.py 309/319 → 307/317 61/66 → 61/66
sandbox.py 429/453 → 426/450 164/180 → 162/178
worktree.py 259/270 → 258/269 75/84 → 75/84

Each file kept the same number of missed statements and branches. No retained line or branch lost coverage. Both runs passed. The tested head is fd95e4f51ea1093d1fda935670bc5a7a45b90184.

I stopped at 24 lines because larger cuts would overlap pending worktree and sandbox changes or remove separate validation and cleanup cases. For example, #1779 adds a caller to the branch lookup helper.

@loopzero-feder-positronics loopzero-feder-positronics 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.

loopzero primary review by claude on fd95e4f51ea1093d1fda935670bc5a7a45b90184, 19.3s: approve (0 critical, 0 important, 1 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

Comment thread src/loopzero/sandbox.py Resolved
Architecture-Review: unchanged; this restores the original check settings branch.
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics 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.

loopzero delta review by claude on 66378ab6107b516e0f5215213193984f947c9fd9, 9.9s: approve (0 critical, 0 important, 1 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Findings without a file location:

  • suggestion: This refactor adds one counted line, which works against the line-reduction goal — The change keeps behaviour the same. It runs _runner_identity and _proc.build_env / check_environment under the same conditions as before. settings also gets its keys in the same order (runner_executable before environment), so settings_fingerprint output does not change. However, it turns the 2-line conditional expression into 4 lines, a net gain of +1 counted source line, while #575's goal is to recover counted lines. If having one runner branch is not needed for readability, revert to the conditional expression. If you keep it, check that the branch's total savings still reach the 20-line minimum.

Native Claude output is retained in the restricted local review receipt.

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Final head a5afd23925276f00fa073b28352a573ce70ef0f7 passed the full slotted check. The authored patch is identical to the approved delta after merging main. In the refreshed focused comparison, candidate covered 309/319 → 307/317 statements and 61/66 → 61/66 branches. Sandbox covered 429/453 → 427/451 statements and 164/180 → 162/178 branches. Worktree covered 260/271 → 259/270 statements and 75/84 → 75/84 branches. Neither run lost coverage on retained code, and the authored test delta is zero.

@eowca
eowca marked this pull request as ready for review November 26, 2026 14:43
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 5571483 at 14:50 UTC

5 min in the queue, 4 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 14:45 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1950
  • ✅ Merged 14:50 · 5571483 · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 5571483 into main Nov 26, 2026
13 checks passed
@eowca
eowca deleted the lean178/575-r58-sandbox-candidate-worktree branch November 26, 2026 14:51
@mergify mergify Bot removed the queued label Nov 26, 2026
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