Skip to content

feat(spec): ExtraCandyRefs on #BuildRequest — overlay build-resolve widening (#55 step3-II) - #5

Merged
atrawog merged 2 commits into
mainfrom
feat/55-step3II-extracandyrefs
Jul 29, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/55-step3II-extracandyrefs

Conversation

@atrawog

@atrawog atrawog commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

#55 step 3-II — spec leg: ExtraCandyRefs on #BuildRequest

The 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 widen resolveBuildEngine's resolve with an overlay's add_candy set — today resolveBuildEngine hardcodes ExtraCandyRefs: nil.

What lands

  • schema/buildwire.cue: extra_candy_refs?: [...string] @go(ExtraCandyRefs) on #BuildRequest.
  • spec/cue_types_gen.go: generated by task cue:gen (the field on the BuildRequest Go 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; TestGenReproducible PASSES (independently re-run task cue:gen → zero diff); gofmt -l clean. Leaf module (no consumers here).

RDD-proven LIVE (super side, spike since reverted): the new build:generate/OpResolve no-write Op — which threads this field into resolveBuildEngine — was run against real fedora-coder and confirmed to produce the full render-prepped envelope (InitSystem/BakedMetadata/RenderCandyOrder populated), vs empty on build: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)

atrawog and others added 2 commits July 29, 2026 18:30
…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]>
@atrawog
atrawog merged commit 1fdb481 into main Jul 29, 2026
@atrawog
atrawog deleted the feat/55-step3II-extracandyrefs branch July 29, 2026 16:35
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant