Skip to content

Contribution provenance, full schema descriptions, worker teardown, host-aware MCP and agent-doc fixes (#753, #750, #708, #757, #755, #756, #540) - #761

Merged
jimhoyd merged 7 commits into
mainfrom
claude/sleepy-shannon-xvazgl
Sep 25, 2026
Merged

jimhoyd merged 7 commits into
mainfrom
claude/sleepy-shannon-xvazgl

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Problem and change

Seven fixes, one commit each:

Closes #753, closes #750, closes #757, closes #755, closes #756, closes #540. Refs #708.

Verification

All runs used Node 26.10.0.

Compatibility and security

🤖 Generated with Claude Code

https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP


Generated by Claude Code

… and mail enforce namespace provenance (#753)

HostContext.contributions(name) now returns readonly {from, value}[]: core
stamps from with the contributing definition's registered name (the value can
never set it), freezes each entry and the list, and never interprets the value.

- ui refuses at host composition a contributes.ui.templates entry whose name
  is not its contributor's, and any template or viewModels key outside
  <from>/; urlcode-ui --extensions applies the same rule. Contributed screens
  carry from, so a path claimed twice names both contributors.
- mail refuses a contributed namespace that differs from its contributor's
  name; createMail takes the stamped shape. The self-declared namespace
  limitation is removed from packages/mail/SECURITY.md.
- Every consumer updated (ui, mail, auth baseline and test companions,
  admin/auth contract tests); second-provider fixtures in core, ui and mail.
- Docs: EXTENSIONS.md contributions contract, RIM-ADDON-001, FRAMEWORK.md,
  ui/mail READMEs, CONTRACT, SECURITY and CHANGELOGs, llms-full.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
…e reference check on undescribed ones (#750)

Every one of the 204 properties in schemas/urlcode.schema.json now carries a
one-sentence description saying what the key does for a request or project,
verified against the router, site, policy and egress implementation and docs.
Limits stay in the schema's own rules; descriptions point at the authoritative
docs page where that helps. The two bare "Seconds" descriptions were rewritten
as sentences.

scripts/generate-yaml-reference.ts now walks every subschema keyword
(properties, patternProperties, $defs, items, additionalProperties, oneOf/
anyOf/allOf, not, ...) and fails, in both generate and --check mode, listing
the JSON pointer of each property without a description. A $ref property's
own description now wins over the referenced definition's in the table.

The 16 KiB schema-fragment bound (docs/CAPABILITIES.md) no longer fit the
fully inlined route fragment, so `urlcode schema route` / get_schema route is
now an index: each route property keeps its description, and one with nested
fields is summarized with a $comment naming its own schema path.

The core package's unpacked budget rises from 2950 to 2970 KiB for the added
schema, YAML-REFERENCE and llms-full.txt text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
…aluation (#708)

V8 can abort (Check failed: !is_null() in Builtin_CallAsyncModuleFulfilled)
when a worker is terminated while its top-level-await module evaluation is
still settling. Causation for the #708 sightings is unproven; this removes
the pattern from URLCode's own teardown paths.

- config-worker.ts has no top-level await and starts the load from a
  macrotask; loadDocument delivers the posted result only after the worker
  exits by itself, terminating only on the deadline, a worker failure or a
  worker still alive 1 s after posting. Error messages are unchanged.
- function-worker.ts posts ready/startupError after its startup evaluation
  has settled; SandboxPool.close() waits for spawns still starting (bounded
  by the existing 5 s init timeout) before terminating. Guest-deadline
  termination and sandbox isolation are unchanged.
- The auth recovery drill no longer closes stores under top-level await.
- test/worker-lifecycle.test.ts stress-loops loadDocument and pool
  start/close with spawns in flight and checks no worker leaks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
…st suggested schema paths resolve (#757)

The undeclared-input explain_error rule told agents to ask get_schema for
route.inputs, a field the schema never had; get_schema answered "Unknown
schema path segment". Route inputs are declared under `parameters`, so the
guidance now names `route.parameters` (which get_schema resolves to
#/$defs/route/properties/parameters).

Add test/explain-error-schema-paths.test.ts: it extracts every get_schema
path named in the rule guidance (backticked after "get_schema for", plus any
bare route./routes. dotted path) and resolves it with the real
getSchemaFragment, so a stale or invented path fails CI. No other rule named
a concrete schema path; no docs or llms text derived from this guidance.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
…er pattern/format note (#756)

The hosted URLCode AI MCP no longer takes a bearer token (urlcode-ai#82)
and no longer runs hosted LLM tools (urlcode-ai#84): it serves anonymous,
version-pinned reference and skill tooling for the caller's own model.
Rewrite TOOLING.md, llms.txt, AI-AUTHORING.md, README.md, STARTERS.md,
the agents guide and the skills to say so, and regenerate llms-full.txt,
the starter AGENTS.md and the Claude plugin copies.

check-agent-facts.ts now pins the hosted connection facts as one fixture
and fails when agent-visible prose names URLCODE_AI_TOKEN, describes
authentication for the hosted MCP, or claims it provides LLM tooling. A
--files option lets test/agent-facts.test.ts plant each contradiction.

docs/yaml/functions.md and docs/ROUTING.md said parameter schemas have
no pattern/format; router.ts accepts format: uuid and a guarded pattern
of at most 128 characters beside a maxLength of at most 128 on string
inputs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
…re contract (#540)

Derive the stored short-link contract from the store itself (the shortLinks
entry schema, the authoring contract, activation refusals and the redirect
handler's methods and statuses) and assert that both skill copies, llms.txt,
docs/AI-AUTHORING.md and docs/EXTENSIONS.md name
extensions.store.config.shortLinks, never report it as a gap except for needs
beyond it, write only keys the store accepts, name only the methods and
statuses the redirect mount serves, and mention every piece activation
requires.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment