Repository navigation
refactor(update): split update-command into focused modules under the line limit - #110550
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 4:48 AM ET / 08:48 UTC. Summary PR surface: Source +291, Other -1. Total +290 across 8 files. Reproducibility: not applicable. This PR is a behavior-preserving refactor rather than a report of a failing user path. The remaining verification need is an after-fix operational update run, not reproduction of a pre-existing defect. 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:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the phase-based split, rebase it onto current Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a behavior-preserving refactor rather than a report of a failing user path. The remaining verification need is an after-fix operational update run, not reproduction of a pre-existing defect. Is this the best way to solve the issue? Yes in principle: separating the command by update phase is a maintainable way to retire the line-limit exemption. It is not ready to rely on until the split is demonstrated against real git/package update and service-recovery behavior. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 91ded689905b. Label changesLabel justifications:
Evidence reviewedPR surface: Source +291, Other -1. Total +290 across 8 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
Review history (1 earlier review cycle)
|
7a6e982 to
a3754e0
Compare
|
Merged via squash.
|
What Problem This Solves
src/cli/update-cli/update-command.tswas 1693 lines with a grandfatheredmax-linessuppression - the largest and most change-prone of the update surfaces (three separate feature rounds landed in it this week alone). Repo policy treats those suppressions as TODOs: split the file, remove the entry.Why This Change Was Made
Behavior-preserving split into focused siblings, each owning one phase of the update flow:
update-command-dry-run.ts(179, preview assembly),update-command-git.ts(219, git flow + schema guards),update-command-package.ts(208, package install/doctor pipeline),update-command-execution.ts(255, mutable-update/service-stop orchestration),update-command-post-update.ts(427, plugin convergence/restart/final output),update-command-resume.ts(106, fresh-process post-core resume), withupdate-command.ts(590) as the public entry and orchestrator. The suppression is removed and theconfig/max-lines-baseline.txtentry deleted (ratchet shrinks). No behavior, output text, or exit-code changes.User Impact
None - pure refactor of internal module layout.
Evidence
node scripts/run-vitest.mjs src/cli/update-cli.test.ts src/infra/update-check.test.ts src/infra/update-runner.test.ts: 288 passed, unchanged assertions (imports/mock targets follow moved code only).node scripts/check-deadcode-exports.mjs0 findings;pnpm check:test-typesgreen (Blacksmith Testbox);git diff --checkclean.