Confidence routing
Instead of polling a fixed number of models, Hydra accumulates the log-likelihood ratio across votes and stops the instant the evidence is conclusive. Wald proved this minimizes the expected number of samples among all tests with the same error bounds.
A doctor ordering one test at a time and stopping the moment the diagnosis is certain — instead of always running the full panel.
hyctl trust benchmarkCalibration
Each source earns a sensitivity se and specificity sp from real outcomes. Its worth is the expected evidence per vote — the KL divergence between the vote distributions under the two hypotheses, in nats. A coin-flip source scores D = 0 and adds nothing however often it votes.
A witness's credibility measured in nats. A coin-flip witness tells you nothing however many times they testify.
hyctl trust calibrationWhen to stop
Confidence isn't free and defects aren't equal. The expected loss of shipping an answer believed correct with confidence c is (1 − c)·Cdefect; ship only when that clears a loss tolerance τ. A costlier defect ⟹ a higher bar ⟹ SPRT samples more before it stops.
You demand far more certainty before heart surgery than before a haircut — the bar scales with what a mistake costs.
hyctl trust defect --pii --productionBlast radius
Treat the code as a graph with degree mean ⟨k⟩ and second moment ⟨k2⟩. A giant connected component — a cascade-capable core where one change can ripple everywhere — exists precisely when κ ≥ 2. Files inside it get their confidence bar raised.
The epidemic threshold R₀ — below it a change stays local; above it, one edit can infect the whole graph.
hyctl graph blast <file>Optimal parallelism
Fanning work across n agents speeds the parallel part but adds coordination cost that grows with n. With serial fraction s and per-agent coupling k, minimizing wall-clock time gives a closed-form optimum. Independent files → ~6 agents; tightly-coupled edits → ~2. More is slower.
Adding cooks to a kitchen: past n★ they spend more time coordinating than cooking.
hyctl graph parallel <files…>Context governor
A context window's value is its information density, not its token count. Hydra proxies the entropy rate with a compression ratio ρ and counts only the useful tokens. Highly compressible context (repetitive, stale) has low ρ — so Hydra compacts on falling ρ, not on raw length.
Signal-to-noise: a short, sharp briefing beats a rambling transcript ten times its length.
hyctl context entropy <file>