Skip to content

Make path-scoped guideline extraction opt-in via config#888

Merged
pushpak1300 merged 1 commit into
infer-conventionsfrom
scoped-guidelines-opt-in
Jul 21, 2026
Merged

Make path-scoped guideline extraction opt-in via config#888
pushpak1300 merged 1 commit into
infer-conventionsfrom
scoped-guidelines-opt-in

Conversation

@pushpak1300

@pushpak1300 pushpak1300 commented Jul 21, 2026

Copy link
Copy Markdown
Member

Currently the path-scoped guideline splitting from #876 is tied to boost.rules.enabled, so it kicks in whenever project rules are on and there's no way to keep guidelines inline without also disabling the record-rule feature. It also runs by default, which changes install output for everyone.

This PR gives the splitting its own opt-in flag, separate from the record-rule feature:

\\php
'rules' => [
'enabled' => env('BOOST_RULES_ENABLED', true),
'scoped_guidelines' => env('BOOST_RULES_SCOPED_GUIDELINES', false),
],
\\

With it off (the default), @scoped blocks stay inline in the composed guidelines and nothing is written to .ai/rules/boost/. Turn it on to move path-scoped guidelines out into managed rule files. RecordRule still keys off boost.rules.enabled and is untouched.

@pushpak1300
pushpak1300 marked this pull request as ready for review July 21, 2026 11:37
@pushpak1300
pushpak1300 merged commit 6bf828b into infer-conventions Jul 21, 2026
25 checks passed
@pushpak1300
pushpak1300 deleted the scoped-guidelines-opt-in branch July 21, 2026 11:37
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