Repository navigation
fix(schema): drop the dead #Pacstrap fields keyring_init_cmd and mirrorlist_url - #77
Conversation
…orlist_url Second half of the opencharly/charly#477 cutover. The authored usages were removed in opencharly/charly#484 (merged), so nothing declares these any more and the schema can drop them. Both had ZERO Go consumers: the only occurrences of KeyringInitCmd and MirrorlistURL anywhere in the umbrella were this declaration and the types it generates. They read as configuration and did nothing — charly's own omarchy pacstrap block carried comments explaining it deliberately avoided them for exactly that reason. schema/distro.cue -- the two field declarations spec/cue_types_gen.go -- regenerated by `task cue:gen`, not hand-edited Claude-Session: https://claude.ai/code/session_016fnPmYiC6ZkqXSi6D8PAP6
Review — PASSHead SHA: Security screen: PASS — no scope mismatch (diff is exactly the two dead fields + regenerated types), no secrets/exfiltration, no weakened guardrails, no supply-chain change. Checklist: All applicable rules PASS or NA.
Minor note (non-blocking): the body's "only occurrences anywhere in the umbrella" phrasing is loose given the acknowledged Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
…params (#5) Third and last instance of the opencharly/charly#477 cutover. keyring_init_cmd and mirrorlist_url have zero Go consumers anywhere in the umbrella; the authored usages went in opencharly/charly#484 and the spec declarations in opencharly/spec#77. Regenerating the params with the pinned cue (v0.16.1, the same gengotypes + retag pipeline spec's `task cue:gen` runs) removes them — and also surfaced that the committed file had DRIFTED from its own schema. It was missing fields the schema already declares: + Disk_layout DsDiskLayout + Installer DsInstaller + (and a further block at the end of the file) So this commit is the two dead fields going out plus the generated projection catching up with its source. Both belong in the same change: a generated file that does not match its schema is not a smaller problem than the dead fields that prompted looking at it. Regenerated, never hand-edited: 1. cue exp gengotypes over schema/distro.cue headed `package params` + @go(params) 2. spec's schemagen -mode=retag to double the json tags with yaml tags 3. gofmt Claude-Session: https://claude.ai/code/session_016fnPmYiC6ZkqXSi6D8PAP6 Co-authored-by: atrawog <[email protected]>
Review — PASSHead SHA: Security screen: PASS — no scope mismatch (diff is exactly the two dead fields + regenerated types), no secrets/exfiltration, no weakened guardrails, no supply-chain change. Checklist: All applicable rules PASS or NA.
Comment intake: One prior Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
Second half of the opencharly/charly#477 cutover. The authored usages were removed in opencharly/charly#484 (merged), so nothing declares these fields any more and the schema can drop them.
Both had zero Go consumers: the only occurrences of
KeyringInitCmdandMirrorlistURLanywhere in the umbrella were this declaration and the types generated from it. They read as configuration and did nothing — charly's own omarchy pacstrap block carried comments explaining that it deliberately avoided both for exactly that reason, whilearchandcachyoswent on authoring them.spec/cue_types_gen.gois regenerated bytask cue:gen, not hand-edited.How tested
The diff is exactly the declaration and its generated projection —
vocab_gen.goandversion_gen.goare byte-identical after regeneration, so this removes a field without moving the schema version.Ordering
This is the second of two PRs, and the order was forced: removing the schema first would have rejected a
charly.ymlthat still authored the fields. So the authored usage went first (charly#484, merged, fullgo test ./charly/green andcharly box validateclean), and the declaration follows here. At no point was an authored field rejected by the schema, and at no point was a live consumer left without its field — there were none.opencharly/plugin-distrocarries its own copy of these two lines incandy/plugin-distro/schema/distro.cue; that is the remaining instance and goes next, on the same evidence.Rulebook compliance
Change classification
task cue:genreproducing the generated file,go build ./..., and the fullgo test ./...suite on the committed treefully tested and validated— regenerated rather than hand-edited, and the whole suite passes against the removalAssisted-by: Claude Code Anthropic Opus 5 (fully tested and validated)