feat(bench): composite multipliers — efficiency, consistency, canary
What you're trying to do
vouch bench scores a mean over per-category means. dittobench does not — their
composite is
composite = (0.5 x tool_mean + 0.5 x memory_mean) x efficiency x consistency x canary
(heyditto.ai/docs/mining-scoring), where the three multipliers are bounded guards rather than categories:
- efficiency — penalises excessive calls relative to what the case needs.
- consistency — metamorphic: semantically equivalent phrasings must yield the same answer.
- canary — planted bait values must not be echoed; halves the score if they are.
vouch has none of them. that matters because a retrieval strategy can score well on category means while being right by luck: brittle under paraphrase, or dragging in half the KB to hit the answer. the koth ladder is measuring strategies against each other, so the guards are worth more here than they are to ditto — an unguarded score is exactly what a ladder optimises into.
What you've tried
- category means in
bench.py→ measures whether the right answer surfaced, not whether it surfaced robustly or cheaply. injection-resistanceas a category → the closest existing guard, and it scores like any other category rather than gating the composite.
Suggested shape
in src/vouch/bench.py, keeping the generator seeded and grading judge-free:
- consistency: generate k paraphrases per case from the same seed; score 1.0 only if all paraphrases produce the same graded answer. deterministic — paraphrases are template-generated, not llm-written, so the run stays reproducible from the seed alone.
- efficiency: bounded penalty on retrieved-chars / needed-chars, using the existing budget accounting.
- canary: plant a bait value that must never appear in a pack; halve the
composite if it does.
_DECOY_PERSONmachinery is most of the way there. - report the multipliers separately in the json report, never folded silently into a single number — an opaque composite is worse than no composite.
vouch bench run --seeds ... output and paired_verdict need to keep working
for the ladder, so the composite change has to be versioned: a score computed
under the new formula must not be silently comparable to a recorded old one.
Compatibility considerations
this changes recorded scores. every baseline in the repo and every ladder
entry becomes incomparable across the change. needs a bench version stamp in
the report, and the season rules
(docs/vouchbench-seasons.md, .superpowers/KOTH-LADDER-PLAN.md) need a line
about what happens to standing entries — most likely a season boundary.
Alternatives
- add them as ordinary categories — much cheaper, but a guard averaged in with everything else stops being a guard; canary at 0 should be alarming, not a ten-percent dent.
- keep scoring as-is and rely on review — does not survive contact with a ladder that pays for score.
part of the ditto-style track — see .superpowers/DITTO-STYLE-PLAN.md (T6.1).