Skip to content

pod rebuild: a build cancelled by the dispatch context is reported as a bare signal: killed, with no cause #1322

Todo

Description

@aitrawog

Category

category:runtime

Type

type:fix

Remedy / files the remedy will touch

the pod rebuild dispatch's failure reporting (plugin-deploy-pod podRebuild -> charly box build) and, if the spike confirms it, the no-progress window the DEPLOY class gets

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

AGENTS.md R1 + R3 (a failure must name its cause; no blindness)

Classification

Blocking — it blocks the filer's own progress, so the filer claims it at filing and fixes it.

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

$ charly -C pod-strata update strata --build
--- Building cachyos.arch.arch ... (built)
--- Building cachyos.arch.arch-builder ... (built)
--- Building cachyos.cachyos ... (built)
--- Building pod-cdi.pod-cdi -> pod-cdi:2026.332.1017 (built)
--- Building strata (base pod-cdi:2026.332.1017; builders none) ---
charly: error: command "build": building strata: buildctl build ... --output ...strata_2026.332.1012.oci.tar: signal: killed: #1 [internal] load build definition from Containerfile
charly: error: command "update": ... charly box build strata: charly subcommand exited 1

buildkitd's log, same second:

time="2026-11-28T11:19:52+01:00" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Canceled desc = context canceled"

Ruled out by measurement: no oom-kill in the kernel log, 70 GB available, 513 GB disk free, buildkitd up 10 days (no restart). Concurrent context: another session's bed (charly-check-mcp-fixture-pod) stopped at 11:18:29.

Mechanism

charly -C pod-strata update strata --build ran four builds in one dispatch (cachyos.arch.arch, cachyos.arch.arch-builder, cachyos.cachyos / pod-cdi chain, then strata). The first three finished; the fourth was cancelled while buildkitd had not yet loaded its Containerfile, and the plugin surfaced the child's death as 'charly box build strata: ... signal: killed: #1 [internal] load build definition from Containerfile' - a message that names NEITHER that the build was CANCELLED BY THE HOST nor by which bound. buildkitd's own log at the same second says 'context canceled', so the cancellation is charly's, not an external kill.

Missed control

The rebuild path reports the plugin child's exit as the error verbatim; the idle/leaf bounds that CAN cancel a dispatch are named only on the host->plugin leaf path (invokeTyped names pluginLeafCap and CHARLY_PLUGIN_LEAF_CAP), not on the plugin->plugin dispatch that carries a build. And my own first read of the failure was 'killed, probably OOM' - refuted only by reading buildkitd's log.

Blast radius

every pod rebuild whose dispatch is cancelled mid-build, and every reader of the message: 'signal: killed' reads as an external/OOM kill and sends the next session hunting the wrong cause, as it did mine.

Root fix

Name the cause at the point it is known: the dispatch's cancellation must reach the operator as 'build cancelled: no host-visible progress for ' (or the leaf/absolute bound that fired), and the plugin must not flatten a cancelled context into the child's signal string. If the spike confirms the DEPLOY class gets the 90s no_progress window while the build makes no host-visible progress, extend the heavy window to the build-carrying op the way ClassStep already has it.

Spike (its result, or none with the reason)

not yet run: the spike set is (a) retry with CHARLY_PLUGIN_NO_PROGRESS=15m to isolate the deploy-class window, (b) retry plain on a quiet host to isolate contention; both run after the openwebui rebuild finishes. Filed blocking per the operator's direction that an undeployable CDI pod is a blocker, claimed by the filer.

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. aitrawog commented on Nov 28, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    Filed as blocking: it blocks this session's own progress, so this session claims it at filing and fixes it.

    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)

  2. added
    category:runtime
    on Nov 28, 2026
  3. self-assigned this
    on Nov 28, 2026
  4. added
    type:fix
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:runtimetype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions