Repository navigation
fix: invoke the validation gate by its full capability identity - #16
Conversation
The pre-build validation gate is the NESTED command capability `command:validate:box` (`charly box validate`). A nested command is never reachable by its bare word — the provider registry keys it at `command:<word>:<parent>` — so the peer dispatch must name the parent, exactly as the CLI grammar does. Pass `CommandParent: "box"` on the InvokeProvider call. Without this the leg resolves nothing once charly makes the parent part of the capability identity.
Review — BLOCKHead SHA: Change class: code/config — Go plugin behavior fix in Security screen: PASS (no T1–T4 finding — the diff is exactly the one-line Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: code/config — Go plugin behavior fix in Blocks
Comment intake
Note (B15): 3 non-changelog commits ( Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…mp the schema head The candy-manifest gate (`charly box validate`) runs at the charly this repo's CI pins. That gate consults the CUE `#PluginCapability`, so it must run at a charly whose grammar accepts this repo's three-segment `command:<word>:<parent>` declarations — charly `v2026.269.0556`, which adopted spec `v0.2026269.138` (the three-segment grammar). The previous pin (`v2026.238.1242`) predates it and rejected the manifest. The repo project's `version:` stamp is migrated to that charly's schema head (`2026.261.1747`, via `charly migrate`), so it is acceptable to the pinned validator. Verified locally with the pinned binary: ``` $ charly box validate charly box validate: OK — checked 1 candy, 7 distros, 7 builders; 0 warnings, 0 errors ```
Review — BLOCKHead SHA: Change class: code/config — Go plugin behavior fix ( Security screen: PASS — the diff is the one-line Blocks
Note (B15): 4 commits ( Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — the diff is a one-line Checklist: All applicable rules PASS or NA.
Comment intake:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
The pre-build validation gate is the nested command capability
command:validate:box(
charly box validate). A nested command is never reachable by its bare word — once charlymakes the parent part of the capability identity, the provider registry keys it at
command:<word>:<parent>— so the peer dispatch must name the parent, exactly as the CLIgrammar does.
validateProjectLegnow passesCommandParent: "box"on itsInvokeProvidercall.Without this the leg resolves nothing after charly's identity change;
sdk.InvokeProviderOptsgains theCommandParentfield for exactly this.Pins: sdk → merged
v0.2026269.145; spec → mergedv0.2026269.138(a required transitiveof the sdk bump); the CI candy-gate pin → charly
v2026.269.0556(whose adopted specgrammar accepts the three-segment form), with the repo project's
version:stamp migratedto that binary's schema head.
How tested
Coverage that fails without the change (in this repo)
validate_leg_test.go—TestValidateProjectLeg_DispatchesNestedCommandIdentity:a stub
ExecutorServiceClientrecords theInvokeProviderRequestand returns anerror-severity diagnostic, so the test asserts BOTH the dispatch identity AND the
diagnostics decode:
It fails without the change: on the pre-change code the recorded request's
command_parentis empty, so theboxassertion fails.Gates (final tree)
R2/R5 sweep — the bare-word call is gone
Live R10 — the gate on a fresh rebuild of the assembled cutover
The consumer charly branch (
feat/command-parent-identity) makes the parent the registryidentity; its
check-commands-localdisposable bed ran with this plugin served from itsin-dev tree (
go version -m bin/charly→plugin-build ... (devel)). Itsbox-new-validate-generatestep drivescharly box validate, which dispatches this exactleg to the box-nested provider:
The
[update]step is the fresh-rebuild re-verification.Rulebook compliance
/charly-internals:plugin; landing:/charly-internals:git-workflow.go vetclean;charly box validatereports 0 warnings.no bare-word call to a nested command remains (pasted above).
InvokeProviderOpts, not a bespoke parameter.feat/command-parent-identity, no force-push; pins onlymerged refs (
sdk v0.2026269.145, specv0.2026269.138, charlyv2026.269.0556).request; the live
box validatepath ran on the consumer's disposable bed.spec.Diagnosticsis decoded andrendered as the user-visible verdict text by the same code path as before.
from the assembled tree;
go version -mconfirms this plugin is the in-dev(devel)source.updatestep is the fresh-rebuild re-verification on thefinal tree.
Change classification
go build/go vet/go test+charly box validate+ the livecheck-commands-localR10 bed on the consumer branch.fully tested and validated— the corrected dispatch is assertedin-repo and ran live on a fresh rebuild.
Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated)