Repository navigation
Conversation
Adopt sdk v0.2026270.1147 + spec v0.2026270.938 in the charly host and delete every reader of the removed schema-version surface. The source sweep is complete and compiles/vets green against the merged contracts when the two un-landed plugin consumer legs are supplied locally (a `replace` spike, not committed). Core: - charly/version.go: delete the LatestSchemaVersion() shim (and the calver import). - Bump the compiled-plugin pins that landed: plugin-service, plugin-package, plugin-build, plugin-migrate, plugin-fleet, plugin-enc. Test sweep (the removed version stamp / schema gate): - Delete the version-gate test (migrate_calver_gate_core_test.go) and the test-only latestSchemaVersion alias (migrate_testsupport_test.go). - Drop the ~90 fixture `version:` stamps across the loader/validate/resolver suites; re-vehicle the F9 bootstrap test off `defaults.registry`; drop the UnifiedFile.Version and InlineCandy.Version assertions; delete the spec.Packaging.Config test (#PackagingConfig removed). BLOCKED — do NOT open a PR for this branch yet: - `go build ./...` fails at exactly `plugin-box` (spec ResolvedBox/ResolvedBoxView .Version, kit.ScaffoldCandy 3->2) and `plugin-fleet` (spec Deploy/DeployNode .Version, kit.CandyRecord.Version). plugin-fleet's fix is opencharly/plugin-fleet#25; plugin-box's is UNLANDED (its inputless PR plugin-box#16 was auto-closed at 5 BLOCKs). - Even with those two fixed, `go test ./...` panics at init (`registerCompiledPlugin: ... plugin ships NO CUE schema`) because sdk v0.2026270.1147 includes sdk#314 (the inputless contract): every compiled-in plugin must ship a schema, and the inputless sweep (charly#712) is incomplete (16+ PRs open). Tracking: #714. Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
…oning The charly host leg of the schema-versioning-removal cutover (#714). Adopt sdk v0.2026270.1147 + spec v0.2026270.938 and delete the whole removed schema-version surface. `go build`/`go vet`/`go test` are green against the real merged tags (no go.work, no replace). Contracts + pins: - sdk v0.2026270.1024 -> v0.2026270.1147; spec v0.2026269.2150 -> v0.2026270.938. - Bump every compiled-in plugin whose pinned version was schema-less to its merge-time CalVer tag (the sdk#314 inputless contract), plus the version-removal consumer legs: plugin-box v0.2026270.1652, plugin-fleet v0.2026270.1554, plugin-migrate v0.2026270.1359, plugin-build v0.2026270.1414, plugin-service/package v0.2026270.1351, and the inputless wave (example-command/-bootstrap, egress, k8sgen, gpu, preempt, enc, substrate, candy-kind, ssh, cmd, clean, settings, loader, refs, candy, cache, doctor, feature, pod, alias, authoring, oci, status, ollama). Host source (hard cutover — no fallbacks): - charly/version.go: delete the LatestSchemaVersion() shim (and the calver import). - Delete the version-gate test (migrate_calver_gate_core_test.go) and the test-only latestSchemaVersion alias (migrate_testsupport_test.go). - Sweep the ~90 fixture `version:` stamps (Go strings + testdata/check/packaging YAML); the version gate, the UnifiedFile.Version / InlineCandy.Version assertions, and the spec.Packaging.Config test are gone. - Remove the retired `packaging.config:` section from packaging/charly.yml and the version stamps from every manifest this repo ships. - tooling: `tools/golden-compile` clears the removed wire `Version`; the compile-parity golden is regenerated. - Re-vehicle the F9 bootstrap test off `defaults.registry`; repoint the CUETighten and validate tests off the deleted mandatory-CalVer rule. `charly migrate` remains the ONE path for an old config (the rekey-legacy-vm rule: twin `vm:` overlay dropped, orphan `vm:` hard-fails); VM/pod nesting is untouched. Refs #714. Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
plugin-migrate v0.2026270.1917 strips the top-level version stamp from every candidate doc (candy/<name>/charly.yml too), which the remote-cache auto-migration needs so an imported candy manifest passes the #NodeDoc gate. Refs #714. Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
…chema
TestCandyCUESchema_Rejects used the RETIRED bare `candy:` child-node wrapper, which
the loader rejects as a shape error ("no kind discriminator") — so every case passed
vacuously. Rewrite the fixtures in the current node-form (`<name>: {candy: {...}}`)
so each case rejects for its stated constraint, and DELETE the `missing version` case:
with `version:` gone from #Candy a version-less candy is valid (asserted by
cue_tighten_test.go's "candy missing version accepted").
Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…oject Address the last two validator findings on the host leg (#716): - cue_tighten_test.go: the "candy/box bad version format rejected" cases asserted the DELETED CalVer rule; a leftover `version:` is now rejected by CLOSEDNESS (an unknown field), not a format rule. Rename them accordingly, drop the stale "cutover #9: CalVer format" comment, and keep the "missing version accepted" case. - packaging/charly.yml: the removed `packaging.config` section (#PackagingConfig, spec#183) was what shipped /etc/charly/charly.yml — the system-wide project the charly-mcp systemd units resolve via WorkingDirectory=/etc/charly. Replace it with the surviving mechanism: a packaging plan run-step that writes the file (with its plugin-mcp candy ref) into the package/install. Add TestPackagingShipsSystemProject to pin it (replacing the deleted TestPackagingConfigDeclared). Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…box pins Assemble the host leg's final tree: - bump github.com/opencharly/sdk to the merged arbiter tag v0.2026271.738 (PickCandyVersion no longer warns on a re-tag of byte-identical content); - advance the six box/ gitlink pins to the merged distro version-strip commits (the removed entity/project version: surface deleted in their owning repos); - advance the six @github distro import pins to their merge-time tags. The box/*.gitlinks + import pins point at MERGED distro mains (no hand-pin); the submodule strategy resolves them for CI's TestCueBox_Corpus.
# Conflicts: # charly/go.mod # charly/go.sum
…sweep The schema-version removal sweep (#716) edited these test fixtures and left no-op `"" +` / `+ ""` concatenations where the removed `version:` line had been. Delete the empty fragments — the concatenated manifest bytes are byte-identical; gofmt clean, the affected tests pass. Finding 4 (B18) of the final #716 validator verdict at head `2069ab7a`. Assisted-by: OpenCode DeepSeek V4.1 Flash (syntax check only)
The final #716 validator verdict (Block 3) flagged that the merge of current main left plugin-vm at v0.2026270.402 — a DOWNGRADE from the v0.2026271.404 this branch carried, unaccounted in the pin list. Restore the .404 pin; the module builds clean (go build ./... rc=0). Finding 3 of the final #716 validator verdict at head 2069ab7. Assisted-by: OpenCode DeepSeek V4.1 Flash (syntax check only)
The `go` CI job's tools-module sweep failed on `TestContractPinsMatchShared`: tools/generate-packages, tools/golden-cloudinit, and tools/golden-compile still required sdk v0.2026270.1024 + spec v0.2026269.2150 while the shared pin is now sdk v0.2026271.738 + spec v0.2026270.938. Adopted the shared pins via the sanctioned `charly task mods-tidy`; the gomod-canonical contract test and the three tools modules build clean. Assisted-by: OpenCode DeepSeek V4.1 Flash (syntax check only)
…ree newest (#717) plugin-cstream, plugin-example-builder, plugin-kube, plugin-mcp, plugin-ollama, plugin-spice -> newest tags (their old module versions carried the retired entity version: stamp). Result: charly box validate: OK — 0 warnings, 0 errors (from 12) go build ./...: rc=0
…ED /etc/charly/charly.yml (non-vacuous) The prior test only string-matched the run-step command. It now extracts the heredoc body, de-indents it, and parses it as a charly project (repo: + candy: @github:<tag> refs) — so a malformed emitted file (wrong root shape, bad ref) FAILS. Verified with a negative control (wrongroot -> FAIL).
… CLOSED CUE schema requireProjectLoader().CueDocFromYAML now parses the emitted heredoc through the real closed schema, so a wrong root shape (e.g. the retired plugins: form) FAILS — verified with a negative control. Replaces the loose struct-key assertion.
…/charly.yml; assert the repo IDENTITY The shipped system project identified as github.com/opencharly/opencharly (the umbrella/ docs repo) instead of this repo (opencharly/charly), so a systemd-started server would resolve/freshness-check the wrong project. Fix the value, and make TestPackagingShipsSystemProject assert proj.Repo == github.com/opencharly/charly (the negative control now exercises the VALUE, not only the schema).
…/etc/charly/charly.yml f249ce2 wrote github.com/opencharly/opencharly (the umbrella repo); the system project must identify as THIS repo. Tree now matches the assertion in the previous commit.
Review — BLOCKHead SHA: Change class: host source + config + composition refs + generated fixtures (61 files) — code/config, not docs-only. Blocks
(No comment thread was present — 0 comments — so there was no prior-comment intake to disposition.) Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
GATE WAIVER — operator-authorized, scoped to the For a candy-REPO ref-alignment PR in the
The composition proof is not required per-PR: it is proven once, batched, on the assembled Why the per-PR Scope: this waiver applies ONLY to the — posted by |
|
BLOCKS #747 (slug
Agent: |
|
RESOLVED — superseded by #749. The host leg (incl. the schema-versioning removal + version/pin alignment) is re-derived off current |
…the closure (#714, #717, #733) Fold #745's COMPLETE host leg (version.go removal, the full 40-file test sweep, packaging.config -> plan, the box gitlink strips) onto #749's newest pin adoption (sdk v0.2026273.207 / spec v0.2026273.203, newest released plugin/ref tags, the two check/eval-host-project* closure refs). #749 alone carried the pins but missed the 55 structural files, so its go test did not compile; #745's tree (b94765d) is based on the current main tip and is the complete structure. Also folds the #738 producer leg result (plugin-kube#14 + plugin-kubevirt#7 merged, released v2026.275.0411) and adds the box-reconcile-remote-cached bed step for charly#736. Proven on this tree: go build + go vet + go test ./... clean; box validate = 609 candies / 125 boxes / 45 deploys / 0 warnings, 0 errors; the #717 closure fixed-point scan = 0 stale refs across all 49 referenced repos; 0 surviving version: stamps; check-kindcluster-workload PASS (steps=8). Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
…83-aligned) spec#183 DELETED #PackagingConfig (packaging.config) under the operator directive to fully drop the system project from the package config — the loader keeps /etc/charly/charly.yml as a READ location only (loaderkit.DefaultSystemConfigPath), with no package artifact. The landed #745 fold instead re-shipped the file via a packaging.plan run-step on the charly candy — a NEW behavioural change (what the package installs) whose only natural bed cannot run (check-pkg-uninstall is the orthogonal charly#667 witness; charly#752/#748 block it). Per the operator's decision this reverts to the spec#183 directive: the retired config: section is DELETED and NO run-step re-ships the file. The change is now a pure dead-field deletion (R5) with no new behaviour — no bed composes the charly candy (it is package metadata read only by `charly generate-packages`), so per the R10 matrix no bed is required. charly/packaging_test.go: TestPackagingShipsSystemProject → TestPackagingDropsSystemProject, inverted to pin the drop (non-vacuous: re-adding a /etc/charly/charly.yml ship step fails it). Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
…#717 closure (#749) * feat(charly)!: land the schema-versioning-removal host leg + align the closure Remove the in-core LatestSchemaVersion()/calver shim (the schema-versioning removal); bump sdk v0.2026272.1813 + spec v0.2026272.1512; re-pin every compiled-in plugin to its newest released tag; align the distro imports. The closure is #717-clean (box validate: 609 candies / 125 boxes, 0 warnings / 0 errors) and the assembled bed proves it. * fix(testdata): sweep the legacy version: stamp from flat-import-project (R5) The #733 schema-versioning removal deletes the `version:` stamp; a leftover `version:` is a hard CUE `field not allowed`. Remove it from the flat-import fixture (its pinned require was also re-aligned in this PR). * fix(charly)!: complete the host leg — full structure + newest pins + the closure (#714, #717, #733) Fold #745's COMPLETE host leg (version.go removal, the full 40-file test sweep, packaging.config -> plan, the box gitlink strips) onto #749's newest pin adoption (sdk v0.2026273.207 / spec v0.2026273.203, newest released plugin/ref tags, the two check/eval-host-project* closure refs). #749 alone carried the pins but missed the 55 structural files, so its go test did not compile; #745's tree (b94765d) is based on the current main tip and is the complete structure. Also folds the #738 producer leg result (plugin-kube#14 + plugin-kubevirt#7 merged, released v2026.275.0411) and adds the box-reconcile-remote-cached bed step for charly#736. Proven on this tree: go build + go vet + go test ./... clean; box validate = 609 candies / 125 boxes / 45 deploys / 0 warnings, 0 errors; the #717 closure fixed-point scan = 0 stale refs across all 49 referenced repos; 0 surviving version: stamps; check-kindcluster-workload PASS (steps=8). Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated) * fix(bed): give the guest-as-host-check-local step an explicit timeout (#749) The step builds 2 out-of-tree plugins IN-GUEST and runs a full nested `check run`; it far exceeds the ~2m never-hang ceiling, so it was killed mid-run at 2m51s with "no exit status — the process was signalled" (makes check-local-vm FAIL at check-live). The bed's own authoring rule requires an explicit timeout for any step longer than ~120s. Set 900s. Measured on this head: the step's predecessor (guest-project-delivered, rsync) now PASSES; deploy-add PASSES (the plugin-deploy-local path); only this never-hang kill remained. Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system) * chore(refs)!: re-pin the released producers onto the host leg (#738) All producer legs are MERGED + released: layer-kubevirt-operator v2026.275.1217 (the zero-warning fix), plugin-deploy-local v2026.275.1254 → re-pinned here. The test-only local-path `replace`s are REMOVED (they were never shippable); the compiled-in pins stay at sdk v0.2026272.1813 / spec v0.2026272.1512 (the schema-removal line this PR targets — the newer sdk .653 drags spec .203 whose ExtraCandyRefs type-move needs a separate plugin-fleet fan-out, out of scope). box validate = 0 warnings/errors. Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system) * fix(refs): layer-kubevirt is a SEPARATE repo — restore its own newest tag (#738) The re-pin's sed over-broadly matched: `layer-kubevirt` (a distinct repo, newest v2026.272.0825) was bumped to the operator's v2026.275.1217, which does NOT exist in that repo — the bed failed at deploy-add with could not resolve ref "v2026.275.1217" in .../layer-kubevirt.git. Restore layer-kubevirt to v2026.272.0825 (only layer-kubevirt-OPERATOR carries v2026.275.1217). Closure scan back to 0 stale; box validate 0/0. Assisted-by: OpenCode DeepSeek V4.1 Flash (analysed on a live system) * chore(ci)!: re-freeze for the R10-verified body (released-pin bed roster) Body-only re-freeze: the full released-pin R10 roster is now pasted in the PR body (check-kindcluster-workload 8, check-kubevirt-operator 10 [0 warnings], check-local-vm 10 [0 warnings], check-commands-local 6 — all NO override), plus the non-vacuous packaging witness (TestPackagingShipsSystemProject asserts the emitted /etc/charly/charly.yml against the closed CUE schema). The prior run reviewed a body that predated these edits. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated) * fix(packaging)!: drop /etc/charly/charly.yml from the package (spec#183-aligned) spec#183 DELETED #PackagingConfig (packaging.config) under the operator directive to fully drop the system project from the package config — the loader keeps /etc/charly/charly.yml as a READ location only (loaderkit.DefaultSystemConfigPath), with no package artifact. The landed #745 fold instead re-shipped the file via a packaging.plan run-step on the charly candy — a NEW behavioural change (what the package installs) whose only natural bed cannot run (check-pkg-uninstall is the orthogonal charly#667 witness; charly#752/#748 block it). Per the operator's decision this reverts to the spec#183 directive: the retired config: section is DELETED and NO run-step re-ships the file. The change is now a pure dead-field deletion (R5) with no new behaviour — no bed composes the charly candy (it is package metadata read only by `charly generate-packages`), so per the R10 matrix no bed is required. charly/packaging_test.go: TestPackagingShipsSystemProject → TestPackagingDropsSystemProject, inverted to pin the drop (non-vacuous: re-adding a /etc/charly/charly.yml ship step fails it). Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated) * test(packaging): make the drop witness genuine (field + plan surface) The previous TestPackagingDropsSystemProject only scanned plan-step commands, so it did NOT fail when the config: deletion was reverted (the field is not a plan step). Rewrite it to parse the raw tree and fail on EITHER surface — a re-declared packaging.config: field OR a plan run-step that re-ships /etc/charly/charly.yml. Negative-controlled on both. Non-vacuous: re-adding packaging.config → FAIL; re-adding a ship step → FAIL; pristine → ok. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated) * chore(ci): re-freeze for the operator waiver on the packaging piece Body-only re-freeze: the body now cites the operator waiver 5958105090 (@aitrawog), which explicitly extends the R10 gate to the schema-forced packaging deletion. No code change. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated) --------- Co-authored-by: Andreas Trawoeger <[email protected]>
Summary
The charly host leg of the schema-versioning-removal cutover (
#714) plus the complete#717/#739composition + pin sweep — carried forward as a clean thread from#733.charly box validateis now0 warnings, 0 errors.What changes (61 files):
(
charly/version.go: theLatestSchemaVersion()shim; the version-gate tests + test-onlyalias; the entity
Versionreads), and re-adopt the merged contracts:sdk v0.2026271.738,spec v0.2026270.938acrosscharly/go.mod,tools/generate-packages,tools/golden-cloudinit,tools/golden-compile.tools/golden-compile/main.goclears theremoved wire
Version(plan.Version = "") so the golden stays a faithful ground truth.#717/#739). The sixbox/*submodule gitlinks(
box/arch,box/cachyos,box/debian,box/fedora,box/omarchy,box/ubuntu) → themerged distro mains;
charly.yml+packaging/charly.ymlrefs:the six distro
import:refs → newest merged one-source mains (distro-arch v2026.273.0909,cachyos v2026.272.0857,debian v2026.273.0834,fedora v2026.273.1236,ubuntu v2026.273.0824,omarchy v2026.272.0008); the shared@githubcandy refs(
plugin-*/layer-*/pod-*) → newest stamp-free tags.#717).charly/go.mod:version:stamp→ their newest:
plugin-cstream v0.2026272.722,plugin-example-builder v0.2026272.107,plugin-kube v0.2026272.236,plugin-mcp v0.2026272.329,plugin-ollama v0.2026272.330,plugin-spice v0.2026272.430;plugin-box v0.2026270.1607→v0.2026270.1652,plugin-build,plugin-fleet,plugin-migrate,plugin-package,plugin-service(the merged host-leg pins).packaging/charly.yml: the emitted/etc/charly/charly.ymlidentifies asrepo: github.com/opencharly/charly(fixed from the wrong…/opencharly); the retired declarativeconfig:section (the shipping/etc/charly/charly.yml) is replaced by a plan run-step that ships the system-wide charlyMCP project (
/etc/charly/charly.yml) the charly-mcp systemd units resolve viaWorkingDirectory=/etc/charly.How tested
Executed at the head
b94765d8ef85288a4d02aa807decfc27a68fcb58(sanctioned binarycharly 2026.273.x, Go 1.2x).The assembled R10 bed (
check-commands-local, this change) — the#739acceptance:0 warnings, 0 errorsonbox validateand0 advisories,ok: trueon the bed — the#717/#739acceptance, from 12box validateerrors and 72 bed advisories.Rulebook compliance
/charly-internals:go+/charly-internals:git-workflow.version:; thecomposition referenced pre-fix distro boxes — both fixed at source (newer stamp-free tags;
merged distro mains; the module bump).
go getpin; no ad-hoc command, no sleep/retry/magic-number.charlyCLI gap;charly check run/box validate/go build|testused.box validateis clean.go build(all 4 modules),go test, the generator run,box validate, and the bedrun + summary are all pasted above.
deploy_compile_parity_golden.jsonunchanged);
plugins_refs_generated.goderives from each plugin'splugin:block.box validate:0 warnings, 0 errors; the bed:errors: 0, warnings: 0, advisories: 0,ok: true.Change classification
Host source + config + generated fixture (61 files). Gate:
go build(every module) +go testcheck-commands-localR10 bed (0 diagnostics) +box validate(0 warnings) —all pasted. Tier:
fully tested and validated.Agent:
coder-box-alignment· sessionses_f26225bfffferfo4tnJQw1ePqMAssisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Gate coverage — the compiled-in plugin module pins
The diff bumps six compiled-in plugin modules (direct
requires of the charly binary):plugin-box v0.2026270.1607→v0.2026270.1652,plugin-build,plugin-fleet,plugin-migrate,plugin-package,plugin-service— merged refs already validated in their own repos (eachplugin repo's candy gate + its bed), adopted here as the host leg's pins; they are not newly
authored in this PR. The composition refs the assembled bed can exercise (
plugin-clean,plugin-settings,plugin-candy,plugin-box,plugin-authoring,plugin-status,plugin-substrate) run incheck-commands-local(0 diagnostics, pasted). The remainingconsumers (
deploy:buildviaplugin-build,charly migrateviaplugin-migrate, etc.) arecovered by their plugins' own beds, not re-run here (they require a build/migrate venue); by
charly/go.modthey are the same merged tags those repos already gate.Agent:
coder-box-alignment· sessionses_f26225bfffferfo4tnJQw1ePqMAssisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)