From a8d6e7a8e462915feb464d31a59bfea00deae3cf Mon Sep 17 00:00:00 2001 From: Will Washburn Date: Thu, 1 Oct 2026 22:03:23 -0700 Subject: [PATCH 1/2] fix(ci): pin npm to a Node-compatible version for publishing --- .../compacted/fix-publish-npm-engine.json | 37 +++++++++++++++++++ .../compacted/fix-publish-npm-engine.md | 18 +++++++++ .github/workflows/publish.yml | 3 +- 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .agentworkforce/trajectories/compacted/fix-publish-npm-engine.json create mode 100644 .agentworkforce/trajectories/compacted/fix-publish-npm-engine.md diff --git a/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.json b/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.json new file mode 100644 index 0000000..538eb54 --- /dev/null +++ b/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.json @@ -0,0 +1,37 @@ +{ + "id": "compact_e7jbm673zcff", + "version": 1, + "type": "compacted", + "compactedAt": "2026-10-02T04:46:51.102Z", + "sourceTrajectories": [ + "traj_meidug4svdq6" + ], + "dateRange": { + "start": "2026-10-02T04:45:22.365Z", + "end": "2026-10-02T04:46:33.584Z" + }, + "summary": { + "totalDecisions": 1, + "totalEvents": 1, + "uniqueAgents": [ + "default" + ] + }, + "decisionGroups": [ + { + "category": "testing", + "decisions": [ + { + "question": "Pin publishing npm to 11.6.2", + "chosen": "Pin publishing npm to 11.6.2", + "reasoning": "npm latest resolved to 12.2.0 requiring Node 22.22.2, but the workflow pins Node 22.14.0. npm 11.6.2 supports Node >=22.9.0 and exceeds the OIDC minimum 11.5.1. An exact npm pin prevents future engine drift.", + "fromTrajectory": "traj_meidug4svdq6" + } + ] + } + ], + "keyLearnings": [], + "keyFindings": [], + "filesAffected": [], + "commits": [] +} \ No newline at end of file diff --git a/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.md b/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.md new file mode 100644 index 0000000..f59674b --- /dev/null +++ b/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.md @@ -0,0 +1,18 @@ +# Trajectory Compaction: Oct 1, 2026 - Oct 1, 2026 + +## Summary +- Sessions: 1 +- Decisions: 1 +- Events: 1 +- Agents: default +- Files: 0 +- Commits: 0 + +## Testing +- Pin publishing npm to 11.6.2 -> Pin publishing npm to 11.6.2 (traj_meidug4svdq6) + +## Key Learnings +- None + +## Key Findings +- None \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9f3d52c..e142cc2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -131,7 +131,8 @@ jobs: path: . - name: Update npm for OIDC support - run: npm install -g npm@latest + # npm >=11.5.1 supports OIDC; pin a version compatible with Node 22.14.0. + run: npm install -g npm@11.6.2 - name: Dry run check if: github.event.inputs.dry_run == 'true' From 71a40e05ea35e80a7f4a634d9c0ea7926087f152 Mon Sep 17 00:00:00 2001 From: Will Washburn Date: Thu, 1 Oct 2026 22:36:35 -0700 Subject: [PATCH 2/2] fix(ci): use npm 11.10.1 to avoid dependency resolution regression --- .../compacted/fix-publish-npm-engine.json | 18 +++++++++--------- .../compacted/fix-publish-npm-engine.md | 2 +- .github/workflows/publish.yml | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.json b/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.json index 538eb54..8d7ceef 100644 --- a/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.json +++ b/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.json @@ -1,14 +1,14 @@ { - "id": "compact_e7jbm673zcff", + "id": "compact_0qkc7s4mhclm", "version": 1, "type": "compacted", - "compactedAt": "2026-10-02T04:46:51.102Z", + "compactedAt": "2026-10-02T05:36:27.364Z", "sourceTrajectories": [ - "traj_meidug4svdq6" + "traj_acmbldvc9ifd" ], "dateRange": { - "start": "2026-10-02T04:45:22.365Z", - "end": "2026-10-02T04:46:33.584Z" + "start": "2026-10-02T05:35:40.198Z", + "end": "2026-10-02T05:36:10.691Z" }, "summary": { "totalDecisions": 1, @@ -22,10 +22,10 @@ "category": "testing", "decisions": [ { - "question": "Pin publishing npm to 11.6.2", - "chosen": "Pin publishing npm to 11.6.2", - "reasoning": "npm latest resolved to 12.2.0 requiring Node 22.22.2, but the workflow pins Node 22.14.0. npm 11.6.2 supports Node >=22.9.0 and exceeds the OIDC minimum 11.5.1. An exact npm pin prevents future engine drift.", - "fromTrajectory": "traj_meidug4svdq6" + "question": "Pin publishing npm to 11.10.1", + "chosen": "Pin publishing npm to 11.10.1", + "reasoning": "The original failure came from npm latest selecting npm 12.2.0, incompatible with Node 22.14.0. Review identified dependency-resolution regressions in the initial 11.6.2 pin. Upstream npm/cli PR 8981 shipped in 11.10.1, which retains the Node ^20.17.0 || >=22.9.0 engine range and OIDC support. Keep an exact pin to prevent future engine drift.", + "fromTrajectory": "traj_acmbldvc9ifd" } ] } diff --git a/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.md b/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.md index f59674b..3f18a5a 100644 --- a/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.md +++ b/.agentworkforce/trajectories/compacted/fix-publish-npm-engine.md @@ -9,7 +9,7 @@ - Commits: 0 ## Testing -- Pin publishing npm to 11.6.2 -> Pin publishing npm to 11.6.2 (traj_meidug4svdq6) +- Pin publishing npm to 11.10.1 -> Pin publishing npm to 11.10.1 (traj_acmbldvc9ifd) ## Key Learnings - None diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e142cc2..a9f8f29 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -132,7 +132,7 @@ jobs: - name: Update npm for OIDC support # npm >=11.5.1 supports OIDC; pin a version compatible with Node 22.14.0. - run: npm install -g npm@11.6.2 + run: npm install -g npm@11.10.1 - name: Dry run check if: github.event.inputs.dry_run == 'true'