Skip to content

[Bug]: schema descriptions, example YAML comments and llms-full prose still name docs pages the package doesn't ship #948

Closed

Description

@jimhoyd

Runtime revision and environment

main plus the #938 fix (branch claude/installed-strings-938). Seen by scanning npm pack --dry-run output for docs/*.md mentions in packed files other than Markdown and dist/ scripts.

Minimal reproduction

#938 made packed scripts (dist/**/*.js, recipe/example .mjs) name only docs pages the package ships, or this release's blob/v<version>/docs/... copy through docsUrl, and the package audit now enforces that for string literals. Other packed, non-Markdown files still name docs/*.md pages the package does not ship. An installed reader sees these in editor hovers or in the copied example files:

  • schemas/urlcode.schema.json descriptions: docs/ROUTING.md, docs/HTTP.md, docs/yaml/redirects.md, docs/yaml/functions.md, docs/MIDDLEWARE.md, docs/CONDITIONS.md, docs/EGRESS.md, docs/policies/{throttle,agents,security,compression,cache}.md. These descriptions also reach the generated docs/YAML-REFERENCE.md, which ships.
  • schemas/requests.schema.json descriptions: docs/READINESS.md, docs/EGRESS.md.
  • YAML comments in shipped examples: examples/cookbook/urlcode.yaml (docs/SITE.md), examples/cookbook/routes/middleware.yaml (docs/MIDDLEWARE-EXAMPLES.md), examples/monitoring/prometheus-rules.yaml (docs/MONITORING.md), examples/monitoring/prometheus-scrape.yaml (docs/OBSERVABILITY.md).
  • llms-full.txt prose, where source pages mention docs/X.md in code spans rather than as links (for example docs/STORE.md, docs/CAPACITY.md, docs/yaml/*.md). These are mentions, not links, so the Installed docs: pages linked but not installed; intervals and transfers lack their own README headings #931 link check does not see them.

Relevant output

Expected: every packed text file names a page that ships, a urlcode docs search "<query>" query, or blob/v<current version>/docs/..., and the package audit checks it. The schema is published by URL at the release tag, so a description could be rewritten at build time or carry pinned URLs; that choice is not made yet.

Unverified: whether editors show the schema description text to users in practice, and whether the llms-full.txt code-span mentions mislead agents (an agent reading a source checkout does find those paths).

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

    bugdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions