Skip to content
Hiep Lam
Go back

Don't Ship the Bundle: A/B-Testing Prompt Rules Before You Believe Them

Edit page đŸ‡»đŸ‡ł Tiáșżng Việt

I write a standing instruction for my LLM sessions with an “Antigoal” clause: every new term must be introduced with context, a direct defense against the Curse of Knowledge - the habit LLMs have of writing expert-to-expert and dropping jargon with no lead-in. A Gemini session, asked to review that instruction, suggested restructuring it and argued LLMs follow affirmative instructions (“do X”) more reliably than negated ones (“don’t do Y”). I liked the suggestion, pasted it into my global rules along with my own line - and shipped it without testing anything.

That’s the mistake this post is about, and how I went back and fixed it with an actual eval.


TL;DR


1. The itch

I write a prompt for LLM sessions with an “Antigoal” clause: every new term must be introduced with context - a direct defense against the Curse of Knowledge, the habit LLMs have of writing expert-to-expert and dropping jargon with no lead-in. A Gemini session, asked to review that prompt, suggested restructuring it into 3 templates (Guidelines + Anti-goals, persona, direct rules), arguing that LLMs follow affirmative instructions (“do X”) more reliably than negated ones (“don’t do Y”).

2. The bundle mistake

I pasted the Gemini suggestions into my global Claude rules and added my own line (“ground claim with truth, code or fact”) - all in the same edit. Output got better. But which ingredient worked? Unknown - the variables were never isolated. My own words at the time: “cĂł thể lĂ  do cĂąu ground claim” (“maybe it’s the grounding line”) - a hypothesis, not a finding. The persona variant even drifted into a second repo’s CLAUDE.md: the bundle had already spread into 2 divergent copies before anyone checked which part of it actually mattered.

3. The verification pass (Claude.AI)

A Claude.AI session checked the claims behind the restructuring against primary sources:

It then designed an A/B kit (arms + metrics, below) and a skeleton skill, refusing to ship rules without numbers - the right call, since the eval later refuted my own favorite ingredient.

4. Independent re-verification

A Claude Code session re-verified all 4 citations against primary sources - all confirmed - and added 2025–26 literature the earlier handoff didn’t have:

Net finding: the earlier caveat (“not yet studied on modern models”) is outdated as of 2026 - the newer evidence reinforces preferring affirmative phrasing over negated constraints, it doesn’t just leave the question open.

5. The eval design

Per the kit designed in §3:

6. Three infrastructure gotchas (why this eval almost lied)

These found during the run are worth their own section - they silently corrupt evals if you don’t catch them:

7. Results - clean runs

P1+P2 only (P3 excluded per §6), n=4/arm, Opus 4.8, mean ±sd:

ArmM1 undef/1k ↓M2 grounding ↑M3 over-expl ↓words
A0 baseline12.18 ±4.300.38 ±0.120.25 ±0.50823
A1 grounding only11.17 ±7.690.44 ±0.320.25 ±0.50820
A2 term-discipline only5.41 ±2.930.43 ±0.271.25 ±1.50780
A3 both4.06 ±3.130.47 ±0.180.75 ±0.96908
A4 + reader-model10.04 ±4.270.42 ±0.090.75 ±0.961071

A2 is the active ingredient for M1 (−56% alone) but doubles over-explanation when alone; A1 alone does nothing to M1 (my “maybe it’s the grounding line” hypothesis is refuted as the main driver - it only mildly helps M2); A3 (the pair) dominates (−67% M1, best M2, damped M3); A4’s reader-model line regresses M1 and inflates length +18% - refuted.

8. Fable 5 transfer

A0 vs A3, P1+P2, n=4: A0 M1 = 8.92 ±3.49; A3 M1 = 8.20 ±1.34. Fable’s baseline is already near the rules’ level; the pair mainly narrows variance (consistency), with no measured harm (M2 0.50→0.52; M3 0.50→0.75, within noise). Honest conclusion: effect size is model-dependent - biggest gains on jargon-heavy defaults (Opus), consistency gains elsewhere.

9. What shipped

todd-skills PR #43 - plugin explaining (a skill), shipping only the A3 pair + self-check + an evidence note with the numbers and their bounds. Excluded: the reader-model rule (refuted by A4), persona framing (refuted by arXiv:2311.10054), and an untested stopping-condition rule (the residual M3 = 0.75 is documented as a known limitation instead of being “fixed” with an unverified rule). Regression fixtures live in plugins/explaining/evals/evals.json (the repo’s eval-harness shape). Full evidence artifact: docs/superpowers/evidence/2026-07-18-explaining-skill-ab-eval.json (30 per-run rows, generation/grading method, and the decision log).

The PR went through two independent review passes before merge: a rules reviewer caught a wrong component id in the ADR (c3-218 → c3-201), missing C3 architecture-doc wiring/codemap coverage for plugins/explaining/**, and a category mismatch; an adversarial auditor independently confirmed the same class of gaps. All were fixed and re-verified before the merge - a small demonstration, inside the project’s own tooling, of the same “verify before shipping” principle the eval itself is about. PR #43 merged as a regular 2-parent merge commit 98b35db; the skill is now live on this machine via ~/.claude/skills/explaining → the plugin’s skill directory, so it applies automatically to sessions going forward.


Key takeaways

  1. A bundle that “works” tells you nothing about which part works; my own favorite ingredient turned out inert for the headline metric.
  2. Verification ≠ vibes: 2 of 4 candidate rules died on contact with data; the survivors carry their numbers in the shipped skill so future edits stay evidence-gated.
  3. Eval infrastructure fails silently (builtin-skill contamination, ID collision, judge over-counting) - the eval of the eval matters as much as the eval.
  4. Literature check: prefer affirmative operational directives over negative constraints and personas - now backed by 2025-26 mechanistic work, not just 2022 inverse-scaling.

Sources


Edit page
Share this post:

Previous Post
Campaign Runner: reading a TypeScript orchestrator through C# eyes
Next Post
Provider Switching & SDK-Mode Internals: How an Agent Harness Wires Claude's query() In-Process

Keep reading

A few more pieces in the same vein.

Rather read on your own time? Subscribe via RSS