Skip to content

[286] Add Reconciliation Job Runner#355

Merged
Mosas2000 merged 4 commits intoStellaBridge:mainfrom
ToryMic:fix/286-add-reconciliation-job-runner
May 3, 2026
Merged

[286] Add Reconciliation Job Runner#355
Mosas2000 merged 4 commits intoStellaBridge:mainfrom
ToryMic:fix/286-add-reconciliation-job-runner

Conversation

@ToryMic
Copy link
Copy Markdown
Contributor

@ToryMic ToryMic commented Apr 26, 2026

Summary

Add a scheduled reconciliation runner that records per-asset on-chain vs reported supply comparisons and exposes run history via an API.

Root Cause

The system had no scheduled reconciliation layer to detect and persist on-chain vs reported supply drift over time.

Changes

  • backend/src/workers/reconciliation.job.ts: add per-asset reconciliation processor with Redis lock + DB persistence
  • backend/src/workers/index.ts: schedule hourly reconciliation jobs for USDC/EURC
  • backend/src/database/migrations/007_reconciliation_runs.ts: add reconciliation_runs hypertable for historical results
  • backend/src/api/routes/reconciliation.ts: expose reconciliation run history/status endpoints
  • docs/reconciliation-workflow.md: document workflow and API

Testing

  • Reconciliation job unit test passes: �ackend/tests/workers/reconciliation.job.test.ts
  • All backend unit tests pass locally

Closes #286

Made with Cursor

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 26, 2026

@ToryMic Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ToryMic ToryMic force-pushed the fix/286-add-reconciliation-job-runner branch from 2cc5dc0 to 055dc7a Compare April 28, 2026 14:54
@ToryMic ToryMic marked this pull request as ready for review April 28, 2026 14:58
Copy link
Copy Markdown
Contributor Author

@ToryMic ToryMic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed

Copy link
Copy Markdown
Contributor Author

@ToryMic ToryMic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed

@Mosas2000
Copy link
Copy Markdown
Contributor

👀

@Mosas2000 Mosas2000 merged commit 2d6ff8e into StellaBridge:main May 3, 2026
8 of 15 checks passed
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.

Add Reconciliation Job Runner

2 participants