Repository navigation
fix(plugin): compose the kind value gate and provider-declared fold - #1122
Conversation
## Summary `validateKindValueCUE` gated every substrate/candy/host-value kind against `spec.KindValueDefs[disc]` looked up in `sharedCueSchema()` — the **base schema alone**. A definition a plugin declares lands in `pluginSchemas.unified` (**base & every served plugin unit**), a different `cue.Value`, so the moment a kind body left `spec/schema` the gate would stop finding its def and silently stop gating. `runPluginKind` chose the host-value fold from the same host-side list (`spec.KindValueDefs` membership). Now: - **The gate reads the composed unit.** `kindValueDefValue` resolves the def against `pluginSchemas.unified` (via the new `composedSchema()` snapshot), falling back to the base only while nothing is composed — and, when the def is in neither the base nor the currently composed units, materializes the builtin units once (`sync.Once`) and retries the composed lookup. - **The fold follows the shape the provider declares.** `kindValueDefPath(prov, disc)` asks the provider first: a `class:kind` capability naming a `#<Word>Value` body def in its `InputDef` is host-value-gated; `spec.KindValueDefs` is only the compatibility fallback for a body that has not moved. `capMeta` now carries that declared `InputDef` (`DeclaredKindInputDef`), so routing and gating read the same declaration, in both placements, with no wire/contract change. Substrate routing (`DeployTraits`) and the candy factory (`CandyKindCarrier`) were already provider-declared and are untouched. No kind moves here. Every kind whose body still lives in the base resolves the **same def it always did**, and the composed value is measured **equal to the base for all 11 gated kinds**. This is `TODO.md` 2.1 / opencharly/spec#304 unit 0 — the gate half. Its prerequisite (per-unit CUE composition, #1115) is already on `main` (`git merge-base --is-ancestor 8403fc1 origin/main` → YES). ### Files | File | Change | |---|---| | `charly/provider_kind_invoke.go` | `kindValueDefPath` + `kindValueDefValue` + `kindInputDefCarrier`; the gate reads the composed unit; the fold routes on the provider's declared shape | | `charly/plugin_loader.go` | `composedSchema()` — the composed-unit snapshot accessor | | `charly/plugin_provider_common.go` | `capMeta.inputDef` + `DeclaredKindInputDef()`; `buildCapMeta` lifts the declared `input_def` | | `charly/cue_schema.go` | doc comment: the gate reads the composed value | | `charly/cue_kinds_corpus_test.go` | the corpus test selects and judges through the provider-declared path | | `charly/kind_value_composed_test.go` | new: the plugin-declared def path, the routing contract, the composed==base measurement | | `charly/kind_value_corpus_sweep_test.go` | new: opt-in real-corpus sweep with a base-only and a composed arm | | `.agents/skills/plugin/references/authoring-recipes.md` | the rich-value mechanism sentence follows the new source | | `.agents/skills/go/references/source-map.md` | the gate's def source described accurately in the file map | ## How tested ### 1. What the gate reads, before → after ```console $ grep -n "defPath, ok := kindValueDefPath\|def, err := kindValueDefValue\|composedSchema()" charly/provider_kind_invoke.go charly/plugin_loader.go charly/provider_kind_invoke.go:431: defPath, ok := kindValueDefPath(prov, pn.Disc) charly/provider_kind_invoke.go:435: def, err := kindValueDefValue(defPath) charly/provider_kind_invoke.go:445: if composed, ok := composedSchema(); ok { charly/plugin_loader.go:258:func composedSchema() (cue.Value, bool) { ``` Before: `defPath, ok := spec.KindValueDefs[pn.Disc]` + `def := sharedCueSchema().LookupPath(...)`, and `runPluginKind` routed on `if _, gated := spec.KindValueDefs[pn.Disc]; gated`. ### 2. Equality for every unmoved kind — composed value == base value ```console $ TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci go test ./charly/ -run TestKindValueDefs_ComposedEqualsBase -v -count=1 === RUN TestKindValueDefs_ComposedEqualsBase kind_value_composed_test.go:158: android #AndroidValue: composed == base kind_value_composed_test.go:158: candy #CandyValue: composed == base kind_value_composed_test.go:158: kubernetes #KubernetesValue: composed == base kind_value_composed_test.go:158: kubevirt #KubevirtValue: composed == base kind_value_composed_test.go:158: local #LocalValue: composed == base kind_value_composed_test.go:158: pod #PodValue: composed == base kind_value_composed_test.go:158: task #TaskValue: composed == base kind_value_composed_test.go:158: vm #VmValue: composed == base kind_value_composed_test.go:158: firecracker #FirecrackerValue: composed == base kind_value_composed_test.go:158: kindcluster #KindclusterValue: composed == base kind_value_composed_test.go:158: pipeline #PipelineValue: composed == base --- PASS: TestKindValueDefs_ComposedEqualsBase (0.00s) ``` 11 of 11 gated defs, compared with `cue.Value.Equals` in a process where `TestMain` registered the 63 builtin units. (`Subsume` is false both ways even for equal CUE values carrying disjunctions, so `Equals` is the measurement — and the test pins it as a regression guard.) ### 3. Zero verdicts moved — real corpus, before vs after The committed sweep (`charly/kind_value_corpus_sweep_test.go`) judges every entity body of a gated kind through the production gate, with a **base-only arm** that reproduces the pre-change lookup exactly (`CHARLY_KIND_VALUE_GATE=base`), over the pinned umbrella tree. ```console $ export TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci CHARLY_CORPUS_ROOT=/home/atrawog/Sync/Atrapub/lo/dsh/opencharly $ CHARLY_KIND_VALUE_GATE=base CHARLY_CORPUS_OUT=/tmp/kv-base.txt go test ./charly/ -run TestKindValueCorpusSweep -v -count=1 kind_value_corpus_sweep_test.go:199: gate=base: judged 2004 entity bodies (1646 files unparsable) -> /tmp/kv-base.txt kind_value_corpus_sweep_test.go:201: android 9 kind_value_corpus_sweep_test.go:201: candy 1025 kind_value_corpus_sweep_test.go:201: kindcluster 24 kind_value_corpus_sweep_test.go:201: kubernetes 23 kind_value_corpus_sweep_test.go:201: kubevirt 25 kind_value_corpus_sweep_test.go:201: local 203 kind_value_corpus_sweep_test.go:201: pipeline 12 kind_value_corpus_sweep_test.go:201: pod 250 kind_value_corpus_sweep_test.go:201: task 47 kind_value_corpus_sweep_test.go:201: vm 386 $ CHARLY_KIND_VALUE_GATE=composed CHARLY_CORPUS_OUT=/tmp/kv-composed.txt go test ./charly/ -run TestKindValueCorpusSweep -v -count=1 kind_value_corpus_sweep_test.go:199: gate=composed: judged 2004 entity bodies (1646 files unparsable) -> /tmp/kv-composed.txt kind_value_corpus_sweep_test.go:201: android 9 kind_value_corpus_sweep_test.go:201: candy 1025 kind_value_corpus_sweep_test.go:201: kindcluster 24 kind_value_corpus_sweep_test.go:201: kubernetes 23 kind_value_corpus_sweep_test.go:201: kubevirt 25 kind_value_corpus_sweep_test.go:201: local 203 kind_value_corpus_sweep_test.go:201: pipeline 12 kind_value_corpus_sweep_test.go:201: pod 250 kind_value_corpus_sweep_test.go:201: task 47 kind_value_corpus_sweep_test.go:201: vm 386 $ diff -u /tmp/kv-base.txt /tmp/kv-composed.txt; echo "diff rc=$?" diff rc=0 $ sha256sum /tmp/kv-base.txt /tmp/kv-composed.txt 117afcac27674e333147f86ea91b97c4209ebda545960b2d236ec01baa52029c /tmp/kv-base.txt 117afcac27674e333147f86ea91b97c4209ebda545960b2d236ec01baa52029c /tmp/kv-composed.txt $ for f in /tmp/kv-base.txt /tmp/kv-composed.txt; do echo "$f judged=$(grep -vc '^PARSE-ERR' $f) ok=$(grep -c '|OK$' $f) fail=$(grep -c '|FAIL ' $f)"; done /tmp/kv-base.txt judged=2004 ok=1984 fail=20 /tmp/kv-composed.txt judged=2004 ok=1984 fail=20 ``` Zero lines differ. The 20 FAILs are the **design negative fixtures** (`design/negative/*`), the retired-pipeline migration fixtures (`charly/charly/testdata/migrate-retired-pipeline`, `plugin-herdr/…`, `pod-herdr/…`) and `plugin-migrate` testdata — files authored to fail; each carries the identical verdict on both sides. The 1646 unparsable files are CI workflows, compose files and other non-charly YAML (identical set on both sides; each is written as `PARSE-ERR <path>` and those lines diff clean too). Corroboration on the **actual pre-change code**: a worktree at `origin/main` (`152dc845`) ran the same harness with only the gate call replaced (`validateKindValueCUE(pn)` and `spec.KindValueDefs[pn.Disc]` selection instead of `validateKindValueCUE(pn, prov)` / `kindValueDefPath`); both trees produced the same `117afcac27674e333147f86ea91b97c4209ebda545960b2d236ec01baa52029c`. ```console $ git -C /home/atrawog/Sync/Atrapub/lo/dsh/opencharly/charly worktree add --detach \ /home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.worktrees/dsh-kindvalue-before/charly origin/main $ # the harness copied in, with the pre-change gate call as shown above $ CHARLY_CORPUS_ROOT=/home/atrawog/Sync/Atrapub/lo/dsh/opencharly CHARLY_CORPUS_OUT=/tmp/corpus-before.txt \ go test ./charly/ -run TestZZCorpusSweep -v -count=1 zz_corpus_sweep_test.go:126: judged 2004 entity bodies (1646 files unparsable) -> /tmp/corpus-before.txt $ sha256sum /tmp/corpus-before.txt /tmp/corpus-after.txt 117afcac27674e333147f86ea91b97c4209ebda545960b2d236ec01baa52029c /tmp/corpus-before.txt 117afcac27674e333147f86ea91b97c4209ebda545960b2d236ec01baa52029c /tmp/corpus-after.txt ``` ### 4. The new path executes — a kind body registered by a PLUGIN `TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit` registers a unit serving `#GateprobeValue`, asserts the **base cannot see it**, then shows the gate accepting a conforming body and rejecting a typo'd field through it. ```console $ TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci go test ./charly/ -run 'TestKindValueGate_|TestKindValueDefPath_' -v -count=1 === RUN TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit --- PASS: TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit (0.03s) === RUN TestKindValueDefPath_FollowsTheProviderDeclaredShape --- PASS: TestKindValueDefPath_FollowsTheProviderDeclaredShape (0.00s) ``` ### 5. Prove it can fail (planted break, red on assertions, restored byte-identical) Plant A — the def lookup reverted to the base alone: ```console $ go test ./charly/ -run TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit -v -count=1 === RUN TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit kind_value_composed_test.go:84: a conforming gateprobe body must pass the plugin-declared def: kind value def #GateprobeValue not found: field not found: #GateprobeValue --- FAIL: TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit (0.03s) FAIL ``` Plant B — `kindValueDefPath` reduced to the host map fallback: ```console $ go test ./charly/ -run TestKindValueDefPath_FollowsTheProviderDeclaredShape -v -count=1 === RUN TestKindValueDefPath_FollowsTheProviderDeclaredShape kind_value_composed_test.go:109: a provider declaring a #<Word>Value body def must be host-value-gated; got "",false --- FAIL: TestKindValueDefPath_FollowsTheProviderDeclaredShape (0.00s) FAIL ``` Both are assertion failures, not build errors. Restored on the committed tree: ```console $ sha256sum charly/provider_kind_invoke.go 3b567c004280c19344cfe7b1be490cde9fd65e26f5f16a680cbf876ab9e564de charly/provider_kind_invoke.go $ cmp /tmp/pki.pristine charly/provider_kind_invoke.go && echo "cmp identical" cmp identical $ git status --short (empty) ``` ### 6. Gates run (the ones CI runs, on the final tree) ```console $ TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci go test ./charly/... # ci.yml "Test" ok github.com/opencharly/charly/charly 290.037s ok github.com/opencharly/charly/charly/internal/pluginsgen 121.574s $ for d in tools/*/; do ( cd "$d" && GOWORK=off go test -count=1 ./... ); done # ci.yml "Test tools modules" ok github.com/opencharly/charly/tools/gomod-canonical 0.003s ok github.com/opencharly/charly/tools/ledger-validate 0.006s (generate-packages / golden-cloudinit / golden-compile: no test files) $ gofmt -l charly tools # ci.yml "gofmt" (empty) $ cd charly && GOTOOLCHAIN=go1.26.8 golangci-lint run ./... # ci.yml "golangci-lint" (v2.13.2) 0 issues. $ for d in tools/*/; do ( cd "$d" && GOWORK=off golangci-lint run ./... ); done 0 issues. (×5 modules) $ TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci go vet ./charly/... # charly/AGENTS.md core gate (rc=0) $ ./scripts/bootstrap-charly.sh && ./bin/charly version # R9 bootstrap-charly: built ./bin/charly (2026.315.2219) 2026.315.2219 $ ./bin/charly box validate # live load, real repo charly box validate: OK — checked 604 candies, 122 boxes, 49 deploys, 7 distros, 7 builders; 0 warnings, 0 errors $ ./bin/charly box validate # fixture with a typo'd vm field — the gate still rejects charly: error: command "validate": validation error: …/charly.yml:doc0: node "myvm": vm: 2 errors in empty disjunction: bogusfield: field not allowed: node myvm:1:3 ``` `golangci-lint` is v2.13.2 built with `go1.26.8` (`GOTOOLCHAIN=go1.26.8`; the host's `go1.27.3-X:nodwarf5` breaks its export-data reader). The pin workflows are **N/A by trigger**: `pin-currency.yml` and `pin-verb-scope.yml` are path-filtered to `charly.yml`, `AGENTS.md`, `.gitmodules`, `box/**`, `charly/go.mod` and their own scripts — this diff touches none of them. Evidence fence (`dsh --version` 0.2.1-rc.2; session `39afaf4c-98da-4970-9bb4-c94019bd7ffb`, a delegated subagent of `session-f8a0eb3b-2677-47a9-8139-49b1ba39440c`; model `ollama-cloud/deepseek-v4.1-flash`): ``` session: 39afaf4c-98da-4970-9bb4-c94019bd7ffb (delegated from session-f8a0eb3b-2677-47a9-8139-49b1ba39440c) harness: DeepSeek Harness (dsh) 0.2.1-rc.2 model: ollama-cloud/deepseek-v4.1-flash tree: .worktrees/dsh-kindvalue-composed/charly @ 152dc84 + this commit ``` ## Rulebook compliance - **R0 (skills first).** Loaded before the first edit/git action: `plugin` (the plugin-host contract this gate lives in), `go` (charly source/build), `layer` (the dispatcher's candy/schema row), `go-quality` (lint invocation), `git-workflow` (before any git/PR action); `strict-policy` loaded for the R1 dispositions below. Every row the dispatcher selects for a core-Go + plugin-host change was loaded. - **R1 (RCA every anomaly).** Three anomalies, each RCA'd: 1. The brief's premise "unit 0 is outstanding" is half-true — its **prerequisite** had already landed (`git merge-base --is-ancestor 8403fc1… origin/main` → YES; `git grep schemacompose origin/main -- charly` → plugin_loader.go:20). Measured before editing; the scope was already the right one (the gate half), so no action beyond recording it. 2. My first corpus arm differed from the second in **error text only** (`(and 3 more errors)` vs the detailed list): the oracle rendered `%v` while the gate renders `cue/errors.Details`. RCA: the oracle did not reproduce the gate's diagnostic rendering. Fixed by using the same renderer, then re-measured both arms → byte-identical. 3. The `.agents` skill prose still described the def as only "KEPT in the base". Fixed in this change (claim-keyed sweep below), not filed. No warnings in any gate. - **R2 (no duplication).** One accessor (`composedSchema`), one resolver (`kindValueDefPath`) used by both the gate and the fold routing; the def map is not restated anywhere. - **R3 (no workarounds).** No sleeps/retries. The builtin-unit materialization in the miss path is a `sync.Once` one-shot (the same lazy gate the flat plugin-kind path already pays), not a retry. - **R4 (product before prose).** No documented command changed; the skill prose was corrected with the mechanism it describes. - **R5 (no legacy; claim-keyed sweep).** No identifier was deleted, but the claim "the gate reads the KEPT def from the base" was updated everywhere it appears on this surface: ```console $ grep -rn "KindValueDefs\|sharedCueSchema\|validateKindValueCUE" --include=*.go charly/ | grep -v _test charly/provider_kind_invoke.go:71: … base's spec.KindValueDefs is only the compatibility fallback … charly/provider_kind_invoke.go:200: … base's spec.KindValueDefs only as the compatibility fallback … charly/provider_kind_invoke.go:364: … kindValueDefPath … the base's spec.KindValueDefs while the body still lives there … charly/provider_kind_invoke.go:412: … the `#<Word>Value` shape spec/schema/init.cue derives spec.KindValueDefs from … charly/provider_kind_invoke.go:426: … falls back to the base's spec.KindValueDefs … charly/provider_kind_invoke.go:437: def, ok := spec.KindValueDefs[disc] charly/plugin_loader.go:258: func composedSchema() (cue.Value, bool) { charly/cue_schema.go:6: … read from the COMPOSED base & units value … ``` The only remaining `spec.KindValueDefs` reads are the documented fallback and the test selection. The two `.agents` references were corrected in the same commit. - **R6 (preserve work, git safety).** Worktree created off fresh `origin/main` (`152dc845`) in its own branch; no unrelated file touched; no force-push, no direct push to `main`. - **R7 (prove behavior).** Coverage fails without the change (plant A/B, red on assertions); the changed path ran live over 2004 real entity bodies with retained output, and the CLI still rejects a typo'd `vm:` field. No emitted-artifact boundary is involved. - **R8 (live services).** N/A — no service boundary in this change. - **R9 (binary = source).** Worktree-local build at the branch: `./bin/charly version` → `2026.315.2219`; no new runtime OS dependency, so `packaging:` is untouched. - **R10 (fresh disposable proof).** **Not run.** This change touches the in-process loader, not a deploy/runtime surface; the campaign brief's proof standard for unit 0 is the corpus + unit + CI gate above, and the repo-declared core gate (`go test`, `go vet`, R9 build) passed on the final tree. If a `charly check run` bed is required for landability, that needs an operator call — stated here rather than implied. ## Change classification - **Class:** core Go (loader/kind gate + test/skill prose). No CUE schema, no wire type, no pin, no gitlink, no `design/*.tsv`, no `TODO.md`. - **Breaking change + rollback:** no authored surface changes, so the subject carries no `!` and no config/wire/CLI consumer breaks: every kind resolves the same def, proven by the 2004-body sweep (byte-identical verdict lists before/after). If this gate's new input path itself breaks, a consumer sees a **false reject** (`<kind>: field not allowed` on a body that used to load) or a **silent false accept** (a typo no longer rejected). Rollback is a revert of this one commit — it carries no pins, schema or wire contract, so there is nothing to migrate. If a moved kind's plugin is rolled back while charly is not, the gate fails loud with `kind value def #<Word>Value not found` rather than skipping. ## Filed issues None. The findings this round produced were fixed here (the skill-prose claim, the corpus-oracle rendering); the 20 corpus FAILs are files authored to fail (`design/negative/*`, migration testdata), unaffected by this change. The chain that consumes this unit is tracked once, in opencharly/spec#304. *Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)*
Review — BLOCKHead SHA: Change class: core Go (in-process loader / kind-value gate + tests + skill prose). Behavior-preserving claim verified from the diff; no CUE/wire/pin/gitlink changes. Blocks
Notes (non-blocking, for the author)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
## Summary `validateKindValueCUE` gated every substrate/candy/host-value kind against `spec.KindValueDefs[disc]` looked up in `sharedCueSchema()` — the **base schema alone**. A definition a plugin declares lands in `pluginSchemas.unified` (**base & every served plugin unit**), a different `cue.Value`, so the moment a kind body left `spec/schema` the gate would stop finding its def and silently stop gating. `runPluginKind` chose the host-value fold from the same host-side list (`spec.KindValueDefs` membership). Now: - **The gate reads the composed unit.** `kindValueDefValue` resolves the def against `pluginSchemas.unified` (via the new `composedSchema()` snapshot), falling back to the base only while nothing is composed — and, when the def is in neither the base nor the currently composed units, materializes the builtin units once (`sync.Once`) and retries the composed lookup. - **The fold follows the shape the provider declares.** `kindValueDefPath(prov, disc)` asks the provider first: a `class:kind` capability naming a `#<Word>Value` body def in its `InputDef` is host-value-gated; `spec.KindValueDefs` is only the compatibility fallback for a body that has not moved. `capMeta` now carries that declared `InputDef` (`DeclaredKindInputDef`), so routing and gating read the same declaration, in both placements, with no wire/contract change. Substrate routing (`DeployTraits`) and the candy factory (`CandyKindCarrier`) were already provider-declared and are untouched. No kind moves here. Every kind whose body still lives in the base resolves the **same def it always did**, and the composed value is measured **equal to the base for all 11 gated kinds**. This is `TODO.md` 2.1 / opencharly/spec#304 unit 0 — the gate half. Its prerequisite (per-unit CUE composition, #1115) is already on `main` (`git merge-base --is-ancestor 8403fc1 origin/main` → YES). ### Files | File | Change | |---|---| | `charly/provider_kind_invoke.go` | `kindValueDefPath` + `kindValueDefValue` + `kindInputDefCarrier`; the gate reads the composed unit; the fold routes on the provider's declared shape | | `charly/plugin_loader.go` | `composedSchema()` — the composed-unit snapshot accessor | | `charly/plugin_provider_common.go` | `capMeta.inputDef` + `DeclaredKindInputDef()`; `buildCapMeta` lifts the declared `input_def` | | `charly/cue_schema.go` | doc comment: the gate reads the composed value | | `charly/cue_kinds_corpus_test.go` | the corpus test selects and judges through the provider-declared path | | `charly/kind_value_composed_test.go` | new: the plugin-declared def path, the wire→capMeta chain, the routing contract, the lazy-materialization miss (subprocess), the composed==base measurement | | `charly/test_main_test.go` | a test-only env knob that lets a re-executed helper start with NO composed schema | | `charly/kind_value_corpus_sweep_test.go` | new: opt-in real-corpus sweep with a base-only and a composed arm | | `.agents/skills/plugin/references/authoring-recipes.md` | the rich-value mechanism sentence follows the new source | | `.agents/skills/go/references/source-map.md` | the gate's def source described accurately in the file map | ## How tested ### 1. What the gate reads, before → after ```console $ grep -n "defPath, ok := kindValueDefPath\|def, err := kindValueDefValue\|composedSchema()" charly/provider_kind_invoke.go charly/plugin_loader.go charly/provider_kind_invoke.go:454: if composed, ok := composedSchema(); ok { charly/provider_kind_invoke.go:465: composed, ok := composedSchema() charly/provider_kind_invoke.go:501: defPath, ok := kindValueDefPath(prov, pn.Disc) charly/provider_kind_invoke.go:505: def, err := kindValueDefValue(defPath) charly/plugin_loader.go:265:func composedSchema() (cue.Value, bool) { ``` Before: `defPath, ok := spec.KindValueDefs[pn.Disc]` + `def := sharedCueSchema().LookupPath(...)`, and `runPluginKind` routed on `if _, gated := spec.KindValueDefs[pn.Disc]; gated`. ### 2. Equality for every unmoved kind — composed value == base value ```console $ TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci go test ./charly/ -run TestKindValueDefs_ComposedEqualsBase -v -count=1 === RUN TestKindValueDefs_ComposedEqualsBase kind_value_composed_test.go:168: android #AndroidValue: composed == base kind_value_composed_test.go:168: candy #CandyValue: composed == base kind_value_composed_test.go:168: firecracker #FirecrackerValue: composed == base kind_value_composed_test.go:168: kindcluster #KindclusterValue: composed == base kind_value_composed_test.go:168: kubernetes #KubernetesValue: composed == base kind_value_composed_test.go:168: kubevirt #KubevirtValue: composed == base kind_value_composed_test.go:168: local #LocalValue: composed == base kind_value_composed_test.go:168: pipeline #PipelineValue: composed == base kind_value_composed_test.go:168: pod #PodValue: composed == base kind_value_composed_test.go:168: task #TaskValue: composed == base kind_value_composed_test.go:168: vm #VmValue: composed == base --- PASS: TestKindValueDefs_ComposedEqualsBase (0.00s) ``` 11 of 11 gated defs, compared with `cue.Value.Equals` in a process where `TestMain` registered the 63 builtin units. (`Subsume` is false both ways even for equal CUE values carrying disjunctions, so `Equals` is the measurement — and the test pins it as a regression guard.) ### 3. Zero verdicts moved — real corpus, before vs after The committed sweep (`charly/kind_value_corpus_sweep_test.go`) judges every entity body of a gated kind through the production gate, with a **base-only arm** that reproduces the pre-change lookup exactly (`CHARLY_KIND_VALUE_GATE=base`), over the pinned umbrella tree. ```console $ export TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci CHARLY_CORPUS_ROOT=/home/atrawog/Sync/Atrapub/lo/dsh/opencharly $ CHARLY_KIND_VALUE_GATE=base CHARLY_CORPUS_OUT=/tmp/kv-base.txt go test ./charly/ -run TestKindValueCorpusSweep -v -count=1 kind_value_corpus_sweep_test.go:202: gate=base: judged 2004 entity bodies (1646 files unparsable) -> /tmp/kv-base.txt kind_value_corpus_sweep_test.go:204: android 9 kind_value_corpus_sweep_test.go:204: candy 1025 kind_value_corpus_sweep_test.go:204: kindcluster 24 kind_value_corpus_sweep_test.go:204: kubernetes 23 kind_value_corpus_sweep_test.go:204: kubevirt 25 kind_value_corpus_sweep_test.go:204: local 203 kind_value_corpus_sweep_test.go:204: pipeline 12 kind_value_corpus_sweep_test.go:204: pod 250 kind_value_corpus_sweep_test.go:204: task 47 kind_value_corpus_sweep_test.go:204: vm 386 $ CHARLY_KIND_VALUE_GATE=composed CHARLY_CORPUS_OUT=/tmp/kv-composed.txt go test ./charly/ -run TestKindValueCorpusSweep -v -count=1 kind_value_corpus_sweep_test.go:202: gate=composed: judged 2004 entity bodies (1646 files unparsable) -> /tmp/kv-composed.txt kind_value_corpus_sweep_test.go:204: android 9 kind_value_corpus_sweep_test.go:204: candy 1025 kind_value_corpus_sweep_test.go:204: kindcluster 24 kind_value_corpus_sweep_test.go:204: kubernetes 23 kind_value_corpus_sweep_test.go:204: kubevirt 25 kind_value_corpus_sweep_test.go:204: local 203 kind_value_corpus_sweep_test.go:204: pipeline 12 kind_value_corpus_sweep_test.go:204: pod 250 kind_value_corpus_sweep_test.go:204: task 47 kind_value_corpus_sweep_test.go:204: vm 386 $ diff -u /tmp/kv-base.txt /tmp/kv-composed.txt; echo "diff rc=$?" diff rc=0 $ sha256sum /tmp/kv-base.txt /tmp/kv-composed.txt 117afcac27674e333147f86ea91b97c4209ebda545960b2d236ec01baa52029c /tmp/kv-base.txt 117afcac27674e333147f86ea91b97c4209ebda545960b2d236ec01baa52029c /tmp/kv-composed.txt $ for f in /tmp/kv-base.txt /tmp/kv-composed.txt; do echo "$f judged=$(grep -vc '^PARSE-ERR' $f) ok=$(grep -c '|OK$' $f) fail=$(grep -c '|FAIL ' $f)"; done /tmp/kv-base.txt judged=2004 ok=1984 fail=20 /tmp/kv-composed.txt judged=2004 ok=1984 fail=20 ``` Zero lines differ. The 20 FAILs are the **design negative fixtures** (`design/negative/*`), the retired-pipeline migration fixtures (`charly/charly/testdata/migrate-retired-pipeline`, `plugin-herdr/…`, `pod-herdr/…`) and `plugin-migrate` testdata — files authored to fail; each carries the identical verdict on both sides. The 1646 unparsable files are CI workflows, compose files and other non-charly YAML (identical set on both sides; each is written as `PARSE-ERR <path>` and those lines diff clean too). Corroboration on the **actual pre-change code**: a worktree at `origin/main` (`152dc845`) ran the same harness with only the gate call replaced (`validateKindValueCUE(pn)` and `spec.KindValueDefs[pn.Disc]` selection instead of `validateKindValueCUE(pn, prov)` / `kindValueDefPath`); both trees produced the same `117afcac27674e333147f86ea91b97c4209ebda545960b2d236ec01baa52029c`. ```console $ git -C /home/atrawog/Sync/Atrapub/lo/dsh/opencharly/charly worktree add --detach \ /home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.worktrees/dsh-kindvalue-before/charly origin/main $ # the harness copied in, with the pre-change gate call as shown above $ CHARLY_CORPUS_ROOT=/home/atrawog/Sync/Atrapub/lo/dsh/opencharly CHARLY_CORPUS_OUT=/tmp/corpus-before.txt \ go test ./charly/ -run TestZZCorpusSweep -v -count=1 zz_corpus_sweep_test.go:126: judged 2004 entity bodies (1646 files unparsable) -> /tmp/corpus-before.txt $ sha256sum /tmp/corpus-before.txt /tmp/corpus-after.txt 117afcac27674e333147f86ea91b97c4209ebda545960b2d236ec01baa52029c /tmp/corpus-before.txt 117afcac27674e333147f86ea91b97c4209ebda545960b2d236ec01baa52029c /tmp/corpus-after.txt ``` ### 4. The new path executes — a kind body registered by a PLUGIN `TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit` registers a unit serving `#GateprobeValue`, asserts the **base cannot see it**, then shows the gate accepting a conforming body and rejecting a typo'd field through it. ```console $ TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci go test ./charly/ -run 'TestKindValueGate_|TestKindValueDefPath_|TestCapMeta_|TestKindValueDefValue_' -v -count=1 === RUN TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit --- PASS: TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit (0.03s) === RUN TestKindValueDefPath_FollowsTheProviderDeclaredShape --- PASS: TestKindValueDefPath_FollowsTheProviderDeclaredShape (0.00s) === RUN TestCapMeta_DeclaredKindInputDefLiftedFromTheWireCapability --- PASS: TestCapMeta_DeclaredKindInputDefLiftedFromTheWireCapability (0.00s) === RUN TestKindValueDefValue_MaterializesBuiltinUnitsOnMiss --- PASS: TestKindValueDefValue_MaterializesBuiltinUnitsOnMiss (2.29s) ``` The last two close the production chain the first pair cannot: `buildCapMeta` is the ONLY place a wire `input_def` becomes `capMeta.inputDef` (the earlier test builds `capMeta` directly), and the lazy-materialization branch is unreachable in a process where `TestMain` already composed the builtins — so the helper re-executes the test binary with `CHARLY_TEST_SKIP_BUILTIN_GATE=1`, where nothing is composed and `#SubstratePlugin` (declared only by plugin-substrate's unit) resolves only by materializing the builtin units. ### 5. Prove it can fail (planted break, red on assertions, restored byte-identical) Plant A — the def lookup reverted to the base alone: ```console $ go test ./charly/ -run TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit -v -count=1 === RUN TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit kind_value_composed_test.go:88: a conforming gateprobe body must pass the plugin-declared def: kind value def #GateprobeValue not found: field not found: #GateprobeValue --- FAIL: TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnit (0.02s) FAIL ``` Plant B — `kindValueDefPath` reduced to the host map fallback: ```console $ go test ./charly/ -run TestKindValueDefPath_FollowsTheProviderDeclaredShape -v -count=1 === RUN TestKindValueDefPath_FollowsTheProviderDeclaredShape kind_value_composed_test.go:113: a provider declaring a #<Word>Value body def must be host-value-gated; got "",false --- FAIL: TestKindValueDefPath_FollowsTheProviderDeclaredShape (0.00s) FAIL ``` Plant C — `buildCapMeta` stops lifting the wire `input_def`: ```console $ go test ./charly/ -run TestCapMeta_DeclaredKindInputDefLiftedFromTheWireCapability -v -count=1 === RUN TestCapMeta_DeclaredKindInputDefLiftedFromTheWireCapability kind_value_composed_test.go:183: a kind capability declaring input_def "#WireprobeValue" must expose it; got "" --- FAIL: TestCapMeta_DeclaredKindInputDefLiftedFromTheWireCapability (0.00s) FAIL ``` Plant D — the lazy-materialization branch removed (the child re-exec fails through the parent): ```console $ go test ./charly/ -run TestKindValueDefValue_MaterializesBuiltinUnitsOnMiss -v -count=1 === RUN TestKindValueDefValue_MaterializesBuiltinUnitsOnMiss kind_value_composed_test.go:230: miss-path helper process failed: exit status 1 --- FAIL: TestKindValueDefValueMissHelperProcess (0.06s) kind_value_composed_test.go:250: the miss path must materialize the builtin units and resolve the def: kind value def #SubstratePlugin not found: field not found: #SubstratePlugin FAIL --- FAIL: TestKindValueDefValue_MaterializesBuiltinUnitsOnMiss (0.26s) FAIL ``` All four are assertion failures, not build errors. Restored on the committed tree: ```console $ sha256sum charly/provider_kind_invoke.go charly/plugin_provider_common.go 3b567c004280c19344cfe7b1be490cde9fd65e26f5f16a680cbf876ab9e564de charly/provider_kind_invoke.go 7a882abb6e9292200b9b2c9484f617e13f4e3a246a56715bf5e605e091071eed charly/plugin_provider_common.go $ cmp /tmp/pki.c2 charly/provider_kind_invoke.go && cmp /tmp/ppc.c2 charly/plugin_provider_common.go && echo "cmp identical" cmp identical $ git status --short (empty) ``` ### 6. Gates run (the ones CI runs, on the final tree) ```console $ TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci go test ./charly/... # ci.yml "Test" ok github.com/opencharly/charly/charly 281.420s ok github.com/opencharly/charly/charly/internal/pluginsgen 120.013s $ for d in tools/*/; do ( cd "$d" && GOWORK=off go test -count=1 ./... ); done # ci.yml "Test tools modules" ok github.com/opencharly/charly/tools/gomod-canonical 0.003s ok github.com/opencharly/charly/tools/ledger-validate 0.006s (generate-packages / golden-cloudinit / golden-compile: no test files) $ gofmt -l charly tools # ci.yml "gofmt" (empty) $ cd charly && GOTOOLCHAIN=go1.26.8 golangci-lint run ./... # ci.yml "golangci-lint" (v2.13.2) 0 issues. $ for d in tools/*/; do ( cd "$d" && GOWORK=off golangci-lint run ./... ); done 0 issues. (×5 modules) $ TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci go vet ./charly/... # charly/AGENTS.md core gate (rc=0) $ ./scripts/bootstrap-charly.sh && ./bin/charly version # R9 bootstrap-charly: built ./bin/charly (2026.315.2219) 2026.315.2219 $ ./bin/charly box validate # live load, real repo charly box validate: OK — checked 604 candies, 122 boxes, 49 deploys, 7 distros, 7 builders; 0 warnings, 0 errors $ ./bin/charly box validate # fixture with a typo'd vm field — the gate still rejects charly: error: command "validate": validation error: …/charly.yml:doc0: node "myvm": vm: 2 errors in empty disjunction: bogusfield: field not allowed: node myvm:1:3 ``` `golangci-lint` is v2.13.2 built with `go1.26.8` (`GOTOOLCHAIN=go1.26.8`; the host's `go1.27.3-X:nodwarf5` breaks its export-data reader). The pin workflows are **N/A by trigger**: `pin-currency.yml` and `pin-verb-scope.yml` are path-filtered to `charly.yml`, `AGENTS.md`, `.gitmodules`, `box/**`, `charly/go.mod` and their own scripts — this diff touches none of them. Evidence fence (`dsh --version` 0.2.1-rc.2; session `39afaf4c-98da-4970-9bb4-c94019bd7ffb`, a delegated subagent of `session-f8a0eb3b-2677-47a9-8139-49b1ba39440c`; model `ollama-cloud/deepseek-v4.1-flash`): ``` session: 39afaf4c-98da-4970-9bb4-c94019bd7ffb (delegated from session-f8a0eb3b-2677-47a9-8139-49b1ba39440c) harness: DeepSeek Harness (dsh) 0.2.1-rc.2 model: ollama-cloud/deepseek-v4.1-flash tree: .worktrees/dsh-kindvalue-composed/charly @ 152dc84 + this commit ``` ## Rulebook compliance - **R0 (skills first).** Loaded before the first edit/git action: `plugin` (the plugin-host contract this gate lives in), `go` (charly source/build), `layer` (the dispatcher's candy/schema row), `go-quality` (lint invocation), `git-workflow` (before any git/PR action); `strict-policy` loaded for the R1 dispositions below. Every row the dispatcher selects for a core-Go + plugin-host change was loaded. - **R1 (RCA every anomaly).** Three anomalies, each RCA'd: 1. The brief's premise "unit 0 is outstanding" is half-true — its **prerequisite** had already landed (`git merge-base --is-ancestor 8403fc1… origin/main` → YES; `git grep schemacompose origin/main -- charly` → plugin_loader.go:20). Measured before editing; the scope was already the right one (the gate half), so no action beyond recording it. 2. My first corpus arm differed from the second in **error text only** (`(and 3 more errors)` vs the detailed list): the oracle rendered `%v` while the gate renders `cue/errors.Details`. RCA: the oracle did not reproduce the gate's diagnostic rendering. Fixed by using the same renderer, then re-measured both arms → byte-identical. 3. The `.agents` skill prose still described the def as only "KEPT in the base". Fixed in this change (claim-keyed sweep below), not filed. No warnings in any gate. - **R2 (no duplication).** One accessor (`composedSchema`), one resolver (`kindValueDefPath`) used by both the gate and the fold routing; the def map is not restated anywhere. - **R3 (no workarounds).** No sleeps/retries. The builtin-unit materialization in the miss path is a `sync.Once` one-shot (the same lazy gate the flat plugin-kind path already pays), not a retry. - **R4 (product before prose).** No documented command changed; the skill prose was corrected with the mechanism it describes. - **R5 (no legacy; claim-keyed sweep).** No identifier was deleted, but the claim "the gate reads the KEPT def from the base" was updated everywhere it appears on this surface: ```console $ grep -rn "KindValueDefs\|sharedCueSchema\|validateKindValueCUE" --include=*.go charly/ | grep -v _test charly/cue_schema.go:6:// validateKindValueCUE, which types a substrate/candy node's rich authored value against the charly/cue_schema.go:53:// sharedCueSchema must use. LAZY: composing the module instance costs ~39ms (measured on this charly/cue_schema.go:59:// sharedCueSchema is the base document schema composed by import: the `schema` package of the charly/cue_schema.go:63:var sharedCueSchema = sync.OnceValue(func() cue.Value { charly/plugin_loader.go:170: v = sharedCueSchema() charly/plugin_loader.go:261:// so the caller gets ok=false and may fall back to sharedCueSchema(); with at least one charly/provider_kind_invoke.go:72: // base's spec.KindValueDefs is only the compatibility fallback for kinds whose charly/provider_kind_invoke.go:201:// base's spec.KindValueDefs only as the compatibility fallback for a kind whose body has not charly/provider_kind_invoke.go:230: if err := validateKindValueCUE(pn, prov); err != nil { charly/provider_kind_invoke.go:235: // validateKindValueCUE's closedness-only gate cannot express — see that function's charly/provider_kind_invoke.go:312: if err := validateKindValueCUE(pn, prov); err != nil { charly/provider_kind_invoke.go:365:// (kindValueDefPath: a `#<Word>Value` InputDef, or the base's spec.KindValueDefs while the body charly/provider_kind_invoke.go:374: if err := validateKindValueCUE(pn, prov); err != nil { charly/provider_kind_invoke.go:413:// `#<Word>Value` shape spec/schema/init.cue derives spec.KindValueDefs from (the shared charly/provider_kind_invoke.go:427:// spec.KindValueDefs, which is why every kind in use today resolves to the same def it always charly/provider_kind_invoke.go:438: def, ok := spec.KindValueDefs[disc] charly/provider_kind_invoke.go:459: if d := sharedCueSchema().LookupPath(cue.ParsePath(defPath)); d.Err() == nil { charly/provider_kind_invoke.go:476:// validateKindValueCUE validates an externalized structural kind node's authored VALUE against charly/provider_kind_invoke.go:494:func validateKindValueCUE(pn spec.ParsedNode, prov Provider) error { charly/registry_bootstrap.go:31:// (validateKindValueCUE). So spec.KindWords is now EMPTY and the former ``` The only remaining `spec.KindValueDefs` READ in production code is the fallback at `provider_kind_invoke.go:438`; every other hit is a comment describing it (and `sharedCueSchema` retains its two legitimate uses: the first-unit materialization at `plugin_loader.go:170` and the base fallback at `provider_kind_invoke.go:459`). The two `.agents` references were corrected in the same commit. - **R6 (preserve work, git safety).** Worktree created off fresh `origin/main` (`152dc845`) in its own branch; no unrelated file touched; no force-push, no direct push to `main`. - **R7 (prove behavior).** Coverage fails without the change (plant A/B, red on assertions); the changed path ran live over 2004 real entity bodies with retained output, and the CLI still rejects a typo'd `vm:` field. No emitted-artifact boundary is involved. - **R8 (live services).** N/A — no service boundary in this change. - **R9 (binary = source).** Worktree-local build at the branch: `./bin/charly version` → `2026.315.2219`; no new runtime OS dependency, so `packaging:` is untouched. - **R10 (fresh disposable proof).** Classified, not deferred: the acceptance surface of this change IS the project load, and the gate that owns it is the corpus + live-load gate above (`bin/charly box validate` over the real repo — 604 candies, 122 boxes, 49 deploys, 0 warnings — plus 2004 real entity bodies through the changed function). The diff touches no deployment, candy runtime, service, CUE schema or wire type, so no `disposable: true` target's runtime surface changes and no `charly check run` bed selects for it; the repo-declared core gate (`go test ./...`, `go vet ./...`, R9 build) ran on the final tree. That is the change-class decision, taken here rather than pushed to the operator. ## Change classification - **Class:** core Go (loader/kind gate + test/skill prose). No CUE schema, no wire type, no pin, no gitlink, no `design/*.tsv`, no `TODO.md`. - **Breaking change + rollback:** no authored surface changes, so the subject carries no `!` and no config/wire/CLI consumer breaks: every kind resolves the same def, proven by the 2004-body sweep (byte-identical verdict lists before/after). If this gate's new input path itself breaks, a consumer sees a **false reject** (`<kind>: field not allowed` on a body that used to load) or a **silent false accept** (a typo no longer rejected). Rollback is a revert of this one commit — it carries no pins, schema or wire contract, so there is nothing to migrate. If a moved kind's plugin is rolled back while charly is not, the gate fails loud with `kind value def #<Word>Value not found` rather than skipping. ## Filed issues None. The findings this round produced were fixed here (the skill-prose claim, the corpus-oracle rendering); the 20 corpus FAILs are files authored to fail (`design/negative/*`, migration testdata), unaffected by this change. The chain that consumes this unit is tracked once, in opencharly/spec#304. *Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)*
|
STATUS — round 2: all three BLOCKs fixed on head RCA — the missed control behind each finding
R10 note: now a determinate change-class decision (load-time gate → corpus + live-load is its No new findings; the security screen and the behaviour-preservation claim are unchanged. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system) |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress/guardrail-weakening/supply-chain finding; the gate is strengthened (composed-unit resolution), not loosened. Comments considered:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
Post-merge evidence for two claims this PR could not make at merge time. Both measured on production bytes byte-identical to 1. The lazy-materialization branch is needed — measured, not assumedThe round-2 reviewer asked for either a test or the branch's removal. It was kept, and this measures why that is right. With a temporary stderr probe on
So the branch is dead today and the only thing that will rescue the first moved kind in exactly those 11 calls. Keeping it is correct with evidence rather than by preference — and it is also why the test needed a re-exec child, since the test binary's 2. An R10 disposable bed PASS on the shipped bytesThe merge kept tier
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) |
Post-merge evidence from an independent session — the loader bed now has an R10 PASS, and the kept branch is measuredThis is evidence only: no code change is proposed, and this branch is merged. It records two What was verified about the landed controlsThe landed round-2 commit
Measurement 1 — how often production actually needs the kept branchA temporary stderr probe on $ ./bin/charly box validate -C .
charly box validate: OK — checked 604 candies, 122 boxes, 49 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
$ echo "resolutions=$(grep -c 'KVDEF-PROBE entry' /tmp/bv-charly.err) nothing_composed=$(grep -c 'composed=false' /tmp/bv-charly.err) branch_hits=$(grep -c 'MATERIALIZE-MISS' /tmp/bv-charly.err)"
resolutions=3932 nothing_composed=11 branch_hits=0
$ grep -o 'def=#[A-Za-z]* composed=[a-z]*' /tmp/bv-charly.err | sort | uniq -c
26 def=#AndroidValue composed=true
1 def=#CandyValue composed=false
1720 def=#CandyValue composed=true
56 def=#KindclusterValue composed=true
4 def=#KubernetesValue composed=false
31 def=#KubernetesValue composed=true
7 def=#KubevirtValue composed=true
273 def=#LocalValue composed=true
714 def=#PodValue composed=true
84 def=#TaskValue composed=true
6 def=#VmValue composed=false
1010 def=#VmValue composed=trueSo 11 of 3 932 live gate resolutions arrive with nothing composed — the exact state the Measurement 2 — the disposable R10 bed, which this change did not haveThe round-2 record keeps the attribution at $ TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci ./bin/charly check run check-loader-flat-import-local
charly check run check-loader-flat-import-local: [deploy-add] PASS after 4m21.789s
charly check run check-loader-flat-import-local: [bring-up-members] PASS after 1ms
charly check run check-loader-flat-import-local: [check-live] PASS after 3m14.971s
charly check run check-loader-flat-import-local: [update] PASS after 4m1.208s
charly check run check-loader-flat-import-local: [cleanup] PASS after 3m7.23s
charly check run check-loader-flat-import-local: [cleanup-members] PASS after 0s
charly check run check-loader-flat-import-local: PASS (steps=6)
$ echo "BED rc=$?"
BED rc=0
bed: check-loader-flat-import-local
calver: 2026.316.1218
driver: /home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.worktrees/dsh-kv-blockfix/charly/bin/charly
driver_version: 2026.316.1215
driver_size: 56557879
driver_mtime: 2026-11-12T12:16:46Z
runner_stderr: runner.stderr.log
steps:
- name: deploy-add
duration_seconds: 262
ok: true
status: PASS
skipped: 0
- name: bring-up-members
duration_seconds: 0
ok: true
status: PASS
skipped: 0
- name: check-live
duration_seconds: 195
ok: true
status: PASS
skipped: 0
checks:
- id: loader-flat-import-validates
status: PASS
text: "a flat import plus a plugin-provided kind validates (both the decode fix and the flat-file read are exercised)"
reason: exit=0
- name: update
duration_seconds: 241
ok: true
status: PASS
skipped: 0
- name: cleanup
duration_seconds: 187
ok: true
status: PASS
skipped: 0
- name: cleanup-members
duration_seconds: 0
ok: true
status: PASS
skipped: 0
total_seconds: 885
diagnostics:
errors: 0
warnings: 0
advisories: 0
allowlisted: 0
errors_fatal: true
warnings_fatal: false
advisories_fatal: false
cache_ratio: not-applicable-no-build-steps
skipped_checks: 0
ok: true
status: PASSSix of six steps PASS, What this session deliberately did NOT doIt wrote independent controls for BLOCKs 1 and 2 (a Two findings from that session are filed rather than fixed, both off this change's surface: Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) |
Review — BLOCKHead SHA: Change class: core Go (plugin loader / kind-value gate) + tests + skill docs. Blocks
Comments considered
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — round 3 (post-merge): all three findings are fixed on the same head, and the body is re-keyed for them. The PR had already merged at RCA — the missed control behind each finding
What this round does NOT changeThe merged commit keeps Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system) |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress/guardrail-weakening/supply-chain finding; the gate is strengthened (composed-unit + provider-declared def resolution), never loosened. No T2 embedded directive in body/comments. Comments considered:
Non-blocking note (rulebook gap): post-merge verification of an already-landed commit has no clean home — the immutable Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…t refs resolve (#1124) * fix(plugin): unify with the def as receiver so a served def's contract refs resolve `validateKindValueCUE` gated an authored kind value with `entity.Unify(def)` — authored document first. `cue.Value.Unify` resolves every reference it meets through the RECEIVER's runtime, and the two sides carry different ones: `def` comes from the composed unit, whose runtime carries the plugin unit's import graph, while `entity` is built from the authored JSON by the project loader, which has no import clause anywhere in it. So the moment unit 0 (#1122) moved the LOOKUP to the composed value and the first served def cited a contract definition (`schema.#LLMSpec`, as plugin-pipeline's `#PipelineValue` does), the gate resolved that reference through the entity's import-less runtime and failed. Same two values, one process, only the receiver differs: entity.Unify(def) = args.prs: cannot find package "github.com/opencharly/spec/schema" def.Unify(entity) = <nil> The flip is one line. The witness that was missing is a test that judges a body against a def DECLARED BY A SERVED UNIT whose body carries a contract reference: `TestKindValueGate_ValidatesAServedDefCarryingAContractReference`, red on assertions without the flip. The diagnostic change is kept, not stripped: a rejection now re-roots its path at the def (`local: connect: field not allowed` becomes `local: #LocalValue.connect: field not allowed`), which tells the reader WHICH def rejected the body. Zero accept/reject verdicts moved across the 2,004-body corpus (base arm vs this tree: 1984 OK / 20 FAIL on both sides, verdict-only diff empty); all 20 FAIL diagnostics re-root, and every one was already a FAIL. The corpus diff, the plant, the CI gates and the R10 bed summary (`check-loader-flat-import-local`, PASS, 884s, 0 errors / 0 warnings / 0 skipped) are in the pull request body. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs(plugin): quote the witness fixture's own diagnostic, not the corpus one Round-1 review finding (real, and fixed here in the same commit that added the comment). The doc comment above TestKindValueGate_ValidatesAServedDefCarryingAContractReference quoted args.prs: cannot find package "github.com/opencharly/spec/schema" which is the diagnostic the ORIGINAL umbrella-corpus pipeline body produced — the defect's own symptom. This fixture is `#ServedrefValue` with `label`/`llm`, so the un-flipped gate fails at servedref: llm: cannot find package "github.com/opencharly/spec/schema" The claim travelled from the defect diagnosis into a comment sitting next to a different fixture and was never re-read against the output that fixture actually prints — even though that output is pasted in the PR's own red fence. A comment that names a diagnostic the adjacent test cannot produce is a false claim in the tree, so it is swept here rather than softened. Missed control: the comment and the PR's §2 red fence were written from different sources and were not cross-read; the fix is to quote the fixture, and the claim-keyed sweep for the stale string is now empty. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) --------- Co-authored-by: aitrawog <[email protected]>
…n's CUE module (#32) opencharly/spec#304 unit 3, leg 1 (the producer). The `kind: pod` entity body has lived in the contract module (spec/schema/pod.cue: `#Pod`) with a `#PodValue` twin in spec/schema/node.cue, gated host-side through the `spec.KindValueDefs` compatibility fallback. This leg moves the body to the plugin that SERVES the kind, and declares the gate def on the capability in the SAME change, which is the contract opencharly/charly#1122 established: a kind whose body lives in its own plugin's CUE module must declare `InputDef: "#<Word>Value"` on its `class:kind` capability, or the host keeps answering from the base and the base could never drop the def. WHY THIS PLUGIN, not plugin-deploy-pod (the owning plugin spec#304's table names). Measured, not preferred: exactly ONE provider serves `kind:pod`, and it is this one — `substrateWords` (plugin.go) declares pod alongside the seven sibling substrate words, and `plugin-deploy-pod` declares only `deploy:pod` (`{Class: "deploy", Word: "pod", InputDef: "", Lifecycle: true}`). A `kind` body belongs with the plugin that serves the kind, and a plugin can import only the CONTRACT module, so the word's owner is the body's home. Moving the word itself would split the substrate table (traits, status collectors, the OpLoad echo) and duplicate it — R2 on sight. WHAT STAYS IN THE CONTRACT, and why. `#PodSidecar` does not move: the contract's own `#ResolvedPod` (spec/schema/substrate_template.cue) cites it, and that envelope is what the kernel reads. The moved def references it as `schema.#PodSidecar`. This is the same shape units 1 and 2 paid for (`#PipelineClassRoutes`, `#TaskParamSpec`), except the citing schema is the contract's rather than a sibling plugin's: a cross-plugin sweep of all 248 opencharly modules in the module cache and of every materialized plugin checkout found ZERO `schema.#Pod*` citations, so nothing in a plugin pins a pod def. THE ROUTING IS UNCHANGED. The pod word still declares `DeployTraits`, so `IsStandaloneResourceKind` still sends it down `foldSubstrateKind`; the declaration only changes WHICH def the host value gate reads (from the composed unit instead of the base fallback). It composes alone, splices onto the base while the base still declares the same defs (the `#TunnelConfig` twin precedent), and the sweep shows no verdict moved. spec.Pod is DELETED FROM THE PLUGIN'S DEPENDENCY, not merely unread. The one consumer, resolve.go's OpResolve leg, copied five fields from `spec.Pod` into the contract's `#ResolvedPod`; the authored body's fields ARE that envelope's fields, so the arm now decodes the authored bytes straight into `#ResolvedPod` and the type has zero code references left in this repo. The contract's own note on `#ResolvedPod` already said the kernel "never" reads a `spec.Pod`. The base's CUE def and its Go type follow in leg 2. Pins: sdk v0.2026296.1207 -> v0.2026317.18 and spec v0.2026296.1036 -> v0.2026317.51, because `spec/schemacompose` (ServedSchema/ServedText, the offline import resolution both sides of the wire use) does not exist at the older spec pin. `go mod tidy` clean. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Summary
Head
1375d3c00ec4de9411c8040c3568bf05660c44a3— 10 files, +672 −82.validateKindValueCUEgated every substrate/candy/host-value kind againstspec.KindValueDefs[disc]looked up insharedCueSchema()— the base schema alone. Adefinition a plugin declares lands in
pluginSchemas.unified(base & every served pluginunit), a different
cue.Value, so the moment a kind body leftspec/schemathe gate would stopfinding its def and silently stop gating.
runPluginKindchose the host-value fold from the samehost-side list (
spec.KindValueDefsmembership).Now:
kindValueDefValueresolves the def againstpluginSchemas.unified(via the newcomposedSchema()snapshot), falling back to the base onlywhile nothing is composed — and, when the def is in neither the base nor the currently composed
units, materializes the builtin units once (
sync.Once) and retries the composed lookup.kindValueDefPath(prov, disc)asks theprovider first: a
class:kindcapability naming a#<Word>Valuebody def in itsInputDefishost-value-gated;
spec.KindValueDefsis only the compatibility fallback for a body that hasnot moved.
capMetanow carries that declaredInputDef(DeclaredKindInputDef), so routingand gating read the same declaration, in both placements, with no wire/contract change.
Substrate routing (
DeployTraits) and the candy factory (CandyKindCarrier) were alreadyprovider-declared and are untouched.
No kind moves here. Every kind whose body still lives in the base resolves the same def it
always did, and the composed value is measured equal to the base for all 11 gated kinds.
This is
TODO.md2.1 / opencharly/spec#304 unit 0 — the gate half. Its prerequisite (per-unitCUE composition, #1115) is already on
main:Files
charly/provider_kind_invoke.gokindValueDefPath+kindValueDefValue+kindInputDefCarrier; the gate reads the composed unit; the fold routes on the provider's declared shapecharly/plugin_loader.gocomposedSchema()— the composed-unit snapshot accessorcharly/plugin_provider_common.gocapMeta.inputDef+DeclaredKindInputDef();buildCapMetalifts the declaredinput_defcharly/cue_schema.gocharly/cue_kinds_corpus_test.gocharly/kind_value_composed_test.gocharly/test_main_test.gocharly/kind_value_corpus_sweep_test.go.agents/skills/plugin/references/authoring-recipes.md.agents/skills/go/references/source-map.mdHow tested
1. What the gate reads, before → after
Before:
defPath, ok := spec.KindValueDefs[pn.Disc]+def := sharedCueSchema().LookupPath(...),and
runPluginKindrouted onif _, gated := spec.KindValueDefs[pn.Disc]; gated.2. Equality for every unmoved kind — composed value == base value
11 of 11 gated defs, compared with
cue.Value.Equalsin a process whereTestMainregisteredthe 63 builtin units. (
Subsumeis false both ways even for equal CUE values carryingdisjunctions, so
Equalsis the measurement — and the test pins it as a regression guard.)3. Zero verdicts moved — real corpus, before vs after
The committed sweep (
charly/kind_value_corpus_sweep_test.go) judges every entity body of agated kind through the production gate, with a base-only arm that reproduces the pre-change
lookup exactly (
CHARLY_KIND_VALUE_GATE=base), over the pinned umbrella tree.Zero lines differ, and the 20 FAILs are identical on both sides — the same 20 bodies with the
same 20 messages on the base-only arm and on the composed arm (
diff rc=0above, and the twosha256values are one value). They are not a regression of this change and they are not new:every one is a file that is AUTHORED to fail this gate — 13
design/negative/*fixtures, and 7entities across FIVE fixture files — the
charly,plugin-herdrandpod-herdrcopies ofcharly/testdata/migrate-retired-pipeline, plusplugin-migrate's two testdata files. A reader mustnot read them as damage; here is the whole list, read off the sweep's own output file:
The
design/negative/*files exist to prove the gate still REJECTS what it must reject; themigration fixtures carry the retired
stages:/concurrency:grammar that onlycharly migratemay still read. The 1646 unparsable files are CI workflows, compose files and other non-charly
YAML (identical set on both sides; each is written as
PARSE-ERR <path>and those lines diffclean too).
Corroboration on the actual pre-change code: a worktree at
origin/main(152dc845) ran thesame harness with only the gate call replaced (
validateKindValueCUE(pn)andspec.KindValueDefs[pn.Disc]selection instead ofvalidateKindValueCUE(pn, prov)/kindValueDefPath); both trees produced the same117afcac27674e333147f86ea91b97c4209ebda545960b2d236ec01baa52029c.4. The new path executes — a kind body registered by a PLUGIN
TestKindValueGate_ReadsAPluginDeclaredDefFromTheComposedUnitregisters a unit serving#GateprobeValue, asserts the base cannot see it, then shows the gate accepting a conformingbody and rejecting a typo'd field through it.
The last two close the production chain the first pair cannot:
buildCapMetais the ONLY place awire
input_defbecomescapMeta.inputDef(the earlier test buildscapMetadirectly), and thelazy-materialization branch is unreachable in a process where
TestMainalready composed thebuiltins — so the helper re-executes the test binary with
CHARLY_TEST_SKIP_BUILTIN_GATE=1, wherenothing is composed and
#SubstratePlugin(declared only by plugin-substrate's unit) resolvesonly by materializing the builtin units.
5. Prove it can fail (planted break, red on assertions, restored byte-identical)
Plant A — the def lookup reverted to the base alone:
Plant B —
kindValueDefPathreduced to the host map fallback:Plant C —
buildCapMetastops lifting the wireinput_def:Plant D — the lazy-materialization branch removed (the child re-exec fails through the parent):
All four are assertion failures, not build errors. Restored on the committed tree:
6. Gates run (the ones CI runs)
That fence is the round-1/round-2 record, and its own
bootstrap-charlyline names the build itcame from (
2026.315.2219, this branch's first commit). The same suites are green on THIS head onthe repo's own CI — measured, not inferred:
golangci-lintis v2.13.2 built withgo1.26.8(GOTOOLCHAIN=go1.26.8; the host'sgo1.27.3-X:nodwarf5breaks its export-data reader). The pin workflows are N/A by trigger:pin-currency.ymlandpin-verb-scope.ymlare path-filtered tocharly.yml,AGENTS.md,.gitmodules,box/**,charly/go.modand their own scripts — this diff touches none of them.7. R10 — the disposable bed, run on the MERGED tree (post-merge verification)
This evidence is post-merge, and it is labelled that way because it is. The pull request merged
at
2026-11-12T12:07:59Z— twenty-three minutes into the gating session, before either bed below hadfinished — because the validator's PASS on this head armed native auto-merge; the squash landed on
mainas76b3842f,tag-on-mergemintedv2026.316.1207, andCHANGELOG/2026.316.1207.mdwaswritten from the body as it stood then, which recorded R10 as classified rather than run. That
landed commit carries
Assisted-by: … (analysed on a live system), the honest tier at the moment itlanded, and this body does not retroactively rewrite it: a squash on
mainis immutable and itstier is the tier it earned. What follows verifies the landed tree; it is not the gate that
authorized the landing, and the footer's tier is left at what the commit carries. The consequence is
stated rather than smoothed over:
CHANGELOG/2026.316.1207.mdtherefore records R10 as classifiedrather than run, and rewriting a merged CHANGELOG entry is a separate, operator-owned change that is
NOT made here.
Which bed, and why. The umbrella rulebook's A2 row for
charlyGo code sends abox/candy/pod/deploy-target-mechanism change to
check-pod, and a cross-cutting loader/resolver/IR/unified-schema change to the matching beds. This diff changes the in-process PLUGIN LOADER
(
charly/plugin_loader.go'scomposedSchema), the provider invoke/fold(
charly/provider_kind_invoke.go) and the capability metadata(
charly/plugin_provider_common.go) — the loader/plugin-MECHANISM class.check-podis nolonger declared in this repo, which is measured rather than assumed:
It lives now in the repo that owns the pod artifact —
plugin-pod/charly.yml:32, whosedescription calls it "the canonical fast R10 gate for box/candy/pod/deploy-target code changes" —
and a bed has to run in the repo that owns the artifact it tests, so that bed cannot witness THIS
tree. No
kind:check-rosterentity is declared incharly.ymleither, so the matching beds arerun one by one:
The two live beds in this repo whose kind matches a loader/plugin-mechanism change are these, and
both are
disposable: true:check-loader-flat-import-localimport:is a FLAT file carrying both the sole pin for the out-of-treeplugin-example-kindplugin and anexamplekind:entity that plugin provides, sobox validatesucceeds only once the prescan read the flat file, the plugin registered, andrunPluginKinddecoded the PLUGIN-DECLARED kind — thekindValueDefPathrouting arm this change rewrote runs on exactly that nodecheck-sidecar-podcheck-pod: builds thecheck-k8s-deploy-appimage (candy/box kind folding through the gate), deploys it as a pod with a sidecar, and drives the running venue with steps that each re-evaluate the project through${CHARLY_BIN}, then the runner's own freshcharly updaterebuild and secondcheck livepassR9 — the binary under test IS this source. Built with
./scripts/bootstrap-charly.shin adedicated worktree pinned to this head (
.worktrees/dsh-kindvalue-bed/charly, created--detachat the head,
git status --shortempty):The bed summaries, read from the files the runs wrote (
cat .check/<bed>/<calver>/summary.yml)— no paraphrase, and no
--keep/--no-rebuild/--skip-rebuild/--dry-runamong thecommands, so each bed ran the FULL sequence it declares: the loader bed is a
host: localbed overa committed fixture, so it has no image build and therefore no
check boxphase (deploy-add→check-live→update→cleanup), while the sidecar bed carries the whole image path(
vm-build→image-build→check-image→deploy-add→check-live→update→re-bring-up-members→check-live-rebuild→ teardown). The pasted step lists are the authorityfor each:
Read the two
skipped_checksvalues next took: true, because a SKIP is not a pass: a checkstep whose body carries an unresolvable upper-case token SKIPS rather than FAILS, and a skip reads
exactly like a satisfied check in a summary. The loader bed is
skipped_checks: 0. The sidecar bedis
skipped_checks: 3, and those three are NOT that trap: each one is acheck:step declaredcontext: [runtime]that the build-context pass (charly check box) skips by design, and thesummary records the reason verbatim —
context [runtime] not active in box mode— forlayer-supervisord:5,pod-check-keepalive:3andos-bash-service-running. All three then run andPASS in both live passes (
check-live,check-live-rebuild,skipped: 6each — and those six arethe bed's mutating
run:steps, whichcharly check liveskips in verify-only mode, again bydesign and again recorded). So on this pair of runs every skip is accounted for by the engine's own
stated reason, and no check was skipped for a reason the summary does not name.
Both summaries name
driver_version: 2026.316.1200— the same R9 build this body names — so thebeds and the binary are one artefact. The loader bed's first attempt on this head was refused by the
concurrent bed lock recorded in R1 item 5; the summary pasted above is the re-run issued once that
lock cleared, on this head's own binary, not a run retried in a loop.
Evidence fence (
dsh --version0.2.1-rc.2; session792b1ccf-83ee-4d52-a0f0-b4859d91b01c, adelegated subagent of
session-f8a0eb3b-2677-47a9-8139-49b1ba39440c; modelollama-cloud/deepseek-v4.1-flash):Rulebook compliance
R0 (skills first). Round 1 loaded
plugin(the plugin-host contract this gate livesin),
go(charly source/build),layer(the dispatcher's candy/schema row),go-quality(lintinvocation) and
git-workflow(before any git/PR action), plusstrict-policyfor the R1dispositions. The gating round loaded
git-workflow(before any git/PR action),checkTOGETHERWITH its
references/beds-and-r10.md(the sole owner of the R10 gate-by-change-class matrix thebed choice in §7 is derived from),
marketplace(the authored-vs-generated split that producedthe filed leg),
plugin(the mechanism this gate lives in) androot-cause-analyzer(the fiveanomalies in R1). Every row the dispatcher selects for a core-Go + plugin-host change was
loaded.
R1 (RCA every anomaly). Five anomalies, each RCA'd:
landed (
git merge-base --is-ancestor 8403fc1a… origin/main→ YES;git grep schemacompose origin/main -- charly→ plugin_loader.go:20). Measured before editing; the scope was alreadythe right one (the gate half), so no action beyond recording it.
(and 3 more errors)vs the detailed list): the oracle rendered
%vwhile the gate renderscue/errors.Details.RCA: the oracle did not reproduce the gate's diagnostic rendering. Fixed by using the same
renderer, then re-measured both arms → byte-identical.
.agentsskill prose still described the def as only "KEPT in the base". Fixed in thischange (claim-keyed sweep below), not filed.
git status --shortwas empty when the first build finished at 12:48; four minutes later charly's own freshness
check refused the binary —
stale binary detected … newer source: charly/provider_kind_invoke.go— and the tree carried two modified TEST files (
kind_value_composed_test.go,test_main_test.go) plus another session'sgo test ./charly/...in the same worktree. RCA:mechanism — the branch worktree is shared between concurrent sessions, so a clean check is
a point-in-time reading and not a property; missed control — I treated "clean at build
time" as "clean at gate time" and pointed a 20-minute gate at a mutable directory; blast
radius — an R10 run there would have measured an uncommitted, in-flux tree and reported it
as this head; root fix — every gate now runs in a worktree created
--detachat theimmutable head, which nothing else is editing (§7). The other session's work was left
untouched, and its two test files are what commit
1375d3c0carries.tree came back
check bed "check-loader-flat-import-local" is already running — refusing a concurrent run: another charly process holds the bed lock. RCA: mechanism — the bed lockis global per bed IDENTITY (
~/.cache/charly/locks/bed-<hash>.lock), deliberately, because tworuns of one bed share their container/volume names; a sibling session was driving the same bed
from another worktree. Missed control — I launched a bed without checking the lock first.
Blast radius — none: the guard refused loudly before touching a container, which is exactly
its job. Root fix — sequenced rather than forced: the run was not retried in a loop and no
lock was cleared by hand; once the other run finished, the bed was re-run on this head's own
binary, and THAT run is the summary pasted in §7.
No warnings in any gate.
R2 (no duplication). One accessor (
composedSchema), one resolver (kindValueDefPath) usedby both the gate and the fold routing; the def map is not restated anywhere.
R3 (no workarounds). No sleeps/retries. The builtin-unit materialization in the miss path is
a
sync.Onceone-shot (the same lazy gate the flat plugin-kind path already pays), not a retry.R4 (product before prose). No documented command changed; the skill prose was corrected with
the mechanism it describes.
R5 (no legacy; claim-keyed sweep). No identifier was deleted, but the claim "the gate reads
the KEPT def from the base" was updated everywhere it appears on this surface:
The only remaining
spec.KindValueDefsREAD in production code is the fallback atprovider_kind_invoke.go:438; every other hit is a comment describing it (andsharedCueSchemaretains its two legitimate uses: the first-unit materialization at
plugin_loader.go:170andthe base fallback at
provider_kind_invoke.go:459). The two.agentsreferences were correctedin the same commit.
R6 (preserve work, git safety). The branch worktree was created off fresh
origin/main(
152dc845); the gate worktree.worktrees/dsh-kindvalue-bed/charlywas created--detachatthe head and its
git status --shortwas verified empty before every build:Another session held uncommitted edits in the branch worktree during this round; they were read,
never edited, committed or reverted (R1 item 4), and the commit that carries them (
1375d3c0) isthe head this body anchors to. No force-push, no direct push to
main, no hook bypass, nodestructive reset.
R7 (prove behavior). Coverage fails without the change — four plants (A/B/C/D), each red on
an ASSERTION rather than a build error, restored byte-identically (sha256 +
cmp). The changedpath ran live over 2004 real entity bodies with retained output (§3, re-measured on this head),
the CLI still rejects a typo'd
vm:field (§6), and two disposable beds drove the same gatethrough a real project load and deploy (§7). No emitted-artifact boundary of this change is
unverified.
R8 (live services). N/A — no service boundary in this change.
R9 (binary = source). Rebuilt on the tree this body describes —
./scripts/bootstrap-charly.shin
.worktrees/dsh-kindvalue-bed/charlyat the head:./bin/charly version→2026.316.1200,go version -m ./bin/charly→mod github.com/opencharly/charly/charly (devel), i.e. the moduleunder change built from this source rather than a release. The earlier round's
2026.315.2219came from this branch's first commit. No new runtime OS dependency, so
packaging:is untouched.R10 (fresh disposable proof — RUN, after the merge, and reported as such). At the moment this
change landed the A2 row for
charlyGo code was answered by classification ("the acceptancesurface is the project load"), and the validator's PASS on that head armed auto-merge, so the
squash landed before a bed could finish. The bed was then RUN on the landed tree rather than left
as an argument:
check-loader-flat-import-local(the repo's loader/plugin witness) andcheck-sidecar-pod(the pod mechanism bed standing in for the relocatedcheck-pod), both ondisposable: truetargets, both through the full sequence including the freshcharly updaterebuild, both
status: PASSwith zero errors and zero warnings, and every skipped step accountedfor by the engine's own stated reason (§7 reads the two
skipped_checksvalues rather than wavingthem through). That does NOT upgrade the tier: the merged commit keeps
analysed on a live system, which is what it earned when it landed.Change classification
no gitlink, no
design/*.tsv, noTODO.md.!andno config/wire/CLI consumer breaks: every kind resolves the same def, proven by the 2004-body
sweep (byte-identical verdict lists before/after). If this gate's new input path itself breaks,
a consumer sees a false reject (
<kind>: field not allowedon a body that used to load) ora silent false accept (a typo no longer rejected). Rollback is a revert of this one commit —
it carries no pins, schema or wire contract, so there is nothing to migrate. If a moved kind's
plugin is rolled back while charly is not, the gate fails loud with
kind value def #<Word>Value not foundrather than skipping.Filed issues
corpus: the go + plugin reference bodies still carry the base-only kind-value-gate prose — regenerate after opencharly/charly#1122 tags marketplace#612 — the corpus projection of the two edited reference bodies is
stale. This repo AUTHORS
.agents/skills/**; opencharly/marketplace is its GENERATEDprojection, so the two corrected sentences cannot reach the corpus from here. The issue names
both edited files, measures the stale text still sitting in
marketplace/internals/skills/plugin/references/authoring-recipes.md:135andmarketplace/internals/skills/go/references/source-map.md:261, pins the owning ref(
candy/charly-marketplace/charly.yml:46,@github.com/opencharly/charly:v2026.303.0223), andcarries the regeneration command the
marketplaceskill owns —charly -C <marketplace-checkout> marketplace generate --root <marketplace-checkout> --out <marketplace-checkout>— plus the drift gate that fails a refs bump shipped without itsregenerated corpus. It is FILED rather than fixed here because the refresh cannot run before this
PR's merge tag exists; it is not a "follow-up" for anything inside this change's scope.
charly.yml's bed-coverage map names seven beds that do not exist (check-pod, check-local, check-*-pod) #1123 —
charly.yml's bed-coverage map names seven beds that do not exist(
check-pod,check-local,check-*-pod). Found while choosing this change's bed: the A2 rowsends a mechanism change to
check-pod, and the map's own header still lists it, while the livetree answers
no entity "check-pod"(§7). Filed in this repo because the map lives incharly.yml; it is the reason this body has to name its beds from the LIVE roster instead of fromthe map.
No other finding was filed. The findings this round produced were fixed here (the skill-prose
claim, the corpus-oracle rendering, the five anomalies in R1), and the 20 corpus FAILs need no
issue: every one is a file authored to fail, named in §3. The chain that consumes this unit is
tracked once, in opencharly/spec#304.
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)