Skip to main content

Layer 6 · governance

authority

blocks/6-governance/authority.yaml

layer 6governance
4entities
13commands
13events
5views
46refusals
7KPIs

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​

Used by​

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).

fieldtypemeaning
owner_kindBudgetOwnerKind
owner_iduuidThe identifier of the owner, as owner_kind says: a PrincipalId, an AgentRevisionId, a RunId, a RouteId or a ProcessId.
resourceBudgetResource
windowBudgetWindow
window_starttimestampWhen the current window started: the instant the budget opened, then the start each reset names. Spent counts from here.
limitinteger
spentinteger
timezoneoptional stringThe 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.
parentoptional BudgetIdThe budget this one sits under; its limit is not below this budget's.
enforced_byoptional NameThe part that holds the cap, such as a gateway, by name.
overrun_totaloptional integerThe 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.

Relations:

  • parent_budget references Budget (one, by parent)

Always holds: spent >= 0, limit >= 0, spent <= limit.

Lifecycle of Budget

ExhaustedOpenrecord, resetexhaustreset
Ends in 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).

fieldtypemeaning
requester_kindSubjectKind
requester_iduuid
action_classToolCategory
actoptional Act
scopestring
verdictVerdict
deciderDecider
attributionAttribution
delegationoptional DelegationId
decided_attimestamp
approved_byoptional Decider
approval_delegationoptional DelegationId
approved_by_principaloptional PrincipalIdThe person, or the delegate, who approved the decision.
resolved_atoptional timestamp
grant_idoptional GrantIdThe 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_idoptional PrincipalIdThe author of the request's subject, such as of the change it asks to merge, when the request names one.
approver_ruleoptional ApproverRuleThe approver rule of the grant the decision was recorded under, as the request names it.
named_approveroptional PrincipalIdThe named approver of that grant, as the request names it.
record_idoptional RecordIdThe 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.

Relations:

  • grant references Grant (one, by grant_id)
  • decided_under references Delegation of delegation (one, by delegation)
  • approved_under references Delegation of delegation (one, by approval_delegation)
  • approved_by_person references Principal of principal (one, by approved_by_principal)
  • author references Principal of principal (one, by author_id)
  • rule_approver references Principal of principal (one, by named_approver)
  • record references Record of store (one, by record_id)

Lifecycle of Decision

ApprovedRecordedRejectedapproverejectApprovedRecordedRejectedapprovereject
Ends in 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).

fieldtypemeaning
grantee_kindSubjectKind
grantee_iduuidA PrincipalId or an AgentRevisionId, as grantee_kind says.
action_classToolCategory
actoptional ActThe one act of the action class the grant covers; absent, it covers every act of it.
scopestring
expires_atoptional timestampWhen the grant ends; absent, it is open-ended and stands until it is revoked.
granted_byPrincipalId
granted_attimestamp
effectVerdictAllow 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.
conditionoptional ConditionA 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.
excludeslist of NameThe 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_ruleoptional ApproverRuleWho approves a request decided under the grant; absent, any human, or a delegate whose delegation covers approval, approves.
named_approveroptional PrincipalIdThe one person who approves under the approver rule NamedPrincipal.
attributionoptional AttributionHow it is known that the grantor issued the grant.
supersedesoptional GrantIdThe earlier grant this one replaces; revoking that one is a separate command.

Relations:

  • grantor references Principal of principal (one, by granted_by)
  • approver references Principal of principal (one, by named_approver)
  • superseded references Grant (one, by supersedes)

Lifecycle of Grant

ActiveRevokedrevokeActiveRevokedrevoke
Ends in 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).

fieldtypemeaning
budget_idBudgetId
stepstringThe paid step the amount is reserved for.
reservedinteger
bookedoptional integerThe amount booked once the step ran; absent while reserved and once released.
basisoptional SpendBasisWhat the booked amount rests on.
reserved_attimestamp
ended_atoptional timestampWhen the reservation was booked or released.

Relations:

  • budget references Budget (one, by budget_id)

Lifecycle of Reservation

BookedReleasedReservedbookreleaseBookedReleasedReservedbookrelease
Ends in 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.

fieldtypemeaning
decision_idDecisionId
approverDecider
approver_principalPrincipalIdThe person, or the delegate, who approves.
delegationoptional DelegationId
tool_call_idoptional ToolCallIdThe 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_idoptional RecordIdThe 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).
attimestamp
outcomewhenresult
approver-not-permitted refusedapprover != Human and approver != DelegateApproverNotPermitted: 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 refusedapprover == Delegate and not (defined(delegation))DelegationRequired: A Delegate acts under a delegation; none was named.
no-such-decision refusedno such DecisionDecisionNotFound
not-awaiting-approval refusedverdict != ApprovalRequiredDecisionNotAwaiting: The decision is an Allow or a Deny; nothing awaits approval.
names-other-record refuseddefined(record_id) and record_id != input.record_idApprovalNamesOtherRecord: 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 refuseddefined(approver_rule) and approver_rule == HumanNotRequester and requester_id == input.approver_principalApproverNotPermitted: 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 refuseddefined(approver_rule) and approver_rule == NamedPrincipal and defined(named_approver) and named_approver != input.approver_principalApproverNotPermitted: 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 refuseddefined(approver_rule) and approver_rule == NotAuthor and defined(author_id) and author_id == input.approver_principalApproverNotPermitted: 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 refusedno Delegation for delegationUnknownDelegation: No delegation of this identity was granted.
scope-lacks-approval refusedthe Delegation of delegation has (action != Approve or state != Active)DelegationScopeLacksApproval: The delegation is not an active delegation of approval, so it does not cover approval.
approvedotherwisemoves the Decision Recorded → Approved; emits ApprovalGranted
wrong-state refusedthe Decision is in a state that does not allow itDecisionStateConflict: The decision is not awaiting approval.

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.

fieldtype
reservation_idReservationId
bookedinteger
basisSpendBasis
attimestamp
outcomewhenresult
no-such-reservation refusedno such ReservationReservationNotFound
bookedotherwisemoves the Reservation Reserved → Booked; emits ReservationBooked
wrong-state refusedthe Reservation is in a state that does not allow itReservationStateConflict: The reservation is no longer Reserved; it was booked or released.

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.

fieldtypemeaning
grant_idGrantId
requester_kindSubjectKind
requester_iduuid
action_classToolCategory
actoptional ActThe act the request asks for, when its action class has acts a grant tells apart.
scopestring
caseslist of NameWhat 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.
verdictVerdict
deciderDecider
attributionAttribution
delegationoptional DelegationId
tool_call_idoptional ToolCallIdThe harness tool call the request is for, when it is one.
record_idoptional RecordIdThe store record the request asks to delete, when it is a request to delete one.
author_idoptional PrincipalIdThe 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_ruleoptional ApproverRuleThe 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_approveroptional PrincipalIdThe named approver of the grant, named again with approver_rule.
attimestamp
outcomewhenresult
verdict-is-deny refusedverdict == DenyDenyNeedsNoGrant: A Deny is recorded by DenyRequest, not DecideRequest.
delegation-required refuseddecider == Delegate and not (defined(delegation))DelegationRequired: A Delegate acts under a delegation; none was named.
record-without-delete refuseddefined(record_id) and action_class != DeleteRecordNeedsDelete: A request that names a store record asks to delete it, so its action class is Delete.
delete-allowed refuseddefined(record_id) and verdict == AllowDeleteNeedsApproval: 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 refusedno Grant for grant_idNoGrantCovers: 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 refusedthe Grant of grant_id has state != ActiveNoGrantCovers: 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 refusedthe Grant of grant_id has (grantee_kind != input.requester_kind or grantee_id != input.requester_id or action_class != input.action_class or scope != input.scope or defined(expires_at) and expires_at <= input.at or defined(act) and act != input.act or some excluded in excludes with some case in input.cases with excluded == case)NoGrantCovers: 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 refusedthe Grant of grant_id has effect == DenyGrantForbids: The grant named is a standing prohibition (effect Deny); nothing is allowed under it.
grant-requires-approval refusedthe Grant of grant_id has effect == ApprovalRequiredGrantRequiresApproval: The grant named lets the action happen only once approved (effect ApprovalRequired); an Allow is not recorded under it, an ApprovalRequired verdict is.
recordedotherwisecreates a Decision in Recorded; emits DecisionRecorded

DenyRequest​

Deny a request. Records a Deny. It needs no grant, because denying is always safe.

Called by: Authority.

fieldtypemeaning
requester_kindSubjectKind
requester_iduuid
action_classToolCategory
actoptional Act
scopestring
deciderDecider
attributionAttribution
delegationoptional DelegationId
grant_idoptional GrantIdThe standing prohibition the denial rests on, when one does.
tool_call_idoptional ToolCallIdThe harness tool call the request is for, when it is one.
record_idoptional RecordIdThe store record the request asked to delete, when it is a request to delete one; a denial leaves it present.
author_idoptional PrincipalIdThe author of what the request acts on, when it names one (see DecideRequest).
attimestamp
outcomewhenresult
delegation-required refuseddecider == Delegate and not (defined(delegation))DelegationRequired: A Delegate acts under a delegation; none was named.
deniedotherwisecreates a Decision in Recorded; emits DecisionRecorded

GrantAuthority​

Grant authority.

Called by: Steward.

fieldtypemeaning
grantee_kindSubjectKind
grantee_iduuid
action_classToolCategory
actoptional Act
scopestring
expires_atoptional timestampWhen the grant ends; left out, the grant is open-ended and stands until revoked.
granted_byPrincipalId
effectVerdict
conditionoptional Condition
excludeslist of Name
approver_ruleoptional ApproverRule
named_approveroptional PrincipalIdThe one person who approves, required under the approver rule NamedPrincipal.
attributionoptional Attribution
supersedesoptional GrantId
attimestamp
outcomewhenresult
already-expired refuseddefined(expires_at) and expires_at <= atGrantAlreadyExpired: A grant must expire after the instant it is made.
named-approver-required refuseddefined(approver_rule) and approver_rule == NamedPrincipal and not (defined(named_approver))NamedApproverRequired: A grant whose approver rule is NamedPrincipal names its approver.
grantedotherwisecreates a Grant in Active; emits GrantIssued

OpenBudget​

Open a budget.

Called by: Steward.

fieldtypemeaning
owner_kindBudgetOwnerKind
owner_iduuid
resourceBudgetResource
windowBudgetWindow
limitinteger
timezoneoptional stringThe IANA zone name a Day or Month window follows; left out, UTC.
parentoptional BudgetIdThe budget this one sits under, when it sits under one.
enforced_byoptional NameThe part that holds the cap, such as a gateway, when one does.
attimestamp
outcomewhenresult
negative-limit refusedlimit < 0NegativeLimit
no-such-parent refusedno Budget for parentBudgetNotFound
child-over-parent refusedthe Budget of parent has limit < input.limitChildOverParent: A budget under a parent caps no more than its parent; the limit asked for is above the parent's.
openedotherwisecreates a Budget in Open; emits BudgetOpened

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.

fieldtype
budget_idBudgetId
spent_totalinteger
attimestamp
outcomewhenresult
no-such-budget refusedno such BudgetBudgetNotFound
no-overrun refusedinput.spent_total <= limitNoOverrun: The reported total is not past the budget's limit, so it is spend (RecordSpend), not an overrun.
overranotherwisemoves the Budget Open → Exhausted; emits BudgetOverran, BudgetExhausted
wrong-state refusedthe Budget is in a state that does not allow itBudgetStateConflict

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.

fieldtype
budget_idBudgetId
spent_totalinteger
attimestamp
outcomewhenresult
no-such-budget refusedno such BudgetBudgetNotFound
over-limit refusedinput.spent_total > limitOverLimit: The reported total would pass the budget's limit; nothing was recorded.
regressed refusedinput.spent_total < spentSpendRegressed: A total below what is already recorded; spending only grows.
exhaustedinput.spent_total == limitmoves the Budget Open → Exhausted; emits SpendRecorded, BudgetExhausted
recordedotherwisemoves the Budget Open → Open; emits SpendRecorded
wrong-state refusedthe Budget is in a state that does not allow itBudgetStateConflict

RejectDecision​

Reject a pending decision. Rejecting is always safe, so any decider may reject.

Called by: Steward.

