Skip to content

fix(binance): bound daily state recovery diagnostics - #272

Merged
Pigbibi merged 1 commit into
mainfrom
fix/binance-daily-state-20260913
Sep 13, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
fix/binance-daily-state-20260913

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

What changed

When a Binance cycle fails during the pure daily Earn preparation check, the runtime now releases only its own newly claimed owner when the order state is explicitly settled, no funding submission or pending funds occurred, and no post-load state write or side effect is present. Unknown orders and uncertain writes remain locked.

The read-only Earn diagnosis now performs a bounded Spot1 → Earn1 → Spot2 → Earn2 sample, records request ordering in memory, separates realtime reward growth from unexplained residuals, and keeps Firestore marker stability from masquerading as broker snapshot stability. BNB wallet diagnostics separately report row readability, visible rows, and window completeness; missing or invalid totals, full pages, duplicates, out-of-window rows, and non-BNB dividend rows remain unverified without discarding visible counts. Recovery documentation is synchronized.

Validation

  • PYTHONPATH=. .venv/bin/pytest -q — 865 passed, 91 subtests passed
  • .venv/bin/ruff check on changed Python files — passed
  • git diff --check — passed

No remote account diagnostics, runtime enablement, order, subscription, redemption, or other funds operation was performed.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit bd5056b into main Sep 13, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/binance-daily-state-20260913 branch September 13, 2026 11:17
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