Skip to content

Quick start: UK agentic checks (beta)

Run the eight UK agentic checks on your own agents in about ten minutes. The pack reports what your manifest and repository declare. It is not legal advice, an audit or a certification, and its wording is pending legal review.

1. Install

Bash
pip install --upgrade "opencomplai==0.18.0"
opencomplai --version

2. Try the demo first

The demo is in the public repository.

Bash
git clone https://github.com/Opencomplai/opencomplai.git
cd opencomplai/examples/uk-agentic-demo/before
opencomplai check --gate UK_AGENTIC --scan --with-gaps
echo $?
cd ../after
opencomplai check --gate UK_AGENTIC --scan --with-gaps
echo $?

Both runs exit 0: in the beta UKA-01 never fails the gate. In before/, the UK section of the output reads:

Text Only
UK_AGENTIC (beta) gate: passed (fail_on missing)
  UKA-01  WARN  Approval gate or value limit for money and credit actions [warn-only] (unclassified_money_tool)
  UKA-02  PASS  Agent action logging
  UKA-03  PASS  Agent inventory and mandates
  UKA-04  PASS  Stop control
  UKA-05  N/A   AI disclosure for consumer-facing agents
  UKA-06  PASS  Accountable owner [warn-only]
  UKA-07  PASS  Model provider fallback [warn-only]
  UKA-08  N/A   Approval references for approval-gated tools [warn-only]

The demo agent's refund_customer tool has no action_class, no approval gate and no limit, so UKA-01 shows a warning. UKA-01 is warn-only in the beta, so the run still exits 0. The only change in after/ is the UKA-01 fix: "action_class": "payment" and "requires_approval": true on the tool. No limit is needed: the approval gate alone clears the warning. In after/, UKA-01 reads PASS, and so does UKA-08 (the tool now requires approval and its logged actions carry an approval reference); the other lines are unchanged. N/A means nothing is in scope for that check. PASS means declared, not verified.

--gate UK_AGENTIC adds UK_AGENTIC as a target by itself, so the demo needs no compliance_targets entry.

3. Describe your agents

If your manifest has no agent_inventory yet, see Agents. Then add the UK fields your agents need:

If the agent… Add
can pay, refund, lend, trade or transfer action_class on the tool, and requires_approval: true or a mandate limit
has any tool with side effects logging.decision_log_ref, a mandate, a stop_control
talks to consumers consumer_facing: true and disclosures
any agent autonomy, accountability roles, a fallback model

Field details: UK agentic manifest fields.

All the new fields are optional. You do not need to add UK_AGENTIC to compliance_targets when you gate on it: --gate UK_AGENTIC adds it. To see UKA rows without a gate, add it to compliance_targets or pass --target (which replaces the manifest's targets, so list EU_AI_ACT too).

4. Look before you gate

Bash
opencomplai agents check
opencomplai check --scan --with-gaps --target EU_AI_ACT --target UK_AGENTIC

agents check finds inventory errors that would make UKA-03 Missing. check --with-gaps lists every UKA row without changing the exit code. Fix the Missing rows first. Partial is the best a row can read: it means "declared, not verified". A check with nothing in scope prints N/A. Without --scan, UKA-03 adds the warning scan_not_run, because it cannot look for undeclared agents. If you have approval-gated tools but supply no decision log (--agent-log), UKA-08 prints NOT EVALUATED.

5. Gate in CI

Add an opencomplai.yaml at the repository root:

YAML
gate:
  frameworks: [UK_AGENTIC]
  fail_on: missing

Then run the check with --scan and --with-gaps, in the GitHub Action or any CI:

YAML
- uses: Opencomplai/opencomplai-action@v1
  with:
    manifest: system-manifest.json
    with-gaps: "true"
    args: --scan

or opencomplai check --manifest system-manifest.json --scan --with-gaps --scan-mode ci. The gate reads opencomplai.yaml; --scan runs the code scan that UKA-03 uses, and --scan-mode only sets the exit-code policy.

Keep the default fail_on: missing (recommended). With partial, a fail-capable check (UKA-02 to UKA-05) that shows WARN also fails the build; a check showing PASS never fails, at any level (PASS means declared, not verified). UKA-01 (in the beta) and UKA-06 to UKA-08 never fail the gate.

In the beta only UKA-02 to UKA-05 can fail the build. UKA-01, 06, 07 and 08 are warn only; UKA-01 may be promoted later for classified money tools. UK waivers are GA only: in the beta an excluded entry for a UK check is rejected when the manifest loads (exit 2).

6. Show your customers

Bash
opencomplai agents report --profile uk --format markdown --output agents-uk.md

--profile uk prints a one-page summary of each agent's autonomy, tools, limits, stop control, disclosures, owners and UKA results, for your customer's accountable executive. Formats are markdown and json; PDF is not in 0.17.0 or 0.18.0. Without --scan-report, UKA-03 in the report carries the warning scan_not_run.

Next