fieldtypemeaning
decision_idDecisionId
rejecterDecider
tool_call_idoptional ToolCallIdThe harness tool call the rejected request is for, when it is one (see ApproveDecision).
attimestamp
outcomewhenresult
no-such-decision refusedno such DecisionDecisionNotFound
not-awaiting-approval refusedverdict != ApprovalRequiredDecisionNotAwaiting: The decision is an Allow or a Deny; nothing awaits approval.
rejectedotherwisemoves the Decision Recorded → Rejected; emits ApprovalRejected
wrong-state refusedthe Decision is in a state that does not allow itDecisionStateConflict: The decision is not awaiting approval.

ReleaseReservation​

Release a reservation. The step did not run; the meter releases what was reserved for it.

Called by: Meter.

fieldtype
reservation_idReservationId
attimestamp
outcomewhenresult
no-such-reservation refusedno such ReservationReservationNotFound
releasedotherwisemoves the Reservation Reserved → Released; emits ReservationReleased
wrong-state refusedthe Reservation is in a state that does not allow itReservationStateConflict: The reservation is no longer Reserved; it was booked or released.

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.

fieldtype
budget_idBudgetId
stepstring
amountinteger
attimestamp
outcomewhenresult
no-such-budget refusedno Budget for budget_idBudgetNotFound
reservedotherwisecreates a Reservation in Reserved; emits SpendReserved

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.

fieldtype
budget_idBudgetId
window_starttimestamp
attimestamp
outcomewhenresult
no-such-budget refusedno such BudgetBudgetNotFound
not-windowed refusedwindow == TotalBudgetNotWindowed: A Total budget has one window for its owner's whole life; it is never reset.
window-not-after refusedinput.window_start <= window_startWindowNotAfter: The window a reset names does not start after the budget's current window.
resetotherwisemoves the Budget Exhausted, Open → Open; emits BudgetReset

RevokeGrant​

Revoke a grant.

Called by: Steward.

fieldtype
grant_idGrantId
revoked_byPrincipalId
attimestamp
outcomewhenresult
no-such-grant refusedno such GrantGrantNotFound
revokedotherwisemoves the Grant Active → Revoked; emits GrantRevoked
wrong-state refusedthe Grant is in a state that does not allow itGrantStateConflict

Events​

eventfieldsemitted by
ApprovalGranteddecision_id DecisionId, approver Decider, approver_principal PrincipalId, delegation optional DelegationId, tool_call_id optional ToolCallId, record_id optional RecordId, at timestampApproveDecision
ApprovalRejecteddecision_id DecisionId, rejecter Decider, tool_call_id optional ToolCallId, at timestampRejectDecision
BudgetExhaustedbudget_id BudgetId, at timestampRecordOverrun, RecordSpend
BudgetOpenedbudget_id BudgetId, owner_kind BudgetOwnerKind, owner_id uuid, resource BudgetResource, window BudgetWindow, window_start timestamp, limit integer, timezone optional string, parent optional BudgetId, enforced_by optional Name, at timestampOpenBudget
BudgetOverranbudget_id BudgetId, spent_total integer, at timestampRecordOverrun
BudgetResetbudget_id BudgetId, window_start timestamp, at timestampResetBudget
DecisionRecordeddecision_id DecisionId, requester_kind SubjectKind, requester_id uuid, action_class ToolCategory, act optional Act, scope string, verdict Verdict, decider Decider, attribution Attribution, delegation optional DelegationId, grant_id optional GrantId, tool_call_id optional ToolCallId, record_id optional RecordId, author_id optional PrincipalId, at timestampDecideRequest, DenyRequest
GrantIssuedgrant_id GrantId, grantee_kind SubjectKind, grantee_id uuid, action_class ToolCategory, act optional Act, scope string, expires_at optional timestamp, granted_by PrincipalId, effect Verdict, approver_rule optional ApproverRule, named_approver optional PrincipalId, attribution optional Attribution, supersedes optional GrantId, at timestampGrantAuthority
GrantRevokedgrant_id GrantId, revoked_by PrincipalId, at timestampRevokeGrant
ReservationBookedreservation_id ReservationId, booked integer, basis SpendBasis, at timestampBookReservation
ReservationReleasedreservation_id ReservationId, at timestampReleaseReservation
SpendRecordedbudget_id BudgetId, spent_total integer, at timestampRecordSpend
SpendReservedreservation_id ReservationId, budget_id BudgetId, reserved integer, at timestampReserveSpend

Views​

viewrowsfields
Budgets
Budgets
each Budgetbudget_id BudgetId, owner_kind BudgetOwnerKind, owner_id uuid, resource BudgetResource, window BudgetWindow, window_start timestamp, limit integer, spent integer, timezone optional string, parent optional BudgetId, enforced_by optional Name, overrun_total optional integer, state State
Decisions
Decisions
each Decisiondecision_id DecisionId, 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, resolved_at optional timestamp, grant_id optional GrantId, record_id optional RecordId, author_id optional PrincipalId, approver_rule optional ApproverRule, named_approver optional PrincipalId, state State
Grants
Grants
each Grantgrant_id GrantId, grantee_kind SubjectKind, grantee_id uuid, action_class ToolCategory, act optional Act, scope string, expires_at optional timestamp, granted_by PrincipalId, granted_at timestamp, effect Verdict, condition optional Condition, excludes list of Name, approver_rule optional ApproverRule, named_approver optional PrincipalId, attribution optional Attribution, supersedes optional GrantId, state State
OpenApprovals
Open approvals
each Decision with state == Recorded and verdict == ApprovalRequireddecision_id DecisionId, requester_kind SubjectKind, requester_id uuid, action_class ToolCategory, scope string, decider Decider, delegation optional DelegationId, decided_at timestamp, record_id optional RecordId
Reservations
Reservations
each Reservationreservation_id ReservationId, budget_id BudgetId, step string, reserved integer, booked optional integer, basis optional SpendBasis, reserved_at timestamp, ended_at optional timestamp, state State

Types​

typeisvalues or fields
Act
The 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 ofCommit, Push, Merge, Tag, Release, Post, Other
ApproverRule
Who 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 ofNamedPrincipal, HumanNotRequester, NotAuthor
BudgetOwnerKind
What 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 ofPrincipal, AgentRevision, Run, Route, Process
BudgetResource
What 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 ofTokens, Money, WallTime, ToolCalls, ModelCalls
BudgetWindow
The 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 ofTotal, Call, Day, Month
SpendBasis
What a booked amount rests on: the cost measured once the step ran, or the amount reserved before it, when nothing measured the step.
one ofMeasured, Reservation
SubjectKind
What 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 ofPrincipal, AgentRevision

KPIs​

7 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.

Correctness​

KPIunitbettergatestatus
approvals_by_session
Approvals 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.
countlowergateplanned
source: research/2610.28683
spend_after_exhaustion
Spend recorded after its budget was exhausted.
How: SpendRecorded events of a budget after its BudgetExhausted. Must be 0.
countlowergateplanned
source: design
actions_without_grant
Tool 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.
countlowergateplanned
source: design

Completeness​

KPIunitbettergatestatus
decider_recorded_share
Share 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.
sharehigher–computed today
source: docs/kpis.md

Quality​

KPIunitbettergatestatus
human_decided_share
Share 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
sharelower–computed today
source: docs/kpis.md
refusals_per_1000_tool_calls
Refused tool calls per 1,000 tool calls.
How: ToolCallDecided events with decision Refuse, times 1,000, divided by ToolCallRequested events.
ratiolower–planned
source: design
approval_drift_points
Rise 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
pointslower–planned
source: research/2609.06213

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:

settingtypeunitdefaultcontractwhat
kindstringevery portWhat the authority is; a budget uses the budget port.
action_classenum ToolCategory: read, search, edit, execute, network, spawn, message, plan, delete, otherThe category of actions a grant permits.
actenum Act: commit, push, merge, tag, release, post, otherThe one act of its action class a grant permits; without it, every act of the class.
scopestringWhat a grant covers.
expires_afterduration of at least 0sHow long a grant holds after it is issued.
open_endedbooleanfalseA standing grant: it has no expiry and holds until it is revoked, so it names no expires_after.
conditionconditionThe 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.
excludesstring listThe 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_usdnumber of at least 0USDThe spend cap a budget holds per calendar day; without it, no cap.
per_month_usdnumber of at least 0USDThe spend cap a budget holds per calendar month; without it, no cap.
per_run_usdnumber of at least 0USDThe 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.
routeenum: stop, ask, notifystopWhat 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).
countinteger of at least 11How many copies of the part run.
perpartOne copy of the part for each copy of the named part.
notesnotesFree 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.