Skip to content

TASK: Connect Transaction Service to account reservation transport #182

Closed

Description

@ramioooz

Type: Task
Parent: #103
Epic: Sprint 3 - Internal Transfers and Event Consistency
Service: transaction-service
Priority: P0

Objective

Connect the transfer process manager to the governed account reservation command and outcome event transport.

Scope

  • Publish AccountReservationRequested.v1 when a transfer records its reservation action.
  • Publish AccountReservationReleaseRequested.v1 when ledger failure requires reservation compensation.
  • Persist commands in a transactional outbox with stable event identity, retry, lease, and duplicate-publication protection.
  • Consume AccountReservationAccepted.v1, AccountReservationRejected.v1, AccountReservationReleased.v1, and AccountReservationExpired.v1.
  • Validate governed headers and payload identity before invoking the transfer process manager.
  • Preserve TransferCreated.v1 behavior, event inbox deduplication, and ledger-driven completion.
  • Keep transport disabled by default and enable only through explicit SIT configuration.

Acceptance criteria

  • Reservation commands are emitted only after durable transfer workflow acceptance.
  • Replays do not create duplicate workflow actions or balance effects.
  • Rejection, expiry, and release transitions follow the governed saga contract.
  • Ledger failure waits for the reservation release fact before final transfer failure.
  • Invalid or conflicting events are rejected without corrupting transfer state.
  • ./mvnw verify passes.

Dependencies

This task must remain under parent story #103 and Sprint 3. Implement through a non-draft PR. Do not merge directly to main.

Activity

  1. self-assigned this
    on Aug 31, 2026
  2. ramioooz commented on Sep 1, 2026

    @ramioooz
    MemberAuthor

    Completed by merged Transaction Service PRs #11 and #12. The merged transport stack publishes reservation commands, consumes reservation facts, and carries governed ledger posting requests/outcomes with idempotent inbox/outbox behavior. The PRs report Maven verification and focused transport coverage.

  3. added theissue type on Sep 4, 2026
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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions