Repository navigation
Description
Docker storage can grow past the installer admission limit while routine fleet cleanup continues to report that no expired resources were found. This blocks configuration and engine upgrades indefinitely until an operator intervenes.
Read-only diagnosis on 2026-10-11 found a Docker filesystem at 81%. Reconciliation repeatedly passed configuration validation and then stopped at Docker filesystem must remain below 80% utilization.
Sanitized Docker accounting from that observation:
| Resource | Count | Reported size | Reported reclaimable |
|---|---|---|---|
| Images | 1,503 | 62.28 GB | 24.84 GB |
| Build cache | 232 records | 27.2 GB | 5.04 GB |
| Local volumes | 133 | 2.256 GB | 1.856 GB |
These are Docker's reported accounting categories, which can share layers. Do not sum them or treat reclaimable estimates as authorization to delete.
Installed engine was 791a15b8c474c6f1053237ff0b86b6b37cf0ac92. Current engine main fd1aa69daae8fa71f84e34cc112de1adf3156f09 still has no image/build-cache retention in scripts/cleanup.sh. It handles expired fleet-labelled inactive containers and volumes plus coordinated network reclamation. Health reports stale images/cache, but that does not reclaim disk space.
Three sampled Compose containers were still running approximately 12 to 13 hours after their associated GitHub workflow runs had finished. The sampled runs included cancellation and successful completion. The containers lacked the fleet managed/expiry labels consulted by routine cleanup. This is evidence of a cleanup/ownership gap, not proof that every old container is safe to remove. Age or a name alone must never authorize deletion.
Acceptance criteria:
- Define and document a bounded image/build-cache retention policy with disk headroom, age limits, and explicit ownership/admission rules. Keep the existing upgrade disk gate.
- Provide a dry-run that explains retained and eligible resources. Preserve active images, controller/runner releases needed for rollback, volumes with uncertain ownership, and active work.
- Coordinate applying maintenance with installer and workload activity. Do not use unrestricted
docker system prune, global volume cleanup, or deletion based only on a project/name prefix. - Detect and report workload leftovers associated with terminal CI runs. Any future removal needs independently verified run/task ownership and a concurrency-safe lifecycle contract; do not stop a running container merely because it is old.
- Prove scoped cleanup after success, failure, cancellation, and timeout, including the host layer when job teardown never executes.
- Verify that scheduled maintenance restores usable headroom and later reconciliation can proceed without manual global cleanup.
Related boundaries are described in host maintenance and the project standard. Existing #81 concerns network capacity, and #87 concerns APT caching; neither resolves this disk retention gap.
No resources were removed and no live policy was changed during diagnosis.
Recurrence observed on 2026-10-22
An authorized adopter recovery on engine 312d22d712d5a5e87bdb14796bf2c40f33d53f92 found Docker disk usage at 83%, rising to 84% when queued work resumed. Reconciliation validated the desired commit but again rejected the filesystem at the existing below-80% gate and reported ROLLBACK_UNVERIFIED outcome=unknown; systemd still reported successful service completion. No installer success or verified rollback is implied.
The legacy image metadata store contained 23,312 image records. Docker image-list calls exceeded bounded 15- and 45-second client waits while container inventory remained responsive. A read-only metadata inventory attributed 495 unused leaf-image candidates to independently verified completed CI runs after excluding all container images and retained fleet release images and their ancestors. The total record count is not a byte accounting result, and unattributed records were not inferred to be disposable from their age alone.
The network-headroom portion of this incident is recorded in #81. Routine cleanup still needs the retention and host fallback specified here, with an actionable distinction between deferred maintenance, successful execution without reclaimed capacity, and verified recovery below the admission threshold. Keep consumer task deadlines unchanged. Host operations and actual reclamation evidence remain separate from implementation acceptance.
Subsequent bounded recovery reclaimed approximately 8.74 GB net through non-forced image deletion under installer/maintenance coordination, using the owner's explicit authorization for unused CI images. It preserved containers, volumes, and existing current/recovery/container images with ancestry protection. Filesystem usage fell to 76%; a normal same-engine reconciliation rebuild later brought it to 78%. This is temporary operational relief, not completion of the retention implementation or proof that future workload churn stays below the installer limit.
Activity
Nickfost commentedon Oct 12, 2026
Storage admission and cleanup observations are tracked in #118/#120/#121 under #117. Reuse the implementation from merged PR #112; #111's live scheduled-proof acceptance remains separate.
Show the reviewed retention admission, measured disk/inode headroom, last cleanup outcome, deferred/protected resources, uncertainty, and remaining pressure where approved evidence exists. Keep estimates separate from completed removals and avoid summing overlapping Docker storage categories.
The UI cannot admit a shared daemon, change retention policy, prune, delete protected images, retire uncertainty, or invoke cleanup. Installer/proxy locking and checkpoint/current-image protection remain authoritative. Displayed status does not satisfy the required live scheduled proof.
Nickfost commentedon Oct 29, 2026
Current-source retention findings, 2026-10-29 UTC.
Installed engine312 has no image/cache retention. Current main 48f5d47 already includes PR112, aa9bbb2. Do not reimplement or infer activation from that merge. Storage removal still needs reviewed exclusive-daemon admission, compatible proxy, trusted current/checkpoint image proof and actual scheduled reclamation.
Candidate 94dedf9 fixes two remaining shared-code paths. Container diagnostics and expired-resource/network cleanup no longer depend on broad image/cache accounting. The same existing idle and installer/proxy/uncertainty gates protect the whole applying pass. Networks run before admitted storage, so an accounting/protection failure remains a failed service without suppressing the preceding network pass. No storage admission means no image/cache accounting query. Classic-builder images with surviving children are retained, avoiding known parent-deletion conflicts before eligible leaves and cache can be reclaimed. Later passes may select a parent after its last child disappears.
The new regressions failed on the prior source and pass on the candidate. So far 35 storage, 28 network, 61 health, 26 portable-image lifecycle and 33 desired-state tests passed, plus syntax, ShellCheck, local documentation links, commit convention and committed-source secret scanning. These are development checks, not complete exact-source acceptance or live-host proof. Full validation awaits actual merged PR157 integration and the recovery owner's explicitly released exclusive VM/adapter slot. The local controller race run also encountered an unchanged proxy-spool fixture deadline; its investigation is not being hidden or treated as success.
The all-runnable-work idle guard remains. Preserved running leftovers can still defer reclamation indefinitely. Labels and a terminal run alone do not authorize workload teardown. Broad Docker accounting can still fail on an admitted large store; the candidate isolates that failure from network recovery, rather than claiming image reclamation succeeded.
Documentation updated in HOST-MAINTENANCE.md and CONTROLLER-DESIGN.md. Template guidance tracking: RandomDevelopment/ci-fleet-config-template#44. This candidate is unreviewed and unmerged. No host mutation, retention activation, capacity change or consumer deadline change was performed here. SSH cleanup, measured headroom and scheduled/live acceptance remain with the operational recovery thread.
Nickfost commentedon Oct 29, 2026
Development-check follow-up, 2026-10-29 20:51 UTC.
The isolated branch is pushed at 795ab65. Cleanup implementation remains in 94dedf9. The added fixture-only commit waits for the HTTP transport's documented asynchronous upload-body close while the backend build response remains blocked. Its existing two-second bound and unfinished-build marker assertions remain. A deliberately retained descriptor is still rejected within that bound.
Pinned Go 1.27.2 controller race tests now passed in 61.421 seconds, 50 repeated upload-spool checks passed, and go vet passed. The earlier failed runs remain failed evidence; no deadline was increased to accept them. Embedded-template validation also passed its 110 policy tests and positive/negative initializer checks. Combined focused Python groups total 293 tests. ShellCheck, syntax, documentation links, commit convention and both proposed committed trees' secret scan passed.
This remains development evidence, not a complete local_validate result or host acceptance. Actual merged PR157 integration and the recovery owner's explicitly released single supported-adapter slot are prerequisites. Preserve PR157's reviewed 240-minute adapter ceiling and --timeout 10800, local CLI default 1800, ordinary/convention five-minute limits and existing cleanup budgets. No PR has been opened or merged, and no host operation was performed. Template #44 now records the current candidate head.
Nickfost commentedon Oct 29, 2026
Integration correction, 2026-10-29 UTC. The recovery owner reports PR157 run 40926498444 attempt 2 failed at 21:05:52, after complete fixtures, embedded-template and native APT/image acceptance passed. Subsequent cleanup requested storage accounting without retention admission, then rejected omitted resource lists. The earlier plan to wait for PR157's merge is superseded because cleanup candidate 94dedf9 is a prerequisite to its required check.
Fresh local and remote checks confirm a clean branch at 795ab65 with no unpublished or essential pending correction. The recovery owner is authorized to carry both authored commits into the existing PR157 branch. This thread will keep its branch fixed, open no duplicate PR, and launch no validation or host operations. Combined-source verification and review remain pending. PR157's 240/10800 infrastructure limits, the local CLI default 1800 and all cleanup budgets remain unchanged.
The patch skips accounting only when storage admission is absent. It does not accept incomplete accounting on admitted daemons or prove the parser supports the VM's exact response shape. The recovery owner is retaining that response and cleanup-residue evidence before bounded container-stage verification and a single complete supported-adapter run. The nine preserved runnable legacy workloads also remain a real scheduled-storage-maintenance blocker. Recovery owner's measured live relief and host participation are separate operational evidence, to be recorded by that owner; they do not establish this unmerged retention code or the listener repair is deployed.
fix(maintenance): keep storage failures out of network recovery
Nickfost commentedon Oct 29, 2026
Recovery evidence, 2026-10-29 22:02 UTC. The affected incumbent worker still runs engine312, whose installed daily cleanup does not perform image/default-builder cache retention. Its cleanup timer being enabled is not storage-retention acceptance.
Explicit operator-scoped recovery reclaimed 6,638,231,552 net filesystem bytes across the recorded passes. Disk usage fell from 84% to 77% immediately afterward. All 39 existing containers, all 80 volumes and 474 protected current/recovery images were verified intact. Active jobs subsequently resumed, and fresh disk use is 79%, with 22.2 GB available. No capacity or consumer workflow changes were made. The raw resource map and removal receipts are retained privately, not posted here.
Full validation run40926498444 attempt2 finished failed after native APT/image acceptance, because cleanup requested image accounting without retention admission and rejected the daemon's empty usage object. Prepared correction94dedf9 and its fixture follow-up795ab65 are integrated into existing PR157 at5d330931b86bf132964a9415715d4d7d71701994. Combined-source storage35/network28 tests, actual cleanup dry-run and all four real cleanup outcomes passed on the disposable VM. One complete supported validation is now running there, run40962536216 attempt1. No GitHub-hosted compute is used.
Operational retention remains open. Reviewed exclusive-daemon admission, current/checkpoint protection proof, compatible proxy, actual applying reclamation and a later scheduled pass still require evidence. The global idle guard remains, so preserved runnable legacy leftovers can defer scheduled maintenance. Manual reclamation does not close this issue.
Nickfost commentedon Oct 30, 2026
Operational recovery update, 2026-10-30 08:02 UTC.
Worker 01 remains on installed/runtime engine
312d22d712d5a5e87bdb14796bf2c40f33d53f92. Fresh access found disk back at 80%. A finite recovery selection authenticated six exact completed ASIC run attempts, then reused the existing locked scoped image-recovery path. It rechecked all container image references, image aliases, current/recovery protections and uncertainty markers before removal. No workload was stopped.The applying pass removed 1,088 known unreferenced CI image objects and safely declined six. Available space increased by 830,902,272 bytes, from 21,217,521,664 to 22,048,423,936 bytes; filesystem usage fell from 80% to 79%. All 39 containers, 80 volumes and 474 protected image objects were preserved and checked afterward. At 08:02:27 UTC the controller was running with restart count 207 and disk remained 79%. Private receipts, GitHub attempt proofs and the protected-resource comparison are retained. Recovery archive SHA256:
553a101cd4181920ef9ba46827bd32e9e3a1c346767221f95ebd20aaab8b6598.This is separately authorized immediate recovery, not automatic-retention acceptance. The installed engine still has its old daily cleanup and no admitted storage-retention policy; reconciliation remains held. PR157 is now merged as
840fb9be8a1c69404a5eebcf17855eff13c6c928after exact-head full validation. Actual merged-source image verification is running only on the disposable VM. Template PR45, the tested private adopter import and supported 01-then-02 rollout still precede deployment. Running/unknown legacy leftovers remain protected and can still defer applying maintenance. Later applying scheduled reclamation, sufficient headroom and reconciliation remain required.Nickfost commentedon Oct 30, 2026
Operational follow-up, 2026-10-30 18:18 UTC. The existing unchanged scoped image-recovery helper rechecked 25 exact unused ASIC output leaves against 19 completed run attempts and their creation windows, then applied under the installer and Docker-maintenance locks. It removed 230 eligible image objects and safely declined 60. Measured usage was 79,898,587,136 -> 79,800,025,088 bytes, available 21,232,320,512 -> 21,330,882,560 bytes, df 80% -> 79%, net reclamation 98,562,048 bytes. All39 containers,80 volumes and474 protected images were preserved. No workload retirement or volume removal occurred.
This is manual recovery, not scheduled retention. At18:35Z, fresh work on01 included three incumbent312 runner containers and a TF2 production-image job, and disk had returned to80%. The supported incumbent read-only installer check refused at the unchanged80% admission gate before runtime changes. Therefore sustained headroom and candidate image-import/proof margin are still unresolved. A separate bounded lookup of the previously identified145 cache IDs returned zero current records/eligible candidates. No uncertainty guard or admission limit was bypassed.
Engine840, actual template1bdef and private import d437 are merged. Exact840 native API1.52 export/import and inert-container identity checks now passed on fresh classic and containerd stores, empty and populated, at about121s and49s per complete pair under the unchanged180s limit. Full installer/compatible recovery, supported staged configuration/activation and applying scheduled reclamation remain outstanding. All running/uncertain resources and current/recovery images stay protected. Detailed verified evidence is retained privately outside Git; no private infrastructure or secret values are attached.
Nickfost commentedon Oct 30, 2026
Additional operational recovery evidence, 2026-10-30. The installed312 source had only two generated Python cache files beyond the142 tracked files, all of which matched reviewed312 exactly. The existing protected bytecode-repair helper removed those two extras and restored its stored release hash. Maintenance imports now use Python -B.
I then missed312's unconditional
compose build runner-image controllerwhen attempting to converge the accepted MAX2 baseline. I interrupted that legacy path before either original role image tag changed. Its protected checkpoint restored the original312 controller/runner IDs and prior configuration; all nine legacy workloads remained RUNNING and the volume inventory matched. This attempt does not establish a new engine or candidate acceptance and will not be retried.Scoped cleanup of that aborted operator build selected only12 newly created Reclaimable=true/Shared=false cache IDs under both coordination locks. It reclaimed685,473,792 net bytes within105.4s, preserved all20,291 Docker image objects,474 protected images,39 containers and80 volumes, and retained the three shared records. This is cleanup of the aborted operation, not additional fleet-retention acceptance. At19:06Z,01 was79%, used79,860,465,664 and available21,270,441,984 bytes;02 was77%. 01's import/proof margin remains small.
The stage-only configuration guidance now explicitly preserves observed incumbent runtime through manager staging and requires approved MAX2/MAX1 plus a compatible recovery target in the verified840 runtime before reconciliation writers resume. New exact-source validation/review is running for that documentation correction. All scheduled-retention and legacy-idle limitations remain open; no workload retirement or uncertain-resource deletion is authorized.
Nickfost commentedon Oct 30, 2026
Scoped worker01 recovery completion at 2026-10-30 19:35 UTC: unchanged protected-lock helper removed 1,070 eligible image objects from 678 independently proved legacy CI leaves and untagged ancestry; 16 removals were declined safely. Net reclamation was 349,601,792 bytes in 134.155s. All 39 containers, 80 volumes and 474 protected image objects were verified unchanged. Disk remained 79%, used 79,511,719,936 bytes and available 21,619,187,712 bytes.
Ownership was bound to 291 immutable completed job logs and 69 exact checked-out source revisions, with worker01 runner attribution and creation intervals. Twenty-six unproved leaves remained protected. No force/global prune, container/workload retirement, volume removal, consumer change or capacity increase occurred. Exported result and per-removal receipt remain in the private native840 evidence directory. A subsequent read-only comparison found no additional current image IDs that meet the same immutable-log proof requirements.
This is bounded operator disk recovery, not scheduled storage acceptance. Both workers remain on incumbent312. Private import PR105 and manager-staging PR106 are now merged after their own complete 16-stage runs and exact-head reviews, but isolated installation/recovery checks and sustainable import/proof headroom remain prerequisites for the supported 01 then02 rollout. All nine legacy worker01 workloads remain protected and may continue deferring automatic maintenance.
Nickfost commentedon Oct 30, 2026
Native disposable rehearsal finding on merged840, retained as a failed scenario: a valid disabled image-free312 installation with no controller container fails before checkpoint completion/drain/activation with
legacy checkpoint contains an invalid engine revision or managed image ID. Docker29.9.2docker inspect --format '{{.Image}}' ci-fleet-controller-1exits1 but writes a newline on stdout. The shell fallback inside capture_legacy_image_ids combines that failed output with the successful tag lookup, yielding a leading newline before the opaque ID. Original312 environment/state and role images remained unchanged. No production source or checkpoint was edited to pass this case.The distinct existing-controller route was then exercised with an explicitly stopped disposable fixture controller. Exact840 manager staging, activation, read-only check and actual format3 opaque checkpoint rollback passed while retaining the original fixture role IDs. This does not convert the absent-controller failure into a pass. Both live targets currently use existing active312 controllers; fresh presence/identity checks and the remaining rehearsal/headroom gates remain required. Native evidence will preserve both the failed absent-controller and scoped positive results. No live candidate test, workload retirement, budget increase or engine-selection change occurred.