Module preflight

Module preflight 

Source
Expand description

2026-09-26: Warm-up sanity check before a tier: the endpoint must answer 4 to 2+2, or the run stops. A port of warmup_endpoint in bench/fp8_dgx2_drift/harness/run_tier.sh. A 200 from /v1/models proves only that a server is listening; this proves the checkpoint still decodes.

Owner: bench, agentic. Invariants: none beyond the types.

Constants§

SANITY_PROMPT
2026-09-26: Verbatim from the harness’s warmup_endpoint request body.

Functions§

answered
2026-09-26: True when either channel holds a 4 with no ASCII alphanumeric or _ on either side. warmup_endpoint greps content and reasoning_content merged, with the same boundary.
sanity_check
2026-09-26: Asks the endpoint 2+2. An error if the request fails, both channels are empty, or neither says 4 (answered).