Skip to content

Hold-out mutation test: does BB's 100% survive unseen bugs (memorization vs transfer) #316

Closed

Description

@abogartz

Problem

BB scored 24/24 at 150s vs BA 10/24, but the B chain (B1–B4) learned on all 24 fix instances and BB re-ran the same 24. Store rows name specific fixed bugs (e.g. "shipping() used > vs required >="), so BB partly retrieves answers, not transferable lessons. The headline "memory wins runs cold loses" is unproven until tested on mutations the store has never seen.

Work

  1. Add 3 new mutation templates (t11–t13) to mutations-v2.json — same style (boundary/strictness/rounding class), code paths the B4 store has no rows about.
  2. Generate 2 instances each (6 total) via gen-instances.ts; add hold-out pass schedule.
  3. Run on the EXISTING B4 store (no new learning): BA-holdout (plugin off, 150s ×6) and BB-holdout (B4 store, 150s ×6).
  4. Verdict rule (pre-register before running): BB-holdout pass-rate meaningfully > BA-holdout → memory generalizes via meta-lessons; ≈ equal → BB headline was memorization, RESULTS.md must state the claim is limited to repeated task families.

Acceptance

  • Hold-out results in results.jsonl under passes BA-H/BB-H.
  • Hits ledger shows which rows were injected for hold-out tasks (expect meta-lesson rows, not per-bug rows).
  • Verdict paragraph drafted for RESULTS.md.

Activity

  1. added
    bench
    on Nov 6, 2026
  2. abogartz commented on Nov 6, 2026

    @abogartz
    OwnerAuthor

    Result: the hold-out refutes transfer, and reframing shows the claim was mis-stated

    Three blocks ran dark on evo/Qwen3.8-Flash-Next-UD-Q4_K_XL: results5 (same repo, unseen functions), results6 and results7 (different repo, gate-verified unknown).

    Two harness bugs found first, both now fail loudly

    results4/BB-H ran with an empty store and scored 0/6, which looked like a null result:

    1. cp -R <seed> results4/stores/BB-H ran while the parent results4/stores/ did not exist; cp failed ENOENT and .nothrow().quiet() swallowed it, then mkdir -p produced an empty store.
    2. Even a correct copy would have been invisible: the harness repo has no git origin, so identity is sha1(resolved path). Seed rows are stamped repo=e01a4e9fe5eb from results3/work/B/repo; the run used a different path, and rows from another path are filtered at read.

    seedStore now asserts ≥1 copied row, runPass asserts ≥1 memory_used event, and --gate-only runs both with zero inference.

    t11–t13 were never a hold-out

    Hold-out selection by "this function was never mutated" is the wrong test. The store keeps prose synopses of whole modules, so same-file tasks wrote the answers down. The gate now proves it mechanically:

    h1/t11: seed store mentions "release" in 27 row(s)
    h1/t11: seed store mentions "reserved" in 22 row(s)
    h3/t12: seed store mentions "roundCents" in 3 row(s)
    

    including correct form is moved = max(0, min(n, reserved)) and injected variant was Math.floor — the exact forms t11 and t12 break.

    Different repository, contamination-gated (base3, branch-library domain)

    New filenames, new symbols, same bug classes. The gate confirms none of isOverdue, LOAN_DAYS, renewLoan, renewalsLeft, toCents, lateFee, statementTotal, COURTESY_RATE, circulation.ts, charges.ts appears in any of the 41 seed rows, and injection was live (138 and 142 memory_used events).

    regime warm cold Fisher (2-sided)
    full budget 8/8, 179 s, 16,401 tok 8/8, 169 s, 11,482 tok headroom-free
    150 s 3/8, 14,005 tok 2/8, 8,272 tok p = 1.00
    pooled 11/16 10/16 p = 1.00

    No transfer, and warm costs 1.43× (full budget) to 1.69× (150 s) more tokens.

    The framing was wrong, and it matters more than the null

    Cross-repo generalization is not what this plugin claims. Memories are repo-scoped by design; a lesson meant to travel is stored global on purpose ("always check package.json for how to run tests"). base3 tested a claim nobody made. The promise is: an engineer returning to a product re-learns its quirks fewer times.

    That claim is measurable, and the dark run already supports it — same repo, a different task every pass, plugin off as control:

    arm sessions med wall-clock med billable tokens
    A (no plugin) 24 177.5 s 13,059
    B1 (first session) 6 172.6 s 20,467
    B2–B4 (coalesced) 18 103.2 s 12,131

    −42% wall-clock, −7% tokens, after a 1.7× cold-start tax on session one. Caveats stated plainly: the time gap may be partly prompt-cache throughput (warm cache_read 177k vs 131k), and dollar cost is not measurable here — this is a local model, every cost field is 0, so any earlier dollar figure is withdrawn.

    Headline retired

    "42% → 100% at 150 s" stays retired, for a different reason than memorization: BA and BB ran the same 24 instances the B chain had already fixed. That is a cache hit on repeated work, not re-entry on new work. The correctly-framed version of this test is new bugs in a known repo — which is what t11–t13 are: warm 4/6 vs cold 0/6 at 150 s (p = 0.061), warm 6/6 vs cold 4/6 at full budget. Suggestive, under-powered at n = 6.

    Proposed close for #316

    Resolved: neither memorization nor transfer explains BB, because BB measured repeated work. Follow-up experiment for the actual promise: new-bug-in-known-repo at 150 s, ~20 samples per arm, to resolve the 4/6 vs 0/6. base3 and the gate stay in the harness as the scope test — if anyone later claims cross-repo transfer, that is the instrument.

    Data: results5/HOLDOUT-ANALYSIS.md, results6/TRANSFER-ANALYSIS.md, results7/TRANSFER150-ANALYSIS.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bench

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions