Repository navigation
fix(upgrade): bare hanzo upgrade upgraded nothing - #97
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important customer upgrade fix. No current-head CI run returned for c6c6a78 and automated review failed due to quota. Please rebase onto current main and run workspace plus shipped CLI upgrade regression with current hanzo.sh catalog; verify unavailable tools cannot abort the entire default upgrade, explicit legacy names have clear guidance and failed upgrades report actual failures. |
Bare `hanzo upgrade` exited 1 and upgraded nothing: NATIVE still named "engine", hanzo.sh's installer refuses any name missing from its table, and the one installer call carried every name, so one dead name failed all. Split the plan by the installer's own table on both platforms: shipped names go to the installer, missing ones are reported by name, the rest still upgrade. A table that cannot be read is its own error, not "every name missing". Testing: cargo test --locked --bin hanzo upgrade::tests (12 pass; 3 fail on main), cargo clippy --locked --all-targets -- -D warnings. Risk: low. Unix now depends on table() reading hanzo.sh, as Windows already did. How to revert: git revert this commit.
|
Rebased onto
|
c6c6a78 to
c1d8df0
Compare
What a customer saw
On two Macs (CLI 8.5.929), bare
hanzo upgradeexited 1 and upgraded nothing:Both machines then sat 412 builds behind the API, so
hanzo link grantandagent coding create --dirdid not exist locally. That was root cause (a) of the Carbon District problem log (25 Nov 2026).Root cause
NATIVEinsrc/commands/upgrade.rsstill namedengine. hanzo.sh no longer ships it (unavailable_rows), andvalidate_wanteddies before installing anything when any name is missing fromTOOLS. Unix made one installer call with every name, so one dead name failed all of them, and the failure line then blamed every name.Fix
engineand thehanzo-enginealias are gone from the upgrade plan.shipped()splits the plan by the installer's own table (the existingtable()parser, which Windows already used). Names the installer lacks are reported by name; the rest still upgrade. Both platforms now share the one rule.Testing
cargo test --locked --bin hanzo upgrade::tests: 12 pass. Three of them fail onmain(or do not compile): the bare plan vs the live table,enginerefused as a name, and the split.cargo clippy --locked --all-targets -- -D warnings: clean.TOOLS(read 25 Nov 2026).Not tested
hanzo upgraderun on unix or Windows against the live installer.make test).Notes
cargo fmtalso touched two lines insidefetch()in the same file;main's copy was not rustfmt-clean.hanzo beat(OS_REASON_CODESIGNING); the launch agents neededlaunchctl kickstart -k. Cause not confirmed, so not changed here.Risk: low. How to revert:
git revertthe one commit.