Skip to content

Lexicon contract: the completeness checklist documents seven checks that don't exist #1343

Closed

Description

@lex00

Part of the lexicon contract epic (#1340).

The defect

check-lexicon.ts runs 18/14/9 checks. lexicon-authoring/completeness-checklist.mdx documents 16/16/14.

Seven documented checks the tool never runs:

Tier Documented row In check-lexicon.ts
2 default-labels.test.ts exists absent
2 coverage.test.ts exists absent
3 import/parser.test.ts exists absent
3 import/generator.test.ts exists absent
3 import/roundtrip.test.ts exists absent
3 exportResources() implemented absent
3 Ownership marker + owned filter absent

The last two are the damaging ones: an author reading the checklist would believe live export and ownership marking are evaluated somewhere. They are not evaluated anywhere.

Two real tier-1 checks documented nowhere: the foldsAsCall opt-in check (#1044) and the sidebar-reachability check (#1312/#1325).

Into the contract

The checklist stops being a hand-maintained parallel description of the tool. Either generate the three tables from checkLexicon()'s own items, or add a drift-guard test that fails when a documented row has no matching check name and vice versa — the same reasoning as the audit catalog's drift guard.

For the two rows that describe things worth having (exportResources, ownership marker), decide per #1340's ownership item whether to implement the check or drop the claim.

Done when

  • Documented rows and executed checks agree, verified by a test rather than by review
  • foldsAsCall and sidebar-reachability documented
  • Tier counts in the doc match the tool

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions