Spaces:
Paused
Paused
Commit History
-
feat: add multi-master Team fill scheduler
ead7e93
-
feat(round-12 S7): multi team workspace pool + auto failover
新增 src/autoteam/workspace_pool.py — WorkspacePool 持久化 K 个 team workspace 互为冷备(active=1, warm/cold N-1)。主 workspace 连续探测失败 ≥ MASTER_HEALTH_FAIL_THRESHOLD (默认 3)秒切到 warm。register / set_active / mark_unhealthy / mark_healthy 全部 追加 transition_log,与 S1 default_machine 风格一致(原子写 + .bak 回滚 + lock-外 事件总线)。 admin_state.get_admin_email / get_chatgpt_account_id 改为路由 active workspace 的 admin_email / account_id;pool 空时回退原 state.json 读路径,单 workspace 模 式向后兼容。master_health 新增 apply_pool_health_signal helper:probe healthy → mark_healthy 重置 fail_count;subscription_cancelled / auth_invalid / workspace_missing / role_not_owner → mark_unhealthy 累计触发故障切换; network_error 视为瞬时不计入。cpa_sync 新增 get_active_sync_target helper + sync_main_codex_to_cpa 上报当前 active workspace identity。 测试 35 case 覆盖:基础注册/激活/idempotent/重复 id 拒绝、set_active 切换/降级、 mark_unhealthy 阈值前不切换 + 阈值触发 failover + 无候选 → active=None + force_failover、failover 候选选最旧 warm、mark_healthy 重置、transition_log 完整、原子写 .bak 回滚(模拟 os.replace 失败)、admin_state 路由 + …60afec4
-
feat: add admin session token import
b6bcc3c -
fix: 兼容 Windows 下的 UTF-8 配置读写
Co-authored-by: Claude <noreply@anthropic.com>d0b6cac
-
fix: get_team_member_count 失败兜底 + account_id UUID 校验 + rotate 超员自动清理
- get_team_member_count 返回 -1 时用本地 active 数兜底,加详细错误日志 - get_chatgpt_account_id 校验 UUID 格式,state.json 存了 user ID 时 fallback 到 .env - rotate 发现超员时自动清理多余的本地管理账号,优先移除额度最低的 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>a80afa0 -
feat: 支持管理员交互式登录与主号 Codex 同步
BestLemoon40b21ae