Module levers

Module levers 

Source
Expand description

2026-09-26: Every METRALE_* environment variable the repository reads, declared once.

met refuses to start with an undeclared METRALE_* name in its environment (check, called first in serve_main). The bench crate’s serve_env takes the harness set from the table and validates a recipe’s env: block against it, and met dump-serve-options publishes it. levers_tests checks the table against the sources: every "METRALE_*" literal outside test files and every getenv("METRALE_*") in C/CUDA must be declared, each lever’s reader file must name it, and a Runtime lever needs a production reader. The server’s manifest_tests check the flag column against clap.

Owner: config. Invariants: none beyond the types.

Structs§

LeverSpec
UndeclaredLevers

Enums§

Class
2026-09-26: Who reads a lever. levers_tests checks each lever’s reader against its class.
Ty

Constants§

PREFIX

Functions§

all
2026-09-26: Every lever, in name order (levers_tests checks the order).
check
2026-09-26: Refuse an environment carrying an undeclared METRALE_* name.
is_harness
lookup
undeclared
2026-09-26: The METRALE_* names among names that no lever declares, sorted and de-duplicated.
var
2026-09-26: std::env::var(name).ok(), for a declared lever.
var_os
2026-09-26: std::env::var_os(name), for a declared lever (see var).