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]: init --with cannot succeed on 0.5.9: bundle attestation source ref is main, not the release tag #579
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).
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;
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.
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.
Status: the redesign in #663 (and the release rewrite in #664) removes the mechanism this bug is about, rather than fixing it.
Code:refactor!: one add-on shape, composeHost, site layout, extensions/artifacts add/remove #663 deletes the signed extension-bundles@v* channel, its catalog and attestation verification, and bundle-based init --with. Add-ons are now tarballs released alongside core under the same version. Core pins each one by sha512 in its own dist/addons.json; urlcode extensions add (and init --with) installs them with npm --ignore-scripts and checks the lock against those pins. No gh attestation verify step remains to refuse a refs/heads/main source ref.
Release:build(release)!: merge a version bump, main releases itself #664 attaches the add-on tarballs to core's own v<version> GitHub Release, created by release.yml from the merged commit. Core is published to npm only after the public add-on URLs have been checked against its pins.
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.
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.
Activity
fix(core): make extension bundle verification failures diagnosable (#579
jimhoyd commentedon Sep 24, 2026
Landed in #601 (#601): attestation refusals now include a sanitized excerpt of the
gh attestation verifyoutput plus the applied policy;--with/extension-bundles installnames 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 onrefs/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 carriesrefs/heads/mainprovenance, soinit --withon 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.jimhoyd commentedon Sep 24, 2026
Status: the redesign in #663 (and the release rewrite in #664) removes the mechanism this bug is about, rather than fixing it.
extension-bundles@v*channel, its catalog and attestation verification, and bundle-basedinit --with. Add-ons are now tarballs released alongside core under the same version. Core pins each one by sha512 in its owndist/addons.json;urlcode extensions add(andinit --with) installs them withnpm --ignore-scriptsand checks the lock against those pins. Nogh attestation verifystep remains to refuse arefs/heads/mainsource ref.v<version>GitHub Release, created byrelease.ymlfrom the merged commit. Core is published to npm only after the public add-on URLs have been checked against its pins.[email protected]still carries main-branch provenance, soinit --withon core 0.5.9 still fails as reported. That doesn't change until a core release containing refactor!: one add-on shape, composeHost, site layout, extensions/artifacts add/remove #663/build(release)!: merge a version bump, main releases itself #664 ships.I'd close this once that release is out and
npx @jimhoyd/urlcode@<new> init site --with authworks. Itsverifyjob runs a similar check (every extension and artifact added to a fresh site from the public channels). Deleting the oldextension-bundles@v*/extensions@v*releases and tags is a separate maintainer decision.jimhoyd commentedon Sep 24, 2026
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, thennpx urlcode extensions add ui auth admininstalls all three pinned at 0.6.0, andextensions list --strictpasses. The release's own verify job (run 36044616535) added every extension and artifact to a fresh site from the public channels. The oldextension-bundles@v*releases and tags are deleted.