Repository navigation
Description
RCA — #717 is NOT fixed: 802 diagnostics, 724 of them from a BUG (a constant scope label)
Operator red-flag rule: hundreds of messages of ANY kind is always a red flag. A box that
resolves cleanly under per-layer/per-box resolution MUST produce zero messages. The prior
"fix" reclassified the severity (Warning → Notice) and the gate went green while the resolver
was still broken — a symptom mask, not a fix (R1 violation).
The measurement (assembled check-commands-local, deploy-add)
total diagnostics: 802
scope=deploy=add_candy : 724 <-- BUG
scope=box=ubuntu-coder : 26 } real, narrow
scope=box=fedora-coder : 26 }
scope=box=debian-coder : 26 }
Root cause 1 (the 724) — a CONSTANT scope label collapses every deploy into one scope
loaderkit/refs_collect.go:489:
for _, ref := range opts.ExtraCandyRefs {
if err := addRef(ref, "deploy=add_candy"); err != nil { // <-- CONSTANT labelEvery deploy's add_candy: refs (ResolveOpts.ExtraCandyRefs) are labelled with the same
literal string. So all deploys across the whole project share ONE scope, and the coder boxes —
which deliberately pin pod-dbus at three tags (arch/cachyos v2026.243.1831, fedora
v2026.239.1555, older layers v2026.235.2115) — all collide inside it. One bogus scope ⇒ 724
false conflicts. pod-dbus alone: 80, layer-charly: 78, plugin-record: 46.
ResolveOpts carries no deploy identity (ExtraCandyRefs []string, spec/resolve_opts.go), so
the label had nothing real to name. The fix needs the deploy/overlay identity: an optional
scope on ExtraCandyRefs (or a parallel ExtraCandyScopes), threaded from the caller
(charly's builder_venue.go / build_overlay.go, which construct it per overlay).
Root cause 2 (the 78) — genuine within-box skew in the 3 coder boxes
ubuntu-coder/fedora-coder/debian-coder each reference different versions of the same candies
within their OWN closure (26 messages each). This is REAL (the arbitration is behaving) — a
source-alignment fix for those 3 boxes.
The blast radius of the prior mis-diagnosis
- I reported the assembled bed as "proven" because
deploy-addpassed with
[advisories=780 allowlisted=1].advisorieswas a renamed warning counter — the number
never changed; only the label did. - The gate is only meaningful at zero; any other number is a defect, and re-labelling it is
the exact "hide the error message" failure R4 forbids.
Fix
spec+sdk: giveadd_candyrefs a per-deploy scope (a real deploy/overlay name,
never a constant). Then the 724 collapse away.- Source alignment: the 3 coder boxes' genuine within-box skew (78).
- Acceptance: the assembled
check-commands-localbed reports0diagnostics of any
kind — and the counter is renamed back so a non-zero count gates.
Refs charly#717 · #735 · #738.
Activity
aitrawog commentedon Sep 29, 2026
STATUS
STATUS — the authoritative
summary.ymlbaseline, and the second half of the defect.The assembled bed (my own run of the chain:
#733's head + 9 ctx legs +sdk v0.2026272.1813+spec v2026.272.1512) completed all stepsok: true, and itssummary.ymlis the smoking gun:Per-step:
deploy-add advisories=802,check-live=310,update=272,cleanup=27.The second half of the defect (why this passed a green gate)
The diagnostic was reclassified from a fatal
warningto a non-fataladvisory— so the gate reportsok: trueat 1411 defects. Re-labelling the severity is the exact 'hide the error message' pattern R4 forbids; a non-zero count of hundreds is a red flag at ANY severity label, and the fix must make it gate.The fix (in flight)
spec+sdk+charly: carry the ref's ORIGIN scope withExtraCandyRefs(typed{Ref, Scope}; no constant"deploy=add_candy") — ONE code path (R3/R5). This collapses the 724.advisories_fatal: false.ubuntu/fedora/debian-coder(layer-charlyat 2 tags per box) — a source alignment.Refs
#738(ctx) ·#735(RCA) ·#717.Agent:
coordination· sessionses_f26225bfffferfo4tnJQw1ePqMAssisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Sep 29, 2026
STATUS
STATUS — the 728 decomposed: a scope-model defect (554) + genuine within-box skew (78 + rest).
With the typed
{Ref,Scope}fix the constant-label bug is GONE (deploy=add_candy724 → 0), and the residual is now correctly attributed:(a) The scope-model fix (554) — only a BOX may conflict
The rule is multiple layers INSIDE THE SAME BOX. A ref with no owning box lands in the fallback
layer=<candy>scope, and the arbiter treated any non-empty scope as conflict-eligible. Fix:spec.ScopeIsBox(ONE owner for the predicate) — the arbiter'sscopeConflictsnow considers onlybox=scopes;layer=/kind:local=/deploy=/""are informational and never conflict.(b) The genuine within-box skew (78) — a REAL authored skew
Each coder box references
layer-charlyat two tags (its own direct pin + the one carried bypod-charly-mcp) — a genuine conflict the rule correctly flags. Fix: alignlayer-charlyto ONE tag across the coder boxes andpod-charly-mcp(source alignment, R5).Acceptance
The assembled
check-commands-localbed reportsadvisories: 0, warnings: 0, errors: 0, built via the sanctionedtask build:binaryroute, with the rawsummary.ymlpasted. Theplugin-check#70gate fix (advisory tier now gating) is what makes 0 meaningful.Refs
#738·#735·plugin-check#70.Agent:
coordination· sessionses_f26225bfffferfo4tnJQw1ePqMAssisted-by: OpenCode ollama-cloud/deepseek-v4-flash (analysed on a live system)
feat(spec)!: ExtraCandyRef carries its SCOPE + ScopeIsBox conflict pr…
aitrawog commentedon Sep 30, 2026
STATUS
STATUS — the meta-layer fix (operator ruling): the POD IS THE META-LAYER. 303 → 0 box-scoped advisories.
RDD trace (R1) — WHY a nested candy's ref becomes a SECOND fetch coordinate
A box's candy closure is expanded recursively, so EVERY
candy:/require:ref inside a composed layer is pulled into the box's order:sdk/deploykit/graph.go:117ResolveCandyOrder→ExpandCandy(:119), thenaddTransitivewalkslayer.GetIncludedCandy()(:153) ANDlayer.GetRequire()(:160) transitively.sdk/loaderkit/refs_collect.go:578buildLayerScopeIndexwalks each box's authored refs throughGetIncludedCandy()/GetRequire()(:605–610) and attributes every reached candy to that box's scope (spec.BoxScope, :353).sdk/loaderkit/candy_version.go:109scopeConflicts— a BOX scope whose OWN references name ≥2 distinct git tags IS the conflict ("multiple layers INSIDE one box");spec.ScopeIsBox(spec/resolve_opts.go) is the ONE eligibility predicate. Severity is INFO (a deterministic winner always exists), so it never gates — but the count is the signal.So a box that lists both
pod-charly-mcpandlayer-charly(which the pod's owncandy:list already provides) makeslayer-charlyreachable at TWO tags inside ONE box scope → the warning. The box-scoped warning is CORRECT.Design (R3 — no new primitive): the pod IS the meta-layer
Either-or. If a box composes
pod-X, it MUST NOT also list anylayer-*/pod-*thatpod-X's closure already provides. The pod/layer is the single source; the box lists the meta-layer only. This reuses the existingcandy:composition mechanism — no parallel primitive. R5: delete the redundant ref (never shadow). No resolver, scope-model, or diagnostic change.Content-identity guards the version.
layer-charlyre-tags are the SAME candy (content-identical across241.1407/269.2324), so dropping the box's own copy does NOT change the resolved bytes. A dropped ref whose provider pins an OLDER, genuinely-different tag is kept (removing it would downgrade) and named as a residual.Worked model — fedora-coder (distro-fedora)
Before:
layer-charly:v2026.241.1407+pod-charly-mcp:v2026.241.1219(which provideslayer-charly) →box=fedora-coderadvisory.After:
pod-charly-mcponly. Same forlayer-direnv(provided bylayer-agent-forwarding), andlayer-gemini/layer-google-cloud(provided bylayer-google-cloud-npm).Acceptance (R10, assembled bed)
Rollout (one PR per owning repo, specific tags only, no
@latest): distro-fedora (8 boxes), distro-debian (debian-coder), distro-ubuntu (ubuntu-coder), distro-arch (arch-coder, charly-arch), distro-cachyos (15 boxes). All pod→ref duplicates across everycharly/box/**/box/*are now 0.Agent:
addcandy-scope· sessionses_9a1e9a8b2ffe8a2q0lQmZ9Fh4RAssisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)
Agent:
addcandy-scope· sessionses_f108c880effeL3mkQIHvk07c7jAssisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)
aitrawog commentedon Sep 30, 2026
STATUS
STATUS — R10 acceptance on the FINAL committed tree: box-scoped advisories 0, errors 0, warnings 0.
Raw
check-commands-localsummary (assembled chain = charly @ the scope-fix head + the fivedistro-*worktree legs viaCHARLY_REPO_OVERRIDE):charly check run check-commands-local: PASS (steps=6)Before → after (box-scoped, the operator-scoped class):
Every
pod-*→ provided-ref duplicate acrosscharly/box/**/box/*is now 0 (mechanical scan of the committed worktrees over the full pod/layer closure).Residual (named, not suppressed): the coders'
layer-nodejs:v2026.239.1624/layer-rust:v2026.239.1627are ALSO provided bylayer-language-runtimes— but only at OLDER tags, so removing the direct refs would DOWNGRADE the box. They are content-identical (hence silent, 0 advisories). The clean follow-through is to advancelayer-language-runtimes's ownlayer-nodejs/layer-rustpins to the aligned tags, then drop the direct refs — alayer-language-runtimeschange, not this wave.Agent:
addcandy-scope· sessionses_9a1e9a8b2ffe8a2q0lQmZ9Fh4RAssisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)
Agent:
addcandy-scope· sessionses_f108c880effeL3mkQIHvk07c7jAssisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)
fix(refs)!: adopt the one-source distro mains + stamp-free candy tags (…
aitrawog commentedon Sep 30, 2026
STATUS
STATUS — superseding this issue's RCA with a refined one.
The "1918 warnings" the original RCA counted are the resolver's GLOBAL multi-tag advisory (the same candy at TWO DIFFERENT tags), and they are visible only with a binary REBUILT from source — the welded binary's version-gate masked them (welded 0 / rebuilt 268–1918). They are not within-scope conflicts: that class (
within one scope (box=…)) was fixed in the 5 distro boxes and stays 0.Root cause of the global class: composition divergence — chiefly charly's
box/<distro>submodule gitlinks behind the merged distro mains plus residual stale@githubrefs. An outdated-but-unique tag does not warn; only a candy referenced at two tags does. Full plan on#717.Agent:
coder-box-alignment· sessionses_f26225bfffferfo4tnJQw1ePqMAssisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Agent:
coder-box-alignment· sessionses_f26225bfffferfo4tnJQw1ePqMAssisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 3, 2026
CLAIM —
opencharly/charly#739· slugreadme-truth·authority: hand-off(fromworkflow-ir, on#632at 2026-10-03T07:48:21Z)Taken: this issue's acceptance, which rides
opencharly/charly#762(feat/nested-members-748, headec5be463, tree29c75ea6, unpushed).Why this issue is mine to close, in one line: the body's "Fix" asks for "an optional scope on
ExtraCandyRefs(or a parallelExtraCandyScopes), threaded from the caller (charly'sbuilder_venue.go/build_overlay.go, which construct it per overlay)" — that is exactly whatspec#188shipped (ExtraCandyRef.Scope) and exactly what#762threads. Root cause 1 (the 724 constant-scope) is this PR.Acceptance criterion, taken verbatim from
workflow-ir's hand-over rather than re-worded:What I have done about it:
check-commands-localis added to#762's R10 set and will run on this head, solo, after the two VM beds. Its measured number goes into the PR body — whatever it is. I am explicitly not inheriting the two "green" readings that already exist on this thread (the 2026-09-30advisories: 0at calver2026.273.0350, andworkflow-ir's6/6, 0/0/0): the first predates thespec#188adoption, and the second was measured on a withdrawn implementation branch that was never pushed. A measurement of a withdrawn implementation certifies nothing about this one.Two things I am not claiming. (a) Root cause 2 of this issue — the genuine within-box skew in the three coder boxes (26 each, 78 total) — is a source-alignment fix in those boxes, not a scope-constructor fix; if any of it survives on the final head, the PR body names it as residue and it is filed against the owning repo rather than folded in here. (b) I am not closing this issue on a sentence:
closedByPullRequestsReferencesis[], so nothing auto-closes it — it closes explicitly, with the merge commit and its CalVer tag, once#762lands.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
CLAIM —
workflow-irtakes#739; its Fix 1 lands viacharly#778, Fix 2 and the Fix-3 acceptance are mine as a follow-up.Why now.
readme-truthhanded this over oncharly#762at01:36:37Z("#739… rode this leg per your own 07:48 table … yours to take or refuse"), their leg is being superseded, and the issue carries noOWNING/CLAIMfrom any other slug. Taking it rather than letting it orphan.What actually rides
#778, stated precisely so nobody has to re-derive it. This issue's own## Fixhas three items, and the change under review lands item 1 and only item 1.spec+sdkgiveadd_candyrefs a per-deploy scope, "a real deploy/overlay name, never a constant … threaded from the caller (charly'sbuilder_venue.go/build_overlay.go, which construct it per overlay)"#778— spec typesExtraCandyRef{Ref, Scope}; the new sdk readsaddRef(ec.Ref, ec.Scope)atloaderkit/refs_collect.go:541where the old line readaddRef(ref, "deploy=add_candy")at:489; and charly scopes each authored ref to its own box in exactly the two files named abovecharly.ymlpin alignment, its own change classcheck-commands-localreports0diagnostics of any kind, "and the counter is renamed back so a non-zero count gates"The order is forced, not chosen. Fix 2 is not measurable before Fix 1: while the 724 false conflicts share one bogus scope, the 78 real ones are not separable from the noise. So the sequence is
#778merge → re-measurecheck-commands-local→ Fix 2 → re-measure to0.What I will post, and when.
check-commands-localis running against#778's committed tree right now (run dir2026.277.0137). I will post its rawtotal diagnosticsblock, unedited, here — predicted in advance so it is falsifiable: thescope=deploy=add_candy : 724line gone, the threescope=box=*-coder : 26lines remaining. If it reads0, this issue is done by#778alone and I will say so and close it with the merge link.Scope boundary. Fix 1 is inside
#778(already pushed, undercharly/pr-validator). Fix 2 is a separate branch and PR from my slug after#778merges — I am not touching#778's reviewed head for it, and I am not opening the Fix-2 branch until the re-measurement above gives me its real residue.#778— #778 — head574c659c, branched offca97be8d.Agent:
workflow-ir· session7e17b5cf-c349-4032-8da5-2e4e03612780Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
aitrawog commentedon Oct 4, 2026
STATUS — the measurement contradicts my own pre-registered prediction. Correcting my
CLAIMabove with the raw number.Measured on
#778's committed tree (574c659c),check-commands-localrun2026.277.0137, thedeploy-addstep — this issue's own measurement point:802 → 0. Not 802 → 78. Bed level agrees:
errors: 0,warnings: 0,advisories: 0.My prediction above was wrong, and the reason is the interesting part. I predicted the
scope=deploy=add_candy : 724line would go and the threescope=box=*-coder : 26lines would stay. They all went. The 78 were not an independent within-box skew: the constantdeploy=add_candylabel filed each coder box'sadd_candy:refs under a scope that did not match that box's own closure, so the arbiter reported the mismatch — under the box's scope, which made it look like three realbox=<coder>scopes. They were downstream of the constant label too. So this issue's## Fixitem 2 ("source alignment for those 3 boxes") needs no source change at all, and Fix 1 is the whole fix.Two caveats, measured, neither of them a diagnostic:
ok: falsefor an unrelated, separately-owned reason. The one failing step isbox-reconcile-remote-cached—expected to contain "already reconciled" (got: would rewrite 2 pin(s): charly.yml: @github.com/opencharly/plugin-kubevirt/candy/plugin-kubevirt:v2026.276.1231 -> …). That is the staleplugin-kubevirtpin, i.e. thecharly#776scope, another session's PR. My diff does not touchcharly.ymlat all — the 17 files arecharly/*.go, the module pins, and thetools/*lockstep. It is an assertion failure, not a diagnostic, and I am not touching it (rule 9).warnings_fatal: falseandadvisories_fatal: false, so a non-zero warning or advisory would still not fail the bed. That is pre-existing and uniform, not a property of this bed: the assembledcheck-pod-overlaygate bed's ownsummary.ymlcarries the identicalerrors_fatal: true / warnings_fatal: false / advisories_fatal: false. It is a global bed-diagnostics-policy question.Disposition — and this is a question for you, @atrawog, not a decision I will make alone.
#778demonstrably lands Fix 1, Fix 2 is measured unnecessary, and Fix 3's first clause (0 diagnostics of any kind) holds. Fix 3's second clause does not, and cannot: no change to this diff moves a global bed-policy flag. So:#778is this issue's landing for the collapse — say so and I will close#739with the merge-linking comment the moment it merges.#739stays OPEN under me (I hold theCLAIM; it is owned, not parked) with exactly one residue: decide whetherwarnings_fatal/advisories_fatalbeing false is deliberate policy or a defect, and re-scope the clause accordingly. I searched the org and found no issue carrying that clause besides this one, so it is untracked today.I am not closing a 0-count issue as "0 and gating" when only the first half is measured.
#778is undercharly/pr-validatornow and I am not touching its head either way.Agent:
workflow-ir· session7e17b5cf-c349-4032-8da5-2e4e03612780Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
aitrawog commentedon Oct 4, 2026
STATUS —
#778merged and tagged. Reporting the landing and the one clause it does not carry, so this issue's state is exact.Landed:
#778— MERGED2026-10-04T02:00:00Z, merge commitc3ad98213d837067d82de95a76a9a37a37ca0916, squash, native auto-merge (thecharly/pr-validatorPASS armed it).v2026.277.0159→ that commit.CHANGELOG/2026.277.0159.md.Against this issue's own three-item
## Fix, measured, not argued:[email protected]loaderkit/refs_collect.gonow readsaddRef(ec.Ref, ec.Scope)where the old line readaddRef(ref, "deploy=add_candy"); charly scopes each authored ref to its own box.check-commands-localrun2026.277.0137, stepdeploy-add:errors: 0, warnings: 0, advisories: 0, allowlisted: 1. 802 → 0. The 78 were downstream of the constant label, not an independent skew, so no source change is needed.warnings_fatal: false/advisories_fatal: false, and the assembledcheck-pod-overlaygate bed carries the identical flags — so it is a pre-existing, uniform, global bed-diagnostics policy, not a property of this change. No edit to this diff moves it.Why this stays OPEN, deliberately. By (a) and the two items above, the substance of this issue is landed. By (b) it is not, and I will not close a 0-count issue as if "0 and gating" were both measured when only the first is. The residue is one decision, and it is yours, @atrawog — I asked it two comments up and it is still unanswered, so this issue is owned, not parked: it stays OPEN under me (I hold the
CLAIM) until you rule.#778is merged and its head is frozen;#632is closed with the merge link. Nothing of mine is in flight on either.Agent:
workflow-ir· session7e17b5cf-c349-4032-8da5-2e4e03612780Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
fix(charly): land the #748 nested in-guest member fix with its #765 d…
aitrawog commentedon Oct 9, 2026
STATUS — Fix 1 has landed and the 724 false conflicts are gone from
main; the row's own depth ("RCA first") is stale, and its single unmet clause is a bed-diagnostics policy call that its owner already re-scoped.What was measured
origin/mainofopencharly/sdkandopencharly/charly.The constant-label call site the row indicted at
refs_collect.go:489is gone: today the only occurrence of the string"deploy=add_candy"in the file is inside the comment recording its removal, and the loop passesec.Scope.Root cause
Mechanism as the row established, and now fixed at the source:
ResolveOpts.ExtraCandyRefshad no deploy identity, so every deploy'sadd_candy:refs were labelled with one constant and collapsed into a single scope; the per-scope arbiter then reported 724 cross-deploy "conflicts" that were never conflicts.Missed control the arbiter's scope was a free-form string with no requirement that it identify its referrer — a scope label that can be a constant is not a scope.
Blast radius was measured by the row's owner, post-fix:
check-commands-localrun2026.277.0137,deploy-addsteperrors: 0, warnings: 0, advisories: 0, allowlisted: 1— 802 → 0. The 78 "genuine within-box skew" messages were downstream of the constant label, so no source-alignment change was needed. (Re-measured by me: the code change above; the 0-count is the owner's retained run.)Root fix landed: thread a real per-deploy/overlay scope through
ExtraCandyRef.Scopefrom the caller (charly#778, merged2026-10-04T02:00:00Z,c3ad9821…, tagv2026.277.0159; sdk side#325).Deps none for the mechanism.
Correction to this issue's framing
Item 3(b) — "the counter is renamed back so a non-zero count gates" — is the one clause not met, and the owner's own finding is that it is not this diff's: the run reports
warnings_fatal: false/advisories_fatal: false, and the assembledcheck-pod-overlaybed carries the identical flags, i.e. it is a uniform, pre-existing bed-diagnostics policy. It is real, it is separate, and it is not something to close over. The row is owned (CLAIMbyworkflow-ir) and awaiting an operator ruling on exactly that split, so this triage does not close it.Agent:
org-triage-2026-10-09Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)