INNER CODE UNIT · Python

_report_dashboard_timeout_overrides

Soju06/codex-lb · app/main.py:467

async def _report_dashboard_timeout_overrides(settings: Settings) -> None:
    """Best-effort startup report on the dashboard-managed timeouts (C2-1).

    Names env aliases the dashboard shadows and logs (never raises) invariant
    violations of the effective values — a stored dashboard value can break a
    combination the environment alone satisfies. A snapshot read failure must
    not abort boot: the environment fallback stays in force until the cache
    recovers.
    """
    try:
        dashboard_settings_row = await get_settings_cache().get()
    except Exception:  # noqa: BLE001 - startup must not depend on the snapshot
        logger.debug("dashboard settings snapshot unavailable at startup; environment timeouts apply", exc_info=True)
        return
    warn_environment_shadowed_by_dashboard(dashboard_settings_row, settings)
    validate_timeout_invariants(effective_settings(dashboard_settings_row, settings), strict=False, log=True)
    # R2 spool retention: same warn-only shape. The environment alias alone can
    # sit below the replay floor with the dashboard column NULL, a state the

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…