Skip to content

Simplify the sandbox check loop after the source complexity audit #1694

Done

Description

@eowca

Part of #575. Ranked src/ at bf1002c2b7c1 by Ruff PLR0912 branch count, with function length breaking ties. C901 is included for comparison.

Function Branches Lines C901 Simplification and disposition
config._build 32 110 33 Top-level schema validation already guarantees list containers for the flat fields sent to _strings. Keep the shared validation for nested values and leave the config file to #1611.
cli.cmd_review 28 122 25 The repost-only empty reviews initializer can be localized to the saved-review path; preserve the recovery lookup timing. CLI changes overlap #1583, #1565, #1529, #1652 and #1663.
runners._codex_evidence 16 129 17 The requested-settings count is invariant across chunk iterations. Retain the current validation and error order while #1264 owns a patch in the file.
sandbox.run_checks 16 91 16 Write a checkpoint directly after appending a successful keyed stage. Remove the separate helper's recovery of the same stage and the fallback guard for an empty resolved result.
cli.cmd_merge 16 66 16 The wait budget guarantees a deadline in the positive-wait path. The Mergify and native admission branches need their separate outcomes. CLI changes overlap parked work.

Ship the largest proven cut in the eligible check path. The 40-line target is aspirational given the four file exclusions. Preserve checkpoint timing, the incomplete marker, reusable unvisited stages, fallback verdicts, and preflight behavior. Add no configuration or state. Use the focused sandbox, stage-runner and interruption tests, then run the full local check and report source-line savings on #575.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions