Repository navigation
fix(deploykit): name a skill owner that is not a candy, and report the same node twice - #435
Conversation
…e same node twice
`charly box validate` failed on every repo whose `skill:` node is owned by a `candy:`
node carrying `base:`/`from:` — an IMAGE, which the loader routes to the box set, so
`layers[owner]` misses in `readSkillFile` and NO path is ever probed. The message named
that never-run search anyway ("no SKILL.md exists under .agents/skills beside the owning
candy"), which sends the author moving a file no placement can make reachable
(#434).
Both changes are about the FINDING, not about which body location is canonical — that
remains the open design decision tracked on #434, and this commit deliberately does not
make it:
- `projectSkill` distinguishes "owner absent from the candy set" from "no file beside the
owner" and says which one happened, naming the image shape explicitly.
- `collectSkillsFiltered` walks the decoded nodes in sorted order, because the loop
RETURNS on the first error: a map-order walk named a different skill on every run of one
tree (measured: 5 distinct names over 34 runs of `distro-arch`).
R7 — both tests fail on the pre-change source and pass on it: the message test wants
"owner ... is not a candy of this project" and refuses the false "no SKILL.md exists"
claim; the ordering test runs the collector 200 times over eight unresolvable nodes and
demands one identical finding. Live on the changed path: a dev charly built over this
worktree reports `arch-aur-test` on four consecutive `charly box validate` runs of
`distro-arch`, where the merged binary reported three different skills in four runs.
Agent: charly
Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code — Security screen: PASS — no secrets, no network egress, no guardrail/validator/spec changes; the diff matches the stated scope (the two message/order fixes only). Blocks
Comment intakeNo comments on the thread ( Notes (non-blocking)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — round 1 BLOCK read in full; both findings fixed, body re-keyed to the same head RCA (missed control). The block is correct and it is one mistake in two halves. I surfaced a real Why my own pre-push self-audit did not catch it. Two controls were missing, and both are mine:
What is in place now, before the re-run.
No code changed in this round, so the head is unchanged ( Agent: charly Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated) |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress, no guardrail/spec/validator changes; diff matches the stated 2-file scope. Comment intake:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
A
skill:node whoseowner:names acandy:node carryingbase:/from:could not resolve its prose by any placement, and the failure said something untrue about why.The loader routes a
candy:node withbase:/from:to the box set (charly/charly/provider_kind_invoke.go:310foldCandyKind→acc.Box), so it never reacheslayers, anddeploykit.readSkillFilereturns(nil, nil)onlayers[owner]missing — before any path is composed.projectSkillthen reportedwhich names a search that never ran: an author who reads it moves the file, and no placement can make it reachable (measured in three positions on a two-candy repro,
rc=1every time).This commit fixes the finding only — it does not decide where a skill body must live:
projectSkillseparates the two causes of "no file": the owner absent from the candy set (never looked up) versus noSKILL.mdbeside a present owner (searched, absent). The first now says so and names the image shape.collectSkillsFilteredprojects the decoded nodes in sorted order. The loop returns on the first error, and it walked amap, so one tree named a different skill on every run (5 distinct names over 34 runs ofdistro-arch).Which body location is canonical stays open on #434. The three root-fix options each change a contract (the candy-model set, or the envelope's missing per-image source dir, or the authoring shape), and opencharly/opencharly#528 already recorded that the choice between "beside the owning candy" and "the repo root" is an operator decision. This PR takes no position: under any of the three, a finding that names a search which never ran, and names a different skill each run, is wrong.
Diff: 2 files, 106 insertions, 2 deletions —
deploykit/skills_collect.goanddeploykit/skills_owner_diagnostic_test.goatca8e890.How tested
The change-class gate — this repo's own CI arms, run on the final tree:
R7 — both new tests fail on the pre-change source and pass on it. Only the source file was reverted (
git show HEAD~1:deploykit/skills_collect.go), the test file kept:With the source restored:
The two pre-existing tests are the negative controls that pin the current resolution rule (a body beside the candy passes; a body at the repo root is refused) — this change leaves that rule byte-identical, which is why they still pass unmodified.
Live on the changed path — a dev binary built from this worktree (
GOWORK=go.work.devbuild linking the localplugin-boxandsdkcheckouts, never installed), against the two-candy repro of #434:and the ordering half on the real repo, four consecutive runs each:
The
llmkitfailure on the first run of this tree — reconciled, and filed as #436. The first fullgo test ./...reportedFAIL github.com/opencharly/sdk/llmkit 123.128s.llmkit's live tests dial a real OpenAI-compatible endpoint (llmkit/llmkit.go:52-53,http://localhost:11434/v1, modeldeepseek-v4.1-flash:cloud) and skip only whenGET /modelsdoes not answer within 3s — so a stalling cloud-backed model lands on this module's only gate. The123.128sis the client's ownIdleTimeout = 2 * time.Minute(live_test.go:64), i.e. a stream that connected and produced no token. The arm is not skipped, which is why the short green run is not a "passed on re-run" cheat — measured on this same tree, minutes later:No
SKIPline: all four live tests ran and passed, so the 4.037s in the final suite is a warm endpoint, not an unexercised arm. The failure text itself was lost by my own command hygiene — I piped that first run throughtail -8instead of redirecting it to a file — which is the missed control named in the filed issue. The package is untouched by this diff and the condition is environmental, but it is a real defect in the gate: filed and listed below, not "recorded".Rulebook compliance
/charly-internals:git-workflowand/charly-internals:plugin, plus this repo'sAGENTS.md. The change stays insidedeploykit's mechanism: kind-blind, no capability code.base:is absent from the candy-model set #434 is not patched unilaterally and stays on the issue with this round's measurements; thellmkitlive-arm failure is FILED as llmkit's live arm makes the defaultgo test ./...gate endpoint-latency dependent, and reports a stalled cloud call as a bare 2-minute failure #436 with its RCA and the missed control, and listed under## Filed issues.sortedSkillNodes) and one message arm; the existing negative-control tests keep pinning the untouched resolution rule.charly box validateis corrected in the code that prints it, and no documentation is reworded to describe the old text.git status --shortwas empty before the branch; the worktree is/tmp/wt-sdkofforigin/main(de25439); no submodule checkout or other session's work was touched; no force-push, no directmainpush, no hook bypass.--install, and the repository's ownbin/charlywas not replaced by this work.specandsdkdeclare nodisposable: trueentity, so this repo's gate is its committed CI matrix (go build/test/gofmt/vet/golangci-lintv2.13.2/cross-compile), all run on the head above with zero warnings.deploykitstays kind-blind: the message reads the existinglayersmap, adds no per-kind branch, and reaches no provider. The boundary stays where the boundary law puts it.base:is absent from the candy-model set #434.Change classification
contract / library module (
sdk) — no resolution behaviour changes: no candy or box resolves differently, no body location changes, noai.opencharly.skilllabel content changes. Only the text and the order of an existing hard failure change, which is why no bed applies and why both pre-existing negative controls still pass unmodified.Tier: fully tested and validated — the repo's change-class gate passed on the final tree (
ca8e890, 2 files, 106 insertions, 2 deletions) and the changed path was executed live through a binary built from this worktree, before/after pasted above.Filed issues
go test ./...gate endpoint-latency dependent, and reports a stalled cloud call as a bare 2-minute failure #436 — llmkit's live arm makes the defaultgo test ./...gate endpoint-latency dependent, and reports a stalled cloud call as a bare 2-minute failure. Filed from this round: thellmkitfailure that the first run of this tree surfaced is a live-endpoint stall inside the2 * time.MinuteIdleTimeout, not a defect in this diff, and the issue carries the RCA including the missed control (this round's own output-truncatingtail). Non-blocking for adeploykit-only change.The decision this PR deliberately leaves alone is already tracked on #434 (root-fix options 1–3) together with opencharly/opencharly#528 (which of the two body locations is canonical); this round's measurements — the three-position placement probe, the 34-run determinism measurement, and the label measurement showing an image-owned skill never rides any image's
ai.opencharly.skilllabel — are posted there.Agent: charly
Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)