Skip to content

Dev reload follows the extension pin, host file reaches commands and runners, and 0.6.2 docs/recipe corrections with checks (#777, #778, #784, #540, #103, #779–#783, #785) - #786

Merged
jimhoyd merged 8 commits into
mainfrom
claude/sleepy-shannon-xvazgl
Sep 26, 2026
Merged

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

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

Problem and change

Five commits, plus a package-budget commit:

Closes #777, closes #778, closes #784, closes #540, closes #103, closes #779, closes #780, closes #781, closes #782, closes #783, closes #785.

Verification

All on Node 26.10.0, on this exact head, rebased on main a7d7ce1:

Compatibility and security

🤖 Generated with Claude Code

https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP


Generated by Claude Code

…in forward to the edited project (#777)

The dev server's first runtime still checks the extension revision pin
strictly. A hot reload now accepts a registration pinned to exactly the
revision dev started from, activates it for the edited live revision and
logs one extension_pin_followed record ({extensions, from, to}) once the
reload has fully activated. Every other extension check still runs.

Only the dev command enables it (startServer's followExtensionPinOnReload);
startServer refuses a caller-supplied acceptedExtensionPin, registrations are
not mutated, and serve, validate, test, audit, the adapters and plain
createRuntime keep the strict check. Operator --policy grants are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
…ation commands and MCP runners (#778)

buildContext and the redirects task context now append the operator's own
--host-file and --origin to the validate/test/audit/routes commands, and a
new bounded `prerequisites` list names the operator flags the commands need
but the caller did not supply (--host-file, --origin, --policy) without
guessing a value. `urlcode context` passes --origin through.

The MCP server passes its --host-file (absolute) and --origin into
get_context, and the run_validate/run_test/run_audit runners forward exactly
those operator flags to the spawned CLI. Besides PATH, the only environment
variable they pass is PROJECT_SHA256, with a host file and only when it is a
well-formed revision: the pin the server already loaded its own host under.
No --policy (urlcode mcp takes none) and no grant change. The
create_route/add_recipe/scaffold_feature validation verdicts now use the
loaded host's registrations, as MCP validate does after #755. Runner
descriptions, docs/TOOLING.md and docs/AI-AUTHORING.md state that the host
file is operator-supplied code that executes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
Comment thread scripts/check-local-links.ts Fixed
…lete sanitization)

Heading text for anchor slugs removed inline HTML with one pass of
/<[^>]*>/, which CodeQL flags as incomplete multi-character sanitization.
Remove innermost tags repeatedly until the text stops changing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
Windows CI failed the #778 tests: the host-file path (C:\...\RUNNER~1\...)
contains backslashes and a tilde, which the POSIX safe-word check treated as
unsafe, so the suggested commands wrapped it in single quotes. cmd.exe does
not treat single quotes as quoting, so that command would also be wrong for
a Windows operator.

Keep Windows paths bare when they contain only path-safe characters
(including \ and ~) and double-quote them otherwise; on POSIX, allow ~ after
the first character and single-quote as before.

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