Repository navigation
[AUTOMATED] campaign(decbench): round-2 outcomes, and the traps that cost this round - #256
Merged
Merged
Conversation
mahaloz
force-pushed
the
campaign/decbench-round2-outcomes
branch
from
August 3, 2026 14:30
67ada12 to
84c3368
Compare
…cost this round Docs-only. No .rs, no phases.toml, no baselines, no tests. Rebased onto origin/main 4c2b59b (after #254, #255 and #257). Round 2 shipped, and the benchmark signal was refreshed on 2026-08-03 (all three opt levels re-decompiled from pinned kuna 9623dc2). Several documented claims were provably stale and several hard-won operational facts existed only in agent transcripts. Both fixed, every number re-verified against the live tree. docs/decbench-loop.md - Standings replaced and widened: GED ida 36.06 / kuna 35.93 / angr 34.20, overall ida 38.01 / kuna 37.91 / angr 36.98, byte_match kuna 3.41 (first). Stated plainly that kuna's column is current while the rivals' are from their own last runs, so the tree is a MINING INSTRUMENT, not a leaderboard. - Recall pool: 6,540 (7.3%) -> 1,420 vs angr / 1,552 vs ida, 0 whole-binary failures, now almost entirely embedded ARM Cortex-M. All three named causes corrected: "u-boot 100% / freertos 100%" was a decbench .text-filter artifact and never a kuna discovery failure (angr and ida score nothing there); "betaflight 22%" is 6.0%; the coreutils `main` empty-body/panic is fixed (comm/join/timeout/uniq all produce full bodies today). - The `--mode auto` degrades-to-fast warning is moot for this corpus: the largest stripped binary is O0 bash at 1,513,904 B (1.44 MiB), so all 803 binaries resolve 768 aggressive / 35 reliable / 0 fast. The aggressive-vs- reliable distinction is kept and sharpened; the stale 21-of-24 default-off count is now 20 of 25, with the five exclusions named. - Two operational traps recorded for the first time: (a) byte_match RECOMPILES with an arch-matched toolchain and this box has neither arm-none-eabi-gcc nor MinGW, so deleting kuna's (never auto-invalidated) checkpoints destroys kuna's ARM/PE scores while every rival keeps theirs. The coverage guard caught 34 slices; O2 and O2-noinline are still damaged from an earlier DECBENCH_ALLOW_DROPS=1 run with no surviving copy. Rule: never pass DECBENCH_ALLOW_DROPS=1 without reading every [guard] line. (b) The pools store a PE address as an RVA where kuna uses the VA, so scripts.decbench.rescore fails on every PE case (119 across the three pools). Recorded with a fix direction. - Pointed at the durable refresh recipe at ~/decbench-campaign-state/ and its two pinning rules, plus the non-obvious one: the GED baseline must drop kuna's published scores for EVERY re-decompiled opt level, not just the one being refreshed (an O0-only baseline died with "cannot reproduce published fallback 58.0" on an O2 slice). Method corrections (decbench-loop.md + improvement-pipeline.md standing rules) - "Not a no-op" is not "correct". On paramcopyhoist a refuter proved the proposed hook reached the printer and it was still the wrong site: it deleted an assignment, lost an early return, and made another function return the wrong parameter. The refute brief now carries an explicit "would this produce WRONG output?" axis. - Diff every changed function, not the witness. Those designs all passed on their witness. Round 2's PRs swept 3,031 / 12,241 / 14,720 / 15,386 functions; two caught real problems that way. - The tally, honestly: round 1's filed mechanisms were 2-for-5, round 2's refuters overturned the filed diagnosis on 3 of 8, and the symptom stood in every case. Shared counters in a busy queue (decbench-loop.md + improvement-pipeline.md) - Round 2 ran up to four output-changing PRs over the same hard-coded counters and produced three failure shapes, only one of which announced itself: a conflict (#257's DIV number raced 55 -> 56 -> 57 -> 58); a SILENT identical-edit auto-merge (catalog_bytecompat.rs kept 86 because both sides made the same 85 -> 86 edit); and a SILENT keep-both auto-merge (a stale baseline-stages.json data_footer, and five rounds of keep-both duplicating a row in tests/stages/README.md). - Rules written down: derive every shared counter from a fresh capture and a green run on the rebased tree, never by arithmetic; diff every keep-both resolution against main asserting you removed nothing and added nothing twice; DIV numbers are claimed on merge; re-run the gates AFTER the rebase. - New standing requirement 9: re-measure after every rebase, never carry a number forward. #257's placeholder count moved 2,143 -> 2,142 because #254 landed underneath it, caught only by re-measuring. docs/decbench/features.md - Round-1 menu replaced by round-2 outcomes, keeping the file's shape and its rank-by-correctness thesis. NINE merged PRs: #248 cortexmvectors, #249 funcptralign, #250 paramcopyhoist, #251 subright, #252 returncopysplit, #253 itecondlist, #254 peimportcall (DIV-57), #255 ptrentry and #257 undefname (DIV-58) -- seven of the eight round-2 candidates plus steps 1 and 2 of the ARM entry-recall sequence (#239). Only three of the nine move GED on a mined case; four are correctness fixes the metric cannot see and two are recall. - The dead-pass finding is now three DISTINCT shapes to grep for, not one anecdote: stub body (RuleSubRight), live body with a permanently-zero input (RuleFuncPtrEncoding's hard-coded funcptr_align() = 0), and live body with a gate bit that has no writer anywhere (ActionDeindirect / externref). The third had a second gap in the same chain -- GlobalEntry::func_no_return never copied the callee's no-return flag into the snapshot -- so one dead gate can hide another. - The ARM sequence is cross-referenced to the live table on PR #239 rather than duplicated here, so it cannot go stale in-repo. - Carried forward as the one still-open candidate: catalog-upstream-options (38 upstream-inherited ArchOptions invisible to `kuna catalog`). Re-mined pool tables regenerated against the refreshed tree (snapshot 2026-08-03): backlog.md, backlog-ida.md, novel.md, triage-queue*.json. Gates on the rebased base: make check-spec OK (lenient and strict); make test 675/675 PARITY OK; make test-stages 394/394 PARITY OK. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_017dPFaKJanfLSf7mWGhkzkL
mahaloz
force-pushed
the
campaign/decbench-round2-outcomes
branch
from
August 3, 2026 14:32
84c3368 to
fb3bffc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs-only. No
.rs, nophases.toml, nodocs/baseline*.json, notests/.Rebased onto
origin/main4c2b59bb(after #254, #255 and #257).Round 2 of the decbench campaign shipped, and the benchmark signal was refreshed on
2026-08-03 (all three optimisation levels re-decompiled from a pinned kuna 9623dc2 and
re-scored). Several documented claims were provably stale, and several hard-won operational
facts existed only in agent transcripts. Every number below was re-verified against the
live tree, not copied from a brief.
docs/decbench-loop.md— the stale claimsida 36.67 · kuna 35.41 · angr 33.93 · ghidra 25.57 · binja 20.76(GED only)--base angr(966 base-perfect) / 1,552 vs--base ida, 0 whole-binary failures--mode autofastat ≥ 2 MiBbashat 1,513,904 B (1.44 MiB) → 768 aggressive / 35 reliable / 0 fast across all 803ptrentry)Source of truth:
~/github/decbench/results/full_run/scoreboard.toml(generated_at 2026-08-03T09:55:11), the regenerateddocs/decbench/cases-missing*.json, and a directos.path.getsizesweep over the 803evaluated/*.tomlbinaries againstmodes.rs::AUTO_RELIABLE_MIN_BYTES/AUTO_FAST_MIN_BYTES.The standings table now says in the file itself that kuna's column is current while every
rival's is from its own last run, so the tree is a mining instrument, not a publishable
cross-tool leaderboard.
The three named recall causes were all wrong or fixed
appears in either pool — because angr and ida score nothing at all there. decbench's
raw backends keep only functions inside
.text; u-boot's.textis 936 bytes andfreertos is built
-ffunction-sections. Past the filter kuna covers 261/265 freertos and1,833/2,968 u-boot (
recall-measurement.md).rival scored.
mainempty-body/panic is fixed.comm/join/timeout/uniqmainproduce full bodies (97 / 230 / 134 / 176 lines) at their DWARF addresses on today's
build,
decompile-alloncommexits 0, and zero coreutils rows remain in either pool.Two operational traps that cost this round real time
(a) byte_match recompiles, and this box has no cross toolchains.
reeval_bytematch.pyreuses any checkpoint that exists (never auto-invalidated), sorefreshing a decompiler's byte_match means deleting its checkpoints first. But byte_match
recompiles the decompiled C with an architecture-matched toolchain
(
decbench/metrics/byte_match.py:267— PE → MinGW, ARM →arm-none-eabi, x86 → gcc), andthis machine has only
gcc. For ARM/PE the metric returns{"skipped": True}, there-scorer drops it, and an empty checkpoint is written — so deleting kuna's checkpoints
destroys kuna's ARM/PE byte_match while every rival keeps theirs.
finalize_results.py'scoverage guard caught it (34 slices; betaflight 2,848 → 0, crazyflie 2,128 → 0) and it was
repaired from backup. kuna's ARM/PE byte_match at O2 and O2-noinline is still missing —
an earlier session hit the same trap and published with
DECBENCH_ALLOW_DROPS=1, and nolocal copy survives. The rule is now written down plainly: never pass
DECBENCH_ALLOW_DROPS=1without reading every[guard]line.(b)
rescorecannot touch a PE case. The pools store a PE address as an RVA wherekuna uses the VA, and
rescore.pypassescase["address_hex"]straight to--addr. Demonstrated:Silently blocks 119 PE cases across the three pools. Recorded as a known limitation with
a fix direction.
Also documented: the durable refresh recipe now living at
~/decbench-campaign-state/, itstwo pinning rules (decbench must not move off its pinned commit; the refresh must run a
snapshotted kuna binary + specs), and the non-obvious one — the GED baseline must drop
kuna's published scores for EVERY re-decompiled opt level, not just the one being
refreshed, because the audit replays the published evaluator against the on-disk artifact
(an O0-only baseline died with
cannot reproduce published fallback 58.0on an O2 slice).Two METHOD corrections (
decbench-loop.md+improvement-pipeline.md)The most valuable output of the round, stated where a future agent will hit them:
paramcopyhoista refuter proved theproposed hook reached the printer — and it was still the wrong site: implementing it
silently deleted an assignment (
ext2fs_read_inode2lostv10 = a3;, leaving an emptyifbody and amemcpyreading a never-assigned value), lost an early return, and madeanother function return the wrong parameter. The refute brief now carries an explicit
"would this produce WRONG output?" axis.
witness. Round 2's PRs swept 3,031 / 12,241 / 14,720 / 15,386 functions; two caught
real problems that way. Now a standing requirement for any pass that moves, deletes or
re-anchors statements.
The tally is recorded honestly: round 1's filed mechanisms were 2-for-5; round 2's
refuters overturned the filed diagnosis on 3 of 8 — and the symptom stood in every case.
A symptom is evidence; a diagnosis is a hypothesis.
docs/decbench/features.md— round-2 outcomesSame shape, same rank-by-correctness thesis, round-1 menu replaced by what shipped:
cortexmvectorslisting off+393 (94.7%, 0 lost); betaflight 1 → 57funcptralign(code *)255 → 46,(code **)0 → 205; x86-64/i386 byte-identical; −12.99% timeparamcopyhoistsubrightSUBnn1,912 → 95 (95% removed), functions 733 → 20; 0/675returncopysplititecondlistshell_initializepeimportcall(DIV-57, default-ON,tier = transformdespite being P1)Uninstall152 → 19 linesptrentry(default-OFF)undefname(DIV-58)$$undefoccurrences 2,142 → 0 over 116 binaries / 90,808 functions; blast radius 162 changed, 0 unexplainedPlus the structural finding that outlives them: three separate ported passes were dead —
RuleSubRight(stub body),RuleFuncPtrEncoding(live body, stubbed input) andActionDeindirect(live body, a gate bit set nowhere in the workspace). Each was invisibleto every existing test and each had large breadth, so "grep for registered-but-unreachable
passes" is named as a mining route that needs no benchmark at all.
Carried forward as the one still-open candidate:
catalog-upstream-options(38upstream-inherited ArchOptions absent from
kuna catalog— invisible to any agent sweepingoptions by symptom, which matters because the LLM control surface is the product).
The dead-pass finding is now three distinct shapes to grep for, not one anecdote —
stub body (
RuleSubRight), live body with a permanently-zero input(
RuleFuncPtrEncoding's hard-codedfuncptr_align() = 0), and live body with a gate bitthat has no writer anywhere (
ActionDeindirect/varnode_flags::externref). The thirdhad a second gap in the same chain:
GlobalEntry::func_no_returnnever copied thecallee's no-return flag into the snapshot, so even a named import would have kept no flow
effect. One dead gate can hide another.
New: shared counters in a busy queue
Round 2 ran up to four output-changing PRs concurrently over the same hard-coded counters,
and produced three failure shapes, only one of which announced itself:
catalog_bytecompat.rskept86because both sides made the identical85 → 86edit — clean merge, wrong number, caught only by running the suitedocs/baseline-stages.jsonmerge left a staledata_footer(375vs a real381); and five rounds of keep-both duplicated a row intests/stages/README.mdRules written down: derive every shared counter from a fresh capture and a green run on
the rebased tree, never by arithmetic; diff every keep-both resolution against
mainasserting you removed nothing and added nothing twice; DIV numbers are claimed on merge;
and re-run the gates after the rebase, because none of this is visible in the conflict.
Mirrored into
docs/improvement-pipeline.md§3.4 and as standing requirement 9(re-measure after every rebase, never carry a number forward).
Re-mined pool tables
Regenerated in this branch so the committed tables match the tree exactly:
backlog.md,backlog-ida.md,novel.mdandtriage-queue*.jsonare included (snapshot2026-08-03); the
cases*.json/novel.jsonpools stay gitignored.Gates
Run on the rebased base
4c2b59bb.make rust-testis unaffected — no Rust file,phases.tomlrow, catalog count, baseline or test is touched by this branch(
git diff --name-only origin/mainis nine files, all underdocs/).Note on the round's own moving target
#257merged while this rebase was in progress, so its entry went from "open, awaitingmerge" to a merged row and the item counts moved (eight → nine merged PRs) inside a
single editing session. That is the same hazard this PR documents, applied to the PR that
documents it: re-verify at the moment of writing, not at the moment of briefing.
🤖 Generated with Claude Code
https://claude.ai/code/session_017dPFaKJanfLSf7mWGhkzkL