Skip to content

feat(readiness): probe the guest agent + domain state BEFORE the sshd wait - #18

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/guest-agent-readiness
Sep 17, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/guest-agent-readiness

Conversation

@atrawog

@atrawog atrawog commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The VM deploy's prepare-venue waited on sshd with a blind 30-minute cap. A
crashed / shut-off / absent domain therefore burned the entire cap and then failed with a
generic absolute cap exceeded — with no indication the domain was dead the whole time.

RCA (R1)

Measured on check-omarchy-eval-edge-inst: deploy-add ran 30m55s and failed with

plugin-deploy-vm prepare-venue: wait-for-sshd: ... ssh-ready: poll: absolute cap exceeded (cap 30m0s)

while the domain had never booted. There was no boot signal earlier than sshd and no way
to distinguish "still booting" from "will never be ready"
, so the poll could only exhaust its
cap.

Fix — probe the guest agent + domain state FIRST

A new (c0) readiness gate runs before the SSH bootstrap, invoking the vm plugin's
guest-ping internal op (over the verb:libvirt OpRun reverse channel — the same path
plugin-preempt / plugin-ssh / plugin-substrate use), which checks the domain state and, only
if running, pings the qemu-guest-agent (which answers only once the guest OS is up — a real
boot signal, strictly stronger than sshd):

  • a TERMINAL domain (crashed / shut off / absent / unreachable) → ErrPollFatal, so the poll
    aborts on the FIRST probe (a dead domain is detected in seconds, not after 30 minutes);
  • a merely booting guest (domain running, agent not yet connected) → transient, keeps polling;
  • a probe that cannot be made (vm plugin unconnectable / op absent / RPC error) → also
    ErrPollFatal with the cause, NOT masked as "still booting" (the masking the RCA names);
  • only a READY agent proceeds to the sshd wait.

The gate is data-driven: skipped unless the VM entity declares the guest-agent channel
(structured channels:, or a raw libvirt.snippets: string) — this plugin serves every repo's
VM deploys, so an unconditional wait would deadlock a guest that has no agent.

Dependency: the op (guest-ping) ships in opencharly/plugin-vm#35. Per the B15 landing
order that op PR lands FIRST; this PR was then re-derive-validated against the op's merged
behaviour (the live run below serves the op compiled into the host binary).

How tested

Live R10 bed — check-guest-agent-vm, COMPLETE PASS (steps=11)

A disposable bed (disposable: true, lifecycle: dev) in eval-omarchy clones the fresh
instrumented base golden (from: check-omarchy-eval-base-inst:golden), declares the guest-agent
channel, and probes it. Run with the changed plugin served via CHARLY_REPO_OVERRIDE (the
override is visible in the deploy log):

$ CHARLY_REPO_OVERRIDE=github.com/opencharly/plugin-deploy-vm=<worktree> \
    charly check run check-guest-agent-vm
[vm-build]           PASS 6.565s
[vm-create]          PASS 6.598s
[deploy-add]         PASS 27.675s    <- the guest-agent gate runs and passes
[check-live]         PASS 11.756s    <- includes: "check the guest agent answers [ga-ping] agent responsive"
[gate-restart-stop]  PASS 8.208s
[gate-restart-start] PASS 5.935s
[rebuild-ready]      PASS 1m0.822s
[check-live-rebuild] PASS 9.347s     <- fresh-rebuild re-verification (R10)
[cleanup]            PASS 11.966s
check-guest-agent-vm: PASS (steps=11)
# .check/check-guest-agent-vm/2026.260.1310/summary.yml: ok: true, total_seconds: 149

The live bed CAUGHT A REAL BUG (the value of running it)

The first live run failed — and correctly so:

[deploy-add] FAIL after 21.372s:
  wait-for-guest-agent: ... domain "charly-charly-check-guest-agent-vm" is absent — it cannot become ready

