Skip to main contentModule core
Source pub use data_source::DataSource;pub use identity::ActorIdentity;
- config
- Config loading: project data config, then user config.
Missing files → defaults. User config wins on overlap.
- cost
- Model cost estimation from bundled price table.
All values in cost_usd_e6 (1 USD = 1_000_000 units).
- data_source
- Whether read-side commands use local SQLite, provider cache, or a merged view.
- event
- Core event + session-record types. Pure data, no IO.
- home_paths
- Validated user-home paths for Kaizen-owned writes.
- identity
- Optional cleartext identity fields for session/event payloads (redaction by default; allowlisted in config).
- legacy_import
- Copy legacy workspace data into Kaizen home without changing the workspace.
- machine_registry
- Machine-local SQLite registry (
$KAIZEN_HOME/machine.db) — known workspace roots, init history. - paths
- Shared path helpers (used by
workspace and machine_registry to avoid import cycles). - project_identity
- Workspace label derived at export boundary.
- repo
- Git-bound repo facts. Shell out only at boundary.
- safe_fs
- File opens that never follow a final symlink on supported platforms.
- session
- Session lifecycle state machine — pure core, no IO.
- trace_span
- Additive trace-span model for Datadog/OTLP-style session timelines.
- workspace
- Workspace path canonicalization + machine-local registry.