Repository navigation
fix(cli): emit a flat kilo build's rules through one placement owner - #1367
Merged
Merged
Conversation
…l places them A flat kilo build (translate --to kilo --as flat) and an install from its built tree dropped a plugin's rules and warned they were out of scope, while a local install delivered them. The tool's build contract now declares a rules artifact. Rules land at the top of the rules folder named by plugin and group, a path-scoped rule keeps its scope stated in its body, and the config lists each plugin's rules glob in instructions. The build and the install share one placement and one scope rule, so both write the same bytes. The built-tree install owns those paths and lists the same glob. The out-of-scope warning no longer names rules for a tool whose build carries them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…install Both routes read the layout's own predicate to state a rule's scope and strip the section prefix through one helper. The generated compatibility column is labelled as what a build carries, since an install delivers rules to tools a build leaves without. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… a profile import Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 task done
A rule's scope statement is decided once in rule-scope, called by the build and the install route. The installation side lists a plugin's placed rules through one helper. The compatibility column label is left to the table's owner. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What & why
A flat kilo build (
translate --to kilo --as flat) and an install from its built tree dropped a plugin's rules and warned they were out of scope, while a local install delivered them. Supersedes #1069, crediting @BlandineRdl.🛠️ How it works
instructions.🧪 How to verify
cd cli && pnpm exec lefthook run pre-push: green. Itscli-testjob was skipped by the gate witness because this exact tree had already passed it.pnpm exec lefthook run pre-commit --all-files: green on this HEAD (pnpm testscripts suite: 2665 pass, 0 fail).cd cli && pnpm build: bundle 880.9 KB, within the 897 KB budget. Budget not raised.docs/COMPATIBILITY.mdand the 'Rules in a build' column label are not touched here. The PR that owns that file decides whether the label stays; whichever lands second regenerates..git/hooks. It was green on the third run at this HEAD. Not root-caused.🔗 Linked issue
Supersedes #1069, crediting @BlandineRdl
✅ I certify
🤖 Generated with Claude Code