Skip to main content

Crate brainos_observe

Crate brainos_observe 

Source
Expand description

§Brain Observability Bus

Single source of truth for everything the user might want to see Brain do.

  • BrainEvent formalises every consequential moment in the signal lifecycle (received, classified, routed, executed, audited, budget-crossed, etc.).
  • Observer is the trait every consequential code path publishes through.
  • BroadcastObserver is the default in-process fanout implementation.
  • Redactor scrubs vault-marked secrets from any event payload before publication.

The crate is intentionally self-contained — it owns no I/O or persistence; wiring into crates/signal and crates/audit happens at the processor seam.

Re-exports§

pub use event::BrainEvent;
pub use event::IntentSummary;
pub use event::OutcomeSummary;
pub use event::PrincipalSummary;
pub use event::SignalSummary;
pub use event::ToolRouteSummary;
pub use observer::BroadcastObserver;
pub use observer::ObserveError;
pub use observer::Observer;
pub use observer::DEFAULT_BROADCAST_CAPACITY;
pub use redact::Redactor;
pub use redact::SENTINEL_PREFIX;
pub use redact::SENTINEL_SUFFIX;
pub use sampling::LogSampler;

Modules§

event
observer
redact
Vault-handle redaction.
sampling
Log sampling for high-volume, low-information log lines.