Compliance¶
Settings > Compliance answers three questions on one page: what runs on your organisation's devices, what you approved, and who decided. People allowed to decide see controls; everyone else sees the same page without them.
Everything on the page is what the Preloop CLI on each device reported. It is not attested, and an empty tab means nothing in that state was reported, not that every device is in policy.
What the page shows¶
- Summary. Counts for Needs a decision, Not allowed, still in use and Approved (each switches the table below to that tab), agents found but not onboarded, and whether extension blocking (Claude Code) is on.
- Extensions and agents in use. One row per item, never one row per device:
- each extension, once per agent it is installed for, with the agent as its own column, the devices and people reporting it by name (three inline, the rest behind N more), the versions seen and when it was first seen;
- each agent type (Claude Code, Codex CLI, Cursor, ...), with its devices, the versions in use and how many are not onboarded.
Three tabs split the rows:
| Tab | Extensions | Agent types |
|---|---|---|
| Needs a decision | nobody decided, or the content changed since it was approved, or could not be checked | nobody decided, or a version rule exists and the device did not report a version |
| Not allowed, still in use | marked not allowed and still reported | marked not allowed, or a device runs a version older than the minimum or a blocked version |
| Approved | approved | approved, every reported version allowed |
Search by name, filter by kind (agent types, plugins, skills, MCP servers,
commands, hooks) and by agent (every agent on a loaded row, so the list is
never empty while rows exist), and sort by devices, people, name, agent or
first seen; the Name, Agent, Devices and People headers sort too. The table draws 25 rows at a time; Show more adds rows and reads
the next page from the server when the loaded rows run out. Open a row to
see the devices it is on: version, status, scope and last report, plus for
an agent not yet onboarded the copyable onboard command and Ignore.
Select rows (or Select all shown) to approve them or mark them not
allowed in one step, behind a confirmation. Export CSV reads every
page of the current tab first and writes all of its rows, with an
# Compliance inventory as of line; if the tab is too large to read in
full, a # Partial: line says so. The tab counts come from the same
per-device states as the rows, so an extension whose devices differ (some
approved, some with changed content) is counted in both tabs. If a part of
the page fails to load, it says so instead of showing an empty state.
- Agent types. The policy for each agent type: Undecided,
Approved or Not allowed. An approved type can carry a minimum
version (anything older is not allowed) and blocked versions (exact
versions or a series such as 2.1.*). A device that does not report a
version needs a decision; it is never marked not allowed for missing data.
Agent types nobody decided on stay under Needs a decision, so upgrading
disallows nothing. These decisions are recorded and shown; Preloop does not
stop an agent marked not allowed from running.
- Policy settings. One row per check the Overview Compliance card
evaluates, each with its current setting and, for permitted roles, a
control:
- Unapproved extensions: Record (listed only), Warn (the device
fleet unapproved_extension rule opens a finding and notifies) or
Block (deny_unapproved_at_runtime: the Preloop approval hook denies
calls to it). Needs manage_agents; Warn also needs
manage_device_fleet.
- Discovered agents must be onboarded: the fleet discovered_not_onboarded
rule, with its days and what happens if not (manage_device_fleet).
- Runner policy: the account requirement, optional, required or forbidden
(manage_policies).
- Budget limits: a summary and the budget dialog (manage_budgets).
- Redaction and Policy blocks: a summary and a link to the Policies page.
When no setting is configured, a Set up compliance block above them
lists the defaults; nothing is saved until Apply is pressed.
- Decision history. The 50 most recent decisions on extensions and agent
types: who, what, the state it replaced and any version rules. Export
CSV writes them. Every decision is also in the audit log
(extension_approval and agent_approval).
Devices, people and extensions¶
A device is named, best first, by an admin label, the hostname the device reported, the hostname of a runner registered from it, or the hostname recorded when an agent on it was onboarded. A device with none of these (an older CLI and no runner) reads as its owner's, for example "Jane Doe's macOS device". The fingerprint shows only on the device page, as a secondary identifier. People are shown as on the Users page: name and, for viewers who may see the user list, e-mail.
- Device page (
/console/settings/compliance/devices/{fingerprint}): hostname, OS user, OS and version, hardware model, serial number, CLI version, first and last seen; the label (editable withmanage_agents); its people, agents with versions, and every extension on it with its status; links to agent sessions and, with the device fleet, to the Device fleet page. Machine details an older CLI did not send are listed once as "Not reported by this device". - Extension page
(
/console/settings/compliance/extensions/{agent}/{kind}/{id}): what it is (description, invocation, tools), its origin (source, publisher, marketplace, repository), versions, first and last seen, the devices and people it is on, the agents that load it, the decision history with reasons, drift (content changed since approval, with a line diff of the approved and current text) and the stored text, which needsmanage_agentsand is audited on every read. Approve or mark it not allowed from there, with a reason. - Person page (Users): the person's reporting devices, their agents, and the extensions on their devices that need a decision.
Versions of agents¶
Agent versions come from two places: the discovery report, when it carries one, and a runner's harness inventory. Runner-reported versions are shown to account admins only. The discovery report the CLI sends today does not include the agent version, so on devices without a runner the version reads "Not reported", and an agent type with version rules needs a decision there.
Editions¶
The inventory, the tabs, agent-type policy and the decision history are part of every edition. The count of devices reporting, Warn mode, required onboarding and runner policy come from the device fleet and runner policy, which are part of Preloop Cloud Team and Preloop Enterprise. The per-device view of open findings stays on the Device fleet page.
API¶
| Route | Permission | Returns |
|---|---|---|
GET /api/v1/agents/discovery-extensions/state-counts |
view_agents |
Present extension identities by account decision |
GET /api/v1/agents/extension-decisions?limit=[&agent_kind=&extension_kind=&extension_id=] |
view_agents |
Recent decisions, newest first (at most 500); with all three keys, one extension's history |
GET /api/v1/agents/discovery-devices[?person_id=] |
view_agents |
Reporting devices with name, machine details, people (e-mail needs view_users) and agents |
GET /api/v1/agents/discovery-devices/{fingerprint} |
view_agents |
One device |
PUT /api/v1/agents/discovery-devices/{fingerprint}/label |
manage_agents |
Sets or clears the device label; audited (discovery_device_label) |
GET /api/v1/agents/agent-inventory |
view_agents |
Agent types seen or decided, each evaluated: verdict, versions, devices |
PUT /api/v1/agents/agent-approvals/{agent_kind} |
manage_agents |
Sets approval_state, min_version, blocked_versions, note; audited |
GET /api/v1/agents/agent-decisions?limit= |
view_agents |
Recent agent-type decisions, newest first (at most 500) |