Skip to main content
Goal: a tool call in your agent → judged for compliance risk → blocked, rewritten, or allowed. You need Python 3.11+ and an API key. Sign up at platform.tenetlabs.com and select View key on the dashboard (details).
1

Install

2

Authenticate

If Tenet issued you M2M credentials, set TENET_CLIENT_ID and TENET_CLIENT_SECRET instead. See Authentication.
3

Gate a tool call

Pick your integration:
4

See it on the platform

Open the dashboard at platform.tenetlabs.com. The call is listed under Recent decision traces and on Decision traces, with its verdict. It can take a few seconds to appear.
5

Read the verdict

The canonical decide endpoint is POST /decide on judge.tenetlabs.com.A direct HTTP call looks like:
Response shape:
Through the SDK, the same response surfaces as:
The top-level fields are the merged most-restrictive judgment across enforcing domains — an integration that branches only on verdict and severity is safe by construction. Read findings[] when you want per-domain audit logs or visibility into audit-only signals. Full rules: Multi-verdict responses.Why did it decide that? Each finding carries rule_ids and evidence_span — see How the Judge decides.

Defaults you should know

  • Judge: hr-1 (EEO/HR compliance) — the only judge served by judge.tenetlabs.com today. Any other TENET_JUDGE_ID raises JudgeUnavailableError rather than silently 404ing.
  • Surface: resume_triage — the client default. Right for the screening examples above; wrong as a hardwired value for everything else. When your product also drafts job ads, ranks candidates, writes interview questions, or composes outreach, set surface= per request — see Surfaces.
  • Timeout: 3.0s per call. Guard hits return without a model call; other requests wait on one judge call. Read latency_ms on your responses to size the timeout for your traffic.
  • Failure mode: fail-closed. Unreachable judge → JudgeUnavailableError, never a silent allow. Override per-policy if a tool is read-only and low-risk — see Policies.

Next