Skip to content

dew images: show repo locations (.meta sidecar) — #71 Part B #80

Description

@vedanta

Follow-up to #71 (Part A shipped dew images with name/project/size/last-packed/owner — all derivable, no sidecar change).

Part B adds the one field that needs persistence: the source repo's filesystem path (the image doesn't know where its repo lives).

Plan (per the decision recorded in #71)

  • Widen the per-image ownership marker <image>.id → a <image>.meta sidecar (yaml): id, project, repo_path, packed_at.
  • pack writes .meta (recording the repo path); the ownership check (Pack-time repo-binding: prevent cross-repo image clobber #70) reads .meta's id, falling back to .id for images packed before the upgrade.
  • dew images gains a repo-path column, flagging stale paths ((moved?)) when the recorded path no longer exists.

Caution

This touches the security-critical ownership path (#70), so test the .id.meta migration + fallback carefully. Keep .meta local-only (never synced). Treat it as a co-located cache, not source of truth — the filesystem (image + manifest) stays authoritative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliCobra command surfacehealthstatus / doctorsecurityPath safety / non-destructive / key safety

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions