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
check-lexicon: gate on unaccounted spec kinds, don't just print them #1330
The fountain lexicon computes unaccountedKinds — upstream request schemas that are neither modeled nor in EXCLUDED_KINDS — and formatSummary prints "model them or add to EXCLUDED_KINDS". Nothing fails. The API-key gap (#1324) has presumably been printing that for weeks.
#1325 just made the same call for docs: a doc-page count that never opened a page got replaced by a reachability check that can fail. Same fix here.
Do: add a check-lexicon check that a lexicon reporting unaccounted kinds fails, with the usual issue-linked allowlist in scripts/check-lexicons.ts for known gaps.
Note: only fountain tracks this today (lexicons/fountain/src/coverage.ts); the other eleven analyze*Coverage functions have their own shapes. So either lift unaccountedKinds into a shared contract first, or scope the check to lexicons that report it and let the rest opt in.
Scope confirmed (build, modified — the filed premise is mostly stale; a contract-level gap remains).
Stale:#1324 closed via UNSPECIFIED_ENDPOINTS as decision-on-record; fountain's coverage.test.ts asserts unaccountedKinds == [] in CI, so "nothing fails" is no longer true there. Fountain is also the only lexicon with the concept — a gate is green day one, no baseline needed.
What remains: the gate is a lexicon-local test (convention), not a check-lexicon contract — the same class of gap #1342 closed for LSP providers. V1: optional coverageReport?(): Promise<{ unaccountedKinds?: string[] }> on LexiconPlugin; one tier-1 check-lexicon check that fails when the member exists and the list is non-empty, passes vacuously otherwise (the hasSite/hasPages conditional pattern); fountain implements it offline from the committed spec + surface snapshots (never fetchSchemas() — check-lexicon runs per-PR).
Acceptance: check red when a kind is neither modeled nor in EXCLUDED_KINDS, green today across all lexicons; fountain impl does no network I/O; KNOWN_FAILURES remains the escape hatch.
Activity
lex00 commentedon Aug 24, 2026
Scope confirmed (build, modified — the filed premise is mostly stale; a contract-level gap remains).
Stale: #1324 closed via
UNSPECIFIED_ENDPOINTSas decision-on-record; fountain'scoverage.test.tsassertsunaccountedKinds == []in CI, so "nothing fails" is no longer true there. Fountain is also the only lexicon with the concept — a gate is green day one, no baseline needed.What remains: the gate is a lexicon-local test (convention), not a check-lexicon contract — the same class of gap #1342 closed for LSP providers. V1: optional
coverageReport?(): Promise<{ unaccountedKinds?: string[] }>onLexiconPlugin; one tier-1 check-lexicon check that fails when the member exists and the list is non-empty, passes vacuously otherwise (thehasSite/hasPagesconditional pattern); fountain implements it offline from the committed spec + surface snapshots (neverfetchSchemas()— check-lexicon runs per-PR).Acceptance: check red when a kind is neither modeled nor in EXCLUDED_KINDS, green today across all lexicons; fountain impl does no network I/O; KNOWN_FAILURES remains the escape hatch.
Plan: one PR (core interface + check + fountain impl + tests).
feat(check-lexicon): gate on unaccounted spec kinds via a coverageRep…