symfonic.diagnostics.runner¶
runner ¶
Legacy HMS audit orchestrator (v7.16, item 5); deprecated by CORE-389.
Imports every registered check coroutine from
:mod:symfonic.diagnostics.checks, invokes them in a stable order, and
aggregates the results into a single :class:AuditReport.
Network-sensitive checks (currently only check_postgres_dsn) run
last so the faster pure-introspection checks are not blocked by a
slow probe. When no_network=True (the default in CI), the
check_postgres_dsn short-circuits and emits an INFO that the probe
was skipped.
Three checks read a SymfonicAgent: _config, _orchestrator and
get_chat_model, so the audit is typed against :class:LegacyAuditTarget
rather than the engine class. The embedding-provider and consolidate-schedule
checks ignore the agent and read only the environment and the process's Celery
app. symfonic doctor does not use this runner and reproduces none of these
five checks: without --offline it lists each as UNKNOWN, and with
--offline it omits them.
CheckFn
module-attribute
¶
Type alias for the uniform check coroutine signature.
AuditRunner ¶
Invoke every registered check against an agent and aggregate results.
Deprecated (CORE-389): constructing one emits a DeprecationWarning
pointing at symfonic doctor; run() is unchanged.
Source code in src/symfonic/diagnostics/runner.py
run
async
¶
LegacyAuditTarget ¶
Bases: Protocol
What the legacy checks read from a SymfonicAgent; never checked at runtime.
resolve_no_network ¶
Return whether network checks should be skipped.
Precedence:
- If
explicit_flagis notNone, honour it verbatim. - Otherwise, check
CI=truein the environment.
Most CI runners (GitHub Actions, GitLab, CircleCI, Buildkite) export
CI=true; this gives the runner a sane default that doesn't
require adopters to wire --no-network into every job config.
Source code in src/symfonic/diagnostics/runner.py
run_legacy_checks
async
¶
The audit body shared by :class:AuditRunner and audit_hms; never warns.
Source code in src/symfonic/diagnostics/runner.py
warn_legacy_audit ¶
Emit the CORE-389 deprecation pointing entry at the native doctor.