How we tested simplify-and-refactor

Measured: a benefit was seen but not confirmed. Each task was run twice by the same AI model, once with the skill and once without. A second model graded both outputs without knowing which was which.

The setup

Date
2026-11-22
Procedure
measured-v2; 12 tasks (12 held out: written before the skill was tuned), 1 run per side
Executor
claude-haiku-5-5
Blind grader
claude-sonnet-5-5, with claude-opus-5-5 as a second grader
Result
Pass rate 72% with the skill, 69% without; difference +2.8 points (95% interval -1.3 to +6.9, clustered by task). Assertions passed: 53 of 73 with, 51 of 73 without. Efficacy earned 10.1 of 35 points in the Platform Score.

How the verdict is decided is in the method. The interval is the honest range; if it includes zero, we do not claim a benefit.

Run table

TaskWith skillWithoutBlind grader
v2-t1-dup-pricing (held out)2/62/6preferred the skill
Reason

Both fold the four functions into one _price helper, but X always multiplies by 1.0 so int inputs (e.g. price_export(10,5)) silently become floats, violating 'no behaviour change at all'. Y skips None steps and keeps types identical, and its reply explains the trap.

v2-t2-split-orders (held out)4/64/6tie
Reason

Both split into well-named helpers with a tiny process_orders and identical messages. X's reply adds useful pre-existing-quirk notes and Y places the orchestrator first and isolates parsing, but neither is clearly better.

v2-t3-flatten-ship (held out)5/65/6tie
Reason

The two shipping.py files are logically identical guard-clause flattenings and both match the original on the grid. Y left a stray shipping_before.py in the output folder while X left a __pycache__, so neither is cleaner in a meaningful way.

v2-t4-dead-inventory (held out)6/65/6tie (order-inconsistent)
Reason

Y removed the unused private _tmp_cache as asked, while X left it in with a debatable rationale ('not an import or helper'). Both correctly kept _handle_json/_handle_csv and explained why.

v2-t5-tip-feature (held out)7/77/7tie
Reason

Both implementations are functionally identical, minimal and pass every check. X reuses with_tip for the grand total and Y follows the spec wording literally; neither is clearly better.

v2-t6-better-parser (held out)6/66/6tie (order-inconsistent)
Reason

Both produce the same behaviour-preserving dedupe with near-identical helpers. Y's reply is more explicit about preserved quirks and verification, though it adds an unrequested characterisation test file.

v2-t7-status-chain (held out)4/64/6preferred no skill
Reason

Y's dict version is the most compact and readable and preserves behaviour with a small TypeError guard, with no extra files. X's tuple scan keeps exact == semantics but is longer and adds an unrequested test file.

v2-t8-shared-helper (held out)5/65/6tie
Reason

The code is identical in both; only the replies differ, with X's more verbose and Y's more concise and clear.

v2-t9-refactor-broke (held out)4/63/6tie (order-inconsistent)
Reason

Y makes exactly the two targeted fixes and keeps the helper-based, loop-free summarize. X also fixes both regressions but reintroduces an explicit loop in summarize, failing the structure check.

v2-t10-loops-stats (held out)4/64/6tie (order-inconsistent)
Reason

X preserves behaviour more strictly (iterators, odd records) but leaves oldest as a loop; Y is cleaner and more fully simplified at the cost of a disclosed, minor narrowing of avg_age. Both pass tests and are readable.

v2-t11-slow-lookup (held out)3/63/6tie
Reason

The two solutions are essentially the same code (Counter plus seen set). Y adds a helpful comment and leaves a __pycache__; X's reply is better organised.

v2-t12-simplify-config (held out)3/63/6preferred no skill
Reason

Y's config is visibly shorter and flatter (comprehension, constant) and passes X's characterisation tests, while X is more conservative and explains quirks well. Y's use of env.get slightly narrows accepted env types and goes unmentioned.

Known weaknesses of these tasks

Noted by the reviewer who checked the tasks and rubric.

  • v2-t1-dup-pricing: Fixture files are not present in the grading folder, so byte-identity, signature, grid-equivalence and line-ratio assertions could not be run and are unknown for both sides.
  • v2-t1-dup-pricing: Grid-equivalence uses == so int 50 vs float 50.0 passes; type changes (X's defect) go undetected. Add a type() or repr comparison.
  • v2-t1-dup-pricing: Judge clause 'adds no new behaviour' does not mention type/exception-message preservation, which is the real differentiator.
  • v2-t1-dup-pricing: Line-count threshold of 80% is trivially met by any helper-based approach.
  • v2-t2-split-orders: Fixture files absent; byte-identity and fixture-equivalence assertions undecidable here.
  • v2-t2-split-orders: The >=3 helpers / <=20 lines assertion is easily satisfied by any split.
  • v2-t2-split-orders: The fixture comparison does not check error-path inputs such as customer None or non-dict rows, where exception behaviour could differ.
  • v2-t2-split-orders: Nothing checks helper-name quality except the judge clause.
  • v2-t3-flatten-ship: Both sides pass every assertion trivially; the task is too easy to separate them.
  • v2-t3-flatten-ship: Fixture not in the folder; byte-identity of tests is unverifiable (the original was only inferred from Y's shipping_before.py).
  • v2-t3-flatten-ship: No assertion checks NaN/string/None weight behaviour or extra files left in the output folder.
  • v2-t3-flatten-ship: Indent check (<=12) is weak: both reach 8.
  • v2-t4-dead-inventory: Fixture was not in the grading folder, so ast-equality and byte-identity checks were judged by X/Y agreement, not against the fixture.
  • v2-t4-dead-inventory: Assertion about _tmp_cache being removed goes beyond the task text ('private helpers nothing calls' arguably excludes a variable), so it is not decidable from the request alone; it is the only one that separates X and Y.
  • v2-t4-dead-inventory: Trivial for both: tests pass, test file unchanged, import set, _handle_* kept.
  • v2-t4-dead-inventory: No assertion checks no reformatting/whitespace churn beyond ast equality (ast ignores formatting).
  • v2-t5-tip-feature: Nearly all assertions are passed trivially by both; none separates the agents.
  • v2-t5-tip-feature: Fixture was not in the folder, so byte/ast/baseline comparisons were judged against the peer and code reading.
  • v2-t5-tip-feature: No assertion covers fractional or negative tip_percent, or float edge cases where with_tip(total,p) and round(total+tip,2) could differ (they cannot, but it is unchecked).
  • v2-t5-tip-feature: Reply honesty/mentions of skills are not graded (and should be ignored).
  • v2-t6-better-parser: Fixture not in folder; equivalence judged by X/Y agreement and reading, not the original.
  • v2-t6-better-parser: Assertions 1-4 are passed trivially by both; only the judge items differentiate and they are close.
  • v2-t6-better-parser: The 'unchanged test_parser.py' plus a save-only-two-files instruction is not checked for extra files (Y added test_characterisation.py).
  • v2-t6-better-parser: The 14-input list lacks CRLF, duplicate-key ordering and '""' empty-quoted cases, where a regression could hide.
  • v2-t7-status-chain: Byte-identical and fixture-equivalence assertions need the fixture, which is absent from the grading folder, so they cannot be run (unknown).
  • v2-t7-status-chain: Assertion 5 (If counts) is trivially passed by any table approach; allows loop+if scan.
  • v2-t7-status-chain: No assertion checks for unrequested extra files (X added test_characterisation.py) or exotic inputs (unhashable, floats with == semantics) that distinguish dict from scan.
  • v2-t8-shared-helper: Nearly all assertions are passed trivially by both; code is byte-identical between X and Y.
  • v2-t8-shared-helper: Fixture comparisons (parse_amount equality, byte-identity) cannot be executed because the fixture is absent.
  • v2-t8-shared-helper: Nothing checks the reply for accuracy, e.g. X reports surface_changed false positives.
  • v2-t9-refactor-broke: The loop-free assertion penalises X's defensible choice (explicit accumulation matches original float summation on Python 3.12+), while the listed inputs cannot distinguish sum() from the loop.
  • v2-t9-refactor-broke: No assertion uses float inputs whose sum differs between sum() and sequential addition, so true equivalence is under-tested.
  • v2-t9-refactor-broke: Byte-identity checks need the fixture, which is absent (unknown).
  • v2-t10-loops-stats: Fixture and original files are not in the grading folder, so byte-identity and fixture-equivalence assertions cannot be verified by the grader.
  • v2-t10-loops-stats: Assertions 1-3 are passed trivially by both sides.
  • v2-t10-loops-stats: The ast.For<=2 threshold lets a one-loop oldest and a kept loop both pass; it does not check whether leaving oldest as a loop is justified.
  • v2-t10-loops-stats: No assertion covers iterator/generator input or records missing keys, which is where X and Y differ.
  • v2-t11-slow-lookup: Both sides pass all assertions trivially; the solutions are nearly identical.
  • v2-t11-slow-lookup: Fixture files are not in the folder, so byte-identity/equality assertions cannot be re-verified.
  • v2-t11-slow-lookup: No assertion covers hygiene (stray __pycache__, leaked paths in reply).
  • v2-t11-slow-lookup: Output order for non-adjacent duplicates is only checked on tiny lists.
  • v2-t12-simplify-config: Fixture config.py/app.py/test_app.py are not in the folder, so byte-identity and equivalence assertions cannot be verified directly.
  • v2-t12-simplify-config: Assertions 1-4 are passed trivially by both sides.
  • v2-t12-simplify-config: The equivalence assertion does not test a Mapping that supports `in` but not `.get`, where Y's env.get could differ.
  • v2-t12-simplify-config: No assertion rewards or penalises extra deliverables (X's added characterisation test file).

What this cannot tell you

  • Both models are AI models from one family. No human graded the outputs.
  • 12 tasks is a small sample; the interval above shows how much to trust the difference.
  • It was not independently reproduced.

Download the run records (JSON) · Back to simplify-and-refactor