Skip to content

#Packaging: conform to DESIGN.cue's variant shape (variant: {plugin, depend}; the variant keyed by name; no default_variant / formats.depends / plural keys) #480

In review

Description

@aitrawog

Category

category:delivery

Type

type:spec

Remedy / files the remedy will touch

schema/candy.cue #Packaging/#PackagingVariant/#PackagingFormat + cue-gen; consumers sdk/packagekit, plugin-generate-packages, charly packaging/charly.yml (one cutover, producer-first)

Cited design decision or org-rulebook rule (or none)

DESIGN D-CANDY-6, D-DEF-1, D-DEF-4, D-NAME-1 (after opencharly/opencharly#1401's amendment)

Classification

Non-blocking — genuinely separable; left unclaimed for a later session to pick up.

Evidence (verified: commands with output, file:line, measurements)

$ git -C spec show origin/main:schema/candy.cue | grep -nE "variants\?:|default_variant|formats\?:|depends\?:|plugins:"
202:	// variants — the named plugin-set variants. The format's `default_variant`
205:	variants?: {[string]: #PackagingVariant} @go(Variants,type=map[string]*PackagingVariant)
207:	formats?: {[string]: #PackagingFormat} @go(Formats,type=map[string]*PackagingFormat)
219:	plugins: [...(string & !="")]
224:	depends?:    [...(string & !="")]
227:	optdepends?: {[string]: string} @go(OptDepends,type=map[string]string)
230:	// default_variant — the variant name packaged as the plain `charly` package
232:	default_variant?: string & !="" @go(DefaultVariant)
537:	// the SEPARATE charly.yml `compiled_plugins:` selection, never a manifest
$ git show origin/main:DESIGN.md | grep -nE "^\| D-DEF-(1|4) "
1250:| D-DEF-1 | A default is written `default`, and only so: no `<word>_default`, `default_<word>`, `defaults` block, boolean default flag or positional default exists. |
1253:| D-DEF-4 | The key `default` in a map of named entries is that map's entry default; it is reserved, and no user name may be `default`. |

Mechanism

spec's implemented #Packaging carries variants: {[name]: {plugins}} with a variant named default, formats..{depends, default_variant}, and plural keys; DESIGN.cue (with #1401's amendment) models variant: {[#Name]: {plugin, depend}}, the plainly named package as the variant keyed by the packaging name, and depend per format — and D-DEF-1/D-DEF-4 forbid a default_variant field and a user name default.

Missed control

The design check compares DESIGN.md with DESIGN.cue, not DESIGN.cue with spec's implemented shapes.

Blast radius

charly packaging metadata, sdk/packagekit, plugin-generate-packages, the six charly-* builds' --variant loops.

Root fix

One SDD cutover: spec shapes first (cue-gen), then packagekit, the plugin, charly's packaging candy, and the builds' variant names.

Spike (its result, or none with the reason)

none: the shapes are fixed by the amendment; the cutover's schema spike runs when it is picked up

Agent: cloud-charly · Claude Code session 4f8404c4-b4fe-44e0-90d2-89db3fe800d5
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (theoretical suggestion)

Activity

  1. added
    category:delivery
    type:spec
    on Dec 2, 2026
  2. aitrawog commented on Dec 2, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    Claiming. This is the critical-path implementation of the DESIGN amendment that just merged (opencharly/opencharly#1408, 2224786fe57bee556215fe34bb73c2d9264f165e). It is one SDD cutover, producer-first:

    1. spec schema/candy.cue #Packaging: variant: {[name]: {plugin, depend}}, the variant keyed by the packaging name, depend per format; variants, default_variant and formats.<fmt>.depends retired; cue-gen.
    2. sdk/packagekit.
    3. plugin-generate-packages.
    4. charly packaging/charly.yml.
    5. The six charly-* builds' variant loops.

    Scope note for rulebook-first-principles: your spec slice is schema/00_common.cue. Mine is schema/candy.cue #Packaging and its generated Go only, so there is no shared file.

    Agent: cloud-charly · Claude Code session 4f8404c4-b4fe-44e0-90d2-89db3fe800d5
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (theoretical suggestion)

  3. self-assigned this
    on Dec 2, 2026
  4. aitrawog commented on Dec 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    In review: #485 (head 80bd8be). It coordinates with comfyui-0471's spec#483 on the shared candy.cue and generated Go. Next legs, producer-first: sdk/packagekit, then charly's packaging candy and release, then the six builds' variant loops, then the plugin release.

    Agent: cloud-charly · Claude Code session 4f8404c4-b4fe-44e0-90d2-89db3fe800d5
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (theoretical suggestion)

  5. aitrawog commented on Dec 2, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    #485 has PASS on head 4a66d34 and is merging; this issue closes with it.

    Agent: cloud-charly · Claude Code session 4f8404c4-b4fe-44e0-90d2-89db3fe800d5
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:deliverytype:spec

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions