Repository navigation
fix(candy-kind)!: ship a self-contained CUE schema (no schema-less plugin) - #5
Conversation
…ugin) Every plugin MUST serve a non-empty, self-contained CUE schema over Describe (the SDK contract landed as sdk#314; there is no schema-less plugin). This plugin passed `nil` as the schemaFS and served an EMPTY schema_cue, which makes `charly` panic at process start (`loadBuiltinPluginUnits`) once charly pins the post-sdk#314 contract — the direct blocker of the charly host leg (opencharly/charly#714). - NEW candy/plugin-candy-kind/schema/candy-kind.cue — a package-less, self-contained doc schema for this plugin's served declaration surface. It references no base def, so it compiles STANDALONE and splices `base ++ plugin` at the host load gate. - plugin.go — `//go:embed schema/*.cue` + `sdk.NewMeta(calver, caps, schemaFS)` instead of `nil`; the stale "ships no schema" comment corrected. - NEW schema_serve_test.go — `TestNewMetaServesNonEmptySchema` + `TestServedSchemaSplicesOntoHostBase` (the real `base ++ plugin` splice). Refs opencharly/charly#714 · opencharly/charly#712. Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Change class: plugin Go + CUE schema (runtime/code — not docs-only, so the R10 bed evidence is applicable). Security screen: PASS — no secrets, no new/repinned modules (the Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress/obfuscation, no new or repinned module (the Comments considered: Comment 5858020388 (github-actions[bot] BLOCK) — both findings Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Eradicate the schema-less plugin exception for
plugin-candy-kind: every plugin MUST serve a non-empty, self-contained CUE schema overDescribe(opencharly/sdk#314; there is no schema-less plugin). This plugin passednilas the schemaFS and served an EMPTYschema_cue, which makescharlypanic at process start (loadBuiltinPluginUnits) once charly pins the post-sdk#314 contract — the direct blocker of the charly host leg (opencharly/charly#714).Ordered per-repo unit of the R5 cutover tracked in opencharly/charly#712.
Files (
git diff --name-only origin/main...HEAD):How tested
Module gate — fresh on the committed tree at head
d6277e4eb086ff91d9895e6723810f53c1340473(fromcandy/plugin-candy-kind):R10 — real host gate + disposable target (operator bed, opencharly/charly#712, 2026-09-27). A rebuilt
charlycompiled this plugin FROM SOURCE (worktree) via ago.work, so the real process-start host gateloadBuiltinPluginUnits()gates its served schema; then a target explicitly markeddisposable: trueran.This plugin is compiled into the bed from its worktree — the untruncated provenance line:
The real gate names THIS plugin's unit (per-unit line, 63 compiled-in units gated):
Named disposable target:
check-commands-local— akind: localdeploy explicitly markeddisposable: truein the bed project'scharly.yml(the only target the bed destroys/rebuilds). Negative control:TestServedSchemaSplicesOntoHostBasereproduces thebase ++ pluginsplice; revertingschemaFS→nilmakes both schema tests FAIL.Rulebook compliance
schema_cue(nil→schemaFS) is root-caused in R5 cutover: eradicate the schema-less / input-less plugin exception — ONE uniform plugin config+schema+codegen surface charly#712.schemaFSembed + the one sharedsdk.NewMetapath; the splice test reusesschemaconcat.feat/branch, no force-push, no directmainpush.ai.opencharly.*label payload changed.charlyfrom the worktree;go version -mshows this plugin as(devel)and<bed>/bin/charly version=2026.270.1151(pasted above).disposable: truetarget), per the operator decision on R5 cutover: eradicate the schema-less / input-less plugin exception — ONE uniform plugin config+schema+codegen surface charly#712.Change classification
analysed on a live system— the bed executes the changed path live through the real host gate.Refs opencharly/charly#712 · opencharly/charly#714.
Agent:
schema-ver-removal· sessionses_f1cc58648ffetzNWhHFWuSeKxCAssisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)