Skip to content

fix: journal carries the OMS order ids — the money key (D6)#123

Merged
emrebulutlar merged 1 commit into
mainfrom
feat/journal-oms-ids
Jul 10, 2026
Merged

fix: journal carries the OMS order ids — the money key (D6)#123
emrebulutlar merged 1 commit into
mainfrom
feat/journal-oms-ids

Conversation

@emrebulutlar

Copy link
Copy Markdown
Member

Summary

  • JournalTrade += takerOmsOrderId/makerOmsOrderId; JournalTerminal += omsOrderId. The AE keys holds by omsOrderId (placed pre-cluster-id); without these the feed could never find a hold. Cluster ids retained for ops/debug.
  • Hook sites already had the values (publishTradeExecution/publishOrderStatusUpdate params) — threaded through SettlementJournal signatures.
  • Consumer warning documented: iceberg slices share the parent's omsOrderId (slice FILLED ≠ exposure over); the AE-side omsManagedRelease flag handles it.

Test plan

  • Journal suites (SettlementJournalTest incl. new field asserts, writer + retention integration) green
  • JournalSchemaRoundTripTest extended for the new fields
  • make determinism 67/0 (journal dark = zero behavior change)

🤖 Generated with Claude Code

The Assets Engine keys holds by omsOrderId (holds are placed before a
cluster id exists), but the journal carried only cluster ids: settles
and terminal releases would never have found their holds. JournalTrade
gains takerOmsOrderId/makerOmsOrderId, JournalTerminal gains omsOrderId
(both available at the existing hook sites); the bridge maps the OMS
ids into the money commands.

Documented consumer note on JournalTerminal: iceberg slices share the
parent's omsOrderId, so a slice FILLED is not "the exposure is over" --
the AE suppresses feed releases for holds the OMS marks omsManagedRelease
(companion assets-side change).

Journal is dark; nothing recorded anywhere -- in-place schema edit.
Determinism 67/0 unchanged; journal + retention + round-trip suites green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@emrebulutlar
emrebulutlar merged commit 5db9a1d into main Jul 10, 2026
@emrebulutlar
emrebulutlar deleted the feat/journal-oms-ids branch July 10, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant