Expand description
Config loading: workspace .kaizen/config.toml then ~/.kaizen/config.toml.
Missing files → defaults. User config wins on overlap.
Structs§
- Collect
Config - Collect
Outcomes Config - Opt-in post-hook outcome measurement (Tier C).
- Collect
System Sampler Config - Opt-in per-process sampling (Tier D).
- Config
- Cursor
Source Config - Eval
Config - Identity
Allowlist - Per-field allowlist: when
false(default), the field is omitted or hashed in telemetry exports. - Proxy
Config - Anthropic API-compatible HTTP proxy: forward + local telemetry. See
docs/llm-proxy.md. - Retention
Config - Scan
Config - Sources
Config - Storage
Config - Sync
Config - Tail
Agent Toggles - Enable tier-1 tail ingestion for agents that store data outside Cursor/Claude/Codex paths.
- Telemetry
Config - Optional third-party telemetry sinks; same redacted batches as Kaizen sync.
- Telemetry
Query Config - Remote pull: query authority, cache TTL, and which identity labels may leave as cleartext.
Enums§
- Context
Policy - How to reduce billed input to the model (opt-in; default leaves requests unchanged).
- Exporter
Config - One pluggable sink; TOML
typeis the tag. - Query
Authority - 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 at0o600. Telemetry never blocks on cloud sync. - load
- Load config:
~/.kaizen/projects/<slug>/config.tomlthen~/.kaizen/config.toml. User config wins on overlap. Missing files → defaults, not error. - try_
team_ salt - Parse
team_salt_hexinto 32 bytes. ReturnsNoneif missing or invalid.