Layer 4 · agent
harness
The loop that turns a model into an agent: it sends the context to a model, takes the answer, runs tools, compacts the context when it grows, and stops. A harness is of one kind: a vendor's loop run as it ships, a loop driven from outside, or a loop native to this system. A harness session is one agent revision running in a harness for a principal. A sub-agent is a session whose parent is another session, so sessions form a tree with a depth that the harness bounds. Every model call of a session is a turn, with the inference it made and its usage. Every call of a tool by a session is a tool call: requested, decided by the authority (allowed or denied, with who decided), and then completed, failed, or recorded as could not read when its result could not be read; a call of a withdrawn tool, of a tool the agent revision does not list, or for a retired agent revision, is refused, and a call that was not allowed cannot complete. A session opens in a permission mode a field of work or a binding registered; the core names no mode. A mode may name the decider of every call, such as a classifier. A session may open under a named model policy, which ranks routes and names a ceiling: a route above it is refused. The policy may name the route its sessions' sub-agents take. No two open sessions share a name. A session that restarts an ended one names it, and the chain of restarts is its lineage.
Depends on
- agent · layer 4 · 11 references
- tool · layer 3 · 8 references
- model · layer 2 · 22 references
- principal · layer 1 · 14 references
- shared · layer 0 · 34 references
Used by
- work · layer 5 · 9 references
- authority · layer 6 · 10 references
- channel · layer 7 · 10 references
- trigger · layer 7 · 6 references
Entities
Compaction
The context of a session was replaced by a summary: how large it was and how large it is now. The turn after it writes the model's cache again.
Identified by compaction_id (TurnId).
| field | type |
|---|---|
harness_session_id | HarnessSessionId |
tokens_before | integer |
tokens_after | integer |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
sessionreferences HarnessSession (one, byharness_session_id)
Lifecycle: one state, Recorded; a recorded Compaction does not change.
Harness
A loop an agent can run in, with the limits it holds every session to: the size of the context window and the deepest sub-agent nesting.
Identified by harness_id (HarnessId).
| field | type | meaning |
|---|---|---|
kind | HarnessKind | |
name | Name | |
context_window | integer | The most tokens of context one turn may carry. |
max_depth | integer | The deepest sub-agent level; 0 allows no sub-agent. |
registered_at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Lifecycle of Harness
Retired.HarnessSession
One agent revision running in one harness, acting for one principal. Open until it ends. The limits of the harness at the time it opened are kept on the session.
Identified by harness_session_id (HarnessSessionId).
| field | type | meaning |
|---|---|---|
harness_id | HarnessId | |
agent_revision_id | AgentRevisionId | |
principal_id | PrincipalId | The principal the session acts for; a sub-agent acts for its parent's. |
parent_session_id | optional HarnessSessionId | The session that spawned this one; absent for a main session. |
role | SessionRole | |
depth | integer | 0 for a main session, the parent's depth plus 1 for a sub-agent. |
max_depth | integer | |
context_window | integer | |
permission_mode | PermissionModeId | The registered mode the session treats actions in; a sub-agent starts in its parent's. |
opened_at | timestamp | |
name | optional Name | The name other sessions and the owner address this session by; no two open sessions share one, and the name is free again once its session ended. What the session is for is the role of its agent revision; the files it works in are the workspace it holds a lease on (agentic.workspace names the session as the holder). |
requested_route | optional RouteId | The route the session asked for last (RequestRoute), or the one the spawning session asked for a sub-agent; absent, the agent revision's Primary model binding applies. Which model its turns used is read from their inferences. |
model_policy_id | optional ModelPolicyId | The model policy the session opened under (a sub-agent takes its parent's); a route it asks for with RequestRoute is at or below the policy's ceiling. Absent, no policy limits the route. |
decider | optional Decider | The decider of every tool call of the session, taken from its permission mode when it opened (a sub-agent takes its parent's); absent, any decider decides. |
replaces | optional HarnessSessionId | The ended session of the same principal that this one restarts; its history and KPIs go on in this one. Recorded by RecordRestart, once per session. |
lineage | optional HarnessSessionId | The first session of the chain of restarts this one belongs to, read from the session it replaces; absent for a session that restarts none, which is the first of its own chain. History and KPIs of a restarted session group by it. |
brief | optional Content | The written brief this session starts from when it restarts an ended one. Recorded by RecordRestart; absent for a session that restarts none. |
ordered_by | optional PrincipalId | The principal that ordered the restart, such as the owner a delegate acts for. Recorded by RecordRestart. |
requested_by | optional PrincipalId | The principal that asked for the restart to be recorded: the session's own principal, or a delegate that controls its sessions. Recorded by RecordRestart. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
replacedreferences HarnessSession (one, byreplaces)lineage_rootreferences HarnessSession (one, bylineage)requestedreferences Route of model (one, byrequested_route)harnessreferences Harness (one, byharness_id)agent_revisionreferences AgentRevision of agent (one, byagent_revision_id)principalreferences Principal of principal (one, byprincipal_id)restart_ordererreferences Principal of principal (one, byordered_by)restart_requesterreferences Principal of principal (one, byrequested_by)parentreferences HarnessSession (one, byparent_session_id)modereferences PermissionMode (one, bypermission_mode)policyreferences ModelPolicy (one, bymodel_policy_id)
Lifecycle of HarnessSession
Ended.ModelPolicy
A named limit on the routes a session may ask for, such as standard: the routes it knows, each with a rank, and its ceiling, the highest route a session under it may ask for. A session under the policy that asks for a route ranked above the ceiling's rank, or for a route the policy does not rank, is not opened. It may name the route a sub-agent takes when its spawn names none, one it ranks at or below the ceiling. Which route a turn then uses is applied by the evaluator of the harness, not here.
Identified by model_policy_id (ModelPolicyId).
| field | type | meaning |
|---|---|---|
name | Name | |
routes | list of RankedRoute | The routes the policy knows, each with its rank; a higher rank is above a lower one. |
ceiling_route | RouteId | The highest route a session under the policy may ask for; one of its ranked routes. |
sub_agent_route | optional RouteId | The route a sub-agent of a session under the policy takes when its spawn names none; one of its ranked routes, at or below the ceiling. The harness applies it. Absent, a sub-agent names its route itself. |
registered_at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
ceilingreferences Route of model (one, byceiling_route)sub_agentreferences Route of model (one, bysub_agent_route)
Lifecycle: one state, Registered; a recorded ModelPolicy does not change.
PermissionMode
One registered way a session treats an action that needs a decision (ask every time, plan without acting, take the actions of some kinds without asking). The core names no mode: a field of work or the binding of a harness registers the modes it has as rows here. A mode may name the one decider that decides every tool call of a session in it, such as a classifier. A retired mode opens no new session; sessions already in it keep it.
Identified by permission_mode_id (PermissionModeId).
| field | type | meaning |
|---|---|---|
name | Name | |
summary | string | What the mode takes without asking and what it asks for, in a few words. |
decider | optional Decider | The decider of every tool call of a session in this mode (Classifier for a mode in which a classifier decides); a decision by another is refused. Absent, any decider decides. |
registered_at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Lifecycle of PermissionMode
Retired.ToolCall
One call of a tool by a harness session. Requested until decided; Allowed or Denied by a verdict that is recorded on the call with who decided and how well that is known; an Allowed call ends Completed or Failed. agentic.authority may later reference a call; the call holds no decision identifier.
Identified by tool_call_id (ToolCallId).
| field | type | meaning |
|---|---|---|
tool_id | ToolId | |
harness_session_id | HarnessSessionId | |
input | Content | |
verdict | optional Verdict | The recorded decision, Allow or Deny; absent while the call is Requested. |
decider | optional Decider | |
mode_decider | optional Decider | The decider the session's permission mode names, kept with the call; when it is Classifier, a decision by another is refused. Absent, any decider decides. |
attribution | optional Attribution | Whether the decider was recorded, inferred or is not recorded. |
output | optional Content | |
read_failure | optional string | Why the tool's result could not be read, when it could not (CouldNotRead); the call then has no output, which is not an empty result. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
toolreferences Tool of tool (one, bytool_id)sessionreferences HarnessSession (one, byharness_session_id)
Lifecycle of ToolCall
Completed, CouldNotRead, Denied, Failed.Turn
One model call of a session: the inference it made, what it used and how large the context was when it was sent. Recorded once and never changed.
Identified by turn_id (TurnId).
| field | type | meaning |
|---|---|---|
harness_session_id | HarnessSessionId | |
inference_id | InferenceId | The model block's record of the call. |
usage | Usage | |
context_tokens | integer | |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
sessionreferences HarnessSession (one, byharness_session_id)inferencereferences Inference of model (one, byinference_id)
Lifecycle: one state, Recorded; a recorded Turn does not change.
Commands
CompactContext
Compact the context. The session replaces its context by a summary. The result must be smaller.
| field | type |
|---|---|
compaction_id | TurnId |
harness_session_id | HarnessSessionId |
tokens_before | integer |
tokens_after | integer |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
did-not-shrink refused | tokens_ | Compaction: A compaction leaves the context no smaller than it was. |
no-such-session refused | no HarnessSession for harness_ | Unknown: No session of this identity was opened. |
session-not-open refused | the HarnessSession of harness_ has state != Open | Session: The session is not in a state this command acts from. |
compacted | otherwise | creates a Compaction in Recorded; emits Context |
More columns: swipe horizontally, or focus the table and use the arrow keys.
CompleteToolCall
Complete a tool call.
Called by: Calling harness.
| field | type |
|---|---|
tool_call_id | ToolCallId |
ok | boolean |
output | Content |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such ToolCall | Unknown: No tool call has this identity. |
completed | ok == true | moves the ToolCall Allowed → Completed; emits Tool |
failed | otherwise | moves the ToolCall Allowed → Failed; emits Tool |
wrong-state refused | the ToolCall is in a state that does not allow it | Tool: The call is not in a state this command acts from. Completing a call that is Requested or Denied is refused with this error: a call completes only after it was allowed. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
DecideToolCall
Decide a tool call.
| field | type |
|---|---|
tool_call_id | ToolCallId |
verdict | Verdict |
decider | Decider |
attribution | Attribution |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
approval-pending refused | verdict == Approval | Approval: ApprovalRequired is not a final decision. The call stays Requested until an Allow or a Deny is recorded. |
unknown refused | no such ToolCall | Unknown: No tool call has this identity. |
wrong-decider refused | defined(mode_ and decider != Classifier | Decider: The session's permission mode names the classifier as decider; a decision of its call by another is refused, and the call stays Requested. |
allowed | verdict == Allow | moves the ToolCall Requested → Allowed; emits Tool |
denied | otherwise | moves the ToolCall Requested → Denied; emits Tool |
wrong-state refused | the ToolCall is in a state that does not allow it | Tool: The call is not in a state this command acts from. Completing a call that is Requested or Denied is refused with this error: a call completes only after it was allowed. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
EndSession
End a session. The session ends. The principal that asks is recorded: the session's own, or a delegate that controls its sessions.
| field | type |
|---|---|
harness_session_id | HarnessSessionId |
requested_by | PrincipalId |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-session refused | no such HarnessSession | Unknown: No session of this identity was opened. |
ended | otherwise | moves the HarnessSession Open → Ended; moves each HarnessSession with parent_ to Ended; emits Session |
wrong-state refused | the HarnessSession is in a state that does not allow it | Session: The session is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
NameSession
Name a session. An open session takes a name. A name another open session has is refused; the name of an ended session is free.
| field | type |
|---|---|
harness_session_id | HarnessSessionId |
name | Name |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-session refused | no such HarnessSession | Unknown: No session of this identity was opened. |
name-in-use refused | a HarnessSession with defined(name) and name == input. | Session: An open session has this name; a second open session does not take it. |
named | otherwise | updates the HarnessSession; emits Session |
More columns: swipe horizontally, or focus the table and use the arrow keys.
OpenSession
Open a session. Starts an agent revision in a harness for a principal. Default deny: an unknown or retired harness, revision, principal or permission mode is refused.
| field | type | meaning |
|---|---|---|
harness_session_id | HarnessSessionId | |
harness_id | HarnessId | |
agent_revision_id | AgentRevisionId | |
principal_id | PrincipalId | |
permission_mode | PermissionModeId | |
context_window | integer | |
max_depth | integer | |
model_policy_id | optional ModelPolicyId | The model policy the session opens under; absent, no policy limits its route. |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
already-opened refused | the HarnessSession exists already | Session: A session with this identity was opened: the request repeats one already taken and opens nothing. The session it names is the first request's result. |
no-such-harness refused | no Harness for harness_ | Unknown: No harness of this identity is registered. |
no-such-revision refused | no AgentRevision for agent_ | Unknown: No agent revision of this identity is published. |
no-such-principal refused | no Principal for principal_ | Unknown: No principal of this identity is registered. |
no-such-mode refused | no PermissionMode for permission_ | Unknown: No permission mode of this identity is registered. |
no-such-policy refused | no ModelPolicy for model_ | Unknown: No model policy of this identity is registered. |
mode-retired refused | the PermissionMode of permission_ has state == Retired | Permission: The permission mode is not in a state this command acts from. |
harness-retired refused | the Harness of harness_ has state == Retired | Harness: The harness is not in a state this command acts from. |
revision-retired refused | the AgentRevision of agent_ has state == Retired | Revision: A retired agent revision is not run. |
principal-retired refused | the Principal of principal_ has state == Retired | Principal: A session does not act for a retired principal. |
limits-above-harness refused | the Harness of harness_ has input. | Limits: A session asks for a larger context window or deeper nesting than its harness allows. |
depth-limit-above-harness refused | the Harness of harness_ has input. | Limits: A session asks for a larger context window or deeper nesting than its harness allows. |
opened | otherwise | creates a HarnessSession in Open; emits Session |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordRestart
Record that a session restarts an ended one. The session restarts an ended one from a written brief. The restart records who ordered it and which principal asked: the session's own, or a delegate that controls its sessions.
| field | type |
|---|---|
harness_session_id | HarnessSessionId |
replaces | HarnessSessionId |
brief | Content |
ordered_by | PrincipalId |
requested_by | PrincipalId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such HarnessSession | Unknown: No session of this identity was opened. |
already-restarts refused | defined(replaces) | Already: The session already records the session it restarts; a session restarts one. |
not-open refused | state != Open | Session: The session is not in a state this command acts from. |
no-such-replaced refused | no HarnessSession for replaces | Unknown: No session of this identity was opened. |
replaced-still-open refused | the HarnessSession of replaces has state == Open | Replaced: The session named as replaced is still open; a restart replaces a session that ended. |
restarted-in-lineage | the HarnessSession of replaces has defined(lineage) | updates the HarnessSession; emits Session |
restarted | otherwise | updates the HarnessSession; emits Session |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordTurn
Record a turn. One model call of an open session, with the inference it made, what it used and how large the context was. A turn whose context does not fit the window is refused.
| field | type |
|---|---|
turn_id | TurnId |
harness_session_id | HarnessSessionId |
inference_id | InferenceId |
usage | Usage |
context_tokens | integer |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-session refused | no HarnessSession for harness_ | Unknown: No session of this identity was opened. |
session-not-open refused | the HarnessSession of harness_ has state != Open | Session: The session is not in a state this command acts from. |
context-window-exceeded refused | the HarnessSession of harness_ has input. | Context: The turn carries more context than the session's window holds. |
recorded | otherwise | creates a Turn in Recorded; emits Turn |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordUnreadableResult
Record that a tool's result could not be read.
Called by: Calling harness.
| field | type |
|---|---|
tool_call_id | ToolCallId |
read_failure | string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such ToolCall | Unknown: No tool call has this identity. |
recorded | otherwise | moves the ToolCall Allowed → Could; emits Tool |
wrong-state refused | the ToolCall is in a state that does not allow it | Tool: The call is not in a state this command acts from. Completing a call that is Requested or Denied is refused with this error: a call completes only after it was allowed. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RegisterHarness
Register a harness.
| field | type |
|---|---|
harness_id | HarnessId |
kind | HarnessKind |
name | Name |
context_window | integer |
max_depth | integer |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
invalid-limits refused | (context_ | Invalid: The context window is not at least 1 or the depth limit is negative. |
registered | otherwise | creates a Harness in Active; emits Harness |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RegisterModelPolicy
Register a model policy.
| field | type | meaning |
|---|---|---|
model_policy_id | ModelPolicyId | |
name | Name | |
routes | list of RankedRoute | |
ceiling_route | RouteId | |
sub_agent_route | optional RouteId | The route a sub-agent takes when its spawn names none; absent, none is set. |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
ceiling-not-ranked refused | every r in routes has r. | Ceiling: The ceiling of a model policy is a route the policy does not rank; nothing was registered. |
sub-agent-route-not-ranked refused | defined(sub_ | Sub: The sub-agent route of a model policy is a route the policy does not rank; nothing was registered. |
sub-agent-route-above-ceiling refused | defined(sub_ | Sub: The sub-agent route of a model policy is ranked above its ceiling; nothing was registered. |
registered | otherwise | creates a ModelPolicy in Registered; emits Model |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RegisterPermissionMode
Register a permission mode.
| field | type | meaning |
|---|---|---|
permission_mode_id | PermissionModeId | |
name | Name | |
summary | string | |
decider | optional Decider | The one decider of every tool call of a session in the mode; absent, any decides. |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
registered | otherwise | creates a PermissionMode in Registered; emits Permission |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RequestRoute
Request a route. An open session asks for the route its turns use. Under a model policy, a route ranked above the policy's ceiling or not ranked by it is refused.
| field | type |
|---|---|
harness_session_id | HarnessSessionId |
route_id | RouteId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-session refused | no such HarnessSession | Unknown: No session of this identity was opened. |
not-open refused | state != Open | Session: The session is not in a state this command acts from. |
requested-without-policy | not (defined(model_ | updates the HarnessSession; emits Route |
policy-missing refused | no ModelPolicy for model_ | Route: The session asks for a route its model policy does not rank; its route is unchanged. |
route-not-ranked refused | the ModelPolicy of model_ has every r in routes has r. | Route: The session asks for a route its model policy does not rank; its route is unchanged. |
route-above-ceiling refused | the ModelPolicy of model_ has some asked in routes with asked. | Route: The session asks for a route ranked above its model policy's ceiling; its route is unchanged. |
requested | otherwise | updates the HarnessSession; emits Route |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RequestToolCall
Request a tool call. Asks for one call of a tool for the agent revision the session runs. A revision that was never published or is retired calls no tool, and a tool the revision does not list is not called. The call then waits for the authority's decision, which needs a grant that covers the revision, the tool's category and the scope.
Called by: Calling harness.
| field | type | meaning |
|---|---|---|
tool_call_id | ToolCallId | |
tool_id | ToolId | |
harness_session_id | HarnessSessionId | |
agent_revision_id | AgentRevisionId | |
input | Content | |
mode_decider | optional Decider | The decider the session's permission mode names, as the calling harness runs it; absent when it names none. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown-tool refused | no Tool for tool_ | Unknown: No tool of this identity is published. |
unknown-revision refused | no AgentRevision for agent_ | Unknown: No agent revision of this identity is published. |
tool-withdrawn refused | the Tool of tool_ has state == Withdrawn | Tool: The tool is withdrawn; a call to it is refused. |
revision-retired refused | the AgentRevision of agent_ has state == Retired | Revision: A retired agent revision is not run. |
tool-not-listed refused | the AgentRevision of agent_ has every t in tools has t != input. | Tool: The agent revision does not list the tool; a call to it is refused. |
requested | otherwise | creates a ToolCall in Requested; emits Tool |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RetireHarness
Retire a harness.
| field | type |
|---|---|
harness_id | HarnessId |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-harness refused | no such Harness | Unknown: No harness of this identity is registered. |
retired | otherwise | moves the Harness Active → Retired; emits Harness |
wrong-state refused | the Harness is in a state that does not allow it | Harness: The harness is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RetirePermissionMode
Retire a permission mode.
| field | type |
|---|---|
permission_mode_id | PermissionModeId |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-mode refused | no such PermissionMode | Unknown: No permission mode of this identity is registered. |
retired | otherwise | moves the PermissionMode Registered → Retired; emits Permission |
wrong-state refused | the PermissionMode is in a state that does not allow it | Permission: The permission mode is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
SpawnSubAgent
Spawn a sub-agent session. A session starts another as its sub-agent. The child runs in the parent's harness, for the parent's principal and in the parent's permission mode, one level deeper. Refused beyond the harness's maximum depth.
| field | type |
|---|---|
harness_session_id | HarnessSessionId |
parent_session_id | HarnessSessionId |
agent_revision_id | AgentRevisionId |
depth | integer |
requested_route | optional RouteId |
at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
already-spawned refused | the HarnessSession exists already | Session: A session with this identity was opened: the request repeats one already taken and opens nothing. The session it names is the first request's result. |
no-such-parent refused | no HarnessSession for parent_ | Unknown: No session of this identity was opened. |
no-such-revision refused | no AgentRevision for agent_ | Unknown: No agent revision of this identity is published. |
parent-not-open refused | the HarnessSession of parent_ has state != Open | Session: The session is not in a state this command acts from. |
max-depth-exceeded refused | the HarnessSession of parent_ has depth >= max_ | Max: The parent is already at the deepest level its harness allows. |
wrong-depth refused | the HarnessSession of parent_ has input. | Wrong: The depth named is not the parent's depth plus 1. |
revision-retired refused | the AgentRevision of agent_ has state == Retired | Revision: A retired agent revision is not run. |
spawned | otherwise | creates a HarnessSession in Open; emits Sub |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Events
| event | fields | emitted by |
|---|---|---|
ContextCompacted | compaction_ TurnId, harness_ HarnessSessionId, tokens_ integer, tokens_ integer, at timestamp | Compact |
HarnessRegistered | harness_ HarnessId, kind HarnessKind, context_ integer, max_ integer, at timestamp | Register |
HarnessRetired | harness_ HarnessId, at timestamp | Retire |
ModelPolicyRegistered | model_ ModelPolicyId, name Name, ceiling_ RouteId, sub_ optional RouteId, at timestamp | Register |
PermissionModeRegistered | permission_ PermissionModeId, name Name, decider optional Decider, at timestamp | Register |
PermissionModeRetired | permission_ PermissionModeId, at timestamp | Retire |
RouteRequested | harness_ HarnessSessionId, route_ RouteId | Request |
SessionEnded | harness_ HarnessSessionId, requested_ PrincipalId, at timestamp | End |
SessionNamed | harness_ HarnessSessionId, name Name | Name |
SessionOpened | harness_ HarnessSessionId, harness_ HarnessId, agent_ AgentRevisionId, principal_ PrincipalId, permission_ PermissionModeId, model_ optional ModelPolicyId, at timestamp | Open |
SessionRestarted | harness_ HarnessSessionId, replaces HarnessSessionId, lineage optional HarnessSessionId, brief Content, ordered_ PrincipalId, requested_ PrincipalId | Record |
SubAgentSpawned | harness_ HarnessSessionId, parent_ HarnessSessionId, agent_ AgentRevisionId, depth integer, requested_ optional RouteId, at timestamp | Spawn |
ToolCallCompleted | tool_ ToolCallId, ok boolean, output Content | Complete |
ToolCallDecided | tool_ ToolCallId, verdict Verdict, decider Decider, attribution Attribution | Decide |
ToolCallRequested | tool_ ToolCallId, tool_ ToolId, harness_ HarnessSessionId, input Content | Request |
ToolResultNotRead | tool_ ToolCallId, read_ string | Record |
TurnRecorded | turn_ TurnId, harness_ HarnessSessionId, inference_ InferenceId, usage Usage, context_ integer, at timestamp | Record |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Views
| view | rows | fields |
|---|---|---|
HarnessSessionsHarness sessions | each HarnessSession | harness_ HarnessSessionId, harness_ HarnessId, agent_ AgentRevisionId, principal_ PrincipalId, parent_ optional HarnessSessionId, role SessionRole, depth integer, max_ integer, context_ integer, permission_ PermissionModeId, opened_ timestamp, name optional Name, requested_ optional RouteId, model_ optional ModelPolicyId, decider optional Decider, replaces optional HarnessSessionId, lineage optional HarnessSessionId, brief optional Content, ordered_ optional PrincipalId, requested_ optional PrincipalId, state State |
HarnessesHarnesses | each Harness | harness_ HarnessId, kind HarnessKind, name Name, context_ integer, max_ integer, registered_ timestamp, state State |
ModelPoliciesModel policies | each ModelPolicy | model_ ModelPolicyId, name Name, routes list of RankedRoute, ceiling_ RouteId, sub_ optional RouteId, registered_ timestamp, state State |
PermissionModesPermission modes | each PermissionMode | permission_ PermissionModeId, name Name, summary string, decider optional Decider, registered_ timestamp, state State |
ToolCallsTool calls | each ToolCall | tool_ ToolCallId, tool_ ToolId, harness_ HarnessSessionId, input Content, verdict optional Verdict, decider optional Decider, mode_ optional Decider, attribution optional Attribution, output optional Content, read_ optional string, state State |
TurnsTurns | each Turn | turn_ TurnId, harness_ HarnessSessionId, inference_ InferenceId, usage Usage, context_ integer, at timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Types
| type | is | values or fields |
|---|---|---|
HarnessKindVendor is a loop a vendor ships and this system only observes. Driven is a loop whose steps an orchestrator outside it issues. Native is a loop written for this system. | one of | Vendor, Driven, Native |
RankedRoute | a record | route_ RouteId, rank integer |
SessionRoleMain is a session opened for a principal; SubAgent is one a session spawned. | one of | Main, Sub |
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 |
|---|---|---|---|---|
limit_overrunsRuns that went past a turn, time or cost limit of their assignment. How: Sessions whose count of TurnRecorded events, wall seconds or spend exceeds the limit named in the assignment. A limit held only in the prompt does not count as enforced. Must be 0. | count | lower | gate | planned source: research/2610.09995 |
approvals_in_summariesTool calls executed on an approval that exists only in a compaction summary. How: ToolCallDecided accepts whose only trace of approval is text inside a ContextCompacted summary, with no recorded decision of a decider. Must be 0. | count | lower | gate | planned source: research/2610.29869 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Quality
| KPI | unit | better | gate | status |
|---|---|---|---|---|
context_size_p90_tokens90th percentile of the context size at a model turn. How: Input plus cache read plus cache write tokens of each ModelTurnRecorded, 90th percentile per model and scope (the median and the largest are reported too). | tokens | lower | – | computed today source: docs/kpis.md |
turnsModel turns taken. How: Count of ModelTurnRecorded events in the window. Divide by tasks done for turns per task. | count | lower | – | simulated source: design |
compactions_per_runContext compactions per run. How: ContextCompacted events divided by sessions. Each compaction discards most of the context. | count | lower | – | planned source: research/2609.40303 |
session_restart_shareShare of opened sessions that restart an ended one. How: SessionRestarted events divided by SessionOpened events, per principal. Time and tokens of a lineage are summed over its sessions, grouped by the lineage each restart names. | share | lower | – | planned source: design |
tool_results_not_readTool calls whose result could not be read. How: ToolResultNotRead events per session and per tool. Each is recorded as could not read, never as an empty result. | count | lower | – | planned 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 harness:
| setting | type | unit | default | contract | what |
|---|---|---|---|---|---|
kind | string | every port | The kind of harness, a row a field registers. | ||
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.