Repository navigation
Description
Help operators diagnose a worker failure from structured evidence that survives controller restarts and runner destruction.
Display controlled error codes, component, transaction phase, first/last observed occurrence where supported, evidence timestamp, recovery status, and relevant runbook links. Cover authentication/scale-set mismatch, Docker unavailable, disk admission, subnet reserve/exhaustion, runner exit, cleanup failures, and rejected or interrupted reconciliation.
Acceptance:
- Consume trusted transaction phase and sanitized rejection reason from fix(reconcile): distinguish pre-transaction rejection and retain the failure reason #110. Distinguish rejection before transaction start, verified rollback, unverified rollback, and genuinely unknown outcome.
- Show a continuing timer retry or successful systemd unit result without claiming reconciliation succeeded.
- Preserve applied revision and actual runtime evidence after a failed upgrade. Explain staged-manager and dependency failures from feat: Pin managed image base images and package inputs by digest for reproducible pinned-engine rebuilds #36/fix(upgrade): handle new runtime dependencies when an older manager executes the transition #113.
- Preserve uncertainty and deferred operations from network/storage maintenance; observations never authorize resource deletion.
- Correlate a failure to a job only when verified ownership establishes that association.
- Use controlled summaries and GitHub/runbook links initially. Raw controller logs may contain forwarded runner output and must not be exposed as if they were a safe health feed.
- Provide a bounded diagnostic export with an explicit field list, a preview, redaction tests, and no credentials, environment values, private URLs, source, command lines, or arbitrary logs.
- Diagnostic write/read/export failures do not block active jobs, controller cleanup, or reconciliation.
- Test missing evidence, persisted failures after restarts, stale evidence, and uncertain outcomes without manufacturing healthy status.
Depends on #117, #118, and #119. Used by #121. Coordinate with #110, #111, #113, and existing network-headroom observations in #81. Upstream fixes retain their own acceptance gates.
GitHub recommends external retention for ephemeral runner application diagnostics: self-hosted runner reference. Full log collection/display requires a separate access and retention design.
Activity