Skip to content

[Bug]: openapi refuses --local-review with a serve/dev message, though it needs no pin #958

Closed

Description

@jimhoyd

From the third agent workflow trial.

Minimal reproduction

In a fresh site with extensions add auth store and one store route, run openapi with the same flag the generated npm scripts use:

$ npx urlcode openapi --project app --host-file host.mjs --local-review --check
{"event":"error","message":"--local-review is only supported by validate/test/routes/audit; serve and dev always need the reviewed revision pin (--policy or PROJECT_SHA256)","code":"local-review-unsupported"}

Without the flag it works, and needs no pin:

$ npx urlcode openapi --project app --host-file host.mjs --check
{"event":"openapi-check","source":"export","valid":true,"schema":"https://spec.openapis.org/oas/3.1/schema/2025-09-15","problems":[],"schemaObjects":72,"operations":9}

Relevant output

The refusal's reason is about serve and dev, not about the command that was run. It implies openapi needs a pin, and it doesn't. An agent following the npm scripts' pattern passes --local-review to every check.

Expected, one of:

  • openapi (and other read-only commands that need no pin) accept --local-review as a no-op;
  • or the refusal names the command that was run and says it needs no pin ("openapi reads the project without a pin; drop --local-review").

Runtime revision and environment

main f850492a (0.6.5), packed install, macOS, Node 26.10.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions