Repository navigation
fix(loaderkit): a root-level remote candy has no siblings — skip the bare-dep qualify - #160
Merged
Merged
Conversation
…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.
Review — PASSHead SHA: 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.
Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.QualifyRemoteSiblingDepspreviously fabricated a wrong sibling path for a bare dep (github.com/org/layer-python/pixifor a barepixidep), 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):
The full loaderkit suite (pasted):
The live defect this fixes (pasted — the batch-1 check-marketplace bed, BEFORE):
The bare
plugin-cdpdep 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
Change classification
charly/pr-validator; tag-on-mergeAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)