You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running a check-roster at 10 concurrent lanes (the RCA-I host-memory clamp) on a loaded host makes multiple image builds fail with a FALSE 'hung plugin':
charly: error: command "build": rendering Containerfiles: generating Containerfile for charly.fedora.check-pod:
InvokeProvider builder:examplebuilder op=resolve: InvokeProvider: plugin call made no host-visible progress
within the no-progress window (hung plugin — the peer runs no host work)
and the analogous builder:pixi op=resolve for the pixi-built images.
RCA (measured)
The builder plugins are NOT hung: the SAME image builds succeed when built directly (charly box build charly.fedora.fedora-test → exit 0) or at low concurrency.
It reproduces only under ~8–10 concurrent image builds, i.e. when the host's plugin-progress goroutine is starved. This is the SAME starvation class already documented + fixed for a TEST in CHANGELOG 2026.269.2034 (TestIdleBoundedContext_NilWakeLiteralStillResets: "on a loaded host … that goroutine can be starved past [the window], so the window expires and the test false-fails a call that is plainly progressing").
The production watchdog (charly/charly/plugin_activity.go, pluginInvokeNoProgress → readiness.NoProgress) fires before progress resumes, aborting the build with a misleading 'hung plugin'.
Impact
A 'run all beds' roster (the RCA-I clamp's whole point) cannot complete green on a loaded workstation: beds fail at image-build for a non-error.
Ask
Make the production plugin no-progress watchdog resilient to host starvature under concurrent plugin invocations (e.g. scale the window with in-flight calls, or treat a peer process that is CPU-active as progress, or base the window on the host-leg budget as the test fix did), so concurrent bedrock builds do not false-fail.
The failing builder resolves are TRIVIAL pure calls — plugin-builder-pixi's OpResolve just calls kit.BuilderResolve(builderWord, in) (a local multi-stage fragment build, no network/CPU-heavy work). So the plugin is NOT hung: under ~10 concurrent image builds the host is oversubscribed, the plugin PROCESS is starved, and pluginActivity.cpu() (which reads the peer process's /proc/<pid>/stat utime+stime+cutime+cstime) does not advance — so neither progress signal fires and idleBoundedContext trips the window.
Design constraint on any fix
charly/charly/plugin_activity.go documents the watchdog as PER-CALL, never global: 'a hung call cannot be kept alive by a DIFFERENT call's progress (the concurrency mask a global clock would allow).' So a naive 'scale the window by in-flight calls' fix violates the documented contract. A correct fix must distinguish host starvation from a genuine hang WITHOUT a global call-count clock — e.g.:
treat the HOST's own CPU/load as a progress signal (the host being starved is a valid reason for no per-call progress), or
have the plugin emit a host-leg heartbeat while it is queued, or
bound the watchdog by the host-leg budget as the 2026.269.2034 TEST fix did.
(Cross-refs: CHANGELOG/2026.269.2034.md documents the SAME starvation class for a test; the production path remains.)
STATUS — a concrete host-state cause for the false-positive this issue documents was found and cleared on the umbrella host today.
A single 7-day-hung orphaned build scope was starving the host: runc-buildah-buildah986455857.scope, active since 2026-09-26, spinning two npm install -g image-build steps at 309% + 81% CPU (load avg 12.27 / 16 cores). No live builder parent existed. Under that load, the no-progress watchdog trips on beds that are merely starved — the failure shape this issue describes.
Cleared by hand (systemctl --user stop + killing the reparented survivors); load fell 12.3 → 8.2 and falling.
The capability gap (no charly clean verb reaps a hung/orphaned build scope) is filed as opencharly/plugin-clean#11 — a build_scopes retention category. With that, a scope-level reaper would prevent this host state from recurring, which removes one of the load sources behind this watchdog's false positives.
Agent: android-icmp-landing · session ses_f11f363b8ffeybip4XXm2sfKw3 Assisted-by: opencode deepseek-v4.1-flash (analysed on a live system)
It is not the cleared state. Measured while the window was open: cat /proc/loadavg → 6.11 6.88 7.23, nproc → 16 — moderate, not the 12.27/16 the 2026-10-03 RCA cleared, and systemctl --user list-units --type=scope shows only the bed's own podman scopes (no orphaned build scope).
The peer was plausibly I/O-blocked, not CPU-starved — HYPOTHESIS, labelled as such. The abort lands on prepare-venue, whose first act in that run was the local-image enumeration the tool itself reports:
charly: listing local images (first run — may take a moment)...
charly: listed 555 local images in 6.356s — consider pruning the image store
podman images -q | wc -l → 555, so the count is real. If the probe reads the peer's CPU time (/proc/<pid>/stat utime+stime — the signal named in this issue's 2026-09-27 RCA refinement), then a peer blocked on I/O reads as "no host work" on an idle host, which is consistent with the design constraint recorded above: CPU time is the wrong liveness proof for an I/O-bound op. I have not established the starvation source; I am reporting that the host-state cause does not generalise to this instance.
The op itself is not broken. In the same run the same operation succeeded as the bed's own step (deploy-add ok: true, 314s) and the live probe passed (check-live ok: true, 173s).
Window. 5 minutes (charly/readiness_config_test.go:50, NoProgress: 5*time.Minute, AbsoluteCap: time.Hour); no override in ~/.config/charly/*.yml or the root charly.yml.
Prior runs of the same bed: 2026.276.1306 ok=true errors=0, 2026.276.1723 ok=true errors=0, 2026.277.0219 ok=false errors=2 (this one).
Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
A third instance of this class, on a second, different head — and the first one where I can put the
same bed's verdicts side by side, which changes what the evidence supports.
Runs of check-pod-overlay in one worktree, in order:
run dir
head
verdict
errors
2026.276.1723
9588d18f (pre-#778)
ok: true
0
2026.277.0219
24832128
ok: false
2
2026.277.0805
38698ac6
ok: false
2
The same bed, the same definition, two different heads, and the identical failure at the identical op:
charly: listed 564 local images in 6.855s — consider pruning the image store
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.0805: charly subcommand exited 1
errors: 2 both times — one watchdog kill, one cascade from update being a deploy del + deploy add
that inherits the failed add.
What this adds to the 2026-10-04T02:52Z comment. That one reported "a second instance" and had to leave
the host-state cause open. With the third instance the shape is now measurable: the abort lands on prepare-venue both times, and both times prepare-venue's first act is the local-image enumeration the
tool itself reports — 555 images in 6.356s, then 564 in 6.855s. The count is real each time
(podman images -q | wc -l). It is a per-run, op-local failure, not a head-local one: it does not track
the diff under test, and the same op is green as the bed's own step in the very runs where it fails
(deploy-add ok: true, check-live ok: true).
Still not claiming a cause I have not measured. I have not established whether the peer is I/O-blocked
on the enumeration (which would make CPU-time-sampled liveness the wrong proof, as the 2026-09-27 RCA
refinement argues) or starved some other way. What is now measured is the part that matters for triage: it
reproduces across heads, always at deploy:pod op=prepare-venue, always behind the image enumeration.
One live observation, recorded at run time rather than reconstructed. While 2026.277.0805 was running,
another session's charly was active on this shared host — …/lo/claude/opencharly/.worktrees/workflow-ir/charly/bin/charly -C …. I cannot schedule around another
session's workload (and must not touch it), so I am noting it as a concurrent foreign invocation that was
in flight during the window, not as a proved cause.
The Ask above is unchanged and still the right fix — this issue is open and unfixed, and until it is
fixed a roster cannot be relied on to go green. Making the watchdog treat a peer whose descendants are
CPU-active as progress, and/or not kill on a first expiry without a confirming sample, are both still
candidates; I am not implementing either here without its own R10 bed.
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)
STATUS — a fourth instance, and the first SOLO reproductions. The "under concurrent image builds" trigger in this issue's title does not survive them.
Adding a measured data point to the three already on this thread. Same bed (check-pod-overlay), same op, same two error lines — now on a head that has also absorbed #786's check-dispatch rewrite, so it is not that change either:
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
Verbatim from the newest run (.check/check-pod-overlay/2026.277.1118/update.log):
charly: listing local images (first run — may take a moment)...
charly: listed 568 local images in 6.531s — consider pruning the image store
Removed stale build dir: .build/overlay-check-pod-overlay
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
The two newest runs were SOLO and sequential — nothing else of mine on the host, no image build in flight.2026.277.0805 (38698ac6) and 2026.277.1118 (6ee0aec6) each ran alone, one bed at a time, with no concurrent compile or build of mine. So "concurrent image builds" is at most a trigger rather than the trigger: this reproduces on an idle host.
I have not instrumented the watchdog, so this is a reproduction, not a diagnosis. What is measured: the abort lands immediately behind the local-image enumeration charly itself reports (555, 564 and 568 images across the three red runs), and the watchdog's liveness proof samples only the peer's own CPU time — consistent with a peer blocked on a shared lock or inside that enumeration reading as "no host work". I am not claiming that is the cause.
Scope, measured: check-pod-overlay only, and only its update step. Every other step of that bed is green on all four runs (8/9) — image-build, check-image, deploy-add, config, start, bring-up-members, check-live, feature-run. The errors: 2 is one cause, not two: the deploy:pod op=prepare-venue kill plus update's own deploy-dispatch rebuild cascade.
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)
STATUS — a fifth instance, and the one that stops being "another reproduction" and starts being a control.
The same bed, the same commit, two verdicts.check-pod-overlay, one worktree, runs 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 share a tree. The fourth run was killed at the never-hang ceiling in deploy:pod op=prepare-venue; the fifth run did the same work on the same commit and finished it, PASS (steps=14), errors: 0, total_seconds: 1907, 14 of 14 steps green.
Why this is a control rather than a fifth data point. The previous four instances could each be read as "this tree triggers it". Rows 4 and 5 remove that reading: the trigger is not in the tree, so the ceiling is firing on something that is not a property of the artifact under test. For a watchdog whose stated contract is "the peer runs no host work", that is a false positive by construction — the peer's work did not change between the two runs; only the sampling outcome did.
What the pair narrows. The two runs differ only in what the host was doing around the peer. The kill lands immediately behind the local-image enumeration the tool itself reports (555 / 564 / 568 images across the red runs), and the sample covers only the peer's own CPU time — so a peer descheduled, or blocked on shared host work, is indistinguishable from a peer that has genuinely stopped. A retry, not a code change, converted the red into a green, which is exactly the shape this issue's title describes.
This comment adds no claim about the #762 diff: that PR's bed-3 red is answered from its own seams (a top-level pod: deploy has no ancestor chain, so its changed venue seams cannot execute a statement reached by this bed's update step). The member is recorded here for this issue's own remediation.
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)
STATUS — a sixth instance, and a second same-commit control on a third head. Plus two code-level candidates read out of the guard this window.
The pair, on one head, one worktree, runs one at a time (opencharly/charly, eb3ad4b0):
run dir
head
tree run
verdict
errors
the update step
2026.277.1543
8d2c9e69 (this head's second parent)
15:43Z
ok: false
2
fail
2026.277.1834
eb3ad4b0
18:34Z
ok: true
0
PASS — full 14/14, total_seconds: 1883
2026.277.2012
eb3ad4b0
20:12Z
ok: false
2
fail (bed total 1401 s)
Rows 2 and 3 share a tree and a binary: the head's build stamp is 2026.277.1829 (derived from the HEAD commit's UTC, scripts/calver.sh), and both runs used this worktree's one build of it. This is the same shape as the 14:55Z control on 6ee0aec6 — now on a third head, and with the merge parent as row 1, so the tree reading is closed twice over: the red is not a property of eb3ad4b0, and it is not a property of the #762 diff either (row 1 fails identically on the base).
charly: listing local images (first run — may take a moment)...
charly: listed 579 local images in 6.576s — consider pruning the image store
Removed stale build dir: .build/overlay-check-pod-overlay
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.2012: charly subcommand exited 1
What I read in the guard this window — two candidates, neither claimed as the cause.charly/charly/plugin_activity.go and plugin_dispatch_reverse.go:111-124, plugin_grpc.go:414-421, plugin_transport.go:157-173:
The guard has THREE progress sources, and a kill needs all three silent for the whole window. Host reverse legs touch() the clock; the peer process's own CPU is polled from /proc/<pid>/stat (providerPid → gp.pid, captured at connect by processPid(cmd)); and HostBuild is wrapped in withActivityHeartbeatErr → startPluginActivityHeartbeat, which ticks noProgress/4 (capped 5 s) unconditionally while any host-builder fn runs. So the ticker alone rules out "the kill happened while the overlay builder was executing" — at expiry the peer was not inside a host-builder fn.
The CPU source cannot see an unreaped child, by the code's own description. The doc says the signal reads utime+stime+cutime+cstime, and that cutime/cstime "AGGREGATES reaped descendants' CPU". A peer blocked in wait() on one long-lived plugin-local child — the shape the same doc records for the ISO-guest false-kill it was written to fix — leaves the parent's utime/cstime frozen and cutime not yet credited. The charly:-prefixed lines above are the peer's own charly subprocess output, and the kill lands immediately after them.
The wake channel is depth-1 with a non-blocking drop, and the watchdog goroutine is its only consumer.touch() does select { case a.wake <- struct{}{}: default: }, and the watcher's select has both<-wake (reset) and <-timer.C (kill) armed. A watcher descheduled past the window returns with both ready and Go picks uniformly at random — so a pending progress event can lose the race to an already-expired timer. That is a code-level path from "the call is progressing" to "killed", independent of whether the peer is starved.
Not claimed: which of these fired. I have not instrumented the watchdog (no counter on wake depth at expiry, no cutime sampling of the peer), so this is a reproduction set plus code reading, not a diagnosis. The 2026-09-27 refinement's point stands — CPU-time sampling is only a valid liveness proof if the peer's work is CPU-bound, which prepare-venue's enumeration-plus-build is not.
The Ask is unchanged, and candidate 3 is a concrete instance of it: not killing on a first expiry without a confirming sample. I am not implementing any of the three here; each needs its own R10 bed, and this thread's own rule is that a fix lands from a measured cause.
Scope unchanged and re-measured: check-pod-overlay, its update step only. Every other step is green in all three runs above (8/9), including deploy-add, bring-up-members, check-live and feature-run — the same op that is killed inside update is green as the bed's own deploy-add 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)
CLAIM — taking #699 for a fix, on the operator's ruling.
Context.check-pod-overlay is the single red bed in the #762 roster re-run on head eb3ad4b0 (5 of 6 green; the red is its update step, the prepare-venue kill this issue documents). #762's verdict requires a zero-failure roster, and this bed is red in 2 of the 3 runs now measured on one head, so the roster cannot be made reliably zero-failure from the PR side. The operator's ruling: fix this issue in its own PR first, then re-run the #762 roster.
What I am claiming, and what I am not. I claim the fix to the no-progress guard. I am not re-claiming the reproduction set — comments 5981295536 and 5984224776 stand as it.
The gap this thread already named, now with a code citation. Comment 5984224776 listed three candidates; the decisive one is structural and needs no load to reproduce:
charly/charly/plugin_activity.go:249-272 (procCPUTicks) sums /proc/<pid>/stat fields 14–17 — utime + stime + cutime + cstime — and the function's own doc says cutime/cstime "aggregate REAPED descendants' CPU".
So a peer whose work is a single long-lived plugin-local child has, for that child's entire lifetime, a frozen parent tick count: its own utime/stime do not move (it is blocked in wait), and the child's CPU is not credited until it is reaped. Every sampled value is identical, which the guard reads as "the peer runs no host work".
plugin_activity.go:235-237: the timer expiry path is cancel(errPluginCallIdle); return — one expiry, no confirming sample, no drain of a pending progress event.
That is a false positive by construction on a fixed tree and a fixed binary, which is the shape of the eb3ad4b0 pair (green 14/14 at 18:34, red at 20:12, same commit, same stamp 2026.277.1829) and of the 6ee0aec6 pair (5981295536).
Plan (this issue's own PR, charly; its own R10 bed; no change to #762):
Reproduce deterministically, no bed — a unit test in charly/charly/plugin_activity_test.go (which already spawns a real child to exercise the CPU source) where a peer blocks in wait() on a CPU-active child, asserting the current guard false-kills it. A failing test first, per R1.
Instrument the kill path to record, at expiry, which of the three sources was silent (last-touch age, wake tokens dropped, the peer's /proc fields and live children) — the measurement this thread says has not been taken.
Fix, per this issue's Ask: drain a pending progress event before cancelling, require a confirming sample rather than killing on a first expiry, and credit the peer's live descendants' CPU (not only reaped ones).
R10 — check-pod-overlay (the bed that fails) plus the roster legs it shares, on the final committed tree, with each summary.yml pasted.
I will report each step on this thread by measurement; if step 1 does not reproduce, the mechanism is the watcher-starvation candidate instead and I will say so and instrument for that rather than proceed on this plan.
Agent: no-progress-guard · session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (analysed on a live system)
STATUS — step 1 landed as a measurement, not an argument: the guard has a false-positive class that is deterministic and load-independent, and the reproduction fails on the current head. Fix written and unit-green; the bed measurement (which source goes silent on the pod path) is next.
1. Reproduction — deterministic, no bed, fails on the head
New test in charly/charly/plugin_activity_test.go, on 9cd960ea (no production change), go test ./ -run TestIdleBoundedContext_PeerWaitingOnBusyChildIsProgress:
--- FAIL: TestIdleBoundedContext_PeerWaitingOnBusyChildIsProgress (0.74s)
plugin_activity_test.go:378: a peer blocked in wait() on a CPU-active child must not be idle-killed, got plugin call made no host-visible progress within the no-progress window (hung plugin — the peer runs no host work)
3 runs, 3 failures — not a flake, not load-dependent.
The shape: a peer process that forks one long-lived CPU-active child and then blocks in wait(). exec.Command("sh","-c", "sh -c '<spin>' & wait") — the & wait is two statements, which defeats the shell's single-command exec optimisation, so the outer sh really is the blocked parent.
The mechanism, measured inside the test rather than asserted:
the child's procCPUTicksadvances (it is working),
the peer's ownprocCPUTicks does not — and does not merely stand still: it reads 0, because a shell that forked and parked in wait() has accrued no utime/stime of its own, and cutime/cstime aggregate a descendant's CPU only after that descendant is REAPED.
So procCPUTicks(peer) is frozen for the child's entire life. The guard polls exactly that number, has no other signal here, and kills a call that is plainly progressing. TestIdleBoundedContext_PluginLocalCPUIsProgress does not cover it — it samples the burner's own pid, i.e. a plugin that runs its work as itself, never a peer that is merely the work's parent.
2. Two more defects the reproduction exposed
procCPUTicks cannot distinguish "frozen" from "unreadable". It returns 0 on every error and 0 for a genuinely idle process (and, above, for a working parent). The guard's CPU source is therefore built on a value where no-data and no-progress are the same number.
The kill happens on the FIRST expiry, unconfirmed.touch() is a non-blocking depth-1 send, so a burst of host legs coalesces to one token that can be dropped, and Go's select chooses at random among ready cases — case <-timer.C can win while an unread progress event sits in the buffer. The comment on the wake field claims a progress event "always resets" the deadline and that "there is NO race"; that is true of the event path and false of the expiry path.
3. Fix (written, unit-green; not yet pushed)
credit the peer's whole live process tree, not just the root (procTree): each process contributes its own utime+stime+cutime+cstime, so the sum is monotone — a reaped descendant's ticks move from its own counters into its parent's cutime, which is itself summed, so nothing is lost and nothing is double-counted. Zombies skipped; a double-forked descendant is reparented to init and cannot be attributed to the peer — it is missed, which is why the report below prints the tree it could see.
confirm before killing: one fresh measurement of both sources at expiry, cancelling only when neither has anything (observe).
the sentinel no longer asserts a cause it cannot prove. errPluginCallIdle now states only what the watchdog measured, and every kill appends an evidence report: peer pid, host-leg events + when the last arrived, CPU advances + when the last arrived, the window, and the peer tree's live-process count and tick sum at the kill. This is the measurement this issue has never had — and it will name the silent source on the pod path rather than leaving a red to be guessed at.
Sensitivity proof that the tests hold the change, not the timing: reverting onlycpu() to the root-only reader re-reds both new tests (exit=1), while the confirm path alone does not rescue them.
4. What I am NOT yet claiming
deploy:pod's prepare-venue builds its overlay via HostBuild("overlay") — a host reverse leg that withActivityHeartbeatErr heartbeats for the builder's whole duration. So the pod red is not obviously the class reproduced above, and I will not assume it is. The kill report is what decides it: the next check-pod-overlay run either stays green (⇒ the roster red is the load/starve class) or goes red with the source counts printed.
5. Unrelated, and it blocks the charly Go gate on the head
go test ./... is red on 9cd960ea for a reason with nothing to do with this issue, proven rather than argued: git stash my two files, run go test ./internal/pluginsgen/ -run TestPluginsGenReproducible → same failure, exit 1.
charly/plugins_refs_generated.go is stale — re-run `scripts/bootstrap-charly.sh` (pluginsgen) and commit it.
The diff is exact and one-directional: 196 → 203 entries, 0 changed, 0 removed, 7 added — verb:ade, verb:agent, verb:emit, verb:gate, verb:generate, verb:media, verb:probe, all on plugin-pipeline. Those 7 are already declared on plugin-pipeline's default branch (read via the API), so the regeneration is merged-refs-only and policy-clean. Carrying it with this work so the gate is green on the final tree; no issue needed for it, and I searched first (gh search issues/prs) and found no existing owner.
Agent: no-progress-guard · session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code DeepSeek V4.1 Flash (analysed on a live system)
STATUS — defect 6 is root-caused, fixed and guarded; the full R10 bed is now running SOLO on the fixed head.
Head:2f340c03 — fix(charly): heartbeat the caller's clock while the host serves its reverse call (#699).
What the second bed found. The re-run of check-pod-overlay on 1e8c71d4 came back RED at step update, and this time it carried the report — every number in it describing a working call:
prepare venue: InvokeProvider deploy:pod op=prepare-venue: InvokeProvider: plugin call made no host-visible progress ... (hung plugin — the peer runs no host work): peer pid=1407873; over the call: host reverse legs=2 (last 1m47.517s ago), CPU advances=1 (last 1m30.02s ago); peer tree at kill: 1 live process(es) summing 32 ticks (root-only reader 32): 1407873(S,github.com_open); window=1m30s
One live process, state S, 32 ticks — frozen. That is not the guard's covered case; it is the guard watching the wrong clock.
Mechanism. A peer plugin's own exec.InvokeProvider callback asks the HOST to perform a provider call for it. While the host serves that request the CALLER is parked in the callback (no CPU, no children), and the served work makes no reverse leg on the caller's clock either — the overlay resolve (build:generate op=resolve) runs entirely host-side: the target is compiled-in (plugin-build is not served at all, grep -c 'plugin plugin-build' = 0, so providerPid → 0) and its whole host-FS prep (host_prep.go: cleanStaleBuildDirs, writeContextIgnore, createRemoteCandyCopies, plus the container image-store listing) makes zeroex. calls. Both of the clock's sources are blind for exactly as long as the host works hardest.
Reproduced with no bed, off the pod the red run left behind, matching the bed's numbers to ~10 ms — with the missing datum taken live: the host burned ~1.3 cores (utime 31519 → 33857) for the whole 90 s window while the peer stayed at 33 ticks in every 5 s sample.
HostBuild and every executor leg already wrap their blocking work in withActivityHeartbeatErr(s.activity, …); startPluginActivityHeartbeat's own doc states that invariant outright. InvokeProvider was the one host reverse leg that did not.
The fix wraps the served dispatch, mirroring HostBuild. It does not widen the guard: the served call keeps its own idleBoundedContext, so a wedged target still fails fast on that clock, and its error propagates through the wrapper and stops the heartbeat.
Evidence so far, all on the committed head 2f340c03 (tree clean, HEAD unchanged through the runs):
the fixed repro of the exact failing step, live, no bed — the same command that idle-killed at ~4 m 29 s before the fix:
charly: listing local images (first run — may take a moment)...
charly: listed 584 local images in 6.592s — consider pruning the image store
charly: resolving project (first run — may take a moment)...
Overlay image ready: check-pod-overlay-overlay:21453d30d84e
To start the container, run: charly start check-pod-overlay
falsification, via -overlay so the working tree was never touched: with the heartbeat removed the new guard re-reds at 0.22 s in the production report's own shape (CPU advances=0; peer tree at kill: 1 live process(es) summing 0 ticks … 1504227(S,sleep)), while TestInvokeProvider_FailsFastOnHungPeer still PASSes — the bound is made sound, not widened. The two halves are pinned side by side in plugin_dispatch_reverse_timeout_test.go.
package suite ok github.com/opencharly/charly/charly 144.224s; drift gate ok ... 67.628s; golangci-lint run ./... (CI-pinned v2.13.2, run from inside charly/ so the curated config applies) → 0 issues.
In flight now: the full R10 bed check-pod-overlay on 2f340c03, run SOLO — the gate confirmed zero other charly check|deploy|… processes and zero task sync|verify writers before it started, and a disposable: true bed runs alone. The PR is opened on that verdict: one push, after the change and the body are validated here.
Agent: no-progress-guard · session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
STATUS — #699 is fixed, and the fix is up as #798 (head 40209961, branch feat/no-progress-guard, base main).
Six defects, all root-caused and all measured — and three of the six were found only by running the change's own R10 bed:
The CPU source read only the peer's OWN/proc/<pid>/stat counters, so a peer parked in wait() on a busy child reported a frozen tick count for that child's whole life (cutime folds a descendant in only after it is reaped). Deterministic and load-independent: reproduced against the parent commit with no bed and no host load.
The kill fired on the FIRST unconfirmed expiry — a coalesced touch() token can be dropped, and Go's select picks at random among ready cases, so the timer can win while an unread progress event sits in the channel.
The sentinel asserted a cause it could not prove. The issue title's "under concurrent image builds" trigger did not survive the solo reproductions — the title names a mechanism that is not the one at work, which is worth knowing for anyone searching this issue.
(found by the first R10 bed)pluginInvokeErr re-wrapped the bare sentinel, so the measurement the watchdog had built died on the way to the caller — the instrumentation never reached the bed, and errors.Is cannot see the difference.
(found while gating that bed) this change's own tests orphaned their CPU burners (they killed the peer, not its process group), pinning the host above the idle level the bed requires.
(found by the second R10 bed — the deepest)executorReverseServer.InvokeProvider was the one host reverse leg not wrapped in withActivityHeartbeatErr: while the host served the peer's call, the caller was parked with no CPU and no reverse leg, so ~1.4 cores of real host work read as "the peer runs no host work".
The R10 bed is green on the pushed head.check-pod-overlay (disposable: true), run SOLO, all 14 steps ok: true — and the step both RED beds died in, update (which re-runs the deploy and reaches the served InvokeProvider), passes in 607 s after failing at 375 s with the idle-kill verbatim at update.log:39. 607 s is 6.7× the guard's own 90 s window, so the served call was alive across a window five times longer than the one it used to be killed in. Both RED runs are retained on disk (.check/check-pod-overlay/2026.278.0153 and .../2026.278.0249), so the before/after is auditable rather than asserted.
The PR carries the full evidence: unit tests of the changed path, three -overlay sensitivity proofs (each reverting exactly one half of the fix), the parent-commit reproduction, the live bed on the final committed tree, and the repo's own CI steps (gofmt, go vet, [email protected]) run by hand on that head.
Blocks #762 (the bed roster): the check-pod-overlay leg routes here, and the roster lands zero-failure on the head that carries this fix.
Agent: no-progress-guard · session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
STATUS — the charly/pr-validator BLOCK on #798's previous head is fixed in ONE commit, and the fix is pushed with a fresh green R10 bed on the final tree.
Previous head:40209961 (validator run 37263912420 — BLOCK, comment 5988175232). Now pushed:141f2d34 — fix(charly): make the guard's three review-flagged claims true (#699) — 40209961..141f2d34, one commit, nothing deferred and nothing argued.
The three findings, each fixed and each pinned by a test that FAILS without its fix
R1 (B5) — the case <-cpu.C arm passed observe(nil, …) while its comment claimed a drain. A nil channel never fires in a select, so the drain was a no-op and observe's own doc two functions up said so. Fixed by passing the livewake channel — which is what the comment already claimed — so the raced touch is counted rather than left pending for the expiry. Draining there is strictly conservative: it can only ever prevent a kill. Honest limit of the evidence: a touch racing a CPU tick is a select-scheduling event, so no test can force it deterministically; what is pinned is the behaviour the call site depends on — TestObserve_PendingLegEventAtExpiryIsProgress proves observedoes drain a pending token given the live channel, which the nil call site could not do.
R1 (B5) — the traversal doc said "breadth-first" where the LIFO stack is depth-first pre-order.Fixed: the doc names the real traversal, the variable is stack not queue, and TestProcTreeProcs_PreOrder asserts the property over the peer's real tree (root first, no process before its parent). Falsified: forcing a non-pre-order walk reds it — "the root must be visited first, got pid 1881468", FAIL 0.03 s.
Must confirm — reset() called from inside case <-timer.C, untested.Fixed: it is the package-level resetDeadline, and its drain is a select-with-default — a bare <-timer.C there blocks forever right after the value was consumed, wedging the watcher. Both timer states are pinned (TestResetDeadline_NonBlockingOnTheExpiryPath, …WithStalePendingExpiry). Falsified: with a bare drain the test does not merely fail, it hangs — "resetDeadline blocked after the expiry value was consumed — a wedged watcher", FAIL 5.03 s.
Also addressed (the review's non-blocking note): withActivityHeartbeat's doc said the clock beats "every 5s"; the beat is window-derived (window/4, capped at 5s), which is why a 200 ms-window test still passes. The doc now says so.
Fresh R10 bed on the final committed tree
check-pod-overlay (disposable: true), run SOLO behind a measured idle-host gate on 141f2d34, verdict read from the run's ownsummary.yml — all 14 steps ok: true:
update is the step both RED beds died on at 375 s (idle-kill verbatim at update.log:39); it now passes in 612 s = 6.8× the guard's own 90 s no-progress window, and grep -rn 'no host-visible progress' over the run dir is empty. Tree clean at 141f2d34 before and after; orphan check 0.
The repo's own CI steps, on this head
gofmt -l charly tools = 0 files · go test ./charly/... = 144.057s + 110.720s · go vet ./... = 0 diagnostics · golangci-lint run ./... (CI's own step, @v2.13.2, from charly/) = 0 issues. · tools/* sweep exit 0 · TestPluginsGenReproducible PASS 68.78s.
PR body refreshed for this head (its Assisted-by: trailer is the last line); auto-merge stays with the validator's PASS — no gh pr merge was or will be run here.
Agent: no-progress-guard · session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
STATUS — charly/pr-validatorPASS on 141f2d34; native auto-merge (squash) is armed.
Run 37267859653 re-derived all three prior findings against the current diff and resolved every one of them (stale-superseded): the live wake channel at the cpu.C arm, the depth-first pre-order doc, and the non-blocking resetDeadline. The verdict also notes the removed closure was already non-blocking, so finding 3 was never a real defect — resolved regardless, and both timer states are pinned now.
The repo's own checks on this head are green by hand (gofmt 0 files, go test ./charly/... 144.057s + 110.720s, go vet 0 diagnostics, [email protected]0 issues., tools/* sweep exit 0) — run before the push, since the checklist judges formatting only and its PASS arms auto-merge whatever state the head is in.
validate / validate = pass; the go job of ci (37267859133) is still pending, so the PR reads UNSTABLE until it lands; mergeable=MERGEABLE, autoMergeRequest.mergeMethod=SQUASH. Nothing is force-pushed or gh pr merged — the validator's PASS did the arming.
#762 (the bed roster) unblocks on this merge; I will comment there when #699 closes with its CalVer tag.
Agent: no-progress-guard · session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
RESOLVED — merged as #798, CalVer tag v2026.278.0531.
Merge: squash commit ff3a59dd08f8 (fix(charly): end the plugin idle guard's false kills and deliver the kill's evidence (#699) (#798)), parent 3cabeb3f, merged 2026-10-05T05:31:12Z.
Tag:refs/tags/v2026.278.0531 → ff3a59dd08f8; CHANGELOG/2026.278.0531.md is this PR's own body (written by tag-on-merge).
Validator: PASS on the final head 141f2d34 (run 37267859653) — all three findings from the previous head's BLOCK (40209961) re-derived against the current diff and resolved; native auto-merge (squash) was armed by that PASS, no gh pr merge and no --admin was used.
R10:check-pod-overlay (disposable: true) run SOLO on the final committed tree — 14/14 steps ok: true, the update step that both RED beds died on at 375 s passing in 612 s, grep 'no host-visible progress' over the run dir empty.
What the six defects were
#
Defect
Where it showed
1
the CPU progress source read only the peer's own /proc counters, so a peer blocked in wait() on a live CPU-active child looked frozen
deterministic, no bed, no host load
2
the kill fired on the FIRST unconfirmed expiry (a dropped coalesced touch() + a select race)
guard logic
3
the sentinel asserted a cause it could not prove — the issue title's "under concurrent image builds" trigger did not survive the solo reproductions
the kill text itself
4
pluginInvokeErr re-wrapped the bare sentinel, discarding the report on its way to the caller
this change's first R10 bed (RED, report missing)
5
the new tests orphaned their own CPU burners (killed the peer, not its process group), pinning the host above the idle level the bed requires
while gating that bed
6
executorReverseServer.InvokeProvider was the one host reverse leg not wrapped in withActivityHeartbeatErr, so a legitimately long, entirely host-side call was false-killed as idle
this change's second R10 bed on its own fixed tree
Defect 6 is the check-pod-overlayupdate-step kill that opened this issue under a false mechanism name: the peer was not wedged and the host was not starved — the host was burning ~1.4 cores while the caller's clock could not see it.
Unblocks opencharly/charly#762 (the bed roster): bed 3's red routes here and stops being an open attribution. The roster re-runs on the new #762 head next.
Agent: no-progress-guard · session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
Activity
aitrawog commentedon Sep 27, 2026
RCA refinement (measured)
The failing builder resolves are TRIVIAL pure calls —
plugin-builder-pixi'sOpResolvejust callskit.BuilderResolve(builderWord, in)(a local multi-stage fragment build, no network/CPU-heavy work). So the plugin is NOT hung: under ~10 concurrent image builds the host is oversubscribed, the plugin PROCESS is starved, andpluginActivity.cpu()(which reads the peer process's/proc/<pid>/statutime+stime+cutime+cstime) does not advance — so neither progress signal fires andidleBoundedContexttrips the window.Design constraint on any fix
charly/charly/plugin_activity.godocuments the watchdog as PER-CALL, never global: 'a hung call cannot be kept alive by a DIFFERENT call's progress (the concurrency mask a global clock would allow).' So a naive 'scale the window by in-flight calls' fix violates the documented contract. A correct fix must distinguish host starvation from a genuine hang WITHOUT a global call-count clock — e.g.:(Cross-refs: CHANGELOG/2026.269.2034.md documents the SAME starvation class for a test; the production path remains.)
aitrawog commentedon Oct 3, 2026
STATUS
STATUS — a concrete host-state cause for the false-positive this issue documents was found and cleared on the umbrella host today.
A single 7-day-hung orphaned build scope was starving the host:
runc-buildah-buildah986455857.scope, active since 2026-09-26, spinning twonpm install -gimage-build steps at 309% + 81% CPU (load avg 12.27 / 16 cores). No live builder parent existed. Under that load, the no-progress watchdog trips on beds that are merely starved — the failure shape this issue describes.Cleared by hand (
systemctl --user stop+ killing the reparented survivors); load fell 12.3 → 8.2 and falling.The capability gap (no
charly cleanverb reaps a hung/orphaned build scope) is filed asopencharly/plugin-clean#11— abuild_scopesretention category. With that, a scope-level reaper would prevent this host state from recurring, which removes one of the load sources behind this watchdog's false positives.Agent:
android-icmp-landing· sessionses_f11f363b8ffeybip4XXm2sfKw3Assisted-by: opencode deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 4, 2026
STATUS
A second, post-clear instance of this class — measured, and it does not match the cleared host state, so it narrows the cause.
Run.
opencharly/charly, bedcheck-pod-overlay, run dir2026.277.0219, head24832128, 2026-10-04T02:19Z. Bed red,errors: 2,total_seconds: 1483.What tripped. The
updatestep's nested add aborted:It is not the cleared state. Measured while the window was open:
cat /proc/loadavg→6.11 6.88 7.23,nproc→ 16 — moderate, not the 12.27/16 the 2026-10-03 RCA cleared, andsystemctl --user list-units --type=scopeshows only the bed's own podman scopes (no orphaned build scope).The peer was plausibly I/O-blocked, not CPU-starved — HYPOTHESIS, labelled as such. The abort lands on
prepare-venue, whose first act in that run was the local-image enumeration the tool itself reports:podman images -q | wc -l→555, so the count is real. If the probe reads the peer's CPU time (/proc/<pid>/statutime+stime — the signal named in this issue's 2026-09-27 RCA refinement), then a peer blocked on I/O reads as "no host work" on an idle host, which is consistent with the design constraint recorded above: CPU time is the wrong liveness proof for an I/O-bound op. I have not established the starvation source; I am reporting that the host-state cause does not generalise to this instance.The op itself is not broken. In the same run the same operation succeeded as the bed's own step (
deploy-add ok: true, 314s) and the live probe passed (check-live ok: true, 173s).Window. 5 minutes (
charly/readiness_config_test.go:50,NoProgress: 5*time.Minute,AbsoluteCap: time.Hour); no override in~/.config/charly/*.ymlor the rootcharly.yml.Prior runs of the same bed:
2026.276.1306ok=true errors=0,2026.276.1723ok=true errors=0,2026.277.0219ok=false errors=2 (this one).Agent:
readme-truth· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
aitrawog commentedon Oct 4, 2026
STATUS
A third instance of this class, on a second, different head — and the first one where I can put the
same bed's verdicts side by side, which changes what the evidence supports.
Runs of
check-pod-overlayin one worktree, in order:2026.276.17239588d18f(pre-#778)2026.277.0219248321282026.277.080538698ac6The same bed, the same definition, two different heads, and the identical failure at the identical op:
errors: 2both times — one watchdog kill, one cascade fromupdatebeing adeploy del+deploy addthat inherits the failed add.
What this adds to the 2026-10-04T02:52Z comment. That one reported "a second instance" and had to leave
the host-state cause open. With the third instance the shape is now measurable: the abort lands on
prepare-venueboth times, and both timesprepare-venue's first act is the local-image enumeration thetool itself reports —
555images in 6.356s, then564in 6.855s. The count is real each time(
podman images -q | wc -l). It is a per-run, op-local failure, not a head-local one: it does not trackthe diff under test, and the same op is green as the bed's own step in the very runs where it fails
(
deploy-add ok: true,check-live ok: true).Still not claiming a cause I have not measured. I have not established whether the peer is I/O-blocked
on the enumeration (which would make CPU-time-sampled liveness the wrong proof, as the 2026-09-27 RCA
refinement argues) or starved some other way. What is now measured is the part that matters for triage: it
reproduces across heads, always at
deploy:pod op=prepare-venue, always behind the image enumeration.One live observation, recorded at run time rather than reconstructed. While
2026.277.0805was running,another session's charly was active on this shared host —
…/lo/claude/opencharly/.worktrees/workflow-ir/charly/bin/charly -C …. I cannot schedule around anothersession's workload (and must not touch it), so I am noting it as a concurrent foreign invocation that was
in flight during the window, not as a proved cause.
The Ask above is unchanged and still the right fix — this issue is open and unfixed, and until it is
fixed a roster cannot be relied on to go green. Making the watchdog treat a peer whose descendants are
CPU-active as progress, and/or not kill on a first expiry without a confirming sample, are both still
candidates; I am not implementing either here without its own R10 bed.
Agent:
readme-truth· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (analysed on a live system)
aitrawog commentedon Oct 4, 2026
STATUS — a fourth instance, and the first SOLO reproductions. The "under concurrent image builds" trigger in this issue's title does not survive them.
Adding a measured data point to the three already on this thread. Same bed (
check-pod-overlay), same op, same two error lines — now on a head that has also absorbed#786's check-dispatch rewrite, so it is not that change either:2026.276.17239588d18f2026.277.0219248321282026.277.080538698ac62026.277.11186ee0aec6Verbatim from the newest run (
.check/check-pod-overlay/2026.277.1118/update.log):The two newest runs were SOLO and sequential — nothing else of mine on the host, no image build in flight.
2026.277.0805(38698ac6) and2026.277.1118(6ee0aec6) each ran alone, one bed at a time, with no concurrent compile or build of mine. So "concurrent image builds" is at most a trigger rather than the trigger: this reproduces on an idle host.I have not instrumented the watchdog, so this is a reproduction, not a diagnosis. What is measured: the abort lands immediately behind the local-image enumeration charly itself reports (555, 564 and 568 images across the three red runs), and the watchdog's liveness proof samples only the peer's own CPU time — consistent with a peer blocked on a shared lock or inside that enumeration reading as "no host work". I am not claiming that is the cause.
Scope, measured:
check-pod-overlayonly, and only itsupdatestep. Every other step of that bed is green on all four runs (8/9) —image-build,check-image,deploy-add,config,start,bring-up-members,check-live,feature-run. Theerrors: 2is one cause, not two: thedeploy:pod op=prepare-venuekill plusupdate's owndeploy-dispatch rebuildcascade.Agent:
readme-truth· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (analysed on a live system)
aitrawog commentedon Oct 4, 2026
STATUS — a fifth instance, and the one that stops being "another reproduction" and starts being a control.
The same bed, the same commit, two verdicts.
check-pod-overlay, one worktree, runs one at a time:updatestep2026.276.17239588d18f2026.277.0219248321282026.277.080538698ac62026.277.11186ee0aec62026.277.14156ee0aec6Rows 4 and 5 share a tree. The fourth run was killed at the never-hang ceiling in
deploy:pod op=prepare-venue; the fifth run did the same work on the same commit and finished it,PASS (steps=14),errors: 0,total_seconds: 1907,14 of 14steps green.Why this is a control rather than a fifth data point. The previous four instances could each be read as "this tree triggers it". Rows 4 and 5 remove that reading: the trigger is not in the tree, so the ceiling is firing on something that is not a property of the artifact under test. For a watchdog whose stated contract is "the peer runs no host work", that is a false positive by construction — the peer's work did not change between the two runs; only the sampling outcome did.
What the pair narrows. The two runs differ only in what the host was doing around the peer. The kill lands immediately behind the local-image enumeration the tool itself reports (555 / 564 / 568 images across the red runs), and the sample covers only the peer's own CPU time — so a peer descheduled, or blocked on shared host work, is indistinguishable from a peer that has genuinely stopped. A retry, not a code change, converted the red into a green, which is exactly the shape this issue's title describes.
This comment adds no claim about the
#762diff: that PR's bed-3 red is answered from its own seams (a top-levelpod:deploy has no ancestor chain, so its changed venue seams cannot execute a statement reached by this bed'supdatestep). The member is recorded here for this issue's own remediation.Agent:
readme-truth· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (analysed on a live system)
aitrawog commentedon Oct 4, 2026
STATUS — a sixth instance, and a second same-commit control on a third head. Plus two code-level candidates read out of the guard this window.
The pair, on one head, one worktree, runs one at a time (
opencharly/charly,eb3ad4b0):updatestep2026.277.15438d2c9e69(this head's second parent)2026.277.1834eb3ad4b0total_seconds: 18832026.277.2012eb3ad4b0Rows 2 and 3 share a tree and a binary: the head's build stamp is
2026.277.1829(derived from the HEAD commit's UTC,scripts/calver.sh), and both runs used this worktree's one build of it. This is the same shape as the 14:55Z control on6ee0aec6— now on a third head, and with the merge parent as row 1, so the tree reading is closed twice over: the red is not a property ofeb3ad4b0, and it is not a property of the#762diff either (row 1 fails identically on the base).Verbatim,
.check/check-pod-overlay/2026.277.2012/update.loglines 36–40:What I read in the guard this window — two candidates, neither claimed as the cause.
charly/charly/plugin_activity.goandplugin_dispatch_reverse.go:111-124,plugin_grpc.go:414-421,plugin_transport.go:157-173:touch()the clock; the peer process's own CPU is polled from/proc/<pid>/stat(providerPid→gp.pid, captured at connect byprocessPid(cmd)); andHostBuildis wrapped inwithActivityHeartbeatErr→startPluginActivityHeartbeat, which ticksnoProgress/4(capped 5 s) unconditionally while any host-builder fn runs. So the ticker alone rules out "the kill happened while the overlay builder was executing" — at expiry the peer was not inside a host-builder fn.utime+stime+cutime+cstime, and thatcutime/cstime"AGGREGATES reaped descendants' CPU". A peer blocked inwait()on one long-lived plugin-local child — the shape the same doc records for the ISO-guest false-kill it was written to fix — leaves the parent's utime/cstime frozen and cutime not yet credited. Thecharly:-prefixed lines above are the peer's owncharlysubprocess output, and the kill lands immediately after them.touch()doesselect { case a.wake <- struct{}{}: default: }, and the watcher'sselecthas both<-wake(reset) and<-timer.C(kill) armed. A watcher descheduled past the window returns with both ready and Go picks uniformly at random — so a pending progress event can lose the race to an already-expired timer. That is a code-level path from "the call is progressing" to "killed", independent of whether the peer is starved.Not claimed: which of these fired. I have not instrumented the watchdog (no counter on
wakedepth at expiry, nocutimesampling of the peer), so this is a reproduction set plus code reading, not a diagnosis. The 2026-09-27 refinement's point stands — CPU-time sampling is only a valid liveness proof if the peer's work is CPU-bound, whichprepare-venue's enumeration-plus-build is not.The Ask is unchanged, and candidate 3 is a concrete instance of it: not killing on a first expiry without a confirming sample. I am not implementing any of the three here; each needs its own R10 bed, and this thread's own rule is that a fix lands from a measured cause.
Scope unchanged and re-measured:
check-pod-overlay, itsupdatestep only. Every other step is green in all three runs above (8/9), includingdeploy-add,bring-up-members,check-liveandfeature-run— the same op that is killed insideupdateis green as the bed's owndeploy-addstep.Agent:
readme-truth· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (analysed on a live system)
aitrawog commentedon Oct 5, 2026
CLAIM — taking
#699for a fix, on the operator's ruling.Context.
check-pod-overlayis the single red bed in the#762roster re-run on headeb3ad4b0(5 of 6 green; the red is itsupdatestep, theprepare-venuekill this issue documents).#762's verdict requires a zero-failure roster, and this bed is red in 2 of the 3 runs now measured on one head, so the roster cannot be made reliably zero-failure from the PR side. The operator's ruling: fix this issue in its own PR first, then re-run the#762roster.What I am claiming, and what I am not. I claim the fix to the no-progress guard. I am not re-claiming the reproduction set — comments
5981295536and5984224776stand as it.The gap this thread already named, now with a code citation. Comment
5984224776listed three candidates; the decisive one is structural and needs no load to reproduce:charly/charly/plugin_activity.go:249-272(procCPUTicks) sums/proc/<pid>/statfields 14–17 —utime + stime + cutime + cstime— and the function's own doc sayscutime/cstime"aggregate REAPED descendants' CPU".wait), and the child's CPU is not credited until it is reaped. Every sampled value is identical, which the guard reads as "the peer runs no host work".plugin_activity.go:235-237: the timer expiry path iscancel(errPluginCallIdle); return— one expiry, no confirming sample, no drain of a pending progress event.That is a false positive by construction on a fixed tree and a fixed binary, which is the shape of the
eb3ad4b0pair (green 14/14 at 18:34, red at 20:12, same commit, same stamp2026.277.1829) and of the6ee0aec6pair (5981295536).Plan (this issue's own PR,
charly; its own R10 bed; no change to#762):charly/charly/plugin_activity_test.go(which already spawns a real child to exercise the CPU source) where a peer blocks inwait()on a CPU-active child, asserting the current guard false-kills it. A failing test first, per R1./procfields and live children) — the measurement this thread says has not been taken.check-pod-overlay(the bed that fails) plus the roster legs it shares, on the final committed tree, with eachsummary.ymlpasted.I will report each step on this thread by measurement; if step 1 does not reproduce, the mechanism is the watcher-starvation candidate instead and I will say so and instrument for that rather than proceed on this plan.
Agent:
no-progress-guard· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (analysed on a live system)
aitrawog commentedon Oct 5, 2026
STATUS — step 1 landed as a measurement, not an argument: the guard has a false-positive class that is deterministic and load-independent, and the reproduction fails on the current head. Fix written and unit-green; the bed measurement (which source goes silent on the pod path) is next.
1. Reproduction — deterministic, no bed, fails on the head
New test in
charly/charly/plugin_activity_test.go, on9cd960ea(no production change),go test ./ -run TestIdleBoundedContext_PeerWaitingOnBusyChildIsProgress:3 runs, 3 failures — not a flake, not load-dependent.
The shape: a peer process that forks one long-lived CPU-active child and then blocks in
wait().exec.Command("sh","-c", "sh -c '<spin>' & wait")— the& waitis two statements, which defeats the shell's single-commandexecoptimisation, so the outershreally is the blocked parent.The mechanism, measured inside the test rather than asserted:
procCPUTicksadvances (it is working),procCPUTicksdoes not — and does not merely stand still: it reads 0, because a shell that forked and parked inwait()has accrued noutime/stimeof its own, andcutime/cstimeaggregate a descendant's CPU only after that descendant is REAPED.So
procCPUTicks(peer)is frozen for the child's entire life. The guard polls exactly that number, has no other signal here, and kills a call that is plainly progressing.TestIdleBoundedContext_PluginLocalCPUIsProgressdoes not cover it — it samples the burner's own pid, i.e. a plugin that runs its work as itself, never a peer that is merely the work's parent.2. Two more defects the reproduction exposed
procCPUTickscannot distinguish "frozen" from "unreadable". It returns0on every error and0for a genuinely idle process (and, above, for a working parent). The guard's CPU source is therefore built on a value where no-data and no-progress are the same number.touch()is a non-blocking depth-1 send, so a burst of host legs coalesces to one token that can be dropped, and Go'sselectchooses at random among ready cases —case <-timer.Ccan win while an unread progress event sits in the buffer. The comment on thewakefield claims a progress event "always resets" the deadline and that "there is NO race"; that is true of the event path and false of the expiry path.3. Fix (written, unit-green; not yet pushed)
procTree): each process contributes its ownutime+stime+cutime+cstime, so the sum is monotone — a reaped descendant's ticks move from its own counters into its parent'scutime, which is itself summed, so nothing is lost and nothing is double-counted. Zombies skipped; a double-forked descendant is reparented toinitand cannot be attributed to the peer — it is missed, which is why the report below prints the tree it could see.observe).errPluginCallIdlenow states only what the watchdog measured, and every kill appends an evidence report: peer pid, host-leg events + when the last arrived, CPU advances + when the last arrived, the window, and the peer tree's live-process count and tick sum at the kill. This is the measurement this issue has never had — and it will name the silent source on the pod path rather than leaving a red to be guessed at.Sensitivity proof that the tests hold the change, not the timing: reverting only
cpu()to the root-only reader re-reds both new tests (exit=1), while the confirm path alone does not rescue them.4. What I am NOT yet claiming
deploy:pod'sprepare-venuebuilds its overlay viaHostBuild("overlay")— a host reverse leg thatwithActivityHeartbeatErrheartbeats for the builder's whole duration. So the pod red is not obviously the class reproduced above, and I will not assume it is. The kill report is what decides it: the nextcheck-pod-overlayrun either stays green (⇒ the roster red is the load/starve class) or goes red with the source counts printed.5. Unrelated, and it blocks the charly Go gate on the head
go test ./...is red on9cd960eafor a reason with nothing to do with this issue, proven rather than argued:git stashmy two files, rungo test ./internal/pluginsgen/ -run TestPluginsGenReproducible→ same failure, exit 1.The diff is exact and one-directional: 196 → 203 entries, 0 changed, 0 removed, 7 added —
verb:ade,verb:agent,verb:emit,verb:gate,verb:generate,verb:media,verb:probe, all onplugin-pipeline. Those 7 are already declared onplugin-pipeline's default branch (read via the API), so the regeneration is merged-refs-only and policy-clean. Carrying it with this work so the gate is green on the final tree; no issue needed for it, and I searched first (gh search issues/prs) and found no existing owner.Agent:
no-progress-guard· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code DeepSeek V4.1 Flash (analysed on a live system)
aitrawog commentedon Oct 5, 2026
STATUS — defect 6 is root-caused, fixed and guarded; the full R10 bed is now running SOLO on the fixed head.
Head:
2f340c03— fix(charly): heartbeat the caller's clock while the host serves its reverse call (#699).What the second bed found. The re-run of
check-pod-overlayon1e8c71d4came back RED at stepupdate, and this time it carried the report — every number in it describing a working call:One live process, state
S, 32 ticks — frozen. That is not the guard's covered case; it is the guard watching the wrong clock.Mechanism. A peer plugin's own
exec.InvokeProvidercallback asks the HOST to perform a provider call for it. While the host serves that request the CALLER is parked in the callback (no CPU, no children), and the served work makes no reverse leg on the caller's clock either — the overlay resolve (build:generate op=resolve) runs entirely host-side: the target is compiled-in (plugin-buildis not served at all,grep -c 'plugin plugin-build'= 0, soproviderPid→ 0) and its whole host-FS prep (host_prep.go:cleanStaleBuildDirs,writeContextIgnore,createRemoteCandyCopies, plus the container image-store listing) makes zeroex.calls. Both of the clock's sources are blind for exactly as long as the host works hardest.Reproduced with no bed, off the pod the red run left behind, matching the bed's numbers to ~10 ms — with the missing datum taken live: the host burned ~1.3 cores (
utime 31519 → 33857) for the whole 90 s window while the peer stayed at 33 ticks in every 5 s sample.HostBuildand every executor leg already wrap their blocking work inwithActivityHeartbeatErr(s.activity, …);startPluginActivityHeartbeat's own doc states that invariant outright.InvokeProviderwas the one host reverse leg that did not.The fix wraps the served dispatch, mirroring
HostBuild. It does not widen the guard: the served call keeps its ownidleBoundedContext, so a wedged target still fails fast on that clock, and its error propagates through the wrapper and stops the heartbeat.Evidence so far, all on the committed head
2f340c03(tree clean, HEAD unchanged through the runs):-overlayso the working tree was never touched: with the heartbeat removed the new guard re-reds at 0.22 s in the production report's own shape (CPU advances=0; peer tree at kill: 1 live process(es) summing 0 ticks … 1504227(S,sleep)), whileTestInvokeProvider_FailsFastOnHungPeerstill PASSes — the bound is made sound, not widened. The two halves are pinned side by side inplugin_dispatch_reverse_timeout_test.go.ok github.com/opencharly/charly/charly 144.224s; drift gateok ... 67.628s;golangci-lint run ./...(CI-pinned v2.13.2, run from insidecharly/so the curated config applies) →0 issues.In flight now: the full R10 bed
check-pod-overlayon2f340c03, run SOLO — the gate confirmed zero othercharly check|deploy|…processes and zerotask sync|verifywriters before it started, and adisposable: truebed runs alone. The PR is opened on that verdict: one push, after the change and the body are validated here.Agent:
no-progress-guard· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
aitrawog commentedon Oct 5, 2026
STATUS — #699 is fixed, and the fix is up as #798 (head
40209961, branchfeat/no-progress-guard, basemain).Six defects, all root-caused and all measured — and three of the six were found only by running the change's own R10 bed:
/proc/<pid>/statcounters, so a peer parked inwait()on a busy child reported a frozen tick count for that child's whole life (cutimefolds a descendant in only after it is reaped). Deterministic and load-independent: reproduced against the parent commit with no bed and no host load.touch()token can be dropped, and Go'sselectpicks at random among ready cases, so the timer can win while an unread progress event sits in the channel.pluginInvokeErrre-wrapped the bare sentinel, so the measurement the watchdog had built died on the way to the caller — the instrumentation never reached the bed, anderrors.Iscannot see the difference.executorReverseServer.InvokeProviderwas the one host reverse leg not wrapped inwithActivityHeartbeatErr: while the host served the peer's call, the caller was parked with no CPU and no reverse leg, so ~1.4 cores of real host work read as "the peer runs no host work".The R10 bed is green on the pushed head.
check-pod-overlay(disposable: true), run SOLO, all 14 stepsok: true— and the step both RED beds died in,update(which re-runs the deploy and reaches the servedInvokeProvider), passes in 607 s after failing at 375 s with the idle-kill verbatim atupdate.log:39. 607 s is 6.7× the guard's own 90 s window, so the served call was alive across a window five times longer than the one it used to be killed in. Both RED runs are retained on disk (.check/check-pod-overlay/2026.278.0153and.../2026.278.0249), so the before/after is auditable rather than asserted.The PR carries the full evidence: unit tests of the changed path, three
-overlaysensitivity proofs (each reverting exactly one half of the fix), the parent-commit reproduction, the live bed on the final committed tree, and the repo's own CI steps (gofmt,go vet,[email protected]) run by hand on that head.Blocks #762 (the bed roster): the
check-pod-overlayleg routes here, and the roster lands zero-failure on the head that carries this fix.Agent:
no-progress-guard· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
fix(charly): make the guard's three review-flagged claims true (#699)
aitrawog commentedon Oct 5, 2026
STATUS — the
charly/pr-validatorBLOCK on#798's previous head is fixed in ONE commit, and the fix is pushed with a fresh green R10 bed on the final tree.Previous head:
40209961(validator run37263912420— BLOCK, comment5988175232).Now pushed:
141f2d34— fix(charly): make the guard's three review-flagged claims true (#699) —40209961..141f2d34, one commit, nothing deferred and nothing argued.The three findings, each fixed and each pinned by a test that FAILS without its fix
R1 (B5) — the
case <-cpu.Carm passedobserve(nil, …)while its comment claimed a drain. A nil channel never fires in aselect, so the drain was a no-op andobserve's own doc two functions up said so. Fixed by passing the livewakechannel — which is what the comment already claimed — so the raced touch is counted rather than left pending for the expiry. Draining there is strictly conservative: it can only ever prevent a kill. Honest limit of the evidence: a touch racing a CPU tick is aselect-scheduling event, so no test can force it deterministically; what is pinned is the behaviour the call site depends on —TestObserve_PendingLegEventAtExpiryIsProgressprovesobservedoes drain a pending token given the live channel, which the nil call site could not do.R1 (B5) — the traversal doc said "breadth-first" where the LIFO stack is depth-first pre-order. Fixed: the doc names the real traversal, the variable is
stacknotqueue, andTestProcTreeProcs_PreOrderasserts the property over the peer's real tree (root first, no process before its parent). Falsified: forcing a non-pre-order walk reds it — "the root must be visited first, got pid 1881468", FAIL 0.03 s.Must confirm —
reset()called from insidecase <-timer.C, untested. Fixed: it is the package-levelresetDeadline, and its drain is aselect-with-default — a bare<-timer.Cthere blocks forever right after the value was consumed, wedging the watcher. Both timer states are pinned (TestResetDeadline_NonBlockingOnTheExpiryPath,…WithStalePendingExpiry). Falsified: with a bare drain the test does not merely fail, it hangs — "resetDeadline blocked after the expiry value was consumed — a wedged watcher", FAIL 5.03 s.Also addressed (the review's non-blocking note):
withActivityHeartbeat's doc said the clock beats "every 5s"; the beat is window-derived (window/4, capped at 5s), which is why a 200 ms-window test still passes. The doc now says so.Fresh R10 bed on the final committed tree
check-pod-overlay(disposable: true), run SOLO behind a measured idle-host gate on141f2d34, verdict read from the run's ownsummary.yml— all 14 stepsok: true:updateis the step both RED beds died on at 375 s (idle-kill verbatim atupdate.log:39); it now passes in 612 s = 6.8× the guard's own 90 s no-progress window, andgrep -rn 'no host-visible progress'over the run dir is empty. Tree clean at141f2d34before and after; orphan check 0.The repo's own CI steps, on this head
gofmt -l charly tools= 0 files ·go test ./charly/...=144.057s+110.720s·go vet ./...= 0 diagnostics ·golangci-lint run ./...(CI's own step,@v2.13.2, fromcharly/) =0 issues.·tools/*sweep exit 0 ·TestPluginsGenReproduciblePASS 68.78s.PR body refreshed for this head (its
Assisted-by:trailer is the last line); auto-merge stays with the validator's PASS — nogh pr mergewas or will be run here.Agent:
no-progress-guard· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
aitrawog commentedon Oct 5, 2026
STATUS —
charly/pr-validatorPASS on141f2d34; native auto-merge (squash) is armed.Run
37267859653re-derived all three prior findings against the current diff and resolved every one of them (stale-superseded): the livewakechannel at thecpu.Carm, the depth-first pre-order doc, and the non-blockingresetDeadline. The verdict also notes the removed closure was already non-blocking, so finding 3 was never a real defect — resolved regardless, and both timer states are pinned now.The repo's own checks on this head are green by hand (
gofmt0 files,go test ./charly/...144.057s + 110.720s,go vet0 diagnostics,[email protected]0 issues.,tools/*sweep exit 0) — run before the push, since the checklist judges formatting only and its PASS arms auto-merge whatever state the head is in.validate / validate= pass; thegojob ofci(37267859133) is still pending, so the PR readsUNSTABLEuntil it lands;mergeable=MERGEABLE,autoMergeRequest.mergeMethod=SQUASH. Nothing is force-pushed orgh pr merged — the validator's PASS did the arming.#762 (the bed roster) unblocks on this merge; I will comment there when
#699closes with its CalVer tag.Agent:
no-progress-guard· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
fix(charly): end the plugin idle guard's false kills and deliver the …
aitrawog commentedon Oct 5, 2026
RESOLVED — merged as #798, CalVer tag
v2026.278.0531.ff3a59dd08f8(fix(charly): end the plugin idle guard's false kills and deliver the kill's evidence (#699) (#798)), parent3cabeb3f, merged2026-10-05T05:31:12Z.refs/tags/v2026.278.0531→ff3a59dd08f8;CHANGELOG/2026.278.0531.mdis this PR's own body (written bytag-on-merge).141f2d34(run37267859653) — all three findings from the previous head's BLOCK (40209961) re-derived against the current diff and resolved; native auto-merge (squash) was armed by that PASS, nogh pr mergeand no--adminwas used.check-pod-overlay(disposable: true) run SOLO on the final committed tree — 14/14 stepsok: true, theupdatestep that both RED beds died on at 375 s passing in 612 s,grep 'no host-visible progress'over the run dir empty.What the six defects were
/proccounters, so a peer blocked inwait()on a live CPU-active child looked frozentouch()+ aselectrace)pluginInvokeErrre-wrapped the bare sentinel, discarding the report on its way to the callerexecutorReverseServer.InvokeProviderwas the one host reverse leg not wrapped inwithActivityHeartbeatErr, so a legitimately long, entirely host-side call was false-killed as idleDefect 6 is the
check-pod-overlayupdate-step kill that opened this issue under a false mechanism name: the peer was not wedged and the host was not starved — the host was burning ~1.4 cores while the caller's clock could not see it.Unblocks
opencharly/charly#762(the bed roster): bed 3's red routes here and stops being an open attribution. The roster re-runs on the new#762head next.Agent:
no-progress-guard· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
fix(plugin): the idle guard confirms an ATTEMPTED touch, so a starved…