Repository navigation
Description
Summary
Two resolutions of one import: ref disagree inside the same process, and the code comment beside one of them asserts they agree.
This repo composes the distro namespace by tag (charly.yml:30):
- cachyos: '@github.com/opencharly/distro-cachyos:v2026.318.1213'box/cachyos is a separate pin — a declared submodule (.gitmodules, branch = main). ONE of the two readers supplies the manifest that is PARSED; the other supplies the manifests the parse-time PRESCAN walks. Measured, they are different trees.
The measurement
From a worktree of this repo at origin/main (0e2ade1e) with box/cachyos materialized at ba2c187a (the merged distro-cachyos main), whose tree renames the GPU boxes (box/nvidia → box/nvidia-cdi, box/comfyui → box/comfyui-cdi, …):
$ git -C box/cachyos diff --name-status v2026.318.1213 ba2c187a -- box/
A box/nvidia-cdi/charly.yml
A box/qwen3-tts/charly.yml
D box/nvidia/charly.yml
R067 box/comfyui/charly.yml box/comfyui-cdi/charly.yml
R088 box/python-ml/charly.yml box/python-ml-cdi/charly.yml
…
$ ./bin/charly box list boxes | grep -E '^cachyos\.(nvidia|nvidia-cdi|qwen3-tts|comfyui)'
cachyos.comfyui [testing]
cachyos.nvidia [testing]
$ ./bin/charly box list boxes | grep -c cdi
0The load exposes the OLD (tag-tree) names and not one -cdi box — so the entities agentteams, agentteams-manager and agentteams-worker build on (base: cachyos.cachyos, charly.yml:3369, :3404, :3432) come from the tag cache, NOT from the checkout.
Both halves, in the code
- The WALK mounts a namespaced import through
w.seams.ResolveRef(sdk/loaderkit/walk.go:243). This repo wires that seam torequireProjectLoader().CanonicalRef(...)(charly/loader_threaded.go:158), which isloaderkit.CanonicalRef: for an@ref it ALWAYS fetches the pinned version into the shared repo cache and returns that path. There is no local-checkout leg on this path. - The PRESCAN is LOCAL FIRST (
charly/plugin_prescan.go:579):
// LOCAL FIRST, because the parse reads local first. An import whose repo is checked out as
// this project's box/<namespace> submodule is parsed FROM THAT CHECKOUT (the error path a
// failing box names is box/<name>/charly.yml, not a cache dir). Prescanning the pinned
// cache instead would read a DIFFERENT tree than the one being parsed — the pin and the
// submodule drift routinely — and register primaries that do not match the manifest whose
// steps are about to be desugared.
if local := filepath.Join(baseDir, "box", name); local != "" {
if _, err := os.Stat(filepath.Join(local, spec.UnifiedFileName)); err == nil {
return local, nil
}
}The comment's premise is false. The parse does not read local first, so the local-first leg produces exactly the mismatch the comment says it prevents: plugin words registered from the GITLINK's manifests against steps desugared from the TAG's.
Blast radius
- A plugin word declared in the checkout but not in the tag tree is registered — and its candy fetched — for a parse that will never reach it. A word that exists only in the TAG tree is still registered (the prescan falls through to the same cache), so the asymmetry is silent in the direction that matters: it is the CHECKOUT's words that cannot be trusted to describe what parses.
- The
cachyosnamespace is frozen at the tag whilebox/cachyosrecords commits ahead of it —git -C box/cachyos rev-list --count v2026.318.1213..ba2c187a= 31 — socharly box build agentteamsbuilds on a distro tree 31 commits older than the gitlink this repo's own pin control reports as current. The pin control says0 of 5either way: the two pins are judged independently and never compared.
The missed control
charly/plugin_prescan_import_test.go:68 TestResolveImportedProject_PrefersLocalCheckout proves the PRESCAN half of the claim, by substituting resolveImportedProject and asserting it returns the local directory — true whether or not the walk agrees. Nothing anywhere executes the premise the comment rests on (that the WALK also reads the checkout), so the claim was never falsifiable by the suite.
Root fix — ONE resolution
R2 forbids keeping both. Either:
- The walk resolves a namespaced import to the checked-out
box/<namespace>submodule first (making the comment true, and letting the prescan delegate to the same resolution), or - the prescan stops preferring the checkout, and the comment goes with it — in which case the gitlink is inert for the parse and must be said in the pin contract, not in a prescan comment.
The first is the semantics the comment states and the one the drift argues for; the second is cheaper but leaves box/* judged as a pin that governs only tests.
Where this surfaced
Filed from the box/cachyos pin advance (#1132, opencharly/opencharly#1182). It changed the answer to "which gate exercises a box/* bump" — the boxes' beds do not, because they never parse the gitlink. It is NOT blocking that advance: the advance is a leaf-pin fast-forward whose served surface is this repo's own Go corpus suite, and that suite passes over the new tree.
Agent: edge-1182 · DeepSeek Harness session a8d6ae4d-d0e0-4b37-8e6c-58081b9e6040
Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (analysed on a live system)
Activity
chore(pins): advance box/cachyos and box/fedora to the merged VM-driv…