package ports import ( "context" "errors" "git.cin.su/m/Assistant/contracts/work" ) var ErrAgentExecutorUnavailable = errors.New("agent executor unavailable") type WorkerStore interface { ExecutionStore LoadDispatchIntent(context.Context, string) (work.AgentDispatchIntent, error) ClaimNextDispatch(context.Context, string, int64) (work.AgentDispatchQueueItem, error) CompleteDispatch(context.Context, string, string, work.AgentDispatchQueueState, int64) error RecoverStaleClaims(context.Context, int64, int64) (int64, error) }