Skip to content

RCA: #717 is NOT fixed — 802 diagnostics (724 from a CONSTANT 'deploy=add_candy' scope label); hundreds of messages is a red flag, not a pass #739

Open

Description

@aitrawog

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 label

Every 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-add passed with
    [advisories=780 allowlisted=1]. advisories was 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

  1. spec + sdk: give add_candy refs a per-deploy scope (a real deploy/overlay name,
    never a constant). Then the 724 collapse away.
  2. Source alignment: the 3 coder boxes' genuine within-box skew (78).
  3. Acceptance: the assembled check-commands-local bed reports 0 diagnostics of any
    kind
    — and the counter is renamed back so a non-zero count gates.

Refs charly#717 · #735 · #738.

Activity

  1. aitrawog commented on Sep 29, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    STATUS — the authoritative summary.yml baseline, 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 steps ok: true, and its summary.yml is the smoking gun:

    diagnostics:
      errors: 0
      warnings: 0
      advisories: 1411        # <-- the resolver defects, counted as NON-FATAL
      allowlisted: 4
      errors_fatal: true
      warnings_fatal: false
      advisories_fatal: false  # <-- a non-zero advisory count does NOT gate

    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 warning to a non-fatal advisory — so the gate reports ok: true at 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)

    1. spec+sdk+charly: carry the ref's ORIGIN scope with ExtraCandyRefs (typed {Ref, Scope}; no constant "deploy=add_candy") — ONE code path (R3/R5). This collapses the 724.
    2. Make the count gate: the acceptance is 0 diagnostics; a non-zero count must fail, not be silently allowed by advisories_fatal: false.
    3. The residual 78 are genuine within-box skew in ubuntu/fedora/debian-coder (layer-charly at 2 tags per box) — a source alignment.

    Refs #738 (ctx) · #735 (RCA) · #717.

    Agent: coordination · session ses_f26225bfffferfo4tnJQw1ePqM
    Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

  2. aitrawog commented on Sep 29, 2026

    @aitrawog
    ContributorAuthor

    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_candy 724 → 0), and the residual is now correctly attributed:

    deploy-add advisories=728
      layer=charly-marketplace : 554   <-- FALLBACK scope (no owning box) — NOT conflict-eligible
      box=ubuntu/debian/fedora-coder : 26 each (78)  <-- GENUINE within-box skew
    

    (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's scopeConflicts now considers only box= scopes; layer= / kind:local= / deploy= / "" are informational and never conflict.

    (b) The genuine within-box skew (78) — a REAL authored skew

    arch-coder    : layer-charly v2026.243.0408
    debian-coder  : layer-charly v2026.241.1407
    fedora-coder  : layer-charly v2026.241.1407
    ubuntu-coder  : layer-charly v2026.241.1407
    pod-charly-mcp: layer-charly v2026.269.2324   <-- composed INTO those coder boxes
    

    Each coder box references layer-charly at two tags (its own direct pin + the one carried by pod-charly-mcp) — a genuine conflict the rule correctly flags. Fix: align layer-charly to ONE tag across the coder boxes and pod-charly-mcp (source alignment, R5).

    Acceptance

    The assembled check-commands-local bed reports advisories: 0, warnings: 0, errors: 0, built via the sanctioned task build:binary route, with the raw summary.yml pasted. The plugin-check#70 gate fix (advisory tier now gating) is what makes 0 meaningful.

    Refs #738 · #735 · plugin-check#70.

    Agent: coordination · session ses_f26225bfffferfo4tnJQw1ePqM
    Assisted-by: OpenCode ollama-cloud/deepseek-v4-flash (analysed on a live system)

  3. aitrawog commented on Sep 30, 2026

    @aitrawog
    ContributorAuthor

    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:117 ResolveCandyOrder → ExpandCandy (:119), then addTransitive walks layer.GetIncludedCandy() (:153) AND layer.GetRequire() (:160) transitively.
    • The fetch/scope walk mirrors it: sdk/loaderkit/refs_collect.go:578 buildLayerScopeIndex walks each box's authored refs through GetIncludedCandy()/GetRequire() (:605–610) and attributes every reached candy to that box's scope (spec.BoxScope, :353).
    • The arbiter: sdk/loaderkit/candy_version.go:109 scopeConflicts — 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-mcp and layer-charly (which the pod's own candy: list already provides) makes layer-charly reachable 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 any layer-*/pod-* that pod-X's closure already provides. The pod/layer is the single source; the box lists the meta-layer only. This reuses the existing candy: 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-charly re-tags are the SAME candy (content-identical across 241.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 provides layer-charly) → box=fedora-coder advisory.
    After: pod-charly-mcp only. Same for layer-direnv (provided by layer-agent-forwarding), and layer-gemini/layer-google-cloud (provided by layer-google-cloud-npm).

    Acceptance (R10, assembled bed)

    before: advisories = 303  (box=fedora-coder 52, ubuntu-coder 26, immich-ml 26,
                                hermes-playwright 26, debian-coder 26, sway-browser-vnc 17)
    after : advisories = 0    errors = 0  warnings = 0  ok: true   (check-commands-local, PASS steps=6)
    

    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 every charly/box/**/box/* are now 0.

    Agent: addcandy-scope · session ses_9a1e9a8b2ffe8a2q0lQmZ9Fh4R
    Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)

    Agent: addcandy-scope · session ses_f108c880effeL3mkQIHvk07c7j
    Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)

  4. aitrawog commented on Sep 30, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    STATUS — R10 acceptance on the FINAL committed tree: box-scoped advisories 0, errors 0, warnings 0.

    Raw check-commands-local summary (assembled chain = charly @ the scope-fix head + the five distro-* worktree legs via CHARLY_REPO_OVERRIDE):

    bed: check-commands-local
    calver: 2026.273.0350
    steps:
      - {name: deploy-add,     ok: true, diagnostics: {errors: 0, warnings: 0, advisories: 0}}
      - {name: bring-up-members, ok: true}
      - {name: check-live,     ok: true, diagnostics: {errors: 0, warnings: 0, advisories: 0}}
      - {name: update,         ok: true, diagnostics: {errors: 0, warnings: 0, advisories: 0}}
      - {name: cleanup,        ok: true, diagnostics: {errors: 0, warnings: 0, advisories: 0}}
      - {name: cleanup-members, ok: true}
    total_seconds: 1223
    diagnostics:
      errors: 0
      warnings: 0
      advisories: 0
      allowlisted: 4        # the single dev-worktree-binary notice, ×4 steps
    ok: true

    charly check run check-commands-local: PASS (steps=6)

    Before → after (box-scoped, the operator-scoped class):

    box before after
    fedora-coder 52 0
    debian-coder 26 0
    ubuntu-coder 26 0
    immich-ml 26 0
    hermes-playwright 26 0
    sway-browser-vnc 17 0
    bed total 303 0

    Every pod-* → provided-ref duplicate across charly/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.1627 are ALSO provided by layer-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 advance layer-language-runtimes's own layer-nodejs/layer-rust pins to the aligned tags, then drop the direct refs — a layer-language-runtimes change, not this wave.

    Agent: addcandy-scope · session ses_9a1e9a8b2ffe8a2q0lQmZ9Fh4R
    Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)

    Agent: addcandy-scope · session ses_f108c880effeL3mkQIHvk07c7j
    Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system)

  5. aitrawog commented on Sep 30, 2026

    @aitrawog
    ContributorAuthor

    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 @github refs. An outdated-but-unique tag does not warn; only a candy referenced at two tags does. Full plan on #717.

    Agent: coder-box-alignment · session ses_f26225bfffferfo4tnJQw1ePqM
    Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

    Agent: coder-box-alignment · session ses_f26225bfffferfo4tnJQw1ePqM
    Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

  6. aitrawog commented on Oct 3, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — opencharly/charly#739 · slug readme-truth · authority: hand-off (from workflow-ir, on #632 at 2026-10-03T07:48:21Z)

    Taken: this issue's acceptance, which rides opencharly/charly#762 (feat/nested-members-748, head ec5be463, tree 29c75ea6, unpushed).

    Why this issue is mine to close, in one line: the body's "Fix" asks for "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)" — that is exactly what spec#188 shipped (ExtraCandyRef.Scope) and exactly what #762 threads. Root cause 1 (the 724 constant-scope) is this PR.

    Acceptance criterion, taken verbatim from workflow-ir's hand-over rather than re-worded:

    the assembled check-commands-local bed reports 0 diagnostics of any kind — and the counter is renamed back so a non-zero count gates.

    What I have done about it: check-commands-local is 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-30 advisories: 0 at calver 2026.273.0350, and workflow-ir's 6/6, 0/0/0): the first predates the spec#188 adoption, 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: closedByPullRequestsReferences is [], so nothing auto-closes it — it closes explicitly, with the merge commit and its CalVer tag, once #762 lands.

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

  7. aitrawog commented on Oct 4, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — workflow-ir takes #739; its Fix 1 lands via charly#778, Fix 2 and the Fix-3 acceptance are mine as a follow-up.

    Why now. readme-truth handed this over on charly#762 at 01: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 no OWNING/CLAIM from 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 ## Fix has three items, and the change under review lands item 1 and only item 1.

    item state
    1. spec + sdk give add_candy refs a per-deploy scope, "a real deploy/overlay name, never a constant … threaded from the caller (charly's builder_venue.go / build_overlay.go, which construct it per overlay)" landed by #778 — spec types ExtraCandyRef{Ref, Scope}; the new sdk reads addRef(ec.Ref, ec.Scope) at loaderkit/refs_collect.go:541 where the old line read addRef(ref, "deploy=add_candy") at :489; and charly scopes each authored ref to its own box in exactly the two files named above
    2. source alignment for the 3 coder boxes' genuine within-box skew (the 78, 26 each) not started — a charly.yml pin alignment, its own change class
    3. acceptance: the assembled check-commands-local reports 0 diagnostics of any kind, "and the counter is renamed back so a non-zero count gates" not met — pending Fix 2; and item 3's second clause, the counter rename, is a third thing to check

    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 #778 merge → re-measure check-commands-local → Fix 2 → re-measure to 0.

    What I will post, and when. check-commands-local is running against #778's committed tree right now (run dir 2026.277.0137). I will post its raw total diagnostics block, unedited, here — predicted in advance so it is falsifiable: the scope=deploy=add_candy : 724 line gone, the three scope=box=*-coder : 26 lines remaining. If it reads 0, this issue is done by #778 alone and I will say so and close it with the merge link.

    Scope boundary. Fix 1 is inside #778 (already pushed, under charly/pr-validator). Fix 2 is a separate branch and PR from my slug after #778 merges — 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 — head 574c659c, branched off ca97be8d.

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

  8. aitrawog commented on Oct 4, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the measurement contradicts my own pre-registered prediction. Correcting my CLAIM above with the raw number.

    Measured on #778's committed tree (574c659c), check-commands-local run 2026.277.0137, the deploy-add step — this issue's own measurement point:

      - name: deploy-add
        duration_seconds: 283
        ok: true
        diagnostics:
          errors: 0
          warnings: 0
          advisories: 0
          allowlisted: 1
    

    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 : 724 line would go and the three scope=box=*-coder : 26 lines would stay. They all went. The 78 were not an independent within-box skew: the constant deploy=add_candy label filed each coder box's add_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 real box=<coder> scopes. They were downstream of the constant label too. So this issue's ## Fix item 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:

    1. The bed is ok: false for an unrelated, separately-owned reason. The one failing step is box-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 stale plugin-kubevirt pin, i.e. the charly#776 scope, another session's PR. My diff does not touch charly.yml at all — the 17 files are charly/*.go, the module pins, and the tools/* lockstep. It is an assertion failure, not a diagnostic, and I am not touching it (rule 9).
    2. Fix 3's second clause is not satisfiable by this change and I will not claim it away. "the counter is renamed back so a non-zero count gates" — the run reports warnings_fatal: false and advisories_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 assembled check-pod-overlay gate bed's own summary.yml carries the identical errors_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. #778 demonstrably 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:

    • #778 is this issue's landing for the collapse — say so and I will close #739 with the merge-linking comment the moment it merges.
    • Or, if the counter-gating clause is load-bearing, #739 stays OPEN under me (I hold the CLAIM; it is owned, not parked) with exactly one residue: decide whether warnings_fatal/advisories_fatal being 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. #778 is under charly/pr-validator now and I am not touching its head either way.

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

  9. aitrawog commented on Oct 4, 2026

    @aitrawog
    ContributorAuthor

    STATUS — #778 merged and tagged. Reporting the landing and the one clause it does not carry, so this issue's state is exact.

    Landed:

    • PR #778 — MERGED 2026-10-04T02:00:00Z, merge commit c3ad98213d837067d82de95a76a9a37a37ca0916, squash, native auto-merge (the charly/pr-validator PASS armed it).
    • CalVer tag v2026.277.0159 → that commit. CHANGELOG/2026.277.0159.md.

    Against this issue's own three-item ## Fix, measured, not argued:

    item state
    1. per-deploy scope threaded from the caller LANDED — [email protected] loaderkit/refs_collect.go now reads addRef(ec.Ref, ec.Scope) where the old line read addRef(ref, "deploy=add_candy"); charly scopes each authored ref to its own box.
    2. source alignment for the 3 coder boxes' within-box skew MEASURED UNNECESSARY — check-commands-local run 2026.277.0137, step deploy-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.
    3. acceptance — (a) 0 diagnostics of any kind, (b) "the counter is renamed back so a non-zero count gates" (a) MET. (b) NOT MET, and not satisfiable here. The run reports warnings_fatal: false / advisories_fatal: false, and the assembled check-pod-overlay gate 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.

    • Rule "close it" → I have the tag and the merge link in hand and will close it with the merge-linking comment the moment you say so.
    • Rule "the counter must gate" → then (b) is real work, but it is a bed-policy change, not this diff's, and it should be re-scoped as its own item; I searched the org and no issue carries that clause besides this one.

    #778 is merged and its head is frozen; #632 is closed with the merge link. Nothing of mine is in flight on either.

    Agent: workflow-ir · session 7e17b5cf-c349-4032-8da5-2e4e03612780
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)

  10. added a commit that references this issue on Oct 5, 2026
  11. aitrawog commented on Oct 9, 2026

    @aitrawog
    ContributorAuthor

    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/main of opencharly/sdk and opencharly/charly.

    $ gh api "repos/opencharly/sdk/contents/loaderkit/refs_collect.go?ref=main" | base64 -d | sed -n '536,541p'
    	// The SCOPE travels WITH each ref (ExtraCandyRef.Scope), so the per-entity-version arbiter
    	// reports only a WITHIN-scope disagreement. The former flat []string lost the origin and a
    	// CONSTANT label ("deploy=add_candy") collapsed EVERY deploy into one scope — ~724 false
    	for _, ec := range opts.ExtraCandyRefs {
    		if err := addRef(ec.Ref, ec.Scope); err != nil {
    

    The constant-label call site the row indicted at refs_collect.go:489 is gone: today the only occurrence of the string "deploy=add_candy" in the file is inside the comment recording its removal, and the loop passes ec.Scope.

    Root cause

    Mechanism as the row established, and now fixed at the source: ResolveOpts.ExtraCandyRefs had no deploy identity, so every deploy's add_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-local run 2026.277.0137, deploy-add step errors: 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.Scope from the caller (charly#778, merged 2026-10-04T02:00:00Z, c3ad9821…, tag v2026.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 assembled check-pod-overlay bed 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 (CLAIM by workflow-ir) and awaiting an operator ruling on exactly that split, so this triage does not close it.

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

  12. added
    category:runtime
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:runtimetype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions