agentleFS
AWSKnown publisherawslabs/do-agent-aws/Container-Root/agent/skills/ablate-combined-changes/SKILL.md

ablate-combined-changes

Skill3 starsChanged 2 days agoApache-2.0View on GitHub

Use when a multi-variable change produces a large improvement and you need to isolate which variables contributed, which are harmful, and whether gains stack. Use when celebrating a big win from simultaneous changes, when building on a combined config without understanding individual contributions, or when two good optimizations give worse-than-expected combined result.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never build on a multi-variable win without ablation: When multiple changes produce a big improvement, some variables may be harmful …

    line 10
  2. Distinctive:

    After any experiment that changed 2+ variables simultaneously

    line 14
  3. Distinctive:

    Before building further optimizations on a combined config

    line 15
  4. Distinctive:

    When two individually good changes give a worse-than-expected combined result

    line 16
  5. Distinctive:

    When a "required" variable might actually be hurting performance

    line 17
  6. Very specific:

    Detection: If combined_improvement < max(individual_improvements), the changes are anti-synergistic.

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ablate Combined Changes

Overview

Never build on a multi-variable win without ablation. When multiple changes produce a big improvement, some variables may be harmful (dragging the result down), some may be required (crash without them), and beneficial ones may NOT stack when combined due to overlapping bottlenecks.

When to Use

  • After any experiment that changed 2+ variables simultaneously
  • Before building further optimizations on a combined config
  • When two individually good changes give a worse-than-expected combined result
  • When a "required" variable might actually be hurting performance

Core Pattern

1. RECORD combined result as reference
2. FOR EACH variable changed:
   a. Revert ONLY that variable to its pre-change value
   b. Benchmark (using stable measurement protocol)
   c. Record: did removing it help, hurt, or crash?
   d. Restore variable, move to next
3. CLASSIFY each variable:
   - REQUIRED:    Crashes without it (do not remove)
   - BENEFICIAL:  Removing it hurts performance (keep)
   - HARMFUL:     Removing it IMPROVES performance (remove from config!)
   - NEUTRAL:     No measurable effect (remove for simplicity)
4. TEST STACKING: Combine the top 2 beneficial changes. Compare against each alone.
   If combined < sum of individual gains → overlapping bottlenecks

The Non-Additive Trap

Two optimizations that independently improve the same metric can interfere when combined:

Optimization A alone: -8.9% dispatch  (targets NIC coordination overhead)
Optimization B alone: -17.7% dispatch (targets memory registration overhead)
Expected combined:    -26.6%
Actual combined:      -8.4%  ← WORSE than B alone!

Root cause: Both optimizations targeted overlapping bottlenecks in the memory registration path. Removing NIC coordination (A) also removed the workload that B was optimizing.

Detection: If combined_improvement < max(individual_improvements), the changes are anti-synergistic. Use the better individual change, not the combination.

Quick Reference

Variable ClassificationWhat Happened When RemovedAction
REQUIREDSystem crashedKeep, mark as non-negotiable
BENEFICIALPerformance degradedKeep in optimal config
HARMFULPerformance IMPROVEDRemove immediately
NEUTRALNo change (within noise)Remove for simplicity

Common Mistakes

MistakeConsequenceFix
Celebrating multi-var win without ablationBuilding on suboptimal configAlways ablate before proceeding
Assuming "safety" variables are freeHidden 17% penalty from VMM disableTest every variable
Stacking two good changes without testingNon-additive interference undetectedAlways test the combination explicitly
Changing variables during ablationConfounded resultsReset to baseline between EACH test

Real-World Impact

A 7-variable combined change produced 22% improvement. Ablation revealed one "safety" variable (DISABLE_CUDA_VMM=1) was actively harmful (-17.7%). Removing it alone beat the combined config. Two beneficial changes (VMM + single-rail) did NOT stack — the combination was worse than VMM alone. The optimal config had fewer variables than the original "winning" config.

<!-- imported on 2026-10-31 by tools/import-skills.py from a native Claude Code instance's skill library; the source site's names, ids, hosts and paths are scrubbed to <placeholders>; its other files were not copied -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.