Migrate workflow, intake, and task lifecycle consumers #1145

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

Migrate internal/domain/workflow and work-intake/task-lifecycle consumers onto the narrow State Store contracts (authority: docs/prds/state-store-contract.md). PREREQUISITE: the ratified type/interface relocation so internal/domain/workflow imports no internal/store (Task/Status/Source and the consumer-owned workflow.Store interface move into internal/domain/workflow, superseding store.WorkflowStore). Replace direct internal/store usage with the contract facades; preserve transition atomicity expectations, retry/park/dead behavior, task deduplication, workflow handoff, event/history writes, and agent/container callbacks. Keep domain packages free of infrastructure imports and add focused regression tests for each migrated path. NOTE: internal/store is a transitional compatibility location only; its long-term infrastructure home is internal/infrastructure/store (see docs/architecture/dependencies-and-contracts.md).

Close reason

Re-closed after bd github sync reverted status (2026-09-07); same evidence as the original close: internal/domain/workflow imports no internal/store symbol in production code, daemon.Daemon.Store is sourced from b.stateStore, confirmed by TestBuildDaemonRoutesTaskStoreThroughStateStore.


Imported from beads archie-core-8cda.4.5 · GitHub #759 · type task · priority P2 · created 2026-09-06 · closed 2026-09-07

Migrate internal/domain/workflow and work-intake/task-lifecycle consumers onto the narrow State Store contracts (authority: docs/prds/state-store-contract.md). PREREQUISITE: the ratified type/interface relocation so internal/domain/workflow imports no internal/store (Task/Status/Source and the consumer-owned workflow.Store interface move into internal/domain/workflow, superseding store.WorkflowStore). Replace direct internal/store usage with the contract facades; preserve transition atomicity expectations, retry/park/dead behavior, task deduplication, workflow handoff, event/history writes, and agent/container callbacks. Keep domain packages free of infrastructure imports and add focused regression tests for each migrated path. NOTE: internal/store is a transitional compatibility location only; its long-term infrastructure home is internal/infrastructure/store (see docs/architecture/dependencies-and-contracts.md). ### Close reason Re-closed after bd github sync reverted status (2026-09-07); same evidence as the original close: internal/domain/workflow imports no internal/store symbol in production code, daemon.Daemon.Store is sourced from b.stateStore, confirmed by TestBuildDaemonRoutesTaskStoreThroughStateStore. --- _Imported from beads `archie-core-8cda.4.5` · GitHub #759 · type task · priority P2 · created 2026-09-06 · closed 2026-09-07_
sam added the mediumtask labels 2026-10-27 13:39:12 +00:00
sam self-assigned this 2026-10-27 13:39:12 +00:00
sam closed this issue 2026-10-27 13:39:12 +00:00
sam added a new dependency 2026-10-27 13:42:16 +00:00
sam added a new dependency 2026-10-27 13:42:16 +00:00
sam added a new dependency 2026-10-27 13:42:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1145