Repository navigation
Simplify instruction lookup and unify authoring vocabulary - #2264
Merged
Merged
Conversation
Return composed instructions as an audience-to-text JSON map and select elements or idioms through --use. Ordinary registry entries now share x-example and x-instructions; shared dollar facts retain member composition. Cut every production consumer over to exact element-name classification. Parse registry examples as fragments through SourceDocument so table cells and select options participate in dependencies and validation. Update authoring references and the CLI help recording for the new contract.
…idioms # Conflicts: # skills/leaf/scripts/leaf/validation/instances.py
leaf-agent
approved these changes
Oct 10, 2026
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.
Instruction discovery had separate element and idiom shapes, while instruction reading switched between listing audiences and returning one audience's text. Unify the authoring vocabulary under ordinary registry keys and return one audience-to-text JSON map from
leaf page instructions.Elements and CSS selector idioms now share
x-exampleandx-instructions;$keys remain shared layer facts.--use ENTRYselects either kind, with example dependencies and data contracts included recursively. Agents can discover, select, and read through jq without a second audience API or generated command pointers. The CLI, packages, page overlays, browser consumers, delivery, corpus generation, and authoring references cut over together.Exact Leaf element names distinguish widget schemas from selectors such as
tableandlf-options.selected. Registry examples use the canonical fragment reading, preserving table cells and select options for dependency lookup and validation.Validation: focused Python registry/instruction/browser checks, all 308 runtime tests after integration with main, Worker preload tests, 85 browser build tests, and pre-commit. The base/candidate corpus startup comparison loaded the same number of JavaScript resources, with about 0.5 KB more JavaScript before presentation. Independent review findings were repaired and rechecked.