Skip to content

fix(bed): check-pod-cdi-userns pins an arch image tag the registry does not carry #103

Done

Description

@aitrawog

Category

category:verification

Type

type:fix

Remedy / files the remedy will touch

charly.yml (check-pod-cdi-userns's template image pin) and its setup

Cited design decision or org-rulebook rule (or none)

AGENTS.md R1

Classification

Non-blocking — genuinely separable; left unclaimed for a later session to pick up.

Evidence (verified: commands with output, file:line, measurements)

Measured 2026-11-27, with the plugin tree at origin/main (9217b70) AND at the
fix/keep-id-loader-path branch - the failure is identical on both, so it is not
caused by that change:

== config: write the quadlet from the resolved deploy
ensure-image: pulling ghcr.io/opencharly/arch:2026.323.1515
ensure-image: pull ghcr.io/opencharly/arch:2026.323.1515 failed: exit status 125
Error: unable to copy from source docker://ghcr.io/opencharly/arch:2026.323.1515
charly: error: command "config": ... image not found in local storage
== charly config rc=1

Registry check for that tag:

$ curl -H "Authorization: Bearer $TOK" https://ghcr.io/v2/opencharly/arch/manifests/2026.323.1515
http=404 {"errors":[{"code":"MANIFEST_UNKNOWN","message":"manifest unknown"}]}

$ curl -H "Authorization: Bearer $TOK" "https://ghcr.io/v2/opencharly/arch/tags/list?n=3"
{"name":"opencharly/arch","tags":["2026.307.1828"]}

So the tag the template pins (charly.yml:347, image:
ghcr.io/opencharly/arch:2026.323.1515) was never published (or has been pruned);
the registry carries only 2026.307.1828. charly config pulls the image at
config time when it is absent from the local store, so the bed fails before it
exercises anything.

Mechanism

The bed's deploy template pins image ghcr.io/opencharly/arch:2026.323.1515. That tag returns MANIFEST_UNKNOWN on ghcr; the registry lists only 2026.307.1828. charly config runs ensure-image, which tries to pull the image when the local store lacks it, so the bed dies at config with 'image not found in local storage' before exercising anything. It probably passed originally because the same tag was in the local image store then, and charly clean --images has since pruned it.

Missed control

No check verifies that a bed's pinned base image is actually resolvable from the registry; a local store hit hid the gap at the time the bed was written.

Blast radius

check-pod-cdi-userns only: it cannot run on a host whose local store no longer holds that tag, so it is not a usable regression gate even though the plugin's keep-id/userns contract depends on it.

Root fix

Pin the template at a tag that exists (or publish the pinned one from distro-arch) so charly config can resolve the image on a clean host; the bed then runs as the regression gate it was written to be.

Spike (its result, or none with the reason)

none: an image-resolution defect, reproduced identically on origin/main and on the fix branch (the control run rules out the change as the cause)

Surfaced while gating opencharly/plugin-deploy-pod#; the control run on origin/main fails the same way, so it is pre-existing.

Agent: cdi-audit · Claude Code session f760307f-53b4-4f48-87da-00f95e5300ed
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

Activity

  1. added
    category:verification
    type:fix
    on Nov 27, 2026
  2. aitrawog commented on Nov 27, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    CLAIM — the bed's base-image pin, and the assertion rewrite the same file owes.

    pod-cdi-keepid-bind pins ghcr.io/opencharly/arch:2026.323.1515, which the registry answers with MANIFEST_UNKNOWN, so charly config fails at ensure-image before the bed exercises anything. The repin to the tag the repo actually carries (2026.307.1828) lands together with the second half this file owes: the bed still asserts the RETIRED userns=host / User=0:0 shape and fails on UserNS=keep-id, while the merged contract (feat/keepid-cdi-spec-v2, D-HW-10) emits keep-id with the image user against the derived devices-only spec. One file, one bed, one gate.

    Agent: cdi-audit · Claude Code session f760307f-53b4-4f48-87da-00f95e5300ed
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)

  3. self-assigned this
    on Nov 27, 2026
  4. aitrawog commented on Nov 27, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED

    RESOLVED — fixed in #105 (3c5908f914674d344a73e316e15f224c26735dd0).

    The bed's subject now pins ghcr.io/opencharly/arch:2026.307.1828, the tag the repo actually carries, and the same change landed the assertion rewrite the file also owed: check-pod-cdi-userns had still required the retired userns=host / User=0:0 shape and FAILED on UserNS=keep-id, while the merged contract emits keep-id with the image user against the derived devices-only CDI spec.

    Proof on the merged tree: charly check run check-pod-cdi-userns → PASS (steps=6), every phase skipped: 0, pc-userns-keepid-user … PASS, exit=0 (summary .check/check-pod-cdi-userns/2026.331.1556/summary.yml), with the emitted unit read from disk as UserNS=keep-id:uid=1000,gid=1000 before and after the fresh rebuild.

    Agent: cdi-audit · Claude Code session f760307f-53b4-4f48-87da-00f95e5300ed
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:verificationtype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions