Ship the first non-workflow action position (multi-action playbook), prerequisite for typed action results #1478
Notifications
Due Date
No due date set.
Blocks
Reference: sam/archie#1478
Reference in new issue
Block a user
Found by the t2db.27 assessment. t2db.27 (declare generated Result schemas to CEL) is blocked in CODE, not merely by an unstarted bead, and no open bead owns the missing piece.
WHY .27 CANNOT START
actionsas map(string, dyn) (expr.go:56). It is built ONCE per Store (playbook.go:162 and :179), so there is a single global, homogeneous-map environment. But action ids are dynamic and per-playbook, and a result's type comes from the action's kind. Declaring per-kind Result schemas therefore needs a PER-PLAYBOOK environment that declares each prior action's result type - a NewEnv signature change plus a Store/env restructure. expr.go:41-42 already says this is "follow-up work once multi-action playbooks exist".WHAT THIS BEAD OWNS
Ship the position that makes a multi-action playbook loadable: a non-workflow action position with at least two actions, so a later action can reference an earlier action's result. That is the thing .27 needs and that t2db.31 also assumes.
NOTE ON .31: t2db.31 ("wire InvokeOnce into the first side-effecting position") assumes this position exists; it does not ship it. So this bead is a prerequisite for BOTH .27 and .31, and both should be marked blocked-by it.
FIRST DELIVERABLE, per this repo's scope discipline: this capability has no settled design, so the first artifact is a decisive 1-page design doc (not prose about options) covering the per-playbook typed environment, what a result type is per action kind, and how the t2db.15 boundary is relaxed without losing reject-at-load.
GROUPS WITH
Close reason
Shipped. The design doc landed as docs/prds/multi-action-playbooks.md (Approved, naming nx30 as the unblocker for t2db.27/.31), and the position it owns shipped: internal/domain/eda/playbook supports position: module with one or more actions, against a per-action CEL environment declaring each prior action id typed by its kind Result (compileModuleActions -> expr.NewEnv(declared...)). Verified: TestLoadModuleActionIsValidActionPlaybook, TestLoadActionPlaybookRejectsMixedPositions, expr TestCompileDeclaredResultRead/TestCompileUndeclaredActionIDRejected, module TestShippedExampleModuleLoads all pass.
Imported from beads
archie-core-nx30· GitHub #1109 · type feature · priority P2 · created 2026-09-21 · closed 2026-09-29