Skip to content

An imported base box loses its project's defaults (build:); box validate passes, resolve fails 'build: field required' #67

Open

Description

@aitrawog

Category

category:delivery

Type

type:fix

Remedy / files the remedy will touch

plugin-build project resolution (inherit the imported base's resolved build: from its own project defaults); plugin-box validate (run the same resolution, so validate and resolve agree)

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

D-LAW-5 (fail loud at the source)

Problem

A box imported from another project loses that project's defaults:. charly box validate does not notice, and project resolution then rejects the box.

Evidence (2026-11-23, charly 2026.327.1010, built from charly bd82136f877c4002f2da6b7a6057f4540fd9b4a3)

A scratch project imports fedora: '@github.com/opencharly/distro-fedora:v2026.325.1900' and declares a box base: fedora.fedora with no build: of its own. distro-fedora's own box fedora has no build: either: it gets build: [rpm] from distro-fedora's project defaults: (charly.yml:26-32).

$ charly -C . box validate
charly box validate: OK — checked 420 candies, 99 boxes, 4 deploys, 6 distros, 7 builders; 0 warnings, 0 errors
$ charly -C . check run check-fedora-example-pod
charly: error: command "check": InvokeProvider build:project op=resolve: build project: resolving box "fedora-example-box": image fedora-example-box: build: field required (set in image, base, or defaults)

The same resolve error also aborts every other bed in that project (check-cachyos-example-pod included), because the whole project is resolved before any bed runs.

Two defects:

  1. The imported base's own project defaults: (build:) do not reach a box built on it, although the error message says a base's value is honoured.
  2. box validate reports 0 errors for a box that resolution rejects, so the validator and the resolver disagree.

Workaround in the session that found it

The consuming box declares build: [rpm] itself.

Agent: grievances-word-blind · Claude Code session 74a95641-000e-42f0-a677-43f5bcdf1d01
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

Activity

  1. added
    category:delivery
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:deliverytype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions