fix(torghut): add tigerbeetle stable audit refs#9629
Merged
gregkonush merged 1 commit intoJun 2, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stable_refaudit payloads derived from cluster, account, source, kind, and source-signature inputs without changing existing transfer IDs.accounting_parity_only; payloads continue to markpromotion_authorityand runtime-ledger overrides as false.Related Issues
None
Testing
cd services/torghut && uv sync --frozen --extra devcd services/torghut && uv run --frozen pytest tests/test_tigerbeetle*.py tests/test_journal_tigerbeetle_order_events.py -q(125 passed, 1 warning)cd services/torghut && uv run --frozen ruff check app/trading/tigerbeetle_ids.py app/trading/tigerbeetle_journal.py app/trading/tigerbeetle_reconcile.py scripts/journal_tigerbeetle_order_events.py tests/test_tigerbeetle_ids.py tests/test_tigerbeetle_journal.py tests/test_tigerbeetle_reconcile.py tests/test_journal_tigerbeetle_order_events.pycd services/torghut && uv run --frozen ruff format --check app/trading/tigerbeetle_ids.py app/trading/tigerbeetle_journal.py app/trading/tigerbeetle_reconcile.py scripts/journal_tigerbeetle_order_events.py tests/test_tigerbeetle_ids.py tests/test_tigerbeetle_journal.py tests/test_tigerbeetle_reconcile.py tests/test_journal_tigerbeetle_order_events.pycd services/torghut && uv run --frozen pyright --project pyrightconfig.jsoncd services/torghut && uv run --frozen pyright --project pyrightconfig.alpha.jsoncd services/torghut && uv run --frozen pyright --project pyrightconfig.scripts.jsongit diff --checkScreenshots (if applicable)
N/A; backend ledger audit integration only.
Breaking Changes
None. Existing TigerBeetle transfer IDs are not rewritten; the stable-ref backfill only augments PostgreSQL ref payloads through the existing GitOps-run journal path.
Checklist