Skip to main content

Layer 9 · composition

deployment

blocks/9-composition/deployment.yaml

layer 9composition
4entities
24commands
23events
7views
73refusals
4KPIs

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​

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

fieldtypemeaning
installation_idInstallationId
runtime_idRuntimeIdThe runtime of its installation; while the run is open, the runtime takes no install.
revision_idArchitectureRevisionIdThe architecture revision of its installation when it was queued.
bindingBindingDigestThe binding of its installation when it was queued.
subject_keyoptional stringWhat the run is for (the subject of the event or the firing that started it), so runs of one subject can be found.
task_idoptional TaskIdThe task the run works on; the agent runs of that task are its work (agentic.work Run).
requested_byoptional PrincipalIdThe principal who asked for the run, as the caller names it.
process_idoptional ProcessIdThe process the run follows. A process identifier names one published version, so with revision_id and binding it is the pinned copy of protocol and settings the run keeps.
workspace_idoptional WorkspaceIdThe workspace the run works in, as the caller names it.
firing_idoptional FiringIdThe firing of a trigger that started the run, as the caller names it.
serial_keyoptional stringOne 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_key, which says what a run is for and lets runs of one subject overlap.
queued_attimestamp
failureoptional stringWhy it failed, as the runner reports it.
cancelled_foroptional CancelReason

Relations:

  • installation references Installation (one, by installation_id)
  • runtime references Runtime of runtime (one, by runtime_id)
  • revision references ArchitectureRevision of architecture (one, by revision_id)
  • task references Task of work (one, by task_id)
  • requester references Principal of principal (one, by requested_by)
  • process references Process of process (one, by process_id)
  • workspace references Workspace of workspace (one, by workspace_id)
  • firing references Firing of trigger (one, by firing_id)

Lifecycle of ArchitectureRun

CancelledDoneFailedQueuedRunningWaitingstartwaitresumefinishfailfailfailcancelcancelcancelCancelledDoneFailedQueuedRunningWaitingstartwaitresumefinishfailfailfailcancelcancel
Ends in Cancelled, Done, Failed.

Deployment​

One architecture revision on one target, from its request to its end.

Identified by deployment_id (DeploymentId).

fieldtypemeaning
architecture_idArchitectureId
revision_idoptional ArchitectureRevisionIdThe released revision; absent only for an in-process run of a draft.
in_processbooleanThe run is the in-process runtime of the local test, which needs no release.
targetName
scopeName
contract_digestDigest
binding_digestDigest
packing_digestDigest
bundle_digestoptional Digest
translation_digestoptional Digest
promoted_fromoptional DeploymentIdThe deployment of the same revision this one was promoted from.
refusaloptional Refusal
findingslist of Finding
reasonoptional string

Relations:

  • architecture references Architecture of architecture (one, by architecture_id)
  • revision references ArchitectureRevision of architecture (one, by revision_id)
  • promoted references Deployment (one, by promoted_from)
  • units owns DeploymentUnit (many, by deployment_id)

Lifecycle of Deployment

BundledDegradedFailedRealizingRefusedRequestedRunningStoppedTranslatedbundletranslaterefuse_coveragerefuse_on_targetrefuse_on_targetrealizerunrundegradefailfailfailstopstopstopstopstopstopBundledDegradedFailedRealizingRefusedRequestedRunningStoppedTranslatedbundletranslaterefuse_coveragerefuse_on_targetrefuse_on_targetrealizerunrundegradefailfailfailstopstopstop
Ends in Failed, Refused, Stopped.

DeploymentUnit​

One unit of a deployment, as its bundle names it and its target observes it.

Identified by unit_id (DeploymentUnitId).

fieldtypemeaning
deployment_idDeploymentId
nameName
kindUnitKind
partslist of NameThe part instances of the unit, by path.
replicasoptional integerThe desired copies; absent for a job or scheduled unit, which runs on demand.
workload_idoptional WorkloadIdThe workload the unit runs as, once mapped.
target_objectoptional stringThe object of the target's architecture the translator mapped the unit to, by value.
readyinteger
last_failureoptional string

Relations:

  • workload references Workload of runtime (one, by workload_id)

Always holds: ready >= 0.

Lifecycle of DeploymentUnit

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

fieldtypemeaning
runtime_idRuntimeId
revision_idArchitectureRevisionId
bindingBindingDigest
replacesoptional InstallationIdThe installation of the same runtime this one took over from; a rollback returns to it.
installed_attimestamp

