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 byExecutionScheduleryet, 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§
- Agent
Snapshot 🔒 - Snapshot of one agent for the duration of a single frame’s UI.
- Control
Plane Panel
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-agentsagents have knownAgentIdvalues; everything else is conventionally classified asuser-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