Service Layer medium complexity mobilebackend
0
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

Writes delivery and read confirmation records to assignment_deliveries, both immediately when online and via the Mutation Outbox when offline. Also handles the coordinator-facing status aggregation query so the inbox status view reflects live confirmation state.

Feature: Encrypted Assignment Dispatch

assignment-confirmation-service

Sources & reasoning

Delivery and read confirmations replace manual coordinator follow-up calls. Separating this from the Encryption Service keeps confirmation lifecycle concerns distinct from crypto concerns and allows offline queueing through the shared Mutation Outbox without coupling crypto logic to sync infrastructure.

No source references — this artifact was included based on reasoning alone (see above).

Responsibilities

  • Write delivery confirmation on first successful sync of a new assignment
  • Write read confirmation when peer mentor opens assignment detail
  • Queue pending confirmations in Mutation Outbox for offline scenarios
  • Provide assignment status query for coordinator status view

Interfaces

recordDelivery(assignmentId, userId) → Future<void>
recordRead(assignmentId, userId) → Future<void>
getAssignmentStatus(assignmentId) → Future<AssignmentStatus>
getPendingConfirmations() → Future<List<PendingConfirmation>>

Related Data Entities (2)

Data entities managed by this component