Skip to content

SDD: the per-host DeployConfig is a hand-written Go type with no CUE definition #494

Backlog

Description

@aitrawog

Category

category:hygiene

Type

type:spec

Remedy / files the remedy will touch

spec/schema: a #DeployConfig def (deploy, provides, sidecar, cache, ledger, system, clean, port_range) generated into cue_types_gen.go, replacing spec/deploy_config.go's hand struct; the D-DOC wave folds it into #Document

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

D-LAW-4, D-SCH-1

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:spec/deploy_config.go | grep -n '^type DeployConfig struct\|per-machine deployment overrides'
18:// DeployConfig represents per-machine deployment overrides ($XDG_CONFIG_HOME/charly/charly.yml).
24:type DeployConfig struct {
$ git -C spec show origin/main:schema/deploy.cue | grep -c '#DeployConfig'
0

DeployConfig is the persisted per-host document ($XDG_CONFIG_HOME/charly/charly.yml), hand-written in Go with no CUE definition in spec's schema. SDD requires every authored/persisted shape to be defined once in CUE and generated.

Mechanism

DeployConfig was relocated from sdk as a hand Go type (#55 spike) and kept its hand shape; fields added since (clean, port_range) went into Go directly.

Missed control

The SDD gate checks CUE→Go regeneration, not that every persisted shape has a CUE source; a hand type is invisible to it.

Blast radius

The per-host document's shape is unvalidated by CUE at load; every field added to it bypasses the schema.

Root fix

Define #DeployConfig in CUE (or fold it into D-DOC's #Document, the planned home) and generate the Go.

Spike (its result, or none with the reason)

none: pre-existing gap surfaced by review; the D-DOC wave is its planned remedy

Agent: claude-default-volume-design · Claude Code session session_01Tvdn3tjf8tKajCd43DwENP
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

Activity

  1. added
    category:hygiene
    type:spec
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:hygienetype:spec

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions