When an outage misses scheduled proxy collection jobs, do not call every old task a rerun. Freeze one plan, give every row one disposition, and keep “what was observed then” separate from a new current collection. Expire known-stale work; coalesce only an explicitly replaceable read-only snapshot with an exact equivalence key; preserve a historical job only from its retained, authorized input; HOLD uncertainty; then admit a small current queue.
This is for owners of authorized, read-only data collection or verification. It does not authorize a target, bypass a pause or access control, create historical observations, or promise proxy performance. Prefer an API, licensed export, approved direct path, or manual review when it answers the decision.
Classify before releasing anything
Make a frozen ledger with a unique row ID and unique stable job identity, declared planned order, deadline, kind, read-only flag, prior-effects status, and authorization reference. Validate before sorting. Duplicate IDs or duplicate stable identities reject the input; equal planned times are an ambiguity to HOLD. Unknown/invalid identity, deadline, authorization, kind, or boolean flag; non-read-only work; incomplete replacement evidence; or uncertain prior effect also stays HOLD. HOLD has precedence over expiry.
| First matching condition | Disposition | Reason |
|---|---|---|
| Identity, deadline, kind, flags, order, effects, or replacement evidence is unknown/invalid | HOLD | Do not guess, expire, coalesce, or refetch around uncertainty. |
| Known deadline is before recovery time | EXPIRE | Keep the audit row; do not call it delivered. |
| History has retained authorized input and a declared as-of time | PRESERVE_LOCAL_HISTORY | It may be handled locally as history, never filled by a current network fetch. |
| Current read-only work has a complete record | Candidate for exact coalescing and the bounded fresh queue. | It is not yet a delivery result. |
Coalesce only equivalent current snapshots
For a snapshot to replace another, both must be explicitly replaceable and read-only, and the declared snapshot identity, scope, required fields, and authorization must all match. A different authorization, market, field contract, or missing key is not equivalent. A newer row whose deadline already expired never suppresses an older useful row. Do not coalesce history, events, login mutations, writes, alerts, audits, or “similar-looking” results.
| Synthetic row | Decision | Why |
|---|---|---|
| S-old → S-latest | COALESCE | Both are current, read-only, replaceable snapshots with the same four-part key. |
| C-old and C-expired-newer | C-old remains current | The nominally newer row is expired; it cannot suppress C-old. |
| S-auth-mismatch | Separate current candidate | Its authorization differs, so it is not the same snapshot. |
| S-incomplete | HOLD | A missing scope prevents equivalence. |
Sort for audit; bound current admission
After validation, sort by the explicit planned order. Preserve that order as evidence. From the remaining current candidates, admit only the stated cap in that order; label the rest DEFERRED_CAP. The fixture assumes each admitted row dispatches at recovery time 100; that is accounting only, not a concurrency or rate claim. Recheck at dispatch and finish, and HOLD a missing or pre-dispatch finish time. Equality is fresh: time == deadline passes that check; time > deadline is late. A late finish is LATE_NOT_DELIVERED, not historical coverage or a useful fresh result.
Run the offline synthetic ledger
Download the Python standard-library fixture and run python3 proxy-backlog-recovery.py. It reads no files, environment, credentials, broker, or network; it is not a production recovery tool.
offline_synthetic_proxy_backlog_recovery
network_requests=0 credential_reads=0 file_reads=0 production_actions=0
recovery_now=100 fresh_limit=3 planned=18 input_order=deliberately_unsorted
planned_order=S-expired,C-old,E-uncertain,S-old,H-history,U-deadline,U-identity,P-price,S-latest,M-expired,C-expired-newer,S-auth-mismatch,S-incomplete,B-bool,D-before,F-future,T-tie-a,T-tie-b
ledger S-expired=EXPIRE reason=deadline_passed
ledger C-old=DELIVERED_SYNTHETIC reason=fresh_at_dispatch_and_finish
ledger E-uncertain=HOLD reason=prior_effects_uncertain
ledger S-old=COALESCE reason=newer_current_equivalent_readonly_snapshot
ledger H-history=PRESERVE_LOCAL_HISTORY reason=retained_input_at_declared_asof
ledger U-deadline=HOLD reason=unknown_or_invalid_deadline
ledger U-identity=HOLD reason=unknown_or_invalid_identity
ledger P-price=DELIVERED_SYNTHETIC reason=fresh_at_dispatch_and_finish
ledger S-latest=LATE_NOT_DELIVERED reason=expired_at_finish
ledger M-expired=EXPIRE reason=deadline_passed
ledger C-expired-newer=EXPIRE reason=deadline_passed
ledger S-auth-mismatch=DEFERRED_CAP reason=fresh_recovery_limit
ledger S-incomplete=HOLD reason=replacement_equivalence_incomplete
ledger B-bool=HOLD reason=invalid_boolean_flag
ledger D-before=HOLD reason=deadline_before_planned
ledger F-future=HOLD reason=planned_after_recovery
ledger T-tie-a=HOLD reason=planned_order_tie
ledger T-tie-b=HOLD reason=planned_order_tie
dispatch_finish C-old=100/101:ON_TIME P-price=100/108:ON_TIME S-latest=100/117:LATE
summary=EXPIRE:3 COALESCE:1 HOLD:9 PRESERVE_LOCAL_HISTORY:1 DELIVERED_SYNTHETIC:2 LATE_NOT_DELIVERED:1 DEFERRED_CAP:1 accounted:18/18
guards=PASS unique_ids_sorted_planned_order_hold_precedes_expiry_expired_newer_never_suppresses_equivalence_is_exact_history_is_local_only_cap_and_finish_recheck
All names, times, outcomes, and deliveries above are fictional. The example demonstrates an inclusive deadline boundary, a late finish, invalid booleans/deadlines, future plans, ties, uncertain prior effects, an expired newer snapshot, authorization mismatch, incomplete equivalence, and one cap deferral. It cannot verify a real schedule, source, authorization, retention policy, idempotence, queue semantics, routing, DNS, TLS, price, capacity, or business result.
Do not turn coalescing into coverage math. Here S-old coalesces into S-latest, but S-latest finishes late; that group contributes zero fresh deliveries. Coalescing does not repair a missed observation slot, recreate history, or guarantee that its replacement succeeds. Likewise, P-price is an explicitly permitted current observation in the fixture, not a replay of a past price. Do not divide delivered rows by admitted rows and call it success for the original plan.
Keep history and current collection separate
| Need | Required evidence | Safe result |
|---|---|---|
| Correct a past historical row | Retained authorized input and declared as-of semantics | Preserve the decision for separate approved local handling; this fixture executes nothing and authorizes no replay. |
| Know what a source says now | A separately authorized current task, current deadline, and admission capacity | A new observation with a new timestamp. |
| Missing retained input or unknown permission | No substitute | HOLD; a current fetch cannot fill a missed past price or snapshot. |
Use the production proxy incident runbook for containment and wider incident triage, the parser repair and replay plan for historical correction boundaries, and the decision-provenance guide for later explanation.
Discuss a bounded authorized future run
If the completed ledger still shows a permitted future workload with specific geographic or session requirements, review IPHTML residential proxy information and use the contact page to discuss only redacted requirements, deadlines, cap, region, and session semantics. This evaluates fit; it does not approve a target or promise recovery speed, availability, or results.
Sources and limits. Checked December 3, 2026: Microsoft’s Queue-Based Load Leveling pattern covers bounded consumption, queue growth, duplicate delivery, and ordering limits; AWS’s Avoiding Insurmountable Queue Backlogs discusses stale work and recovery choices. The policy, equivalence key, labels, and fixture are original editorial methods, not authorization, vendor configuration, or performance evidence.