Skip to content

fix(loaderkit): a root-level remote candy has no siblings — skip the bare-dep qualify - #160

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/root-qualify-skip
Aug 23, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/root-qualify-skip

Conversation

@atrawog

@atrawog atrawog commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Summary

The candy de-submodule cutover's root-level sibling-qualify fix (sdk-side): a standalone candy repo's manifest lives at the repo ROOT (SubPathPrefix "") and has NO sibling candies. QualifyRemoteSiblingDeps previously fabricated a wrong sibling path for a bare dep (github.com/org/layer-python/pixi for a bare pixi dep), failing the remote resolution with "not found". The root-level remote now skips the qualify — the bare name resolves against the scan set (the local library or another downloaded remote). The candy-library form (SubPathPrefix "candy/") is unchanged.

How tested

The new + regression tests (pasted):

$ GOWORK=off go test ./loaderkit/ -run "TestQualifyRemoteSiblingDeps|TestScanRemoteCandy" -v
=== RUN   TestScanRemoteCandy_RootLevelNameDerivation
--- PASS: TestScanRemoteCandy_RootLevelNameDerivation (0.00s)
=== RUN   TestScanRemoteCandy_SubPathNameUnchanged
--- PASS: TestScanRemoteCandy_SubPathNameUnchanged (0.00s)
=== RUN   TestScanRemoteCandy_ForeignRefStillErrors
--- PASS: TestScanRemoteCandy_ForeignRefStillErrors (0.00s)
=== RUN   TestQualifyRemoteSiblingDeps_RootLevelSkips
--- PASS: TestQualifyRemoteSiblingDeps_RootLevelSkips (0.00s)
=== RUN   TestQualifyRemoteSiblingDeps_SubPathStillQualifies
--- PASS: TestQualifyRemoteSiblingDeps_SubPathStillQualifies (0.00s)
PASS

The full loaderkit suite (pasted):

$ GOWORK=off go test ./loaderkit/
ok  	github.com/opencharly/sdk/loaderkit	0.006s

The live defect this fixes (pasted — the batch-1 check-marketplace bed, BEFORE):

scanning github.com/opencharly/pod-chrome-cdp:v2026.235.2110: remote candy github.com/opencharly/pod-chrome-cdp/plugin-cdp not found

The bare plugin-cdp dep of the remote chrome-cdp candy was qualified to a fabricated sibling path; with this fix the bare name resolves against the scan set.

Rulebook compliance

Rule How / N/A
R0 N/A — no skill-owned surface touched (a pure mechanism kit)
R1 the batch bed's remote resolution failed live — root-caused (the sibling-qualify fabricated a root-level sibling) + fixed in-tree
R2 N/A — the surfaced failure was fixed, not parked
R3 the ONE QualifyRemoteSiblingDeps owns the qualification; the sub-path regression test guards the pre-cutover form
R4 N/A — no workaround
R5 N/A — the sub-path form is preserved
R6 status checked; no force-push; feat-branch + PR landing
R7 the test + suite outputs pasted above
R8 N/A — no generation changes
R9 N/A — no deploy target change
R10 the tests ran on the committed tree

Change classification

  • Change class: sdk mechanism fix + tests
  • Verification gate: the full loaderkit suite (pasted above)
  • Attribution tier: fully tested and validated — the changed path executed live via the new tests + the full suite green
  • Landing: fresh charly/pr-validator; tag-on-merge

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)

…bare-dep qualify

The candy de-submodule cutover's standalone repos (SubPathPrefix "") have NO
sibling candies: QualifyRemoteSiblingDeps fabricated a wrong sibling path for a
bare dep (github.com/org/layer-python/pixi for a bare pixi dep), so the remote
resolution failed "not found". The root-level remote now skips the qualify —
the bare name resolves against the scan set (the local library or another
downloaded remote). The candy-library form (SubPathPrefix "candy/") is
unchanged. Tests: the root-level skip + the sub-path regression.
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: f1bd21c237791731bd0ab3afddda763364a8b8c0 (base 8b8cec09f484)

Security screen: PASS — no secrets, no network/egress, no guardrail changes, no scope mismatch; diff (48/0, 2 files) matches the described fix exactly.

Checklist: All applicable rules PASS or NA.

  • Change class: sdk mechanism fix + tests; gate (full loaderkit suite) pasted with the new tests executing the changed path; both new tests would fail without the fix (root-level skip + sub-path regression guard).
  • R1 RCA coherent: the surfaced .../pod-chrome-cdp/plugin-cdp not found error matches the pre-fix fabricated sibling path (repoPath + "/" + name) exactly; no flake/transient framing.
  • R2/R3/R4/R5/R6/R8/R9/R10 answers consistent; placement CORRECT (kit-internal fix in loaderkit, no core/sdk imports, no aliases).
  • CI validate / validate is still in_progress (pending, not failed).
  • Non-blocking nit only: the merge left a dangling sentence fragment in the scan_candy_root_test.go header comment (// the candy name from the repo's own name when the sub-path is empty. duplicated after the inserted lines) — cosmetic, no behavior or rule impact.

Verdict: PASS


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 23, 2026 21:24
@github-actions
github-actions Bot merged commit 0bed544 into main Aug 23, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 23, 2026
github-actions Bot pushed a commit that referenced this pull request Aug 24, 2026
…sibling (fix-point mirror of #160) (#161)

* fix(loaderkit): the fetch fix-point must not enqueue a root-level remote's bare dep as a sibling (the candy de-submodule cutover)

ScanCandyFromLocal's fix-point enqueues a remote candy's plain-name
require:/candy: dep as a same-repo sibling at the SAME git tag:
repoPath+"/"+SubPathPrefix+dep.Raw. For a ROOT-LEVEL remote candy (the
standalone candy repo layout, SubPathPrefix "") that fabricates
repoPath/nvidia for a bare nvidia dep; the next fix-point round then
scans that ref against the repo at the tag and dies "remote candy
github.com/opencharly/layer-cuda/nvidia not found at
.../[email protected]/nvidia" — the batch-1 bed failure.

Mirrors the #160 qualify skip: a root-level remote candy has NO
siblings, so the bare dep is left to resolve against the scan set (the
local library or another downloaded remote). The sub-path form
(SubPathPrefix "candy/") keeps the sibling enqueue unchanged.

Gated by TestScanCandyFromLocal_RootLevelBareDepNotEnqueued: the seam
fails the scan if the fix-point ever asks for the fabricated ref; the
test reproduces the exact bed shape (root repo with a bare dep plus an
@-pinned remote dep) and holds both the root materialization and the
local bare-name dep.

* test(loaderkit): add the sub-path sibling-enqueue negative control

The root-level skip (#161) must not degenerate into dropping plain-name
deps of SUB-PATH remote candies: a sub-path remote's bare dep IS a
same-repo sibling at the same tag and the fix-point must keep enqueuing
repoPath+"/candy/"+dep. TestScanCandyFromLocal_SubPathBareDepStillEnqueued
holds the candy-library form (SubPathPrefix "candy/") to that behavior.
@aitrawog
aitrawog deleted the feat/root-qualify-skip branch September 25, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant