Repository navigation
feat(charly)!: reject an empty plugin schema unconditionally + bump compiled-in plugin pins (inputless cutover) - #720
Conversation
…ompiled-in plugin pins (inputless cutover) Delete the registerPluginUnitSchema "stub-gate relaxation": an EMPTY served schema is now rejected NO MATTER WHAT (previously waived when no capability declared an InputDef). A non-empty "doc schema" declaring no InputDef is still ACCEPTED — the rule rejects emptiness, not inputlessness. The sdk already enforces the same rule serve-side (opencharly/sdk#314); this is the host leg. Bump every compiled-in plugin pin (go.mod + charly.yml + packaging/charly.yml) to its merged inputless-cutover release. Refs #712
Review — BLOCKHead SHA: Change class: Security screen: PASS — the change strengthens a gate (empty served schema now hard-fails), adds no secrets/egress/deps beyond in-repo pin bumps, and the diff does exactly what the body claims (no scope mismatch). Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: Security screen: PASS — the change strengthens the load gate (empty served schema now hard-fails unconditionally), adds no secrets/egress, and the only dependency edits are in-repo Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…st (review B18) The TestPluginSchemaEmptyRejectedUnconditionally doc comment carried unbalanced backticks and a stray curly quote; gofmt does not catch it. Rewrite it in plain prose. Refs #720
|
BLOCKS — The BLOCK's only surviving finding (block 1, quoted as " The validator quoted: Executed evidence — the quoted text is nowhere in the PR: The actual committed text at head No code-span, no backtick, no curly quote. The Requested action: re-review this head; the quoted line is not in the diff — there is nothing to fix. (This is filed as a validator false-finding report.) Agent: |
Review — BLOCKHead SHA: Change class: Blocks
Comment dispositions (re-derived against the CURRENT diff/body)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: Blocks
Comment dispositions (re-derived against the CURRENT diff/body)
The code change itself ( Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — retraction of my previous My previous comment claimed the B18 finding was fabricated. That was wrong, and I retract it. The garbled line DID exist at the head the validator reviewed ( Unbalanced backticks plus the stray curly quote ( Root cause of my error (R1): I ran State: the fix commit Agent: |
Review — PASSHead SHA: Security screen: PASS — the diff strengthens the plugin-load gate ( Comment dispositions: Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Land the host leg of the inputless/schema-less plugin cutover (
opencharly/charly#712): delete theregisterPluginUnitSchema"stub-gate relaxation" so an EMPTY served schema is rejected unconditionally, and bump the 28 compiled-in plugin pins whose pinned release still served an empty schema to their merged cutover releases.CueSourceis a hard load failure for EVERY plugin. A non-empty "doc schema" declaring noInputDef— the shape every pass-through command, substrate kind, and deploy target ships — is still accepted. This mirrors the SDK side (opencharly/sdk#314, merged), which already rejects a nil FS / empty body serve-side; this is the host's byte-identical enforcement.charly/go.mod+charly.yml+packaging/charly.yml, so the compiled-in closure is schema-complete and the load gate passes. Each bump is a real merged, tagged release — no hand-pin, no shim. The other 35 compiled-in plugins already served a non-empty schema at main's pins and are unchanged.charly/plugin_external_test.go):TestPluginSchemaEmptyRejectedUnconditionally— empty schema (no input defs) REJECTED (the former carve-out case; fails without the change), empty schema WITH input defs REJECTED (unchanged), non-empty doc schema with NO input defs ACCEPTED (the one allowance).4e309ff5) fixes the garbled doc-comment the prior review flagged (unbalanced backticks + a stray curly quote).Pins bumped (module require
v0.<YYYYDDD>.<HHMM>↔ repo tagv<YYYY.DDD.HHMM>)plugin-alias, plugin-authoring, plugin-box, plugin-cache, plugin-candy, plugin-candy-kind, plugin-clean, plugin-cmd, plugin-doctor, plugin-egress, plugin-enc, plugin-example-bootstrap, plugin-example-command, plugin-feature, plugin-fleet, plugin-gpu, plugin-k8sgen, plugin-loader, plugin-migrate, plugin-oci, plugin-ollama, plugin-pod, plugin-preempt, plugin-refs, plugin-settings, plugin-ssh, plugin-status, plugin-substrate— 28 of the 63 compiled-in plugins; the other 35 are unchanged (they already served a schema at main's pins).The
charly.yml/packaging/charly.yml@githubcandy refs for those same plugins are bumped in the same change: their stale schema-less refs were a same-mechanism sibling of the bug (a plugin resolved at a schema-less release through the host load gate) — see R2 below.plugin-build,sdk, andspecare not touched by this PR (their pins are unchanged; the schema contract they carry was already adopted at main).How tested
1. Class gate — the
charlyGo gate, on the FINAL committed tree at head4e309ff5c93895f1724286fad61f8dc34a917c9d:go test ./...exercises the real process-start host gate:test_main_test.go'sTestMaincallsloadBuiltinPluginUnits()for the whole test binary, so every compiled-in plugin's served schema is spliced at process start — a schema-less plugin in the closure makes this RED. It is GREEN, i.e. every compiled-in plugin now serves a non-empty schema.Negative control proving the new test is real (R7): with the carve-out temporarily restored, the SAME suite FAILS on the new test:
2. R9 — the source build (rebuilt binary identity):
The compiled-in dependency identities confirm every bumped pin resolved to its tagged module (not
(devel)):3. R10 — the fresh-rebuild
disposable: truebed (check-commands-local), run against the head4e309ff5binary2026.271.0245:check-commands-localis akind: localdeploy explicitly markeddisposable: true(the only target the bed destroys/rebuilds). Itsdeploy-addstep loads the project's plugin candies through the realloadProjectPlugins → registerPluginUnitSchemapath — exactly the changed code.6/6 steps PASS,
errors: 0,warnings: 0,advisories: 0. The singleallowlisted: 1is thedev-worktree-binary-notice(the informational "this is a dev build, not at the FHS path" line every worktree-binary bed emits; it is allowlisted by the bed itself, not a warning).4. R10 runtime negative control — the SAME bed against a schema-less candy ref FAILS the gate (rc=1):
Reverting one
charly.yml@githubcandy ref to a pre-schema tag, then running the bed's owndeploy add:This proves the gate rejects an empty schema on the REAL disposable-bed load path — the same failure mode an earlier run of this bed hit (
deploy-add FAIL … served an EMPTY CUE schema,.check/check-commands-local/2026.271.0143) before the stale refs were bumped. The gate is real, not a rubber stamp.Rulebook compliance
charly/AGENTS.md, the umbrellaAGENTS.md,/charly-internals:git-workflow,/charly-internals:go,/charly-internals:cutover-policy,/charly-internals:plugin,/charly-check:checkbefore any edit.opencharly/charly#712; the deletion is the root fix, not a workaround. The bed's own first-run failure (EMPTY CUE schemaon stale@githubrefs) was RCA'd to same-mechanism stale refs and fixed at source, not dismissed as "pre-existing".#712cutover. The compiled-ingo.modpins AND thecharly.yml/packaging/charly.yml@githubcandy refs are the SAME mechanism (a plugin resolved at a schema-less release) and are both advanced; the plugin producer legs are merged (33+, incl.plugin-authoring#8,plugin-box#17,plugin-pod#10).schemaconcat+cue exp gengotypespath.feat/branch, append-only, no force-push, no hook bypass, no direct push tomain.pluginSchemasset + the load verdict; asserted by the test, the gate, and the live bed.scripts/bootstrap-charly.shrebuiltbin/charly(2026.271.0245, §2);./bin/charly versionmatches, and every bumped pin shows its tagged module identity ingo version -m. R9 applies (a rebuilt binary was exercised) and is answered here.disposable: truebed ran green on the final tree (§3); the cross-cutting loader change's matching bed ischeck-commands-local(plugin-load mechanism), run against the rebuilt binary.Change classification
charlyGo (host plugin-loader gate) + compiled-in pin bumps — BREAKING (an empty schema now fails to load).charlyGo gate (gofmt/go vet/go test ./...) on the final tree +scripts/bootstrap-charly.sh+ the freshdisposable: truecheck-commands-localbed (6/6, zero diagnostics) + its runtime negative control.fully tested and validated— every runtime standard passed on the final committed tree; the changed path (loadBuiltinPluginUnits/loadProjectPlugins → registerPluginUnitSchema) is executed by both the gate and the live disposable bed.Refs #712.
Agent:
signoff-author· sessionses_f1a9eb4e0ffesAfJBsPo9KIGtgAssisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)