Skip to content

[AUTOMATED] campaign(decbench): round-2 triage — 9 tracks, verify-first, adversarially refuted - #247

Merged
mahaloz merged 1 commit into
mainfrom
campaign/decbench-round2-triage
Aug 3, 2026
Merged

mahaloz merged 1 commit into
mainfrom
campaign/decbench-round2-triage

Conversation

@mahaloz

@mahaloz mahaloz commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Round 2 of the decbench improvement loop (docs/decbench-loop.md). Nine investigation tracks, one agent each, every finding re-derived on today's build before it was allowed to count, then handed to a second agent briefed to refute it.

No code changes — triage records only.

Outcome

8 live candidates, 1 confirmed already-fixed.

track verdict slug phase impact breadth
CONCAT/SUBPIECE soup feature-candidate subright P3 invalid C 5,919 sites / 2,394 fns (3.1%)
(code *) casts feature-candidate funcptralign P3 readability + lost type 4,027 sites / 2,496 fns / 9 ARM projects
$$undef leak feature-candidate undefname-leak P6 wrong code 283 fns, 221 with uninitialised reads
paramcopyhoist (re-derive) feature-candidate paramcopyhoist P6 structure 4.2% of fns; GED 29 → 17 on the witness
rodata phantom stores feature-candidate returncopysplit P3 wrong code 112 statements / 3 fns
PE import overrun feature-candidate peimportcall P1/P2 wrong code 927 IAT call sites, both PE projects
ternary re-roll feature-candidate itecondlist P8 structure ceil(N/2) of N diamonds
uncatalogued options feature-candidate catalog-upstream-options P0 control surface 38 of 121 options invisible
raw registers / PTRSUB already-fixed — P9 — 267 corpus instances closed by #226

The refuters earned their keep again

They overturned the filed diagnosis on three of eight while leaving the symptom standing, and two rebuilt kuna with the proposed fix to prove the mechanism was not a no-op. Round 1's filed-mechanism record is now 2-for-5.

Overturned: returncopysplit (the proposed RuleSplitCopy seam is scheduled after fullloop, so Heritage::refine_write provably cannot produce the write-backs), peimportcall (the named P2 seam cannot see the shape — at that point the CALLIND target is a free unique and raw flow IR carries no def-use links at all), itecondlist (right defect, wrong case and wrong reach).

Two findings are much larger than the cases that surfaced them

  • RuleSubRight::apply_op is a stub. Every nonzero-offset SUBPIECE prints as a raw p-code operator (SUB81(a1,7)) instead of upstream's (char)(a1 >> 0x38). 5,919 occurrences in 2,394 functions vs ghidra's 18 in 13 — a 329x ratio, and SUBnn is an undeclared identifier, so those panes are not valid C. The refuter transcribed upstream ruleaction.cc:7291-7340 into the stub and rebuilt to confirm.
  • The funcptr_align seam is stubbed. Every ARM/Thumb indirect call emits an invented ISA-mode bit-clear ((*(code *)(ptr & 0xfffffffe))()) and loses the function-pointer type on the loaded field. Not ARM-only: every AARCH64 (align=4, so it strips an address-alignment mask), MIPS, Loongarch and 8051 cspec carrying <funcptr> is affected.

Verify-first mattered

The mined pools were built from kuna output that is stale — O2/O2-noinline by a day, O0 by ~100 commits (older than the 2026-07-27 date the docs cite). One track resolved to already-fixed purely because today's build closed it. A kuna-only O0 refresh is running separately.

🤖 Generated with Claude Code

https://claude.ai/code/session_017dPFaKJanfLSf7mWGhkzkL

…st, adversarially refuted

Round 2 of the decbench improvement loop. Nine investigation tracks, one agent
each, every finding re-derived on today's build before it was allowed to count,
then handed to a second agent briefed to refute it.

Tracks: the three un-shipped round-1 items (rodata-phantom-store, paramcopyhoist,
the $$undef placeholder leak), three NOVEL wart clusters ((code *) casts,
CONCAT/SUBPIECE soup, raw registers), fresh angr- and ida-pool cases, and an
audit of options registered but absent from `kuna catalog`.

Outcome: 8 live candidates, 1 confirmed already-fixed (the PTRSUB spacebase
render, PR #226 — all 267 corpus instances now print a stack location).

The refuters earned their keep again: they overturned the filed diagnosis on
three of eight while leaving the symptom standing, and two of them rebuilt kuna
with the proposed fix to prove the mechanism was not a no-op. Round 1's
filed-mechanism record is now 2-for-5; treat every "root cause" line in these
records as a starting point to disprove, not a conclusion.

Two findings are much larger than the cases that surfaced them:
  - RuleSubRight::apply_op is a stub, so every nonzero-offset SUBPIECE prints as
    a raw `SUBnn` p-code operator: 5,919 occurrences in 2,394 functions (3.1%)
    against ghidra's 18 in 13 (0.017%) — a 329x ratio, and `SUBnn` is an
    undeclared identifier, so those panes are not C.
  - The funcptr_align seam is stubbed, so every ARM/Thumb indirect call emits an
    invented ISA-mode bit-clear and loses the function-pointer type: 4,027 sites
    in 2,496 functions across 9 ARM projects, plus every AARCH64, MIPS,
    Loongarch and 8051 cspec that carries <funcptr>.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_017dPFaKJanfLSf7mWGhkzkL
@mahaloz
mahaloz merged commit f9ff827 into main Aug 3, 2026
9 checks passed
@mahaloz
mahaloz deleted the campaign/decbench-round2-triage branch August 3, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant