Repository navigation
Security update runs: planned by rule, verified in the sandbox, never stuck - #634
Merged
Merged
Conversation
… stuck A dependency fix run now plans its bumps by rule (urgent and reachable findings always; the lowest fixed version on each version line for the rest; majors only when an urgent finding needs one or no line fix exists and reachability is unknown; majors for findings that aren't reachable deferred with their reason). The sandbox applies each batch, writes the lockfile with the repository's own package manager and runs its checks; a red batch is halved until the breaking bump is found and deferred, the rest is committed green. The base branch's own failures are noted, never blamed. The coder only changes call sites of an urgent major, once. The bump list is the plan (no documentation tasks), a documentation task the ticket doesn't name never holds any run, a coder turn cut at the output limit before any call is nudged on, and a security run never ends needs_input: it ships what is green with every deferral and its reason. Budget per run (fix_run_budget_cents, default 300), checkpointed and resumable; cost reported per batch under What to check.
This was referenced Nov 12, 2026
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.
Summary
Security update runs are now planned by rule and proven in the sandbox before anything is pushed, and they never end by handing unfinished work to a person.
Two real bundle runs showed what went wrong:
needs_input. The lockfile was never written, and the branch's manifests didn't match it, so required CI checks failed.pnpm install --frozen-lockfile(ERR_PNPM_LOCKFILE_CONFIG_MISMATCH), because the lockfile is written only after the implement step. The migration was never built or tested, and the run finished red.Changes
common::dep_fix::plan). P0/P1 and reachable findings are always fixed. Every other finding gets the lowest fixed version on its own version line. A major goes in only when an urgent finding needs it, or when there is no fixed version on the line, reachability is unknown, and the policy isfix_in_pr. A major for a finding that isn't reachable or isn't loaded is deferred with its reason (for example "@x4 to 5 deferred: not reachable, and only a major version fixes it... it opens when it becomes reachable or urgent, or when a person asks for it"). The finding stays open and the reason shows as its wait. Each version line of a package is its own bump, routed through the lockfile it is installed in. Findings read only from the SBOM go through the root lockfile. A yarn lockfile takes one line per package. One run takes at most 6 majors; the rest wait for the next run.DepRun+passes::dep_fix):pnpm install --lockfile-only,npm install --package-lock-only,yarn). Then it runs the repository's checks: install plus type-check/build, CI's lint and format commands, and the unit tests.pnpm.overrides["pkg@4"], npmoverrides, yarnresolutions).plan_coverage::drop_non_core).completedwith every deferral listed. It never endsneeds_input.fix_run_budget_cents(default 300, max 5,000) for the coder's call-site work. Mechanical bumps use no model.later. The state is checkpointed per probe on S3, and a retry with more budget picks up only what is left.Verification
cargo test -p common --lib: 2,032 passed. Includes 25 newdep_fixtests:security_testdata/dep_fix_replay.json):dep_fix(the coder's narrow plan, the README-stall drop),plan_coverage, the output-limit nudge,security_fixes,generators,checks,steps.mainand pass here (see the run notes in the report).