Package pages

Each package has its own page. It shows what a new install gets today, why each version is cleared, held or refused, and the controls that apply to that one package.

Find a package

Use Search packages at the top of the sidebar. It searches the packages clients have requested through Pratique, and your private packages.

You can also open a package nobody has requested yet. When nobody has requested the exact name you searched for, the Packages page offers a link to look it up in each registry where the name is valid. This lets you check which versions would be cleared, and set a quarantine, before anyone installs it.

The Packages page also lists:

  • Packages with their own quarantine, which replace their registry's setting.
  • Requested packages, with columns for Files cleared, Held or refused and Last checked.

A tree of registries and packages sits beside the list, with a dot for each version's decision.

The package header

The header shows the package name and tags that summarise it:

  • The registry, or Private for a package you publish.
  • Quarantine and its window, with "set here" when the package has its own. Select it to open the Policy tab.
  • Provenance required when the package must be built from one repository, and Verified builds when a release has a verified build.
  • Used by and a number of projects, the number of exceptions, and the number of refused versions.

Three buttons sit at the right of the header:

  • Install command shows the command for the package, with a Copy button. It installs through Pratique once the client is connected.
  • Set quarantine opens the quarantine panel on the Policy tab. Admins only.
  • Block package opens the exceptions panel on the Policy tab. Admins only.

If a version that is now held or refused was already downloaded, a banner says how many versions and clients are affected. Stopping a version now doesn't remove the copies clients already have. Show them filters the versions table to those versions.

Tabs

TabWhat it shows
OverviewKnown vulnerabilities, warnings that repeat across versions, recent activity, and a summary of counts.
VersionsEvery version and its decision, with filters and the explanation for one version.
PolicyThe package's quarantine and its exceptions.
ProvenanceVerified builds, and the required repository. npm and Python only.
DependentsThe projects whose lockfiles list the package.
BuildsThe build records that made or used the package.
Audit logThe newest 100 events for the package.

What a new install gets

Above the versions table, one line answers the question most people have:

textexample
A new install gets 4.17.21. The newest release, 4.18.0, is held until ...

Pratique finds the newest stable version that is cleared, which is what a plain install gets. If the newest stable release isn't cleared, the line names it, says whether it is held or refused, and gives the time it clears if it is held. Prereleases are left out. If no stable version is cleared, the line says that a new install fails.

The versions table

Each row shows the version, its decision, the rule that made it, and the publish date. Under the date, a short note says when a held version clears, or how often the version was requested or pulled. A version that is held or refused but was already pulled names the clients that pulled it.

Three more columns appear only when at least one row on the page has a value for them:

  • Pinned sha256: the hash Pratique recorded the first time it stored the file.
  • Provenance: Verified, Doesn't verify, Wrong repo, or another status.
  • Pulls 30d: downloads in the last 30 days.

Filter versions

Use the controls above the table to narrow the list:

  • Filter versions matches text in the version number.
  • Decision keeps cleared, held or refused versions. Each choice shows its count.
  • Rule keeps the versions decided by one or more rules, such as quarantine or known malware.
  • Team policy shows the decisions for one team's tokens. It appears only when a team exists. See check a team's decisions.

Choose Apply or Filter. Clear filters removes them all.

The version menu

The ... menu at the end of each row has these items:

  • Why it's cleared, Why it's held or Why it's refused opens the explanation for that version.
  • See changes compares the version with the release before it. Cleared versions only.
  • Set exception… lets an admin allow or block the version. Remove the exception appears when the version has one that was set in the UI.
  • Request exception… lets anyone else ask for a held or refused version. If a request is already waiting, the menu says so instead.

Why a version is held or refused

The explanation opens under the table, with a title such as "Why 4.18.0 is held". It starts with the reason in one line, then shows the evidence and the order in which the checks ran.

The evidence lists what Pratique knows about the version:

  • Published: the publish time Pratique uses for quarantine, in UTC.
  • Quarantine: the window, and how long until the version clears.
  • Pinned sha256: the stored file's hash and when it was first seen, or "Not downloaded yet".
  • Signed by or Provenance: the verified repository, or why the build record doesn't verify.
  • Malware in OSV: the report that names this version, or "No reports".
  • Vulnerabilities, and one line for each rule that flagged the version.
  • Already pulled by: clients that have a version that is now held or refused.
  • Requests or Downloads: how much clients asked for it.

Rule evaluation, in order lists each check Pratique ran, what it found, and which check made the decision. Checks after that one show as "not reached". The order is the same for every version:

  1. Blocked by a person, this version
  2. Blocked by a person, whole package
  3. Allowed by a person, this version
  4. Known malware in OSV
  5. File changed upstream
  6. Allowed by a person, whole package
  7. Version known
  8. Publish time known
  9. Risk rules set to block
  10. Quarantine

See how decisions rank for what this order means for exceptions.

Compare releases

See changes shows what a release changed since the previous one. Choose another version under Compare with and select Compare to compare with a different one. The page lists each changed, added and removed file, with the changed lines. Package contents are shown as plain text and never run.

Pratique only downloads a release to compare it if clients could install it. A release that is held, refused or reported as malware is never fetched, so its changes can't be shown until it is cleared, for example by an allow from a person. This is why See changes appears only for cleared versions.

If an AI triage agent has assessed the release, the comparison page shows its assessment. It is an opinion, not a decision. See AI triage.

Set a quarantine for this package

An admin can give one package its own window. Open the Policy tab, or select Set quarantine:

  1. Enter the window

    Under Hold new releases for, enter a number, and choose Days or Hours as the Unit. Use 0 for no quarantine.

  2. Save the window

    Select Save. The package's rule now replaces its registry's setting.

To go back to the registry's window, select Use the npm setting instead (or the name of the package's registry). A window set in the config file shows In code and can't be changed here. See Quarantine for how windows combine.

Require a repository

Provenance is a signed record of where a release was built. A stolen publish token can upload anything, but it can't sign as your project's CI. For npm and Python packages, an admin can hold a package to one repository.

  1. Open the Provenance tab

    It shows the newest verified build, if there is one, and a table of Versions with provenance.

  2. Enter the repository

    Open Require a repository and enter the repository's address, such as https://github.com/acme/widget.

  3. Save it

    Select Save. Releases published from now on must be built from that repository.

A new release from any other repository, or with no verifiable build, is flagged by the Built from another repository rule. That rule starts on warn, so it flags but doesn't stop anything. Set it to block under Settings to stop those releases. To stop requiring a repository, open Change the required repository and save an empty field. See Provenance.

Block or allow the whole package

On the Policy tab, the Exceptions panel lists every exception for the package, with its reason, who set it, its owner and when it expires. Admins can select Remove on any exception that wasn't set in the config file.

To add one for every version, open Add an exception for all versions, enter a Reason, and choose how long an allow lasts under If allowed, it lapses after. Then select one of these:

  • Allow all versions skips quarantine and the risk rules for every release, including future ones. Known malware stays refused.
  • Block all versions refuses every version until someone removes the block.

Set or request an exception for one version

The explanation for a version ends with a form. What it offers depends on your role.

As an admin

Under Set an exception for the version, fill in:

  • Reason: required, up to 500 characters. It goes into the audit log.
  • Owner: who answers for the exception. Leave it empty to make it you.
  • If allowed, it lapses after: 1 day, 7 days, 30 days, 90 days or no expiry. Shown only for a version that isn't cleared.

Then select Allow or Block and the version. A cleared version offers only Block, because it needs no allow. An allow lapses on its own. A block lasts until someone removes it. If the version is reported as malware, the form warns you to allow it only if you've confirmed the report is wrong.

As a viewer

Under Request an exception for the version, answer Why do you need it? and select Send request. An admin decides on the Exception requests tab of Blocked and allowed. The version's page then shows the request as pending, approved or denied, with any note from the admin. You can have up to 20 requests waiting at a time.

Who uses this package

The Dependents tab lists the projects whose lockfiles include the package, and the version each one uses. Search projects opens the Projects page, where Who uses this package? answers the same question for any package and version.

The Builds tab lists the build records that made or used the package. Both lists only cover projects and builds that CI reports. See CI.

Check a team's decisions

Teams can have their own quarantine and rules, so the same version can be cleared for one team and held for another. To see what a team's tokens get, open the Versions tab, open Team policy, choose the team, and select Apply. Choose Everyone to go back to the default policy.

While a team is chosen, a note under the filters says whose decisions you're looking at. The quarantine shown on the Policy tab stays the setting that applies to everyone. See Teams.