Repository navigation
feat(loaderkit): root-level remote candy name derivation (the candy de-submodule cutover) - #159
Conversation
…e-submodule cutover) A standalone candy repo's manifest lives at the repo ROOT: the bare ref IS the repo path (no /candy/<name> sub-path). ScanRemoteCandy now treats a ref that equals the repo path as an empty sub-path (the manifest at the repo root) and derives the candy name from the repo's own name (path.Base(repoPath)). The sub-path form (a candy library inside a repo) is unchanged. Tests: the root-level derivation + the sub-path regression.
Review — BLOCKHead SHA: Change class: sdk mechanism change (loaderkit remote-candy scan) + tests Blocks
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
…r B3) A ref NOT under repoPath (a typo'd repo path) keeps the full ref as the sub-path and fails the candyDir stat — never silently scans the repo root. Test: the foreign-ref hard error.
Review — BLOCKHead SHA: Change class: sdk mechanism change (loaderkit remote-candy scan) + tests Placement: CORRECT — the scan mechanism stays in sdk/loaderkit (a kind-blind kit); the name derivation is a ref-shape rule inside that mechanism; no core imports, no alias-file growth, no Comment intake:
Blocks
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: sdk mechanism change (loaderkit remote-candy scan) + tests Blocks
Comment intake
PlacementPlacement: CORRECT — the scan mechanism stays in Non-blocking notes
Required fix
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: sdk mechanism change (loaderkit remote-candy scan) + tests Placement: CORRECT — the scan mechanism stays in Security screen: PASS — no secrets, no new deps, no guardrail changes, description↔diff scope matches. Blocks
Non-blocking: B15 — three commits (feat + validator-B3 fix + test assertion); the intended squash collapses them, no partial/split-work pattern in the final tree. CI Comment intake
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no scope mismatch, no secrets/exfiltration, no guardrail weakening, no supply-chain change; PR content contains no embedded directives. Comment intake (all three prior reviews):
Checklist: All applicable rules PASS or NA — A1 body complete with executed-output evidence and correct Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Summary
The candy de-submodule cutover's root-level remote candy support (sdk-side): a standalone candy repo's manifest lives at the repo ROOT, so the bare ref IS the repo path (no
/candy/<name>sub-path).ScanRemoteCandynow:TrimPrefixleft the full ref as the sub-path and the scan looked forrepoDir/github.com/opencharly/ripgrep), andpath.Base(repoPath)) when the sub-path is empty.The sub-path form (a candy library inside a repo — the pre-cutover shape) is unchanged.
How tested
The new tests on the CURRENT head (pasted — all three, incl. the foreign-ref guard test):
The full sdk suite (pasted — disposable target: the sdk worktree at /tmp/sdk-name-deriv, fresh branch off main):
Rulebook compliance
/charly-internals:plugin(the plugin/provider model — the remote candy scan is the plugin-loading mechanism),/charly-internals:go(the Go module discipline),/charly-internals:install-plan(N/A — no deploy wire types touched). The change honors the plugin skill's placement doctrine: the scan mechanism stays in sdk/loaderkit, the name derivation is a pure ref-shape rule with testsChange classification
charly/pr-validator; tag-on-mergeAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)