Repository navigation
Contribution provenance, full schema descriptions, worker teardown, host-aware MCP and agent-doc fixes (#753, #750, #708, #757, #755, #756, #540) - #761
Merged
Conversation
… 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
…date/explain/manifest (#755) 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
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and change
Seven fixes, one commit each:
ctx.contributions(name)returns frozen{from, value}entries, andcomposeHostsetsfromitself, so an extension cannot claim another's name. The ui and mail extensions refuse a template namespace that doesn't match the extension contributing it. RIM-ADDON-001 anddocs/EXTENSIONS.mdare updated.urlcode.schema.jsonnow has a description (up from 27 to 204).docs:reference --checkfails and lists the JSON pointer of any property added without one.get_schema routewith no sub-path now returns an index so the answer stays small. The core unpacked package budget goes from 2950 to 2970 KiB.close()waits for workers still starting before terminating them.test/worker-lifecycle.test.ts, checks all of this.route.inputs, a schema path that doesn't exist; it now points atroute.parameters. A new test checks that every schema path the error rules suggest actually resolves.--host-file,get_context,inspect,validate,explainandget_manifestnow include the host's extension registrations, so they return the same results as the SDK and CLI.buildContextaccepts a host that is already loaded.URLCODE_AI_TOKENand the "shared skills and LLM tooling" claims from the docs, README, skills and agent guide, and regenerates the derived copies.check-agent-factsnow fails if those claims come back. Also corrects the note on route-parameterpattern/formatindocs/yaml/functions.mdanddocs/ROUTING.md.packages/store/test/short-link-claims.test.ts, checks that what the skills and docs say about short links matches the store's actual schema, activation checks and redirect behavior.Closes #753, closes #750, closes #757, closes #755, closes #756, closes #540. Refs #708.
Verification
All runs used Node 26.10.0.
npm ci, build, workspace builds,npm run check,npm run audit:packagesandnpm run verifyall passed (exit 0).npm run typecheck,npm run checkand the ui package tests (102/102) all pass.npm run test:packageis running from this checkout; I'll report the result here.Compatibility and security
[Feature]: ctx.contributions should say which extension contributed each value #753:
ctx.contributions()now returns{from, value}entries instead of bare values. Every in-repo receiver (ui, mail) is updated. Third-party receivers must read.value.[Bug]: V8 fatal 'jit_page_->allocations_' crash in sandbox tests on Windows Node 24 CI #708: during shutdown, a sandbox worker that is still starting may take up to its 5 s startup timeout before it is stopped. This is documented in OPERATIONS.md. Sandbox isolation is unchanged.
[Bug]: hosted AI setup still requires retired tokens and advertises removed LLM tools #756: the hosted-service wording relies on the facts stated in [Bug]: hosted AI setup still requires retired tokens and advertises removed LLM tools #756 (anonymous access, no hosted LLM). This session had no access to urlcode-ai to confirm them.
[Bug]: AI-facing guidance reports store short links as unsupported #540: a pull request that changes only
docs/*.mdorllms.txtgoes to CI's docs-only lane, which runs no tests, so the new short-link test won't run there. Skill-file changes and store changes do run it.Changes match the documented portable contract; docs/examples are updated where needed.
Relevant tests and package checks pass, or limitations are explained above.
No credentials, customer data or private project material are included.
Runtime/starter changes remain aligned where applicable.
🤖 Generated with Claude Code
https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
Generated by Claude Code