The gate had double-prefixed the domain name: in.Alias is already the libvirt domain
(kit.VmSshAlias(domainID) == "charly-"+domainID), so "charly-"+in.Alias looked up a
non-existent charly-charly-<id> and reported a RUNNING domain as absent. The terminal-abort
path worked (fast 21s fail, not a 30m cap — the fix's whole point), but the verdict was wrong.
The second commit fixes it; the PASS above is the post-fix run. This is exactly the class a
unit test cannot catch and a live bed does.

Coverage (R7) — fails on the pre-change source

  • TestWaitGuestAgent_TerminalDomainHardFails drives the REAL vmshared.PollUntil and proves a
    terminal state aborts after exactly one probe with ErrPollFatal in < 5s (not the cap).
  • TestWaitGuestAgent_ProbeFailureIsFatal proves an unmade probe is ErrPollFatal at once —
    fails on the masking version:
--- FAIL: TestWaitGuestAgent_ProbeFailureIsFatal (30.00s)
    an unmade probe must return ErrPollFatal, got guest-agent-test: poll: absolute cap exceeded (cap 30s)
FAIL
  • TestWaitGuestAgent_BootingIsTransient (a still-booting guest keeps polling),
    TestWaitGuestAgent_ReadyReturnsNil, and TestDeclaresGuestAgentChannel (the data-driven
    gate: channel-bearing VM gated, channel-less VM not).
$ cd candy/plugin-deploy-vm
$ gofmt -l .                 # clean
$ GOWORK=off go build ./...  # exit 0
$ GOWORK=off go vet ./...    # exit 0
$ GOWORK=off go test ./...   # ok github.com/opencharly/plugin-deploy-vm/candy/plugin-deploy-vm

Rulebook compliance

  • R1 — the 30-minute hang was RCA'd to the absent early boot signal; the live bed then
    surfaced and RCA'd the double-prefix bug before landing.
  • R2 — no deferral: the op half is opencharly/plugin-vm#35 (separate repo), and the live
    run is re-derived against the op's merged behaviour.
  • R3 — the probe reuses the shared vmshared.PollUntil + ErrPollFatal, not a new
    sleep/retry loop.
  • R4 — no workaround: the gate detects the real condition and hard-fails.
  • R5 — the previous probe-error masking is removed in the same change.
  • R6 — no force-push; every iteration is an append-only commit.
  • R7 — coverage fails on the pre-change source (shown above).
  • R8 — N/A: no emitted artifact/label changed.
  • R9 — the changed plugin served live via CHARLY_REPO_OVERRIDE; the host binary was rebuilt
    from the final tree (2026.260.9999) for the run.
  • R10 — the live bed above ran build → create → deploy-add → check-live → restart →
    fresh-rebuild → check-live-rebuild → cleanup on the final tree; ok: true, zero errors.

SDD note (the vmGuestAgentState decode)

The gate's reply decode (vmGuestAgentState, json.Unmarshal) is a hand-written consumer
struct for the vm plugin's internal-op reply. The guest-ping request rides the CUE-sourced
spec.VmPluginEnv (the shared #VmPluginEnv def). Internal-op replies are decoded by field
name at every existing consumer — plugin-preempt (var st struct{ Running bool }),
plugin-substrate, plugin-ssh — because they are versioned with the serving plugin, not part
of the authored-config contract (#VmResolveResult is the one reply promoted to CUE, for the
graphics-endpoint path). This consumer follows that established shape; promoting it to CUE would
require a coordinated spec change landing before this PR and is not needed for a
plugin→plugin reply whose producer ships in the companion PR.

Change classification

Plugin Go code — venue readiness. Verification gate: gofmt/go vet/go test plus the live R10
bed check-guest-agent-vm. Attribution tier: fully tested and validated.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

… wait

The prepare-venue flow waited on sshd with a blind 30m cap, so a CRASHED /
shut-off / absent domain burned the entire cap and then failed with a generic
'timeout'. RCA: there was no boot signal earlier than sshd, and no way to tell
'still booting' from 'will never be ready'.

Fix: a NEW (c0) readiness gate that runs FIRST:
  - invokes the vm plugin's new internal 'guest-ping' op (verb:libvirt), which
    checks the DOMAIN STATE and then pings the qemu-guest-agent;
  - a TERMINAL domain (crashed / shut off / absent / unreachable) returns
    ErrPollFatal so the poll aborts on the FIRST probe — a dead domain is
    detected in seconds, not after 30 minutes;
  - a merely booting guest (domain running, agent not yet connected) stays
    transient and keeps polling;
  - only a READY agent proceeds to the sshd wait, which is a strictly weaker
    signal (it needs sshd config + firewall + key delivery on top of a booted OS).

The gate is DATA-DRIVEN: it is skipped unless the VM entity declares the
guest-agent channel (structured channels:, or a raw libvirt.snippets: string) —
this plugin serves every repo's VM deploys, so an unconditional wait would
deadlock a guest that has no agent.

Coverage (R7): TestWaitGuestAgent_TerminalDomainHardFails proves a terminal
domain aborts after ONE probe with ErrPollFatal; _BootingIsTransient proves a
live guest keeps polling; _ReadyReturnsNil the happy path; and
TestDeclaresGuestAgentChannel pins the data-driven gate.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 7704e4839bac (branch: feat(readiness)-probe-the-guest-agent-+-domain-state-before)
Change class: candy/plugin (plugin-deploy-vm) runtime Go code — alters the VM venue-readiness path.

Blocks

  1. A2/A3/B12 — no change-class gate ran; the tier is inflated. The diff is runtime plugin code that adds a live readiness step (waitGuestAgent / the (c0) gate in vmPrepareVenue), yet the body's How tested block names only gofmt/go build/go vet/go test — the static/unit gate, not the change-class bed. There is no fresh-rebuild bed run, no disposable: true target, and no pasted output showing the new gate executing live. Worse, nothing new executes even under go test: probeGuestAgent is a package var stubbed in every test, and each test hand-rolls a fake poll instead of the real vmshared.PollUntil, so the JSON-marshal → InvokeProvider("verb","libvirt","guest-ping") path and the real ErrPollFatal abort semantics are never exercised. The Assisted-by: … (fully tested and validated) claim therefore has no evidence behind it — a changed path that never ran live caps at analysed on a live system. Fix: run the VM-deploy bed on a disposable target after a fresh rebuild, paste the output showing Waiting for the guest agent… followed by a terminal-domain hard-fail (and zero warnings), and correct the tier.

  2. B12/R10 — no bed was named or shown. The body names no bed, no per-bed ok: true result, and no disposable marker, so the R10 coverage obligation cannot be cross-checked. Fix: name every bed the change-class matrix requires and paste its result on the same binary version this PR names.

  3. R1/R4 — the probe-error path re-introduces the exact failure the RCA claims to fix. In waitGuestAgent (candy/plugin-deploy-vm/lifecycle.go, ~L264) any probeGuestAgent error is swallowed as transient (return false, 0, nil), so an unresolvable plugin, a missing op, or any RPC error makes the poll retry to the cap and fail with the same generic absolute cap exceeded the PR describes as the defect. The RCA is not closed for the error class the change actually introduces. Fix: distinguish a genuine "op/plugin unavailable" failure and surface it (ErrPollFatal or a hard error) instead of masking it as "still booting".

  4. Cross-repo dependency + B15 atomicity. probeGuestAgent issues VmOp: "guest-ping" on verb:libvirt, an op the body states exists only in unmerged opencharly/plugin-vm#35. Landed alone, every probe in this PR fails and falls into block 3's transient loop — i.e. the venue still burns the full cap. Either land the op first and re-derive this PR's evidence against that merged state, or the dependency must not be left as a "land that one first" split across the cutover. This cannot be validated as a fix while the op is absent.

  5. SDD (B13c/d) — hand-written reply shape. vmGuestAgentState (lifecycle.go ~L228) is a hand-written wire shape mirroring the guest-ping reply, decoded with json.Unmarshal rather than a CUE-derived/spec type. The guest-ping reply is a wire SHAPE owned by plugin-vm#35; the consumer should consume the generated typed struct (CUE-first). Fix: point the decode at the schema-derived type, or state in the body the RCA/exception why a local hand-written shape is the only option.

  6. A1 — rulebook-compliance section is incomplete. It answers only R1/R3/R4/R7; R2/R5/R6/R8/R9 and — critically — R10 are left unanswered with no N/A — <reason>. Add the missing one-line HOW/N-A for each applicable rule.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

[step: review]

Review — BLOCK

Head SHA: 7704e4839bac (branch: feat(readiness)-probe-the-guest-agent-+-domain-state-before)
Change class: candy/plugin (plugin-deploy-vm) runtime Go code — alters the VM venue-readiness path.

Blocks

  1. A2/A3/B12 — no change-class gate ran; the tier is inflated. The diff is runtime plugin code that adds a live readiness step (waitGuestAgent / the (c0) gate in vmPrepareVenue), yet the body's How tested block names only gofmt/go build/go vet/go test — the static/unit gate, not the change-class bed. There is no fresh-rebuild bed run, no disposable: true target, and no pasted output showing the new gate executing live. Worse, nothing new executes even under go test: probeGuestAgent is a package var stubbed in every test, and each test hand-rolls a fake poll instead of the real vmshared.PollUntil, so the JSON-marshal → InvokeProvider("verb","libvirt","guest-ping") path and the real ErrPollFatal abort semantics are never exercised. The Assisted-by: … (fully tested and validated) claim therefore has no evidence behind it — a changed path that never ran live caps at analysed on a live system. Fix: run the VM-deploy bed on a disposable target after a fresh rebuild, paste the output showing Waiting for the guest agent… followed by a terminal-domain hard-fail (and zero warnings), and correct the tier.

  2. B12/R10 — no bed was named or shown. The body names no bed, no per-bed ok: true result, and no disposable marker, so the R10 coverage obligation cannot be cross-checked. Fix: name every bed the change-class matrix requires and paste its result on the same binary version this PR names.

  3. R1/R4 — the probe-error path re-introduces the exact failure the RCA claims to fix. In waitGuestAgent (candy/plugin-deploy-vm/lifecycle.go, ~L264) any probeGuestAgent error is swallowed as transient (return false, 0, nil), so an unresolvable plugin, a missing op, or any RPC error makes the poll retry to the cap and fail with the same generic absolute cap exceeded the PR describes as the defect. The RCA is not closed for the error class the change actually introduces. Fix: distinguish a genuine "op/plugin unavailable" failure and surface it (ErrPollFatal or a hard error) instead of masking it as "still booting".

  4. Cross-repo dependency + B15 atomicity. probeGuestAgent issues VmOp: "guest-ping" on verb:libvirt, an op the body states exists only in unmerged opencharly/plugin-vm#35. Landed alone, every probe in this PR fails and falls into block 3's transient loop — i.e. the venue still burns the full cap. Either land the op first and re-derive this PR's evidence against that merged state, or the dependency must not be left as a "land that one first" split across the cutover. This cannot be validated as a fix while the op is absent.

  5. SDD (B13c/d) — hand-written reply shape. vmGuestAgentState (lifecycle.go ~L228) is a hand-written wire shape mirroring the guest-ping reply, decoded with json.Unmarshal rather than a CUE-derived/spec type. The guest-ping reply is a wire SHAPE owned by plugin-vm#35; the consumer should consume the generated typed struct (CUE-first). Fix: point the decode at the schema-derived type, or state in the body the RCA/exception why a local hand-written shape is the only option.

  6. A1 — rulebook-compliance section is incomplete. It answers only R1/R3/R4/R7; R2/R5/R6/R8/R9 and — critically — R10 are left unanswered with no N/A — <reason>. Add the missing one-line HOW/N-A for each applicable rule.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

… name

LIVE-CAUGHT by the R10 bed check-guest-agent-vm: the gate looked up
`"charly-"+in.Alias` — but in.Alias IS ALREADY the domain name
(kit.VmSshAlias(domainID) == "charly-"+domainID, the same convention the
domain/disk/state dir use). The double prefix looked up a non-existent
`charly-charly-<id>` and reported a RUNNING domain as absent:

  wait-for-guest-agent: ... domain "charly-charly-check-guest-agent-vm" is absent

The terminal-abort path worked (fast 21s fail, not a 30m cap), but the verdict
was wrong. With the fix the bed passes end to end:

  [deploy-add]         PASS 27.675s   (the gate runs)
  [check-live]         PASS 11.756s   (check the guest agent answers [ga-ping] agent responsive)
  [check-live-rebuild] PASS 9.347s    (R10 fresh-rebuild)
  check-guest-agent-vm: PASS (steps=11)

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 310e986335ef0a4665db13ab5f5f77f893de324e (base e8acf1b9d6d0)
Change class: candy/plugin (plugin-deploy-vm) runtime Go code + unit tests — alters the VM venue-readiness path.
Security screen (T1–T4): no finding — untrusted PR content only, no secrets/egress/eval, no guardrail or validator/spec tampering, no embedded directives.

Blocks

  1. A2/A3/B12 — no change-class gate ran; the attribution tier is inflated (still open). The diff adds a live readiness step (waitGuestAgent + the (c0) gate, lifecycle.go:~620-635), but the body's How tested block names only gofmt/go build/go vet/go test. No fresh-rebuild bed, no disposable: true target, no pasted output of the new gate executing, zero-warning evidence absent. The Assisted-by: … (fully tested and validated) claim is not supported — a changed path that never ran live caps at analysed on a live system. Fix: run the required VM-deploy bed on a disposable target after a fresh rebuild, paste output showing Waiting for the guest agent… plus a terminal-domain hard-fail at zero warnings, and correct the tier.

  2. A1/B12 — the diff asserts a live run the body never names or pastes, and the new probe body has no test that would fail without it. lifecycle.go:~633 states the domain-name bug was "caught live by check-guest-agent-vm", and commit 310e986335ef fixes exactly that bug — i.e. a live bed was run — yet the body names no bed and pastes no bed output (contradiction with its own static-only How tested). In lifecycle_test.go every test replaces the probeGuestAgent package var (L~305ff), so neither the JSON-marshal nor the InvokeProvider(ctx,"verb","libvirt",…,ExtraRef:vmPluginCandyRef()) path (lifecycle.go:~242) is exercised by any test. Fix: name the bed(s), paste the run, and add coverage that fails if the probe invocation is wrong.

  3. B12/R10 — no bed named, no per-bed result, no disposable marker. The body supplies no ok: true, no failed-step summary, and no binary version to cross-check against the diff. Fix: name every bed the change-class matrix requires and paste its result on the same version this PR names.

  4. B6/B15 + functional regression — unlanded cross-repo dependency turns the new gate into a hard-fail for working deploys. The body states guest-ping exists only in unmerged opencharly/plugin-vm#35 ("land that one first"). With the current code, an absent op / unconnectable plugin is surfaced as ErrPollFatal (lifecycle.go:~264-276), so landed alone any VM that declares the guest-agent channel fails immediately instead of booting — a regression of the previously-working path, and the fix cannot be validated while the op is absent. Fix: land plugin-vm#35 first and re-derive this PR's evidence against that merged state, or handle op-absence explicitly rather than as a fatal.

  5. B13(c)/(d) SDD — hand-written wire reply shape. vmGuestAgentState (lifecycle.go:~224) is a hand-written JSON shape mirroring the guest-ping reply, decoded with json.Unmarshal (lifecycle.go:~245) instead of a CUE-derived spec type; it is outside the named exceptions (union_types.go, hand_state_types.go, charly_names.go, plugin.proto). Fix: consume the schema-derived typed reply, or add an explicit RCA/exception justification in the body.

  6. A1 — rulebook-compliance section incomplete. The body answers only R1/R3/R4/R7; R2/R5/R6/R8/R9 and R10 are left unanswered with no N/A — <reason>. Add a one-line HOW or N/A for each applicable rule.

Comments considered

  • github-actions[bot] BLOCK @7704e4839bac (both copies, ids 5712448238 / 5712448380): its block 3 ("probe error swallowed as transient") is stale-superseded — current waitGuestAgent surfaces probe failure as ErrPollFatal; the sub-claim "tests hand-roll a fake poll instead of vmshared.PollUntil" is likewise stale-superseded — realPoll now drives vmshared.PollUntil. Its blocks on missing change-class bed evidence, unlanded cross-repo op, hand-written reply shape, and the incomplete rulebook section re-derive as verified-blocking (blocks 1–6 above).
  • Prior comment file counts / head SHA: stale-superseded (current head is 310e986335ef, 2 files, +251/−0).

Placement (B16): placement: CORRECT — the readiness capability stays in the candy, calls the vm plugin over the reverse channel (InvokeProvider + ExtraRef) instead of importing it, adds no charly/ alias or mechanism import.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

[step: review]

Review — BLOCK

Head SHA: 310e986335ef0a4665db13ab5f5f77f893de324e (base e8acf1b9d6d0)
Change class: candy/plugin (plugin-deploy-vm) runtime Go code + unit tests — alters the VM venue-readiness path.
Security screen (T1–T4): no finding — untrusted PR content only, no secrets/egress/eval, no guardrail or validator/spec tampering, no embedded directives.

Blocks

  1. A2/A3/B12 — no change-class gate ran; the attribution tier is inflated (still open). The diff adds a live readiness step (waitGuestAgent + the (c0) gate, lifecycle.go:~620-635), but the body's How tested block names only gofmt/go build/go vet/go test. No fresh-rebuild bed, no disposable: true target, no pasted output of the new gate executing, zero-warning evidence absent. The Assisted-by: … (fully tested and validated) claim is not supported — a changed path that never ran live caps at analysed on a live system. Fix: run the required VM-deploy bed on a disposable target after a fresh rebuild, paste output showing Waiting for the guest agent… plus a terminal-domain hard-fail at zero warnings, and correct the tier.

  2. A1/B12 — the diff asserts a live run the body never names or pastes, and the new probe body has no test that would fail without it. lifecycle.go:~633 states the domain-name bug was "caught live by check-guest-agent-vm", and commit 310e986335ef fixes exactly that bug — i.e. a live bed was run — yet the body names no bed and pastes no bed output (contradiction with its own static-only How tested). In lifecycle_test.go every test replaces the probeGuestAgent package var (L~305ff), so neither the JSON-marshal nor the InvokeProvider(ctx,"verb","libvirt",…,ExtraRef:vmPluginCandyRef()) path (lifecycle.go:~242) is exercised by any test. Fix: name the bed(s), paste the run, and add coverage that fails if the probe invocation is wrong.

  3. B12/R10 — no bed named, no per-bed result, no disposable marker. The body supplies no ok: true, no failed-step summary, and no binary version to cross-check against the diff. Fix: name every bed the change-class matrix requires and paste its result on the same version this PR names.

  4. B6/B15 + functional regression — unlanded cross-repo dependency turns the new gate into a hard-fail for working deploys. The body states guest-ping exists only in unmerged opencharly/plugin-vm#35 ("land that one first"). With the current code, an absent op / unconnectable plugin is surfaced as ErrPollFatal (lifecycle.go:~264-276), so landed alone any VM that declares the guest-agent channel fails immediately instead of booting — a regression of the previously-working path, and the fix cannot be validated while the op is absent. Fix: land plugin-vm#35 first and re-derive this PR's evidence against that merged state, or handle op-absence explicitly rather than as a fatal.

  5. B13(c)/(d) SDD — hand-written wire reply shape. vmGuestAgentState (lifecycle.go:~224) is a hand-written JSON shape mirroring the guest-ping reply, decoded with json.Unmarshal (lifecycle.go:~245) instead of a CUE-derived spec type; it is outside the named exceptions (union_types.go, hand_state_types.go, charly_names.go, plugin.proto). Fix: consume the schema-derived typed reply, or add an explicit RCA/exception justification in the body.

  6. A1 — rulebook-compliance section incomplete. The body answers only R1/R3/R4/R7; R2/R5/R6/R8/R9 and R10 are left unanswered with no N/A — <reason>. Add a one-line HOW or N/A for each applicable rule.

Comments considered

  • github-actions[bot] BLOCK @7704e4839bac (both copies, ids 5712448238 / 5712448380): its block 3 ("probe error swallowed as transient") is stale-superseded — current waitGuestAgent surfaces probe failure as ErrPollFatal; the sub-claim "tests hand-roll a fake poll instead of vmshared.PollUntil" is likewise stale-superseded — realPoll now drives vmshared.PollUntil. Its blocks on missing change-class bed evidence, unlanded cross-repo op, hand-written reply shape, and the incomplete rulebook section re-derive as verified-blocking (blocks 1–6 above).
  • Prior comment file counts / head SHA: stale-superseded (current head is 310e986335ef, 2 files, +251/−0).

Placement (B16): placement: CORRECT — the readiness capability stays in the candy, calls the vm plugin over the reverse channel (InvokeProvider + ExtraRef) instead of importing it, adds no charly/ alias or mechanism import.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 310e986335ef (branch: feat(readiness)-probe-the-guest-agent-+-domain-state-before)

Security screen: PASS — untrusted PR content only; no secrets/egress/eval, no guardrail/spec/validator tampering, no embedded directives.

Checklist: All applicable rules PASS or NA.

  • A1–A3: body accounts for both changed files, names the live R10 bed (check-guest-agent-vm) with pasted output on a disposable: true target, states the fresh rebuild (rebuild-ready + check-live-rebuild), the changed path executed live (deploy-add, and the pre-fix run's wait-for-guest-agent: … absent proves the probe→reply decode path ran), and ends with the *Assisted-by: …* line; tier fully tested and validated is justified.
  • B4–B18: R1–R10 all answered; probe reuses vmshared.PollUntil/ErrPollFatal (no sleep/retry shim); new gate covered by tests that fail on the pre-change source (pasted TestWaitGuestAgent_ProbeFailureIsFatal failure); cross-repo op named (opencharly/plugin-vm#35, claimed landed first); placement CORRECT — capability stays in the candy, calls the vm plugin via InvokeProvider+ExtraRef, no charly/ alias or mechanism import, no core/sdk move.

Comments considered:

  • github-actions[bot] BLOCK @7704e4839bac (ids 5712448238/5712448380) and @310e986335ef (ids 5715092208/5715092363): stale-superseded — their core blocks (no change-class bed named/pasted; static-only How tested; probe error masked as transient; hand-rolled fake poll; incomplete R-rule section) are each contradicted by the CURRENT body/diff (live bed named+pasted with ok: true, probe failure now ErrPollFatal, realPoll drives vmshared.PollUntil, R1–R10 all answered, SDD note supplies the reply-shape RCA). No surviving verified-blocking comment.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

[step: review]

Review — PASS

Head SHA: 310e986335ef (branch: feat(readiness)-probe-the-guest-agent-+-domain-state-before)

Security screen: PASS — untrusted PR content only; no secrets/egress/eval, no guardrail/spec/validator tampering, no embedded directives.

Checklist: All applicable rules PASS or NA.

  • A1–A3: body accounts for both changed files, names the live R10 bed (check-guest-agent-vm) with pasted output on a disposable: true target, states the fresh rebuild (rebuild-ready + check-live-rebuild), the changed path executed live (deploy-add, and the pre-fix run's wait-for-guest-agent: … absent proves the probe→reply decode path ran), and ends with the *Assisted-by: …* line; tier fully tested and validated is justified.
  • B4–B18: R1–R10 all answered; probe reuses vmshared.PollUntil/ErrPollFatal (no sleep/retry shim); new gate covered by tests that fail on the pre-change source (pasted TestWaitGuestAgent_ProbeFailureIsFatal failure); cross-repo op named (opencharly/plugin-vm#35, claimed landed first); placement CORRECT — capability stays in the candy, calls the vm plugin via InvokeProvider+ExtraRef, no charly/ alias or mechanism import, no core/sdk move.

Comments considered:

  • github-actions[bot] BLOCK @7704e4839bac (ids 5712448238/5712448380) and @310e986335ef (ids 5715092208/5715092363): stale-superseded — their core blocks (no change-class bed named/pasted; static-only How tested; probe error masked as transient; hand-rolled fake poll; incomplete R-rule section) are each contradicted by the CURRENT body/diff (live bed named+pasted with ok: true, probe failure now ErrPollFatal, realPoll drives vmshared.PollUntil, R1–R10 all answered, SDD note supplies the reply-shape RCA). No surviving verified-blocking comment.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 17, 2026 13:26
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 8b8a4ab425fa (branch: feat(readiness)-probe-the-guest-agent-+-domain-state-before)

Security screen: PASS — diff is confined to candy/plugin-deploy-vm/{lifecycle.go,lifecycle_test.go}; no secrets/egress/eval, no guardrail/validator/spec tampering, no embedded directives (T1–T4 clear).

Checklist: All applicable rules PASS or NA — A1–A3 (body accounts for both changed files; change-class gate check-guest-agent-vm named with disposable: true, fresh rebuild + rebuild re-verification, pasted per-step output and ok: true, and the pre-fix wait-for-guest-agent: … absent output shows the probe→reply decode path actually executed live; *Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)* footer present and the fully tested and validated tier is supported); B4–B18 (R1–R10 each answered — RCA for the 30-min cap and for the double-prefix domain bug, reuse of vmshared.PollUntil/ErrPollFatal, no sleep/retry shim, no charly/ alias or mechanism import, tests fail on the pre-change source, +251/−0 so no surviving transitional path). Placement (B16): placement: CORRECT — the readiness capability stays in the candy and dials the vm plugin over the reverse channel (InvokeProvider + ExtraRef); nothing moves INTO core/sdk. Tool-limited items (I cannot re-run beds or read opencharly/plugin-vm): the bed paste, the sdk API surface, and the plugin-vm#35-landed-first claim are unverifiable here, but each is internally consistent with the diff (a fatal probe error would have failed deploy-add; the pasted decoded absent reply is only producible when the op is served).

Comments considered:

  • github-actions[bot] BLOCK @7704e4839bac (ids 5712448238 / 5712448380): stale-superseded — its blocks (no bed named/pasted; tests hand-roll a fake poll; probe error masked as transient) are all contradicted by the CURRENT diff/body (realPoll drives vmshared.PollUntil; probe failure is ErrPollFatal; live bed named + pasted).
  • github-actions[bot] BLOCK @310e986335ef (ids 5715092208 / 5715092363): verified-non-blocking after re-derivation — bed evidence, R1–R10 answers, and the SDD justification for the hand-written reply decode (vmGuestAgentState) are all present in the current body; the reply-shape note mirrors the existing internal-op consumer pattern (plugin-preempt/plugin-substrate/plugin-ssh) and supplies the exception RCA; the named cross-repo op is corroborated by the served reply in the pasted live run. No surviving block.
  • github-actions[bot] PASS @310e986335ef (ids 5715115046 / 5715115253): approve-comment carries no authority; independently re-derived above, not inherited.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

[step: review]

Review — PASS

Head SHA: 8b8a4ab425fa (branch: feat(readiness)-probe-the-guest-agent-+-domain-state-before)

Security screen: PASS — diff is confined to candy/plugin-deploy-vm/{lifecycle.go,lifecycle_test.go}; no secrets/egress/eval, no guardrail/validator/spec tampering, no embedded directives (T1–T4 clear).

Checklist: All applicable rules PASS or NA — A1–A3 (body accounts for both changed files; change-class gate check-guest-agent-vm named with disposable: true, fresh rebuild + rebuild re-verification, pasted per-step output and ok: true, and the pre-fix wait-for-guest-agent: … absent output shows the probe→reply decode path actually executed live; *Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)* footer present and the fully tested and validated tier is supported); B4–B18 (R1–R10 each answered — RCA for the 30-min cap and for the double-prefix domain bug, reuse of vmshared.PollUntil/ErrPollFatal, no sleep/retry shim, no charly/ alias or mechanism import, tests fail on the pre-change source, +251/−0 so no surviving transitional path). Placement (B16): placement: CORRECT — the readiness capability stays in the candy and dials the vm plugin over the reverse channel (InvokeProvider + ExtraRef); nothing moves INTO core/sdk. Tool-limited items (I cannot re-run beds or read opencharly/plugin-vm): the bed paste, the sdk API surface, and the plugin-vm#35-landed-first claim are unverifiable here, but each is internally consistent with the diff (a fatal probe error would have failed deploy-add; the pasted decoded absent reply is only producible when the op is served).

Comments considered:

  • github-actions[bot] BLOCK @7704e4839bac (ids 5712448238 / 5712448380): stale-superseded — its blocks (no bed named/pasted; tests hand-roll a fake poll; probe error masked as transient) are all contradicted by the CURRENT diff/body (realPoll drives vmshared.PollUntil; probe failure is ErrPollFatal; live bed named + pasted).
  • github-actions[bot] BLOCK @310e986335ef (ids 5715092208 / 5715092363): verified-non-blocking after re-derivation — bed evidence, R1–R10 answers, and the SDD justification for the hand-written reply decode (vmGuestAgentState) are all present in the current body; the reply-shape note mirrors the existing internal-op consumer pattern (plugin-preempt/plugin-substrate/plugin-ssh) and supplies the exception RCA; the named cross-repo op is corroborated by the served reply in the pasted live run. No surviving block.
  • github-actions[bot] PASS @310e986335ef (ids 5715115046 / 5715115253): approve-comment carries no authority; independently re-derived above, not inherited.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot merged commit 269d11e into main Sep 17, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 17, 2026
@aitrawog
aitrawog deleted the feat/guest-agent-readiness branch September 25, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant