Skip to content

2026-10-28: Codex runners down, their pinned image deleted by Harbor's tag retention

Kind: reference (incident report)

Severity: warning · Status: resolved · Resolved by: operator agent · Duration: 0:49 from detection to resolution, 11:29–12:18 UTC (fault from 11:13:54, 1:04) · Taskbase task: #1975, #1977, #1972, #1973, #1980, #1981

Summary

PR #942 moved hetzner-mgmt's emilia-container-agent and miki-container-agent from 0.5.25 to 0.5.28, because Harbor's tag retention had deleted image v0.5.25. By the time it merged, publishing v0.5.29 had deleted image v0.5.28 too. The upgrade's Recreate rollout stopped both runners, the new pods cannot pull agent-runner:v0.5.28 ("not found"), and Helm's rollback to 0.5.25 cannot help either, because that image is gone as well. The fix, PR #961, moved the pins to 0.5.29, the one image version Harbor still held; both runners were back by 12:18:06. The cause, the retention rule, was changed on 2026-10-30 to keep 15 artifacts per repository (#1934).

Impact

  • Services: both Codex runners on hetzner-mgmt (agent-runners/emilia-container-agent, agent-runners/miki-container-agent) were down, 0/1 available, with their pods in ImagePullBackOff. The HelmReleases and their Flux Kustomizations were stuck in Reconciliation in progress (35 min timeout). The mac-mini ops-agent pins chart 0.5.28 too, so it would have failed the same way the next time its pod was rescheduled; PR #961 moved it too.
  • Users: the Emmalia and miki-research organizations had no Codex runner: their tasks waited unclaimed (miki-research until 12:00:35, Emmalia until 12:18:06).
  • Data: none. The runners keep no state that this affects.
  • Duration: 49 min from detection (11:29:03) to resolution (12:18:06, the second runner Ready); 1 h 4 min from the fault (11:13:54, the upgrade stopped the old pods).

Timeline

All times UTC, 2026-10-28.

