Repository navigation
Declarative JSON error format, extension field references, Windows extension suites on PRs, V8 crash reproducers (#821, #822, #823, #824, #708) - #827
Merged
Conversation
…sts (#824) Package suites ran on Windows only in release coverage, so a Windows-only package test failure (#819) passed PR CI and first failed at publish (#820). A pull request whose diff changes extension code now adds Windows Node 24 entries to the existing workspace-verify matrix for those extensions and their reverse dependencies, selected by ci-plan's dependency map from the extension paths alone. Core-only changes add none; an empty or unclassifiable diff fails closed to every extension. Main pushes and exact-commit/release runs are unchanged. Because the entries live in workspace-verify, verify-complete's existing requirement covers them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ker abort (#708) Owner decision: reproduce and report upstream, no crash-masking retry. - scripts/repro/wasm-worker-churn.mjs: standalone (no URLCode code) worker_threads churn that compiles/runs WebAssembly (synthetic hot loops, the QuickJS .wasm, quickjs-emscripten) under top-level await and terminates workers while loading, compiling or tiering up, then exits with workers live. - scripts/repro/function-pool-churn.ts: drives the real SandboxPool through the deadline-terminate/respawn/close cycle of test/sandbox.test.ts in a loop. - scripts/repro/run-capture.mjs: runs a command N times, records exit codes and the V8 fatal block, writes logs and a step summary; never retries. - .github/workflows/v8-jit-repro.yml: workflow_dispatch only, read-only, runs the reproducers (and test/sandbox.test.ts under node --test) on chosen OS x Node legs and uploads logs. Not called by ci.yml or publish.yml. - test/workflows.test.ts: admit the fourth workflow and pin it as manual-only. Sandbox isolation and normal npm test/CI runs are unchanged; scripts/ is not in the published package. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Route `errors: {format: text|json}` and a site-wide `site.errors:
{format: json, paths: [...]}` scope select how runtime-generated errors are
written. `text` stays the default, byte for byte. `json` is the fixed
envelope {"error":{"code","message"}} (application/json; charset=utf-8)
with a closed status-keyed code set; the body-schema 422 carries its bounded
issues inside it. 405 keeps Allow, HEAD keeps no body, security headers are
unchanged, and handler, policy, plugin and extension responses are never
rewritten. A route's own setting wins; otherwise the decoded (or raw) path
decides the site scope, so unmatched paths get a JSON 404 and skip
site.notFound. Hosts write their own pre-handle errors (body-limit 413) via
Runtime.errorFormat.
Self-hosted, AWS and Vercel are native; the Cloudflare artifact carries the
formats (compiled); static hosting refuses the `errors` capability before
building. The spa-shell recipe now uses site.errors for its /api JSON errors
and keeps the plugin for the shell only. Adds RIM-ERRORS-001 and its focused
fixture test/error-format.test.ts.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…822, #823) #823: abuse now declares agent metadata (README.md, SECURITY.md), so its descriptor and the release catalog carry references and an installed abuse appears in get_addon_agent_tooling. The extension reference check fails when any first-party extension has no agent references, none naming its README, or names a file its package does not ship. #822: every property in the ten first-party configuration schemas, auth's route-policy schema and the hook contracts' input/output schemas now has a description written from the implementation (299 schema/policy properties plus 30 hook properties; core's shared hook reference schema too). scripts/generate-extension-reference.ts reuses the #750 description walk (now scripts/schema-descriptions.ts), fails on an undescribed property, and renders a Field reference block at the end of each package README from its urlcode.json: configuration, route policy, peers, hook contracts, authoring surfaces and the schema-valid-is-not-activatable caveat. The README ships in every package and is what search_docs reads for an installed add-on, so no new packaged file. docs/EXTENSION-REFERENCE.md indexes the ten references and maps capabilities (store shortLinks, forms onSubmit, ...) to keys and checked examples. npm run check verifies freshness; build:addons refreshes. The forms README gains a concrete onSubmit declaration and module, and the store README a shortLinks example; package tests run both verbatim. llms-full.txt opens with a coverage note naming what it omits and the bounded paths to it, and bundles the index page. llms.txt, AI-AUTHORING, FRAMEWORK, EXTENSIONS and CONTRIBUTING link the references; create-extension scaffolds described schemas and agent metadata. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…measurement Measured on the merged branch (Node 26): - core 860834 packed / 3403684 unpacked / 490 entries -> 844 / 3330 KiB - forms 49761 / 196778 -> 52 / 200 KiB - store 56504 / 220290 -> 58 / 225 KiB - mcp 45653 / 177930 -> 47 / 180 KiB - form-records unpacked 115346 -> 118 KiB Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
This PR covers five issues. The owner decided #821 and #708 on 2026-09-27; the decisions are recorded on the issues.
#821: declarative JSON error format (owner: option a)
errors: {format: text|json}.site.errors: {format: json, paths: [/api/*, …]}, which also covers unmatched paths, sitting next tosite.notFound.{"error":{"code":"…","message":"…"}}, withapplication/json; charset=utf-8. The code set is closed and keyed by status: 400, 404, 405, 410, 413, 414, 415, 421, 422 (the [Request]: Structured JSON error body for request.body.schema 422 responses #320 body-schema issues, bounded to 4 KiB), 500, 502, 503 and 504.Allowon 405, the HEAD rule, and the security,no-store,nosniffand request-id headers. Handler, policy (429), plugin and extension (401) responses are never rewritten./_urlcodeprobes stay text.errorscapability./statusroute gains a 405 fixture.spa-shellnow declaressite.errorsfor/api/*, and its plugin serves only the shell.#822 and #823: extension syntax references for agents
scripts/schema-descriptions.ts) also applies to extension schemas.docs/EXTENSION-REFERENCE.mdhas the index and a capability-to-reference table.npm run docs:extensionsgenerates the references, andcheck:docsfails when they are stale or a description is missing.onSubmitand storeshortLinksREADME examples are executed by package tests.#824: PR CI runs changed extensions' suites on Windows
On pull requests,
workspace-verifygainswindows-latest/ Node 24 entries for the changed extensions and everything that depends on them, computed by the newwindowsWorkspacePackagesinci-plan. Checked against #819's real diff, it would have caught #820 before merge.verify-completeare unchanged.#708: reproduce and report upstream (owner decision; this PR does not close #708)
Reproducers in
scripts/repro/:SandboxPoolterminate/respawn churn;They're not run by
npm testand not in the npm package.Workflow:
v8-jit-repro.ymlruns them on demand (workflow_dispatchonly, read-only, never retried, not required; Windows / Node 24 by default, with 22 and 26 available).Local runs on macOS / Node 26 do not crash, as expected. The Windows crash is still not reproduced.
Upstream report: a nodejs/node report is drafted for the owner outside the repo; issue text isn't kept in the repo.
test/workflows.test.tsnow allows the fourth workflow and pins it as dispatch-only.Verification
npm run verifyexits 0 on this exact tree:test:addons4/4.npm run test:packageexits 0, with 39 packaged example commands run.New tests:
test/error-format.test.ts(9)test/extension-reference.test.ts(10)test/ci-plan.test.tsSize budgets, raised from measurements of the merged branch:
The extension growth comes from descriptions now appearing in the schema, the descriptor and the generated README.
Limitations
[Request]: Keep fixed JSON APIs declarative when method denials need a JSON error envelope #821:
spa-shell, POST to an undeclared/api/...now answers a JSON 405 (the/*catch-all matches first) instead of the plugin's 404./apiis listed both in the plugin'sexcludeand insite.errors.paths.errorsdoes not appear inexplain/routesoutput.[Request]: Complete extension syntax references and schema descriptions for agents #822: one hard-coded line renders auth's
auth:short form. Third-party extensions are not rendered.[Request]: PR CI never runs package (workspace) suites on Windows, so Windows breaks surface only at release #824: it adds 1 to 10 Windows jobs to extension PRs, and those can hit [Bug]: V8 fatal 'jit_page_->allocations_' crash in sandbox tests on Windows Node 24 CI #708.
[Bug]: V8 fatal 'jit_page_->allocations_' crash in sandbox tests on Windows Node 24 CI #708: the crash is not reproduced yet.
Follow-up filed: [Bug]: docs search treats # comments inside fenced code blocks as section headings #826, docs search treats
#in code blocks as headings.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.
Closes #821
Closes #822
Closes #823
Closes #824
Refs #708
🤖 Generated with Claude Code