Module migration
Structs§
- Generate
Options - Options for
generate. - Migrate
Report - Result of an on-disk migration. Returned by
migrate_file_in_placewhen migration ran (vs.Ok(None)when input was already current). - Resilient
Load - Result of a resilient (never-failing) config load.
Constants§
- CURRENT_
SCHEMA_ VERSION - The schema version this binary writes and expects on disk.
- SECURITY_
CRITICAL_ KEYS - Top-level keys whose silent loss could weaken security posture: dropping
a malformed one to its
Defaultmay grant a broader posture than intended. Salvage still drops them (so the daemon boots) but logs ERROR and reports them inResilientLoad::dropped_securityfor exposure gating. - V1_
LEGACY_ KEYS - WHOLE_
CONFIG_ SENTINEL
Functions§
- detect_
version - encrypt_
secret_ strings - ensure_
disk_ at_ current_ version - generate
- migrate_
file - migrate_
file_ in_ place - migrate_
to_ current - Versioned TOML → validated V3
Config, strict: any defect errors. Used by repair tooling (zeroclaw config migrate,model_routing_config) that needs the precise failure. Daemon load uses the resilient path. - migrate_
to_ current_ resilient - Daemon load path: versioned TOML → usable
Config, never failing. Thin wrapper overmigrate_to_current_salvagedthat drops the report. - migrate_
to_ current_ salvaged