Extending Telemetry
New telemetry starts with normalized events, not ad hoc metrics.
Order Of Operations
Section titled “Order Of Operations”- Define or extend the normalized Security Event subject.
- Emit a resolved security event with attribution, decision, findings, and evidence.
- Update typed VM/host accumulators from the resolved event.
- Expose bounded summaries in status/debug/UI.
- Export low-cardinality OpenTelemetry metrics.
The canonical event journal is the source of truth. Domain tables and UI views are projections.
Attribution
Section titled “Attribution”Every event should carry the relevant vm_id, session_id, profile_id,
user_id, trace id, and accounting owner. Accounting owner matters: host AI
work is not VM spend even when it is correlated with a VM.
Detection And Enforcement
Section titled “Detection And Enforcement”Detection runs before audit logging and telemetry sinks so the emitted event already includes findings. Enforcement decisions and declarative mutations are recorded before transport projection maps them to continue/rewrite/stop.
Plugins
Section titled “Plugins”Future plugins receive and return deterministic SecurityEvent values. They
must not depend on ambient filesystem, network, clock, process state, or hidden
runtime state. If a plugin needs history, Capsem embeds the trace/history
snapshot in the event. The invariant is:
same plugin hash + same input event hash = same output event hashThis supports replay, auditability, deterministic tests, and signed plugin bundles.