Skip to content

fix: scope refactor generation before planning fixes#1036

Merged
chubes4 merged 2 commits intomainfrom
fix/refactor-generation-time-scoping
Mar 26, 2026
Merged

fix: scope refactor generation before planning fixes#1036
chubes4 merged 2 commits intomainfrom
fix/refactor-generation-time-scoping

Conversation

@chubes4
Copy link
Member

@chubes4 chubes4 commented Mar 26, 2026

Summary

  • apply only/exclude policy during audit fix generation instead of generating unrelated fixers and decompose plans first
  • stop scoped local refactor runs from being contaminated by unrelated structural planning
  • keep apply_fix_policy() for final filtering, but make isolated repros truly isolated at generation time

Why

Running:

homeboy refactor ... --from audit --only duplicate_function --write

was still generating unrelated decompose plans before policy filtering, which produced misleading conflict logs like dominated by Decompose and sent debugging in the wrong direction.

After this change, the same isolated repro now touches only:

  • src/core/extension/grammar.rs

instead of building unrelated structural plans.

Validation

  • cargo build
  • ./target/debug/homeboy --output /tmp/homeboy-duplicate_function-repro-scoped.json refactor homeboy --path /var/lib/datamachine/workspace/homeboy-fixer-repro --from audit --only duplicate_function --force --write

@chubes4 chubes4 force-pushed the fix/refactor-generation-time-scoping branch from ea42495 to b843993 Compare March 26, 2026 03:07
@chubes4 chubes4 merged commit 816f74d into main Mar 26, 2026
1 check passed
@chubes4 chubes4 deleted the fix/refactor-generation-time-scoping branch March 26, 2026 03:08
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