two-account failover: active account goes STICKY — B stays primary after failover until it fails over back (supersedes #510 AC-4 decay) #865

Closed
opened 2026-08-26 02:29:39 +00:00 by ben · 1 comment
Owner

Ben's ruling 2026-08-26 (follows the five 2026-08-25 token-limited reporter parks on #722): the active Claude account is sticky — it should fail over to token B, and B should then BE the primary until it fails over back to A. Supersedes #510 AC-4's freshness fallback, whose hourly decay re-probed a hard-7d-exhausted A (guaranteed refusal per caller) and re-parked the whole host whenever that refusal met transient pressure on B.

Live probe evidence (2026-08-26 ~02:00Z): primary org 1ec8db77 7d-utilization 1.0, rejected until Thu 27 Aug 06:00 NZST; standby org ab3a93d3 allowed at 0.91. The failover pair itself is healthy — the decay was the defect.

Change: claude_active_account reads the marker letter, sticky, no TTL; recovery needs no timer because the resting account's window reset is picked up at the active account's NEXT limit refusal. Tests: superseded AC-4 block in .sandcastle/tests/limit-lib-test.sh rewritten to pin sticky-both-directions.

Ben's ruling 2026-08-26 (follows the five 2026-08-25 token-limited reporter parks on #722): **the active Claude account is sticky** — it should fail over to token B, and B should then BE the primary until it fails over back to A. Supersedes #510 AC-4's freshness fallback, whose hourly decay re-probed a hard-7d-exhausted A (guaranteed refusal per caller) and re-parked the whole host whenever that refusal met transient pressure on B. Live probe evidence (2026-08-26 ~02:00Z): primary org `1ec8db77` 7d-utilization **1.0, rejected** until Thu 27 Aug 06:00 NZST; standby org `ab3a93d3` **allowed** at 0.91. The failover pair itself is healthy — the decay was the defect. Change: `claude_active_account` reads the marker letter, sticky, no TTL; recovery needs no timer because the resting account's window reset is picked up at the active account's NEXT limit refusal. Tests: superseded AC-4 block in `.sandcastle/tests/limit-lib-test.sh` rewritten to pin sticky-both-directions.
Author
Owner

Landed as 6620f7ca — claude_active_account sticky both directions, superseded AC-4 test block rewritten (15 groups + 5 auth-guard scenarios green). Deploying to both drive hosts' checkouts now; the workstation's marker already says B, which sticky semantics keep until B itself fails over.

Landed as `6620f7ca` — `claude_active_account` sticky both directions, superseded AC-4 test block rewritten (15 groups + 5 auth-guard scenarios green). Deploying to both drive hosts' checkouts now; the workstation's marker already says B, which sticky semantics keep until B itself fails over.
ben closed this issue 2026-08-26 02:30:31 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#865
No description provided.