Repository navigation
Fix the CI badge, and publish releases from a tag - #22
Merged
Merged
Conversation
The CI badge omitted a branch, so shields.io resolved it against the repository default branch — still the `claude/docket-app-concept-9lf7x0` scaffold, which has never run ci.yml — and rendered "no status" next to a suite that is green on every push to main. Pin it to `?branch=main` so the badge reports the trunk regardless of where the default pointer sits. The growth checklist described the branch problem as a rename. It is not: main exists and is the trunk, 24 commits ahead, carrying v0.4.0 and v0.5.0. Only the default-branch pointer is stale. Restate the item accordingly and add the release gap it hides — package.json is at 0.5.0 while npm's latest dist-tag is still 0.4.0. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PGgttRFdzv67h4Pt5XqwGZ
v0.5.0 merged, was never tagged, and was never published. npm's latest dist-tag has been 0.4.0 since, so `npx docket-agent` installs a release older than the README describes. Manual publishing is what allowed that, and nothing in the repo would have caught it. release.yml runs on `v*` tags. It refuses to publish when the tag and package.json disagree, runs the suite, regenerates the red-team report and fails on drift — the README's zero-silent-allows claim should not survive a release that cannot reproduce it — then publishes with npm provenance, so each tarball carries a signed link back to the commit and run that built it. Document the flow in CONTRIBUTING.md and point the growth checklist at it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PGgttRFdzv67h4Pt5XqwGZ
The workflow as first written asked for an `NPM_TOKEN` secret. That advice is stale: npm disabled classic token creation in November 2025 and revoked the outstanding ones that December, and the granular tokens that replaced them cap write access at 90 days and lose direct publish capability entirely in January 2027. Building the release path on a credential with a scheduled end date means rebuilding it on a deadline. Trusted publishing authenticates the workflow by its OIDC identity against a publisher registered on the package, so the credential is minted per job and expires with it — nothing to store in the repository and nothing to rotate. Drop `NODE_AUTH_TOKEN`, which npm reads as a request for the legacy path and which would silently bypass OIDC, and drop `--provenance`, which trusted publishing applies on its own. Upgrade npm before publishing: trusted publishing needs >= 11.5.1 and node 22 still bundles 10.x. Note in CONTRIBUTING.md that renaming the workflow file breaks publishing — the trusted publisher is pinned to the filename. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PGgttRFdzv67h4Pt5XqwGZ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two repo-hygiene defects that are visible from outside, plus the mechanism that caused the second one.
The CI badge reads "no status"
The badge omitted a branch, so shields.io resolved it against the repository's default branch — still
claude/docket-app-concept-9lf7x0, which has never runci.yml(0 runs; all 14ci.ymlpush runs are onmain, all green). A 139-test suite was advertising itself as unknown.Pinned to
?branch=mainin both READMEs, so the badge reports the trunk regardless of where the default pointer sits — and cannot break this way again if the pointer moves.npm is a release behind
package.jsonis at0.5.0. npm'slatestdist-tag is0.4.0. v0.5.0 — per-agent record attribution and the concurrency fix — merged, was never tagged, and was never published, sonpx docket-agentinstalls a release older than the README describes.Manual publishing is what allowed that, and nothing in the repo would have caught it.
.github/workflows/release.ymlruns onv*tags and:package.jsondisagree, so the published version is always the one that was tagged;eval/REPORT.mdand fails on drift — the README's zero-silent-allows claim shouldn't survive a release that can't reproduce it;Changes
README.md,README.zh.mdmain.github/workflows/release.ymlCONTRIBUTING.mddocs/growth.mdVerification
npm test— 139/139 passnode eval/run.js --markdown && git diff --exit-code eval/REPORT.md— clean, so the workflow's report step passesnpm pack→ unpacked → droveinit,new,list,match,check,record,metrics,compileend to end against the 0.5.0 build; verdicts, the hash chain, and v0.5.0's per-agent attribution all behaveStill needs a human
Neither is doable from CI:
main, then delete the mergedclaude/*branches. Until then github.com/shahcolate/docket serves the v0.2.1 README rather than the current one.NPM_TOKENsecret (Settings → Secrets → Actions; an npm automation token, so 2FA doesn't block it), thengit tag v0.5.0 && git push origin v0.5.0to ship the pending release. Worth backfilling the earlier tags too —v0.4.0is the only one that exists.Generated by Claude Code