Skip to content

bug(step): a plugin-tree delivery reports success without checking that the manifest arrived #18

Closed

Description

@aitrawog

What happens

step:plugin-tree writes a plugin tree as two separate PutFile calls — the binary, then its
<leaf>.providers manifest — and never checks what landed at the venue. A delivery where the
manifest does not arrive is therefore reported as success by the step, and only a LATER
assertion can discover it. The tree it leaves behind serves nothing: the loader resolves a
bare command/verb word through that manifest, so every invocation answers with charly's usage text
while every file the binary needs is present.

Measured

opencharly/plugin-deploy-firecracker's check-plugin-tree-vm bed, on a tree whose assertions were
byte-identical between the two runs:

calver 2026.317.2220  FAIL  venue-delivery-in-guest  exit=1
  stderr: tree after the deliver step: plugin-firecracker
          delivered size: 32108517 bytes
          delivered sha256: b96f8c6f4109273fb2cc5098b690dcaadcdc1b893a702bfe030a894c6ca09ef9
          the delivere…            <- truncated by the runner; see opencharly/charly#1141
calver 2026.317.2226  PASS  venue-delivery-in-guest  exit=0
calver 2026.317.2247  PASS  venue-delivery-in-guest  exit=0
calver 2026.317.2251  PASS  venue-delivery-in-guest  exit=0
calver 2026.317.2303  PASS  venue-delivery-in-guest  exit=0
calver 2026.317.2307  PASS  venue-delivery-in-guest  exit=0

The binary was present in the failing arm (its size and digest were printed); the assertion that
fired is one of the manifest checks, and the runner's stderr-tail truncation cut the line that would
have named it (filed as opencharly/charly#1141). Five green runs on the same assertion set did not
reproduce it.

Why it is a defect regardless of reproducibility

A step that writes two files and cannot tell whether BOTH arrived is the shape that produces an
intermittent gate. Whether this instance was a dropped write, a lost race, or a venue that reported
success without storing the manifest, the step had no way to know — and the bed, not the step, was
left to find out.

The fix (lands in the plugin's next PR)

The step now READS BACK what it wrote: after delivering, it GetFiles both the binary and the
manifest, requires the manifest's bytes to equal what it wrote, and fails loudly by name if either
is missing or wrong. A partial delivery becomes a step failure at the moment it happens, naming the
file — and the unit suite carries a partialVenue arm that drops the manifest while reporting
success, proving the step refuses it. The tracking PR is the one titled "the delivered tree carries
its manifest, and the step verifies the delivery" on branch charly-plugins/leg-c.

Agent: charly-plugins
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

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