Skip to content

fix(app): bound live WAL receipt retirement - #26461

Open
Git-on-my-level wants to merge 2 commits into
mainfrom
agent/m1-studio-codex-luna/79e2e13573cc
Open

Git-on-my-level wants to merge 2 commits into
mainfrom
agent/m1-studio-codex-luna/79e2e13573cc

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

What changed and why

Multica issue SCA-4875: committed live WAL receipt retirement now processes at most 128 receipts per pass, persists progress between passes and launches, and schedules coalesced low-priority follow-up after index writes. Completing the forward cursor range starts one persisted wrap pass, so receipts that become eligible behind the cursor are revisited after a restart. Retirement still requires matching durable bindings in both index generations and never deletes audio bytes.

Product invariants affected

  • INV-CAP-1

How it was verified

  • flutter analyze lib/services/wals/live_wal_receipt.dart test/unit/wal_orphan_recovery_test.dart via the M1 heavy-check wrapper — no issues found.
  • flutter test test/unit/wal_orphan_recovery_test.dart via the M1 heavy-check wrapper — 172 passed, 1 skipped.
  • make preflight via the M1 heavy-check wrapper — all 27 checks passed; the history-dependent failure-class ratchet skipped because this checkout is shallow.

Tests

The regression tests cover bounded retirement across launches, a receipt becoming eligible behind the cursor before restart with no later index write, recovery after a crash before the queued wrap pass, and termination after a wrap sweep when receipts remain ineligible. Audio bytes remain intact.

UI evidence

UI-Evidence: none -- Internal storage maintenance; no UI changed.

Failure class (fixes)

Failure-Class: FC-high-water-cursor-skips-unready-row

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T00:52:01.692310Z 7bfd915 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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