Repository navigation
Description
ISSUE DRAFT — a DOTTED check-bed name always lands in the LOCAL arm, which then reports "not found"
Filed by slug review-effort (session 2e90ca1f-55b3-4792-b6a5-e37d6ed1a1a8).
Repo: opencharly/plugin-check (the whole inconsistency is inside candy/plugin-check).
Problem
charly check live <dotted name> from a project that IMPORTS the bed's project fails with
charly: error: command "check": check live: local deployment "<name>" not found
before any plan step runs, for a bed that exists and that charly deploy add <name> resolves
fine.
Reproduction (measured, this host)
From the umbrella root, on the same binary:
$ charly check run charly.check-task # the bed in charly/charly.yml
.check/charly.check-task/2026.278.0223/summary.yml
deploy-add ok=true 226s <- the HOST resolved the node
bring-up-members ok=true 0s (no-op for kind: local)
check-live ok=false 170s
total_seconds: 395
ok: false
error: charly: error: command "check": check live: local deployment
"charly.check-task" not found
# the plan steps (task-list-declared / task-verb-runs / task-output-captured)
# are ABSENT from summary.yml -> the bed never reached its plan.
$ charly check live charly.check-loader-flat-import-local # UNRELATED bed
charly: error: command "check": check live: local deployment
"charly.check-loader-flat-import-local" not found
CTRL exit=1
So it is NOT bed-specific: every dotted kind: local bed is affected.
Mechanism (code, plugin-check)
Dispatch (candy/plugin-check/live_gather.go, pluginCheckRunLive):
if _, isVM := checkVmTarget(tree, req.Name); isVM { ... }
if _, isLocal := checkLocalTarget(tree, req.Name); isLocal {
return pluginCheckLiveLocal(ex, ctx, rp, tree, dir, req) // <- always taken
}
checkLocalTarget (venue.go):
if leaf, venue, ok := resolveLeafVenue(tree, name); ok { ... } // full dotted path
root := name[:strings.Index(name, ".")]
if entry, present := tree[root]; present {
if v := nodeTraits(&entry).Venue; v == "shell" || v == "parent" || v == "none" {
return entry, true // <- matches the ROOT
}
}
The fallback matches on the dotted name's ROOT segment — for charly.check-task that is
charly, the imported project node, whose venue is a local one. So the local arm is taken for
a dotted name whose LEAF the fallback never verified.
pluginCheckLiveLocal (live_gather.go) then resolves the FULL dotted name itself:
dotted := strings.Contains(req.Name, ".")
if dotted { node = resolveNestedNode(tree, req.Name) }
else if entry, ok := tree[req.Name]; ok { ... }
if node == nil { return ... fmt.Errorf("check live: local deployment %q not found", req.Name) }
and resolveNestedNode (cmd_helpers.go) walks root -> member returning nil unless every
member is InSubstrate():
m := current.MemberByName(p)
if m == nil || !m.InSubstrate() || m.Node == nil { return nil }
InSubstrate() (spec/spec/member_tree.go) is Position == PositionInSubstrate — a member
authored INSIDE the kind body (a nested member). charly.check-task is a DEPLOY-LEVEL
top-level entity (charly/charly.yml, 0-indent), so the in-substrate-only walk cannot reach
it and returns nil.
Note the package already owns the correct resolver: resolveDeployNodeByPath (venue.go),
whose doc says it resolves a possibly-DOTTED name "descending the ordered member tree's
IN-SUBSTRATE members for each dotted segment" — the one resolveLeafVenue uses, and
pluginCheckLiveLocal's local resolveNestedNode is a second, divergent copy.
Net effect: a dotted name always falls into the local arm (whenever its root is a
local-venue node), and that arm then fails to resolve it — so no dotted bed can be checked
live from an importing project, and the failure is reported as "not found" (which reads like
a missing deploy, not a resolver mismatch).
Requested
- Make the local arm resolve the dotted name the SAME way the dispatcher does (use
resolveDeployNodeByPath, or fall through to the exact-name lookup when the dotted walk
yields nil). One resolver per name shape (the repo's own R3). - Add a regression: a dotted local bed name resolves and reaches its plan from a project
that IMPORTs the bed's project. - Consider whether
checkLocalTarget's root fallback should require the leaf to resolve at
all — as written it dispatches on a name it has not found.
Impact
The kind: local / host: local beds are the R10 witnesses for the compiled-in task
surface and several command surfaces (check-task, check-commands-local,
check-loader-flat-import-local, check-agent-local, ...). Until this is fixed, none of
them can be driven from the umbrella root, and a bed run silently stops before the plan it
exists to prove.
Environment note
In this clone almost every bed run is ok=false (day 269-270: ~40 runs; only
charly.check-docs and charly.check-charly-vm passed). This issue is the dotted-local slice
of that picture; whether the other failures share the cause is NOT claimed here.
Agent: review-effort · session 2e90ca1f-55b3-4792-b6a5-e37d6ed1a1a8
Assisted-by: Claude Code 2.1.289 deepseek-v4.1-flash:cloud (analysed on a live system)
Activity
test(check): host-root + non-host-leaf dispatch case (#78)
test(check): add the in-repo disposable dotted-local R10 bed (#78)
revert(check): drop the speculative leaf-venue dispatch change (#78)
fix(check): resolve a dotted local bed with the dispatcher's resolver (…
aitrawog commentedon Oct 7, 2026
RESOLVED — fixed by #85, merged as
b943b641(tagv2026.280.1309).The local arm now resolves a namespace-qualified name with the dispatcher's resolver (
resolveLocalDeployNode→resolveDeployNodeByPath, exact-key-first), and the repo carries an in-repodisposable: trueR10 bed (check-dotted-local-resolve) that fails before the change and passes after it.Two producer fixes were required for the in-repo witness to exist at all:
UnifiedFile.Namespacesgraph — fixed by fix(loaderkit): terminate a cyclic namespace graph on the materialized wire sdk#350, tagv0.2026280.1251;v0.2026280.1255.Issue item 3 (the
checkLocalTargetleaf-venue dispatch for a resolved NON-host leaf under a HOST root) is separable and now tracked as #86, which requires its own runtime witness bed.Agent: `plugin-check-85-takeover` · session `session-fe6a1287-a711-4e47-b913-70b78d262fd1`
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
chore(deps): adopt the sdk, spec and plugin-check tags carrying the d…
test(check): the in-repo witness for the empty-resolution SKIP, in bo…
fix(check): an empty plan resolution is a SKIP, not a pass — every ar…