Layer 9 · composition
deployment
An architecture revision brought to a runtime, and the runs it serves. An installation puts one architecture revision on one runtime with a binding (which concrete thing plays each part); a runtime holds one Active installation at a time, and takes no install while a run on it is open, nor while the runner's reading of its open runs says one is live or could not be read. Draining takes no new run and lets the runs it holds end; a rollback ends the current installation and makes the one it replaced Active again. An architecture run is one run of an installation for one subject: queued, running, waiting, and done, failed or cancelled; a run a forced stop ended is cancelled as orphaned. A run names its requester, process, workspace and firing as the caller states them, and a serial key keeps one run of the key live at a time. It keeps the revision and binding of the installation it was queued on, so a newer revision never changes a run already queued. The caller names a run's identity once per intent; a repeat with the same identity starts nothing. A deployment brings one revision onto one scope of a target: agenticspec admits it with its contract, binding and packing and writes its bundle (agenticspec-deployment/1), a translator turns the bundle into its target's architecture, and the target realizes it and reports how its units run. It records each step by digest and its target and scope by value, as ESS declares no relation across systems. A request is refused before anything is recorded when the revision is not released (an in-process run takes a draft), when admission names findings, or when the scope is taken; a recorded deployment is refused later by its translator's coverage or by its target, each by name with its findings.
Depends on
- architecture · layer 9 · 24 references
- runtime · layer 8 · 18 references
- workspace · layer 8 · 4 references
- trigger · layer 7 · 4 references
- process · layer 5 · 4 references
- work · layer 5 · 6 references
- time_source · layer 3 · 2 references
- principal · layer 1 · 4 references
- shared · layer 0 · 9 references
Used by
No block depends on this one.
Entities
ArchitectureRun
One run of an installed architecture revision for one subject, pinned to the revision and binding of its installation. Queued, then Running and Waiting in turn, and Done, Failed or Cancelled once.
Identified by run_id (ArchitectureRunId).
| field | type | meaning |
|---|---|---|
installation_id | InstallationId | |
runtime_id | RuntimeId | The runtime of its installation; while the run is open, the runtime takes no install. |
revision_id | ArchitectureRevisionId | The architecture revision of its installation when it was queued. |
binding | BindingDigest | The binding of its installation when it was queued. |
subject_key | optional string | What the run is for (the subject of the event or the firing that started it), so runs of one subject can be found. |
task_id | optional TaskId | The task the run works on; the agent runs of that task are its work (agentic.work Run). |
requested_by | optional PrincipalId | The principal who asked for the run, as the caller names it. |
process_id | optional ProcessId | The process the run follows. A process identifier names one published version, so with revision_ and binding it is the pinned copy of protocol and settings the run keeps. |
workspace_id | optional WorkspaceId | The workspace the run works in, as the caller names it. |
firing_id | optional FiringId | The firing of a trigger that started the run, as the caller names it. |
serial_key | optional string | One live run per key: while a run with this key is running or waiting, another run with it does not start (KeyHeld) and stays queued. Shared by submitters whose subjects differ; absent, it serialises nothing. Not subject_, which says what a run is for and lets runs of one subject overlap. |
queued_at | timestamp | |
failure | optional string | Why it failed, as the runner reports it. |
cancelled_for | optional CancelReason |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
installationreferences Installation (one, byinstallation_id)runtimereferences Runtime of runtime (one, byruntime_id)revisionreferences ArchitectureRevision of architecture (one, byrevision_id)taskreferences Task of work (one, bytask_id)requesterreferences Principal of principal (one, byrequested_by)processreferences Process of process (one, byprocess_id)workspacereferences Workspace of workspace (one, byworkspace_id)firingreferences Firing of trigger (one, byfiring_id)
Lifecycle of ArchitectureRun
Cancelled, Done, Failed.Deployment
One architecture revision on one target, from its request to its end.
Identified by deployment_id (DeploymentId).
| field | type | meaning |
|---|---|---|
architecture_id | ArchitectureId | |
revision_id | optional ArchitectureRevisionId | The released revision; absent only for an in-process run of a draft. |
in_process | boolean | The run is the in-process runtime of the local test, which needs no release. |
target | Name | |
scope | Name | |
contract_digest | Digest | |
binding_digest | Digest | |
packing_digest | Digest | |
bundle_digest | optional Digest | |
translation_digest | optional Digest | |
promoted_from | optional DeploymentId | The deployment of the same revision this one was promoted from. |
refusal | optional Refusal | |
findings | list of Finding | |
reason | optional string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
architecturereferences Architecture of architecture (one, byarchitecture_id)revisionreferences ArchitectureRevision of architecture (one, byrevision_id)promotedreferences Deployment (one, bypromoted_from)unitsowns DeploymentUnit (many, bydeployment_id)
Lifecycle of Deployment
Failed, Refused, Stopped.DeploymentUnit
One unit of a deployment, as its bundle names it and its target observes it.
Identified by unit_id (DeploymentUnitId).
| field | type | meaning |
|---|---|---|
deployment_id | DeploymentId | |
name | Name | |
kind | UnitKind | |
parts | list of Name | The part instances of the unit, by path. |
replicas | optional integer | The desired copies; absent for a job or scheduled unit, which runs on demand. |
workload_id | optional WorkloadId | The workload the unit runs as, once mapped. |
target_object | optional string | The object of the target's architecture the translator mapped the unit to, by value. |
ready | integer | |
last_failure | optional string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
workloadreferences Workload of runtime (one, byworkload_id)
Always holds: ready >= 0.
Lifecycle of DeploymentUnit
Mapped.Installation
One architecture revision put on one runtime with a binding. Active while it takes runs; Draining takes no new run; Drained once its last run ended; RolledBack when a rollback ended it. It names the installation it replaced, which a rollback makes Active again.
Identified by installation_id (InstallationId).
| field | type | meaning |
|---|---|---|
runtime_id | RuntimeId | |
revision_id | ArchitectureRevisionId | |
binding | BindingDigest | |
replaces | optional InstallationId | The installation of the same runtime this one took over from; a rollback returns to it. |
installed_at | timestamp |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
runtimereferences Runtime of runtime (one, byruntime_id)revisionreferences ArchitectureRevision of architecture (one, byrevision_id)replacedreferences Installation (one, byreplaces)
Lifecycle of Installation
RolledBack.Commands
CancelRun
Cancel a run.
Called by: Requester, Runner.
| field | type |
|---|---|
run_id | ArchitectureRunId |
reason | CancelReason |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such ArchitectureRun | Unknown: No architecture run has this identity; nothing changed. |
cancelled | otherwise | moves the ArchitectureRun Queued, Running, Waiting → Cancelled; emits Run |
wrong-state refused | the ArchitectureRun is in a state that does not allow it | Run: The run is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
DrainInstallation
Drain an installation. The installation takes no new run; the runs it holds go on until they end.
Called by: Deployer.
| field | type |
|---|---|
installation_id | InstallationId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Installation | Unknown: No installation has this identity; nothing changed. |
draining | otherwise | moves the Installation Active → Draining; emits Drain |
wrong-state refused | the Installation is in a state that does not allow it | Installation: The installation is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
FailRun
Report a run failed.
Called by: Runner.
| field | type |
|---|---|
run_id | ArchitectureRunId |
failure | string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such ArchitectureRun | Unknown: No architecture run has this identity; nothing changed. |
failed | otherwise | moves the ArchitectureRun Queued, Running, Waiting → Failed; emits Run |
wrong-state refused | the ArchitectureRun is in a state that does not allow it | Run: The run is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
FinishRun
Report a run done.
Called by: Runner.
| field | type |
|---|---|
run_id | ArchitectureRunId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such ArchitectureRun | Unknown: No architecture run has this identity; nothing changed. |
done | otherwise | moves the ArchitectureRun Running → Done; emits Run |
wrong-state refused | the ArchitectureRun is in a state that does not allow it | Run: The run is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
InstallRevision
Install an architecture revision on a runtime.
Called by: Deployer.
| field | type | meaning |
|---|---|---|
runtime_id | RuntimeId | The runtime the revision is installed on. |
revision_id | ArchitectureRevisionId | The architecture revision installed. |
binding | BindingDigest | The digest of the binding, which concrete thing plays each part. |
replaces | optional InstallationId | The drained or draining installation this one replaces, which a rollback returns to. |
guard_reading_id | optional GuardReadingId | The runner's reading of whether a run on the runtime is live (guard runs-). An install that names none is checked against this block's own runs only. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown-runtime refused | no Runtime for runtime_ | Unknown: No runtime has this identity; nothing was installed. |
unknown-revision refused | no ArchitectureRevision for revision_ | Unknown: No architecture revision has this identity; nothing was installed. |
unknown-replaced refused | no Installation for replaces | Unknown: No installation has this identity; nothing changed. |
unknown-reading refused | no GuardReading for guard_ | Unknown: No guard reading has this identity; nothing was installed. |
replaced-on-other-runtime refused | the Installation of replaces has runtime_ | Replaced: The installation named as replaced is on another runtime; nothing was installed. |
replaced-rolled-back refused | the Installation of replaces has state == Rolled | Replaced: The installation named as replaced was rolled back, so no rollback could return to it; nothing was installed. |
runtime-has-active refused | a Installation with runtime_ | Runtime: The runtime already holds an Active installation; drain it before installing another. Nothing was installed. |
runs-open refused | a ArchitectureRun with runtime_ | Runs: A run on the runtime is queued, running or waiting, or the runner's reading says one is live; let it end, or cancel it, before installing. Nothing was installed. |
reading-unreadable refused | the GuardReading of guard_ has answer == Unreadable | Guard: The runner's answer whether a run on the runtime is live could not be read; read it again before installing. Nothing was installed. |
reading-runs-live refused | the GuardReading of guard_ has answer == Yes | Runs: A run on the runtime is queued, running or waiting, or the runner's reading says one is live; let it end, or cancel it, before installing. Nothing was installed. |
installed | otherwise | creates a Installation in Active; emits Revision |
More columns: swipe horizontally, or focus the table and use the arrow keys.
MapUnit
Map a unit.
Called by: Translator.
| field | type |
|---|---|
unit_id | DeploymentUnitId |
target_object | string |
workload_id | optional WorkloadId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such DeploymentUnit | Unknown: No unit has this identity. |
mapped | otherwise | moves the DeploymentUnit Declared → Mapped; emits Unit |
wrong-state refused | the DeploymentUnit is in a state that does not allow it | Unit: The unit is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ObserveUnit
Observe a unit. What the target last observed of a mapped unit, its ready replicas and its last failure.
Called by: Target.
| field | type |
|---|---|
unit_id | DeploymentUnitId |
ready | integer |
last_failure | optional string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
negative-ready refused | ready < 0 | Negative: A unit has no negative number of ready replicas; nothing was observed. |
unknown refused | no such DeploymentUnit | Unknown: No unit has this identity. |
observed | otherwise | moves the DeploymentUnit Mapped → Mapped; emits Unit |
not-mapped refused | the DeploymentUnit is in a state that does not allow it | Unit: The unit is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
QueueRun
Queue a run of an installation. The installation takes a run for a subject, pinned to its revision and binding. A draining, drained or rolled-back installation takes none.
Called by: Runner.
| field | type | meaning |
|---|---|---|
run_id | ArchitectureRunId | Chosen by the caller once per intent; a repeat with the same identity starts nothing. |
installation_id | InstallationId | |
subject_key | optional string | |
task_id | optional TaskId | |
requested_by | optional PrincipalId | |
process_id | optional ProcessId | |
workspace_id | optional WorkspaceId | |
firing_id | optional FiringId | |
serial_key | optional string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
repeated refused | the ArchitectureRun exists already | Run: A run with this identity exists: the request repeats one already taken, and starts nothing. The run it names is the first request's result, read in the views. |
unknown-installation refused | no Installation for installation_ | Unknown: No installation has this identity; nothing changed. |
unknown-task refused | no Task for task_ | Unknown: No task has this identity; no run was queued. |
installation-draining refused | the Installation of installation_ has state == Draining | Installation: The installation drains and takes no new run; queue it on the installation that replaced it. |
installation-not-active refused | the Installation of installation_ has (state == Drained or state == Rolled | Installation: The installation is drained or rolled back and takes no run. |
queued | otherwise | creates a ArchitectureRun in Queued; emits Run |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordBundle
Record the bundle.
Called by: Deployer.
| field | type |
|---|---|
deployment_id | DeploymentId |
bundle_digest | Digest |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Deployment | Unknown: No deployment has this identity. |
bundled | otherwise | moves the Deployment Requested → Bundled; emits Deployment |
wrong-state refused | the Deployment is in a state that does not allow it | Deployment: The deployment is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordTranslation
Record the translation.
Called by: Translator.
| field | type |
|---|---|
deployment_id | DeploymentId |
translation_digest | Digest |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Deployment | Unknown: No deployment has this identity. |
translated | otherwise | moves the Deployment Bundled → Translated; emits Deployment |
wrong-state refused | the Deployment is in a state that does not allow it | Deployment: The deployment is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordUnit
Record a unit.
Called by: Deployer.
| field | type |
|---|---|
deployment_id | DeploymentId |
name | Name |
kind | UnitKind |
parts | list of Name |
replicas | optional integer |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
replicas-on-run-to-completion refused | (kind == Job or kind == Scheduled) and defined(replicas) | Replicas: A job or scheduled unit runs on demand and has no replicas. |
replicas-below-one refused | defined(replicas) and replicas < 1 | Replicas: A unit that has replicas has at least one. |
unknown-deployment refused | no Deployment for deployment_ | Unknown: No deployment has this identity. |
not-bundled refused | the Deployment of deployment_ has state != Bundled | Not: Units are recorded only for a deployment whose bundle is written. |
recorded | otherwise | creates a DeploymentUnit in Declared; emits Unit |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RefuseCoverage
Refuse on coverage. The translator refused objects of the bundle; the deployment is refused as CoverageRefused.
Called by: Translator.
| field | type |
|---|---|
deployment_id | DeploymentId |
findings | list of Finding |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-findings refused | findings. | No: A refusal names at least one finding. |
unknown refused | no such Deployment | Unknown: No deployment has this identity. |
refused | otherwise | moves the Deployment Bundled → Refused; emits Deployment |
wrong-state refused | the Deployment is in a state that does not allow it | Deployment: The deployment is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RefuseOnTarget
Refuse on the target. The target named violations (quota, placement, policy); the deployment is refused as TargetRefused.
Called by: Target.
| field | type |
|---|---|
deployment_id | DeploymentId |
findings | list of Finding |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-findings refused | findings. | No: A refusal names at least one finding. |
unknown refused | no such Deployment | Unknown: No deployment has this identity. |
refused | otherwise | moves the Deployment Realizing, Translated → Refused; emits Deployment |
wrong-state refused | the Deployment is in a state that does not allow it | Deployment: The deployment is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ReportDeploymentDegraded
Report the deployment degraded.
Called by: Target.
| field | type |
|---|---|
deployment_id | DeploymentId |
reason | string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Deployment | Unknown: No deployment has this identity. |
degraded | otherwise | moves the Deployment Running → Degraded; emits Deployment |
wrong-state refused | the Deployment is in a state that does not allow it | Deployment: The deployment is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ReportDeploymentFailed
Report the deployment failed.
Called by: Target.
| field | type |
|---|---|
deployment_id | DeploymentId |
reason | string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Deployment | Unknown: No deployment has this identity. |
failed | otherwise | moves the Deployment Degraded, Realizing, Running → Failed; emits Deployment |
wrong-state refused | the Deployment is in a state that does not allow it | Deployment: The deployment is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ReportDeploymentRunning
Report the deployment running.
Called by: Target.
| field | type |
|---|---|
deployment_id | DeploymentId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Deployment | Unknown: No deployment has this identity. |
running | otherwise | moves the Deployment Degraded, Realizing → Running; emits Deployment |
wrong-state refused | the Deployment is in a state that does not allow it | Deployment: The deployment is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ReportDrained
Report an installation drained.
Called by: Runner.
| field | type |
|---|---|
installation_id | InstallationId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Installation | Unknown: No installation has this identity; nothing changed. |
runs-not-ended refused | a ArchitectureRun with installation_ | Runs: A run of the installation has not ended, so it is not drained yet. |
drained | otherwise | moves the Installation Draining → Drained; emits Installation |
wrong-state refused | the Installation is in a state that does not allow it | Installation: The installation is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RequestDeployment
Request a deployment. Record an admitted revision for one scope of one target, or refuse it with the findings of admission.
Called by: Deployer.
| field | type |
|---|---|
architecture_id | ArchitectureId |
revision_id | optional ArchitectureRevisionId |
in_process | boolean |
target | Name |
scope | Name |
contract_digest | Digest |
binding_digest | Digest |
packing_digest | Digest |
findings | list of Finding |
promoted_from | optional DeploymentId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
not-admitted refused | findings. | Not: Admission named findings; each is listed by the name of its rule. |
not-released refused | in_ | Not: The revision is not released, and only the in-process runtime runs a draft. |
unknown-promoted refused | no Deployment for promoted_ | Unknown: No deployment has this identity. |
promotion-changes-revision refused | the Deployment of promoted_ has revision_ | Promotion: A promotion keeps the revision of the deployment it was promoted from (design/deployment.md K11). |
promotion-changes-contract refused | the Deployment of promoted_ has contract_ | Promotion: A promotion keeps the contract digest of the deployment it was promoted from (design/deployment.md K11). |
scope-taken refused | a Deployment with target == input. | Scope: Another deployment that has not ended holds this scope of the target. |
requested | otherwise | creates a Deployment in Requested; emits Deployment |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ResumeRun
Resume a waiting run.
Called by: Runner.
| field | type |
|---|---|
run_id | ArchitectureRunId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such ArchitectureRun | Unknown: No architecture run has this identity; nothing changed. |
resumed | otherwise | moves the ArchitectureRun Waiting → Running; emits Run |
wrong-state refused | the ArchitectureRun is in a state that does not allow it | Run: The run is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RollBack
Roll an installation back to the one it replaced.
Called by: Deployer.
| field | type |
|---|---|
installation_id | InstallationId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Installation | Unknown: No installation has this identity; nothing changed. |
nothing-to-roll-back-to refused | state == Active and not (defined(replaces)) | Nothing: The installation replaced none, or the one it replaced was rolled back itself and cannot be made Active again, so there is no revision to roll back to; nothing changed. |
replaced-not-reactivatable refused | the Installation of replaces has state != Draining and state != Drained | Nothing: The installation replaced none, or the one it replaced was rolled back itself and cannot be made Active again, so there is no revision to roll back to; nothing changed. |
rolled-back | otherwise | moves the Installation Active → Rolled; moves each Installation with installation_ to Active; emits Installation |
wrong-state refused | the Installation is in a state that does not allow it | Installation: The installation is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
StartRealizing
Start realizing.
Called by: Target.
| field | type |
|---|---|
deployment_id | DeploymentId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Deployment | Unknown: No deployment has this identity. |
realizing | otherwise | moves the Deployment Translated → Realizing; emits Realizing |
wrong-state refused | the Deployment is in a state that does not allow it | Deployment: The deployment is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
StartRun
Start a queued run.
Called by: Runner.
| field | type |
|---|---|
run_id | ArchitectureRunId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such ArchitectureRun | Unknown: No architecture run has this identity; nothing changed. |
installation-not-active refused | the Installation of installation_ has (state == Drained or state == Rolled | Installation: The installation is drained or rolled back and takes no run. |
key-held refused | a ArchitectureRun with defined(subject. | Key: Another run with this run's serial key is running or waiting; the run stays queued and starts once that run ended. The key is on the run's row. |
started | otherwise | moves the ArchitectureRun Queued → Running; emits Run |
wrong-state refused | the ArchitectureRun is in a state that does not allow it | Run: The run is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
StopDeployment
Stop a deployment.
Called by: Deployer.
| field | type |
|---|---|
deployment_id | DeploymentId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such Deployment | Unknown: No deployment has this identity. |
stopped | otherwise | moves the Deployment Bundled, Degraded, Realizing, Requested, Running, Translated → Stopped; emits Deployment |
wrong-state refused | the Deployment is in a state that does not allow it | Deployment: The deployment is not in a state this command acts from. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
WaitRun
Record that a run waits.
Called by: Runner.
| field | type |
|---|---|
run_id | ArchitectureRunId |
reason | WaitReason |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
unknown refused | no such ArchitectureRun | Unknown: No architecture run has this identity; nothing changed. |
waiting | otherwise | moves the ArchitectureRun Running → Waiting; emits Run |
wrong-state refused | the ArchitectureRun is in a state that does not allow it | Run: The run 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 |
|---|---|---|
DeploymentBundled | deployment_ DeploymentId, bundle_ Digest | Record |
DeploymentDegraded | deployment_ DeploymentId, reason string | Report |
DeploymentFailed | deployment_ DeploymentId, reason string | Report |
DeploymentRefused | deployment_ DeploymentId, refusal Refusal, findings list of Finding | Refuse, Refuse |
DeploymentRequested | deployment_ DeploymentId, architecture_ ArchitectureId, revision_ optional ArchitectureRevisionId, target Name, scope Name | Request |
DeploymentRunning | deployment_ DeploymentId | Report |
DeploymentStopped | deployment_ DeploymentId | Stop |
DeploymentTranslated | deployment_ DeploymentId, translation_ Digest | Record |
DrainStarted | installation_ InstallationId | Drain |
InstallationDrained | installation_ InstallationId | Report |
InstallationRolledBack | installation_ InstallationId, reactivated optional InstallationId | Roll |
RealizingStarted | deployment_ DeploymentId | Start |
RevisionInstalled | installation_ InstallationId, runtime_ RuntimeId, revision_ ArchitectureRevisionId, binding BindingDigest, replaces optional InstallationId | Install |
RunCancelled | run_ ArchitectureRunId, reason CancelReason | Cancel |
RunDone | run_ ArchitectureRunId | Finish |
RunFailed | run_ ArchitectureRunId, failure string | Fail |
RunQueued | run_ ArchitectureRunId, installation_ InstallationId, revision_ ArchitectureRevisionId, binding BindingDigest, subject_ optional string, task_ optional TaskId | Queue |
RunResumed | run_ ArchitectureRunId | Resume |
RunStarted | run_ ArchitectureRunId | Start |
RunWaiting | run_ ArchitectureRunId, reason WaitReason | Wait |
UnitMapped | unit_ DeploymentUnitId, target_ string | Map |
UnitObserved | unit_ DeploymentUnitId, ready integer, last_ optional string | Observe |
UnitRecorded | unit_ DeploymentUnitId, deployment_ DeploymentId, name Name, kind UnitKind | Record |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Views
| view | rows | fields |
|---|---|---|
ArchitectureRunsArchitecture runs | each ArchitectureRun | run_ ArchitectureRunId, installation_ InstallationId, runtime_ RuntimeId, revision_ ArchitectureRevisionId, binding BindingDigest, subject_ optional string, task_ optional TaskId, requested_ optional PrincipalId, process_ optional ProcessId, workspace_ optional WorkspaceId, firing_ optional FiringId, serial_ optional string, queued_ timestamp, failure optional string, cancelled_ optional CancelReason, state State |
DeploymentsDeployments | each Deployment | deployment_ DeploymentId, architecture_ ArchitectureId, revision_ optional ArchitectureRevisionId, in_ boolean, target Name, scope Name, contract_ Digest, binding_ Digest, packing_ Digest, bundle_ optional Digest, translation_ optional Digest, promoted_ optional DeploymentId, refusal optional Refusal, findings list of Finding, reason optional string, state State |
InstallationsInstallations | each Installation | installation_ InstallationId, runtime_ RuntimeId, revision_ ArchitectureRevisionId, binding BindingDigest, replaces optional InstallationId, installed_ timestamp, state State |
InstallationsOfRuntimeInstallations of a runtime | each Installation with runtime_asked with runtime_ RuntimeId | installation_ InstallationId, revision_ ArchitectureRevisionId, replaces optional InstallationId, installed_ timestamp, state State |
RunsOfInstallationRuns of an installation | each ArchitectureRun with installation_asked with installation_ InstallationId | run_ ArchitectureRunId, revision_ ArchitectureRevisionId, subject_ optional string, queued_ timestamp, state State |
RunsOfSubjectRuns of a subject | each ArchitectureRun with subject_asked with subject_ string | run_ ArchitectureRunId, installation_ InstallationId, revision_ ArchitectureRevisionId, queued_ timestamp, state State |
UnitsUnits | each DeploymentUnit with deployment_asked with deployment_ DeploymentId | unit_ DeploymentUnitId, deployment_ DeploymentId, name Name, kind UnitKind, parts list of Name, replicas optional integer, ready integer, last_ optional string, workload_ optional WorkloadId, target_ optional string, state State |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Types
| type | is | values or fields |
|---|---|---|
BindingDigestDigest of the binding document (agenticspec-binding/1) that says which concrete thing plays each part of the architecture on this runtime. | an identifier or value | string |
CancelReasonWhy a run was cancelled: a principal asked for it, a trigger's Replace subject policy ( agentic.trigger.SubjectPolicy) started another run for its subject, its installation was rolled back, or the runner ended it by a forced stop (orphaned). Recorded as the caller states it; no guard checks it. | one of | Requested, Replaced, Rolled, Orphaned |
FindingOne finding of a refusal, by the name of its rule, with what it is about. | a record | name string, detail string |
RefusalWhy a recorded deployment was refused after its bundle was handed over. | one of | Coverage, Target |
UnitKind | one of | Core, Agent, Service, Job, Scheduled, Store, Model |
WaitReasonWhy a run waits: on a decision, on a principal's answer, on a shared resource, or because it was asked to. Carried by the event, not stored on the run. | one of | Approval, Answer, Resource, Requested |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs
4 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.
Quality
| KPI | unit | better | gate | status |
|---|---|---|---|---|
run_failure_shareShare of architecture runs that failed. How: RunFailed events divided by RunQueued events, per installation and per architecture revision, so a revision that fails more than the one it replaced shows before a rollback. | share | lower | – | planned source: design |
run_queue_wait_p50_secondsMedian time an architecture run waits queued before it starts. How: Seconds between RunQueued and RunStarted of one run, median per installation. | seconds | lower | – | planned source: design |
rollback_shareShare of installations that were rolled back. How: InstallationRolledBack events divided by RevisionInstalled events that replaced an installation, per runtime. | share | lower | – | planned source: design |
drain_p90_seconds90th percentile of the time an installation takes to drain. How: Seconds between DrainStarted and InstallationDrained of one installation, 90th percentile per runtime. Long drains hold an old revision running beside the new one. | seconds | lower | – | planned source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.