config_schema
config_schema
¶
Pydantic schema for the clearance-owned slice of the shared config.yml.
The ecosystem shares one ~/.config/terok/config.yml. Each package
owns the schema of the sections it reads, and a package above composes
the whole file from those schemas (terok-sandbox describes the
arrangement in its own config_schema). This module is clearance's
part: the clearance: section, which the hub reads.
The section is strict on its own keys (extra="forbid"), as every
owned section is. The hub does not load this module. It parses the
value with parse_verdict_ttl,
the function this schema validates with, so the two cannot disagree and
the hub stays free of pydantic.
RawClearanceSection
¶
Bases: BaseModel
The clearance: section — what the clearance hub reads.