You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tools/install: add opt-in early channel for openwizpro/WizPro prereleases - #3248
Adds an opt-in early update channel to the installer (install download --early, install install, install status, install remove, and pull.py discovery/staging).
Off by default: without --early (or an existing earlychannel.json), default packaged channel behaviour is unchanged.
Early prerelease discovery and download:install download --early (and pull.py discover / stage on the early channel) authenticates through the user's existing gh login (gh auth token check, gh api repos/openwizpro/WizPro/releases, gh release download) without logging or storing tokens, reads prereleases tagged v<version>-rc.<n>, and selects whichever early or public release is newer by semver so members are never left behind a public release.
Verification and channel metadata: applies the same SHA256SUMS, manifest, checksum, staging, activation, and rollback checks as public releases, writes {"schema":"openwiz.update-channel.v1","channel":"early"} to channel.json, reports "channel": "early" in install status, and removes earlychannel.json in install remove.
Clear refusals: missing gh or signed-out gh instructs the user to run gh auth login; HTTP 404 on openwizpro/WizPro explains that early builds need OpenWiz Pro and links https://openwiz.dev/pro/.
Docs and changelog: documented briefly in docs/install.md and added changes/3209.md.
Full review by Claude Code, Opus 5.5, High. CI green on this commit: ci, privacy, changelog, owned-paths, lint, line-budget, rust, release (1-3), web-test (latest run of each; earlier failures are stale runs from a superseded draft on the same commit).
Intent: install download --early (and install and update after it) installs prereleases v<version>-rc.<n> that the release tool publishes to the private Pro repository, through the user's gh login, verified like a public release, following the newer of early and public by semver, with clear refusals; the default channel is unchanged.
R1 [blocking]tools/install/pull.py:192 (Spec) The early path (also pull.py:206) requires the downloaded manifest's version to equal the full rc string (0.1.2-rc.1), and stage (pull.py:258) looks for openwiz-<rc version>-<target>.manifest.json. The release tool (Release candidates publish early to a configured Pro repository #3208, pull request release candidate: optional early prerelease publication and lead-time report #3247) uploads the candidate's exact public bytes under the rc tag: expected_artifacts and the manifest check in tools/release/candidate.py:511 and :564 give manifest version <version> and assets openwiz-<version>-<target>.*. So every early release the release tool makes is refused. The tests pass because their fixtures write -rc versions into the manifest, which the producer never does. Fix: for an early tag v<V>-rc.<n>, accept a manifest whose version is <V> and the assets named with <V>, while still binding the download to that tag; order updates by the tag (<V>-rc.<n> < <V>); and build the fixtures the way candidate.py publishes.
User path: an OpenWiz Pro member runs install download --early once a release candidate is in the Pro repository, and the installer refuses with "published version does not match its tag"; they never get an early build.
Shows the break: a fixture rc published exactly as candidate.py does (tag v0.1.2-rc.1, manifest version 0.1.2), then install download --early --target x86_64-unknown-linux-gnu --dir <new> printed {"outcome": "refused", "reason": "published version does not match its tag v0.1.2-rc.1; no build was selected or changed"} (exit 5), and the same with --version v0.1.2-rc.1; the ticket needs "outcome": "downloaded". Rerun at this commit: same.
R2 [blocking]tools/install/install.py:308 (Spec) With tools/install/install:258 and docs/install.md:47, a root already on the packaged channel refuses an early install, and neither install --early nor the docs give a way to switch. Fix: treat --early (or the downloaded early channel.json) as the explicit migration, replacing only a byte-exact packagedchannel.json at activation, and document it; or document the supported switch.
User path: an existing OpenWiz user buys Pro, runs the two documented commands (download --early, then install), and install refuses with "existing update channel requires explicit migration"; they stay on the public build. The last good build is kept, so nothing is lost.
Shows the break: a packaged install of 0.1.0, then download --early (downloaded 0.1.2-rc.1), then install --assets <that folder> ..., with and without --early, printed {"outcome": "refused", "reason": "existing update channel requires explicit migration; the last good build and owner settings are retained"} (exit 5); status then shows 0.1.0 packaged. Rerun at this commit: same.
R3 [polish]tools/install/pull.py:387 (Sweep) The three gh calls do not pin github.com; a user whose default gh host is an enterprise server gets a misleading no-Pro refusal. The token still goes only to its own host. Fix: GH_HOST=github.com, and gh auth status --hostname github.com instead of reading the token. Polish issue: Early channel gh calls do not pin github.com (polish for #3209, R3) #3254.
Checked: Standards (AGENTS.md, docs/agents/public-writes.md, docs/agents/fleet.md, ADR 0020, changes/README.md), Spec (#3209, no parent spec; source is the private grill of 2026-11-24 the ticket points to), full sweep. Held on reading and runs: the default path is unchanged, including --version usage errors (same JSON and exit 2 as the base); the token from gh auth token is only tested for being non-empty, never printed, logged or stored, and refusals use fixed text, not gh output; asset names and tags are pattern-checked before download; the archive, manifest and SHA256SUMS are checked before anything is written to the install root or activated, and a failed check leaves no download folder. Owned paths: all files are under tools/install/ or docs/install.md, plus the ticket's own changes/3209.md under the standing changelog rule; the line's format, kind and milestone (0.2.0) are right, but its claim that the channel follows the newest early release holds only on the current fixtures until R1 is fixed. Helpers: 2 at d5ba6fa; 2 of 2 candidates kept; no-push check clean. Each helper: finding checker on R1 and R2: reproduced both with the fixture script and by reading the producer and installer, kept; security and default-path lens reviewer: did not finish before the deadline, archived; I did its lens myself (results above). Ran: the R1 and R2 fixture reproduction (both refusals as shown); base and head install download --version usage errors (identical).
Next: the builder fixes or disputes R1 and R2 once, then one re-check.
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
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.
Closes #3209
Adds an opt-in
earlyupdate channel to the installer (install download --early,install install,install status,install remove, andpull.pydiscovery/staging).Private record: https://github.com/jparker2006/ClosedWiz/blob/c604d5323475bbb8f3a45dacbe057db4751161a3/docs/grills/2026-11-24-dev-subs.md
Summary
--early(or an existingearlychannel.json), defaultpackagedchannel behaviour is unchanged.install download --early(andpull.py discover/stageon theearlychannel) authenticates through the user's existingghlogin (gh auth tokencheck,gh api repos/openwizpro/WizPro/releases,gh release download) without logging or storing tokens, reads prereleases taggedv<version>-rc.<n>, and selects whichever early or public release is newer by semver so members are never left behind a public release.SHA256SUMS, manifest, checksum, staging, activation, and rollback checks as public releases, writes{"schema":"openwiz.update-channel.v1","channel":"early"}tochannel.json, reports"channel": "early"ininstall status, and removesearlychannel.jsonininstall remove.ghor signed-outghinstructs the user to rungh auth login; HTTP 404 onopenwizpro/WizProexplains that early builds need OpenWiz Pro and linkshttps://openwiz.dev/pro/.docs/install.mdand addedchanges/3209.md.Verification (fixture tests only, no network)
python3 -I tools/install/test_pull.py(6/6 OK)python3 -I tools/install/tests/installer/test_installer.py(19/19 OK)python3 -I tools/install/tests/installer/test_root_safety.py(9/9 OK)python3 -I tools/install/test_install.py Install HarnessSkills(14/14 OK;InstalledCommandrequirescargo, not installed in this sandbox)python3 -I tools/install/platform/test_security.py(6/6 OK)python3 -I tools/install/setup/test_check.py(25/25 OK)python3 -I tools/install/setup/test_github_login.py(26/26 OK)python3 -I tools/release/test_help.py(1/1 OK)Built with Cloudroom