Docs Give your agent tools

Compliance agent

One read-only agent that follows HIPAA, PCI DSS, SOC 2 and ISO 27001 across your clouds, clusters and code, and proves what it says.

The Compliance agent follows HIPAA, PCI DSS, SOC 2 and ISO 27001 across your clouds, clusters and code. It reads every system your organisation has connected, finds where sensitive data lives and how it can be reached, and writes a report that says, for every claim, whether it was proven from a setting or a file, or inferred. It only ever reads.

In the portal Agents › New agent, the Compliance card; then the agent's chat, setup, Settings › Details and Connections Admin creates it and sets its frameworks, viewers and approved channels. Its maintainers and named compliance viewers read its results.

What it does and never does

It reads, joins what it read into one picture (who can reach which data, through which path), labels sensitive data with your help, and reports. In code, not in its prompt, it never:

  • says your organisation is "compliant", "certified", "audit-ready" or "passes" a framework, or "guarantees" anything. A report, card or record with those words is refused;
  • changes infrastructure, settings or repositories. Every compliance tool is a read;
  • posts critical paths, resource names or findings to a channel that is not approved for compliance detail, or to a person without access;
  • lets the model decide a pass or a fail, or turn an inferred claim into a proven one;
  • counts something it could not read as fine. Unreachable is "not checked", and a resource it could not reach this time is never "fixed";
  • stores a secret value, a data row or the contents of a file in storage;
  • sends compliance detail to your Git host (no merge request comment or status);
  • obeys text found in a scanned system. Scanned text is data;
  • reproduces a standard's own text. It uses control ids and its own short words.

Create it

  1. On New agent, pick Compliance. An organisation has one Compliance agent; once it exists, the card reads Open and its name.
  2. Choose Create agent. You need both manage_compliance and manage_agents, which admins hold.
  3. You land in its chat. It lists what it can reach and through which agent, and what is named in your know-how but not connected (the coverage picture).
  4. Pick the frameworks it follows: HIPAA, PCI DSS 4.0.1, SOC 2 and ISO/IEC 27001:2022. They are the first setup step and stay on Settings › Details. A scan is refused until at least one is picked.
  5. Start the first scan from the setup's First goal step, or say goal: scan it in its chat.
Careful

Creating the agent is the consent for it to read, read only, through every connection in the organisation, whichever agent holds it. There is no per-connection switch.

What it reaches

It readsThrough
Every AWS accountThe connection of the agent that holds it, read operations only. Never GetSecretValue, GetParameter* or object reads.
Every Kubernetes clusterThe holding agent's connection, through three read tools only: list namespaces, list resources, get a resource. Secret values are dropped.
Every GitHub installationThe organisation's GitHub App: branch protection, collaborators, deploy keys, members without two-factor sign-in, environments and workflows.
Every repository linked to any agentThe repository's own SSH key, fetch only: Terraform, CI files, SQL migrations and dependency files.
Connections made on the Compliance agent itselfIts own connection, with the read-only roles below.

A system reached by several connections is read once. Keys never move: each read is made from the holding connection, and the Compliance agent never appears on another agent's connection. Every other agent's Connections tab shows one line saying the Compliance agent reads it. Every read is recorded: one trace step per chunk of calls and one audit event per system per scan, with the calls made and what could not be read.

Its own Connections tab and the setup's Reach step list each system, the agent and connection it reads through, and what is not covered. In an organisation with a runner, Git host and dependency-advisory calls go through the runner too. Dependency checks against OSV.dev skip your private package scopes, and an organisation that turned OSV.dev off is not checked.

Read roles to grant

A read the role refuses shows as "not reachable" with the permission that would reach it. Grant these to the identity behind each connection. The files are in the repository under deploy/compliance/.

SystemGrant
AWSThe managed policies SecurityAudit and ViewOnlyAccess (ReadOnlyAccess also works). See deploy/compliance/aws-policy.md.
Google Cloudroles/iam.securityReviewer, roles/cloudasset.viewer, roles/viewer and roles/logging.viewer. See deploy/compliance/gcp-roles.md. Google Cloud scans come in a later release.
KubernetesThe read-only cluster role in deploy/compliance/k8s-read-role.yaml (get and list, no watch, no custom resources), with the MCP server run as kubernetes-mcp-server --read-only --toolsets core --list-output yaml.
GitHubThe App's Administration, Members and Actions read permissions. See Connect your Git host.

Scans

