Skip to content

Revert returndup to default-off — decbench re-run showed it regressed aggregate GED (~976 fewer perfect) - #136

Merged
mahaloz merged 1 commit into
mainfrom
revert/returndup-default
Jul 5, 2026
Merged

mahaloz merged 1 commit into
mainfrom
revert/returndup-default

Conversation

@mahaloz

@mahaloz mahaloz commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

The decbench re-run on the newest kuna measured returndup default-on regressing the aggregate GED perfect-structure count by ~976 — it fired 21,768× across 550 binaries, and early-return recovery diverges from the source's merged short-circuit form on the majority (where the source did not use early returns). That's the exact runtime-choice risk we flagged; the benchmark confirmed it costs more than it earns on aggregate.

Revert (back to the #124 opt-in state — byte-identical to upstream)

  • duplicate_shared_returns default → false; stages.toml default → off, use_when reframed as a per-function runtime choice; stage_catalog.json regenerated.
  • Removed the now-redundant per-test opt-outs returndup: default-ON (DIV-18) — recover O0 early-return shapes by default #127 added: 16 datatests + 8 stage tests (option returndup off) and 4 golden byte-tests (the arch.duplicate_shared_returns = false render pins) — default-off already matches upstream, so the corpus stays byte-identical without them.
  • DIV-18 marked REVERTED (rationale preserved). The ghangr-returndup.xml two-pass feature test is unchanged. returndup stays fully agent-flippable (--option returndup on) for functions where the early-return form matches the source.

Gates

  • make test 675/675 PARITY OK (byte-identical to upstream), make test-stages 254/254 PARITY OK, make rust-test green.

🤖 Generated with Claude Code

https://claude.ai/code/session_018DV2MXxQAAWK7xLPBmsq9J

…howed it regressed aggregate GED

The decbench re-run on the newest kuna measured returndup default-on REGRESSING the
aggregate GED perfect-structure count by ~976 (it fired 21768x across 550 binaries;
early-return recovery diverges from the source's merged short-circuit form on the
majority, where the source did not use early returns — the exact runtime-choice risk).

Revert to the #124 opt-in state (default-off, byte-identical to upstream):
- architecture.rs: duplicate_shared_returns default false; stages.toml default off +
  use_when reframed as a per-function RUNTIME CHOICE; stage_catalog.json regenerated.
- Removed the now-redundant per-test opt-outs: 16 datatests + 8 stage tests
  (<com>option returndup off</com>) and 4 golden Rust byte-tests (the arch.
  duplicate_shared_returns=false render pins) — default-off already matches upstream, so the
  corpus stays byte-identical without them.
- DIV-18 marked REVERTED (rationale preserved). ghangr-returndup.xml (the two-pass feature
  test) unchanged. returndup stays agent-flippable (--option returndup on).

Gates: make test 675/675 PARITY OK, make test-stages 254/254 PARITY OK.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018DV2MXxQAAWK7xLPBmsq9J
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