feat(scripts): fleet-status — freshness report over recorded input-hashes - #305
Merged
Conversation
…shes (#304) Rung 4 of the carried-forward ladder (#292): the rule-14 comparison. containers/scripts/fleet-status.sh derives every static target's registry ref from the graph's context column (dot-safe — target names mangle models/gpt-5.4), reads eval.input-hash from the image config at a tag via imagetools inspect --format '{{json .Image}}' (labels live in the per-arch config, never the index; both manifest-list and single-arch shapes handled, attestation entries ignored), and classifies each image fresh / stale / unlabeled / absent — everything non-fresh is 'changed' under rule 14 and is what the next release must rebuild or retag. Combos are deliberately not read: a combo is stale iff a parent is (the hashes are derived), so ~150 leaf reads cover the ~5,500-combo fleet. .github/workflows/fleet-status.yml (dispatch-only, packages:read) runs the sweep against any tag and writes a per-verdict summary + stale warnings — the report #233 wanted, now keyed on content instead of build dates. Report-only; nothing gates. tests/static/fleet_status.rs proves every verdict and read shape offline by stubbing docker on PATH: fresh via a manifest list with an attestation entry, stale via a single-arch config, unlabeled, absent, plus the dotted-model ref map, over the real repo's 153 targets. Signed-off-by: Elron Bandel <elron.bandel@ibm.com>
This was referenced Aug 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #304. Rung 4 of #292's migration path (rules #293, hash primitive #298, label stamping #303).
What
The rule-14 comparison — the fleet's freshness becomes observable:
containers/scripts/fleet-status.sh— for every static bake target: derive the registry ref from the graph's context column (the dot-safe join key — bake target names manglemodels/gpt-5.4), readeval.input-hashfrom the image config at a tag, classify fresh / stale / unlabeled / absent. Everything non-fresh is "changed" under rule 14 — the set the next release must rebuild or retag (rung 5's input)..github/workflows/fleet-status.yml— dispatch-only,packages: read: runs the sweep against any tag, writes a per-verdict summary + a collapsible non-fresh list, warns on stale. Report-only; nothing gates. This is the report feat(release): end-of-run fleet inventory report (completeness + freshness) #233 wanted, keyed on content instead of build dates.tests/static/fleet_status.rs— offline (stubsdockeron PATH): proves every verdict and every registry read shape — manifest list with attestation entries (labels live in the per-arch config, never the index — feat(release): incremental combos — skip unchanged via a content-hash tag #239's measured trap), single-arch config object, labeled-but-hashless, absent — plus the dotted-model ref map, over the real repo's 153 targets.Design notes
imagetools inspect --format '{{json .Image}}'yields a platform-keyed map for manifest lists and a bare config for single-arch images; the jq filter selectslinux/amd64 // linux/arm64or falls through, ignoringunknown/unknownattestations.fleet-hashrun — graph and hashes share row order, so the join is apaste; inspects fan out overxargs -P.unlabeled/absent— which is exactly what rule 14 says it should).Rules checked against
.agents/contributing/RULES.md1–3 (resolves drift drift: delivery/RULES.md#14 — nothing compares recorded input-hashes against the repo (fleet freshness unobservable) #304; code-only; this section)..agents/delivery/RULES.md13–14 (implements the comparison; the retag act is rung 5), 5 (report-only — no publish path).tests/static/RULES.md1–3 (stubbed-docker test is offline, ~3.5s, never ignored)..agents/RULES.md7–8 (bash + jq + xargs; no new dependencies).