Skip to content

box validate reports OK for a project whose imported box the same binary refuses #95

Closed

Description

@aitrawog

Finding (R1)

charly box validate reports 0 warnings, 0 errors for a project whose resolved box set contains a box document that the SAME binary's schema refuses. Measured today, 2026-11-22.

Measured

A project (opencharly/pod-cdi, origin/main) whose import: block pins arch: @github.com/opencharly/distro-arch:v2026.325.1112. Its resolved box set is 11 boxes and includes arch.arch-test:

$ XDG_CACHE_HOME=<empty> charly box validate
…
charly box validate: OK — checked 131 candies, 11 boxes, 6 distros, 7 builders; 0 warnings, 0 errors
exit=0
$ charly box list boxes
arch.arch [testing]
arch.arch-builder [testing]
…
arch.arch-test [testing]
…
exit=0

That arch.arch-test — in the pinned tag v2026.325.1112 — is a document this binary refuses. Validated as its own project (the tag's own checkout):

$ cd <distro-arch v2026.325.1112> && XDG_CACHE_HOME=<empty> charly box validate
charly: error: … node arch-test:1:31
               #CandyValue.build: conflicts …
               #CandyValue.builder: field not allowed:
                   node arch-test:1:39
exit=1

The same binary, the same document text, one path reporting OK and the other failing.

Why it matters

The refusal is deferred to the first build of that box, where it surfaces as an opaque CUE disjunction far from the pin that caused it. A consumer that pins a namespace therefore gets a green box validate on a project it cannot build part of — the exact "green until something else notices" class the validate verb exists to prevent. It also makes a pin bump look cosmetic when it is not: nothing in the project's own validate output changes.

Ask

Decide the intended scope and make the two paths agree — either box validate validates the documents of the imported namespaces it has materialized (its own count already includes them: "11 boxes"), or the OK line says plainly that imported documents were not validated. Whichever way, a project should not be told "0 errors" about a document its own binary rejects.

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Nov 23, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED

    RESOLVED — fixed in #96 (merged).

    What the finding measured no longer reproduces on the current head: the same project (pod-cdi, its import: pinned back to v2026.325.1112) is refused warm AND with an empty XDG_CACHE_HOME, naming the imported file — the two paths agree.

    What actually made it possible, and is now fixed. validateCandyCUESchemas decided each candy inline and continued whenever it could not open a manifest — a rule that cannot see a document reported nothing, which is the shape a "0 errors" verdict takes when the document in question was never read. That decision is now candyManifestVerdict: an inline/synthesized candy (no manifest of its own, body gated at load) is still skipped, and a REMOTE candy with no materialized source directory or no readable manifest is an ERROR naming the candy and the path it expected. The change is locked by a test that fails with the remote arms reverted (mutation output in the PR), and the repo's disposable check-box-local bed ran green on a binary built from that source.

    The two new arms cannot be reached from authored configuration while materialization works — which is why the PR's tier is analysed on a live system and says so.

    Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
    Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions