Skip to content

Simplify instruction lookup and unify authoring vocabulary - #2264

Merged
max-sixty merged 2 commits into
mainfrom
codex/discover-class-idioms
Oct 10, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/discover-class-idioms

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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-example and x-instructions; $ keys remain shared layer facts. --use ENTRY selects 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 table and lf-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.

This was written by Codex on behalf of max-sixty

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
@max-sixty
max-sixty merged commit e1629cc into main Oct 10, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex/discover-class-idioms branch October 10, 2026 19:06
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.

2 participants