Skip to main content

Layer 1 · principals

principal

blocks/1-principals/principal.yaml

layer 1principals
1entity
2commands
2events
1view
2refusals
4KPIs

Who can want something and answer for it. A principal is a human, an organization, a service or an agent. Everything that is asked, approved, delegated or paid for traces back to one. A principal has a name and a kind. How it is reached is the channel block's concern: a channel names its parties, a principal names no channel, so the dependency points down.

Depends on​

  • shared · layer 0 · 4 references

Used by​

Entities​

Principal​

One party that can want something and answer for it. Active until retired; a retired principal stays on record, because past decisions name it, and takes no new role.

Identified by principal_id (PrincipalId).

fieldtype
kindPrincipalKind
nameName
registered_attimestamp

Lifecycle of Principal

ActiveRetiredretireActiveRetiredretire
Ends in Retired.

Commands​

RegisterPrincipal​

Register a principal.

fieldtype
principal_idPrincipalId
kindPrincipalKind
nameName
attimestamp
outcomewhenresult
registeredotherwisecreates a Principal in Active; emits PrincipalRegistered

RetirePrincipal​

Retire a principal.

fieldtype
principal_idPrincipalId
attimestamp
outcomewhenresult
no-such-principal refusedno such PrincipalPrincipalNotFound: No principal of this identity is registered.
retiredotherwisemoves the Principal Active → Retired; emits PrincipalRetired
wrong-state refusedthe Principal is in a state that does not allow itPrincipalStateConflict: The principal is not in a state this command acts from.

Events​

eventfieldsemitted by
PrincipalRegisteredprincipal_id PrincipalId, kind PrincipalKind, name Name, at timestampRegisterPrincipal
PrincipalRetiredprincipal_id PrincipalId, at timestampRetirePrincipal

Views​

viewrowsfields
Principals
Principals
each Principalprincipal_id PrincipalId, kind PrincipalKind, name Name, registered_at timestamp, state State

KPIs​

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

Correctness​

KPIunitbettergatestatus
work_without_human_principal
Tasks submitted whose principal chain names no human.
How: TaskCreated events whose principal does not resolve, through registered principals and delegations, to a human principal. Must be 0.
countlowergateplanned
source: research/2609.07919

Completeness​

KPIunitbettergatestatus
principal_answered_share
Share of questions a principal received that the principal answered.
How: Questions answered by the principal divided by questions the principal received, per principal part. Questions that took their default count as not answered.
By work mode: autonomous: ignore, pairing: higher, review: higher
sharehigher–simulated
source: design

Quality​

KPIunitbettergatestatus
owner_wait_share
Share of agent time spent waiting on the human owner.
How: Seconds from a main agent's turn end to the owner's next prompt (waits over one hour counted apart as away), divided by working plus waiting seconds. The simulator divides owner wait by instance time.
By work mode: autonomous: lower, pairing: ignore, review: ignore
sharelower–computed and simulated
source: docs/kpis.md
human_prompt_share
Share of prompts to main agents written by a human.
How: PromptSubmitted events with author Human, divided by all PromptSubmitted events of main agents. Compare the split by author (Human, Delegate, PeerSession, ParentAgent, Harness, Hook).
By work mode: autonomous: lower, pairing: ignore, review: ignore
sharelower–computed today
source: docs/kpis.md

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 principal:

settingtypeunitdefaultcontractwhat
kindenum PrincipalKind: human, organization, service, agenthumanquestion.questionWhat kind of principal answers; picks its entry of the behaviour profile.
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.