Spec Kit Component: trade-processor
Responsibilitiesβ
- Consume new trade events.
- Persist trade state transitions and position deltas.
- Publish account-scoped trade and position update events.
Covered Flowsβ
STARTUPF4
Requirement Coverageβ
Contractsβ
specs/001-baseline-uncontainerized-parity/contracts/trade-processor/openapi.yaml
Verificationβ
scripts/test-trade-processor-overlay.sh
Commit boundary (#461)β
Both baseline and pricing implementations register success notifications with the shared CommittedTradeEvents helper inside the Spring booking transaction. The helper captures booking values and publishes only in afterCommit, attempts both topics independently, and contains checked/unchecked notification failures. Direct nontransactional invocation fails before repository writes. Database failure and post-commit delivery failure must not share a retry/rebooking path.