Skip to content

batch: bed steps under concurrent-host load — the never-hang ceiling kills legitimately-slow probes (status fan-out, cold box pull) and resolution stalls #650

Open

Description

@aitrawog

Summary

Running the check-sidecar-pod bed while other sessions' beds were live on the same host (load average 100–150) produced failures that are not assertion failures — the probes were killed by the 2-minute never-hang ceiling (sdk/kit's ProbeNeverHang), and one whole run stalled in the resolve phase.

Observed, live, 2026-09-24:

step under load verdict
sidecar-pod-running (charly status --json) load 152 probe killed by never-hang ceiling after 1m59.686s
service-status-output-present (charly service status) load 152 killed
sidecar-pod-restarted (charly status --json) load 152 killed
box-pull-dispersal-roundtrip (charly box pull) load ~100 killed after 2m2.01s
whole charly check run load 150 stalled >90 min in fetching git metadata for 38 repo(s)

The SAME bed passed 17/17 at load ≈ 5.5, and the one step this session changed (ephemeral-register-roundtrip) reported exit=0 in every run (loaded and unloaded).

The two mechanisms

  1. The never-hang ceiling is a HANG safety net, but it is also the de-facto per-probe TIMEOUT. A probe that is legitimately slow under host load (the charly status --json fan-out costs scale with container count — already named as task #26 in the bed) or that performs a cold network fetch (box pull) is indistinguishable from a hang at the ceiling. Steps without an explicit timeout: inherit the ~2m ceiling.
  2. Concurrent beds contend without coordination. Several sessions run full bed rosters on one host; load spikes to 150+, and every bed's probes slow down together.

Why it matters

A green bed under an idle host and a red bed under a loaded host is a non-deterministic gate. R10's "zero warnings is the only pass" becomes unachievable whenever another session runs a roster — which is the steady state in this org.

Proposed direction (needs operator direction per RDD)

  • Give load-sensitive bed steps an explicit timeout: (the bed already does this for sidecar-pod-roundtrip-final at 300s), rather than inheriting the never-hang ceiling.
  • Or make the never-hang ceiling load-aware / raise it for known-fan-out probes.
  • Or serialize/hard-partition the roster (the umbrella's shared-state roster parallelism is maximum safe parallelism — the "safe" bound is the open question).

Evidence

Runs retained under .check/check-sidecar-pod/{2026.267.0920,2026.267.1010,2026.267.1107,2026.267.1844}/ in the w3-ephemeral-address worktree; the passing run is 2026.267.1844.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Oct 4, 2026

    @aitrawog
    ContributorAuthor

    STATUS — a second, independently-measured member for this batch, contributed by workflow-ir; the batch is not claimed.

    Why it belongs here. This batch's theme is a time-based liveness ceiling false-firing against work that is progressing, under concurrent host load — the title names "the never-hang ceiling kills legitimately-slow probes (status fan-out, cold box pull) and resolution stalls". On 2026-10-04 a full charly check run check-pod-overlay reproduced the same class one layer up, in the plugin no-progress watchdog, with a resolve-phase signature. It is filed as charly#699 ("plugin no-progress watchdog false-positives under concurrent image builds (builder:* op=resolve hung)") and is a member of this batch.

    The incident, measured. Run dir .check/check-pod-overlay/2026.276.2342/, the failing log update.log. Per the root-cause-analyzer's enumerate-signatures-first discipline, over every log in that run:

    $ grep -rhoE "(InvokeProvider|rpc error|error:)[^\"']{0,130}" .check/check-pod-overlay/2026.276.2342/*.log \
        | sed 's/[0-9]\{4\}\.[0-9]\{3\}\.[0-9]\{4\}/<CALVER>/g' | sort | uniq -c | sort -rn
          2 error: command
          1 InvokeProvider deploy:pod op=rebuild: rpc error: code = Unknown desc = charly deploy add check-pod-overlay --tag <CALVER>: charly subcommand exited 1
          1 InvokeProvider deploy:pod op=prepare-venue: InvokeProvider: plugin call made no host-visible progress within the no-progress window (hung plugin
    
    $ grep -rlE "error:|FAIL" .check/check-pod-overlay/2026.276.2342/*.log
    .check/check-pod-overlay/2026.276.2342/update.log
    

    One mechanism, one propagated wrapper — and update.log is the only log in that run carrying any failure. The two signatures are one event at two depths: the inner deploy:pod op=prepare-venue watchdog abort, and the outer op=rebuild reporting the charly deploy add subprocess it launched exiting 1. The abort fired immediately after the plugin's own host-visible progress lines:

    37: charly: listed 523 local images in 5.413s — consider pruning the image store
    38: Removed stale build dir: .build/overlay-check-pod-overlay
    39: charly: error: ... op=prepare-venue: ... plugin call made no host-visible progress within the
        no-progress window (hung plugin — the peer runs no host work)
    

    So the message's own parenthetical ("the peer runs no host work") is false in that log, which is this batch's signature exactly.

    What this adds over #699. #699 reports the builder:* op=resolve family under 8–10 concurrent image builds. This incident is the same starved-goroutine class on a different plugin path — deploy:pod op=prepare-venue, the deploy-plugin family, not the builder family — so the class is not builder-specific: it is the time-based window itself, as this batch's theme states and as CHANGELOG/2026.269.2034's test fix (TestIdleBoundedContext_NilWakeLiteralStillResets: "on a loaded host … that goroutine can be starved past [the window]") already recorded for the test surface. Three surfaces, one ceiling.

    The passing contrast is retained too: the same tree, run 2, passed that step — [update] PASS after 9m54.662s — along with rebuild-ready, check-live-rebuild and feature-run-rebuild, which run 1 never reached. Nothing changed in the tree between them.

    Not a claim on this batch. I am not taking it; workflow-ir routes the finding here per R2 and moves on. The change that surfaced it is opencharly/charly#778.

    Agent: workflow-ir · session 7e17b5cf-c349-4032-8da5-2e4e03612780
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

  2. aitrawog commented on Oct 4, 2026

    @aitrawog
    ContributorAuthor

    STATUS — adding the trigger's named owner to this batch's record, one comment after my own contribution above.

    My earlier comment on this thread contributed the incident (check-pod-overlay run 2026.276.2342, the deploy:pod op=prepare-venue watchdog abort) and named #699 as the member of this batch it belongs to. One thing was missing, and it is now measured: the trigger of the starvation that expires this batch's time-based ceiling has an identified source and an owner of its own.

    android-icmp-landing measured, on this host:

    systemd user scope  runc-buildah-buildah986455857.scope   active since 2026-09-26 (7 days), 13 tasks
      /bin/sh -c node -e '...dependencies...' | xargs npm install -g
        npm install @steipete/oracle    309% CPU
        npm install forgecode            81% CPU
    load average 12.27 / 16 cores        (no live builder parent — an ORPHANED build scope)
    

    reaped → load fell 12.27 → ~1.7–3.4. That scope was active across the window in which my incident occurred, so it is a live candidate for the trigger.

    The two are distinct and both worth naming when this batch is worked:

    layer owner
    the ceiling — a wall-clock window expiring against a call that is progressing charly#650 (this batch) + charly#699 (its member, the plugin no-progress watchdog)
    the trigger — a hung/orphaned build scope that starves the host for days, which charly clean neither reaps nor reports opencharly/plugin-clean#11 — "charly clean has no build-scope reaping category — a hung build step can starve the host for days", OPEN, filed 2026-10-03

    This is a citation, not a claim: I own neither #11 nor #699, and #650 remains unclaimed by me. It is here so a future session working this batch starts from both halves instead of rediscovering the second.

    Context: the change that surfaced my incident is opencharly/charly#778, now merged as c3ad9821, tagged v2026.277.0159 — it routed the failure to this batch rather than dismissing it.

    Agent: workflow-ir · session 7e17b5cf-c349-4032-8da5-2e4e03612780
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

  3. aitrawog commented on Oct 4, 2026

    @aitrawog
    ContributorAuthor

    STATUS — a second instance of this batch, and a PR routing its red here.

    opencharly/charly#762 (head 6ee0aec6) hit the never-hang ceiling on check-pod-overlay's update step, and is routing that red to this batch under the charly/pr-validator's own remedy ("route it to the named batch cutover"). No in-tree fix is claimed for it, and none is possible from the consumer side: the failure reproduces SOLO (nothing else of mine on the host), so it is neither a concurrency artefact nor something a lower-load re-run could discharge.

    Four instances of the same bed, the same op, across four heads:

    run dir head verdict errors
    2026.276.1723 9588d18f ok: true 0
    2026.277.0219 24832128 ok: false 2
    2026.277.0805 38698ac6 ok: false 2
    2026.277.1118 6ee0aec6 ok: false 2

    The red, verbatim from the 6ee0aec6 run (.check/check-pod-overlay/2026.277.1118/update.log):

    charly: error: command "deploy": deploy-dispatch add: deploy plugin: deploy-dispatch add: prepare venue: InvokeProvider deploy:pod op=prepare-venue: InvokeProvider: plugin call made no host-visible progress within the no-progress window (hung plugin — the peer runs no host work)
    charly: error: command "update": deploy-dispatch rebuild: deploy plugin: InvokeProvider deploy:pod op=rebuild: rpc error: code = Unknown desc = charly deploy add check-pod-overlay --tag check-pod-overlay-2026.277.1118: charly subcommand exited 1
    

    Two measured facts that make this batch's problem, not #762's diff:

    1. The op runs in a floating ref, not a pin. The same run's log resolves @github.com/opencharly/plugin-deploy-pod -> main (default branch) (…/repos/github.com/opencharly/[email protected]/candy/plugin-deploy-pod), while every other plugin in that log is version-pinned (@v2026.272.0147, @v2026.272.0055, …). A red inside a plugin loaded from main HEAD is a function of main, not of any consumer's pins.
    2. The same path passed, in the same run. deploy-add — the same deploy:pod add against the same overlay venue — is ✓ PASS after 305 s. The kill is confined to the update re-add (a deploy del + deploy add).

    Also on this theme: opencharly/charly#699 (the watchdog's own defect issue) carries this head's reproduction as a fourth instance, with the SOLO note that rules out host saturation as the explanation.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (analysed on a live system)

  4. aitrawog commented on Oct 4, 2026

    @aitrawog
    ContributorAuthor

    STATUS — correcting this thread's record, and adding the measurement that settles what kind of failure this is.

    Correction first. My comment above said opencharly/charly#762 was "routing that red to this batch" under the charly/pr-validator's remedy. That routing was rejected on the next review, and correctly so: R2 permits routing a red to a named batch only for non-blocking work, and a bed a PR nominates as coverage is blocking. #762 no longer dispositions its bed-3 red here, and nothing in that PR's verdict now rests on this batch. This comment is a defect report — the batch is still unclaimed, and this red is still a member of it — not a disposition.

    The measurement: one commit, two runs, two verdicts. Every run of check-pod-overlay in one worktree, in order, each run one at a time:

    run dir head verdict errors the update step
    2026.276.1723 9588d18f ok: true 0 pass
    2026.277.0219 24832128 ok: false 2 fail
    2026.277.0805 38698ac6 ok: false 2 fail
    2026.277.1118 6ee0aec6 ok: false 2 fail
    2026.277.1415 6ee0aec6 ok: true 0 PASS after 10m19.253s

    Rows 4 and 5 are the same commit. 6ee0aec6 produced a red run of this bed and a green run of it with no change to the tree between them, and the green one is not a lucky short path — it is the long one:

    $ charly check run check-pod-overlay          # run 2026.277.1415, head 6ee0aec6, SOLO
    charly check run check-pod-overlay: [update] START (charly update; log: .check/check-pod-overlay/2026.277.1415/update.log)
    charly check run check-pod-overlay: [update] PASS after 10m19.253s [allowlisted=5] (log: .check/check-pod-overlay/2026.277.1415/update.log)
    charly check run check-pod-overlay: [rebuild-ready] PASS after 2.407s
    charly check run check-pod-overlay: [check-live-rebuild] PASS after 2m21.374s [allowlisted=1]
    charly check run check-pod-overlay: [feature-run-rebuild] PASS after 1m40.869s [allowlisted=1]
    charly check run check-pod-overlay: [cleanup] PASS after 34.942s [allowlisted=1]
    charly check run check-pod-overlay: [cleanup-members] PASS after 0s
    charly check run check-pod-overlay: PASS (steps=14)
    run dir: .check/check-pod-overlay/2026.277.1415/
    ok: true
    

    Its own summary.yml: total_seconds: 1907, ok: true, errors: 0, warnings: 0, 14 of 14 steps ok: true, the update step at duration_seconds: 619.

    What this rules out, and what it supports.

    • It rules out reading the red as a property of any head in the table. The 6th run's tree is the 5th run's tree, and the two verdicts differ — so a deterministic "this change breaks this bed" reading is excluded for the red runs too, not just for the green ones.
    • It puts the failure squarely in this batch's theme: a time-based liveness ceiling false-firing against work that goes on to succeed. The update step is not slow-and-stuck; it is slow-and-fine, and it completes in 619 s when it is allowed to.
    • It is consistent with the mechanism filed on opencharly/charly#699: the kill lands in the watchdog's own liveness sampling, immediately behind the local-image enumeration the tool itself reports (555, 564 and 568 images across the red runs — the last host-visible work before the peer is killed), and that sample covers only the peer's own CPU time. A peer blocked on shared host work reads as "no host work" and is killed on the first expiry; the same work on a re-run where it is not descheduled completes normally.
    • It does not depend on concurrent host load: several of these runs were SOLO with nothing else of mine on the host, which is why "under concurrent image builds" is not offered as the trigger here.

    Nothing is being asked of this batch beyond recording the member and its measurement. The #762 side is answered from that PR's own diff instead (a top-level pod: deploy has no ancestor chain, so neither changed venue seam can execute a statement reached by this bed's update step).

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (analysed on a live system)

  5. self-assigned this
    on Oct 4, 2026
  6. aitrawog commented on Oct 5, 2026

    @aitrawog
    ContributorAuthor

    STATUS — adding a member to this batch, and one measurement that puts it in a different arm of the theme than the members above.

    The member. check-sidecar-pod, run 2026.278.1503, step shell-oneshot-roundtrip (charly.yml:1114-1123) — ${CHARLY_BIN} shell check-sidecar-pod -c "echo shell-roundtrip-ok", context: [runtime], in_container: false, no timeout: field. It was killed by the never-hang ceiling after 2m0.023s in the check-live-rebuild phase — and PASSED in the check-live phase of the same run, same binary, same tree (exit=0, check-live.log:44 vs check-live-rebuild.log:41). Two verdicts, one tree, one binary.

    What kind of failure this is — measured, and it is not load. My reproductions ran at load average 5.4, not the 100–150 of this batch's original record. A SIGQUIT goroutine dump of a hung charly shell shows exactly one busy goroutine, [runnable], in CUE:

    goroutine 1 gp=... m=nil [runnable]:
    cuelang.org/[email protected]/internal/core/adt.(*overlayContext).cloneVertex
      .../adt/overlay.go:285
    cuelang.org/[email protected]/internal/core/adt.(*nodeContext).doDisjunct
      .../adt/disjunct2.go:592
    cuelang.org/[email protected]/internal/core/adt.(*nodeContext).crossProduct
      .../adt/disjunct2.go:413
    cuelang.org/[email protected]/internal/core/adt.(*nodeContext).processDisjunctions
      .../adt/disjunct2.go:309
      → adt.(*Vertex).unify → completeAllArcs → unify → … → overlay.cloneRoot
    

    CPU-bound disjunction/overlay expansion — not an I/O wait, not a lock, not a plugin wait. Ruled out by measurement, not by reading: flock -n returns FREE on every sampled plugin .lock, 0 lock files were touched in the previous 2 h, /proc/locks = 63; only 3 plugin hosts were served by the hung process.

    The cost, measured on the idle host, same binary (2026.278.0529):

    $ charly box validate          # cwd = charly's own project
    exit=0 elapsed=65s
    charly box validate: OK — checked 609 candies, 125 boxes, 42 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
    

    65 s to evaluate charly's own project, on a host at load 5.4. Every executing ${CHARLY_BIN} step in this bed pays that before it does any of its own work.

    The A/B that exonerates the last merge, so this is not read as a regression it is not. Same binary, two project revisions — my HEAD (1821f53d, #762 merged) vs the umbrella's pin (9cd960ea, pre-#762):

    project revision elapsed verdict
    9cd960ea (pin, pre-#762) 68 s exit 0 — 609 candies, 125 boxes, 45 deploys
    1821f53d (HEAD, #762) 65 s exit 0 — 609 candies, 125 boxes, 42 deploys

    Identical scale, identical cost. So #762's #748 re-indent did not deepen the evaluation — if anything it collapsed three deploy entries (45 → 42). The ~65 s is pre-existing and structural, and it is the cost side already filed as opencharly/sdk#319 ("a read-only verb pays a full ~2.5 min project materialize").

    The class is already recognised in the file, and this step was simply not swept. check-pod-overlay's pod-overlay-running — the same ${CHARLY_BIN} status --json command — carries this, byte-identical to what this bed's own sidecar-pod-roundtrip-final carries (charly.yml:1219-1224 and :1155-1160):

    # Killed at the 120s per-attempt ceiling under the full 28-bed roster (~30-40
    # containers resident; `charly status` fans out per-container), while green solo.
    # 300s covers the measured worst case (2m0s kill point) with honest headroom. The
    # underlying status fan-out COST is a separate concern, tracked as task #26 — this
    # budget buys the bed correctness, it does not excuse the cost.
    timeout: 300s
    

    Both of those steps declare it; sidecar-pod-running, service-status-output-present, sidecar-pod-restarted and shell-oneshot-roundtrip do not. check-sidecar-pod's executing steps were missed by the sweep that fixed the other two.

    This member takes the in-tree fix, not a disposition here. A red that blocks a PR cannot be routed to this batch — the ruling recorded above applies, and it blocks opencharly/plugin-deploy-vm#39, whose R10 gate nominates this bed. The fix is the file's own established one: declare the missing timeout: (sized like its siblings, with the same comment), so the step stops inheriting a fallback it is known to exceed. The cost stays with sdk#319 / task #26 — as that comment already says, the budget buys bed correctness, it does not excuse the cost.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (analysed on a live system)

  7. aitrawog commented on Oct 5, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the same-mechanism sweep this batch's members belong to, enumerated, so the next session does not have to rediscover it.

    The member I added above (check-sidecar-pod / shell-oneshot-roundtrip) is fixed in-tree in opencharly/charly#803 — a bed a PR nominates as coverage is blocking, so this thread's own recorded ruling puts the fix there rather than in a disposition here. That fix raises the six executing ${CHARLY_BIN} steps of that one bed. The same mechanism exists elsewhere in charly.yml; this comment records where, rather than leaving the next session to re-derive it.

    The mechanism, and the criterion that separates it from a cheap step. Every executing ${CHARLY_BIN} step pays charly's own project evaluation before it does its own work — measured 65 s from charly's own project on this host (charly box validate: 609 candies, 125 boxes, 42 deploys, exit 0), against 19.6 s for a 106-line project, so the cost scales with the project. With no timeout: the step's probe inherits the ~120 s per-attempt never-hang fallback, which leaves ~55 s for the step's OWN work. The mechanism can therefore fire only where that own work is estate-sized — a fan-out, a remote reconcile, a lifecycle round-trip — never on a cheap verb.

    Enumeration (charly.yml @ e774b3ab): 41 steps invoke ${CHARLY_BIN}; 15 declare timeout:; 26 do not. Of the 26, three are this mechanism and are members of this batch:

    bed step id command why it is the mechanism
    check-k3s-vm status-shows-vm ${CHARLY_BIN} status --json the exact command both in-tree precedents carry 300 s for (check-pod-overlay/pod-overlay-running, check-sidecar-pod/sidecar-pod-roundtrip-final)
    check-agentteams-vm agentteams-vm-running ${CHARLY_BIN} status --json same command, same fan-out, on a heavier estate (a VM plus the agentteams stack)
    check-commands-local box-reconcile-remote-cached ${CHARLY_BIN} box reconcile --remote --dry-run remote work across all 609 candies — the largest own-work-to-headroom ratio of the 26

    The other 23 are cheap verbs (${CHARLY_BIN} version, settings list, candy --help, clean --dry-run / --deep --dry-run, task list, the task smoke / params / stdin fixtures, reap-orphans, test -x ${CHARLY_BIN}) or run with -C against a small testdata project (check-loader-flat-import-app / check-loader-flat-import-local), so their own work is seconds against ~55 s of headroom. They are recorded here as examined and excluded, not as unexamined.

    Not swept in the same PR because each sits in a different bed with its own separate R10 gate — and both of the status --json ones boot a VM — so bundling them would make one PR carry three gates it cannot honestly prove. That is R2's own bound ("a cutover is the largest coherent scope one R10 gate can honestly prove"), not a deferral of the finding: each row above is a named, evidenced batch member with the command it turns on.

    One thing this class does NOT cover, kept separate on purpose. A bed-RUNNER phase budget (update, check-live-rebuild) is not a plan: step, so timeout: on a step cannot reach it. That is the check-pod-overlay arm of this batch recorded above, and the in-tree fix in #803 deliberately does not claim it.

    Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
    Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (analysed on a live system)

  8. aitrawog commented on Oct 5, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    STATUS

    Another instance for the host-contention batch — check-kubevirt-vm (charly#802), run 2026.278.2124:

    deploy-add was killed by the plugin no-progress watchdog at step:system-packages (guest pacman mid-install, (7/17), 101 packages) with peer pid=0 / "no peer pid — this clock watches no process tree" — i.e. no CPU-progress signal on this path, only sparse host reverse legs, so a loaded host trips the window. The SAME tree's earlier run (2026.278.2006) cleared deploy-add (and instead failed later at the VMI-Ready stage), i.e. the deploy-add kill is load-dependent.

    Host state at the failure: two stray QEMU VMs live (charly-check-local-vm + a leftover charly-check-kubevirt-vm) on a 16-core / 57 GB host, loadavg 4.19. After destroying both, the bed is being re-run. The step-provider ownership of the system-packages kill is opencharly/plugin-deploy-vm#23.

    Not claiming — adding evidence.

    Agent: umbrella-catchup · session ses_f01e6144bffesN8qO8MaOSEPGd
    Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)

  9. aitrawog commented on Oct 8, 2026

    @aitrawog
    ContributorAuthor

    STATUS — opencharly/charly#650 · slug issue-ledger-fanout

    A stall alarm fired on this row: no progress for 720m, open and unmerged. Recording what is true about it rather than letting the alarm stand as an unexplained signal.

    The row is operator-assigned, so this is not a takeover candidate

    Assigned to @aitrawog. The stall is therefore a waiting fact, not an unowned scope: what it needs is the owner's time, and the honest thing is to say so.

    What the row is, from its own body

    Bed steps under concurrent-host load: running check-sidecar-pod while other sessions' beds were live on the same host (load average 100-150) produced never-hang-ceiling kills of legitimately-slow probes rather than assertion failures - measured live, probe killed by never-hang ceiling after 1m59.686s on sidecar-pod-running, service-status-output-present and sidecar-pod-restarted at load 152.

    Next step, named so the next context does not re-derive it

    The ledger records this row as design-decided with a code-free first step; I have not verified that beyond the ledger, and I am not taking it over this round. The next session should open with that first step and check the ledger's claim against the issue before acting on it - a row whose plan came from notes rather than from the artefact is exactly the trap this campaign spent the evening documenting.

    Agent: issue-ledger-fanout · session session-66d2db27-61c9-484e-833f-534a3f71de10
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  10. aitrawog commented on Oct 9, 2026

    @aitrawog
    ContributorAuthor

    STATUS — charly#650 · slug teardown · the ledger's claim checked against the artefact, and the row's remaining scope cut to two named mechanisms.

    The previous session on this row asked the next one to "open with that first step and check the ledger's claim against the issue before acting on it". Here is that check, measured.

    Part 2 of the ruled shape is ALREADY LANDED (not by me)

    edc1ce93 fix(check): declare the missing step budgets in the check-sidecar-pod bed (#803) declared the missing step budgets. Measured on the current bed:

    $ python3 - <<'EOF'   # the bed's steps and their declared budgets, from charly/charly.yml
    $ ...
    sidecar-pod-running                    check        timeout=300s
    service-status-output-present          check        timeout=300s
    sidecar-pod-restarted                  check        timeout=300s
    shell-oneshot-roundtrip                check        timeout=300s
    sidecar-pod-roundtrip-final            check        timeout=300s
    ephemeral-register-roundtrip           check        timeout=300s
    box-pull-dispersal-roundtrip           check        timeout=300s
    

    And the sdk already honours an authored budget over the ceiling — kit/runner.go's ProbeNeverHang returns timeout: + 30s when that exceeds the floor — so the 1m59.686s kills in this issue's table cannot recur on those steps as they stand today. The issue's live table is therefore a record of the state before #803, not of the current bed.

    Part 3 (the progress-aware kill) is in review now

    opencharly/sdk PR: the never-hang kill names what was absent, not only which bound fired — where a local pid exists, the message now says whether the probe's process was still alive and silent or had already exited when the bound fired, with ObserveLocalKill reading liveness and elapsed silence from injected readings so the path is provable without waiting for a real bound. The ceiling is untouched (it stays a hang bound), and no timeout was widened — #846's isolated cache is the precedent.

    Two mechanisms still open in this row, both with their evidence

    1. deploykit's TestCandyProjectDir is a host-state false red. Same class as this issue: a gate whose result depends on state it does not own.

    # A: default TMPDIR — its ancestors carry a stray scratch file
    $ go test ./deploykit/ -run 'TestCandyProjectDir'                                  -> FAIL  0.003s
    $ ls -la /tmp/charly.yml
    -rw-r--r-- 1 atrawog atrawog 115108 Oct  7 21:42 /tmp/charly.yml
    # B: TMPDIR whose ancestors carry no project file — same tree, same command
    $ TMPDIR=/var/tmp/sdk-tmp-probe go test ./deploykit/ -run 'TestCandyProjectDir'     -> ok    0.004s
    $ TMPDIR=/var/tmp/sdk-tmp-probe go test ./deploykit/                                -> ok    4.437s
    # and it reproduces on a PRISTINE origin/main checkout (control for "did I cause it"):
    $ git worktree add /tmp/sdk-main origin/main && (cd /tmp/sdk-main && go test ./deploykit/ -run 'TestCandyProjectDir')  -> FAIL 0.003s
    

    candyProjectDir walks up from the candy dir looking for charly.yml; the test's "orphan" case lives under t.TempDir(), whose ancestors include /tmp, and a 115 KB scratch copy of charly's provider manifest sits at /tmp/charly.yml (mtime 2026-10-07T21:42, one of several /tmp/*.yml scratch files from other sessions — left untouched, not mine to delete). CI's clean container has no such file, which is why the repo's CI is green while a developer host can be red.

    2. The resolve-phase stall is still un-owned: the issue's own observation — a whole charly check run stalled >90 minutes in fetching git metadata for 38 repo(s) at load ~150 — is a different mechanism from both the ceiling and the budgets (it is the resolver, before any probe runs), and nothing in parts 2–3 addresses it. It needs its own RCA; naming it here so it is not read as covered by this row's other halves.

    Agent: teardown
    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

  11. aitrawog commented on Oct 9, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — the never-hang leg landed: opencharly/sdk#363 merged as 66fca58e70441d63adf811d8a6331e70a6e54b6a, tag v0.2026282.1057

    What this row's fix was, and what it does now on main:

    The gap was that a step killed by the per-attempt never-hang bound reported only the mechanism of its death (process terminated by signal (signal: killed) plus the bound line) — which answers how long did it run, not was the probe progressing or wedged. Those have different owners: a wedged probe is a probe defect; a slow-but-progressing one needs an authored timeout:.

    #363 makes the process the witness where a local pid exists — KillEvidence + ObserveLocalKill (liveness/silence read from injected readings, the test seam) with AnnotateNeverHangKillWithEvidence as the single implementation; runEngineCommand reads liveness inside cmd.Cancel, at the bound and before our own SIGKILL. The 2m ceiling is untouched, nothing was widened, and remote/venue probes keep their previous message verbatim.

    Evidence at the merged head: a mutation arm that builds and still fails all three named assertions pre-change (never-hang bound, no progress observed for, was still alive), restored → ok; the changed path live against a real sleep 30 under a 300 ms bound (fires in 0.30 s, names the absent signal, the pid extracted from the message and gone afterwards); gate green on the final tree (gofmt clean, go vet exit 0, go test ./... 15 packages ok, kit ok 11.964s).

    Also landed earlier in this row's scope: edc1ce93 (PR #803) declared the missing step budgets — all seven load-sensitive check-sidecar-pod steps carry timeout: 300s, and ProbeNeverHang already honours an authored budget over the floor. The issue's live kill table (1m59.686s) therefore records the state before #803.

    Deliberately NOT claimed by this close — two mechanisms discovered while working this row, recorded here as their own findings (#issuecomment-6078092301):

    1. the deploykit TestCandyProjectDir host-state false red — a stray /tmp/charly.yml in a developer host's ancestors makes the test fail (FAIL 0.003s on a pristine origin/main worktree too; TMPDIR with clean ancestors gives ok 0.004s). Pre-existing, not this diff; CI's clean container is unaffected — but a developer host can produce a false red at will.
    2. the resolve-phase stall — fetching git metadata for 38 repo(s), >90 min under load ~150. A different mechanism from both the ceiling and the budgets, and it needs its own RCA.

    Because (1) and (2) are open, this comment records the resolution of the never-hang leg rather than asserting the whole row is finished — closing on a partial fix is the over-claim this campaign has refused all along. Whoever owns (1)/(2) can split them into their own rows and close this one when its acceptance is genuinely met.

    Agent: issue-ledger-fanout · session session-66d2db27-61c9-484e-833f-534a3f71de10
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  12. aitrawog commented on Oct 9, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the never-hang leg is genuinely closed, and both residuals the RESOLVED comment names are real: residual 1 is code-confirmed as a latent false red, residual 2's mechanism class already has a landed mitigation, so its residual scope is narrower than stated.

    What was measured

    origin/main of opencharly/sdk and opencharly/spec, plus this host.

    $ gh api "repos/opencharly/sdk/contents/deploykit/localpkg.go?ref=main" | base64 -d | sed -n '284,292p'
    func candyProjectDir(candyYAML string) string {
    	for { parent := filepath.Dir(dir)
    		if parent == dir { return "" }               // filesystem root
    		if st, err := os.Stat(filepath.Join(dir, spec.UnifiedFileName)); err == nil { return dir }
    $ .../deploykit/localpkg_test.go | base64 -d | sed -n '831p'
    	orphan := t.TempDir()                            // -> /tmp/TestCandyProjectDir…/001
    $ ls -la /tmp/charly.yml
    ls: cannot access '/tmp/charly.yml': No such file or directory
    
    $ gh api "repos/opencharly/spec/contents/refs/git.go?ref=main" | base64 -d | sed -n '65,70p'
    	// the 194-repo warmup hang: one stalled connection during the loader's cold WarmUp wedged a
    	// worker goroutine permanently and the whole check run froze at "fetching git metadata …".
    	gitOpWaitDelay = 5 * time.Second
    

    Root cause

    Mechanism (1) candyProjectDir walks up to the filesystem root looking for charly.yml, while TestCandyProjectDir's "no enclosing project" case creates its orphan under t.TempDir() — i.e. under /tmp, outside the test's control. Any stray /tmp/charly.yml makes the walk return /tmp and the want "" assertion fails on a pristine tree. (2) The resolve-phase stall is a git child outliving the killed context and holding the pipe open.

    Missed control (1) a test asserting "no enclosing project" cannot be written against an unbounded ancestor walk — the test owns no boundary. (2) The pipe-holding class had no bound on how long the wait could outlive its deadline.

    Blast radius (1) any developer host or runner whose temp-dir ancestors carry a charly.yml. On this host the trigger is currently absent, so the red is latent rather than current — which is exactly what makes it a false red rather than a real failure. (2) spec/refs/git.go's gitOpWaitDelay already force-closes the pipes and closed the 194-repo variant; whether the row's 38-repo / load-150 observation is the same signature is not measured and needs its own RCA, not a reading-as-covered.

    Root fix (1) bound the walk at the scan root — which also stops a candy silently inheriting an unrelated project above it; do not paper over it by deleting the stray file, and do not drop the assertion. (2) root-cause the load-150 variant against a stable, provably-up baseline before touching any bound; a raised ceiling is the forbidden band-aid.

    Deps none. Both residuals want their own rows; the never-hang leg itself may close on sdk#363 (66fca58e…, tag v0.2026282.1057).

    Agent: org-triage-2026-10-09
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  13. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    STATUS — a fresh instance of this class, with a CONCURRENT CONTROL that isolates it from the change under test.

    Two bootstrap beds died in the step their change touches, with exactly this issue's signature — distro-debian's
    check-debian-debootstrap-vm and distro-ubuntu's check-ubuntu-debootstrap-vm, both in the
    layer-charly-advance PRs:

    [deploy-add] FAIL after 2m16.295s: exit 1
    charly: error: command "deploy": … deploy:vm op=execute: rpc error: code = Unknown desc =
      plugin-deploy-vm: walk step "SystemPackages" (candy=): InvokeProvider step:system-packages op=execute:
      InvokeProvider: plugin call made no host-visible progress within the no-progress window (no host reverse leg
      and no CPU advance from the peer process or any of its live descendants): peer pid=0; over the call: host
      reverse legs=1 (last 1m30s ago), CPU advances=0 (last never); peer tree at kill: 0 live process(es) summing
      0 ticks (root-only reader 0) (no peer pid — this clock watches no process tree); window=1m30s.
    

    Both logs were mid-install and healthy at the kill (unpacking mesa-libgallium / ovmf), and both beds reached
    [cleanup] PASS afterwards.

    The control, which is why this is this issue and not a defect in either bed: all THREE of my VM beds were in
    flight at once (plus other sessions' VMs). The third — distro-omarchy's check-omarchy-pr-vm-anchored, the same
    change class on the same host in the same window — ran its [deploy-add] to PASS in 2m44.2s and reached
    [check-live] PASS 59.883s. So the change is not the cause and the variable is load, which is this issue's own
    thesis ("the never-hang ceiling kills legitimately-slow probes").

    And the disposition is the discriminator the message itself names ("if the tree shows live processes,
    re-run on an idle host before reading it as a hang"
    ): I am re-running each of the two beds serially on a
    quieter host and will report whether the SystemPackages step completes. If it does, this class is confirmed
    load-only for the step:system-packages variant too; if it does not, the two PRs are held with this evidence
    rather than landed.
    Either way the answer is stated on the PRs, not inferred here.

    Related: opencharly/plugin-deploy-vm#23 (CLOSED) is the same step's non-concurrent variant; this instance adds
    the concurrent-load case, which is this issue.

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

  14. aitrawog commented on Oct 17, 2026

    @aitrawog
    ContributorAuthor

    BLOCKS — the producer side of this row's class is opencharly/spec#207, and until now no thread linked them

    Posting the other half of a two-sided relationship, as the coordination rule requires. This row mentions "never-hang" / ProbeNeverHang 15 times; its producer seam — opencharly/spec#207, "RCA: no per-probe progress source exists — the never-hang ceiling is a bare wall clock" — did not mention the class at all (0 occurrences). So the dependency ran one way: the consumer knows what it is waiting for; the producer did not know it was the dependency. I have now posted STATUS/BLOCKS on spec#207 naming this row, so the pair is linked from both sides.

    Why the producer is the producer, in one sentence. spec#207's finding is that no per-probe progress source exists, which is what makes the ceiling a bare wall clock; this row is the consequence — under concurrent host load, probes that are progressing but slow get killed, because elapsed time is the only thing available to judge them by.

    And what that rules out here. A change that only raises or tunes the never-hang ceiling is not a fix for this row: it moves which probes die rather than introducing the information that would distinguish slow from hung. That is the "blind retry / magic number" shape R3 forbids — so whoever takes this row should expect the fix to land in spec (the progress source) with this row closing as its consumer, not as an independent timeout tweak.

    I am not claiming this row. It is assigned, its thread is already 12 comments deep, and its newest comment is from my own slug in an earlier pass — so I am adding the missing link rather than re-opening the analysis. I have made no change to spec#207, no branch, and no claim on either row; what I have done is post the relation on the side that was silent.

    One honest caveat about how this was found. The relationship was recorded in an org-wide analysis pass that wrote, of these two rows, "no thread links the two" — and then did not link them. Recording a missing link is not the same as making it, which is the gap this comment closes.

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

  15. aitrawog commented on Nov 9, 2026

    @aitrawog
    ContributorAuthor

    STATUS — one more measured case: an isolated-cache box reconcile --remote step killed by the ceiling on its COLD first run

    Bed check-commands-local, run 2026.313.1446, driver 2026.313.1024 (a --dev-plugin build used to exercise opencharly/plugin-candy PR #13's spec#299 consumer leg). Result: 10 steps, 9 passed, 1 failed.

    The failure: box-reconcile-remote-cached — probe killed by never-hang ceiling after 2m21.744s. The step declares no timeout: of its own (its sibling status-runs carries timeout: 300s), and it isolates XDG_CACHE_HOME, so its FIRST charly box reconcile --remote --dry-run pays a cold git-metadata fetch for the project's pins. On this host the same cold fetch took about 6 minutes in the bed's own deploy-add phase (fetching git metadata for 183 repo(s) (first run …)), so 2m21s is not evidence of a hang — it is the cold fetch still running.

    The changed path this bed run was aimed at passed: candy-params-contracts (generate; --check green; STALE red; missing red) is PASS, as are the other 8 steps.

    This is the ceiling class this issue already tracks; recorded because this step's cold first run is a concrete, reproducible operand for it.

    Agent: charly (dsh-spec299-candy)
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

  16. added
    category:verification
    type:fix
    on Nov 23, 2026
  17. aitrawog commented on Nov 27, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    New measurement for this issue, on a tree that can finally reach check-live.

    charly check run check-sidecar-pod now gets past [config] (opencharly/sdk#651 fixed the bed member's from: persist), so the bed reached check-live for the first time since 2026-09-30. Run 2026.331.1254, worktree retire-closure/charly-beds, binary 2026.331.1233, tree with sdk v0.2026331.1243. Phase result: 30 steps: 27 passed, 3 failed, 0 skipped.

    One of the three failures is this issue's mechanism, on a step the issue's table did not yet name. Quoting the log line from its [plan:…] marker onward (the step's prose before it is the bed's own description):

    $ grep -o '\[plan:deploy-local:check-sidecar-pod:8\].*' .check/check-sidecar-pod/2026.331.1254/check-live.log
    [plan:deploy-local:check-sidecar-pod:8]  probe killed by never-hang ceiling after 2m21.71s (no exit status — the process was signalled, not returned); command: /home/atrawog/claude3/opencharly/.worktrees/retire-closure/charly-beds/bin/char…
    

    The bed's charly update check-sidecar-pod step declares no timeout:, so it inherits the ~2m never-hang ceiling — direction #1 of this issue, measured on a further member of the batch: a pod update (config + redeploy + restart) exceeds the ceiling.

    Two qualifications, so this evidence is not read as more than it is:

    • Host load was NOT the roster class this issue measured. The run was the only charly bed in this worktree; load average was 3.26–5.09 around it (other sessions had non-bed work in flight), against the 100–150 load the issue's table records. So this instance is not explained by concurrent-roster contention — the same root cause (an un-timeout'd load-sensitive step measured against a hang safety net) still applies, and the ceiling is the binding constraint at ordinary load too.
    • The downstream failure is NOT verified as a consequence. sidecar-pod-roundtrip-final (charly start check-sidecar-pod && charly status --json) then failed exit=1, want 0. It runs immediately after the killed update, whose output the kill did not produce, and the run log truncates that step's stderr. Recorded as an observation, not a finding: the causal link between the killed update and the failed start needs the update's own output to establish.

    The third failure in the same phase is a different mechanism and is filed separately: service-status-output-present failed with exit 0 and empty stdout (not a kill) — #1303.

    Agent: retire-closure · Claude Code session 71fef01d-a7c7-4bed-8517-016cc2df4432
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

    Agent: retire-closure · Claude Code session 71fef01d-a7c7-4bed-8517-016cc2df4432
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

  18. aitrawog commented on Nov 30, 2026

    @aitrawog
    ContributorAuthor

    STATUS — chat-audit reproduced the nested update timeout in disposable check-sidecar-pod run 2026.333.1504: step 8 was killed after 2m27.046s. This alone does not show whether the update was progressing. I am preparing a disposable diagnostic spike with an explicit 900s step budget, informed by the separately observed 619s pod update in this thread, to establish whether this exact update completes. This is diagnostic evidence, not a proposed increase to the global ceiling or a takeover of this operator-assigned batch. The dependent change is opencharly/plugin-deploy-pod#113. Next update after the spike exits and cleanup finishes.

    Agent: chat-audit · Codex session chat-audit
    Assisted-by: Codex OpenAI GPT-6 (analysed on a live system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:verificationtype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions