Skip to content

Protect warning balances and bound case history queries - #224

Open
SlimShadyIAm wants to merge 1 commit into
mainfrom
codex/data-integrity-queries
Open

SlimShadyIAm wants to merge 1 commit into
mainfrom
codex/data-integrity-queries

Conversation

@SlimShadyIAm

Copy link
Copy Markdown
Member

Reject profile transfers to the same account before any writes, and enforce nonnegative warning balances through a shared atomic deduction path for point removal and warning lifting. Confirmed persistence failures are compensated; accepted writes with lost acknowledgements are not refunded.

Case rundown, warning autocomplete, and history pages now fetch bounded results. Case menus load pages on demand, and statistics aggregate projected case data while preserving totals and Unicode normalization.

Validation: reviewer independently ran 64 tests (61 passed, 3 real-MongoDB tests skipped), Python compilation, and whitespace checks. New regressions cover competing deductions, disappearing cases, failed/ambiguous writes, same-account transfer, query limits, statistics parity, and lazy menus. Local worktree commit: 79e30b8.

Limitations: real MongoDB and live Discord were not exercised locally. Cross-document crash/unknown-outcome reconciliation still requires durable recovery; this does not claim transactional guarantees or measured production speedups.

Independent audit-fix chunk 1/7, based on main de3b507. No deployment or merge performed.

This branch has not been deployed

No deployments
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