Re-tests, budgets and waivers
An attested version needs testing again, a run hit a size or file-count limit, or a version cannot run in a sandbox at all, and you want to know your options and what each one serves.
UPDATED
You can run an attested version again, run a whole catalog again after rebuilding the golden image, and decide what happens to a version no sandbox could judge. Every verb on this page sits in the version’s Actions menu on its package page, except the sweep, which has a panel of its own, and the settings, which are on the Brokers page. What a run itself does is on how a version is tested.
Re-test an attested version
Since platform 0.237.0 Re-test this version, under Testing in the Actions menu, sends an attested version through a fresh detonation: the installer is downloaded and read again, and its attestation tier is composed against your trust baseline as it stands now. Use it when the evidence is stale: a run from before a platform fix, from an older golden image, or from before signed statements (platform 0.240.0), which gets its statement this way. An admin runs it with a typed confirmation. A halted update in the halt queue offers the same re-test where it can change the outcome, and its link opens this form.
Chocolatey and Scoop (since platform 26.10.3101). The re-test runs on the version’s own manager and bucket, never on a winget package of the same name: it installs the package again from the downloads the platform holds, fetches any it lacks, judges each file the package installs by its signature, and composes the tier. It needs a Hyper-V broker, like every Chocolatey and Scoop run (Chocolatey and Scoop).
What the feed serves meanwhile. The card says it before you confirm, for that version on your deployment:
- A winget version on Community Edition keeps being served while its run is in flight if a sandbox attested it and its installer is served through the vendor’s URL: endpoints get the installer the earlier run attested, through that URL. One whose installer bytes your own server serves stops being served until the run attests, and so do a version vouched for by hand and a waived version whose waiver was revoked.
- A Chocolatey or Scoop version is not served while its re-test runs, and is served again when the run attests.
- A withheld version stays unserved during the run and after it, until you serve it again from its Serving card.
- A re-run never lifts a rejected installer back to attested, and endpoints are never handed an installer the earlier run did not attest.
What the result does to the version:
- It attests: the version stays attested, with the new evidence and tier.
- It assessed nothing about the attested bytes: the version returns to attested as it was, and the card says so the next time you open it. For winget that is a download that failed, other bytes at the vendor URL, no broker to take the run, or a failure of our own infrastructure that no installer can cause: the sandbox or its image, the broker’s dispatch, or the transfer of the installer or the result. For Chocolatey and Scoop it is a download the vendor refused, forbade or no longer has, a capture that could not keep every download whole, an upstream read that kept waiting past its bound (
Wep:Detonation:UpstreamWaitBoundHours, 24 hours by default, since 26.11.501), a sandbox that could not set up the manager, no broker, or the same failures of our own. A Chocolatey package removed from the community repository still fails its re-test. - The sandbox host was busy: an install that ran past the endpoints’ install-step limit, or the sandbox’s own time limit, while the host was under load runs once more on its own. If the host is still busy, the result reads “inconclusive: host under load” and the version returns to attested as it was.
- It failed any other way: the version takes that failure’s status and does not return to attested. That includes a sandbox agent that crashed or could not launch or capture the installer, a result the collection’s own checks refused, and a broker process that crashed while collecting the result. Since 26.11.501 a broker crash on bytes that attested before gets one further run, and counts only if it crashes again.
- It was attested under a waiver that has since been revoked: a run that assessed nothing rolls it back instead.
The re-test sweep
Since platform 0.240.0 a re-test sweep runs every attested version again on a new golden image, one at a time. It is the last step of re-cutting the image.
- Where. The Re-test sweep panel on the winget catalog list (
/catalog?manager=winget). It appears once a detonation result carries a golden cut label, which every image built with--cut-labelgives its results. An admin arms, pauses, resumes and cancels it. - Arming. Choose the anchor: the canary’s re-test on the new image, which names the image’s cut label and sandbox agent version. Preview the sweep counts its members, then a typed phrase arms it. The member set is frozen then, and never grows: every winget, Chocolatey and Scoop version that a sandbox attested and that has no result on the new cut yet.
- Pace. One run at a time, and only while the detonation queue is idle, so a new upstream version never waits behind more than one sweep run. It starts at most 25 a UTC day by default.
- Pausing. It pauses itself after 3 consecutive failed re-tests since its last resume, or twice that many within 24 hours, and at once on a run that attested on another golden image or failed on our own infrastructure. The panel names the failures, each with how to recover it, and the next step. Resume takes a typed phrase.
- Cancelling takes a typed phrase too. A cancelled sweep is never resumed; a run already in flight finishes on its own. A fixed image gets a new cut label and a new sweep.
The two numbers are settings, in the Re-test sweep pace section of the Brokers page: Wep.Catalog.RetestSweep.DailyBatchSize (25 by default, 1 to 50) and Wep.Catalog.RetestSweep.PauseAfterConsecutiveFailures (3 by default, 1 to 20). At the console’s own estimate, 25 runs hold a broker for about 4.75 hours a day. A withheld version is still a member: it is re-tested and stays unserved. A member that fails keeps its failure’s status: re-detonate a quarantined one once you understand the cause.
The detonation budget, and vouching without a sandbox
Large installers are streamed into the sandbox up to the installer budget, a setting in Detonation defaults on the Brokers page (Installer budget (bytes)). It is 4 GiB by default and cannot go higher, because one file on the sandbox’s payload disc must stay under 4 GiB; a change applies from the next download, with no restart.
A version waits at exceeds the detonation budget in four cases: its installer is larger than the budget or than the connected broker can stream; its result is larger than the platform or the broker accepts; no connected broker can run it (no image set, no sandbox for its architecture, or no broker offering what it needs); or retries after a fault on our side ran out. It is a coverage limit, not a verdict. Fix the cause, for example by raising the budget or upgrading the broker, then use Re-detonate, which is offered on such a version since platform 0.243.0.
Re-detonate with network inspection, under Testing in a winget version’s Actions menu, runs the version again with the network on, behind a Hyper-V broker’s recording proxy that inspects its TLS traffic, to show what the installer contacts. It is offered on a version that is quarantined, CVE-blocked, rolled back, cancelled, unattested, over a budget or waiting on interaction. An attested version has to be rolled back first.
Vouch without a sandbox, in the Trust group, is the way out for a version no sandbox can run, on Community Edition only. Since platform 0.242.2 it never attests anything. It records an unverified-installer acceptance for the version’s installers of one architecture, naming the download sources you approve, with a reason and a 12-month expiry. The installers read unverified, accepted, and reach endpoints only once per-box serving is on (what gets served).
- It is offered only for a version over the detonation budget, and not for one whose install stalled without being judged.
- Since platform 0.248.1 it refuses a version whose latest real verdict on any of its installers judged the bytes: a hash mismatch, an installer that reports another version, a tampered manifest or a failed baseline gate. Since 26.11.800 a verdict on any version of the package refuses it too, a fired signature defense included, because a vouch records an acceptance for the whole package. Every refusal names the verdict, the version and the day. A run that learned nothing about the bytes, such as a budget, broker or sandbox fault or a cancelled run, neither carries a verdict nor clears one. Nothing is signed or recorded on a refusal.
- Since 26.11.800, when it would be refused, the verb stays listed but disabled, and its label gives the verdict.
- An unverified-installer acceptance recorded from the package card, and its renewal, are refused over such a verdict as well (since 26.11.800). While one stands, Renew is not offered and says why; the acceptance can still be revoked.
- It needs the
publisher.trustgrant, which no default policy gives, even to an admin. An admin switches it on at Privilege grants (/policy/grants). - A version attested by hand before platform 0.242.2 can be revoked there, which rolls it back.
A version that needs interaction cannot be vouched for: an installer that cannot install silently in the sandbox cannot install silently on endpoints either.
The file-count bound, a package’s own ceiling, and waivers
A run that adds an enormous number of files cannot be observed well, so each run is judged against a file-count bound: the Baseline file-count bound in Detonation defaults, 50,000 by default and never above 2,000,000, applied from the next run. A version that installed cleanly, with full evidence and no untrusted signal, but added more files than its bound, waits at exceeds the observability budget (exceeds-observability-budget); it is not quarantined. A run that added more than 2,000,000 files is a runaway install and stays quarantined. Since either has real sandbox evidence, it cannot be vouched for by hand. There are three ways forward:
- This package’s own ceiling. File-count ceiling, under Testing, sets the bound for every future run of the package, new versions included, never above 2,000,000 (since platform 0.238.0). An admin sets it with a typed confirmation, and saving it on a version held only by its file count offers the re-detonate.
- The global bound. Raise it in Detonation defaults and re-detonate; it loosens the gate for every package.
- A baseline-gate waiver for this one version.
Baseline-gate waiver, under Testing, is offered for a version quarantined on its file count or over the observability budget, when its latest run failed the file-count check and the installer exited cleanly.
- Who. It needs the
catalog.waive-gategrant, which no default policy gives, even to an admin, so nobody can raise their own gate by default. An admin switches it on at Privilege grants (/policy/grants). - What you set. A file-count ceiling for this version, at least the count the run observed and, by default, at most twice it and never above 1,000,000; a reason code and a reason; an acknowledgement of each flagged signal the run raised; and the typed phrase. The waiver lasts 90 days by default, 180 at most (
Wep.Catalog.Waiver.ExpiryDefaultDays,Wep.Catalog.Waiver.ExpiryMaxDays). - What it does. Saving it queues a fresh run. That run attests the version, marked waived, only if its file count is within the ceiling and its installer is the one you reviewed; the rest of the run’s evidence stands as observed. A waived version gets no signed statement.
- Revoking it rolls the version back, and a waived version whose waiver was revoked is not served. A lapsed waiver reads “expired on” its date.
When endpoints cannot find a version yet
An endpoint that is not fenced resolves winget versions from the public winget source, which can lag behind the version its ring sets. Since agent 0.229.0 such a step refreshes the source once and retries, then waits 45 minutes as source-lag: the endpoint page shows a waiting row, and the ring gate reads it as deferring, never as a failure.
Since platform 0.234.0 the source-lag row, and a halt-queue row whose ring members are in source lag, add one line from the platform’s copy of the public index. It says one of three things: the index lists the version and the endpoint’s cache has not caught up; the index does not list the version yet either; or the index has already moved past it. The line also says when the index was built. The line is advice only, never a gate. It needs the winget name index refresh (Wep:Catalog:WingetIndex:Enabled), which ships off because it downloads the index from cdn.winget.microsoft.com; with it off, the line is not shown.
On a dedicated instance
Two things on this page differ on a dedicated instance:
- A re-test withholds the version until the new run ends: its feed serves attested versions only, so nothing keeps serving during the run.
- There is no vouch. A version over the detonation budget, or one that needs interaction, waits.
Where this stops
- A re-test that assessed nothing leaves the version attested on its old evidence. The card says so, but nothing re-runs it for you.
- The sweep is slow on purpose: one run at a time, only while the queue is idle, 25 a day by default, and it pauses on failures until someone resumes it.
- The vouch is not evidence. It records an acceptance: the installers stay unverified, they reach endpoints only with per-box serving on, and the vouch exists on Community Edition only.
- A waiver relaxes one gate, for 90 days by default, and its version has no signed statement.
- Both the vouch and the waiver need a grant no default policy gives, even to an admin.
- Network-inspection re-detonate reaches winget versions only. Cancel (since 26.11.501) and re-test reach all three managers.
- The source-lag line needs the winget name index refresh, which ships off.