You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: authentication recipe automatically repins revisions while promising an explicit review gate #784
URLCode v0.6.2 (a7d7ce1c4a540032cbc032ca0f605f1b3555b996), published 0.6.2 packages; macOS, Node v26.8.2. Synthetic local reproduction on 2026-09-26.
Minimal reproduction
Copy recipes/authenticated-json-api and the exact JavaScript host example from its README into separate app/operator locations. Set the documented synthetic API_DEMO_TOKEN and URLCODE_PROJECT to that copied project.
Run the documented test/validate commands: they pass.
Add /new: {respond: {text: newly added}} under routes. The manifest revision changes.
Run validate with the same host and environment, without changing any reviewed external revision value: it passes again.
The example computes projectSha256 = await inspectExtensionRevision(process.env.URLCODE_PROJECT) at module load. Therefore each new CLI process automatically adopts the modified project's hash. This contradicts the paragraph claiming that editing YAML or code fails activation until the operator reviews and pins the change again. The protected-download recipe directs users to this same host example.
Expected: the example should receive an explicitly reviewed external revision pin, matching the described workflow; or its automatic-repin behavior must be clearly scoped as a demonstration with no review gate. Prefer a consistent safe teaching example. Do not weaken the runtime's existing revision checks or automatically repin dev reloads to solve this.
Relevant output
The original auth recipe passes its request fixtures. Validation before the added route succeeds with one route; after the addition it succeeds with two routes and a changed manifest digest. No operator pin input was changed between those invocations. This is an example/prose mismatch: the example host is trusted operator code, and this report does not claim an unprivileged bypass of runtime checks.
Activity
docs(recipes): make the authentication host example take a reviewed r…
Dev reload follows the extension pin, host file reaches commands and …