Relations:

  • runtime references Runtime of runtime (one, by runtime_id)
  • revision references ArchitectureRevision of architecture (one, by revision_id)
  • replaced references Installation (one, by replaces)

Lifecycle of Installation

ActiveDrainedDrainingRolledBackdrainfinish_drainroll_backreactivatereactivateActiveDrainedDrainingRolledBackdrainfinish_drainroll_backreactivate
Ends in RolledBack.

Commands​

CancelRun​

Cancel a run.

Called by: Requester, Runner.

fieldtype
run_idArchitectureRunId
reasonCancelReason
outcomewhenresult
unknown refusedno such ArchitectureRunUnknownRun: No architecture run has this identity; nothing changed.
cancelledotherwisemoves the ArchitectureRun Queued, Running, Waiting → Cancelled; emits RunCancelled
wrong-state refusedthe ArchitectureRun is in a state that does not allow itRunStateConflict: The run is not in a state this command acts from.

DrainInstallation​

Drain an installation. The installation takes no new run; the runs it holds go on until they end.

Called by: Deployer.

fieldtype
installation_idInstallationId
outcomewhenresult
unknown refusedno such InstallationUnknownInstallation: No installation has this identity; nothing changed.
drainingotherwisemoves the Installation Active → Draining; emits DrainStarted
wrong-state refusedthe Installation is in a state that does not allow itInstallationStateConflict: The installation is not in a state this command acts from.

FailRun​

Report a run failed.

Called by: Runner.

fieldtype
run_idArchitectureRunId
failurestring
outcomewhenresult
unknown refusedno such ArchitectureRunUnknownRun: No architecture run has this identity; nothing changed.
failedotherwisemoves the ArchitectureRun Queued, Running, Waiting → Failed; emits RunFailed
wrong-state refusedthe ArchitectureRun is in a state that does not allow itRunStateConflict: The run is not in a state this command acts from.

FinishRun​

Report a run done.

Called by: Runner.

fieldtype
run_idArchitectureRunId
outcomewhenresult
unknown refusedno such ArchitectureRunUnknownRun: No architecture run has this identity; nothing changed.
doneotherwisemoves the ArchitectureRun Running → Done; emits RunDone
wrong-state refusedthe ArchitectureRun is in a state that does not allow itRunStateConflict: The run is not in a state this command acts from.

InstallRevision​

Install an architecture revision on a runtime.

Called by: Deployer.

fieldtypemeaning
runtime_idRuntimeIdThe runtime the revision is installed on.
revision_idArchitectureRevisionIdThe architecture revision installed.
bindingBindingDigestThe digest of the binding, which concrete thing plays each part.
replacesoptional InstallationIdThe drained or draining installation this one replaces, which a rollback returns to.
guard_reading_idoptional GuardReadingIdThe runner's reading of whether a run on the runtime is live (guard runs-open). An install that names none is checked against this block's own runs only.
outcomewhenresult
unknown-runtime refusedno Runtime for runtime_idUnknownRuntime: No runtime has this identity; nothing was installed.
unknown-revision refusedno ArchitectureRevision for revision_idUnknownRevision: No architecture revision has this identity; nothing was installed.
unknown-replaced refusedno Installation for replacesUnknownInstallation: No installation has this identity; nothing changed.
unknown-reading refusedno GuardReading for guard_reading_idUnknownGuardReading: No guard reading has this identity; nothing was installed.
replaced-on-other-runtime refusedthe Installation of replaces has runtime_id != input.runtime_idReplacedOnOtherRuntime: The installation named as replaced is on another runtime; nothing was installed.
replaced-rolled-back refusedthe Installation of replaces has state == RolledBackReplacedRolledBack: The installation named as replaced was rolled back, so no rollback could return to it; nothing was installed.
runtime-has-active refuseda Installation with runtime_id == input.runtime_id and state == ActiveRuntimeHasActiveInstallation: The runtime already holds an Active installation; drain it before installing another. Nothing was installed.
runs-open refuseda ArchitectureRun with runtime_id == input.runtime_id and (state == Queued or state == Running or state == Waiting)RunsOpen: 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 refusedthe GuardReading of guard_reading_id has answer == UnreadableGuardUnreadable: 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 refusedthe GuardReading of guard_reading_id has answer == YesRunsOpen: 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.
installedotherwisecreates a Installation in Active; emits RevisionInstalled

MapUnit​

Map a unit.

Called by: Translator.

fieldtype
unit_idDeploymentUnitId
target_objectstring
workload_idoptional WorkloadId
outcomewhenresult
unknown refusedno such DeploymentUnitUnknownUnit: No unit has this identity.
mappedotherwisemoves the DeploymentUnit Declared → Mapped; emits UnitMapped
wrong-state refusedthe DeploymentUnit is in a state that does not allow itUnitStateConflict: The unit is not in a state this command acts from.

ObserveUnit​

Observe a unit. What the target last observed of a mapped unit, its ready replicas and its last failure.

Called by: Target.

fieldtype
unit_idDeploymentUnitId
readyinteger
last_failureoptional string
outcomewhenresult
negative-ready refusedready < 0NegativeReady: A unit has no negative number of ready replicas; nothing was observed.
unknown refusedno such DeploymentUnitUnknownUnit: No unit has this identity.
observedotherwisemoves the DeploymentUnit Mapped → Mapped; emits UnitObserved
not-mapped refusedthe DeploymentUnit is in a state that does not allow itUnitStateConflict: The unit is not in a state this command acts from.

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.

fieldtypemeaning
run_idArchitectureRunIdChosen by the caller once per intent; a repeat with the same identity starts nothing.
installation_idInstallationId
subject_keyoptional string
task_idoptional TaskId
requested_byoptional PrincipalId
process_idoptional ProcessId
workspace_idoptional WorkspaceId
firing_idoptional FiringId
serial_keyoptional string
outcomewhenresult
repeated refusedthe ArchitectureRun exists alreadyRunKeyUsed: 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 refusedno Installation for installation_idUnknownInstallation: No installation has this identity; nothing changed.
unknown-task refusedno Task for task_idUnknownTask: No task has this identity; no run was queued.
installation-draining refusedthe Installation of installation_id has state == DrainingInstallationDraining: The installation drains and takes no new run; queue it on the installation that replaced it.
installation-not-active refusedthe Installation of installation_id has (state == Drained or state == RolledBack)InstallationNotActive: The installation is drained or rolled back and takes no run.
queuedotherwisecreates a ArchitectureRun in Queued; emits RunQueued

RecordBundle​

Record the bundle.

Called by: Deployer.

fieldtype
deployment_idDeploymentId
bundle_digestDigest
outcomewhenresult
unknown refusedno such DeploymentUnknownDeployment: No deployment has this identity.
bundledotherwisemoves the Deployment Requested → Bundled; emits DeploymentBundled
wrong-state refusedthe Deployment is in a state that does not allow itDeploymentStateConflict: The deployment is not in a state this command acts from.

RecordTranslation​

Record the translation.

Called by: Translator.

fieldtype
deployment_idDeploymentId
translation_digestDigest
outcomewhenresult
unknown refusedno such DeploymentUnknownDeployment: No deployment has this identity.
translatedotherwisemoves the Deployment Bundled → Translated; emits DeploymentTranslated
wrong-state refusedthe Deployment is in a state that does not allow itDeploymentStateConflict: The deployment is not in a state this command acts from.

RecordUnit​

Record a unit.

Called by: Deployer.

fieldtype
deployment_idDeploymentId
nameName
kindUnitKind
partslist of Name
replicasoptional integer
outcomewhenresult
replicas-on-run-to-completion refused(kind == Job or kind == Scheduled) and defined(replicas)ReplicasOnRunToCompletion: A job or scheduled unit runs on demand and has no replicas.
replicas-below-one refuseddefined(replicas) and replicas < 1ReplicasBelowOne: A unit that has replicas has at least one.
unknown-deployment refusedno Deployment for deployment_idUnknownDeployment: No deployment has this identity.
not-bundled refusedthe Deployment of deployment_id has state != BundledNotBundled: Units are recorded only for a deployment whose bundle is written.
recordedotherwisecreates a DeploymentUnit in Declared; emits UnitRecorded

RefuseCoverage​

Refuse on coverage. The translator refused objects of the bundle; the deployment is refused as CoverageRefused.

Called by: Translator.

fieldtype
deployment_idDeploymentId
findingslist of Finding
outcomewhenresult
no-findings refusedfindings.count == 0NoFindings: A refusal names at least one finding.
unknown refusedno such DeploymentUnknownDeployment: No deployment has this identity.
refusedotherwisemoves the Deployment Bundled → Refused; emits DeploymentRefused
wrong-state refusedthe Deployment is in a state that does not allow itDeploymentStateConflict: The deployment is not in a state this command acts from.

RefuseOnTarget​

Refuse on the target. The target named violations (quota, placement, policy); the deployment is refused as TargetRefused.

Called by: Target.

fieldtype
deployment_idDeploymentId
findingslist of Finding
outcomewhenresult
no-findings refusedfindings.count == 0NoFindings: A refusal names at least one finding.
unknown refusedno such DeploymentUnknownDeployment: No deployment has this identity.
refusedotherwisemoves the Deployment Realizing, Translated → Refused; emits DeploymentRefused
wrong-state refusedthe Deployment is in a state that does not allow itDeploymentStateConflict: The deployment is not in a state this command acts from.

ReportDeploymentDegraded​

Report the deployment degraded.

Called by: Target.

fieldtype
deployment_idDeploymentId
reasonstring
outcomewhenresult
unknown refusedno such DeploymentUnknownDeployment: No deployment has this identity.
degradedotherwisemoves the Deployment Running → Degraded; emits DeploymentDegraded
wrong-state refusedthe Deployment is in a state that does not allow itDeploymentStateConflict: The deployment is not in a state this command acts from.

ReportDeploymentFailed​

Report the deployment failed.

Called by: Target.

fieldtype
deployment_idDeploymentId
reasonstring
outcomewhenresult
unknown refusedno such DeploymentUnknownDeployment: No deployment has this identity.
failedotherwisemoves the Deployment Degraded, Realizing, Running → Failed; emits DeploymentFailed
wrong-state refusedthe Deployment is in a state that does not allow itDeploymentStateConflict: The deployment is not in a state this command acts from.

ReportDeploymentRunning​

Report the deployment running.

Called by: Target.

fieldtype
deployment_idDeploymentId
outcomewhenresult
unknown refusedno such DeploymentUnknownDeployment: No deployment has this identity.
runningotherwisemoves the Deployment Degraded, Realizing → Running; emits DeploymentRunning
wrong-state refusedthe Deployment is in a state that does not allow itDeploymentStateConflict: The deployment is not in a state this command acts from.

ReportDrained​

Report an installation drained.

Called by: Runner.

fieldtype
installation_idInstallationId
outcomewhenresult
unknown refusedno such InstallationUnknownInstallation: No installation has this identity; nothing changed.
runs-not-ended refuseda ArchitectureRun with installation_id == input.installation_id and (state == Queued or state == Running or state == Waiting)RunsNotEnded: A run of the installation has not ended, so it is not drained yet.
drainedotherwisemoves the Installation Draining → Drained; emits InstallationDrained
wrong-state refusedthe Installation is in a state that does not allow itInstallationStateConflict: The installation is not in a state this command acts from.

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.

fieldtype
architecture_idArchitectureId
revision_idoptional ArchitectureRevisionId
in_processboolean
targetName
scopeName
contract_digestDigest
binding_digestDigest
packing_digestDigest
findingslist of Finding
promoted_fromoptional DeploymentId
outcomewhenresult
not-admitted refusedfindings.count > 0NotAdmitted: Admission named findings; each is listed by the name of its rule.
not-released refusedin_process == false and not (defined(revision_id))NotReleased: The revision is not released, and only the in-process runtime runs a draft.
unknown-promoted refusedno Deployment for promoted_fromUnknownDeployment: No deployment has this identity.
promotion-changes-revision refusedthe Deployment of promoted_from has revision_id != input.revision_idPromotionChangesRevision: A promotion keeps the revision of the deployment it was promoted from (design/deployment.md K11).
promotion-changes-contract refusedthe Deployment of promoted_from has contract_digest != input.contract_digestPromotionChangesContract: A promotion keeps the contract digest of the deployment it was promoted from (design/deployment.md K11).
scope-taken refuseda Deployment with target == input.target and scope == input.scope and not (state in Refused, Stopped, Failed)ScopeTaken: Another deployment that has not ended holds this scope of the target.
requestedotherwisecreates a Deployment in Requested; emits DeploymentRequested

ResumeRun​

Resume a waiting run.

Called by: Runner.

fieldtype
run_idArchitectureRunId
outcomewhenresult
unknown refusedno such ArchitectureRunUnknownRun: No architecture run has this identity; nothing changed.
resumedotherwisemoves the ArchitectureRun Waiting → Running; emits RunResumed
wrong-state refusedthe ArchitectureRun is in a state that does not allow itRunStateConflict: The run is not in a state this command acts from.

RollBack​

Roll an installation back to the one it replaced.

Called by: Deployer.

fieldtype
installation_idInstallationId
outcomewhenresult
unknown refusedno such InstallationUnknownInstallation: No installation has this identity; nothing changed.
nothing-to-roll-back-to refusedstate == Active and not (defined(replaces))NothingToRollBackTo: 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 refusedthe Installation of replaces has state != Draining and state != DrainedNothingToRollBackTo: 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-backotherwisemoves the Installation Active → RolledBack; moves each Installation with installation_id == subject.replaces to Active; emits InstallationRolledBack
wrong-state refusedthe Installation is in a state that does not allow itInstallationStateConflict: The installation is not in a state this command acts from.

StartRealizing​

Start realizing.

Called by: Target.

fieldtype
deployment_idDeploymentId
outcomewhenresult
unknown refusedno such DeploymentUnknownDeployment: No deployment has this identity.
realizingotherwisemoves the Deployment Translated → Realizing; emits RealizingStarted
wrong-state refusedthe Deployment is in a state that does not allow itDeploymentStateConflict: The deployment is not in a state this command acts from.

StartRun​

Start a queued run.

Called by: Runner.

fieldtype
run_idArchitectureRunId
outcomewhenresult
unknown refusedno such ArchitectureRunUnknownRun: No architecture run has this identity; nothing changed.
installation-not-active refusedthe Installation of installation_id has (state == Drained or state == RolledBack)InstallationNotActive: The installation is drained or rolled back and takes no run.
key-held refuseda ArchitectureRun with defined(subject.serial_key) and defined(serial_key) and serial_key == subject.serial_key and run_id != subject.run_id and (state == Running or state == Waiting)KeyHeld: 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.
startedotherwisemoves the ArchitectureRun Queued → Running; emits RunStarted
wrong-state refusedthe ArchitectureRun is in a state that does not allow itRunStateConflict: The run is not in a state this command acts from.

StopDeployment​

Stop a deployment.

Called by: Deployer.

fieldtype
deployment_idDeploymentId
outcomewhenresult
unknown refusedno such DeploymentUnknownDeployment: No deployment has this identity.
stoppedotherwisemoves the Deployment Bundled, Degraded, Realizing, Requested, Running, Translated → Stopped; emits DeploymentStopped
wrong-state refusedthe Deployment is in a state that does not allow itDeploymentStateConflict: The deployment is not in a state this command acts from.

WaitRun​

Record that a run waits.

Called by: Runner.

fieldtype
run_idArchitectureRunId
reasonWaitReason
outcomewhenresult
unknown refusedno such ArchitectureRunUnknownRun: No architecture run has this identity; nothing changed.
waitingotherwisemoves the ArchitectureRun Running → Waiting; emits RunWaiting
wrong-state refusedthe ArchitectureRun is in a state that does not allow itRunStateConflict: The run is not in a state this command acts from.

Events​

eventfieldsemitted by
DeploymentBundleddeployment_id DeploymentId, bundle_digest DigestRecordBundle
DeploymentDegradeddeployment_id DeploymentId, reason stringReportDeploymentDegraded
DeploymentFaileddeployment_id DeploymentId, reason stringReportDeploymentFailed
DeploymentRefuseddeployment_id DeploymentId, refusal Refusal, findings list of FindingRefuseCoverage, RefuseOnTarget
DeploymentRequesteddeployment_id DeploymentId, architecture_id ArchitectureId, revision_id optional ArchitectureRevisionId, target Name, scope NameRequestDeployment
DeploymentRunningdeployment_id DeploymentIdReportDeploymentRunning
DeploymentStoppeddeployment_id DeploymentIdStopDeployment
DeploymentTranslateddeployment_id DeploymentId, translation_digest DigestRecordTranslation
DrainStartedinstallation_id InstallationIdDrainInstallation
InstallationDrainedinstallation_id InstallationIdReportDrained
InstallationRolledBackinstallation_id InstallationId, reactivated optional InstallationIdRollBack
RealizingStarteddeployment_id DeploymentIdStartRealizing
RevisionInstalledinstallation_id InstallationId, runtime_id RuntimeId, revision_id ArchitectureRevisionId, binding BindingDigest, replaces optional InstallationIdInstallRevision
RunCancelledrun_id ArchitectureRunId, reason CancelReasonCancelRun
RunDonerun_id ArchitectureRunIdFinishRun
RunFailedrun_id ArchitectureRunId, failure stringFailRun
RunQueuedrun_id ArchitectureRunId, installation_id InstallationId, revision_id ArchitectureRevisionId, binding BindingDigest, subject_key optional string, task_id optional TaskIdQueueRun
RunResumedrun_id ArchitectureRunIdResumeRun
RunStartedrun_id ArchitectureRunIdStartRun
RunWaitingrun_id ArchitectureRunId, reason WaitReasonWaitRun
UnitMappedunit_id DeploymentUnitId, target_object stringMapUnit
UnitObservedunit_id DeploymentUnitId, ready integer, last_failure optional stringObserveUnit
UnitRecordedunit_id DeploymentUnitId, deployment_id DeploymentId, name Name, kind UnitKindRecordUnit

Views​

viewrowsfields
ArchitectureRuns
Architecture runs
each ArchitectureRunrun_id ArchitectureRunId, installation_id InstallationId, runtime_id RuntimeId, revision_id ArchitectureRevisionId, binding BindingDigest, 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, queued_at timestamp, failure optional string, cancelled_for optional CancelReason, state State
Deployments
Deployments
each Deploymentdeployment_id DeploymentId, architecture_id ArchitectureId, revision_id optional ArchitectureRevisionId, in_process boolean, 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, refusal optional Refusal, findings list of Finding, reason optional string, state State
Installations
Installations
each Installationinstallation_id InstallationId, runtime_id RuntimeId, revision_id ArchitectureRevisionId, binding BindingDigest, replaces optional InstallationId, installed_at timestamp, state State
InstallationsOfRuntime
Installations of a runtime
each Installation with runtime_id == param.runtime_id
asked with runtime_id RuntimeId
installation_id InstallationId, revision_id ArchitectureRevisionId, replaces optional InstallationId, installed_at timestamp, state State
RunsOfInstallation
Runs of an installation
each ArchitectureRun with installation_id == param.installation_id
asked with installation_id InstallationId
run_id ArchitectureRunId, revision_id ArchitectureRevisionId, subject_key optional string, queued_at timestamp, state State
RunsOfSubject
Runs of a subject
each ArchitectureRun with subject_key == param.subject_key
asked with subject_key string
run_id ArchitectureRunId, installation_id InstallationId, revision_id ArchitectureRevisionId, queued_at timestamp, state State
Units
Units
each DeploymentUnit with deployment_id == param.deployment_id
asked with deployment_id DeploymentId
unit_id DeploymentUnitId, deployment_id DeploymentId, name Name, kind UnitKind, parts list of Name, replicas optional integer, ready integer, last_failure optional string, workload_id optional WorkloadId, target_object optional string, state State

Types​

typeisvalues or fields
BindingDigest
Digest of the binding document (agenticspec-binding/1) that says which concrete thing plays each part of the architecture on this runtime.
an identifier or valuestring
CancelReason
Why 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 ofRequested, Replaced, RolledBack, Orphaned
Finding
One finding of a refusal, by the name of its rule, with what it is about.
a recordname string, detail string
Refusal
Why a recorded deployment was refused after its bundle was handed over.
one ofCoverageRefused, TargetRefused
UnitKindone ofCore, Agent, Service, Job, Scheduled, Store, Model
WaitReason
Why 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 ofApproval, Answer, Resource, Requested

KPIs​

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

Quality​

KPIunitbettergatestatus
run_failure_share
Share 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.
sharelower–planned
source: design
run_queue_wait_p50_seconds
Median time an architecture run waits queued before it starts.
How: Seconds between RunQueued and RunStarted of one run, median per installation.
secondslower–planned
source: design
rollback_share
Share of installations that were rolled back.
How: InstallationRolledBack events divided by RevisionInstalled events that replaced an installation, per runtime.
sharelower–planned
source: design
drain_p90_seconds
90th 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.
secondslower–planned
source: design