Layer 6 · governance
authority
What may happen. A grant lets a principal or an agent revision perform an action class on a scope until it expires, as a standing permission, a standing approval requirement or a standing prohibition, with its conditions and exclusions; a budget caps tokens, money, wall time, tool calls or model calls of a principal, an agent revision, a run, a route or a process, for its whole life or per call, day or month in its timezone, under a parent budget when it names one, and a reset opens its next window; a reservation holds an amount of a budget before a paid step and is booked or released after it, and a cost already paid past a limit is recorded as an overrun; a decision answers one request with a verdict, who decided, under which delegation and on which grant. Default deny: a request no grant covers is refused with a named error, never allowed by silence.
Depends on
- harness · layer 4 · 10 references
- store · layer 3 · 12 references
- delegation · layer 1 · 12 references
- principal · layer 1 · 19 references
- shared · layer 0 · 21 references
Used by
- channel · layer 7 · 5 references
- runtime · layer 8 · 5 references
- workspace · layer 8 · 5 references
Entities
Budget
A limit on one resource for one owner, and what was spent against it in the current window. Spent never passes the limit; a budget at its limit is Exhausted, which a Total budget stays and a windowed budget leaves when a reset opens its next window. A cost already paid past the limit is recorded as the budget's overrun, not as spent. A budget may sit under a parent budget whose limit is not below its own. Not specified yet: a child's spend is not counted in its parent's spent, and the limits of a parent's children are not summed against the parent's; either adds two stored values, which no guard states.
Identified by budget_id (BudgetId).
| field | type | meaning |
|---|---|---|
owner_kind | BudgetOwnerKind | |
owner_id | uuid | The identifier of the owner, as owner_kind says: a PrincipalId, an AgentRevisionId, a RunId, a RouteId or a ProcessId. |
resource | BudgetResource | |
window | BudgetWindow | |
window_start | timestamp | When the current window started: the instant the budget opened, then the start each reset names. Spent counts from here. |
limit | integer | |
spent | integer | |
timezone | optional string | The IANA zone name (Europe/Berlin) whose calendar a Day or Month window follows; absent, UTC. Not specified yet: nothing checks that it names a real zone; the meter that reads it does. |
parent | optional BudgetId | The budget this one sits under; its limit is not below this budget's. |
enforced_by | optional Name | The part that holds the cap, such as a gateway, by name. |
overrun_total | optional integer | The total the meter reported past the limit, for a cost already paid (RecordOverrun); spent keeps the last total within the limit. A reset leaves it as the last overrun. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
parent_budgetreferences Budget (one, byparent)
Always holds: spent >= 0, limit >= 0, spent <= limit.
Lifecycle of Budget
Exhausted.Decision
The answer to one request: its verdict, who decided it, how that is known, and the delegation it was made under. An ApprovalRequired decision stays Recorded, awaiting approval, until a human or a delegate approves or rejects it.
Identified by decision_id (DecisionId).
| field | type | meaning |
|---|---|---|
requester_kind | SubjectKind | |
requester_id | uuid | |
action_class | ToolCategory | |
act | optional Act | |
scope | string | |
verdict | Verdict | |
decider | Decider | |
attribution | Attribution | |
delegation | optional DelegationId | |
decided_at | timestamp | |
approved_by | optional Decider | |
approval_delegation | optional DelegationId | |
approved_by_principal | optional PrincipalId | The person, or the delegate, who approved the decision. |
resolved_at | optional timestamp | |
grant_id | optional GrantId | The grant the decision rests on: the one an Allow or ApprovalRequired was recorded under, or the standing prohibition a Deny names. Absent on a Deny no grant names. |
author_id | optional PrincipalId | The author of the request's subject, such as of the change it asks to merge, when the request names one. |
approver_rule | optional ApproverRule | The approver rule of the grant the decision was recorded under, as the request names it. |
named_approver | optional PrincipalId | The named approver of that grant, as the request names it. |
record_id | optional RecordId | The store record a request of action class Delete asks to delete. Its approval deletes the record (binding delete-record-on-approval); its rejection leaves the record present. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
grantreferences Grant (one, bygrant_id)decided_underreferences Delegation of delegation (one, bydelegation)approved_underreferences Delegation of delegation (one, byapproval_delegation)approved_by_personreferences Principal of principal (one, byapproved_by_principal)authorreferences Principal of principal (one, byauthor_id)rule_approverreferences Principal of principal (one, bynamed_approver)recordreferences Record of store (one, byrecord_id)
Lifecycle of Decision
Approved, Rejected.Grant
A principal or an agent revision may perform an action class, or one act of it, on a scope until the grant expires or is revoked; a grant with no expiry stands until it is revoked. Not specified yet: a scope is matched by equality of its text; prefix, glob or path-tree matching belongs to the evaluator that mints scopes, and a request names the grant's scope it falls in and, as its cases, the narrower item it acts on.
Identified by grant_id (GrantId).
| field | type | meaning |
|---|---|---|
grantee_kind | SubjectKind | |
grantee_id | uuid | A PrincipalId or an AgentRevisionId, as grantee_kind says. |
action_class | ToolCategory | |
act | optional Act | The one act of the action class the grant covers; absent, it covers every act of it. |
scope | string | |
expires_at | optional timestamp | When the grant ends; absent, it is open-ended and stands until it is revoked. |
granted_by | PrincipalId | |
granted_at | timestamp | |
effect | Verdict | Allow lets the action happen without asking; ApprovalRequired lets it happen once approved; Deny is a standing prohibition, under which no Allow or ApprovalRequired decision is recorded. |
condition | optional Condition | A condition over state outside the request under which the grant applies, such as the pipeline running, pending or succeeded, in the form a trigger's condition has. Not specified yet: DecideRequest does not evaluate it, since it reads state the request does not carry; the evaluator that names the grant checks it. |
excludes | list of Name | The cases the grant does not cover, by name, though they fall in its action class and scope: narrower scopes and flags of a subject. A request that names one of them among its cases is not covered. |
approver_rule | optional ApproverRule | Who approves a request decided under the grant; absent, any human, or a delegate whose delegation covers approval, approves. |
named_approver | optional PrincipalId | The one person who approves under the approver rule NamedPrincipal. |
attribution | optional Attribution | How it is known that the grantor issued the grant. |
supersedes | optional GrantId | The earlier grant this one replaces; revoking that one is a separate command. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
grantorreferences Principal of principal (one, bygranted_by)approverreferences Principal of principal (one, bynamed_approver)supersededreferences Grant (one, bysupersedes)
Lifecycle of Grant
Revoked.Reservation
Money, or another resource, reserved against a budget before a paid step runs, then booked at what the step cost or released when it did not run. Amounts are in the budget's unit (micro-USD for Money). The meter's RecordSpend still records the budget's total. Not specified yet: a reservation past the budget's headroom (spent plus the open reservations plus the amount, over the limit) is not refused; that adds stored values, which no guard states.
Identified by reservation_id (ReservationId).
| field | type | meaning |
|---|---|---|
budget_id | BudgetId | |
step | string | The paid step the amount is reserved for. |
reserved | integer | |
booked | optional integer | The amount booked once the step ran; absent while reserved and once released. |
basis | optional SpendBasis | What the booked amount rests on. |
reserved_at | timestamp | |
ended_at | optional timestamp | When the reservation was booked or released. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
budgetreferences Budget (one, bybudget_id)
Lifecycle of Reservation
Booked, Released.Commands
ApproveDecision
Approve a pending decision. Only a human, or a delegate whose delegation scope covers approval, approves: a delegate names an active delegation (agentic.delegation) whose action is Approve. Under a grant with an approver rule, only the person the rule admits approves: the named approver, a person other than the requester, or a person other than the author.
Called by: Steward.
| field | type | meaning |
|---|---|---|
decision_id | DecisionId | |
approver | Decider | |
approver_principal | PrincipalId | The person, or the delegate, who approves. |
delegation | optional DelegationId | |
tool_call_id | optional ToolCallId | The harness tool call the approved request is for, when it is one. Not specified yet: nothing checks that it is the tool call the decision was recorded for; a value read from the stored decision left the binding that decides the call without a scenario (ESS-SYNTH-010), so the approver names it again. |
record_id | optional RecordId | The store record the approved request asks to delete (the decision's record_id), which the approval deletes through the binding delete-record-on-approval. The approver names it again, as for tool_call_id (read from the stored decision, it left the binding without a scenario); an approval naming another record than the decision's is refused (names-other-record). |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
approver-not-permitted refused | approver != Human and approver != Delegate | Approver: Only a human, or a delegate whose delegation covers approval, may approve, and under a grant with an approver rule only the person the rule admits. |
delegation-required refused | approver == Delegate and not (defined(delegation)) | Delegation: A Delegate acts under a delegation; none was named. |
no-such-decision refused | no such Decision | Decision |
not-awaiting-approval refused | verdict != Approval | Decision: The decision is an Allow or a Deny; nothing awaits approval. |
names-other-record refused | defined(record_ | Approval: The approval names another store record than the one the decision was recorded for, so it would delete a record nobody asked to delete; the decision still awaits approval. |
requester-cannot-approve refused | defined(approver_ | Approver: Only a human, or a delegate whose delegation covers approval, may approve, and under a grant with an approver rule only the person the rule admits. |
not-named-approver refused | defined(approver_ | Approver: Only a human, or a delegate whose delegation covers approval, may approve, and under a grant with an approver rule only the person the rule admits. |
author-cannot-approve refused | defined(approver_ | Approver: Only a human, or a delegate whose delegation covers approval, may approve, and under a grant with an approver rule only the person the rule admits. |
unknown-delegation refused | no Delegation for delegation | Unknown: No delegation of this identity was granted. |
scope-lacks-approval refused | the Delegation of delegation has (action != Approve or state != Active) | Delegation: The delegation is not an active delegation of approval, so it does not cover approval. |
approved | otherwise | moves the Decision Recorded → Approved; emits Approval |
wrong-state refused | the Decision is in a state that does not allow it | Decision: The decision is not awaiting approval. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
BookReservation
Book a reservation. The step ran: the meter books what it cost, measured or, when nothing measured it, the amount reserved. The meter's RecordSpend still records the budget's total.
Called by: Meter.
| field | type |
|---|---|
reservation_id | ReservationId |
booked | integer |
basis | SpendBasis |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-reservation refused | no such Reservation | Reservation |
booked | otherwise | moves the Reservation Reserved → Booked; emits Reservation |
wrong-state refused | the Reservation is in a state that does not allow it | Reservation: The reservation is no longer Reserved; it was booked or released. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
DecideRequest
Decide a request. Records an Allow or an ApprovalRequired verdict for one request, under the grant that covers it. Without an active grant the command is refused: default deny. A Deny is recorded by DenyRequest, which needs no grant. An ApprovalRequired decision awaits approval until approved or rejected; under a grant whose effect is ApprovalRequired an Allow is refused. A grant covers the request only when its grantee, action class and scope equal the request's, its act (when it names one) is the request's, none of the request's cases is among its exclusions, and it has not expired at the request's instant (a grant with no expiry never does); any other grant is refused as no grant covering it. A request to delete a store record names the record and has action class Delete; it is recorded only as ApprovalRequired, and its approval deletes the record. Not specified yet: the grant's condition is not evaluated here, since it reads state the request does not carry; the evaluator that names the grant checks it.
Called by: Authority.
| field | type | meaning |
|---|---|---|
grant_id | GrantId | |
requester_kind | SubjectKind | |
requester_id | uuid | |
action_class | ToolCategory | |
act | optional Act | The act the request asks for, when its action class has acts a grant tells apart. |
scope | string | |
cases | list of Name | What the request is on, narrower than its scope, by name: the item it acts on and the flags of its subject (group-a/x, draft). A grant whose exclusions name one of them does not cover the request. |
verdict | Verdict | |
decider | Decider | |
attribution | Attribution | |
delegation | optional DelegationId | |
tool_call_id | optional ToolCallId | The harness tool call the request is for, when it is one. |
record_id | optional RecordId | The store record the request asks to delete, when it is a request to delete one. |
author_id | optional PrincipalId | The author of what the request acts on, such as of the change it asks to merge; under a grant whose approver rule is NotAuthor, the author does not approve the request. |
approver_rule | optional ApproverRule | The approver rule of the grant, named again by the authority that decides the request; the decision records it and ApproveDecision holds the approver to it. Not specified yet: nothing checks that it is the grant's; read from the grant (a related value) or compared with it, ESS 0.99.22 arranges no decision awaiting approval, and ApproveDecision and the binding allow-tool-call-on-approval lose every scenario (ESS-SYNTH-003). |
named_approver | optional PrincipalId | The named approver of the grant, named again with approver_rule. |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
verdict-is-deny refused | verdict == Deny | Deny: A Deny is recorded by DenyRequest, not DecideRequest. |
delegation-required refused | decider == Delegate and not (defined(delegation)) | Delegation: A Delegate acts under a delegation; none was named. |
record-without-delete refused | defined(record_ | Record: A request that names a store record asks to delete it, so its action class is Delete. |
delete-allowed refused | defined(record_ | Delete: A request to delete a store record is never allowed outright: it is recorded as ApprovalRequired, and only its approval deletes the record. |
no-such-grant refused | no Grant for grant_ | No: No active, unexpired grant covers the requester, the action class and the scope. Default deny: an Allow or an ApprovalRequired verdict needs a grant under it. |
grant-not-active refused | the Grant of grant_ has state != Active | No: No active, unexpired grant covers the requester, the action class and the scope. Default deny: an Allow or an ApprovalRequired verdict needs a grant under it. |
grant-does-not-cover refused | the Grant of grant_ has (grantee_ | No: No active, unexpired grant covers the requester, the action class and the scope. Default deny: an Allow or an ApprovalRequired verdict needs a grant under it. |
grant-forbids refused | the Grant of grant_ has effect == Deny | Grant: The grant named is a standing prohibition (effect Deny); nothing is allowed under it. |
grant-requires-approval refused | the Grant of grant_ has effect == Approval | Grant: The grant named lets the action happen only once approved (effect ApprovalRequired); an Allow is not recorded under it, an ApprovalRequired verdict is. |
recorded | otherwise | creates a Decision in Recorded; emits Decision |
More columns: swipe horizontally, or focus the table and use the arrow keys.
DenyRequest
Deny a request. Records a Deny. It needs no grant, because denying is always safe.
Called by: Authority.
| field | type | meaning |
|---|---|---|
requester_kind | SubjectKind | |
requester_id | uuid | |
action_class | ToolCategory | |
act | optional Act | |
scope | string | |
decider | Decider | |
attribution | Attribution | |
delegation | optional DelegationId | |
grant_id | optional GrantId | The standing prohibition the denial rests on, when one does. |
tool_call_id | optional ToolCallId | The harness tool call the request is for, when it is one. |
record_id | optional RecordId | The store record the request asked to delete, when it is a request to delete one; a denial leaves it present. |
author_id | optional PrincipalId | The author of what the request acts on, when it names one (see DecideRequest). |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
delegation-required refused | decider == Delegate and not (defined(delegation)) | Delegation: A Delegate acts under a delegation; none was named. |
denied | otherwise | creates a Decision in Recorded; emits Decision |
More columns: swipe horizontally, or focus the table and use the arrow keys.
GrantAuthority
Grant authority.
Called by: Steward.
| field | type | meaning |
|---|---|---|
grantee_kind | SubjectKind | |
grantee_id | uuid | |
action_class | ToolCategory | |
act | optional Act | |
scope | string | |
expires_at | optional timestamp | When the grant ends; left out, the grant is open-ended and stands until revoked. |
granted_by | PrincipalId | |
effect | Verdict | |
condition | optional Condition | |
excludes | list of Name | |
approver_rule | optional ApproverRule | |
named_approver | optional PrincipalId | The one person who approves, required under the approver rule NamedPrincipal. |
attribution | optional Attribution | |
supersedes | optional GrantId | |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
already-expired refused | defined(expires_ | Grant: A grant must expire after the instant it is made. |
named-approver-required refused | defined(approver_ | Named: A grant whose approver rule is NamedPrincipal names its approver. |
granted | otherwise | creates a Grant in Active; emits Grant |
More columns: swipe horizontally, or focus the table and use the arrow keys.
OpenBudget
Open a budget.
Called by: Steward.
| field | type | meaning |
|---|---|---|
owner_kind | BudgetOwnerKind | |
owner_id | uuid | |
resource | BudgetResource | |
window | BudgetWindow | |
limit | integer | |
timezone | optional string | The IANA zone name a Day or Month window follows; left out, UTC. |
parent | optional BudgetId | The budget this one sits under, when it sits under one. |
enforced_by | optional Name | The part that holds the cap, such as a gateway, when one does. |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
negative-limit refused | limit < 0 | Negative |
no-such-parent refused | no Budget for parent | Budget |
child-over-parent refused | the Budget of parent has limit < input. | Child: A budget under a parent caps no more than its parent; the limit asked for is above the parent's. |
opened | otherwise | creates a Budget in Open; emits Budget |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordOverrun
Record an overrun. The meter reports a total past the limit of an Open budget, for a cost already paid, such as a call admitted with 1 left that cost 10. The budget is Exhausted and records the total as its overrun; spent keeps the last total within the limit. RecordSpend still refuses a total past the limit before a call is admitted.
Called by: Meter.
| field | type |
|---|---|
budget_id | BudgetId |
spent_total | integer |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-budget refused | no such Budget | Budget |
no-overrun refused | input. | No: The reported total is not past the budget's limit, so it is spend (RecordSpend), not an overrun. |
overran | otherwise | moves the Budget Open → Exhausted; emits Budget, Budget |
wrong-state refused | the Budget is in a state that does not allow it | Budget |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordSpend
Record spend. The meter reports the cumulative total spent. Not specified yet: the command carries the new total, not the amount; the meter is the one that adds. ESS 0.99.17 stores a sum (spent: {expr: "subject.spent + input.amount"}), but no guard compares one: a predicate's left side is a field and its right side a field or a literal offset, so spent + input.amount > limit (OverLimit) and == limit (exhausted) cannot be stated.
Called by: Meter.
| field | type |
|---|---|
budget_id | BudgetId |
spent_total | integer |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-budget refused | no such Budget | Budget |
over-limit refused | input. | Over: The reported total would pass the budget's limit; nothing was recorded. |
regressed refused | input. | Spend: A total below what is already recorded; spending only grows. |
exhausted | input. | moves the Budget Open → Exhausted; emits Spend, Budget |
recorded | otherwise | moves the Budget Open → Open; emits Spend |
wrong-state refused | the Budget is in a state that does not allow it | Budget |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RejectDecision
Reject a pending decision. Rejecting is always safe, so any decider may reject.
Called by: Steward.
| field | type | meaning |
|---|---|---|
decision_id | DecisionId | |
rejecter | Decider | |
tool_call_id | optional ToolCallId | The harness tool call the rejected request is for, when it is one (see ApproveDecision). |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-decision refused | no such Decision | Decision |
not-awaiting-approval refused | verdict != Approval | Decision: The decision is an Allow or a Deny; nothing awaits approval. |
rejected | otherwise | moves the Decision Recorded → Rejected; emits Approval |
wrong-state refused | the Decision is in a state that does not allow it | Decision: The decision is not awaiting approval. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ReleaseReservation
Release a reservation. The step did not run; the meter releases what was reserved for it.
Called by: Meter.
| field | type |
|---|---|
reservation_id | ReservationId |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-reservation refused | no such Reservation | Reservation |
released | otherwise | moves the Reservation Reserved → Released; emits Reservation |
wrong-state refused | the Reservation is in a state that does not allow it | Reservation: The reservation is no longer Reserved; it was booked or released. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ReserveSpend
Reserve spend. The meter reserves an amount of a budget before a paid step runs. Not specified yet: a reservation past the budget's headroom is not refused (see Reservation).
Called by: Meter.
| field | type |
|---|---|
budget_id | BudgetId |
step | string |
amount | integer |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-budget refused | no Budget for budget_ | Budget |
reserved | otherwise | creates a Reservation in Reserved; emits Spend |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ResetBudget
Reset a budget. The meter opens the next window of a Call, Day or Month budget: the budget names the new window's start, its spent count is 0, and an Exhausted budget is Open again. Which instant a window opens at is the meter's, by the budget's timezone (UTC when it names none).
Called by: Meter.
| field | type |
|---|---|
budget_id | BudgetId |
window_start | timestamp |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-budget refused | no such Budget | Budget |
not-windowed refused | window == Total | Budget: A Total budget has one window for its owner's whole life; it is never reset. |
window-not-after refused | input. | Window: The window a reset names does not start after the budget's current window. |
reset | otherwise | moves the Budget Exhausted, Open → Open; emits Budget |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RevokeGrant
Revoke a grant.
Called by: Steward.
| field | type |
|---|---|
grant_id | GrantId |
revoked_by | PrincipalId |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-grant refused | no such Grant | Grant |
revoked | otherwise | moves the Grant Active → Revoked; emits Grant |
wrong-state refused | the Grant is in a state that does not allow it | Grant |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Events
| event | fields | emitted by |
|---|---|---|
ApprovalGranted | decision_ DecisionId, approver Decider, approver_ PrincipalId, delegation optional DelegationId, tool_ optional ToolCallId, record_ optional RecordId, at timestamp | Approve |
ApprovalRejected | decision_ DecisionId, rejecter Decider, tool_ optional ToolCallId, at timestamp | Reject |
BudgetExhausted | budget_ BudgetId, at timestamp | Record, Record |
BudgetOpened | budget_ BudgetId, owner_ BudgetOwnerKind, owner_ uuid, resource BudgetResource, window BudgetWindow, window_ timestamp, limit integer, timezone optional string, parent optional BudgetId, enforced_ optional Name, at timestamp | Open |
BudgetOverran | budget_ BudgetId, spent_ integer, at timestamp | Record |
BudgetReset | budget_ BudgetId, window_ timestamp, at timestamp | Reset |
DecisionRecorded | decision_ DecisionId, requester_ SubjectKind, requester_ uuid, action_ ToolCategory, act optional Act, scope string, verdict Verdict, decider Decider, attribution Attribution, delegation optional DelegationId, grant_ optional GrantId, tool_ optional ToolCallId, record_ optional RecordId, author_ optional PrincipalId, at timestamp | Decide, Deny |
GrantIssued | grant_ GrantId, grantee_ SubjectKind, grantee_ uuid, action_ ToolCategory, act optional Act, scope string, expires_ optional timestamp, granted_ PrincipalId, effect Verdict, approver_ optional ApproverRule, named_ optional PrincipalId, attribution optional Attribution, supersedes optional GrantId, at timestamp | Grant |
GrantRevoked | grant_ GrantId, revoked_ PrincipalId, at timestamp | Revoke |
ReservationBooked | reservation_ ReservationId, booked integer, basis SpendBasis, at timestamp | Book |
ReservationReleased | reservation_ ReservationId, at timestamp | Release |
SpendRecorded | budget_ BudgetId, spent_ integer, at timestamp | Record |
SpendReserved | reservation_ ReservationId, budget_ BudgetId, reserved integer, at timestamp | Reserve |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Views
| view | rows | fields |
|---|---|---|
BudgetsBudgets | each Budget | budget_ BudgetId, owner_ BudgetOwnerKind, owner_ uuid, resource BudgetResource, window BudgetWindow, window_ timestamp, limit integer, spent integer, timezone optional string, parent optional BudgetId, enforced_ optional Name, overrun_ optional integer, state State |
DecisionsDecisions | each Decision | decision_ DecisionId, requester_ SubjectKind, requester_ uuid, action_ ToolCategory, act optional Act, scope string, verdict Verdict, decider Decider, attribution Attribution, delegation optional DelegationId, decided_ timestamp, approved_ optional Decider, approval_ optional DelegationId, approved_ optional PrincipalId, resolved_ optional timestamp, grant_ optional GrantId, record_ optional RecordId, author_ optional PrincipalId, approver_ optional ApproverRule, named_ optional PrincipalId, state State |
GrantsGrants | each Grant | grant_ GrantId, grantee_ SubjectKind, grantee_ uuid, action_ ToolCategory, act optional Act, scope string, expires_ optional timestamp, granted_ PrincipalId, granted_ timestamp, effect Verdict, condition optional Condition, excludes list of Name, approver_ optional ApproverRule, named_ optional PrincipalId, attribution optional Attribution, supersedes optional GrantId, state State |
OpenApprovalsOpen approvals | each Decision with state == Recorded and verdict == Approval | decision_ DecisionId, requester_ SubjectKind, requester_ uuid, action_ ToolCategory, scope string, decider Decider, delegation optional DelegationId, decided_ timestamp, record_ optional RecordId |
ReservationsReservations | each Reservation | reservation_ ReservationId, budget_ BudgetId, step string, reserved integer, booked optional integer, basis optional SpendBasis, reserved_ timestamp, ended_ optional timestamp, state State |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Types
| type | is | values or fields |
|---|---|---|
ActThe act a grant permits within its action class, and the act a request asks for: record a change, publish it to a shared copy, merge it, tag a revision, release it, post a message, or another act. A grant without an act covers every act of its action class. | one of | Commit, Push, Merge, Tag, Release, Post, Other |
ApproverRuleWho approves a request made under a grant: the one person the grant names, any human other than the request's requester, or anyone but the author of the request's subject. | one of | Named, Human, Not |
BudgetOwnerKindWhat a budget caps: everything a principal or an agent revision spends, one run of agentic.work, one route of agentic.model (the starts of a Managed server behind it included), or one process of agentic.process. The identifier is a plain Uuid beside this kind, as for SubjectKind. | one of | Principal, Agent, Run, Route, Process |
BudgetResourceWhat a budget counts. Tokens in tokens, Money in micro-USD (agentic.shared.Money), WallTime in milliseconds, ToolCalls in tool calls, ModelCalls in model calls (inferences of agentic.model, one per request). Not specified yet: the unit per resource is a convention of this description; no type carries it. | one of | Tokens, Money, Wall, Tool, Model |
BudgetWindowThe period a budget's limit holds for: the whole life of its owner, one call, one calendar day or one calendar month, a day and a month in the budget's timezone (UTC when it names none). A budget names the start of its current window ( window_start); the meter resets a Call, Day or Month budget when its next window opens (ResetBudget), which starts a new spent count of 0. A Total budget has one window and is never reset. | one of | Total, Call, Day, Month |
SpendBasisWhat a booked amount rests on: the cost measured once the step ran, or the amount reserved before it, when nothing measured the step. | one of | Measured, Reservation |
SubjectKindWhat a grantee or a budget owner identifies. The identifier is a plain Uuid beside this kind because a row-set guard compares fields, not a union of two identifier types. | one of | Principal, Agent |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs
7 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.
Correctness
| KPI | unit | better | gate | status |
|---|---|---|---|---|
approvals_by_sessionApprovals whose submitter and decider are not recorded apart, or that a session submitted under a person's account. How: ApprovalGranted events whose approver is a session acting under a person's account without a delegation, or whose submitter equals the decider. Must be 0. | count | lower | gate | planned source: research/2610.28683 |
spend_after_exhaustionSpend recorded after its budget was exhausted. How: SpendRecorded events of a budget after its BudgetExhausted. Must be 0. | count | lower | gate | planned source: design |
actions_without_grantTool calls accepted with no grant that covers them. How: ToolCallDecided accepts with no GrantIssued covering the tool and agent, or after the grant's GrantRevoked. Must be 0. | count | lower | gate | planned source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Completeness
| KPI | unit | better | gate | status |
|---|---|---|---|---|
decider_recorded_shareShare of tool-call decisions whose decider is recorded. How: ToolCallDecided events with a decider other than NotRecorded divided by all ToolCallDecided events. A low share makes every figure over deciders incomplete. | share | higher | – | computed today source: docs/kpis.md |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Quality
| KPI | unit | better | gate | status |
|---|---|---|---|---|
human_decided_shareShare of tool-call decisions made by a human. How: ToolCallDecided events with decider Human divided by all ToolCallDecided events of main agents. The report splits by decider (PermissionMode, Classifier, Hook, Human, SafetyCheck, Rule). By work mode: autonomous: lower, pairing: ignore, review: ignore | share | lower | – | computed today source: docs/kpis.md |
refusals_per_1000_tool_callsRefused tool calls per 1,000 tool calls. How: ToolCallDecided events with decision Refuse, times 1,000, divided by ToolCallRequested events. | ratio | lower | – | planned source: design |
approval_drift_pointsRise of the human approval share over a review sequence. How: Approval share (ApprovalGranted over granted plus rejected) in the last third of a reviewer's sequence minus the first third, in percentage points. By work mode: autonomous: ignore, pairing: ignore, review: lower | points | lower | – | planned source: research/2609.06213 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Settings
The settings a part of this block carries in an architecture document. agenticspec sim check refuses any other setting (setting_unknown) and a value outside its type (setting_invalid), and a part that lacks a setting marked required in the default column; the contract copies a setting into the ports it narrows. The last rows of each table are the settings every part takes. What no setting here types (a file, a path, an audience, the use of a model) goes into the part's notes, a map with free keys and values that the check takes as written and nothing reads.
A part authority:
| setting | type | unit | default | contract | what |
|---|---|---|---|---|---|
kind | string | every port | What the authority is; a budget uses the budget port. | ||
action_class | enum Tool: read, search, edit, execute, network, spawn, message, plan, delete, other | The category of actions a grant permits. | |||
act | enum Act: commit, push, merge, tag, release, post, other | The one act of its action class a grant permits; without it, every act of the class. | |||
scope | string | What a grant covers. | |||
expires_after | duration of at least 0s | How long a grant holds after it is issued. | |||
open_ended | boolean | false | A standing grant: it has no expiry and holds until it is revoked, so it names no expires_. | ||
condition | condition | The condition over state outside the request under which a grant applies, as agentic.shared.Condition writes it: all and any, each a list of comparisons {field, op, value}. The evaluator that names the grant checks it; the simulator does not read it. | |||
excludes | string list | The cases a grant does not cover though they fall in its action class and scope: narrower scopes and flags of a subject, by name. | |||
per_day_usd | number of at least 0 | USD | The spend cap a budget holds per calendar day; without it, no cap. | ||
per_month_usd | number of at least 0 | USD | The spend cap a budget holds per calendar month; without it, no cap. | ||
per_run_usd | number of at least 0 | USD | The spend cap a budget holds per run, for every run of a part its grant link ends at, or whose model calls pass the part it ends at (a gateway, a model): a run that has spent it makes no further model call and ends; without it, no cap. | ||
route | enum: stop, ask, notify | stop | What happens at a spend cap: further spending stops (stop), a question goes to a principal (ask), or spending goes on and a notification is sent (notify). | ||
count | integer of at least 1 | 1 | How many copies of the part run. | ||
per | part | One copy of the part for each copy of the named part. | |||
notes | notes | Free notes on the part, a map with keys and values of any kind: what no setting of its block types. The check takes any map; the simulator, the search and the contract never read it. |
More columns: swipe horizontally, or focus the table and use the arrow keys.