Skip to content

A qualified bed address reaches FilterBox as its NAMESPACE: pod bed deploys fail at prepare-venue with unknown box "openclaw" #28

Closed

Description

@aitrawog

A qualified bed address reaches FilterBox as its NAMESPACE, so any pod bed deploy fails at prepare-venue with unknown box "openclaw"

Reproduced 2026-10-14 running the openclaw.check-openclaw-pod bed from the umbrella root.

$ charly -C <umbrella> check run openclaw.check-openclaw-pod
[image-build] PASS after 6m16.265s
[deploy-add]  FAIL after 8m20.979s: exit 1: charly subcommand exited 1
charly: error: command "deploy": deploy-dispatch add: deploy plugin: deploy-dispatch add: prepare venue:
  InvokeProvider deploy:pod op=prepare-venue: rpc error: code = Unknown desc = plugin-deploy-pod
  prepare-venue: build-generate-resolve: rpc error: code = Unknown desc = InvokeProvider build:generate
  op=resolve: build generate resolve: scoping generation to requested boxes: unknown box "openclaw"

Mechanism, traced to the emitter by reading the modules

sdk/deploykit/graph.go:309
    func FilterBox(order []string, requested []string, boxes map[string]*buildkit.ResolvedBox) ([]string, error) {
        for _, name := range requested {
            if _, ok := boxes[name]; !ok {
                return nil, fmt.Errorf("unknown box %q", name)        <- line 312
            }
        }

plugin-build/candy/plugin-build/resolve.go:192
    if len(boxes) > 0 {
        order, err = deploykit.FilterBox(order, boxes, resolved)
        if err != nil {
            return spec.BuildResolveReply{Error: errString(fmt.Errorf("scoping generation to requested boxes: %w", err))}, nil
        }
    }

So FilterBox was called with a requested-boxes list containing the string openclaw and a resolved map with no such key.

openclaw is exactly the part a split of the qualified bed address returns first. The bed is addressed openclaw.check-openclaw-pod — namespace openclaw, box check-openclaw-pod — and openclaw is what strings.Cut(name, ".") yields as the first half. The request therefore looks like it carries the namespace where a box identifier belongs, or the two sides of the comparison key boxes differently (qualified vs bare) — and the error names the mismatch without saying which side is wrong.

Why this is filed against plugin-build

FilterBox and its unknown box error live in the SDK, and resolve.go:192 is in this repo — but the string openclaw is supplied by the REQUESTER, not by FilterBox. The requester on this path is plugin-deploy-pod's prepare-venue (the chain above). Filed here because this is where the box scoping and its error surface; if the caller is the side that must change, this issue should move or be split, and that should be decided by reading req.Boxes' producer rather than by guessing.

Precisely the same distinction as opencharly/plugin-check#102, where the message lives in deploykit/container_resolve.go:40 but the wrong ref is computed by the caller. Two independent failures tonight, both "a name resolved in one phase and not the other".

The question that decides the fix

Are resolved's keys namespace-qualified or bare? If they are bare box names, the requester must send check-openclaw-pod and the fix is in the caller. If they are qualified, the requester must send the full address and the fix may be in the requester too — but if the requester can only know the namespace from its own addressing scheme, then the SCOPING step is where the qualification belongs. Reading the producer of req.Boxes and the keying of resolved answers it in one sitting; neither was read here, so neither is asserted.

Impact

Any pod bed whose address carries a namespace fails at prepare-venue, i.e. the qualified-address form the umbrella's own charly.yml documents as the addressing convention (charly.check-k3s-vm, arch.check-arch-vm, openclaw.check-openclaw-pod, …). It blocks the R10 witness for opencharly/plugin-check#102 and, independently, it means a cold-path pod bed cannot go green.

Reproduced by dsh-opencharly; RCA posted with the mechanism, the emitter line, and the one unread question. No fix chosen and nothing muted.

Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

Activity

  1. self-assigned this
    on Oct 14, 2026
  2. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    STATUS — own-repo correction from tracing the op itself, so the row does not sit on the wrong repo.

    The op is implemented in opencharly/plugin-fleet. Searching the module cache for the op's own name:

    prepare-venue  ->  plugin-fleet/candy/plugin-fleet/deploy_target.go     (newest cached tag v0.2026286.700)
    

    The error chain names three things and none of them is the op's home:

    deploy-dispatch add -> deploy plugin -> prepare venue -> InvokeProvider deploy:pod op=prepare-venue
      -> plugin-deploy-pod prepare-venue: build-generate-resolve
      -> InvokeProvider build:generate op=resolve -> scoping generation to requested boxes -> FilterBox (sdk)
    
    • FilterBox and its unknown box error live in opencharly/sdk (deploykit/graph.go:312);
    • resolve.go:192 -- the call that supplies the requested list -- lives in opencharly/plugin-build;
    • the op named in the chain is implemented in opencharly/plugin-fleet, which is also where Boxes: does not appear in the handler's region -- so the requested-box list flows in from a caller rather than being built there.

    This issue was filed against plugin-build (where FilterBox is called) and both mentions in the text point at plugin-deploy-pod. Neither is the op's home. Fourth time tonight that a name inside an error message was not the name of the repo owning the behaviour -- the same lesson as deploykit/container_resolve.go:40 for opencharly/plugin-check#102: the message's emitter is not the defect's owner.

    What this changes: the next reading is plugin-fleet's prepare-venue handler and the level above it (deploy add -> dispatch -> prepare-venue), where the deploy's own box reference is turned into a requested-box list. That conversion is where a namespace could be used where a box identifier belongs -- and it is now one file away rather than three.

    No fix chosen, nothing muted, and this comment changes the row's ownership rather than its content.

    Agent: dsh-opencharly
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  3. added 2 commits that reference this issue on Oct 14, 2026
  4. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — fixed in opencharly/plugin-check#109 (merged, tagged v2026.287.1745).

    This issue reported that a qualified bed address reaches FilterBox as its NAMESPACE, so the deploy resolver rejected it: scoping generation to requested boxes: unknown box "openclaw" (sdk/deploykit/graph.go:312). The emitter and the caller were located as reported, and the wrong STRING was supplied by the bed runner in plugin-check: bedAdd handed charly deploy add the raw roster address, from which the resolver derived a bare namespace.

    The fix converts once, inside bedAdd, with the same helper every lookup uses:

    if len(args) > 0 && !isRemoteImageRef(args[0]) {  args[0] = spec.DeployKey(...) }   // bed_run.go:197

    Measured, on the disposable pod bed that produced this report:

    before: [deploy-add] FAIL  build generate resolve: scoping generation to requested boxes: unknown box "openclaw"
    after:  [deploy-add] PASS  errors: 0        and the deployment resolves as "openclaw/check-openclaw-pod" (the deploy key)
    the whole bed: PASS (steps=14), bed-rc=0, config/start/deploy-add all PASS
    

    Evidence: .dsh/ledger/evidence/bed-green-102-final/ in the umbrella (the run log, the deploy step log, the per-step summary). The issue is closed because its mechanism no longer occurs in a bed run — not because it was re-described.

    Agent: dsh-opencharly
    Assisted-by: dsh deepseek-v4.1-flash (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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions