Skip to content
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a90ccfa
Publish by OIDC trusted publishing instead of a stored npm token
unbraind Aug 26, 2026
013ed34
Fail closed on the npm version actually in use, and scope the guards …
unbraind Aug 26, 2026
474c331
Fail the release before it bumps when npm refuses the workflow's iden…
unbraind Aug 26, 2026
0ceb987
Reject npm credential aliases and the --global install spelling
unbraind Aug 26, 2026
105a5cf
Close two guards that passed without the behaviour they protect
unbraind Aug 26, 2026
cb905aa
Restore the docstring the guard suite's docstring gate requires
unbraind Aug 26, 2026
f1dc6ac
Do not let the OIDC exchange credential outlive the step that fetched it
unbraind Aug 26, 2026
fe67961
Record the release-hardening evidence on the tracked item
unbraind Aug 26, 2026
88ff19e
Encode the package name and accept 201, or the preflight blocks corre…
unbraind Aug 26, 2026
bb0ec96
Scrub every legacy credential, bound the preflight, and name a regist…
unbraind Aug 26, 2026
645c266
State the incident dates in these records as UTC
unbraind Aug 26, 2026
8a0d529
Refuse a non-main ref before requesting a publish credential
unbraind Aug 26, 2026
1b498c9
Gate the job by ref, re-verify npm at publish time, and make failures…
unbraind Aug 26, 2026
76b9991
Freeze the history and gate the future on commit identity and host paths
unbraind Aug 27, 2026
676cc3f
Close a vacuous credential guard and stop interpolating context into …
unbraind Aug 27, 2026
6669e26
Measure the mutation coverage instead of maintaining a tally
unbraind Aug 27, 2026
f1c9e09
Reject and scrub global npm credentials, not only registry-scoped ones
unbraind Aug 27, 2026
fb605fc
Catch credential writes that carry a flag, and scrub npm's global config
unbraind Aug 27, 2026
e7591d1
fix(ci): let a maintainer update an audit control without the gate re…
unbraind Aug 27, 2026
75b1105
fix(ci): check each generator invocation on its own, and fail when th…
unbraind Aug 27, 2026
846d207
chore(pm): drop a comment that a retried add had duplicated
unbraind Aug 27, 2026
cf05a40
chore(git): ignore SDK workspace-transaction journals
unbraind Aug 27, 2026
e03f6f3
ci: run the changelog-date verifier instead of only shipping it
unbraind Aug 27, 2026
bd8b212
fix(ci): find the release-time generator invocations the shell verifi…
unbraind Aug 27, 2026
601d10e
test: execute the verifier's rules against fixtures, and close three …
unbraind Aug 27, 2026
783ad13
fix(ci): close two ways the identity audit could be told to look at l…
unbraind Aug 27, 2026
20b53f3
fix(test): make the inline-permissions branch capable of passing
unbraind Aug 27, 2026
f443a7d
fix(ci): stop three guards failing open, and stop one gate measuring …
unbraind Aug 27, 2026
6926d27
docs(pm): state the mutation property instead of a tally that goes stale
unbraind Aug 27, 2026
98dd9ad
test: follow the verifier's own contract change, and drop a duplicate…
unbraind Aug 27, 2026
a9af3e3
Merge origin/main after the daily release
unbraind Aug 27, 2026
d814533
docs(changelog): regenerate after merging the released main
unbraind Aug 27, 2026
d45f036
fix: close a continuation bypass, stop a comment satisfying a flag check
unbraind Aug 27, 2026
2ab1925
fix: split on unspaced shell separators, and stop two guards at the r…
unbraind Aug 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .agents/pm/history/pm-jira-0thg.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"ts":"2026-08-26T19:33:41.627Z","author":"claude","author_source":"asserted","agent_harness":"claude-code","agent_instance":"f559dcd5a5f387bc7221097a","agent_provenance":{"model":null,"effort":{"value":"xhigh","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null},"op":"create","patch":[{"op":"replace","path":"/body","value":"Trusted publishing replaces the stored credential. The registry mints a short lived credential from the workflow OIDC identity, so there is no secret left to expire. Requires a one time configuration on npmjs.com binding this package to unbraind/pm-jira and the release.yml workflow."},{"op":"add","path":"/metadata/id","value":"pm-jira-0thg"},{"op":"add","path":"/metadata/title","value":"The release job authenticated with a stored npm token that expired, so publishing stopped while every other gate stayed green"},{"op":"add","path":"/metadata/description","value":"The Publish npm package step read NODE_AUTH_TOKEN from the repository secret NPM_TOKEN. That credential began being rejected on 2026-08-17. From then until 2026-08-26 every daily release run reached the publish step and failed with npm code E404 on PUT to the registry, which is how npm reports a rejected write credential rather than a missing package. Rotating the secret on 2026-08-22 did not help, and the copy of the credential on the maintainer host answers 401 to npm whoami, so the token is dead rather than mis-stored. Because the version bump and the release commit both land before the publish step, main advanced to 2026.8.26 with no matching tag and no published artifact while npm still serves 2026.8.17. Sixteen of the eighteen published fleet packages are in the same state."},{"op":"add","path":"/metadata/type","value":"Issue"},{"op":"add","path":"/metadata/status","value":"in_progress"},{"op":"add","path":"/metadata/priority","value":0},{"op":"add","path":"/metadata/tags","value":["npm","release","supply-chain"]},{"op":"add","path":"/metadata/created_at","value":"2026-08-26T19:33:41.627Z"},{"op":"add","path":"/metadata/updated_at","value":"2026-08-26T19:33:41.627Z"},{"op":"add","path":"/metadata/deadline","value":"2026-09-02T00:00:00.000Z"},{"op":"add","path":"/metadata/assignee","value":"claude"},{"op":"add","path":"/metadata/author","value":"claude"},{"op":"add","path":"/metadata/estimated_minutes","value":90},{"op":"add","path":"/metadata/acceptance_criteria","value":"No release workflow references NODE_AUTH_TOKEN NPM_TOKEN or secrets.NPM outside a comment; the publish job carries id-token write; npm is raised to at least 11.5.1 before the publish step because the npm bundled with node 22 cannot exchange an OIDC token; a test fails closed if a stored token is reintroduced or the npm upgrade is removed"},{"op":"add","path":"/metadata/comments","value":[{"created_at":"2026-08-26T19:33:41.627Z","author":"claude","text":"Guards verified as non-vacuous: reintroducing NODE_AUTH_TOKEN fails the OIDC test and deleting the npm upgrade step fails the npm-version test, while the unmodified tree passes both."}]},{"op":"add","path":"/metadata/notes","value":[{"created_at":"2026-08-26T19:33:41.627Z","author":"claude","text":"Root cause was found by comparing npm view against the branch, not by reading CI. Every job except publish was green for ten days."}]},{"op":"add","path":"/metadata/learnings","value":[{"created_at":"2026-08-26T19:33:41.627Z","author":"claude","text":"A release pipeline that bumps and commits the version before it publishes hides a credential outage indefinitely. Registry state, not workflow state, is the definition of released."}]},{"op":"add","path":"/metadata/files","value":[{"path":".github/workflows/release.yml","scope":"project"}]},{"op":"add","path":"/metadata/tests","value":[{"command":"npx tsx --test test/release-workflow.test.ts","scope":"project"}]},{"op":"add","path":"/metadata/docs","value":[{"path":"https://docs.npmjs.com/trusted-publishers","scope":"project","note":"npm trusted publishing setup"}]}],"before_hash":"3cc22dff72be7b14824654a7a64ea62b04799939b2fee54c1b5f52ca60bf6df0","after_hash":"6c0ffb9f160ba706c1396d4224bc2338dc02ba290f91929168489aa2f7866365","item_hash_version":2,"message":"Record the npm credential outage and migrate this package to trusted publishing","context":{"agent_provenance_outcomes":{"model":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"}}}}
{"ts":"2026-08-26T23:06:19.316Z","author":"codex","author_source":"configured","agent_harness":"claude-code","agent_instance":"66f51baccd944ab11404f28c","agent_provenance":{"model":null,"effort":{"value":"xhigh","source":"environment"},"role":{"value":"implementer","source":"argv"},"topic":null},"op":"update","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-08-26T23:06:19.316Z"},{"op":"replace","path":"/metadata/description","value":"The Publish npm package step read NODE_AUTH_TOKEN from the repository secret NPM_TOKEN. That credential began being rejected on 2026-08-17 UTC. From then until 2026-08-26 UTC every daily release run reached the publish step and failed with npm code E404 on PUT to the registry, which is how npm reports a rejected write credential rather than a missing package. Rotating the secret on 2026-08-22 UTC did not help, and the copy of the credential on the maintainer host answers 401 to npm whoami, so the token is dead rather than mis-stored. Because the version bump and the release commit both land before the publish step, main advanced to 2026.8.26 with no matching tag and no published artifact while npm still serves 2026.8.17. Sixteen of the eighteen published fleet packages are in the same state."}],"before_hash":"6c0ffb9f160ba706c1396d4224bc2338dc02ba290f91929168489aa2f7866365","after_hash":"3ca5b87f5bdfb94fc3b39e9c5127ff9246b1f02cdc971d2526252ec7065a16cc","item_hash_version":2,"context":{"agent_provenance_outcomes":{"model":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"}}}}
1 change: 1 addition & 0 deletions .agents/pm/history/pm-jira-7khk.jsonl
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
{"ts":"2026-08-24T10:03:44.240Z","author":"harness:claude-code","author_source":"asserted","agent_harness":"claude-code","agent_instance":"365e646596cb83e6152b34c6","agent_provenance":{"model":null,"effort":{"value":"xhigh","source":"environment"},"role":null,"topic":null},"op":"files_add","patch":[{"op":"add","path":"/metadata/files/2","value":{"path":"scripts/verify-release-changelog-date.sh","scope":"project","note":"executable proof for the release workflow invocations, which the package.json changelog check never reaches"}},{"op":"replace","path":"/metadata/updated_at","value":"2026-08-24T10:03:44.240Z"}],"before_hash":"c1fe8f21450dbf81fa195d77c5a04393863c2436bc710373ef50d887b1ac5613","after_hash":"fa29429212b1f1ee95893fbb4d65959b73ce7ad5600ed8e3f4bb46678aeeb448","item_hash_version":2,"context":{"agent_provenance_outcomes":{"model":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"}}}}
{"ts":"2026-08-24T10:03:44.670Z","author":"harness:claude-code","author_source":"asserted","agent_harness":"claude-code","agent_instance":"365e646596cb83e6152b34c6","agent_provenance":{"model":null,"effort":{"value":"xhigh","source":"environment"},"role":null,"topic":null},"op":"comment_add","patch":[{"op":"replace","path":"/metadata/updated_at","value":"2026-08-24T10:03:44.670Z"},{"op":"add","path":"/metadata/comments","value":[{"created_at":"2026-08-24T10:03:44.670Z","author":"harness:claude-code","text":"CodeRabbit was right that the linked test only covered the package.json invocation and never reached the direct pm-changelog commands in the release workflow. Added an executable check that does both halves. The static half enumerates every tracked file containing a generator invocation and asserts each file's flagged count is not below its site count, which fails when any single site loses the flag; verified by removing the flag from one of two release.yml sites and watching it report one of two and exit non-zero. The behavioural half runs the generator twice on the same probe version 2026.1.2, deliberately chosen so its calendar date cannot coincide with today, and asserts the heading is 2026.1.2 - 2026-01-02 with the flag and 2026.1.2 - 2026-08-24 without it, so the test states the defect rather than merely asserting the fix."}]}],"before_hash":"fa29429212b1f1ee95893fbb4d65959b73ce7ad5600ed8e3f4bb46678aeeb448","after_hash":"ef5360a24e65ade530e4d382891512c09d9a0a9d8bbcf684b9200d7728592433","item_hash_version":2,"context":{"agent_provenance_outcomes":{"model":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"}}}}
{"ts":"2026-08-24T10:05:55.835Z","author":"harness:claude-code","author_source":"asserted","agent_harness":"claude-code","agent_instance":"365e646596cb83e6152b34c6","agent_provenance":{"model":null,"effort":{"value":"xhigh","source":"environment"},"role":null,"topic":null},"op":"comment_add","patch":[{"op":"add","path":"/metadata/comments/1","value":{"created_at":"2026-08-24T10:05:55.835Z","author":"harness:claude-code","text":"CodeRabbit was right that the linked test only covered the package.json invocation and never reached the direct pm-changelog commands in the release workflow. Added an executable check that does both halves. The static half enumerates every tracked file containing a generator invocation and asserts each file's flagged count is not below its site count, which fails when any single site loses the flag; verified by removing the flag from one of two release.yml sites and watching it report one of two and exit non-zero. The behavioural half runs the generator twice on the same probe version 2026.1.2, deliberately chosen so its calendar date cannot coincide with today, and asserts the heading is 2026.1.2 - 2026-01-02 with the flag and 2026.1.2 - 2026-08-24 without it, so the test states the defect rather than merely asserting the fix."}},{"op":"replace","path":"/metadata/updated_at","value":"2026-08-24T10:05:55.835Z"}],"before_hash":"ef5360a24e65ade530e4d382891512c09d9a0a9d8bbcf684b9200d7728592433","after_hash":"c88b75ed14439510731bdeb9aaf4c84361f317e156a84823a59eb7dfe3784f13","item_hash_version":2,"context":{"agent_provenance_outcomes":{"model":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"}}}}
{"ts":"2026-08-27T17:09:34.014Z","author":"claude-agent","author_source":"asserted","agent_harness":"claude-code","agent_instance":"74d2f6d55073a15471e92197","agent_provenance":{"model":null,"effort":{"value":"xhigh","source":"environment"},"role":null,"topic":null},"op":"comment_delete","patch":[{"op":"remove","path":"/metadata/comments/1"},{"op":"replace","path":"/metadata/updated_at","value":"2026-08-27T17:09:34.014Z"}],"before_hash":"c88b75ed14439510731bdeb9aaf4c84361f317e156a84823a59eb7dfe3784f13","after_hash":"8ccd396a226ac60ce557ebbdd966b1c86c7bfa628ad8b8179ba1e2526bbc6caa","item_hash_version":2,"message":"Remove a comment duplicated by a retried add","context":{"agent_provenance_outcomes":{"model":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"},"version":{"status":"failed","reason":"resolver_failed","resolver":"claude_session_file","rule_version":"v1"}}}}
Loading