Repository navigation
Conversation
Delete the arbitrary schema-version stamp and its equality gate. Compatibility between charly core and a plugin is ALREADY enforced by unifying the authored document against the CLOSED CUE schema (an unknown or removed field is a hard `field not allowed` error) plus the plugin-provided CUE source spliced onto the host base. A denormalised CalVer copied into every authored file added a second source of truth that could only ever disagree with those, producing a pure re-stamp wave on every schema change and a red-CI sea across the org. Only the CalVer git tags (binary identity, candy/ref pinning) remain real versioning. Removed (spec leg, producer of this B2 chain): - `schema/version.cue` (the `#SchemaVersion` HEAD + `#SchemaFloor` literals) and its generated `spec/version_gen.go` (const `SchemaVersion`/`SchemaFloor`). - The document/entity `version:` on every authored def — `#NodeDoc` (the reserved document directive), `#Box`, `#Candy`, `#Deploy`, and the system-packaging `#PackagingConfig`. `_common.cue`'s `#CalVer` wire regex is deleted with its last user. - The ledger `schema_version:` on `#DeployRecord`/`#CandyRecord` and the `LedgerSchemaVersion` record-format constant (`spec/ledger_records.go`, whose only content was that constant). - `calver.LatestSchemaCalVer`/`SchemaFloorCalVer`/`MustCalVer` and the HEAD/floor parsed vars; `calver` keeps only the pure CalVer parse/compare used for the binary's build identity and git tags. - `internal/schemagen -mode=version` (and its `writeVersion`/`stringConst`/ `renderVersion`) — no schema version to emit; `charly.yml`'s `cue-gen` drops the step, `TestGenReproducible` drops the `version_gen.go` arm. - The `refs` git-cache writer's `version:` stamp (a fresh per-host charly.yml no longer needs one) and its test. The `version:` key is removed from `#NodeDoc`'s reserved-directive exclusion regex on purpose: a leftover `version:` is now an unknown field — a closed-CUE hard error naming it — and `charly migrate` (raw-YAML, loader-independent) strips it. `#Distro.version` and `#Marketplace.version` (semver metadata) and the runtime wire `version:` fields (image/package versions) are untouched — they are not schema stamps. Concrete edits: 16 files, +40/−233. Breaking change + rollback: consumers pin `spec` by tag, so this is inert until a consumer bumps its `require github.com/opencharly/spec`; rollback is a revert of this one commit. How R10-tested (spec leg, CUE + Go contract): - `charly task cue-gen` equivalent (the same concat + `cue exp gengotypes` + `-mode=retag` + `-mode=vocab`): `gengotypes OK`, regen reproducible, and `version` is absent from the generated `Box`/`Candy`/`Deploy` structs and from `DocDirectives`. - `GOWORK=off go build ./...` OK; `go vet ./...` OK; `gofmt -l .` empty. - `GOWORK=off go test ./...` — 20 packages pass, 0 fail (incl. `TestGenReproducible` and the updated `refs` cache test). The full B2 chain (sdk → plugin-migrate → charly + the corpus) lands after this; its R10 is the fresh-rebuild `box validate` on the assembled chain. Assisted-by: opencode Ollama Cloud deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Change class: CUE schema + generated Go + Go mechanism (contract module; breaking Blocks
Comment thread: empty — no comment claims to re-derive. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Follow-on to the schema-versioning removal: the authored `version:` fields are gone, so the resolved projections that carried them are dead. - `#CandyModel.version` / `#CandyView.version` are no longer sourced from an authored candy `version:` (removed); the resolved candy version becomes the source git tag (sdk leg). - `#ResolvedBox.version` (the authored box `version:`) and `#ResolvedBoxView.version` are DELETED; `effective_version` is now derived from the candy chain's source git tags. - `#ResolvedProject.version` (the projection's schema version) is DELETED. - `spec.CandyCandidate.Version` (the per-entity version) is DELETED; `GitTag` is the ONLY version a candidate carries. Assisted-by: opencode Ollama Cloud deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Change class: CUE schema + generated Go + Go mechanism (contract module; breaking Security screen: no T1/T2/T4 findings. T3 scope mismatch — the diff removes the resolved-projection Blocks
Comment dispositions: the sole comment (github-actions[bot], head Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: cross-repo producer leg — CUE schema + generated Go + Go mechanism ( Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
Cross-reference from the sdk#301 / C6 cutover (no action requested on this PR itself). sdk#301 re-keyed the per-host VM state from The remaining piece — a So the re-key migration's correct home is the plugin-migrate leg of this versioning-removal chain, as a versionless entry. Flagging it here so it lands with that leg rather than as a competing |
|
Acknowledging the cross-reference from the sdk#301 / C6 unified-deploy-identity cutover — thanks, this is exactly the kind of cross-leg coupling that needs to be caught. Confirmed and in scope. The versionless
So the re-key entry lands with that leg and needs no One thing I need from you before I write the entry (the legacy key is lossy).
Tell me which arm (3) should take (or paste the rule you have in mind) and I'll land the entry with the plugin-migrate leg, with a unit test proving idempotency (second Flagging for the other legs of this chain too (sdk / charly), since the re-key must run against the per-host overlay ( |
…label Two follow-on fixes from the assembled-chain R10 run: 1. Drop `#PackagingConfig` / `packaging.config` entirely. The package no longer ships a system-wide `/etc/charly/charly.yml`; `charly/packaging/ charly.yml` loses its `config:` block, `sdk/packagekit` loses `configContents`/`renderConfig`, and the CUE def + `#Packaging.config` field are deleted. The loader STILL checks `/etc/charly/charly.yml` as a system config location (`loaderkit.DefaultSystemConfigPath` unchanged) — only the package emission is gone. 2. `ExtractMetadata` (container/box_metadata_coneb.go) now uses `ai.opencharly.box` — not `ai.opencharly.version` — as the charly-vs-non-charly boundary. The versioning removal made an image composed only of local (in-tree) candies carry an EMPTY `EffectiveVersion` (no source git tag to derive from); keying the boundary on the version label made every such image look like a plain registry base, so `charly check box` printed "No plan steps defined" and the pod bed's `config` step failed. `ai.opencharly.box` is emitted by every opencharly image and is the correct marker. Assisted-by: opencode Ollama Cloud deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: cross-cutting unified-schema contract change — CUE schema + generated Go + Go mechanism ( Placement: CORRECT — the removed config/schema stamp is an authored wire surface; its CUE defs and generated Go belong in Security screen: T1/T2/T4 clean. T3 scope mismatch — the diff does more than the summary claims (see Block 1). Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: cross-cutting unified-schema contract change — CUE schema + generated Go + Go mechanism ( Security screen: T1/T2/T3/T4 clean — no embedded directives, no secrets/egress, no guardrail weakening, no supply-chain or new-core-mechanism imports; the Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Auto-closed: 5 unanswered BLOCK verdictsThis PR has received 5 validator Why: re-running the validator against the same unfixed head only adds another BLOCK and grows this PR's comment thread, which is what drives the reviewer into a runaway. The loop is bounded here instead. What to do: open a NEW pull request from a fresh branch with every finding from the BLOCK verdicts below already fixed, rather than continuing on this head. Each BLOCK comment lists the exact findings; read them all and fix them before opening the new PR. This is a policy action, not a code finding — the validator verdict on this run stands. |
R10 evidence for A2/B12 (assembled cross-chain tree) — the producer leg is not independently buildable(Evidence comment only. This session did not push to This supplies the missing R10 end-to-end gate evidence for the A2/B12 finding from the Headline resultOn the assembled tree built by the recipe below, Assembled-tree recipe (exact commands run)UMB=/home/atrawog/Sync/Atrapub/no/opencode/opencharly
# Fresh worktrees owned by THIS session (slug r10-spec176). The
# .worktrees/plugin-requires/{spec,sdk,charly} worktrees belong to another
# active session (branch feat/c7-step-provider-materialize) and were NOT touched.
git -C "$UMB/spec" worktree add --detach "$UMB/.worktrees/r10-spec176/spec" c213a81d4341a24605f33f00c80431b7869b98bb
git -C "$UMB/sdk" worktree add --detach "$UMB/.worktrees/r10-spec176/sdk" origin/main
git -C "$UMB/charly" worktree add --detach "$UMB/.worktrees/r10-spec176/charly" origin/main
# spec branch content in place. c213a81 is TREE-IDENTICAL to 79ebd0b3
# (`git diff --stat 79ebd0b3 c213a81` is EMPTY; c213a81 is an empty docs-freeze commit):
git -C "$UMB/spec" rev-parse HEAD # c213a81d4341a24605f33f00c80431b7869b98bb
# consumer assembly (replace spec with the branch; GOWORK=off)
( cd "$UMB/.worktrees/r10-spec176/sdk" && GOWORK=off go mod edit -replace github.com/opencharly/spec="$UMB/.worktrees/r10-spec176/spec" )
( cd "$UMB/.worktrees/r10-spec176/charly/charly" && GOWORK=off go mod edit -replace github.com/opencharly/spec="$UMB/.worktrees/r10-spec176/spec" )
# fresh rebuild
cd "$UMB/.worktrees/r10-spec176/charly"
env -u GOFLAGS bash scripts/bootstrap-charly.sh
|
Answer: the orphaned
|
|
This work landed — the chain moved on.
Follow-up coordination lives on #177 (C7) and #183 (the landed leg). Nothing further is needed on this PR. |
Summary
Delete the arbitrary config/schema version stamp and its equality gate from the
speccontract module — the producer leg of the schema-versioning removal chain (spec→sdk→plugin-migrate→plugin-box/plugin-fleet→charly).Why. Compatibility between charly core and a plugin is already enforced by unifying the authored document against the CLOSED CUE schema — an unknown or removed field is a hard
field not allowederror — plus the plugin-provided CUE source (PluginSchema{CueSource, InputDefs}) spliced onto the host base. A denormalised CalVer copied into every authored file added a second source of truth that could only ever disagree with those two, and the equality gate (GateSchemaVersiondemands the file stamp == the binary's embedded HEAD) produced a pure re-stamp wave on every schema change. Measured: 376 per-repocandyCI gates pinned to old charly tags are RED org-wide withconfig schema … is newer than this charly supports, for zero shape reason. Only the CalVer git tags (binary build identity, candy/ref pinning) remain real versioning.What changed — 23 files, +59/−421 (3 commits)
Commit 1 (
2848350) — authored-surface removal:schema/version.cue(#SchemaVersion/#SchemaFloor) + generatedspec/version_gen.go— DELETED.version:on#NodeDoc,#Box,#Candy,#Deploy,#PackagingConfig;_common.cue's#CalVerregex.schema_version:on#DeployRecord/#CandyRecord+LedgerSchemaVersion(spec/ledger_records.go).calver.LatestSchemaCalVer/SchemaFloorCalVer/MustCalVer+ HEAD/floor vars.internal/schemagen -mode=version; thecharly.ymlcue-genstep;TestGenReproducible's version arm.refsgit-cacheversion:stamp + its renamed test.versionremoved from#NodeDoc's reserved-directive regex → a leftoverversion:is a closed-CUE hard error;charly migratestrips it.Commit 2 (
9bd3b59) — resolved-projection follow-on:#ResolvedBox.version,#ResolvedBoxView.version,#ResolvedProject.version,spec.CandyCandidate.Version— DELETED;effective_versionderives from source candy git tags.schema/instrument.cue+spec/charly_methods.gostale#CalVer/#SchemaVersioncomments swept;cue_types_gen.goregenerated.Commit 3 (
79ebd0b) — R10-driven fixes:#PackagingConfig+#Packaging.configDELETED: the package no longer ships/etc/charly/charly.yml. The loader STILL checks that path as a system config location (loaderkit.DefaultSystemConfigPathunchanged) — only the package emission is gone.ExtractMetadata(container/box_metadata_coneb.go) now usesai.opencharly.box, notai.opencharly.version, as the charly-vs-non-charly boundary — the versioning removal makes a local-only image carry an EMPTYEffectiveVersion, so a version-keyed boundary misclassified it as a plain base (found live:charly check boxprinted "No plan steps defined"; the pod bed'sconfigstep failed).ai.opencharly.boxis emitted by every opencharly image.#Distro.version/#Marketplace.version(semver metadata) and runtime wireversion:fields (image/package versions) are untouched.Consumer liveness (checked against consumers'
origin/main)Those are exactly the
sdk/charly/plugin-migratelegs of this chain. Consumers pinspecby tag, so this is inert until each bumps itsrequire; rollback is a revert.How tested
Producer gate (CUE codegen + Go build/vet/test), executed live:
R10 end-to-end gate — RUN on the assembled tree (
spec+sdk+plugin-migrate+plugin-box+plugin-fleet+charly, built locally withreplaces). Adisposable: truepod bed that exercises the changed schema-load path (a self-contained project:discover:+ a local candy + a candy-image + a pod bed) ran the fullcharly check runsequence:charly box validateon a real project (plugin-spice, version stripped bycharly migrate) also passes:OK — checked 7 distros, 7 builders; 0 warnings, 0 errors. Theupdate+check-live-rebuildsteps are the fresh-rebuild R10 acceptance leg.Rulebook compliance
candygates to the equality gate; RCA'd the empty-EffectiveVersionimage-misclassification found live.ExtractMetadatafix are in this tree, not deferred.git statusbefore staging; PR-only, no force-push.Cross-leg coordination
A cross-reference from the sdk#301 / C6 unified-deploy-identity cutover asks that a versionless
charly migrateentry re-keying orphaned legacyvm:<dashed>per-host entries land with the plugin-migrate leg of this chain (no#SchemaVersionbump). Acknowledged and scoped there; the exact identity-recovery rule (the legacy key is lossy) is being confirmed in the PR thread.Change classification
charly task cue-genreproducibility +go build/go vet/gofmt+go test ./...+ the assembled-tree disposable bed.fully tested and validated— the producer gate passed and the changed schema-load path ran live on the assembled tree's fresh-rebuild bed (steps=14).Assisted-by: opencode Ollama Cloud deepseek-v4.1-flash (fully tested and validated)