eda: thread Playbook ID and Version for idempotency-ledger keying (gap-2 prereq) #445

Closed
opened 2026-10-27 13:36:21 +00:00 by sam · 0 comments
Owner

Prerequisite for the t2db.17 idempotency resolution. The shipped Playbook struct (internal/domain/eda/playbook/playbook.go) is {Trigger, Actions} with no ID and no Version, so a playbook_dispatches ledger keyed on (playbook_id, playbook_version, event_id) cannot be built. Add ID (stable path-relative identifier) and Version (content hash of the loaded file, recomputed on every load), both populated at load time. Mirror Binding.Version's purpose: pin dispatched-run provenance to the exact definition that was active when it fired.

Close reason

Verified landed: Playbook.ID (path-relative) and Playbook.Version (sha256 content hash) populated at load time.


Imported from beads archie-core-t2db.21 · GitHub #733 · type task · priority P2 · created 2026-09-04 · closed 2026-09-11

Prerequisite for the t2db.17 idempotency resolution. The shipped Playbook struct (internal/domain/eda/playbook/playbook.go) is {Trigger, Actions} with no ID and no Version, so a playbook_dispatches ledger keyed on (playbook_id, playbook_version, event_id) cannot be built. Add ID (stable path-relative identifier) and Version (content hash of the loaded file, recomputed on every load), both populated at load time. Mirror Binding.Version's purpose: pin dispatched-run provenance to the exact definition that was active when it fired. ### Close reason Verified landed: Playbook.ID (path-relative) and Playbook.Version (sha256 content hash) populated at load time. --- _Imported from beads `archie-core-t2db.21` · GitHub #733 · type task · priority P2 · created 2026-09-04 · closed 2026-09-11_
sam added the mediumtask labels 2026-10-27 13:36:21 +00:00
sam self-assigned this 2026-10-27 13:36:21 +00:00
sam closed this issue 2026-10-27 13:36:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#445