cg-selarm

command
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL