Repository navigation
fix(fleet): CandyMapKey for the root-level remote candy (the candy de-submodule cutover) - #49
Conversation
…-submodule cutover) A standalone candy repo's manifest lives at the repo ROOT (SubPathPrefix ""): the map key must be the repo path itself — appending the name doubled it (github.com/opencharly/layer-ripgrep/layer-ripgrep), so the overlay staging lookup missed and CandyCopySource dereferenced a nil layer (the check-pod-overlay bed's deploy-add panic). The sub-path form (a candy library inside a repo) is unchanged. Tests: the root-level key, the sub-path key, the local key.
Review — BLOCKHead SHA: Change class: Go contract fix ( Blocks
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
…RRENT submodule set The sdk/spec de-submodule + plugins->marketplace cutovers left the charly repo pinning only the five box/<distro> repos; TestGitClone_PopulatesAllSubmodules still probed sdk/go.mod + spec/go.mod + plugins/README.md and failed on the stale expectations (a surfaced doc-vs-reality divergence, R1). The probe set now tracks the live .gitmodules.
Review — BLOCKHead SHA: Change class: Go contract fix ( Security screen: PASS — no secrets/exfiltration, no scope mismatch (both diff files are accounted for in the body), no weakened guardrails, no new deps, no embedded directives. Blocks
Comments considered
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: Go contract fix ( Security screen: PASS — no secrets/exfiltration, no scope mismatch (both files accounted for in the body), no weakened guardrails, no new deps, no embedded directives, placement correct (spec contract module). Blocks
Comments considered
Note (non-blocking): two commits appear (fleet fix Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
…pty-prefix guard) The root-level shape is decided by the empty SubPathPrefix, not the name: a root-level remote candy with any name keys as the repo path itself.
Review — BLOCKHead SHA: Change class: Go contract fix ( Blocks
Comments considered
Note (non-blocking)The body's pasted Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: Go contract fix ( Blocks
Comments considered
Non-blocking notes
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
…overage note) TestCandyMapKey_RootLevelRemoteNamed duplicated the first test's inputs and expectation; the 3-test set covers the root-level key, the sub-path key and the local key.
|
Ground rule 3 — self-install proof is not self-blocking. This PR's only validator finding is the state of the |
Review — PASSHead SHA: Change class: Go contract fix ( Security screen: PASS — no secrets/exfiltration, no new deps, no weakened guardrails, no embedded directives, no scope mismatch (all three diff files accounted for in the body), no Placement: CORRECT — the empty-prefix guard is a pure contract value helper in the spec Checklist: All applicable rules PASS or NA. Tests are present and would fail without the fix ( CI ( Comments considered:
Non-blocking note: four commits are separable complete units (fleet fix / refs fix / test add / test trim); the intended squash collapses them — no partial/split work pattern (B15). Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Summary
The candy de-submodule cutover's root-level remote candy map key (spec-side): a standalone candy repo's manifest lives at the repo ROOT (
SubPathPrefix ""), soCandyMapKeymust key it as the repo path itself — the previous derivationRepoPath + "/" + SubPathPrefix + Namedoubled the name (github.com/opencharly/layer-ripgrep/layer-ripgrep), the overlay staging lookup missed, andCandyCopySourcedereferenced a nil layer (thecheck-pod-overlaybed's deploy-add panic — the live evidence below). The sub-path form (a candy library inside a repo) is unchanged.How tested
The new tests on the CURRENT head (pasted):
The full spec suite on the committed tree (pasted — disposable target: the spec worktree at ~/spec-candy-key, branch off main):
(The
procpackage's $TMPDIR tests need a non-/tmp checkout — the worktree moved to ~/spec-candy-key.)The live defect the fix addresses (pasted — the check-pod-overlay bed's deploy-add, BEFORE the fix):
The overlay's
COPYsource lookup keyedgithub.com/opencharly/layer-ripgrep/layer-ripgrep(the doubled name) against the scan map keyed by the bare refgithub.com/opencharly/layer-ripgrep— a miss → nil layer. With this fix the key matches and the overlay staging resolves.Rulebook compliance
refssubmodule-probe test — the sdk/spec de-submodule + plugins→marketplace cutovers left the charly repo pinning only box/*, and the test's sdk/spec/plugins probes failed (commit6decb23fixes the probe set to the live.gitmodules)Change classification
charly/pr-validator; tag-on-mergeAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)