Skip to content

refactor: the permuter's rewrites move to decomprepair 0.3.0 - #1138

Merged
RetroGameDeveloper merged 1 commit into
mainfrom
refactor/permuter-rewrites-to-decomprepair
Nov 13, 2026
Merged

RetroGameDeveloper merged 1 commit into
mainfrom
refactor/permuter-rewrites-to-decomprepair

Conversation

@RetroGameDeveloper

@RetroGameDeveloper RetroGameDeveloper commented Nov 13, 2026 •

Copy link
Copy Markdown

What

  • These move to decomp-repair v0.3.0: permuter.py, app/permuter_local.py, app/permuter_initialization.py, and the decomp-permuter generator permuter_gen.py with its guards (permuter_capture, permuter_dependencies, permuter_formatting).
  • Their names here are aliases of the library modules.
  • app/permute.py runs the library's permuter_gen.py by path. Its helpers sit beside it, so the python -I launch in decomp-permuter's environment is unchanged.
  • Running candidates stays in the app: app/permute.py, deep_permuter.py, permuter_worker.py, deep_sweep.py, permuter_focus.py (which uses the app's arch dispatcher).
  • Fix along the way: permuter_worker.revision() and claim_stalls._repair_rules() now read a name from the library when it lives there.
    • Before this, 9 WATCHED names that had already moved (argument_mask_repairs.py, local_flow.py, …) were watched at app paths that no longer exist, so updating them never restarted the worker.
    • The worker tests now check against a fake library folder.

Tests

  • I ran the full suite on this branch and on main. Main has 273 failures/errors on this machine (missing compilers and tools). This branch added 4 test_permuter_worker failures, fixed in the last commit, plus a few test_export/test_fork_link ones.
  • A rerun of those three files shows nothing beyond main's failures, so I read the test_export/test_fork_link ones as flaky.
  • tests/test_decomprepair.py checks every alias and that GENERATOR is the library's file.
  • ruff is clean.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The simple rewrites (permuter.py), local ordering hypotheses and the
uninitialized-read guard (app/permuter_local.py, app/permuter_initialization.py)
and the decomp-permuter generator with its guards (permuter_gen.py,
permuter_capture.py, permuter_dependencies.py, permuter_formatting.py) only
propose C, so they now live in decomp-repair, where new permuter rewrites go
(AGENTS.md). Their names here are aliases of the library modules.

app/permute.py starts the library's permuter_gen.py. The worker's revision and
claim_stalls' rule digests read a name from the library when it lives there;
before, nine watched names that had already moved were read as missing, so
updating them never restarted the worker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RetroGameDeveloper
RetroGameDeveloper force-pushed the refactor/permuter-rewrites-to-decomprepair branch from 0d8ddee to 7f9c8f6 Compare November 13, 2026 21:40
@RetroGameDeveloper
RetroGameDeveloper merged commit e9258c9 into main Nov 13, 2026
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