Skip to content

Lexicon contract: eight members have no authoring docs, and lexicon.ts misattributes two docblocks #1347

Closed

Description

@lex00

Part of the lexicon contract epic (#1340).

The defect

Eight contract members have no authoring documentation at all — zero hits across docs/src/content/docs/lexicon-authoring/:

Member Adopters
auditCatalog() 10
upstreamPin 4
generateComponentPipeline() 3 (gitlab, github, forgejo)
observeDependencies() 1
ambientKinds() 1
observeAmbient() 1
describeStackStatus() 1
codeActionProvider() 0

lexicon-authoring/overview.mdx's optional-methods table lists 16 of roughly 30 optional members. The entire observation family beyond describeResources/observeResourcesDeep/listArtifacts, the whole CI-pipeline seam, and upstream pinning are absent from it.

emulator has 14 hits in user docs and zero in authoring docs — covered by #1345.

lexicon.ts loses two of its own docblocks to misplacement. The long "Read the full live property tree" comment (lines 628–648) sits directly above observeDependencies, and the "Report resources of a kind this estate manages" comment (683–705) sits directly above ambientKinds. So observeResourcesDeep and observeAmbient — both real, both implemented — have no docblock at all, and two other members carry documentation describing something else.

Into the contract

  1. Reattach the two docblocks in lexicon.ts.
  2. Complete the optional-methods table so it lists every optional member, each linking to its authoring page or to the interface.
  3. Write the missing authoring material: the observation family's three uncovered members, generateComponentPipeline, upstreamPin, auditCatalog (Lexicon contract: auditCatalog is unchecked, undocumented, and its drift guard is hardcoded #1346).
  4. A guard: every LexiconPlugin member appears in the overview table. Same idea as Lexicon contract: the completeness checklist documents seven checks that don't exist #1343's checklist guard — the contract's documentation should not be able to drift from the contract.

Done when

  • Every optional member is listed and reachable from the authoring docs
  • No member's docblock documents a different member
  • A test fails when a new member is added without documentation

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