Skip to content

Prioritize historical recovery reclassification - #38

Merged
droplister merged 1 commit into
mainfrom
codex/recovery-reclass-priority
Oct 29, 2026
Merged

droplister merged 1 commit into
mainfrom
codex/recovery-reclass-priority

Conversation

@droplister

Copy link
Copy Markdown
Member

Summary

  • process only plausible historical continuation transactions before the generic classifier-version backlog
  • keep SQL as a queue hint; the raw-transaction classifier remains the authority
  • bound concurrent R2/D1 reads to five and keep writes sequential
  • run 50 reclassifications at the start of each recovery maintenance invocation
  • persist completion of the one-time priority lane so later generic sweeps avoid repeated scans

Why

Classifier v2 is live and correct, but the generic queue contains about 501,000 transactions. Only roughly 35,000 transactions can contain the 2014 continuation outputs changed by v2. Prioritizing those makes the user-visible recovery set converge first without a bulk production rewrite.

Verification

  • production EXPLAIN QUERY PLAN: classifier-version index plus exact primary-key join
  • npm run check
  • npm test -w xcp-api (499 tests: 465 pass, 34 skipped, 0 fail)
  • Worker dry-run bundle: 752.8 KiB / 768 KiB

@droplister
droplister merged commit 2aeb548 into main Oct 29, 2026
2 checks passed
@droplister
droplister deleted the codex/recovery-reclass-priority branch October 29, 2026 02:01
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