Skip to content

store, server: delete TaskApplier #714

Closed

Description

@rakyll

We don't need TaskApplier. AX is an imperative system for provisioning — the declarative style is only for task execution, not for provisioning. If an actor cannot be created, we return an error directly to the client rather than driving task-row state transitions through a transactional Apply state machine.

Why

  • Task handlers in internal/server/server.go already serialize mutations per task with s.locker.Lock.
  • TaskApplier (Apply, GetTaskVersion, TaskVersion, ApplyFunc, DeleteTaskVersion) maintains a second write path alongside store.Store (SaveTask, UpdateTaskStatus, DeleteTask), including row-level FOR UPDATE transactions, insert-collision retries, generation reconciliation, and the TaskApplierForStore fallback adapter.

Scope

  • Remove TaskApplier, TaskVersion, TaskKey, ApplyFunc, DeleteTaskVersion, and PrepareTaskVersionForApply / OverlayTaskGeneration (internal/store/task_apply.go, internal/store/task_version_normalize.go, internal/store/task_apply_test.go); keep StoredStatus if still needed for scrubbing live actor fields before writes.
  • Remove backend implementations and tests: internal/store/memory/task_apply.go, internal/store/postgres/task_apply.go, and TestTaskApplier*.
  • Remove internal/server/task_applier.go, server.Options.TaskApplier, and its wiring in cmd/ax-server/main.go.
  • Have internal/server/server.go use store.Store directly under the task lock.
  • Update AGENTS.md.

Related

Activity

  1. added this to the v0.4.0 milestone on Nov 23, 2026
  2. self-assigned this
    on Nov 23, 2026
  3. added a commit that references this issue on Nov 23, 2026
    5b04a09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions