Skip to main content

Module control_plane

Module control_plane 

Source
Expand description

Control Plane workspace v3 — live DCC view.

Reads the engine’s [AgentRegistry] each frame, snapshots [AgentStatus] and [ExecutionTiming] for every agent, and renders:

  • a DCC summary bar (live FPS / frame budget / heap)
  • an Agents list (real agents, grouped into the Critical / Important / Optional buckets reported by their execution_timing())
  • a Schedule view that groups agents by their default_phase (INIT / OBSERVE / TRANSFORM / MUTATE / OUTPUT / FINALIZE) — per-phase timing isn’t exposed by ExecutionScheduler yet, so this is a schedule, not a timeline.
  • an Inspector for the selected agent, showing real status fields.

When the registry isn’t available (engine not booted, headless test) the workspace falls back to a clear “(no agents registered)” state instead of mock rows.

Structs§

AgentSnapshot 🔒
Snapshot of one agent for the duration of a single frame’s UI.
ControlPlanePanel

Constants§

AGENTS_PANEL_WIDTH 🔒
AGENT_ROW_HEIGHT 🔒
FRAME_HISTORY 🔒
How many recent frame-time samples the summary sparkline keeps.
FRAME_TARGET_MS 🔒
INSPECTOR_PANEL_WIDTH 🔒
SUMMARY_BAR_HEIGHT 🔒

Functions§

crate_for_id 🔒
Crate-of-origin convention: built-in khora-agents agents have known AgentId values; everything else is conventionally classified as user-plugin (extension). This mapping is data-only — it doesn’t try to inspect Cargo metadata at runtime.
kv 🔒
Render a key/value row with the key left-aligned and the value right-aligned within [x, x+w].
paint_card_box 🔒
phase_color_for 🔒