A scan is a goal. A plain chat turn cannot start one: it answers "A scan runs as a goal". Only a person who can see compliance results may start one, because a scan's output is a map of what an attacker would want.

  • By default a scan reads everything it reaches. Ask for less ("just prod", "only the payments repositories") and it reads only those, and its report says what was left out.
  • It reads in bounded chunks and resumes where it stopped after a restart. A system removed during the scan stops at its next chunk.
  • For a nightly scan, the setup's First goal step links to the schedule form prefilled for 02:00. A scheduled scan's report goes to the agent's first approved compliance channel, or, with none, the one line goes to its default channel and the report waits in the schedule's portal conversation. See Schedules.
  • After a scan it may ask the agents that hold a system what it is for (at most six per scan). Their answers are marked "said by" that agent and stay inferred.

Proven and inferred

Every fact, label, path and finding is either proven (read from a setting, a file and line, or an API answer the portal stored) or inferred (the model's reading, which always cites the facts it rests on). The portal writes proven facts; the model can only add inferred ones, and the agent's tool refuses an inferred record with no valid citation.

When it finds data that looks sensitive (a column named patient_id, a bucket tagged pii) it proposes a label and asks you. Reply on a line of its own:

  • label 3 yes confirms proposal 3;
  • label 4 no not patient data rejects proposal 4, with the reason, which is required.

The reply is read in code, not by the model, and works in the portal chat and in a channel thread. Only a person who can see compliance results may decide; an unlinked channel sender cannot.

Check your own requirements with a checklist

A checklist turns a list of requirements (a customer's security questionnaire, your own policy, an auditor's list) into items the agent checks on every scan. The portal, not the model, decides whether each tested item passes.

  1. Paste or attach the requirements in the Compliance agent's chat and ask it to write a checklist.
  2. The agent drafts a skill named checklist-<name> holding a file checklist.md, checks it, and proposes it as a know-how change. It can propose changes to its own checklist skills only.
  3. A maintainer or an admin reviews the change and applies it, as for any change the agent proposes (see Chat in the portal). Saving the skill is the approval. A checklist with a mistake is refused, naming the line.
  4. Start a scan. By default it runs every checklist the agent holds; name some ("only the vendor checklist") to run just those.

Each item in a checklist is one claim, checked one of three ways:

ItemWho decidesResult
testThe portal, by running the item's test on the AWS answers the scan keptPassing, Failing or Not checked
personA person, from what the item asks for (training records, a signed policy)Needs a person
judgeThe agent, from what it read, citing itJudged by the agent, or Not judged yet

A tested item is Not checked, never Passing, when a read it needs was refused, did not answer, was cut short, or a value it compares is missing or of the wrong kind (a test of == true on the word "yes"). Many AWS services answer every value as text ("true", "14"); a test reads those as the true, false or number it compares with. A scan narrowed to leave an AWS account out shows that account's tested items as Not checked, never Passing, so an item can only pass when every account in reach was read. Not checked items say which permission would let the read through ("Grant lambda:GetFunctionUrlConfig to read this"), and the report lists them under Grant these to check more. A result says what changed since the last scan of the same checklist: new for a first result, and, for a result that was passing or failing before, same, fixed or broke. A checklist item is not a finding: it shows under its controls beside the findings.

The agent holds an example, checklist-example, that shows the whole format. It never runs unless a scan names it. A short checklist looks like this:

title  Vendor security questions
frameworks soc2

## reads
read trails  aws cloudtrail DescribeTrails

## items
item V1 | Every audit trail covers all regions | soc2 CC7.2
  test trails  each trailList[] : IsMultiRegionTrail == true

item V2 | Staff are trained on security every year
  person  training records for the last 12 months

## report
Start with a table of all items and their results.

A checklist can only name read operations the agent may call. An operation that changes something, returns a secret, or returns log entries or records refuses the scan's start, naming the line. Google Cloud reads in a checklist come in a later release. An S3 read covers every bucket of the account, whatever regions the checklist names.

Kept proof and Verify

A scan keeps the whole answer of every read its checklists name, with secret values blanked, as proof. When the agent calls aws_call or gcp_call itself during a scan's goal, or another agent it asks makes such a call, that answer is kept on the scan too, and the answer says Kept as proof r_… so the agent can cite it. Log and record reads are never kept; their answer says so.

Ask the agent to verify a finished scan. The portal re-runs every test on the kept answers and checks that none was changed, with no new call to your systems, and answers, for example, "Verified: 12 of 12 results re-derived from kept reads, 40 reads intact." Any mismatch is listed. Anyone who can see compliance results can ask, in a goal or a plain chat. To check again after a fix, run a new scan with the same checklists.

Kept reads stay 90 days after the scan ends, and always for the newest two ended scans of the agent. After that a scan keeps its item results but not the reads, so Verify on it answers "reads pruned; results cannot be re-derived" and the last Verify outcome stored on the scan stays as it was. Verify a scan you need to show an auditor within 90 days of its end, and keep its report.

Who sees what

Admins, the agent's maintainers and the people named under Compliance viewers on Settings › Details can see results (view_compliance). The portal decides each answer's detail before the turn starts:

WhereWho asksGets
Portal chatSomeone who can see compliance resultsFull detail, files and the map
Portal chatAnyone elseThe one line, and "ask an admin to add you as a compliance viewer"
A one-to-one DM in Slack, Discord or TeamsA sender linked to a portal account that can see resultsFull detail and files
A one-to-one DMAnyone elseThe one line
A channel approved for compliance detailAnyone in itFull detail and files
Any other channel, thread or group chatAnyoneThe one line, no names, no files
Chat APIAny keyThe one line. End-user turns get no compliance tools.

The one line has counts only, for example "Compliance scan finished: 3 critical paths, 41 findings", and ends "Details are shared only in approved channels, DMs or on Entropix." A line-level answer also says how to get the detail: an admin adds compliance viewers on the agent's Settings tab (with its link), and admins, the agent's maintainers and compliance viewers start a scan from Entropix. It names these roles, never people, and the agent answers a question about access or scans from it. A group chat in Teams or Discord is never a DM. Before posting a line-level answer, the portal checks it for any name from the latest scan and, if it finds one, sends the one line and the access line instead. A short common name (such as prod) makes that happen more often than needed; the log names the match.

To approve a channel, an admin uses the Approved for compliance detail switch on the agent's Connections › Channels. See Channels.

Restricted conversations

The first time a compliance tool answers at full detail in a conversation, the conversation becomes restricted, and stays so. A scheduled scan's conversation, the one made at creation and a helper agent's conversation started by the Compliance agent are restricted too. For anyone who cannot see compliance results, a restricted conversation, its files, its traces and its rows on the agent's runs and activity pages do not exist (they answer "not found"), and they cannot post into it. Home and Activity show its goal ends as counts only. See Chat in the portal.

The report

The agent attaches the report to its answer as one HTML file (CSV or Markdown too when you ask), rendered from stored rows. One goal runs one scan; a region that does not answer is skipped and named once. The model supplies only its short narrative paragraphs.

SectionWhat it holds
CoverOrganisation, agent, scan, dates, frameworks, and whether the scan was done or partial
1 SummaryCritical paths, findings by level, new, fixed and still open, and what to fix first
ChecklistsWhen checklists ran: per checklist, each item with how it is checked, its result, what changed and its proof; then each failing item's failing resources. The sections after it move down one number.
2 What mattersSensitive data found and where, systems in scope and why, and the map
3 Critical pathsP-n: each step from the internet to labelled data, proven or inferred, with evidence
4 Findings by controlF-n grouped by framework control, with resource, evidence, level and fix
5 Needs a personControls no system can show, such as policies and training
6 Changes since last scanNew, fixed, still open and not reached, with why
7 MethodWhat was read, through which connection, calls, times, what was not reachable and the permission that would reach it, and caps hit; with checklists, the checklists run, the reads kept, the permissions to grant and the Verify line

The HTML file has no script and a print sheet, so you can print it to PDF from the browser. Open the report shows it in a tab; downloading it needs view_compliance. There is no score per control: a checklist's items are tested one by one. Ask for the checklist report too and you get one Markdown file in the shape the checklist's ## report part asks for: the agent's words first, under a heading that says the portal did not check them, then the portal's own item table and proof.

After a scan, ask follow-ups such as "critical paths", "HIPAA", "fix 1", "F-12", "what changed" or "who can reach <bucket>". It answers from the latest scan without starting a new one unless you ask.

Limits

ItemLimit
Compliance agentsOne per organisation; one running scan at a time
Calls per scan5,000 per cloud account, 3,000 per cluster, 2,000 per Git host, at most 400 repositories; four systems read at once
A chunk500 calls or 4 minutes
A stuck scanMarked failed after 2 hours with no progress
Goal limits200 rounds, 4,000,000 tokens, 120 minutes by default (change on Settings › Goals)
ReportHTML up to 3 MiB (the top 500 findings), CSV up to 1 MiB, Markdown up to 512 KiB; a channel upload up to 1 MiB, else a link
Checklists10 per agent (the example not counted), 300 items and 200 reads each, 64 KiB per file; a read repeated over another read's values at most 200 times per region
Kept proof4,000 answers and 64 MiB per scan, 256 KiB per answer; past that an answer is marked cut short and its items are Not checked
KeptThe full picture for the newest 2 scans; kept reads 90 days after the scan ends (always for the newest 2); findings and scan rows for 400 days
Careful

Files posted to Slack, Discord or Teams stay in that workspace after the portal's 90 days and after you revoke a channel's approval. Revoking stops new posts only.