Skip to content

Fresh sites: npm scripts and read-only planning fail on missing revision pin/origin after extensions add #910

Closed

Description

@jimhoyd

Found by the #841 agent workflow trial (#909).

Observed with a packed install:

  • After urlcode extensions add auth store, npm run dev, validate, test and audit all refuse, first on the missing revision pin (PROJECT_SHA256 / --policy), then on the missing --origin. The audit script also keeps --expect-routes 0. A fresh site's own AGENTS.md evidence commands can't pass without hand-editing.
  • The pin error says urlcode explain shows the value, but explain --host-file refuses with the same error. So do read-only plan-feature and validate.
  • The value can only be found with urlcode permissions, with explain without a host file, or in the stale extensions add output.

Already addressed: #905 adds the URLCODE_ORIGIN/URLCODE_POLICY fallbacks and makes these refusals print one runnable command.

Remaining:

  • Read-only planning and inspection (explain, plan-feature) shouldn't need a pin.
  • The pin message should name a command that actually works.
  • extensions add should update --expect-routes in the scripts, or the scripts should describe a documented local-review mode.

Related: #834, #905.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions