Layer 1 · principals
delegation
One principal acts for another. A delegation names who is acted for, who acts, the one decision the delegate may take (answer a question, approve, merge, publish, control a session, commit, push) and when it expires. Each act under a delegation names what it acted on. A chain of delegations must end at a human: the first link is granted by a human, every later link is granted by the delegate of a link that is still active. A delegation that would not end at a human, that closes a cycle, or that a delegate uses outside its scope is refused. An operator agent acting for its owner is the common case.
Depends on
Used by
- authority · layer 6 · 12 references
- channel · layer 7 · 17 references
- question · layer 7 · 11 references
Entities
Delegation
The delegate may take one kind of decision for the delegator, within the chain that ends at the root human. Active until revoked or expired; revoking a link ends the links granted from it.
Identified by delegation_id (DelegationId).
| field | type | meaning |
|---|---|---|
delegator | PrincipalId | The principal acted for. |
delegate | PrincipalId | The principal that acts. |
| action | DelegatedAction | |
root | PrincipalId | The human the chain ends at; the delegator itself on the first link. |
parent_delegation_id | optional DelegationId | The link the delegator acts by; absent on the first link, whose delegator is the human. |
granted_at | timestamp | |
expires_at | optional timestamp | Absent means no expiry; the delegation then ends only by revocation. |
last_acted_at | optional timestamp | The instant of the last decision taken under this delegation; absent until one is. |
excludes | list of Name | The rules the delegate cannot lift although the delegator could order around them: a permission block, a rule of an organization. A later link carries the excludes of its parent. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
delegator_principalreferences Principal of principal (one, bydelegator)delegate_principalreferences Principal of principal (one, bydelegate)root_principalreferences Principal of principal (one, byroot)parentreferences Delegation (one, byparent_delegation_id)
Lifecycle of Delegation
Expired, Revoked.Commands
ActUnderDelegation
Act under a delegation. The delegate takes one decision for the delegator and names the delegation it relies on. Default deny: no active link that carries this action for this principal, no decision. The event names the delegation, so the decision traces to the root human of its chain, and the subject it acted on.
| field | type |
|---|---|
delegation_id | DelegationId |
principal_id | PrincipalId |
| action | DelegatedAction |
subject | Subject |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-delegation refused | no such Delegation | Unknown: No delegation of this identity was granted. |
not-active refused | the Delegation is Expired or Revoked | Delegation: The delegation is not in a state this command acts from. |
not-the-delegate refused | delegate != input. | Not: The principal is not the delegate of the link: it cannot grant onward from it or act by it. |
outside-scope refused | action != input. | Action: The delegation does not carry the requested action. |
past-expiry refused | expires_ | Delegation: The delegation's expiry has passed. |
acted | otherwise | updates the Delegation; emits Delegated |
More columns: swipe horizontally, or focus the table and use the arrow keys.
DelegateOnward
Delegate onward from a link. A later link of a chain. The delegator is the delegate of an active link and passes on the same action; the new link keeps the root human of its parent, so every chain still ends at a human.
| field | type |
|---|---|
delegation_id | DelegationId |
parent_delegation_id | DelegationId |
delegator | PrincipalId |
delegate | PrincipalId |
| action | DelegatedAction |
expires_at | optional timestamp |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
expiry-not-after-grant refused | defined(expires_ | Invalid: The expiry is not after the instant the delegation is granted. |
self-delegation refused | delegator == delegate | Delegation: The delegate is the delegator, is the root human, or already holds this action under an active delegation; granting it would close a cycle. |
no-such-parent refused | no Delegation for parent_ | Unknown: No delegation of this identity was granted. |
parent-not-active refused | the Delegation of parent_ has state != Active | Delegation: The delegation is not in a state this command acts from. |
delegator-not-parent-delegate refused | the Delegation of parent_ has delegate != input. | Not: The principal is not the delegate of the link: it cannot grant onward from it or act by it. |
action-outside-parent-scope refused | the Delegation of parent_ has action != input. | Action: The delegation does not carry the requested action. |
delegated | otherwise | creates a Delegation in Active; emits Delegation |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ExpireDelegation
Record that a delegation expired.
| field | type |
|---|---|
delegation_id | DelegationId |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-delegation refused | no such Delegation | Unknown: No delegation of this identity was granted. |
no-expiry refused | not (defined(expires_ | Not: The delegation has no expiry or its expiry has not passed, so it is not recorded as expired. |
not-yet-expired refused | expires_ | Not: The delegation has no expiry or its expiry has not passed, so it is not recorded as expired. |
expired | otherwise | moves the Delegation Active → Expired; emits Delegation |
wrong-state refused | the Delegation is in a state that does not allow it | Delegation: The delegation is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
GrantDelegation
Grant a delegation from a human. The first link of a chain. The delegator must be a human; a delegator that is not a human has no chain that ends at one.
| field | type |
|---|---|
delegation_id | DelegationId |
delegator | PrincipalId |
delegate | PrincipalId |
| action | DelegatedAction |
expires_at | optional timestamp |
excludes | list of Name |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
expiry-not-after-grant refused | defined(expires_ | Invalid: The expiry is not after the instant the delegation is granted. |
self-delegation refused | delegator == delegate | Delegation: The delegate is the delegator, is the root human, or already holds this action under an active delegation; granting it would close a cycle. |
no-such-delegator refused | no Principal for delegator | Unknown: No principal of this identity is registered. |
delegator-not-human refused | the Principal of delegator has kind != Human | Chain: The delegation would not end at a human: a delegation with no parent link has a delegator that is not a human. |
delegator-retired refused | the Principal of delegator has state == Retired | Principal: A retired principal neither grants nor receives a delegation. |
granted | otherwise | creates a Delegation in Active; emits Delegation |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RevokeDelegation
Revoke a delegation. The delegator of a link ends it. The links granted directly from it end with it.
| field | type |
|---|---|
delegation_id | DelegationId |
principal_id | PrincipalId |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-delegation refused | no such Delegation | Unknown: No delegation of this identity was granted. |
not-the-delegator refused | delegator != input. | Not: The acting principal is not the delegator of this delegation. |
revoked | otherwise | moves the Delegation Active → Revoked; moves each Delegation with parent_ to Revoked; emits Delegation |
wrong-state refused | the Delegation is in a state that does not allow it | Delegation: The delegation is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Events
| event | fields | emitted by |
|---|---|---|
DelegatedActionTaken | delegation_ DelegationId, delegate PrincipalId, action DelegatedAction, subject Subject, at timestamp | Act |
DelegationExpiredRecorded | delegation_ DelegationId, at timestamp | Expire |
DelegationGranted | delegation_ DelegationId, delegator PrincipalId, delegate PrincipalId, action DelegatedAction, expires_ optional timestamp, excludes list of Name, at timestamp | Grant |
DelegationPassedOn | delegation_ DelegationId, parent_ DelegationId, delegate PrincipalId, action DelegatedAction, expires_ optional timestamp, at timestamp | Delegate |
DelegationRevoked | delegation_ DelegationId, at timestamp | Revoke |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Views
| view | rows | fields |
|---|---|---|
ActiveDelegationsActive delegations | each Delegation with state == Active | delegation_ DelegationId, delegate PrincipalId, root PrincipalId, action DelegatedAction |
DelegationsDelegations | each Delegation | delegation_ DelegationId, delegator PrincipalId, delegate PrincipalId, action DelegatedAction, root PrincipalId, parent_ optional DelegationId, granted_ timestamp, expires_ optional timestamp, last_ optional timestamp, excludes list of Name, state State |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Types
| type | is | values or fields |
|---|---|---|
DelegatedActionWhat a delegate may decide in the delegator's place. ControlSession stops, restarts, briefs or types into a session of the delegator; Commit and Push record and send changes in the delegator's name. One delegation carries one action; acting for an owner in several ways is several delegations, each revoked on its own. | one of | Answer, Approve, Merge, Publish, Control, Commit, Push |
SubjectWhat a delegated act acted on: the kind of thing, such as harness_session, and its identifier. The identifier is a plain Uuid beside the kind, because this block sits below the blocks whose entities a delegate acts on and names none of their identifiers. | a record | kind Name, id uuid |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs
5 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.
Correctness
| KPI | unit | better | gate | status |
|---|---|---|---|---|
delegation_chain_brokenDelegated actions whose chain does not end at a human. How: DelegatedActionTaken events whose chain of DelegationGranted and DelegationPassedOn does not reach a human principal. Must be 0. | count | lower | gate | planned source: design |
action_after_revocationDelegated actions taken after the delegation was revoked or expired. How: DelegatedActionTaken events timestamped after a DelegationRevoked or DelegationExpiredRecorded of the same delegation. Must be 0. | count | lower | gate | planned source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Quality
| KPI | unit | better | gate | status |
|---|---|---|---|---|
delegate_forward_shareShare of questions a delegate received that it forwarded to the owner. How: Questions forwarded divided by questions received, per delegate part. A delegate that forwards everything saves the owner nothing. By work mode: autonomous: lower, pairing: ignore, review: ignore | share | lower | – | simulated source: design |
operator_decided_owner_questionsQuestions meant for the owner that the delegate decided itself. How: Count of questions addressed to an owner part that were answered by a delegate acting for that owner. A count is a measure, not a fault, so it is not a gate. | count | lower | – | simulated source: design |
operator_wait_shareShare of agent time spent waiting on an operator agent. How: Seconds agents wait for an operator's answer to a question, divided by instance time. The simulator divides operator wait by instance time, as it does owner wait. | share | lower | – | simulated source: design |
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 delegation:
| setting | type | unit | default | contract | what |
|---|---|---|---|---|---|
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.