Repository navigation
feat(spec): ExtraCandyRefs on #BuildRequest — overlay build-resolve widening (#55 step3-II) - #5
Merged
Merged
Conversation
…ngine for overlay (#55 step3-II) The build:generate no-write resolve Op (super side) needs to widen the build resolve with an overlay's add_candy set (mirroring #ResolveProjectRequest.ExtraCandyRefs, which already exists for the project-resolve path). Pure CUE wire-field addition; task cue:gen regenerates cue_types_gen.go reproducibly (TestGenReproducible passes). Backward-compatible optional field — no consumer breakage. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
Merge-time CalVer entry authored by the pr-validator on landing. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (documentation reviewed) Co-Authored-By: Claude Opus 4.8 <[email protected]>
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 23, 2026
#270) The contract module held no skills. AGENTS.md Part II #5 puts a skill in the repo whose code or config it describes, and a skill routing metadata is authored as a `skill:` node beside a `candy:` node in the owning repo `charly.yml` — so the manifest gains ONE concept candy and the two skills whose source of truth is this module CUE schema and wire types. `spec-skill-shelf` is a CONCEPT candy: its `plan:` is a `true` no-op and a `true` check, it ships no install content, composes no box and appears in no image — so its `skill:` nodes add NOTHING to any `ai.opencharly.skill` OCI label. `spec` still ships no image and composes no box, which is why there is still no `discover:`. `.agents/skills` holds the two trees byte-identically from `layer-charly-internals`: `install-plan` (`spec/install_plan.go` + `sdk/deploykit/install_build.go`) and `disposable` (`schema/deploy.cue` + `spec/loadmodel.go`). Both destinations were measured on the tree (opencharly/opencharly#609, re-derived in #611); the `charly/*.go` files those skills once cited — `charly/install_plan.go`, `charly/install_build.go`, `charly/classification.go` — no longer exist. The nodes are routing-ONLY: `name`/`family`/`owner` plus the `triggers:` the carrier declared. `family` stays `internals`, so every `/charly-internals:<skill>` address and the corpus path are unchanged; no `description:` or `content:` is inlined, because the prose is the FILE and an inline body that disagrees with its file is a hard error in the marketplace generator. The manifest header that said `spec owns NO candies/boxes` was true before this change and false after it, so it is corrected in the same commit rather than left to rot. The Go build is untouched: no schema, no package, no Go file, and `charly task cue-gen` is not affected. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed) Co-authored-by: Andreas Trawoeger <[email protected]>
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 23, 2026
…fs they document (#272) The carriers `layer-charly-image`, `layer-charly-pod`, `vm-charly-vm`, `layer-charly-internals-extra` and `layer-charly-local` are skills-only: 0 `.go`, 0 `.cue`, no candy directory. Under `AGENTS.md` Part II #5 a skill lives with the code, plugin or config it describes, and each of these six skills names a def in THIS module's `schema/` whose generated Go types live in `spec/cue_types_gen.go`: `schema/box.cue` (image), `schema/candy.cue` (layer), `schema/pod.cue` (pod), `schema/vm.cue` (vms-catalog, vm-spec) and `schema/local.cue` (local-spec). Each body states its own source of truth — `layer`'s "the `@go()`-annotated `spec/schema/*.cue` defs are the sole source for both the Go param structs and load-time validation", `pod`'s "Schema sources (read these for the canonical truth): `spec/spec/cue_types_gen.go`", `vm-spec`'s "## Source files" table naming `spec/spec/cue_types_gen.go` and `spec/schema/vm.cue`. That is opencharly#606's gate: the entity from the skill's own prose, then where the entity exists, then the negative control. Routing only: each `skill:` node carries `name`/`family`/`owner` plus the two `triggers:` the carriers had, and no inline `description:` or `content:` — an inline body disagreeing with its file is a hard error in the marketplace generator. `family:` is kept unchanged (`image`, `image`, `pod`, `vm`, `internals`, `local`) so every existing `/charly-image:*`, `/charly-pod:*`, `/charly-vm:*`, `/charly-internals:*` and `/charly-local:*` address still resolves; `owner:` becomes the shelf candy, which is what makes `<repo root>/.agents/skills/<name>/SKILL.md` readable. `AGENTS.md` gains the six skills in its R0 list and the `.agents/skills/` tree in its canonical files, and the shelf candy's description gains the authoring defs it now owns — three claims the change would otherwise have left half-true. Nothing is deleted from any carrier here: those removals and retirements belong to the session that claimed the carriers (opencharly/opencharly#600), and the `marketplace` refs switchover is the leg that proves the move end to end. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed) Co-authored-by: Andreas Trawoeger <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#55 step 3-II — spec leg:
ExtraCandyRefson#BuildRequestThe producer leg for #55 step 3-II (the overlay-relocation cutover). The new no-write resolve+render-prep Op on
build:generate(super side) needs to widenresolveBuildEngine's resolve with an overlay'sadd_candyset — todayresolveBuildEnginehardcodesExtraCandyRefs: nil.What lands
schema/buildwire.cue:extra_candy_refs?: [...string] @go(ExtraCandyRefs)on#BuildRequest.spec/cue_types_gen.go: generated bytask cue:gen(the field on theBuildRequestGo struct).Mirrors the pre-existing
#ResolveProjectRequest.ExtraCandyRefs(same concept, already on the project-resolve path). Pure CUE wire-field addition — a backward-compatible OPTIONAL field, no consumer breakage, no logic.Verification
GOWORK=off go build/test ./...green;TestGenReproduciblePASSES (independently re-runtask cue:gen→ zero diff);gofmt -lclean. Leaf module (no consumers here).RDD-proven LIVE (super side, spike since reverted): the new
build:generate/OpResolveno-write Op — which threads this field into resolveBuildEngine — was run against realfedora-coderand confirmed to produce the full render-prepped envelope (InitSystem/BakedMetadata/RenderCandyOrder populated), vs empty onbuild:project's lean resolve. This field is the one wire change that path needs.Producer-first B2: this spec PR → superproject leg (the build:generate Op + overlay relocation + resolved_project_host.go deletion). No sdk leg — sdk doesn't reference the field.
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)