Skip to content

[Request]: Complete extension syntax references and schema descriptions for agents #822

Closed

Description

@jimhoyd

Problem or use case

Audit of main ef793e4 (manifest 0.6.5) found core's field legend is much more complete than extension field guidance.

  • scripts/generate-yaml-reference.ts consumes only schemas/urlcode.schema.json. docs/YAML-REFERENCE.md stops at extensions.*.config; it does not enumerate any extension config or policy fields.
  • All ten first-party extensions have configuration schemas in urlcode.json. A recursive count of properties entries in their schema/policySchema yields 299 occurrences, including repeated hook/branch shapes; none has a property-level description. This is not a count of distinct capabilities. Core now enforces such descriptions ([Request]: describe every field in urlcode.schema.json #750); extensions are outside that gate.
  • scripts/build-llms-full.ts bundles core/composition guides, not package READMEs or docs/STORE.md. It is not a complete all-extension syntax reference.
  • Agent metadata chiefly points at package READMEs. These are not exhaustive syntax legends: forms' README mentions onSubmit but has no config.hooks declaration or module example; store's README links to the separate full STORE guide, while shortLinks syntax is absent from both its README and package llms.txt. Store shortLinks is documented elsewhere, so it is not an undocumented runtime capability.

Proposed behavior and alternatives

Extend the existing documentation pipeline rather than hand-maintaining a second schema:

  • Require useful property descriptions in extension-owned configuration/policy schemas, regenerate descriptors, and generate navigable per-extension field references from those descriptors.
  • Link the references from existing agent metadata and the root agent index. Cover config, route policies, required/optional peers, hook contracts and explicit semantic limits. Preserve the distinction between schema-valid and activatable behavior.
  • Add a concise capability-to-reference overview, including store shortLinks and forms hook wiring, with validated examples or direct links to existing examples. Add a concrete forms onSubmit declaration/module example to its existing guide.
  • Clearly label llms-full.txt's coverage and provide bounded retrieval paths to omitted extension material; do not require every agent to load the whole framework corpus.
  • Coverage tests should account for every first-party extension and declared schema property, verify shipped reference paths and generated freshness, and exercise representative core-plus-extension discovery. Passing link checks alone is not completeness evidence.
  • Do not flatten arbitrary third-party extension syntax into the core runtime schema or imply release catalog presence means installation.

Related: #750 (core descriptions), #759 (bounded fallback), #721 (catalog), #806 (hosted-assisted skill). The objective is extension-owned syntax coverage, not another hosted tool or a new extension.

Activity

  1. added
    enhancement
    documentation
    ai-first
    extension
    in-progress
    on Sep 27, 2026
  2. jimhoyd commented on Sep 27, 2026

    @jimhoyd
    CollaboratorAuthor

    Test10 provides a concrete retrieval case for #822. Auth-profile queried docs search "auth extension JSON API register login session cookie"; its first installed-auth README excerpt covered lost second-factor recovery / anonymous deployment checks, then the descriptor schema. Admin-crud's analogous query likewise led to advanced recovery material. Agents then wrote their own auth/session handling.
    The authoritative packages/auth/docs/JSON-API.md already exists and the headless-auth-profile recipe links it, but current auth agent.references lists only README.md. Add the wire-contract page to auth-owned agent references and verify it ships/resolves through installed bounded docs search. A retrieval regression should find register/login request-response and CSRF guidance for these queries. Do not create another copy of the wire contract or repeat the agent's incorrect claim that none exists.

  3. jimhoyd commented on Sep 28, 2026

    @jimhoyd
    CollaboratorAuthor

    Additional discovery evidence from the novel PeerCamera coordination pilot, pinned to the published 0.6.5 package (not a claim about current main or a request to reopen completed schema-reference work):

    • Generic extension lifecycle/identity material is present in llms-full.txt, including the authoritative EXTENSIONS.md content and the fact that request.principal does not reach function guests. It is not absent documentation.
    • The installed package has no standalone docs/EXTENSIONS.md; an agent following that path must find the bundled material or other references.
    • Reviewer probes of the installed bounded docs search with the project supplied found auth/mail README excerpts for defineExtension, and no results for principalMounts. The tool explicitly reports that llms-full.txt and pages outside its core list are omitted. Its no-match caveat is correct.
    • All three original URLCode agents spent most of their initial allowance before their first application source edit. One read the bundled extension material; the others worked through type declarations/implementation. None tried bounded docs search, so this is not evidence that a failed search caused the time loss.

    Please consider a bounded, authoritative retrieval path for the generic authenticated-custom-extension contract as part of follow-up discovery work. This is separate from exhaustive per-extension configuration schemas. The related custom-handler integration proposal is #832. The experiment does not establish the performance gain of either change. Test setup confounds are separately tracked in jimhoyd-com/urlcode-benchmarks#105 and #106; no raw logs or credentials are attached.

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

    ai-firstdocumentationenhancementextensionin-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions