Skip to main content

deepstrike_core/runtime/
mod.rs

1//! Runtime event types shared across SDK bindings.
2//! I/O (append/read) lives in each language SDK — the kernel stays pure.
3
4pub mod event_log;
5pub mod kernel;
6pub mod repair;
7pub mod replay;
8pub mod session;
9
10/// P7-S5 · the chain validator (P2 §5 rules C1–C4 + C7). Host-ops tooling — CI and incident
11/// triage run the same knife — never part of an SDK runtime path.
12pub mod chain_validator;
13
14pub use kernel::{KernelObservation, KernelPressureAction};
15
16pub use event_log::{KernelEventCategory, Primitive, category_for_kind, primitive_for_kind};
17pub use repair::{
18    pending_tool_calls_from_messages, reconstruct_messages_with_fallback, repair_events,
19    repair_events_with_cap, repair_llm_completed, repair_llm_completed_with_cap,
20    sanitize_recovery_text, sanitize_recovery_text_bounded,
21};
22pub use replay::{
23    BudgetExceededRecord, BudgetUsageRecord, CancellationRecord, OsSnapshot, ProcessRecord,
24    SignalDeliveryDisposedRecord, SuspendRecord, rebuild_os_snapshot_from_events,
25};
26pub use session::{ProviderReplay, SessionEvent};