Time Event Source
07:21 PR #942 opened: pins to 0.5.28, "which Harbor still holds" (#1920). #1934 raised for the retention rule, assigned to the owner commit 364186b, task #1934
08:00–08:08 agent-runner v0.5.29 published: images v0.5.29-arm64 (08:00:24), v0.5.29-amd64 (08:07:45), index v0.5.29/latest (08:08:33). Retention then removes image v0.5.28 Harbor artifact list
11:08:38 PR #942 merged (16e1f90) Git
11:13:54 Helm upgrades both releases to chart 0.5.28. Recreate stops the old pods. The new pods fail: failed to resolve reference "harbor.prod.skatzi.com/skatzi/agent-runner:v0.5.28": ... not found helm history, pod events
11:24:00 helm-controller's remediation rolls back to chart 0.5.25 (Rollback to 2 / Rollback to 4) helm history
11:24:00 Post-merge failure task #1973 created from helm-controller's UpgradeFailed for emilia-container-agent Taskbase
11:24:22 helm-controller retries the 0.5.28 upgrade (pending-upgrade) helm history
11:29:03 Detected: KubeDeploymentReplicasMismatch for agent-runners/miki-container-agent Alertmanager
11:30:04 Incident task #1975 created Taskbase
11:31 operator confirmed the alert still fires and is not silenced, and traced it to the missing image Alertmanager API, kubectl
11:35:46 PR #961 opened: pins moved to 0.5.29 commit d75f759
11:39:33 KubePodNotReady for miki-container-agent-7b98d9594d-l6clh; the emilia pod emilia-container-agent-8456c7d45b-9nj2n follows at 11:44:33. Incident task #1977 created at 11:40:34 Alertmanager, Taskbase
11:52:40 PR #961 merged (de6e0ae) Git
11:59:19 kustomize-controller: Kustomization agent-runner-miki-container-agent HealthCheckFailed at main@sha1:fc74a77 (health check failed after 35m0.045380168s: timeout waiting for: [HelmRelease/agent-runners/miki-container-agent status: 'InProgress']). Post-merge failure task #1980 created Flux event, Taskbase
11:59:20 kustomize-controller: Kustomization agent-runner-emilia-container-agent HealthCheckFailed at main@sha1:fc74a77 (health check failed after 35m0.053245969s: timeout waiting for: [HelmRelease/agent-runners/emilia-container-agent status: 'InProgress']). Post-merge failure task #1981 created Flux event, Taskbase
11:59:23 helm-controller's remediation of the retried 0.5.28 upgrade rolls back to chart 0.5.25 again (Rollback to 4 / Rollback to 6) helm history
11:59:44–11:59:45 Helm upgrades both releases to chart 0.5.29: Upgrade complete (miki v7 at 11:59:44, emilia v9 at 11:59:45) helm history
12:00:35 miki's 0.5.29 pod Ready; its Deployment 1/1 pod conditions
12:05:04 Alert resolved; Taskbase closes #1975 Taskbase
12:18:02 emilia's 0.5.29 ReplicaSet created, once its old pod had terminated (Recreate, grace period 1800 s) ReplicaSet
12:18:06 emilia's 0.5.29 pod Ready; both runners 1/1. Resolved pod conditions
13:15–13:25 operator (post-merge failure task #1972) verified the recovery, read-only flux, helm, kubectl, Alertmanager
13:35 operator (post-merge failure task #1973) checked emilia-container-agent again, read-only flux, helm, kubectl, Alertmanager
13:40–13:50 operator (post-merge failure task #1980) verified it again, read-only flux, helm, kubectl, Harbor API
14:05–14:15 operator (post-merge failure task #1981) verified emilia's recovery, read-only flux, helm, kubectl, Alertmanager, Harbor API

Root cause

Harbor project skatzi has a tag retention rule set in Harbor, not in Git (#1934): keep the 3 most recently pushed artifacts per repository. A multi-arch image is 3 artifacts (the index plus the amd64 and arm64 images), so each agent-runner release leaves exactly one image version in skatzi/agent-runner. Charts are one artifact each, so skatzi/charts/agent-runner still holds 0.5.27–0.5.29. Any pin older than the latest release therefore has a chart but no image.

1934 expected the 0.5.28 pins to last three more releases. They lasted one, because the rule counts artifacts, not releases. v0.5.29 was published between PR #942 being opened and being merged.

The runners use the Recreate strategy, so an upgrade stops the old pod before the new one has pulled its image. A pull that fails takes the runner down instead of leaving the old pod running. The rollback that upgrade.remediation does returns to a revision whose image is also gone.

What the agent did

The KubeDeploymentReplicasMismatch runbook says to read the Deployment's pods and events first. The operator made no writes to the cluster.

  1. kubectl -n monitoring port-forward svc/alertmanager-operated 9093 and curl -sG http://localhost:9093/api/v2/alerts --data-urlencode 'filter=alertname="KubeDeploymentReplicasMismatch"': the alert dc662b02865403ef is active, silencedBy: [].
  2. kubectl -n agent-runners get deploy,rs,pods: both runner Deployments 0/1, with their new ReplicaSets (11:13:55) on agent-runner:v0.5.28 in ImagePullBackOff.
  3. flux get kustomizations -A, flux get helmreleases -A: only agent-runner-emilia-container-agent / agent-runner-miki-container-agent and their HelmReleases are not Ready (Reconciliation in progress, Running 'upgrade' action with timeout of 35m0s).
  4. kubectl -n agent-runners get events for the miki pod: harbor.prod.skatzi.com/skatzi/agent-runner:v0.5.28: not found.
  5. Harbor API GET /api/v2.0/projects/skatzi/repositories/{agent-runner,charts%2Fagent-runner}/artifacts, with the namespace's pull robot: images v0.5.29 (index, -amd64, -arm64) only; charts 0.5.29, 0.5.28, 0.5.27.
  6. helm -n agent-runners history of both releases: 0.5.28 failed at 11:13:54 ("stalled resources"), rolled back to 0.5.25 at 11:24:00, retried at 11:24:22.
  7. Read agent-runner v0.5.28...v0.5.29: job_env (opt-in, no chart change), the Claude API key fallback at a Taskbase cap, a test deflake and docs. No chart values change, so the roll forward needs nothing else.
  8. No live write: the Flux Kustomizations' agent_runner_version comes from Git, and the parent Kustomization would revert a live patch within 10 minutes. The only way back is Git.
  9. PR #961: agent_runner_version 0.5.28 → 0.5.29 for both runners in cluster/hetzner-mgmt/agent-runners/kustomization.yaml, and the mac-mini ops-agent OCIRepository tag 0.5.28 → 0.5.29. scripts/render-manifests.py renders all clusters with every agent-runner workload on agent-runner:v0.5.29.

The KubePodNotReady incident #1977 was the same fault, raised by a second alert. Its operator run made no writes to the cluster:

  • Alertmanager API, filter=alertname="KubePodNotReady", filter=namespace="agent-runners": alerts for the miki and the emilia pod, active, silencedBy: []. kubectl describe pod, helm history, flux get helmreleases and the registry tag list (latest, v0.5.29, v0.5.29-amd64, v0.5.29-arm64) showed the same root cause.
  • It opened PR #963 with the same pin change before it found #961 merged, and cut #963 down to the Harbor retention note in components/agent-runner/README.md. Its duplicate follow-up #1978 was closed in favour of #1934.
  • At 12:22 and 12:30 the alert API returned no KubePodNotReady alert and no silence. Both HelmReleases were Ready on 0.5.29. It closed #1977 at 12:30.

The post-merge failure task #1972 (helm-controller's UpgradeFailed for miki-container-agent at 0.5.28) came from the same fault. Its operator run, read-only, made no writes either:

  1. flux get kustomizations -A --status-selector ready=false and flux get helmreleases -A --status-selector ready=false: both empty.
  2. helm -n agent-runners history of both releases, and the ReplicaSets and pod conditions of both Deployments: the timeline above from 11:59:23.
  3. Alertmanager API GET /api/v2/alerts with filter=namespace="agent-runners": no alerts.
  4. Harbor API GET /api/v2.0/projects/skatzi/repositories/agent-runner/artifacts, with agent-runners/harbor-pull-secret: v0.5.29 (index, -amd64, -arm64) still present.

The post-merge failure task #1973 (the same UpgradeFailed for emilia-container-agent) found the roll forward already live. Its operator run, read-only, made no writes either:

  1. At 13:35, the checks of steps 10–12 again, with the same results: both runner Kustomizations Ready at main@sha1:b05d7de3, emilia v9 deployed, no alerts. New: worker-1 still caches agent-runner:v0.5.24 and v0.5.25, so with imagePullPolicy: IfNotPresent a rollback pod scheduled there could start without Harbor, but on any other node it fails like the upgrade. The emilia runner logged starting ... version=v0.5.29 and registered runner=emilia-container-agent at 12:18:06.

The post-merge failure task #1980 (kustomize-controller's HealthCheckFailed for the Kustomization agent-runner-miki-container-agent) came from the same fault too. Its health check started at the 11:24:22 retry and timed out at 11:59:19, 4 s before the second rollback. The revision it names, fc74a77, is the merge of PR #939 (two docs files); it was only the source revision when the check began and changed nothing in agent-runners. Its operator run, read-only, made no writes either:

  1. flux get kustomizations -A at 13:40: about 25 Kustomizations not Ready at main@sha1:b05d7de3, each dependency '...' is not ready, behind cnpg-drill, which was already Ready at main@sha1:e83fa929. This was the dependency chain re-reconciling the new revision e83fa92 (a platform-docs image bump), not a fault. About 4 min later, flux get kustomizations -A --status-selector ready=false and flux get helmreleases -A --status-selector ready=false: both empty.
  2. kubectl -n flux-system get events for agent-runner-miki-container-agent: ReconciliationSucceeded every 10 min from 12:50:20, then DependencyNotReady until 13:45:00 during that chain. Its conditions: Ready=True ReconciliationSucceeded and Healthy=True Succeeded since 13:45:31, at main@sha1:e83fa929.
  3. helm -n agent-runners history miki-container-agent: v7 chart agent-runner-0.5.29+8f6ef5e00a8c deployed; the HelmRelease is Ready=True UpgradeSucceeded since 12:00:35.
  4. kubectl -n agent-runners get deploy,pods: both runners 1/1 on agent-runner:v0.5.29, 0 restarts (miki's pod since 11:59:46, emilia's since 12:18:02).
  5. Harbor API, as in step 13: images v0.5.29/latest, v0.5.29-amd64, v0.5.29-arm64 and charts 0.5.27–0.5.29. No newer release yet, so the pins still have their image.

The post-merge failure task #1981 (kustomize-controller's HealthCheckFailed for the Kustomization agent-runner-emilia-container-agent, 11:59:20) is emilia's twin of #1980: the same 35 min health check from the 11:24:22 retry, against the same unrelated revision fc74a77. Its operator run, read-only, made no writes either:

  1. flux get kustomizations -A --status-selector ready=false and flux get helmreleases -A --status-selector ready=false at 14:11: both empty.
  2. kubectl -n flux-system get events for agent-runner-emilia-container-agent: ReconciliationSucceeded every 10 min, one DependencyNotReady during the 13:45 dependency chain of step 15. Its conditions: Ready=True ReconciliationSucceeded and Healthy=True Succeeded at main@sha1:e83fa929.
  3. helm -n agent-runners history emilia-container-agent: v9 chart agent-runner-0.5.29+8f6ef5e00a8c deployed; the HelmRelease is Ready=True UpgradeSucceeded since 12:18:10.
  4. kubectl -n agent-runners get deploy,rs,pods: emilia 1/1 on agent-runner:v0.5.29 (ReplicaSet 559f9856b7, 12:18:02), pod 3/3 Running with 0 restarts; the 0.5.28 ReplicaSet 8456c7d45b (11:13:55) is scaled to 0. The Deployment keeps Recreate.
  5. Alertmanager API GET /api/v2/alerts with filter=namespace="agent-runners": no alerts. Harbor API, as in step 13: still only images v0.5.29/latest, -amd64, -arm64 and charts 0.5.27–0.5.29.

Resolution and verification

PR #961 moved the pins to 0.5.29, and Flux reconciled it with no live write. Checked at 13:15–13:25 UTC by #1972:

  • flux get kustomizations -A --status-selector ready=false and flux get helmreleases -A --status-selector ready=false list nothing; agent-runner-emilia-container-agent, agent-runner-miki-container-agent and agent-runners are Ready at main@sha1:1749baa7.
  • helm -n agent-runners history: miki-container-agent v7 and emilia-container-agent v9, chart agent-runner-0.5.29+8f6ef5e00a8c, deployed, Upgrade complete.
  • kubectl -n agent-runners get deploy: both runners 1/1 on agent-runner:v0.5.29, Progressing=True NewReplicaSetAvailable.
  • Alertmanager: no alert in agent-runners. #1975 closed on the resolved notification at 12:05:04.
  • Checked again at 13:50 UTC by #1980: the same checks, with every Kustomization Ready at main@sha1:e83fa929, agent-runner-miki-container-agent Healthy=True, and both runners 1/1 with 0 restarts.
  • Checked again at 14:11 UTC by #1981: the same checks, with agent-runner-emilia-container-agent Ready=True and Healthy=True at main@sha1:e83fa929, its HelmRelease Ready on chart 0.5.29, and no alert in agent-runners.
  • Not checked: the mac-mini ops-agent, whose cluster this runner cannot reach. Its OCIRepository names chart 0.5.29.

Rollback evidence

helm-controller's upgrade.remediation (strategy: rollback) ran three times and never brought a runner back:

Release Failed upgrade to 0.5.28 Rollback to 0.5.25 Upgrade to 0.5.29
miki-container-agent v3 11:13:54 (stalled resources: Deployment status 'Failed'), v5 11:24:22 (timeout waiting for: Deployment status 'InProgress') v4 11:24:00, v6 11:59:23 (superseded) v7 11:59:44 deployed
emilia-container-agent v5 11:13:54, v7 11:24:22 (same errors) v6 11:24:00, v8 11:59:23 (superseded) v9 11:59:45 deployed

The rollbacks succeeded as Helm actions but could not restore service: the 0.5.25 revision names image agent-runner:v0.5.25, which Harbor had deleted too. A pod only starts on it where a node still has the image cached (imagePullPolicy: IfNotPresent). The chart has no CRDs and the runners keep no state, so nothing else needed rolling back, and rolling forward was the only way out. While Harbor's rule stays as it is, a rollback to any older agent-runner chart meets the same missing image.

Follow-ups

  • Post-merge failure task #1973 needed no rollback or further fix: the roll forward in PR #961 resolved it.
  • 1934 (done 2026-10-30): the owner changed Harbor's skatzi retention rule from the 3 to the 15 most recently pushed artifacts per repository, about five multi-arch releases, and checked with a dry run that every deployed tag is kept. The rule is recorded in the Harbor component docs (PR #1073). components/agent-runner/README.md says how far back a runner pin may lag.

  • The runners have since moved on to agent-runner 0.5.31: miki in 04d10dc, emilia in PR #1042 (2026-10-30), and the mac-mini ops-agent OCIRepository tag in c28686f.

References

  • Alerts: KubeDeploymentReplicasMismatch, runbook; KubePodNotReady, runbook
  • Taskbase incident tasks: #1975 and #1977; post-merge failure tasks #1972 and #1973 (HelmReleases), #1980 and #1981 (Kustomizations)
  • Runs: the operator runs of #1975, #1977, #1972, #1973, #1980 and #1981
  • Pull requests: #942 (pins to 0.5.28), #961 (pins to 0.5.29), #967 (report resolved), #968 (#1973's checks), #970 (#1980 added), #972 (#1981 added), #963 (#1977 and the README note), #1042 (emilia on 0.5.31), #1073 (Harbor retention rule documented)
  • Runbook sections: none of the ops runbook fits: this is not a Renovate upgrade

Open questions

  • When exactly Harbor's retention deleted image v0.5.28. Its execution log needs a Harbor admin; the pull robot only sees the artifacts that remain.