Skip to content

[Bug]: authentication recipe automatically repins revisions while promising an explicit review gate #784

Closed

Description

@jimhoyd

Runtime revision and environment

URLCode v0.6.2 (a7d7ce1c4a540032cbc032ca0f605f1b3555b996), published 0.6.2 packages; macOS, Node v26.8.2. Synthetic local reproduction on 2026-09-26.

Minimal reproduction

  1. 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.
  2. Run the documented test/validate commands: they pass.
  3. Add /new: {respond: {text: newly added}} under routes. The manifest revision changes.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions