eda: playbook document + event coordinator, single-action workflow-kind dispatch #438
Notifications
Due Date
No due date set.
Depends on
Reference: sam/archie#438
Reference in new issue
Block a user
Seventh slice of docs/prds/eda-playbook-engine.md. Builds the rich playbook document shape (trigger + ordered actions with CEL 'when') and an event coordinator that dispatches it -- the first real consumer of t2db.14's expr package. Scoped tightly to what's already safe per this doc's own gating:
Design
Depends on archie-core-t2db.14 (expr package) -- do not start until it is closed and verified.
Acceptance criteria
A playbook YAML with trigger + one workflow-kind action + optional when loads successfully and dispatches to the correct registered workflow when trigger+when match. A playbook declaring 2+ actions is a reported load failure. A playbook with a non-workflow action position is a reported load failure. A when expression that compiles but evaluates false at dispatch time correctly skips dispatch (logged, not silently ignored). A when compile failure at load time is reported and the playbook is dropped (same collision-handling shape as prior slices). Existing workflow.Route()/label-binding tests (t2db.9-.12) are unaffected -- run their full test suites and confirm zero regressions. task check passes.
Close reason
Verified landed: internal/domain/eda/playbook (Store/Match/loadOne) plus boot.loadEDAPlaybooks.
Imported from beads
archie-core-t2db.15· GitHub #739 · type task · priority P2 · created 2026-09-02 · closed 2026-09-11