- app_run_locator: default a missing status_code to None (fail closed -> raise) rather than 200, so a malformed response object can never be treated as a successful run list. - app_run_locator: drop the unused `_now` parameter (dead/misleading — the floor is derived solely from since_iso) and simplify the redundant two-step `_sleep` indirection to a single resolution. - github_app._parse_expires_at: normalise a naive parsed datetime to aware UTC so an offset-less expires_at cannot raise a bare TypeError in TokenProvider.token (bypassing the fail-closed GitHubAppError contract). - coordinator._app_dispatch_seams: use the module-level Path import instead of a redundant inline one. Follow-ups (left to respect the plan's "leave the gh _default_* seams untouched, additive only"): the floor/skew/poll scaffold is duplicated between app_run_locator and _default_run_locator, and the GitHub REST header dict is rebuilt in several places — both worth a later shared helper. Full suite 1526 passing; ruff clean. |
||
|---|---|---|
| .. | ||
| db | ||
| nodes | ||
| transport | ||
| __init__.py | ||
| api.py | ||
| billing.py | ||
| ci_fetcher.py | ||
| ci_gate.py | ||
| ci_watcher.py | ||
| coordinator.py | ||
| dashboard.py | ||
| deadline_timer.py | ||
| decisions.py | ||
| dispatcher.py | ||
| draft_pr_monitor.py | ||
| github_app.py | ||
| graph.py | ||
| invoker.py | ||
| invoker_multi.py | ||
| ledger.py | ||
| operator_cli.py | ||
| recovery.py | ||
| responder.py | ||
| resume_worker.py | ||
| state_store.py | ||
| status_page.py | ||
| task_model.py | ||
| topology.py | ||