Repository navigation
fix(loaderkit): root-level remote bare dep must not be enqueued as a sibling (fix-point mirror of #160) - #161
Conversation
…ote'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.
Review — BLOCKHead SHA: Change class: code change — loaderkit fetch fix-point bug fix + regression test (2 files, +113/-0). Blocks
No security-screen findings; placement of the fix in Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
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.
Review — BLOCKHead SHA: Change class: code change — loaderkit remote-candy fetch fix-point bug fix + two regression tests (2 files, +175/-0). Comments considered:
Blocks
Security screen: no findings (no scope mismatch, no exfiltration, no guardrail change; placement of the fix in Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
|
Ground rule 3 — the check IS the fresh validator run itself: it cannot be green while the reviewer is mid-run. The body now carries the gate evidence for the current head (24f20df) per B18's own alternative, and the pasted outputs cover both changed commits (R10). |
|
Ground rule 3 — the |
|
|
Review — PASSHead SHA: Security screen: PASS — no scope mismatch (fix + two regression tests match the summary exactly), no secrets/exfiltration, no guardrail changes, no new dependencies, no obfuscation. Change class: code change — loaderkit remote-candy fetch fix-point guard (mirror of #160) + regression gate + negative control ( Placement: CORRECT — fix lives in the loaderkit scan pipeline (sdk mechanism layer); no core import, no alias file, no capability pulled inward. Checklist: All applicable rules PASS or NA (A1–A3, B4–B18). Cross-checks performed:
Comments considered:
Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
|
Reopening to trigger a fresh pull_request-event run on head 24f20df (the last pull_request run on this head carried the stale-superseded BLOCK verdict; the current body + dispatch PASS are on record). |
Review — PASSHead SHA: Security screen: PASS — no scope mismatch (diff = 1 guard + 2 tests, exactly what the body accounts for; 175+/0-, matching meta), no secrets/exfiltration, no guardrail change, no new deps, no obfuscation, no embedded instructions. Change class: code change — loaderkit fetch fix-point guard (mirror of #160) + regression gate + negative control. Placement: CORRECT — fix lives in the loaderkit scan pipeline (sdk mechanism layer); no core import, no alias file, no capability pulled inward; counterfactual stays put. Checklist: All applicable rules PASS or NA. Cross-checks:
Comments considered:
Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Summary
The batch-1 candy cutover (charly#385) revealed a second sibling-ref fabrication site in the remote-candy fetch fix-point. The #160 fix guarded
QualifyRemoteSiblingDeps(the scan-time.Resolvedqualification), butScanCandyFromLocal's fix-point enqueue leg independently fabricates the same wrong sibling ref for a root-level remote candy:The next fix-point round then scans that fabricated ref against the repo at the tag and fails the resolve with
remote candy github.com/opencharly/layer-cuda/nvidia not found at .../[email protected]/nvidia— the exactcharly check run check-marketplacebed failure at the charly#385 head.The fix (34edc0d): mirror the
#160skip in the enqueue leg — a root-level remote candy (SubPathPrefix"") has NO siblings, so a plain-name dep is left to resolve against the scan set (the local library or another downloaded remote). The pre-cutover sub-path form (SubPathPrefix "candy/") keeps the same-repo sibling enqueue unchanged.The negative control (24f20df):
TestScanCandyFromLocal_SubPathBareDepStillEnqueuedholds the candy-library form to its existing sibling enqueue, so the skip cannot degenerate into "drop all plain-name deps of remote candies".How tested (all at the current head 24f20df)
The new regression gate (PASS):
The negative control (PASS, current head):
The same tests against the pre-fix file (origin/main's scan_orchestrate.go restored; FAIL — proves the gate catches the regression, and that the fix did not overreach):
(The sub-path control passes pre-fix too — it only guards overreach.)
Full sdk suite at the current head:
(The seam-based fixture reproduces the exact bed shape: a root-level remote repo whose manifest carries a bare dep
nvidiaplus an @-pinned remote deplayer-ffmpeg; asserts the fix-point never asks the ScanRemote seam for the fabricated ref, the root materializes from the fetched repo dir, and the local bare-name dep stays present under its bare key.)Rulebook compliance
#160qualify skip in the same loaderkit scan pipeline; the sub-path form keeps its enqueuego test ./...green on the final tree (output above, current head)Change classification
fully tested and validated— changed path executed live via the unit seams + full suiteAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)