Spaces:
Paused
Paused
Commit History
-
fix(round-12): wire up dead helpers + integration fixes (per audit reports)
Audit (research/review-integration.md + review-deep.md) found that round-12 landed helpers but never wired them into the production call path. This commit closes the loop: Critical - C1: _record_auth_repair_failure + _auth_repair_skip_reason + _auth_repair_reset now fire from reinvite_account 4 failure paths (no_bundle / plan_drift / plan_unsupported / oauth_phone_blocked), the success path resets state, and _reuse_one_standby skips accounts in auth_repair cooldown / paused. - C2: apply_pool_health_signal now fires from master_health.py:733 (_apply_master_degraded_classification) and api.py master-health endpoint, so 3 consecutive unhealthy probes trigger pool failover. - C3: cmd_rotate auto-downgrades ROTATE_CONCURRENCY>1 to serial (Playwright sync_api is not thread-safe across BrowserContexts). Comment corrected. Opt-out via ROTATE_CONCURRENCY_ALLOW_BROWSER_RACE=1 for mocked tests. Major - M1: sync_account_states 9 direct status writes routed through update_account …70a6b78 -
feat(round-12 S4): register dual-path with mail provider fallback
- mail/register_dual_path.py: RegisterPathRotator + classify_register_failure (OTP_TIMEOUT / INVITE_LINK_MISSING / DOMAIN_REJECTED 触发切换;OTHER 不切), 复用 S2 _FailureTracker 状态文件;聚合 RegisterPathExhausted + provider_chain_history. - mail/alias_reader_pair.py: AliasWithReaderProvider 把 alias(addy_io/simplelogin)写 + reader(maillab/cf)读组合成单 MailProvider,覆盖 alias forwarding 无 inbox 留白. - manager.py: 模块级 _get_mail_client_for_account / _resolve_mail_client_or_default, 让 _complete_registration / create_account_direct / create_new_account 三入口 接受 mail_client=None + acc= 路由,完全向后兼容. - register_failures.py: 新增 MAIL_OTP_TIMEOUT / MAIL_INVITE_LINK_MISSING / MAIL_DOMAIN_REJECTED category 常量;**extra 透传 provider_chain_history(旧记录 无该字段照样能读).schema 不动. - tests/unit/test_round12_s4_register_dual_path.py: 34 case 覆盖分类器 / rotator 7+ 分支 / alias-reader 分发 / register_failures 兼容 / manager 入口 mail_client=None.19162c0