Safety pipeline
The model has no wire to execution. Everything it wants done is a proposal, and every proposal passes the same deterministic steps:
-
Structural validation. Is the proposal well-formed?
-
Semantic validation. Is
methodone of this bundle’s capabilities? Doparamsmatch itsparams_schema? A wrong param goes back to the model with the errors; it is never executed. -
Policy gate. The capability’s approval policy, and its optional condition, resolve to one of:
Decision Meaning autoRuns now. parentThe parent agent decides (see Agent trees). humanParked until a person approves or rejects it over the API. denyRefused, and recorded. -
Execute. Only now is the capability’s handler called, with the validated
params.
Every step is written to the audit ledger.
Risk tiers
Section titled “Risk tiers”Each capability declares a risk: read_only, mutating or dangerous. The first two are labels
for readers. A dangerous capability can only be human or deny: a bundle that makes one auto or
parent is refused at load.
Conditions
Section titled “Conditions”A capability may add a CEL condition over measures, the proposal and the caller:
capabilities: - method: restart_host risk: dangerous approval: human condition: "m.disk_pct_avg > 95 && action.params.confirm == true"Approval
Section titled “Approval”A parked proposal is released only by POST /proposals/{id}/approve (or /reject). The request
carries nothing but the caller’s token: the method and params come from what the ledger recorded.
Approval re-runs validation and the gate, so a condition that now denies still stops it. A second
approval is refused.
Read the Security model for what the gate does and does not guarantee.