BOLT-1268 P1 — idempotent publishWorkspaceProgramEvent (no re-executeBatch on already-published events)
blockedAgent: richie-engineer
Priority: 1
Branch:
winston/bolt-1268-p1-idempotent-publishPR: #12181
Linear: BOLT-1268
Phase 1 of BOLT-1268. Backend safety fix that ships independently of the UI work. Short-circuit publishWorkspaceProgramEvent when publishedAt is already set; do NOT re-run executeBatch on every batch (current behavior double-dispatches commands when a user hits Edit→Schedule on a pending event). Defensive Datadog log on duplicate publish attempt. Tests: first publish executes batches; second publish no-ops and returns the same event. File: domains/program/src/services/workspaceProgramEvent/publishWorkspaceProgramEvent.ts.
Event Timeline
created
status_change
queued → in_progress
subagent_spawned
spawn claim: bolt-1268-p1-idempotent-publish
failed
lease expired — re-queued for retry
in_progress → queued
status_change
queued → blocked
progress
PR #12181 opened. Commit 22a7579704. 8 new tests green. CI queued. Spawn correlation: dd1cbd97-b02b-4bec-9358-e7583f2b0ddb
status_change
blocked → in_progress
subagent_completed
subagent done: PR #12181 opened, CI pending, status=blocked awaiting review
failed
lease expired — re-queued for retry
in_progress → queued
status_change
queued → blocked