Skip to content

CLI: observe

kairos observe launches a live terminal dashboard that runs a fly-by-wire session and displays real-time telemetry. It requires the tui feature flag at build time.

Terminal window
cargo build -p kairos-cli --features tui --profile release-native
Terminal window
kairos observe \
--scenario <scenario-id> \
--artifact <artifact.json> \
--policy <policy.json> \
[options]
FlagDescription
--scenarioScenario ID to simulate
--artifactPath to calibration artifact JSON
--policyPath to deployment policy JSON
FlagDefaultDescription
--manifestEmbeddedPath to scenario manifest (uses embedded scenarios if omitted)
--eventsNonePath to EDMS event script JSON
--license~/.kairos/license.keyPath to license file
--seedFrom scenarioSeed override
--tick-rate200Simulation tick interval in milliseconds (50–2000)
--max-ticksUnlimitedMaximum number of ticks to step
--alertsOffEnable acoustic alerts on threshold breach
--alert-threshold0.8Criticality threshold for acoustic alerts
--markersautoChart marker style: braille, halfblock, or auto
--export-dirNoneDirectory for snapshot exports (enables S keybinding)
--sentinelOffEnable Sentinel assessment panel
--hitlOffActivate HITL operator mode
--coordinator-urlhttp://127.0.0.1:8787Coordinator service URL (used with --hitl)
--operator-key-idRequired with --hitlAuthority key ID for the operator
Terminal window
kairos observe \
--scenario axelrod-tournament \
--artifact artifact.json \
--policy policy.json
Terminal window
kairos observe \
--scenario axelrod-tournament \
--artifact artifact.json \
--policy policy.json \
--tick-rate 200 \
--alerts \
--alert-threshold 0.75 \
--sentinel \
--export-dir /tmp/snapshots
Terminal window
kairos observe \
--scenario axelrod-tournament \
--artifact artifact.json \
--policy policy.json \
--hitl \
--coordinator-url http://127.0.0.1:8787 \
--operator-key-id operator-1

Multi-actor scenarios show one tab per actor. Switch actors with number keys (19) or Tab/Shift+Tab. In HITL mode, actor selection follows the selected override request.

Real-time gauges display:

  • Severity — magnitude of detected instability
  • Imminence — how soon the instability will manifest
  • Risk — combined risk metric (inertia and optimized variants)
  • Criticality — overall system criticality

Shows a 70/30 temporal split with:

  • Vertical T-Now separator
  • Drift projection overlay (λ=0\lambda = 0)
  • Optimal projection overlay (λ=1\lambda = 1)
  • Timeline event markers

Falls back to a V1 history chart when projection data is unavailable.

Enabled with --sentinel. Displays a rule-based structured assessment:

  • Risk level: NOMINAL, ELEVATED, or CRITICAL
  • Steps-to-impact urgency
  • Path divergence analysis
  • Upcoming events list

Enabled with --hitl. Provides an integrated operator interface:

  • Lists pending override requests from the coordinator
  • Background polling (3-second interval)
  • Approve/deny with confirmation dialogs
  • Telemetry focus follows selected request’s actor
  • Connection status indicator

Immutable scrolling log of engine events, decisions, and state transitions.

When --export-dir is set, press S to export the current dashboard state as a JSON snapshot.

KeyAction
q / Q / Ctrl+CQuit
SpacePause / resume simulation
TabSelect next actor (disabled in HITL mode)
Shift+TabSelect previous actor (disabled in HITL mode)
19Select actor by index (disabled in HITL mode)
SExport snapshot (when --export-dir is set)
KeyAction
Up / DownNavigate override request list
EnterToggle detail view for selected request
AApprove selected request (opens confirmation)
DDeny selected request (opens confirmation)
RForce refresh from coordinator
YConfirm action (in confirmation dialog)
N / EscCancel action (in confirmation dialog)