Skip to main content

Module config

Module config 

Source
Expand description

Config loading: workspace .kaizen/config.toml then ~/.kaizen/config.toml. Missing files → defaults. User config wins on overlap.

Structs§

CollectConfig
CollectOutcomesConfig
Opt-in post-hook outcome measurement (Tier C).
CollectSystemSamplerConfig
Opt-in per-process sampling (Tier D).
Config
CursorSourceConfig
EvalConfig
IdentityAllowlist
Per-field allowlist: when false (default), the field is omitted or hashed in telemetry exports.
ProxyConfig
Anthropic API-compatible HTTP proxy: forward + local telemetry. See docs/llm-proxy.md.
RetentionConfig
ScanConfig
SourcesConfig
StorageConfig
SyncConfig
TailAgentToggles
Enable tier-1 tail ingestion for agents that store data outside Cursor/Claude/Codex paths.
TelemetryConfig
Optional third-party telemetry sinks; same redacted batches as Kaizen sync.
TelemetryQueryConfig
Remote pull: query authority, cache TTL, and which identity labels may leave as cleartext.

Enums§

ContextPolicy
How to reduce billed input to the model (opt-in; default leaves requests unchanged).
ExporterConfig
One pluggable sink; TOML type is the tag.
QueryAuthority
Which third-party system is the single source for query-back / pull; OTLP is export-only, not a pull target.

Functions§

effective_redaction_salt
Resolve a 32-byte redaction salt for telemetry-only flows (push/test) when sync is not configured. Order: configured [sync].team_salt_hex<kaizen_home>/local_salt.hex → freshly generated and persisted at 0o600. Telemetry never blocks on cloud sync.
load
Load config: ~/.kaizen/projects/<slug>/config.toml then ~/.kaizen/config.toml. User config wins on overlap. Missing files → defaults, not error.
try_team_salt
Parse team_salt_hex into 32 bytes. Returns None if missing or invalid.