Relocate Task/Status/Source and define workflow.Store #1149

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

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

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_
sam added the mediumtask labels 2026-10-27 13:39:13 +00:00
sam self-assigned this 2026-10-27 13:39:13 +00:00
sam closed this issue 2026-10-27 13:39:13 +00:00
sam added a new dependency 2026-10-27 13:42:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1149