ci: publish @diagrid/n8n, which the release workflow packed and threw away #35
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.29) × (1 − Review Confidence (0.48)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.29 · 63 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.350
Diff Size
diff_size
0.249
Real PR Conversation Timeline
2 items
Approved
Approved these changes.
yaron2
CasperGN
The gap
packages/n8nmerged in #21 as a publishable package at 0.1.1. The release workflow bumps and packs by glob but publishes by name, and there were only two publish steps:| Step | Scope |
|---|---|
| Bump versions | glob
packages/— included n8n || Pack tarballs | glob
packages/— built an n8n tarball || Publish | hardcoded
agent-coreandagent-mastra|So a release run today would bump n8n's version, pack it, verify it, discard the tarball, then commit, tag
v$VERSIONand cut a GitHub release. The tag would claim a release the registry does not have — and npm versions are immutable, so there is no clean way back.Changed
Publish @diagrid/n8n, placed after core: n8n declares@diagrid/agent-core: workspace:and npm resolves that at install time, so publishing it before core would leave a package whose dependency does not exist.2. That literal went stale the moment a third package existed, and it fails in the quiet direction — an under-count makes a fully-published version look like a partial re-run, so the immutability error never fires and the operator finds out from the publish steps instead.packages/n8n/src/version.ts— itsTODO(n8n-integration)asked for exactly this. It was half wrong and the comment now says so: the bump and verify loops already globbed every package's version file, so this one was being stamped all along. Only the publish was missing.The first publish is still manual, and this step cannot do it
@diagrid/n8nis 404 on npm. Trusted publishing is configured on a package's own settings page, so the package has to exist before OIDC can be pointed at it — the same chicken-and-egg that made 0.1.0 of core and mastra a by-hand publish with no provenance.So the order is:
1. publish
@diagrid/n8nby hand once2. configure its trusted publisher —
diagridio/typescript-ai/npm-release.yaml, environmentnpm, matching the other two3. then run the workflow
Until step 2, this new step cannot authenticate. Its own comment says so, so the first failure explains itself rather than reading as a bug.
Verification
pnpm format:checkpasses. Worth recording why it initially did not: the first draft of the version.ts comment contained the literal glob for every package's version file, and the/inside it terminated the block comment — prettier reported it as an unterminated template literalpnpm test:unit: 274 passed.tests/n8n/orchestrator.test.tsfails, and 31TS2307errors appear forn8n-workflow/@n8n/db. Both confirmed identical with this change stashed, so both pre-date it — and the typecheck ones are exactly what the workflow's ownProvision n8n typesstep exists to resolveRelated: CAT-1729. This unblocks the one item still open there — a workflow run that proves OIDC end to end and produces the first provenance attestation.