You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lexicon contract: check-lexicon tests for files, not for wiring #1342
38 of check-lexicon's 41 checks test that a file exists. None of them test that the plugin wires it up. Only four checks evaluate behavior: "every shipped example builds", the three intrinsics checks, plus the docs-reachability check from #1325.
Two live casualties:
helm ships src/lsp/completions.ts and src/lsp/hover.ts, both with passing tests, and exports helmCompletions/helmHover from its index — but plugin.ts sets neither completionProvider nor hoverProvider. cli/lsp/server.ts:246,282 dispatches through exactly those fields, so helm's LSP support is unreachable in an editor. Tier 1 requires the files, tier 2 requires the tests, both pass.
azure has src/codegen/docs.ts but no docs() hook on the plugin. Its docs generate only because the package script calls the CLI directly.
Into the contract
A capability counts as present when the plugin exposes it, not when a file with the right name exists on disk. Rewrite the file-existence checks as registration checks by loading the plugin and inspecting the member:
the module's default export passes isLexiconPlugin()
At least 1 lint rule in src/lint/rules/
plugin.lintRules() returns ≥ 1
At least 1 post-synth check
plugin.postSynthChecks() returns ≥ 1
Same treatment for tier 2's "uncommented mcpTools/mcpResources/skills/detectTemplate/initTemplates", which today are a regex over plugin.ts source text and would pass on a method that throws.
Done when
Checks load the plugin and assert on members
helm registers its LSP providers; azure registers docs()
Activity
docs: make the completeness checklist match the tool, and keep it tha…
docs: make the completeness checklist match the tool, and keep it tha…
feat(check-lexicon): check what a plugin registers, not what files ex…