Skip to content

[Bug]: init --with cannot succeed on 0.5.9: bundle attestation source ref is main, not the release tag #579

Closed

Description

@jimhoyd

Runtime revision and environment

main at 645239b; core 0.5.9 packed with npm pack and installed into scratch projects, run as llms.txt instructs (npx --no --package @jimhoyd/urlcode urlcode …); MCP driven over stdio. Node 26, macOS. Found in a hands-on usability audit (agent and human perspectives).

Minimal reproduction

urlcode init . --with auth → GitHub attestation verification refused the extension bundle.

Running the same verification by hand on extension-bundles-catalog.json from [email protected]: expected SourceRepositoryRef to be refs/tags/[email protected], got refs/heads/main. The attestation certificate shows workflow_dispatch on refs/heads/main (run 35897080906) — consistent with the manual dispatch path added in cc97ac6/a79a675/57bd033. The only other release, v0.5.1, is refused with requires core 0.5.0, so no bundle release works with core 0.5.9.

Compounding it:

  • the CLI discards gh's output (stdio: 'ignore' in packages/core/src/extension-transport.ts), so the cause is invisible;
  • a typo (--with auht) goes to the network and fails with the same attestation error instead of being checked against the names extension-bundles list already knows;
  • with no network the error is the generic Operation failed; check project files, module dependencies and command options (offline transport itself is init --with has no offline/local-bundle transport for extension bundles #533).

Relevant output

Reproduced with gh attestation verify against the catalog; the 23 MB tarballs were not checked. #577 (catalog commit binding) is related but separate.

Suggested fix

Re-issue the v0.5.9 bundle release with provenance from the tag (or make the verifier accept the ref the dispatch workflow actually signs, deliberately and documented); pass gh stderr through on failure; validate --with names locally before any network call; add a release check that verifies the published catalog with the exact policy the CLI uses.

Activity

  1. added
    bug
    ai-first
    important
    on Sep 23, 2026
  2. jimhoyd commented on Sep 24, 2026

    @jimhoyd
    CollaboratorAuthor

    Landed in #601 (#601): attestation refusals now include a sanitized excerpt of the gh attestation verify output plus the applied policy; --with/extension-bundles install names are validated locally (with did-you-mean) before any network call; unreachable GitHub gets a specific message. The bundle release workflow now builds and attests only on refs/tags/extension-bundles@v… (a main dispatch creates the tag and re-dispatches on it) and verifies the assets with the CLI's own policy before and after publishing.

    Not yet resolved: the published [email protected] still carries refs/heads/main provenance, so init --with on 0.5.9 still fails. A maintainer must re-issue the bundle release from the tag (the tag rulesets may prevent deleting and recreating it) or cut the next core+bundle release through the fixed workflow. Leaving this issue open until then.

  3. jimhoyd commented on Sep 24, 2026

    @jimhoyd
    CollaboratorAuthor

    Status: the redesign in #663 (and the release rewrite in #664) removes the mechanism this bug is about, rather than fixing it.

    I'd close this once that release is out and npx @jimhoyd/urlcode@<new> init site --with auth works. Its verify job runs a similar check (every extension and artifact added to a fresh site from the public channels). Deleting the old extension-bundles@v* / extensions@v* releases and tags is a separate maintainer decision.

  4. jimhoyd commented on Sep 24, 2026

    @jimhoyd
    CollaboratorAuthor

    Fixed by 0.6.0 (#663, #664), which replaces the signed bundle channel this bug was about. Checked against the published release: npx @jimhoyd/[email protected] init site, npm install, then npx urlcode extensions add ui auth admin installs all three pinned at 0.6.0, and extensions list --strict passes. The release's own verify job (run 36044616535) added every extension and artifact to a fresh site from the public channels. The old extension-bundles@v* releases and tags are deleted.

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

    ai-firstbugimportant

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions