Solutions
Your own checks, or a gateway
What your own checks have to cover once an agent writes to a system that matters, and when they are enough. Most teams start with checks in the agent's own code, and for many agents that is enough.
What your own checks are
Checks written by your team, in the agent or in a service next to it: an allow list, a threshold, a confirmation step, a log.
What each one has to cover
What Sefra does on each pillar, beside what your own checks have to do.
| Pillar | Sefra | Your own checks |
|---|---|---|
| No keys in the agent | Sefra holds the write credentials for the systems it fronts. Once the agent's own are revoked, a required deployment step, it has nothing to go around the gate with. | Depends on where the checks run. Inside the agent's process, the process also holds the credentials the checks are meant to guard. |
| Typed intents | The governed unit is a named business operation with a schema, not a tool call or a shell command. | Whatever you define. Usually the tool call, because that is what the framework hands you. |
| Policy on live facts | Rego on embedded OPA. Facts are read from the system of record at decision time and again before execution. | You write the lookups, and decide what happens when one is unavailable. |
| Approval of exact content | A decision is bound to a hash of the submitted plan: its steps, inputs, requester and policy version. | You build the hold, the notification, the expiry, and the link between what was approved and what runs. |
| A declared way back | Every state-changing intent declares its compensation or is marked irreversible, and a plan that could not be unwound is refused. | You write each undo, its ordering and its retries, and decide what happens when an undo fails. |
| Unknown outcomes | A timeout after the call is an explicit state that a person settles. It is never guessed. | You decide what a timeout after the call means, and who resolves it. |
| Evidence | Hash-chained in PostgreSQL and written before any write to a system of record, with a separate verifier and export. | Usually application logs. Tamper evidence and an independent verifier are extra work. |
| Packaging and footprint | Identity, approvals, audit export and replay in every tier. PostgreSQL and Temporal. Self-hosted. Nothing is sent to us. Telemetry export goes only to an endpoint you configure. | No licence and no new service. The cost is your team's time, now and each time a system changes. |
Where your own checks are better
- Fit: the checks match your system exactly.
- Nothing to adopt: no new service, vendor or deployment step.
- Speed: a single allow list can ship in an afternoon.
Which to choose
Keep your own checks when
- The agent only reads, or its writes are easy to repair by hand.
- It touches one system, in one step, so there is nothing to unwind.
- Your team would rather own this code than operate another service.
Sefra fits when
- The agent writes to systems that move money or records, where a half-done plan has a cost.
- You would rather not write and maintain each undo, its retries and its failure path.
- Someone outside the team that runs it has to be able to check the record afterwards.