Blocked and allowed

Blocked and allowed is the one place to see what Pratique keeps out today, every exception people have made, and the requests waiting for a decision.

Open Blocked and allowed from the sidebar. A badge on it counts the exception requests waiting for a decision. The page has two tabs:

  • Blocked and exceptions: what is held or refused now, and every exception in force.
  • Exception requests: requests to allow a held or refused version, and the decisions on them.

Blocked and exceptions

This tab has up to five sections. Each list has its own pages.

SectionWhat it lists
Ending this weekAllows that end soon. Shown only when there are some. See exceptions that end.
Refused nowVersions someone asked for in the last 30 days that are refused today.
Held nowVersions someone asked for in the last 30 days that are still in quarantine today.
Allowed by exceptionThe allows in force, from the UI and the config file.
Blocked by a person or an AIThe blocks in force, including holds placed by an AI triage agent.

Refused now and Held now

These two lists show what is stopping someone today, not what happened in the past. Pratique takes every held or refused event from the last 30 days and checks each version again against today's policy. A row is dropped when:

  • the version has since cleared, or no longer exists;
  • the version was only hidden from a listing and clients get a newer version anyway, unless it is malware.

A direct request for a blocked version stays on the list, because someone really asked for it. So a blocked old version isn't listed when clients get a newer one anyway. Open a package's page to see all its versions.

Each row shows the package and version, why it is blocked, the version clients get instead, who asked for it last, and when. Open package opens its page.

Refused versions are worked out first, so a long list of held versions can't push a refusal off the page. The page covers up to 1,000 packages. The exception lists show the newest 500 exceptions. When either limit is reached, a note says so, and you can find the rest on each package's page.

When the lists were checked

Working out what is still blocked means looking at every package, so Pratique reuses the result for a short time and refreshes it in the background. The page says when it was last Checked.

  • A change you make to an exception shows straight away on the instance you made it on.
  • After a new refusal or hold, opening the page waits a few seconds for a fresh list. If the refresh is slow, the page shows the previous list with its time.
  • The lists use cached package listings. What clients are offered is always decided fresh.

Find a package

Enter part of a name under Find a package in these lists and select Find. The search applies to every section on the tab. Clear removes it.

Exceptions

An exception is a person's decision about a package. It overrides the rules for that package, in the order described in how decisions rank. Each exception has these parts:

  • Action: allow or block.
  • Versions: one exact version, or all versions of the package.
  • Reason: required, up to 500 characters, so the audit log explains it.
  • Owner: who answers for it. By default, whoever set it. An approved request belongs to whoever asked.
  • Expiry: an allow can end after 1 day, 7 days, 30 days or 90 days, or have no expiry. A block lasts until someone removes it.

Admins set exceptions on a package's page. Use Set exception… in a version's menu for one version, or Block package for the whole package. See Package pages.

Exceptions can also live in the config file. These show In code and can't be changed or removed in the UI. In the file, an allow can expire on a date, and a block lasts until you remove it:

yamlpratique.yaml
exceptions:
  - registry: npm
    name: esbuild
    version: "*"
    action: allow
    reason: Reviewed by the platform team, ticket SEC-142
  - registry: npm
    name: urgent-fix
    version: 2.1.0
    action: allow
    reason: Needed for the 2026-11 security patch
    expires: 2026-12-31     # allows can expire; blocks last until removed
  - registry: python
    name: banned-package
    version: "*"
    action: block
    reason: Not approved by legal

Exceptions that end

An allow is a promise to look again. When an allow ends, that version stops being offered. That is the point, but it can break a build that still needs the version.

Ending this week lists allows with less than 7 days left that are also past half their life. So a 3-day exception doesn't appear the moment it is made. Each card shows the package, the version, when it ends, its owner and its reason. Overview counts them too.

An admin can keep one going from its card:

  1. Choose a new length

    Under Renew for, choose how long it lasts from now. 30 days is selected by default.

  2. Hand it over if needed

    Change Owner to give the exception to someone else.

  3. Renew it

    Select Renew. The renewal goes into the audit log.

If you set a webhook, it gets one reminder for allows that are ending, with package names and owners but never the free-text reason. See Monitoring.

Allows with no end

Allowed by exception warns when some allows never end. An exception nobody revisits outlives the reason for it. Give it an end date on the package's page.

Exception requests

Anyone who isn't an admin can ask for a held or refused version. Admins decide.

  1. A viewer sends a request

    On the package's page, open the version's menu and choose Request exception…. Answer Why do you need it? and select Send request. Each person can have up to 20 requests waiting. Private packages can't be requested, because they aren't subject to these checks.

  2. Admins get an alert

    If a webhook is set, it gets a message naming who asked, the package and version, and the reason, with a link to the requests.

  3. An admin reviews it

    Under Waiting for a decision, each request shows its reason, who asked, the decision now with any warnings, and who already has the version. See every check opens the version's explanation.

  4. The admin approves or denies it

    Choose how long the allow lasts under Allow for. If the version is held, this is preset to cover the end of its quarantine. Add an optional Note for the requester, then select Approve or Deny.

  5. The requester finds out

    The webhook gets the outcome and the note. The version's page shows the request as approved or denied, by whom, and the note.

An approved request becomes an allow for that version, owned by the requester. Decided requests move to the Decided table, with the decision, who asked, who decided, and when the allow expires.

Pratique never downloads a release that isn't cleared. So the code of a requested version can't be compared until someone allows it. If threat data reports the version as malware, the request says so. Approve it only if you've confirmed the report is wrong.

AI holds

An AI triage agent can hold a recent release for longer, so a person can review it. It can't let a package in. A hold shows under Blocked by a person or an AI with an AI hold tag, and on the package's Policy tab.

Holds are limited. A hold covers one exact version, lasts up to 14 days at a time, and can't replace a decision that a person or the config file made. A person's allow for the whole package outranks a running hold.

To lift a hold, an admin does one of these:

  • On the package's Policy tab, select Remove next to the hold.
  • Allow the version with Set exception…. The allow replaces the hold.

A hold that was lifted or has ended can't be placed again on the same version. See AI triage.

How decisions rank

Pratique runs the same checks, in the same order, for every version. The first check that applies decides. The explanation on each version's page shows this order as Rule evaluation, in order:

  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

This order has these effects:

  • A person's decision comes before the rules. Blocks come first, so a block always wins.
  • An allow for one version overrides everything after it, including a malware report. That is why the form warns you before you allow a version reported as malware.
  • An allow for the whole package doesn't override malware, or a file that changed upstream. It does override the risk rules and quarantine, for future releases too.
  • Teams don't change any of this. Known malware and a person's decision on a package apply to every team. See Teams.

Even an allowed version is still checked against its pinned hash when it is downloaded. See how it works.

At the bottom of the Blocked and exceptions tab, How decisions work sums up the three outcomes: a held version clears on its own when quarantine ends unless it is reported first, a refused version stays out until something changes, and an exception is a person's decision that overrides both.