Skip to content

Fix the CI badge, and publish releases from a tag - #22

Merged
shahcolate merged 3 commits into
mainfrom
claude/docket-branch-hygiene-0bl9d7
Aug 5, 2026
Merged

shahcolate merged 3 commits into
mainfrom
claude/docket-branch-hygiene-0bl9d7

Conversation

@shahcolate

Copy link
Copy Markdown
Owner

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 run ci.yml (0 runs; all 14 ci.yml push runs are on main, all green). A 139-test suite was advertising itself as unknown.

Pinned to ?branch=main in 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.json is at 0.5.0. npm's latest dist-tag is 0.4.0. v0.5.0 — per-agent record attribution and the concurrency fix — merged, was never tagged, and was never published, 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. .github/workflows/release.yml runs on v* tags and:

  • refuses to publish when the tag and package.json disagree, so the published version is always the one that was tagged;
  • runs the suite, and regenerates eval/REPORT.md and fails on drift — the README's zero-silent-allows claim shouldn't survive a release that can't reproduce it;
  • publishes with npm provenance, so each tarball carries a signed link back to the commit and workflow run that built it.

Changes

File
README.md, README.zh.md pin the CI badge to main
.github/workflows/release.yml new — tag-driven publish with provenance
CONTRIBUTING.md document the release flow
docs/growth.md the branch item described a rename; it's a stale pointer. Restated, and the release gap added

Verification

  • npm test — 139/139 pass
  • node eval/run.js --markdown && git diff --exit-code eval/REPORT.md — clean, so the workflow's report step passes
  • npm pack → unpacked → drove init, new, list, match, check, record, metrics, compile end to end against the 0.5.0 build; verdicts, the hash chain, and v0.5.0's per-agent attribution all behave
  • both workflow files parse as YAML

Still needs a human

Neither is doable from CI:

  1. Settings → Branches → set the default to main, then delete the merged claude/* branches. Until then github.com/shahcolate/docket serves the v0.2.1 README rather than the current one.
  2. Add an NPM_TOKEN secret (Settings → Secrets → Actions; an npm automation token, so 2FA doesn't block it), then git tag v0.5.0 && git push origin v0.5.0 to ship the pending release. Worth backfilling the earlier tags too — v0.4.0 is the only one that exists.

Generated by Claude Code

claude added 3 commits August 4, 2026 22:35
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
@shahcolate
shahcolate merged commit 4dc7d1d into main Aug 5, 2026
3 checks passed
@shahcolate
shahcolate deleted the claude/docket-branch-hygiene-0bl9d7 branch August 5, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants