Repository navigation
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
Conversation
…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
… from Codex MCP registration, with guards (#540, #103) 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
…evision pin instead of recomputing it (#784) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
… gaps and the credential-header scope, with checks (#779, #780, #781, #782, #783, #785, #103) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
…orrections Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
…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
This was referenced Sep 26, 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
Five commits, plus a package-budget commit:
urlcode devhot reload with an extension host no longer rejects every edit.extension_pin_followedevent (in a terminal: "re-review and re-pin before serve").serve,validate,test,audit, the adapters and plaincreateRuntimekeep the strict check.urlcode devCLI can set the option: not YAML, env or tool arguments.RIM-EXT-PIN-001; EXTENSIONS, LOCAL-DEVELOPMENT, MONITORING and OBSERVABILITY docs updated.--policy) are not carried forward on reload. That was already documented.buildContextcommands (validate, test, audit, routes) carry--host-fileand--origin. A newprerequisiteslist names missing operator input (--host-file,--origin,--policy) and never guesses a value.--host-file/--originintoget_contextand intorun_validate/run_test/run_audit.PROJECT_SHA256, the revision pin the server already loaded its host under. It is only passed when it is well-formed, and it is the only environment variable passed besidesPATH.create_route/add_recipe/scaffold_featurevalidation verdicts use the host's extensions.--allow-authoring.composeHostand the--policyrevision orPROJECT_SHA256instead of recomputing the pin at load time, and a new "review gate" section shows the operator workflow. The protected-download recipe was updated to match.linkhandler, and it points toextensions.store.config.shortLinkswith its real limits..mcp.jsonand Codex registration (config.toml[mcp_servers.urlcode]orcodex mcp add) are documented separately. The unverified claim that Codex reads.mcp.jsonis removed. Thenpxexplanation is scoped to before installation.check-agent-factsrules catch both kinds of stale wording.Makefile, CONTRIBUTING, LOCAL-DEVELOPMENT, the core README and six other pages now useapp/project paths.scripts/check-doc-yaml.tsparses every authored YAML fence and schema-validates complete and route blocks (83 validated, 14 parse-only).check-local-linksnow verifies#fragmenttargets with GitHub heading slugs (339 checked).[email protected]install first, including in its recipe metadata.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:
npm ci, build and workspace builds passed.npm run checkpassed, including the new fragment and doc-YAML checks.npm run audit:packagesandnpm run verifypassed (exit 0).npm run test:packagepassed: 770595 packed and 3103072 unpacked bytes in 464 files; the packed install and starter/cookbook checks passed.urlcode dev --host-fileprocess hot-reloads an edit and logs the follow event, whileurlcode serverefuses the edited project with the old pin.serveMcpwith a host file and an origin,run_validateandrun_testsucceed for a syntheticwidgetextension.urlcode test --project recipes/middlewarepasses 64 of 64.Compatibility and security
[Bug]: urlcode dev rejects every reload while an extension is active, needing a full restart #777: only
urlcode devchanges. Serving and verification remain pinned. Operator grants from--policystill need a restart and re-pin after an edit. An env binding with a default quietly falls back to that default until then; this is documented.[Bug]: verification commands and MCP subprocess runners drop the supplied extension host #778: runners pass on only the operator's own flags plus the validated
PROJECT_SHA256. No other environment and no credentials are passed, and no grant changes. The host module passed on is operator code and executes, which the tool descriptions say.MCP discovery: init writes .mcp.json, and AGENTS.md and the skill point agents at urlcode mcp #103: the Codex guidance was checked against the openai/codex source on GitHub (main branch). OpenAI's docs site could not be reached from this environment, and no real Codex client was tried.
[Bug]: SECURITY.md overstates unconditional stripping of Authorization and Cookie #782: docs only. Behavior is unchanged, and the middleware recipe still reads Authorization when no extension claims 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