[AAASM-2336] ♻️ (release-node): Listen for repository_dispatch from agent-assembly; remove retry workaround#66
Conversation
…; remove retry workaround
Companion to agent-assembly's notify-downstream job (AAASM-2336).
Replaces the AAASM-2328 retry-with-backoff workaround with explicit
event-driven cross-repo coordination.
Changes:
* on: push: tags: ['v*.*.*'] → repository_dispatch: types: [
agent-assembly-release-published]
* Resolve release tag: read from event.client_payload.release_tag
(sent by agent-assembly's notify-downstream job)
* gh release download: single attempt — no retry loop. Because
repository_dispatch only fires AFTER agent-assembly's Release
publishes, the binaries are guaranteed to be available.
* workflow_dispatch trigger kept for operator-initiated re-runs.
OPERATOR PREREQUISITE (already documented on the agent-assembly side):
The `CROSS_REPO_DISPATCH_PAT` secret must be configured in the
agent-assembly repo with `repo` access on this repo. Without that
secret, agent-assembly's notify-downstream job fails and this
release-node never fires.
Trade-offs vs AAASM-2328 retry workaround:
* No 20-minute polling: release-node now runs in ~5 min (vs
10-25 min with retry)
* No false-failure noise: release-node either runs cleanly or
doesn't run at all (vs sometimes-passing after multiple
retries)
* Deterministic ordering: agent-assembly publishes → node-sdk
consumes. No race.
Tracked: AAASM-2336 (supersedes AAASM-2328 workaround)
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Claude Code review — AAASM-2336 (node-sdk side)CI state25/25 SUCCESS — Notably: workflow-yaml CI doesn't exercise the new Scope vs. AC
Implementation choice notes
After this + companion PR merge + PAT configuredEnd-to-end release flow becomes:
Total: agent-assembly → node-sdk takes ~5 min after agent-assembly publishes (vs 10-25 min under AAASM-2328's retry workaround). VerdictReady for human approval and merge, paired with agent-assembly's PR #842. Either PR can merge first — if node-sdk merges first, the next tag push fires its old — Claude Code (Opus 4.7, 1M context) |



Description
Companion to agent-assembly's notify-downstream job (AAASM-2336). Replaces AAASM-2328's retry-with-backoff workaround with explicit event-driven coordination.
Changes
push: tags: ['v*.*.*']repository_dispatch: types: [agent-assembly-release-published]github.ref_namegithub.event.client_payload.release_taggh release downloadworkflow_dispatchfor manual re-runAfter this
🚨 PAT prerequisite
Document on agent-assembly companion PR —
CROSS_REPO_DISPATCH_PATmust be configured in agent-assembly repo before either side works end-to-end.Related
— Claude Code