clearance
clearance
¶
Adapter for terok-clearance — clearance hub + verdict server + subscribers.
Re-export catalog: every from terok_clearance … import in
terok_sandbox lives here. The contract is enforced by
.importlinter (terok_clearance is a protected module with
terok_sandbox.integrations.clearance as the sole allowed importer).
Clearance runs as two of the per-container supervisor's children: the
verdict child serves
VerdictServer, and the clearance
child composes ClearanceHub +
EventSubscriber (driven by
create_notifier). TUI clients
multiplex across per-container hub sockets via
MultiSocketSubscriber. The
supervisor composes these objects directly, so there is no per-service
systemd install.
terok_clearance is a hard dependency, and there is no clearance
setup phase to skip. Whether a container runs the two children is
decided per launch by services.clearance: off and the
supervisor starts neither, mute and the hub starts with the
container muted.
parse_verdict_ttl is the hub's grammar for clearance.verdict_ttl.
The clearance child is confined before its hub starts and cannot read
config.yml, so the launcher hands the value over in the sidecar and
the child parses it with this function before it builds the hub.