Skip to content

the R10 finalize cannot force-stop a keeper: a desktop guest fails a bed after every step that exercises the change has passed #934

Open

Description

@aitrawog

Finding — the R10 finalize cannot force-stop a keeper, so a desktop guest can fail a bed after every step that exercises the change has passed

charly check run <bed> on a VM bed whose entity declares a snapshot: block ends with a keeper stop. When the
keeper's guest ignores ACPI past the stop's absolute cap, that step fails — with the remedy printed but
unreachable from inside the step — and the whole bed reports ok: false even though the build, the deploy,
check-live, the fresh update and check-live-rebuild all passed
.

Measured 2026-10-15, distro-omarchy's check-omarchy-pr-vm-anchored (a one-ref layer-charly consumer pin),
run 2026.288.0449, worktree-local binary 2026.287.2312:

[vm-build]            PASS after 37.69s      [allowlisted=1]
[vm-create]           PASS after 23.435s
[deploy-add]          PASS after 2m44.2s     [allowlisted=3]     <- the layer application: the changed path
[bring-up-members]    PASS after 2ms
[check-live]          PASS after 59.883s
[update]              PASS after 17m4.543s   [allowlisted=7]
[rebuild-ready]       PASS after 285ms
[check-live-rebuild]  PASS after 36.673s
[snapshot-capture]    PASS after 393ms       <- created external snapshot "golden"
[snapshot-stop-keeper] FAIL after 3m0.476s: exit 1

and the failing step's own log:

charly: error: command "vm": VM charly-check-omarchy-pr-vm-anchored: did not reach a stopped state within the
stop grace (still running) — use 'charly vm stop --force' if the guest ignores ACPI:
stop domain charly-check-omarchy-pr-vm-anchored: poll: absolute cap exceeded (cap 3m0s)

Three things are wrong at once, and only the third is a nuance:

  1. The remedy the error prints is not available to the caller that needs it. The step performs the stop; it
    cannot pass --force, and #VmSnapshot (spec/schema/vm.cue:316) exposes only name, description,
    mode, quiesce, from — no stop/force/grace knob, so a bed author cannot ask for a forced stop or a
    longer cap for a desktop keeper. The message names a flag no plan step can set.
  2. The poll cap is absolute (3m) and load-sensitive, which makes a bed's verdict depend on a guest's
    shutdown latency rather than on the change under test — a bed proves a TREE, but here the verdict is about a
    GUEST's ACPI behaviour.
  3. The verdict is all-or-nothing over the whole sequence, so a teardown-step timeout reports ok: false
    for a run in which every step that consumes the change passed. The evidence exists in the summary either
    way; the boolean does not distinguish them.

What the affected row did with it: the consumer-pin PR is held, not landed at a lowered tier — the class
gate's bed did not pass, and a guest-side teardown timeout neither proves nor disproves the ref advance.
Evidence for the advance itself, at its real boundary: the target tag resolves and its arms name
charly=2026.279.2144, the only version the published index serves, while the pin it replaces named
charly=2026.268.1917, which is not in that index — the falsifiable pair.

Ask, in rough order of cost: (a) let the finalize pass a force-stop (a force:/grace: field on
#VmSnapshot, or a --force fallback after the ACPI cap) so a desktop keeper cannot fail a bed that has
already proven its change; (b) if a force-stop is deliberately out of scope, make the message actionable from a
plan step — name where the grace is configured; (c) consider whether a teardown-only failure should be reported
as its own class rather than as the bed's verdict, since today it is indistinguishable from a change that
failed every step.

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

Activity

  1. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    STATUS — one addition to the record, because it changes what this issue is for.

    The failing bed is a DEFECTIVE WITNESS, not evidence against whatever is under test. Re-measured today while advancing distro-omarchy's nine layer-charly refs: check-omarchy-pr-vm-anchored run .check/check-omarchy-pr-vm-anchored/2026.288.0449 (driver 2026.287.2312) passes everything that consumes a change and then fails at the keeper stop —

    [update]              PASS after 17m4.543s     [allowlist=7]
    [rebuild-ready]       PASS after 285ms
    [check-live-rebuild]  PASS after 36.673s
    [snapshot-capture]    PASS after 393ms
    [snapshot-stop-keeper] FAIL after 3m0.476s
        VM charly-check-omarchy-pr-vm-anchored: did not reach a stopped state within the stop
        grace (still running) — use 'charly vm stop --force' if the guest ignores ACPI:
        stop domain …: poll: absolute cap exceeded (cap 3m0s)
    

    — and since the stop step is hard-coded by the engine rather than asked for by the entity, it fails on EVERY run of that bed, whatever pins are under test. So no change can be gated by that bed until this is fixed, and a red there says nothing about the change that armed it. That is the sentence a reader of the bed's record needs, and it is why I am not landing the consumer pin this bed was meant to gate.

    The owner, measured rather than taken from the chain this issue's own text sketches. The message is emitted by plugin-vm — candy/plugin-vm/vm.go:485 in the current module (the census cites vm.go:602, a version drift), where cfg := loadedReadiness().StopGate("stop domain " + name) builds a cap-only poll config at the 3-minute grace (spec/poll/poll.go:275's readinessStopGraceFallback, exported at :288-290), and the step that cannot pass --force is emitted by plugin-check at candy/plugin-check/bed_run.go:359. So the fix surface is: a way for the entity to ask for the forced stop (the spec field the chain names), consumed by plugin-vm, emitted by plugin-check — the three-repo chain, in that order — while the separate verdict-class question (a teardown failure failing a bed whose every change-consuming step passed) is what makes it a false rather than merely an error.

    Not claimed here: the guest's ACPI latency, which is what makes a desktop keeper miss a 180 s cap. That needs a live run of the bed, and the retained matrix above is the evidence of the miss itself.

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

  2. added
    category:verification
    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:verificationtype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions