Repository navigation
Description
Category
category:delivery
Type
type:spec
Remedy / files the remedy will touch
schema/candy.cue #Packaging (formats → format list over the charly formats, with the per-format metadata re-homed or put to the DESIGN lead), cue-gen; consumers sdk/packagekit and charly packaging/charly.yml. An ipk/msix outcome needs the operator, because DESIGN's format vocabulary has no ipk/msix.
Cited design decision or org-rulebook rule (or none)
DESIGN.cue #Packaging (format!), _packageFormat; D-CANDY-6
Classification
Non-blocking — genuinely separable; left unclaimed for a later session to pick up.
Evidence (verified: commands with output, file:line, measurements)
$ git show origin/main:DESIGN.cue | grep -n -A5 "^#Packaging:"
425:#Packaging: {
426- name!: #Name
427- format!: [...or(_packageFormatWord)] & list.UniqueItems()
428- depend?: {[or(_packageFormatWord)]: #NameSet} // what core itself needs, per package format
429- variant?: {[#Name]: #PackagingVariant} // D-CANDY-6
430-}
$ git show origin/main:DESIGN.cue | grep -n "^_packageFormat:"
206:_packageFormat: {rpm: {}, deb: {}, pac: {}, apk: {}} @vocab(operations)
$ git -C .worktrees/cloud-charly/spec grep -n -E "formats?:|publisher?:|properties?:" HEAD -- schema/candy.cue
HEAD:schema/candy.cue:212: formats?: {[string]: #PackagingFormat} @go(Formats,type=map[string]*PackagingFormat)
HEAD:schema/candy.cue:239: publisher?: string & !="" @go(Publisher)
HEAD:schema/candy.cue:241: properties?: {[string]: string} @go(Properties,type=map[string]string)
Mechanism
spec's #Packaging predates DESIGN's. #485 moved the variant/depend part to DESIGN's shape but kept formats: {[nFPM name]: #PackagingFormat}. That map both names the formats that are built and carries format-only metadata (optdepends, recommends, suggests, msix publisher/properties). DESIGN instead has format!: [...rpm|deb|pac|apk] and no per-format metadata, and its vocabulary has no ipk or msix.
Missed control
spec has no conformance check against DESIGN.cue's #Packaging (the design-check validates DESIGN's own examples, not spec's schema).
Blast radius
Only charly's own packaging candy and the generate-packages plugin read #Packaging. No user-authored candy uses it.
Root fix
Decide with the DESIGN lead whether ipk/msix (and optdepends/suggests/recommends/publisher) belong in DESIGN's #Packaging, then make spec's shape equal DESIGN's in one cutover.
Spike (its result, or none with the reason)
Not spiked: the remedy is a design decision (which formats DESIGN admits), not a mechanism. The schema side is the same cue-gen pattern spec#485 proved.
Agent: cloud-charly · Claude Code session 4f8404c4-b4fe-44e0-90d2-89db3fe800d5
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)
Activity