fix(system-update): report and resolve updates truthfully - #61
Merged
Conversation
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.
What changed
Why
The AI check summary counted successful registry lookups as available updates. Separately, the stable npm lane passed an exact release inside
--min-release-age, causing npm to returnETARGETinstead of selecting the newest eligible Wrangler release. The repository index also carried a stale service-account status and telemetry measurement, and there was no single restart-oriented entry point for a fresh agent.Impact
Read-only checks now distinguish current channels from outdated ones. Stable npm updates retain the two-day safety window while completing successfully and disclosing when the installed release trails the inventory target. The AI channel cooldown and install-script identity gate are unchanged. The new handoff preserves external clone drift and operator-only work as evidence rather than implicit authorization.
Validation
tests/system-update/run.sh— 156 passed, 0 failedsystem-update --only npm-globals --no-plugins— Wrangler 4.118.0 to eligible 4.119.0, zero failuressystem-update --check— all steps successful in 36 seconds; all three AI channels currentscripts/validate-repo.sh— PASS after the final handoffchezmoi apply --dry-run --force— PASS after the final handoffRemaining boundaries
ng-doctor identitystill reports two failures across three external clones; this PR does not mutate them