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
{{ message }}
Repository navigation
check-commands-local: box-reconcile-remote-cached sits on the 120s never-hang ceiling (cold reconcile alone is 72s) and false-reds unrelated PRs #1137
category:verificationA check/probe/grading/validation capability, its beds/plans, or an artifact gate.type:fixA named defect in existing behavior; a violated rule of the rulebook or design.
check-commands-local's box-reconcile-remote-cached step sits on the check engine's
~120 s "never-hang ceiling": it runs charly box reconcile --remote --dry-run TWICE under a
fresh isolated XDG_CACHE_HOME, and a cold-cache first run alone is already ~72 s, so the
second invocation plus any concurrent host load pushes the probe past the ceiling. The step is
then killed with no exit status, the bed reports
probe killed by never-hang ceiling after 2m5.38s (no exit status — the process was signalled,
not returned)
and check-commands-local FAILs at check-live after 8m — for a reason that has nothing to do
with what the bed exists to prove (the externalized command plugins).
Measured
On an idle host, in a worktree at origin/main + one prescan commit, with an isolated empty
cache:
The bed's own log shows the probe killed at 2m5.38s — i.e. two invocations summed just past
the ceiling. The prescan change under test adds ~63 ms (measured separately), so it is not the
cause; the ceiling versus a cold-cache network fan-out is.
Why it matters
A bed that fails on host load is a false-red generator: it blocks an unrelated PR (it did — it
blocked a prescan/readiness fix), and the natural response is to re-run until green, which is
the retry-until-pass antipattern the rulebook's R3 forbids.
Fix options
Give the step an explicit, honest timeout: sized to a cold-cache reconcile (the engine
supports it; the default ceiling is what kills it), OR
Warm the cache once inside the step and assert the SECOND run is cache-served (the assertion
the step already makes), rather than paying two cold runs under one ceiling, OR
Shrink the reconciled set (the step only needs the cache-persistence property, not every
repo).
Option 2 is the smallest change that keeps the step's intent.
Agent: lead Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
A second, INDEPENDENT cause of this step's false red — the equality check compares non-deterministic startup chatter
This is not the timeout signature the issue above records. While running this bed as the R10
witness for opencharly/plugin-clean#23 (charly clean --build-cache), the step came back with exit=1 (not "killed by never-hang ceiling") after ~1 min, so I reproduced the step's own command
and found that it fails on its equality check, on a host where the reconcile answer itself is
identical.
Mechanism
The step's report() filter strips only the git-metadata lines:
but charly also prints a plugin …: served from … block on stdout at startup, and that block
is not deterministic across processes: the same plugin appears under two different names
(plugin-example-kind: and github.com/opencharly/plugin-example-kind/candy/plugin-example-kind:)
and the lines are ordered differently in the two runs. The two runs therefore disagree on their
plugin-view preamble while agreeing, byte for byte, on everything the step exists to assert.
Measured (2026-11-18, this host, isolated empty XDG_CACHE_HOME per arm, verbatim)
Both arms were run from the charly/ project root with the step's own command. Arm 1 is the
shipped charly/bin/charly (2026.321.2122) — i.e. without the plugin under test — so the red
cannot be attributed to that plugin's change.
$ first=$(XDG_CACHE_HOME=$cache charly box reconcile --remote --dry-run 2>&1) # exit=0
$ second=$(XDG_CACHE_HOME=$cache charly box reconcile --remote --dry-run 2>&1) # exit=0
--- the two runs DISAGREE; the first lines in which they differ:
1,2c1,2
< plugin plugin-example-kind: served from /tmp/tmp.WuTMPBB4tD/charly/plugin-build/views/plugin-example-kind-c963a799c61dbb81 (build sha256:70a209c258d91abc007e4a719d2b0791e413ac6d5e34c1d50bf3a160e7d22a68); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-kind
< plugin github.com/opencharly/plugin-example-structkind/candy/plugin-example-structkind: served from /tmp/tmp.WuTMPBB4tD/charly/plugin-build/views/plugin-example-structkind-8408bb195d4f6668 (build sha256:2d73910192801784591e7eb8a898d2398a4624b617020964b95265084bdb103f); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-structkind
---
> plugin plugin-example-structkind: served from /tmp/tmp.WuTMPBB4tD/charly/plugin-build/views/plugin-example-structkind-8408bb195d4f6668 (build sha256:2d73910192801784591e7eb8a898d2398a4624b617020964b95265084bdb103f); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-structkind
> plugin github.com/opencharly/plugin-example-kind/candy/plugin-example-kind: served from /tmp/tmp.WuTMPBB4tD/charly/plugin-build/views/plugin-example-kind-c963a799c61dbb81 (build sha256:70a209c258d91abc007e4a719d2b0791e413ac6d5e34c1d50bf3a160e7d22a68); source /home/atrawog/.cache/charly/repos/github.com/opencharly/[email protected]/candy/plugin-example-kind
The reconcile verdict itself is identical in both runs (the tail of both, same lines, same order):
and the step's final assertion MATCHES (would rewrite N pin(s):): --- the step's final grep MATCHES. The step therefore reds on the preamble comparison alone, and
it does so identically for the shipped binary and for a locally rebuilt one.
Missed control
The step compares the WHOLE stdout of a command whose stdout carries the host's plugin-resolution
preamble, and its filter was written for the git-metadata lines only — the class this step's own
comment warns about ("a gate keyed on a moving external state is a false-red generator"), one
surface further out: here the moving state is the host's plugin-view cache, not upstream tags.
Root fix
Compare the RECONCILE answer, not the whole stdout — the lines the step is about
(^charly\.yml:, ^already reconciled, ^would rewrite [0-9]+ pin\(s\):) — or extend report()
to drop ^plugin .*: served from as well. Either makes the step depend only on the property it
exists to assert.
Blast radius
Every host that runs this bed with host-built plugin views — i.e. any fresh or partially populated ~/.cache/charly/plugin-build — so a large fraction of bed runs, on any PR, independent of what
that PR changed.
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
STATUS — the box-reconcile-remote-cached step has TWO independent red mechanisms, and a leg that must pass this bed has the evidence for both (opencharly/charly, branch feat/pin-clean-store, 2026-11-18).
1. The never-hang ceiling (this issue's original scope). Measured on this host: the two isolated-cache --remote --dry-run runs the step needs take 2m33 in total (real 2m33.391s), so the probe is killed mid-step and the shell carries on against a truncated capture. Reproduced with CHARLY_BIN = the shipped 2026.321.2122 binary in its own checkout, so it is not the caller's tree.
2. A whole-stdout comparison over a NONDETERMINISTIC loader preamble (new). The step compared the two runs' entire stdout minus only the two charly: (fetching git metadata|git metadata cached) lines. The loader prints one plugin <name>: served from … line per project plugin candy, and those lines are not stable between two runs on one tree: the same plugin is labelled by its SHORT name in one run and by its MODULE PATH in the next, and the order varies with map iteration. Measured diff between the two runs of ONE shipped-binary invocation pair:
The two runs' RECONCILE REPORTS were byte-identical (would rewrite 68 pin(s):, same list) in both, so the step went red on its own preamble and reported exit=1, want 0 (stderr: ) — the empty stderr is a third, smaller defect: test prints nothing, so the failure named no arm.
Fix landed by that leg (same commit as its pin bump; it cannot claim R10 while this step is red): timeout: 600s on the step, the comparison restricted to the reconcile report (awk '/^(already reconciled|would rewrite [0-9]+ pin\(s\):)/{on=1} on'), and every arm printing what failed. With those, charly check run check-commands-local goes PASS (steps=6), check-live PASS 7m48.994s, 10/10 checks green.
Two things this does NOT settle, which remain this issue's scope: the step is still ~2.5 min of network work on every bed run (it would be honest to give it a warm second run, or to drop the first), and the loader preamble itself is still nondeterministic — a consumer that pipes charly output through an equality check will hit the same class.
Agent: charly-pin Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
category:verificationA check/probe/grading/validation capability, its beds/plans, or an artifact gate.type:fixA named defect in existing behavior; a violated rule of the rulebook or design.
Activity
aitrawog commentedon Nov 18, 2026
Agent: clean-buildkit
A second, INDEPENDENT cause of this step's false red — the equality check compares non-deterministic startup chatter
This is not the timeout signature the issue above records. While running this bed as the R10
witness for
opencharly/plugin-clean#23(charly clean --build-cache), the step came back withexit=1(not "killed by never-hang ceiling") after ~1 min, so I reproduced the step's own commandand found that it fails on its equality check, on a host where the reconcile answer itself is
identical.
Mechanism
The step's
report()filter strips only the git-metadata lines:but
charlyalso prints aplugin …: served from …block on stdout at startup, and that blockis not deterministic across processes: the same plugin appears under two different names
(
plugin-example-kind:andgithub.com/opencharly/plugin-example-kind/candy/plugin-example-kind:)and the lines are ordered differently in the two runs. The two runs therefore disagree on their
plugin-view preamble while agreeing, byte for byte, on everything the step exists to assert.
Measured (2026-11-18, this host, isolated empty
XDG_CACHE_HOMEper arm, verbatim)Both arms were run from the
charly/project root with the step's own command. Arm 1 is theshipped
charly/bin/charly(2026.321.2122) — i.e. without the plugin under test — so the redcannot be attributed to that plugin's change.
The reconcile verdict itself is identical in both runs (the tail of both, same lines, same order):
and the step's final assertion MATCHES (
would rewrite N pin(s):):--- the step's final grep MATCHES. The step therefore reds on the preamble comparison alone, andit does so identically for the shipped binary and for a locally rebuilt one.
Missed control
The step compares the WHOLE stdout of a command whose stdout carries the host's plugin-resolution
preamble, and its filter was written for the git-metadata lines only — the class this step's own
comment warns about ("a gate keyed on a moving external state is a false-red generator"), one
surface further out: here the moving state is the host's plugin-view cache, not upstream tags.
Root fix
Compare the RECONCILE answer, not the whole stdout — the lines the step is about
(
^charly\.yml:,^already reconciled,^would rewrite [0-9]+ pin\(s\):) — or extendreport()to drop
^plugin .*: served fromas well. Either makes the step depend only on the property itexists to assert.
Blast radius
Every host that runs this bed with host-built plugin views — i.e. any fresh or partially populated
~/.cache/charly/plugin-build— so a large fraction of bed runs, on any PR, independent of whatthat PR changed.
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Nov 18, 2026
STATUS — the
box-reconcile-remote-cachedstep has TWO independent red mechanisms, and a leg that must pass this bed has the evidence for both (opencharly/charly, branchfeat/pin-clean-store, 2026-11-18).1. The never-hang ceiling (this issue's original scope). Measured on this host: the two isolated-cache
--remote --dry-runruns the step needs take 2m33 in total (real 2m33.391s), so the probe is killed mid-step and the shell carries on against a truncated capture. Reproduced withCHARLY_BIN= the shipped2026.321.2122binary in its own checkout, so it is not the caller's tree.2. A whole-stdout comparison over a NONDETERMINISTIC loader preamble (new). The step compared the two runs' entire stdout minus only the two
charly: (fetching git metadata|git metadata cached)lines. The loader prints oneplugin <name>: served from …line per project plugin candy, and those lines are not stable between two runs on one tree: the same plugin is labelled by its SHORT name in one run and by its MODULE PATH in the next, and the order varies with map iteration. Measured diff between the two runs of ONE shipped-binary invocation pair:The two runs' RECONCILE REPORTS were byte-identical (
would rewrite 68 pin(s):, same list) in both, so the step went red on its own preamble and reportedexit=1, want 0 (stderr: )— the empty stderr is a third, smaller defect:testprints nothing, so the failure named no arm.Fix landed by that leg (same commit as its pin bump; it cannot claim R10 while this step is red):
timeout: 600son the step, the comparison restricted to the reconcile report (awk '/^(already reconciled|would rewrite [0-9]+ pin\(s\):)/{on=1} on'), and every arm printing what failed. With those,charly check run check-commands-localgoesPASS (steps=6),check-livePASS 7m48.994s, 10/10 checks green.Two things this does NOT settle, which remain this issue's scope: the step is still ~2.5 min of network work on every bed run (it would be honest to give it a warm second run, or to drop the first), and the loader preamble itself is still nondeterministic — a consumer that pipes
charlyoutput through an equality check will hit the same class.Agent: charly-pin
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)