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;
9pub mod verifiable;
10
11/// P7-S5 · the chain validator (P2 §5 rules C1–C4 + C7). Host-ops tooling — CI and incident
12/// triage run the same knife — never part of an SDK runtime path.
13pub mod chain_validator;
14
15pub use kernel::{KernelObservation, KernelPressureAction};
16
17pub use event_log::{KernelEventCategory, Primitive, category_for_kind, primitive_for_kind};
18pub use repair::{
19    pending_tool_calls_from_messages, reconstruct_messages_with_fallback, repair_events,
20    repair_events_with_cap, repair_llm_completed, repair_llm_completed_with_cap,
21    sanitize_recovery_text, sanitize_recovery_text_bounded,
22};
23pub use replay::{
24    BudgetExceededRecord, BudgetUsageRecord, CancellationRecord, OsSnapshot, ProcessRecord,
25    SignalDeliveryDisposedRecord, SuspendRecord, rebuild_os_snapshot_from_events,
26};
27pub use session::{ProviderReplay, SessionEvent};