Skip to content

Fix Windows file paths in the headless auth recipe test - #819

Merged
jimhoyd merged 1 commit into
mainfrom
codex/fix-windows-auth-ci
Sep 27, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
codex/fix-windows-auth-ci

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

Problem and change

The release run at ff69ce41 fails auth verification on Windows Node 22, 24 and 26. The new headless-profile recipe CLI test generates a host module that treats a file URL's .pathname as a filesystem path, producing an invalid drive path (D:\C:\Users\...\data) before the lifecycle can run.

Convert the URL with fileURLToPath. Give the fixture directory a space and # so the same regression is detectable on Unix through percent decoding. Keep every lifecycle, ownership, readiness and credential-output assertion intact. The public recipe uses the correct host defaults and needs no change.

Recurrence tracked in #62. Failed run: https://github.com/jimhoyd-com/urlcode/actions/runs/36332281231

Verification

Compatibility and security

Test fixture only. No runtime, auth policy, YAML/API, starter, release version or public documentation behavior changes.

  • 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.

@jimhoyd
jimhoyd merged commit ef793e4 into main Sep 27, 2026
150 of 151 checks passed
@jimhoyd
jimhoyd deleted the codex/fix-windows-auth-ci branch September 27, 2026 16:38
jimhoyd added a commit that referenced this pull request Sep 27, 2026
…tension suites on PRs, V8 crash reproducers (#821, #822, #823, #824, #708) (#827)

* ci: run changed extensions' workspace suites on Windows in pull requests (#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]>

* ci(repro): manual reproducers and workflow for the Windows V8 JIT worker 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]>

* feat(http): declarative JSON error format for runtime errors (#821)

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]>

* Describe every extension field and generate per-extension references (#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]>

* chore(package): size budgets from the merged #708/#821/#822/#823/#824 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]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant