Skip to content

State Machines

Reference for every named state machine across the Nimi stack. Owner contracts are cited; specifics live in those contracts.

Runtime — Daemon Health

StateMeaning
STARTINGDaemon initializing
READYDaemon serving
DEGRADEDDaemon serving with reduced capability
STOPPINGDaemon draining; streams cancel cleanly

Owner: runtime/kernel/daemon-lifecycle.md (K-DAEMON-*).

Runtime — ScenarioJob

StateTerminal?
SUBMITTEDno
RUNNINGno
COMPLETEDyes (success)
FAILEDyes
TIMEOUTyes
CANCELEDyes

Owner: runtime/kernel/scenario-job-lifecycle.md (K-JOB-*).

Runtime — Workflow

StateTerminal?
ACCEPTEDno
QUEUEDno
RUNNINGno
COMPLETEDyes (success)
FAILEDyes
CANCELEDyes
SKIPPEDyes

Workflow events stream as: STARTED, NODE_STARTED, NODE_PROGRESS, NODE_COMPLETED, NODE_SKIPPED, COMPLETED, FAILED, CANCELED, plus external-async variants.

Owner: runtime/kernel/workflow-contract.md (K-WF-*).

Runtime — Provider Async Task

StateTerminal?
queuedno
runningno
succeededyes
failedyes
expiredyes (timeout-equivalent)

Provider async states use lower_snake; ScenarioJob uses UPPER_SNAKE. The mapping rule (K-MMPROV-027) translates succeeded → COMPLETED, expired → TIMEOUT, failed → FAILED.

Owner: runtime/kernel/multimodal-provider-contract.md (K-MMPROV-*).

Runtime — Hook Lifecycle

StateTerminal?
pendingno
runningno
completedyes
failedyes
canceledyes
rescheduledno (transitions to pending)
rejectedyes

Owner: runtime/kernel/agent-hook-intent-contract.md (K-AGCORE-*).

Runtime — Memory Replication

StateTerminal?
pendingno
syncedyes
conflictyes (cannot serve)
invalidatedyes (Realm governance invalidated)

Owner: runtime/kernel/runtime-memory-service-contract.md (K-MEM-*) and table runtime-memory-replication-outcome.yaml.

Runtime — Delegated Provider

StateTerminal?
REGISTEREDno
DISCOVERINGno
READYno
DEGRADEDno
DISABLEDno
QUARANTINEDno
REMOVEDyes

Owner: runtime/kernel/delegated-capability-gateway-contract.md (K-DELEG-*).

Runtime — Delegated Session

StateTerminal?
OPENno
PAUSED_FOR_APPROVALno
CLOSINGno
CLOSEDyes
FAILEDyes

Owner: runtime/kernel/delegated-capability-gateway-contract.md (K-DELEG-*).

Runtime — World Evolution Engine Stages

StageOrder
INGRESS1
NORMALIZE2
SCHEDULE3
DISPATCH4
TRANSITION5
EFFECT6
COMMIT_REQUEST7
CHECKPOINT8
TERMINAL9

Owner: runtime/kernel/world-evolution-engine-contract.md (K-WEV-*).

Realm — App-World Binding

StateMeaning
(new)World exists; no app bound
activeExtension-app bound and writing
suspendedBinding paused
revokedBinding removed

A world has at most one active extension-app binding. Re-binding requires explicit revoke first.

Owner: realm/kernel/binding-contract.md (R-BIND-*).

Avatar — Composition State

StateMeaning
loadingInitial load
readyEmbodiment composed and rendering
degraded:*Degraded with sub-state (e.g. degraded:asset_missing)
relaunch-pendingAwaiting relaunch

Owner: avatar/kernel/index.md.

Desktop — Mod Lifecycle

StateMeaning
admittedMod admitted into the system
installedMod installed locally
activeMod activated and reachable
suspendedMod paused
removedMod uninstalled

Owner: desktop/kernel/mod-governance-contract.md and table desktop/kernel/tables/mod-lifecycle-states.yaml.

Nimi Coding — Topic State

StateMeaning
proposalPre-active planning
ongoingActive execution
pendingPaused; awaiting evidence or external trigger
closedNo longer the active workstream

Lifecycle moves: proposal_to_ongoing, ongoing_to_pending, pending_to_ongoing, ongoing_to_closed, pending_to_closed, proposal_to_closed, closed_to_ongoing (explicit reopen).

Owner: .nimi/contracts/topic.schema.yaml, .nimi/methodology/topic-lifecycle.yaml, .nimi/methodology/topic-lifecycle-report.yaml.

Nimi Coding — Wave State

StateTerminal?
candidateno
preflight_draftno
preflight_admittedno
implementation_admittedno
implementation_activeno
needs_revisionno (returned for fix)
overflowedno (requires explicit continuation or revision)
continuation_packet_openno
closedyes
retiredyes
supersededyes

Owner: .nimi/contracts/wave.schema.yaml.

Nimi Coding — Packet State

StateTerminal?
draftno
preflightno
candidateno
admittedno
dispatchedno
closedyes
supersededyes

Freeze is permitted only from draft / preflight / candidate.

Owner: .nimi/contracts/packet.schema.yaml.

Nimi Coding — True-Close Status

StatusMeaning
not_startedTrue-close not yet attempted
pendingTrue-close in progress
true_closedTrue-close passed
revokedA passed true-close was later revoked by independent audit
supersededTrue-close superseded by a later admission

Owner: .nimi/contracts/topic.schema.yaml, .nimi/contracts/true-close.schema.yaml.

Nimi Coding — Result Verdict

VerdictMeaning
PASSResult accepts the work
NEEDS_REVISIONResult returns work for revision
FAILResult rejects the work
OVERFLOWWork exceeded packet boundary; not PASS, not FAIL

Owner: .nimi/contracts/result.schema.yaml.

Cross-Domain State Machine Vocabulary

ScenarioJob and Workflow use UPPER_SNAKE proto enums; provider async tasks use lower_snake to stay close to provider semantics; mod lifecycle uses lower-case product terms. The casing differences are intentional design.

Source Basis

Nimi AI open world platform documentation.