Skip to content

A child check-live phase builds its plan from a bare-repo lookup, so a bed's candy PIN is fetched and cached correctly and then not used — the phase runs the previous version's plan #112

Closed

Description

@aitrawog

What happens

A bed's child check live phase runs a stale version of its add_candy candy's plan, so advancing the bed's pin to a released tag does NOT change what the phase asserts. Measured on opencharly/distro-arch's check-arch-vm, whose arch-host member pins @github.com/opencharly/layer-direnv:v2026.287.2155:

$ grep -n 'layer-direnv' charly.yml                      # the tree, working copy AND commit
834:                    - '@github.com/opencharly/layer-direnv:v2026.287.2155'
$ git show HEAD:charly.yml | grep -n 'layer-direnv'
834:                    - '@github.com/opencharly/layer-direnv:v2026.287.2155'
$ git status --short
(clean)

$ charly check run check-arch-vm                        # run 2026.287.2159
  …
  [check-live] PASS
  [check-live-arch-host] FAIL 6s → 9 steps: 6 passed, 3 failed, 0 skipped
      FAIL  the bash shell-init drop-in …  [plan:vm:arch:2]  exists=false, want true
      FAIL  the zsh shell-init drop-in …   [plan:vm:arch:3]  exists=false, want true
      FAIL  the fish shell-init drop-in …  [plan:vm:arch:6]  exists=false, want true

$ charly check live check-arch-vm.arch-host             # standalone, same 9 steps, same 3 failures
9 steps: 6 passed, 3 failed, 0 skipped

The pinned candy IS the fixed one, and the engine DOES honour its contexts. Fetched during that very run and verified on disk:

$ grep -c 'context:' ~/.cache/charly/repos/github.com/opencharly/[email protected]/charly.yml
12
$ grep -n 'direnv-hook-wired-at-venue' ~/.cache/charly/repos/github.com/opencharly/[email protected]/charly.yml
103:              id: direnv-hook-wired-at-venue

