Repository navigation
fix(update): reject mixed-case main package targets - #191994
Conversation
Share package target admission with Windows recovery guidance and remove the retired bare-main GitHub package translation. Keep explicit Git and artifact specs intact. Release note: package-installed updaters now reject MAIN, Main, and openclaw@MAIN with the same supported dev-channel guidance as main. Existing installed updaters need this CLI change before they benefit.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review Please review head |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesReject mixed-case main package targets, remove their obsolete GitHub translation, and give Windows users supported dev-channel guidance. Example: A package-installed user runs openclaw update --tag MAIN --yes --json.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR completes the existing main-target refusal with a focused fix; no actionable defect was found, and current-head CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe update CLI normalizes target input, selects package or Git installation, and admits supported targets before metadata lookup, staging, and activation. flowchart LR
A[Update CLI input] --> B[Normalize target and select channel]
B --> C[Package target admission]
C --> D[Structured refusal and dev guidance]
C --> E[Metadata and package staging]
B --> F[Git checkout and build flow]
Technical reviewBest possible solution: Use the shared classifier at admission and Windows guidance while retaining explicit package specs and the existing Git/dev owner. Do we have a high-confidence way to reproduce the issue? Current main visibly admits MAIN through its case-sensitive refusal and then recognizes it in the obsolete case-insensitive package translation; no target code was executed during this review. Is this the best way to solve the issue? The patch is the smallest complete fix: reuse one classifier, remove its obsolete translation, and correct the affected guidance without changing explicit-spec or Git/dev contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 45c571ed441b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -3, Tests 0, Other +15. Total +12 across 10 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed November 3, 2026, 11:56 AM ET / 16:56 UTC (Revision 3). |
Lower the counted-name budget after retiring the main package-spec constant. Share Windows table outcome assertions and default the tag at the callback boundary, preserving every admission case without growing TypeScript test lines. Remove the now-unneeded allocation.
|
@clawsweeper re-review Please review head The PR body records the original, still-unattributed Bun SIGBREAK failure and the stopped/queued replay (no tests executed). Fresh ordinary CI is running. Package Acceptance at the unchanged production/harness revision has passed build, integrity, npm install, onboarding, and real local-model/plugin-tool execution; channel switching/MAIN refusal and latest-stable upgrade preservation remain running. No passing claim for those pending lanes. |
|
🦞👀 Re-review progress:
|
Retain the mocked updater output on the original signal-test promise so its cleanup await cannot replace the diagnostic with a bare exit exception. Use the same promise wrapper in the adjacent no-restart test, preserving assertions and the test-line budget.
|
@clawsweeper re-review Please review exact head CI at Fresh automatic CI is pending. The prior Docker seed job stopped during npm pack with npm's internal-error message, before seed scenarios; its cause remains unknown and no inherited-failure exemption is claimed. Please assess the complete current change and remaining actionable findings/rank-up moves; no merge has been submitted. |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
* fix(update): reject mixed-case main package targets Share package target admission with Windows recovery guidance and remove the retired bare-main GitHub package translation. Keep explicit Git and artifact specs intact. Release note: package-installed updaters now reject MAIN, Main, and openclaw@MAIN with the same supported dev-channel guidance as main. Existing installed updaters need this CLI change before they benefit. * test(update): keep target admission coverage within ratchets Lower the counted-name budget after retiring the main package-spec constant. Share Windows table outcome assertions and default the tag at the callback boundary, preserving every admission case without growing TypeScript test lines. Remove the now-unneeded allocation. * test(update): expose Windows recovery failures Retain the mocked updater output on the original signal-test promise so its cleanup await cannot replace the diagnostic with a bare exit exception. Use the same promise wrapper in the adjacent no-restart test, preserving assertions and the test-line budget. * test(update): retain command through signal cleanup * test(update): discard signal cleanup exit result * test(update): join signal cleanup outside promise finalizer
Retain the package refusal and channel-switch checks for pre-#191994 candidates without enabling frozen scenario omissions. Co-authored-by: RomneyDa <[email protected]>
* fix(ci): match update refusal probe to selected candidate Retain the package refusal and channel-switch checks for pre-#191994 candidates without enabling frozen scenario omissions. Co-authored-by: RomneyDa <[email protected]> * test: include selected update contract in parent admission fixture The default parent admission fixture must include both committed source files now consumed by the update refusal contract. The exact failed parent case fails before and passes after this fixture-only change. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]>
…00043) * fix(ci): match update refusal probe to selected candidate Retain the package refusal and channel-switch checks for pre-openclaw#191994 candidates without enabling frozen scenario omissions. Co-authored-by: RomneyDa <[email protected]> * test: include selected update contract in parent admission fixture The default parent admission fixture must include both committed source files now consumed by the update refusal contract. The exact failed parent case fails before and passes after this fixture-only change. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Package installs could admit
MAIN,Main, oropenclaw@MAINinto a retired GitHub-package path despite the intendedmainrefusal. Windows task-preflight failures also recommended that unsupported install.User Impact
These targets now fail before metadata lookup or staging, preserve recorded update status, and point to
openclaw update --channel dev. Older installed CLIs need replacement before receiving this repair.Why This Change Was Made
Reuse the existing case-insensitive classifier at admission and Windows guidance; delete the alias translation and its metadata exception. Explicit Git/artifact specs, overrides, and Git/dev selection retain their contracts. This completes #125949.
Production -3 lines; TypeScript tests zero net lines; packaged E2E +15. Counted-name budget 460 → 459 follows the deleted constant. No new config or migration. Release-note context: mixed-case main package targets receive supported dev-channel guidance.
Validation
74f536fa1219930b56c8b44fcc44fe2d8f91d95chas zero findings and no before-merge actions.2c91bb6has identical production/E2E inputs to this head; reused-input proof, not a final-head package execution. Candidate SHA256:ca702f8fe3f91a913dd2b6cdb6a38ddf52600183706d13a13a8938ea92d6b674.Physical Windows was not exercised. Onboarding uses a mock model; the real-model plugin lane uses a local agent. Survivor proof is not a latest-as-of-dispatch claim.
Follow-up: a prior Docker seed job failed inside
npm pack; its underlying cause remains unresolved. Current-head package preparation and seed scenarios pass.