Repository navigation
refactor(update): split update-runner into focused modules under the line limit - #110664
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 7:42 AM ET / 11:42 UTC. Summary PR surface: Source +75, Other -1. Total +74 across 11 files. Reproducibility: not applicable. This PR is presented as a behavior-neutral internal refactor rather than a report of broken runtime behavior. Review metrics: none identified. Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Refresh the branch against current Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is presented as a behavior-neutral internal refactor rather than a report of broken runtime behavior. Is this the best way to solve the issue? Unclear: splitting the oversized runner by execution phase is a plausible maintainable direction, but the final best-fix judgment depends on a refreshed comparison of the update, rollback, and doctor paths after rebasing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f98bcb7fa73c. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +75, Other -1. Total +74 across 11 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
ddfc85f to
a58435b
Compare
|
Merged via squash.
|
What Problem This Solves
src/infra/update-runner.tswas ~1930 lines with a grandfatheredmax-linessuppression - the second of the four oversized update/state modules being retired this week (after #110550 split its siblingupdate-command.ts).Why This Change Was Made
Behavior-neutral decomposition along the runner's real phase structure: a 104-line public facade (
update-runner.ts, unchanged export surface) dispatching into focused modules - shared contracts (-types, 152), command execution/progress (-command, 99), install/root discovery (-install-surface, 151), the git mutation/build/rollback flow (-git, 500), target resolution + disposable-worktree preflight (-git-preflight, 522), schema preflight + branch/tag metadata (-git-target, 107), git command policy (-git-commands, 141), the global package flow (-global, 170), and doctor policy (-doctor, 57). Suppression andconfig/max-lines-baseline.txtentry removed; no new suppressions. The recent schema-preflight logic moved intact with its phase.User Impact
None - internal module layout only.
Evidence
node scripts/run-vitest.mjs src/infra/update-runner.test.ts src/cli/update-cli.test.ts src/infra/update-check.test.ts: 288/288 green with only import/mock-path adjustments.pnpm check:test-types(Blacksmith Testbox run 29642211489),git diff --check: all green.