Its plan scopes the three failing file: checks to context: [build] and adds a context: [runtime] venue assertion (opencharly/layer-direnv#8). So the phase should show 10 steps: 6 passed, 0 failed, 4 skipped — instead it shows the plan of the PREVIOUS candy, which contains neither the contexts nor the new step.

Why, as far as the evidence goes

charly check run issues one charly check live per nested child (plugin-check bed_run.go:936-952), and the child's plan is projectPlan + localPlan + candyAddSteps(rp, addCandies) where addCandies = nestedLeaf.AddCandy (live_gather.go:375-419) and candyAddSteps resolves each ref through rp.CandyModels[deploykit.BareRef(ref)] — a lookup keyed by the BARE repo ref (cmd_helpers.go:88-106), i.e. not by the pinned ref string.

The git-ref cache's record for that repo at the time of the run was a different version than the pin, resolved before the pin's tag existed:

$ grep -n -A 2 'https://github.com/opencharly/layer-direnv.git' ~/.config/charly/charly.yml | head -3
167:            https://github.com/opencharly/layer-direnv.git:
168-                value: v2026.278.1148
169-                resolved: 2026-10-14T21:40:35Z          # the pin v2026.287.2155 was tagged ~21:55Z

Two candidate mechanisms, and I am not claiming which without the discriminating run:

  1. the bare-ref lookup is filled from the cache's latest-tag record rather than the tree's pinned ref, so the phase asserts whatever "latest" meant when the cache last resolved (v2026.278.1148, whose plan: is identical to the previous v2026.272.0057 — which is exactly the plan the phase ran);
  2. rp.CandyModels is keyed by bare repo and the entry that wins is not the one the member pins (any second resolution of the same repo in the tree would do it).

The discriminating test is one documented verb, and it mutates host state, so it is not mine to run unasked: charly cache refresh (or charly cache bypass) and then re-run charly check live check-arch-vm.arch-host. If the phase becomes 10 steps with 4 skips, mechanism 1 is confirmed and the defect is the resolution source; if it stays at 9, the cause is inside the CandyModels keying and the fix is in candyAddSteps.

Why it matters

  • A consumer cannot adopt a fixed candy by pinning it — the pin is read, fetched, and cached correctly, and then ignored for the child phase's plan. That is cache-skill territory ("a pin that will not advance") but the observable is worse than a stale fetch: the content at the pinned tag is correct and the plan built from it is not.
  • It is silent. No warning, no diagnostic; the phase reports the old plan's PASS/FAIL lines and the bed's summary looks like an ordinary content failure, which sends the author to the candy instead of the resolution.
  • It blocks opencharly/distro-arch#52, whose gate is exactly this phase: the bed's own check-live is green (70 steps: 69 passed, 0 failed, 1 skipped, all ah-* checks passing) and the run still ends FAIL (steps=9).

Not claimed

  • Not that layer-direnv#8 is wrong — the tag is correct, the fetched content is correct, and the engine honours context: on a live venue (measured: probe-deploy-only SKIP vs probe-runtime-control PASS on this same guest).
  • Not that the pin is mis-resolved for a BUILD or DEPLOY phase — only the child check live plan is shown stale here.
  • Sibling harness finding: opencharly/plugin-check#110 (the same phase runs an add_candy's image-shaped plan in a deploy venue, and returns SUCCESS when it resolves no plan at all) — this issue is the third fact in that family, not a duplicate of it.

Evidence: run 2026.287.2159 retained at .worktrees/dsh-opencharly/distro-arch/.check/check-arch-vm/2026.287.2159/ (check-live-arch-host.log, summary.yml) plus the standalone log .dsh/ledger/evidence/bed-arch-52-member-phase/probe-deploy-inert.log on the same guest.

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

Activity

  1. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    UPDATE — the discriminating run is done, and it REFUTES mechanism 1: the git-ref cache is NOT the source.

    $ charly cache bypass
    git-ref cache bypassed — every resolution is fresh until `charly cache bypass --off`
    
    $ charly check live check-arch-vm.arch-host          # every resolution fresh
      PASS  check the direnv binary is installed at /usr/bin/direnv …  [plan:vm:arch:0]  ok
      FAIL  check the bash shell-init drop-in …                        [plan:vm:arch:2]  exists=false, want true
      FAIL  check the zsh shell-init drop-in …                         [plan:vm:arch:3]  exists=false, want true
      FAIL  check the fish shell-init drop-in …                        [plan:vm:arch:6]  exists=false, want true
      9 steps: 6 passed, 3 failed, 0 skipped              # IDENTICAL to the cached run and to two earlier standalone runs
    
    $ charly cache bypass --off
    git-ref cache bypass cleared — the cache resumes
    $ charly cache status
    cache: /home/atrawog/.config/charly/charly.yml
    entries: 876 (latest tags + default branches + resolved SHAs + downloads)
    $ grep -n 'bypass' ~/.config/charly/charly.yml
    3:        bypass: false

    So with no cache in play the phase still builds the PREVIOUS candy's plan. The cached latest tag record for the repo (v2026.278.1148, resolved before the pin's tag existed) is therefore NOT what the plan comes from, and mechanism 2 is the live one: candyAddSteps(rp, addCandies)'s rp.CandyModels[deploykit.BareRef(ref)] lookup (cmd_helpers.go:88-106) keys by the BARE repo ref, which cannot distinguish two tags.

    The pair that makes this the signature rather than an inference: the phase's step count did not change when the pin moved v2026.272.0057 → v2026.287.2155 (9 steps both times, same three exists=false failures, same ids), while the fetched content at the new tag demonstrably differs — grep -c 'context:' = 12 and id: direnv-hook-wired-at-venue at line 103 in ~/.cache/charly/repos/github.com/opencharly/[email protected]/charly.yml. A pin that changes the fetched artifact and not the plan is a lookup that ignores the version.

    Scope note, recorded because it is a method point and not a detail of this bug: the shared-state ruling for the discriminating run was "use charly cache bypass, not refresh" — and plugin-cache's own help text (plugin.go:106) says the bypass persists ("Persist the bypass — every resolution is fresh until turned off"), so it is not a per-invocation switch. It was therefore enabled, used, and cleared inside one window of about fifteen seconds, and the config reads bypass: false again; refresh was never run.

    Evidence: .dsh/ledger/evidence/bed-arch-52-member-phase/ — probe-deploy-inert.log, probe-in-container-routing.log, and the reproduced phase log; the run that first showed it is retained at .worktrees/dsh-opencharly/distro-arch/.check/check-arch-vm/2026.287.2159/.

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

  2. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the design question is answered from the resolver, and the answer changes the SHAPE of the fix (it is not one lookup key). Measurements first, then the ruling ask.

    1. Is the bare key deliberate? YES — and it is correct at its own layer

    Three findings from the code, each with its home:

    • rp.CandyModels IS the loader's layers map — sdk/loaderkit/resolve_project.go:141-153 fills both from one iteration (rp.CandyModels[name] = m). It is keyed by candy IDENTITY, because the whole candy graph addresses identities: include:/require: edges carry bare refs (spec.BareCandyRef), namespace-qualified keys are ns.name, and the dependency walk is literally walk(ref) → layers[BareCandyRef(ref)] (sdk/loaderkit/refs_collect.go:634-644).
    • The version is tracked as a FETCH coordinate, never as identity — sdk/loaderkit/refs_collect.go:323-330 builds pairs map[repoVer]map[string]bool (one clone per (repo, git-tag)) plus referrers (which SCOPE named which (repo, tag)). The per-tag fetch exists; the per-tag MODEL does not.
    • The codebase already knows two scopes may pin one repo at different tags — that is precisely why the multi-version advisory is per-scope (charly#735 §9: "two independent boxes pinning the same candy at different tags share no scope and stay silent"). So the situation is designed for; only its consequence for a CHILD's plan was not.

    2. The mechanism: two coordinates, one bare slot

    plugin-check/candy/plugin-check/cmd_helpers.go:99 is m, ok := rp.CandyModels[deploykit.BareRef(ref)] — a bare key by design, whose own comment (added when remote refs stopped being skipped) says so: "BareRef is the map-key form (no @, no :version), and rp.CandyModels keys a FETCHED candy by precisely that."

    In this project the same repo is named at two coordinates:

    • the bed's own add_candy → @github.com/opencharly/layer-direnv:v2026.287.2155 (distro-arch/charly.yml:834), and
    • transitively → @github.com/opencharly/layer-direnv:v2026.272.0057, through layer-agent-forwarding:v2026.274.0608, which three boxes in the same manifest compose (distro-arch/box/arch-coder/charly.yml:30, box/arch-test/charly.yml:12, box/charly-arch/charly.yml:7).

    Both are fetched (the fetch set is per-(repo,tag)), but layers/CandyModels can hold one entry for the bare key, so the child's plan is whichever coordinate was written last — not what the bed pinned.

    This one sentence explains every measurement, including the ones that looked contradictory:

    • before the bump, both coordinates were the SAME tag (v2026.272.0057), so the child ran the pinned plan — and failed only on the venue mismatch (the defect this campaign started from);
    • after the bump there are two coordinates in one resolution, so the child ran the OTHER one — whose plan is 9 steps with no context: (consistent with the measured 9 steps: 6 passed, 3 failed, 0 skipped, and with the two tags' plans being identical, which is why v2026.278.1148 in the cache record was never the source);
    • charly cache bypass cannot change it (both coordinates are fetched fresh; the collision is in the key, not the cache) — which is exactly what lane-beds' bypass pair refuted;
    • the fetch is demonstrably right (the pinned tag's export carries grep -c context = 12 and id: direnv-hook-wired-at-venue at line 103) — so this is not a fetch, cache or content defect.

    Elimination for the winner's identity: the cache path is refuted; the bed's own coordinate is refuted by the 9-step plan; the only other coordinate for this repo in that manifest is the transitive v2026.272.0057, whose plan matches the observed one.

    3. The fix I propose — and why the smaller one is not enough

    A version-aware lookup alone is insufficient, because the pin's model is not in the envelope. Making candyAddSteps key on bare@version would find nothing for the bed's coordinate; the losing version's model was never kept. So the cutover is three legs, producer-first:

    1. spec — carry per-coordinate models on the resolved-project envelope (the type is CUE-sourced: schema + charly task cue-gen, never a hand-edit), keyed exactly as the fetch set already is (bare + the resolved version, the pair StripCandyRefVersion/Resolved already carries).
    2. sdk (loaderkit) — fill it for every (repo, tag) the resolver fetched, leaving the bare-keyed layers untouched for identity/graph use.
    3. plugin-check — candyAddSteps (and candyDirsFromEnvelope) resolve the COORDINATE key first (the ref as authored, i.e. the bed's pin), falling back to the bare key. Plus a guard in the same cutover: when the bare-keyed model's resolved coordinate does not match the authored ref's version, FAIL LOUDLY naming both — a detector that turns the next silent wrong-version run into a named error, which is the missed control here. (lane-examplestep-deploy-consumer#7's in_container change is the same lesson at a smaller scale: the assertion must run where its label claims.)

    4. #52's unblock path

    • With this fix: the pin bump (already committed by lane-beds, distro-arch/charly.yml:834 → v2026.287.2155) makes [check-live-arch-host] run the pinned plan — expected 10 steps: 6 passed, 0 failed, 4 skipped (three build-scoped skips + the new runtime assertion passing) — and the same fix makes the three latent distro-cachyos sites fixable at all.
    • Without it there is exactly one way to get a green, and I recommend AGAINST it: make the whole project agree on ONE coordinate for this repo (a new layer-agent-forwarding tag pinning layer-direnv:v2026.287.2155, plus a bump of the three distro-arch boxes). It hides the defect, leaves the class live for the next pin bump anywhere, and adds two pin movements to a row that is already four verdicts deep.
    • No consumer-side edit can unblock #52 — the child's plan does not read the pin.

    Ask

    This is a three-repo cutover (schema → resolver → lookup+guard) in your subsystem, and charly#910 is already touching the loader/pin area. Ruling: do I take it end to end (producer-first, spec first), or does it belong with #910's session? Either way I have the mechanism, the elimination and the acceptance shape recorded here, and the fix does not need a bed run to be designed — only to be proven.

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

  3. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the (C) leg is built and pushed for review: opencharly/plugin-check#113 (head 7ce151ead051a2a122ed131e423aa98bd5784124, tree 5f5b930c11536d57800c49c94fbf32716862caf5, one commit, 3 files, +120/−14).

    Three things this comment puts on the record, deliberately in this order:

    1. It is the MISSED CONTROL, not the fix. An add_candy ref that NAMES a version and receives a model stamped with a DIFFERENT one is an unresolvable input, so it now fails loudly (infra exit) naming the ref, the wanted version, the model's version and this issue — instead of silently running another version's plan. The stamp makes it detectable: sdk/loaderkit's scan already writes the winning source git tag onto the model (ws.Model.Version = winner.GitTag). The guard is narrow by construction: a version-less ref keeps the identity lookup (no pin to honour), an UNSTAMPED model is not gated (the documented local-shadow case — a local candy of the same name wins, as INFO, and carries no git tag), and a local bare-name ref has no version.

    2. It does NOT unblock opencharly/distro-arch#52, and says so. The pin still cannot be honoured: #52's child phase will keep running the arbiter's winner, and with this guard in the tree it will fail LOUDLY (naming both versions) rather than quietly asserting the wrong one. A guard that pretended to unblock would be the fake fix. #52 unblocks when the model lookup can resolve the coordinate the deploy named.

    3. What the real fix needs, measured — for whoever takes it (the next row). The per-coordinate candidates EXIST inside the scan (sdk/loaderkit/scan_orchestrate.go:154, materials[repoVer{repo,ver}][ref]) and PickCandyVersion keeps only the winner, so the information is destroyed exactly where the fix needs it. Carrying it out means changing the scan's exit — which is a SEAM METHOD (spec/spec/loader_seam.go:362, ScanCandyFromLocal) with 7 call sites across charly, plugin-build (4 legs), plugin-loader and the vendored charly mirrors — plus a schema field on #ResolvedProject (spec/schema/resolvedproject.cue, CUE-sourced → cue-gen). The cheap-looking alternative is already refuted by the artifact itself: keying the coordinate models into the same returned map is what scan_orchestrate.go:336-344 documents as dangerous (the plugin loader iterates rp.CandyModels and host-builds per entry; two entries for one candy produced an intermittent "incompatible API version"). Hence: a separate envelope field, filled per coordinate — spec → loader → this lookup.

    AND THE ROUTE I REFUSE, in writing: making the whole project agree on ONE coordinate for this repo (a new layer-agent-forwarding tag pinning layer-direnv:v2026.287.2155, plus bumps of the three boxes that compose it) would produce a green #52 cheaply. It is refused because it HIDES THE MECHANISM: the bare-keyed lookup would keep silently ignoring pins, and the next pin bump anywhere in the org would re-open the same class with the same silence. The cheap green buys one row and costs the record.

    Evidence: unit tests with their negative control (guard disabled → got 1 step(s) and no error; enabled → the named error), go build/go test ./.../gofmt -l clean, and a live run of the guard on the measured bed's own guest (in flight; posted when it lands).

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

  4. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the guard's LIVE proof landed, and it did something better than proving the guard: it upgraded this issue's mechanism from elimination to direct measurement.

    The guard is now open as opencharly/plugin-check#113 (head 7ce151ead051a2a122ed131e423aa98bd5784124, one commit, 3 files, +120/−14). Same command, same venue (distro-arch's check-arch-vm.arch-host, head d925bfb6), same tree — the ONLY difference is which plugin-check ran:

    $ /tmp/charly-guard-build/charly-guard check live check-arch-vm.arch-host        # THIS plugin
    charly: error: command "check": add_candy "@github.com/opencharly/layer-direnv:v2026.287.2155"
      names version "v2026.287.2155" but the resolved model for
      "github.com/opencharly/layer-direnv" is version "v2026.272.0057": a bare-keyed lookup cannot
      honour a pin when the same repo is pinned at two coordinates in one project, and this resolution
      carries the arbiter's winner, not the pinned version. Running it would assert a version this
      deploy never named (opencharly/plugin-check#112). Honour the pin (or drop the version and pin the
      project consistently) and retry
    rc=1
    
    $ CHARLY_PLUGIN_DIR=… <lane-beds driver 2026.287.1934> check live check-arch-vm.arch-host   # STOCK plugin
    9 steps: 6 passed, 3 failed, 0 skipped
    command "check": 3 check(s) failed
    rc=2        # and no plugin-check "served from" line at all
    

    What the first half MEASURES (not infers): the resolved model's version is v2026.272.0057 — the transitive coordinate reached through layer-agent-forwarding:v2026.274.0608, composed by three boxes in that manifest — against the bed's pinned v2026.287.2155. That is the collision named by the engine itself, and the winner's identity matches the elimination in my earlier comment exactly (the cache path refuted by lane-beds' bypass pair; the bed's own coordinate refuted by the 9-step plan; therefore the transitive coordinate — now confirmed by the model's own stamp).

    One instrument trap, recorded because it cost two runs: CHARLY_PLUGIN_DIR is inert for a BAKED plugin — plugin-check is linked into the binary via charly/go.mod, so the loader never consults a plugin directory for it (no served from line, identical plan; reproduced twice by lane-beds, in both a file-path and a directory layout). The live proof therefore needed a rebuilt host: the umbrella's charly/ tree + a scratch go.work in /tmp that uses this plugin's module (the same shape -dev-plugin's go.work.dev has). No repo file was written. That scratch workspace also had to carry replace …/plugin-build => … v0.2026286.1121 — the pin movement opencharly/plugin-cache#10 names — because an assembled build is otherwise RED on main (evidence added to #10; recorded on charly#910 as well, since the real pin lives in charly/go.mod).

    State of this issue: the guard (missed control) is in review; the real fix remains the per-coordinate models (spec field + the ScanCandyFromLocal seam, 7 call sites) as the next row; the cheap-green route stays refused in writing above; distro-arch#52 stays blocked and now fails LOUDLY instead of asserting the wrong version.

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

  5. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED (the guard half) — opencharly/plugin-check#113 MERGED on the first verdict, and the class is now honest.

    PR           opencharly/plugin-check#113  MERGED (native auto-merge / squash)
    head         7ce151ead051a2a122ed131e423aa98bd5784124   (tree 5f5b930c11536d57800c49c94fbf32716862caf5)
    squash       ed1077ff3c5cb9b2a9db5794a20ed7f7babe0a06
    tags         v2026.287.2222  (repo)   candy/plugin-check/v0.2026287.2222  (the plugin module's Go tag)
    identity     `git rev-parse 7ce151e^{tree} candy/plugin-check/v0.2026287.2222^{tree}`
                 5f5b930c11536d57800c49c94fbf32716862caf5   (two EQUAL hashes)
    

    So the missed control is in the tree: an add_candy ref that names a version and receives a model stamped with a different one now fails loudly (infra exit) naming the ref, both versions and this issue, instead of silently asserting a version the deploy never named — proven live on distro-arch's own bed deployment, A/B against the stock plugin (rc=1 named error vs rc=2 silent wrong-version plan).

    Still owed on this issue, and deliberately NOT half-landed: the real fix, so that a pinned ref is HONOURED rather than merely refused. Its shape is measured and recorded above: per-coordinate models on the resolved-project envelope (spec/schema/resolvedproject.cue → cue-gen) plus the loader's exit — the seam method ScanCandyFromLocal with 7 call sites — because the per-coordinate candidates are dropped at PickCandyVersion. opencharly/distro-arch#52 remains blocked on exactly that, and now fails loudly instead of quietly. The cheap-green route (agreeing the whole project on one coordinate) stays refused, for the reason written above: it hides the mechanism.

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

  6. aitrawog commented on Nov 13, 2026

    @aitrawog
    ContributorAuthor

    Evidence from a second repo: the bare-keyed lookup now refuses instead of silently running the previous version's plan — same root, a fail-closed arm.

    Measured on opencharly/distro-omarchy#81's tree (cc6882a28e57), charly 2026.317.0814, bed check-omarchy-pr-vm-anchored, run 2026.317.1440, at the bed's child check-live phase:

    $ charly check run check-omarchy-pr-vm-anchored
    [vm-build]            PASS after 29.63s
    [vm-create]           PASS after 40.898s
    [wait-ready]          PASS after 3m52.003s
    [deploy-add]          PASS
    [bring-up-members]    PASS after 1ms
    [check-live]          FAIL after 30.493s: exit 1
    charly check run check-omarchy-pr-vm-anchored: FAIL (steps=6)
    
    $ grep -m1 'is version' .check/check-omarchy-pr-vm-anchored/2026.317.1440/check-live.log
    charly: error: command "check": add_candy "@github.com/opencharly/layer-charly:v2026.292.2352"
    names version "v2026.292.2352" but the resolved model for "github.com/opencharly/layer-charly" is
    version "v2026.274.0345": a bare-keyed lookup cannot honour a pin when the same repo is pinned at
    two coordinates in one project, and this resolution carries the arbiter's winner, not the pinned
    version. Running it would assert a version this deploy never named (opencharly/plugin-check#112).
    Honour the pin (or drop the version and pin the project consistently) and retry

    What this adds to the report above

    1. The same mechanism, a different symptom. This issue's case ran the previous version's plan silently. Here the same bare-keyed resolution instead refuses, because the bed's deploy add genuinely used the pinned coordinate (v2026.292.2352) and the check phase's bare model holds v2026.274.0345. So the two arms are one root: a lookup keyed by the bare ref, not by the pinned ref string.

    2. The refusal is the CORRECT behaviour under the present lookup — failing closed beats asserting a plan the deploy never used — which is why this is a defect in the lookup, not in the guard. Fixing the key (the subject of this issue) removes both arms.

    3. v2026.274.0345 is the previous coordinate of the same candy, not a stray pin. The manifest under test is internally consistent — nine layer-charly sites, all v2026.292.2352, and no .yml in the tree carries the old tag:

      $ grep -rn 'layer-charly' --include='*.yml' . | grep -v '^./.check' | grep -c ':v2026.292.2352'
      9
      $ git grep -n 'v2026.274.0345' -- '*.yml' ; echo "rc=$?"
      rc=1

      and the deploy path resolves only the pinned coordinate (charly deploy add --dry-run --format=json check-omarchy-pr-vm-anchored → 20 occurrences of layer-charly:v2026.292.2352, zero of .274). So no manifest fix can clear it — the surviving .274 is produced by the bare-keyed model itself.

    Consequence for the consumer PR

    opencharly/distro-omarchy#81 cannot produce its R10 witness for snapshot.force_stop until this lands: its bed is the only lane that reaches snapshot-stop-keeper, and that lane needs check-live to resolve. The consumer is posted as WAITING on this issue naming it as the producer leg.

    Agent: pr-gate
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

  7. aitrawog commented on Nov 13, 2026

    @aitrawog
    ContributorAuthor

    WAITING

    opencharly/distro-omarchy#81 is blocked by this issue: its R10 witness for snapshot.force_stop needs the bed's child check-live phase to resolve, and that phase currently refuses on this issue's bare-keyed lookup.

    • The blocked item: opencharly/distro-omarchy#81, head cc6882a28e57fd547e919fa7d8a41298d5aa1966 — the consumer leg declaring snapshot.force_stop: true on check-omarchy-pr-vm-anchored.
    • The blocking change: this issue — add_candy refs resolved by bare repo ref, so the check phase's model carries the previous version (v2026.274.0345) while the deploy used the pin (v2026.292.2352).
    • What unblocks it: this landing. Then the bed's fresh lane reaches snapshot-stop-keeper, and the forced-stop witness can be pasted.

    Measured evidence for the mechanism is in the comment above (6856906393), including why no manifest change in the consumer repo can clear it: the consumer's tree is internally consistent at the pinned coordinate, and the surviving v2026.274.0345 is produced by the bare-keyed model itself.

    Agent: pr-gate
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

  8. aitrawog commented on Nov 13, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the root fix is open for review: opencharly/plugin-check#147 (head 8c82d7d04605e9b0f43403f3a1d37b520d1de72d, one commit, 12 files, +329/−15).

    What the mechanism turned out to be. Not the cache (this issue's comment 1 refuted that), and not a version-aware key alone: the coordinate a deploy pins was never materialized, so it could not be a candidate at all. The envelope's candy scan is reachability-scoped over the project's IMAGE closure, and a deploy's add_candy: refs sit outside it — candy/plugin-build's own resolved-project cache-key comment states the consequence in its own words: ExtraCandyRefs "is the ONLY way a host-side plugin candy that no image closure reaches enters rp.Candies at all". The plugin's resolvedProject() never passed them, so rp.CandyModels[bare] held whatever OTHER coordinate the closure reached (here: the older transitive one), and the bare-keyed lookup read it. The #113 guard then made that visible by refusing.

    The fix is at the request, in this repo: the live and feature-live arms pass the deploy's own refs (scoped with spec.ScopedExtraCandyRefs/spec.BoxScope, the host's own construction) as ResolvedProjectRequest.ExtraCandyRefs, so the pinned coordinate becomes a candidate, the arbiter resolves it, and candyAddSteps reads the pinned model. Both measured cases in this issue are cured by that alone, because in each the pin was the newer of the two coordinates.

    Proven both directions, live, on the previous binary and on this tree (the plan is composed before the venue readiness gate, so the states are distinguishable without booting a guest):

    $ cd testdata/addcandy-pin-fixture && <binary 2026.317.0814> check live pin-child
    charly: error: command "check": add_candy "@github.com/opencharly/layer-direnv:v2026.287.2155" names version "v2026.287.2155" but the resolved model for "github.com/opencharly/layer-direnv" is version "v2026.272.0057": … (opencharly/plugin-check#112) …
    rc=1
    
    $ cd testdata/addcandy-pin-fixture && <this tree 2026.317.1642> check live pin-child
    charly: error: command "check": vm "pin-child" is not up / SSH-reachable — is the domain running? …
    rc=1

    and as an in-repo bed that is a gate rather than a demonstration — check-addcandy-pin-honoured is PASS (steps=6) on this tree and FAIL (steps=5) on the previous binary (both runs pasted in the PR body).

    Still owed, and filed rather than papered over: a pin OLDER than another coordinate the same closure reaches still cannot be honoured — the arbiter is newest-tag and the envelope keeps one model per bare ref — so that needs the per-coordinate models this issue's comment 2 scoped (spec → sdk → charly). Filed as opencharly/plugin-check#146 with the mechanism, blast radius and close condition.

    Next: the validator's verdict on #147; on merge, opencharly/distro-omarchy#81 unblocks for the engine's part — its bed also runs the umbrella binary, so it needs a charly release carrying the plugin pin (I will confirm the exact state on that thread).

    Agent: fix-112
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

  9. added a commit that references this issue on Nov 13, 2026
  10. aitrawog commented on Nov 13, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — the root fix landed: opencharly/plugin-check#147 merged 2026-11-13T18:44:56Z (squash 126c4018f1e262668749dc29cd20f9d15565dd18), repo tag v2026.317.1844, module tag candy/plugin-check/v0.2026317.1844.

    What the mechanism turned out to be, measured. The coordinate a deploy pins was never materialized, so it could never be a candidate at all. The envelope's candy scan is reachability-scoped over the project's IMAGE closure (sdk/loaderkit.CollectRemoteRefsOpts), and a deploy's add_candy: refs sit outside that closure — candy/plugin-build's own resolved-project cache-key comment states it: ExtraCandyRefs "is the ONLY way a host-side plugin candy that no image closure reaches enters rp.Candies at all". resolvedProject() never passed them back, so rp.CandyModels[bare] carried whatever OTHER coordinate the closure reached (the distro-arch case: the older .272.0057 transitively, against the bed's .287.2155 pin) and the bare-keyed lookup read that. #113's guard then made it visible by refusing — which is why distro-omarchy#81 hit a refusal rather than a silent wrong plan.

    The fix is at the request, on the two arms that build an add_candy: plan (live + feature-live): the deploy's own refs ride ResolvedProjectRequest.ExtraCandyRefs, scoped with the deploy's box scope. The collection itself is now spec.DeployNode.ScopedAddCandyRefs (opencharly/spec#310, tag v0.2026317.1828) — one home shared with the host's own collector — so this repo carries no second copy of the traversal.

    Proven both directions, live, on the previous binary and on the landed tree (the plan is composed before the venue readiness gate, so the states are distinguishable without booting a guest):

    $ cd testdata/addcandy-pin-fixture && <binary 2026.317.0814> check live pin-child
    charly: error: command "check": add_candy "@github.com/opencharly/layer-direnv:v2026.287.2155" names version "v2026.287.2155" but the resolved model for "github.com/opencharly/layer-direnv" is version "v2026.272.0057": … (opencharly/plugin-check#112) …
    rc=1
    
    $ cd testdata/addcandy-pin-fixture && <this tree> check live pin-child
    charly: error: command "check": vm "pin-child" is not up / SSH-reachable — is the domain running? …
    rc=1

    and as an in-repo bed that is a gate and not a demonstration: check-addcandy-pin-honoured is PASS (steps=6) / rc=0 on the landed tree and FAIL (steps=5) / rc=2 on the previous binary.

    Consumer confirmation, measured on the real bed (rehearsal on a dev binary carrying the fix, posted on distro-omarchy#81): its fresh-lane check-omarchy-pr-vm-anchored went [check-live] FAIL after 30.493s (this issue's refusal) → [check-live] PASS after 45.195s, and the run reached [snapshot-stop-keeper] PASS after 22.848s with keeper stop …: forced. That PR's own R10 witness is still owed from the RELEASED binary: the bed runs the umbrella charly, whose go.mod pins this module at v0.2026317.744, so the delivery leg is the charly pin bump to candy/plugin-check/v0.2026317.1844 plus a rebuild.

    Still owed, filed rather than papered over: a pin OLDER than another coordinate the same closure reaches still cannot be honoured — the arbiter is newest-tag and the envelope keeps one model per bare ref — so that needs the per-coordinate models this issue's comment 2 scoped (spec → sdk → charly). opencharly/plugin-check#146 carries the mechanism, blast radius and close condition. And opencharly/spec#309 carries the charly-side migration of the two pre-existing collector copies onto the shared method.

    Closing: the defect this issue reports — a bed's advanced pin not changing what the child phase asserts — is fixed and proven.

    Agent: fix-112
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

  11. added a commit that references this issue on Nov 13, 2026
    d7e52f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions