Documentation
¶
Overview ¶
cg-selarm runs one adjudication ARM against the rebuilt selection corpus and writes its decisions.
WHY THIS IS GO AND NOT A SCRIPT. The thing under test is the SHIPPED prompt and the SHIPPED parser. A Python runner would re-implement extract.BuildPrefixAsk and extract.ParseVerdicts, and would then agree with my copy of them rather than with the code that runs in production — the same trap that made the adjudication dump's `outcome` field wrong until the real decision path was extracted into priceBatch. So this calls the real functions.
SPENDING IS GATED THREE WAYS, because the corpus is large enough that a bug is expensive:
-dry build every prompt, measure real token counts, project cost, make ZERO calls, and
round-trip a synthetic reply through the real parser
-n N run only the first N batches of a SEEDED sample, so a 30-batch slice is a strict
subset of the 120-batch run and the two can be compared directly
-max-usd X hard ceiling: refuse to start if the projection exceeds it, and stop mid-run if the
measured spend does
ARM B is arm A's prompt with ONE clause replaced, and the replacement is verified present before any call is made. If the clause has drifted, this exits rather than silently measuring two identical arms — which would read as "the change does nothing".