Skip to content

check-lexicon: gate on unaccounted spec kinds, don't just print them #1330

Closed

Description

@lex00

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.

Activity

  1. added
    enhancement
    needs-review
    on Aug 2, 2026
  2. added
    area:ci
    on Aug 23, 2026
  3. lex00 commented on Aug 24, 2026

    @lex00
    ContributorAuthor

    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.

    Plan: one PR (core interface + check + fountain impl + tests).

  4. removed
    needs-review
    on Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cienhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions