Skip to content

2.2 platform-cqrs

Sprint: Sprint 02 - Platform Core Libraries
Feature ID: 2.2
Subtasks: 2.2.1

Objective

Deliver "platform-cqrs" within Sprint 02 - Platform Core Libraries.

Dependencies

None beyond the subtask-level dependencies listed below.

Subtasks

2.2.1 CQRS marker and handler contracts

  • ID: 2.2.1
  • Title: Implement Request/Command/Query/Event and handler interfaces
  • Description: In com.telco.platform.cqrs: Request<R>, Command<R> extends Request<R>, Query<R> extends Request<R>, Event (marker), CommandHandler<C,R>, QueryHandler<Q,R>, EventHandler<E>, and a Unit singleton for void commands. No logic, no Spring, no annotations.
  • Business Purpose: The contract surface every domain service implements (ARC-03).
  • Inputs: PLATFORM-SPEC Section 3.
  • Outputs: CQRS interfaces and Unit.
  • Acceptance Criteria:
  • A sample Command<Unit> and handler compile against the contracts in a unit test.
  • Dependencies: none
  • Complexity: S

Acceptance Criteria

Each subtask above carries its own objective, testable acceptance criteria. This feature is complete when every subtask's acceptance criteria are met.

Deliverables

  • CQRS interfaces and Unit.

Definition of Done

  • All subtasks (2.2.1) completed and their acceptance criteria verified.
  • All listed dependencies satisfied.
  • Build and tests green per the global conventions in ../README.md (Section 3).