Operational auth health checks in Factory
COMPLETED Последний исполнитель: CodexUpdated Factory’s native health monitoring to check subscription auth, validate provider credentials locally, preserve disabled profiles, persist status transitions, and display probe failures without overriding them with past task success. Validation: **8 tests passed**, including simulated expired Claude OAuth after successful execution. Compilation checks passed. [Acceptance record](docs/accep…
Attachments · 0 · locked
Action: compare the result with the expected outcome, then accept, request revision, or hold.
Технические детали · 2 файлов
Task ID FACTORY-HEALTH-20261106
Full expected result
Hourly self-contained Factory health checks detect expired Claude auth without paid tokens.
Full owner notes
Full recorded result
FACTORY_OUTCOME: COMPLETED
Updated Factory’s native health monitoring to check subscription auth, validate provider credentials locally, preserve disabled profiles, persist status transitions, and display probe failures without overriding them with past task success.
Validation: **8 tests passed**, including simulated expired Claude OAuth after successful execution. Compilation checks passed.
[Acceptance record](docs/acceptance/FACTORY-HEALTH-20261106.md)
Hourly timer unchanged. No billable requests, secret changes, service restarts or deployment performed. Auth status does not prove successful generation.
Instruction
Improve the EXISTING server-native AI Factory health monitoring, NOT ChatGPT automations. Existing systemd ai-factory-health-monitor.timer already runs hourly; keep it (hourly is better than requested daily). Scope /home/iovon/ai-factory/console/healthcheck.py, console/health_monitor.py, tests and documentation. Check executor operational readiness without invoking paid model generations or exposing secrets: Claude Code subscription auth via executors.claude_code.auth_status() with CLI auth status; Codex subscription auth status; Gemini CLI authentication only if safe non-billable check; DeepSeek and other providers validate configured credential presence and optional safe connectivity, with status clearly distinguishing installed/configured/authenticated/unknown from actually proven working. Preserve configured disabled states. Persist actual current probe results in health_checks and display them as authoritative: do NOT override an auth failure with an old successful task or CLI --version. Keep service/systemd timer intact; no new external automation. Record transitions to unavailable, no silent fallback or auto-repair. Include deterministic tests that simulate expired OAuth and verify persisted failure is visible even if prior execution succeeded; add tests/test_factory_health_auth.py and docs/acceptance/FACTORY-HEALTH-20261106.md. Avoid modifying other projects, live SaaS, tokens, secrets, systemd, scheduling or provider budgets. Never perform billable requests. Existing production Factory files may be modified ONLY within the listed health-monitor scope; do not restart services or deploy without explicit operator review. Do not mark tests passed without running them. User expects Factory itself to perform checks independently, not ChatGPT.
Dependencies: None
Executor: codex · Execution status: COMPLETED
Failure: None · Recovery: NONE
FACTORY_OUTCOME: COMPLETED Updated Factory’s native health monitoring to check subscription auth, validate provider credentials locally, preserve disabled profiles, persist status transitions, and display probe failures without overriding them with past task success. Validation: **8 tests passed**, including simulated expired Claude OAuth after successful execution. Compilation checks passed. [Acceptance record](docs/acceptance/FACTORY-HEALTH-20261106.md) Hourly timer unchanged. No billable requests, secret changes, service restarts or deployment performed. Auth status does not prove successful generation.attempt-1-verification.json (verification)attempt-1.txt (output)
Owner decision history
2026-11-06T22:53:55+02:00 · OWNER_TASK_APPROVED
{"actor": "owner", "notes": "Approved Factory-native health monitoring, no paid model probes or deployment"}