Relocate Task/Status/Source and define workflow.Store #1149
Notifications
Due Date
No due date set.
Blocks
Reference: sam/archie#1149
Reference in new issue
Block a user
PREREQUISITE to archie-core-8cda.4.2 (per docs/prds/state-store-contract.md 4 and 12 step 2). Move store.Task, store.Status*/store.Source*, and the 3-method workflow store interface out of internal/store into internal/domain/workflow (workflow.Task, workflow.Status, workflow.Source, consumer-owned workflow.Store, superseding store.WorkflowStore) so internal/domain/workflow imports NO internal/store. Update the 6 workflow production files (workflow.go, steps.go, triage.go, review.go, feasibility.go, implement.go), their tests, and the store tests/task construction (incl. TestRecordDispatchViaExplicitTx). internal/store then persists the domain types (infrastructure -> domain) and its Store satisfies workflow.Store. Do NOT implement the rest of migration-decisions 4 (Stage->StepExecution history, Attempt records, versioned Workflow defs) — that stays its own migration. Authority: docs/prds/state-store-contract.md 4/12.
Close reason
Re-closed after bd github sync reverted status (2026-09-07). Verified: workflow.Task/Status/Source and the 3-method workflow.Store interface (Update/Transition/InsertEvent) live in internal/domain/workflow/task.go; internal/domain/workflow imports no internal/store (its only reference is an external _test package integration fixture); TestRecordDispatchViaExplicitTx removed; internal/store persists the domain types (infrastructure depends on domain, correct direction).
Imported from beads
archie-core-8cda.4.8· GitHub #756 · type task · priority P2 · created 2026-09-06 · closed 2026-09-07