Skip to content

fix(schema): drop the dead #Pacstrap fields keyring_init_cmd and mirrorlist_url - #77

Merged
github-actions[bot] merged 2 commits into
mainfrom
fix/drop-dead-pacstrap-schema-fields
Aug 30, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
fix/drop-dead-pacstrap-schema-fields

Conversation

@atrawog

@atrawog atrawog commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

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 KeyringInitCmd and MirrorlistURL anywhere 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, while arch and cachyos went on authoring them.

#Pacstrap: {
	base_package?: [...string] @go(BasePackages)
-	keyring_init_cmd?: string @go(KeyringInitCmd)
-	mirrorlist_url?:   string & =~"^https?://" @go(MirrorlistURL)
	extra_repo?: [...#PacstrapRepo] @go(ExtraRepos)
	runtime_pacman_conf?: string @go(RuntimePacmanConf)
}

spec/cue_types_gen.go is regenerated by task cue:gen, not hand-edited.

How tested

$ task cue:gen
cue:gen: regenerated spec/{cue_types_gen.go,vocab_gen.go,version_gen.go}
cue:gen exit=0

$ grep -c 'KeyringInitCmd\|MirrorlistURL' spec/cue_types_gen.go
0

$ go build ./...
build exit=0

$ go test ./...
packages ok: 18   (no failures)

$ git status --porcelain
 M schema/distro.cue
 M spec/cue_types_gen.go

The diff is exactly the declaration and its generated projection — vocab_gen.go and version_gen.go are 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.yml that still authored the fields. So the authored usage went first (charly#484, merged, full go test ./charly/ green and charly box validate clean), 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-distro carries its own copy of these two lines in candy/plugin-distro/schema/distro.cue; that is the remaining instance and goes next, on the same evidence.

Rulebook compliance

  • R1 (RCA) — the zero-consumer claim is a grep across the umbrella, corroborated by charly's own inline comments documenting the fields as dead.
  • R2 (no deferral) — charly#477 was mine, filed rather than fixed; this is the schema half of actually fixing it.
  • R3 (no duplication) — removes a second, non-functional way to express keyring init and mirror selection.
  • R4 (no workarounds) — the fields are deleted; the "it's dead, don't use it" comment in charly was itself the workaround, and it is gone too.
  • R5 (delete legacy completely) — why this is sequenced across repos rather than left half-done with the schema still advertising fields nothing reads.
  • R6 (git safety) — feature branch, no force-push, no hook bypass.
  • R7 (prove the gate) — regeneration, build and the full package suite are pasted above.
  • SDD (schema-driven) — the CUE declaration is the source and the Go types are regenerated from it; no generated file was edited by hand.

Change classification

  • Change class: schema change (CUE declaration + regenerated Go types)
  • Verification gate: task cue:gen reproducing the generated file, go build ./..., and the full go test ./... suite on the committed tree
  • Attribution tier: fully tested and validated — regenerated rather than hand-edited, and the whole suite passes against the removal

Assisted-by: Claude Code Anthropic Opus 5 (fully tested and validated)

…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
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: a518b0823777 (branch: fix/schema-drop-dead-pacstrap-fields)

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.

  • A1/A2/A3: Body accounts for both changed files; pasted output for task cue:gen, grep -c (0 hits), go build, go test (18 pkgs ok), git status; rulebook-compliance section answers R1–R7 + SDD; ends with the exact *Assisted-by: Claude Code Anthropic Opus 5 (fully tested and validated)* footer. Tier justified for this schema-removal class (regenerated, build + full suite green).
  • SDD: CUE declaration is the source; cue_types_gen.go regenerated in the same commit, not hand-edited; vocab_gen.go/version_gen.go byte-identical (absent from diff, consistent).
  • R5/R2: Cross-repo sequencing is legitimate and forced (schema-first would reject authored fields); remaining plugin-distro instance is explicitly named as the next step — not a vague deferral.
  • B16 placement: CORRECT — schema removal lives in spec/schema, generated types follow the CUE source.
  • B18: Clean diff, no lint/gofmt issues, removes dead code.

Minor note (non-blocking): the body's "only occurrences anywhere in the umbrella" phrasing is loose given the acknowledged plugin-distro copy, but the operative "zero Go consumers" claim is consistent and the body is transparent about the remaining instance.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 30, 2026 11:06
github-actions Bot pushed a commit to opencharly/plugin-distro that referenced this pull request Aug 30, 2026
…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]>
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 4979439e3af1 (branch: fix/drop-dead-pacstrap-schema-fields)

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.

  • A1/A2/A3: Body accounts for both changed files; pasted output for task cue:gen, grep -c (0 hits), go build, go test (18 pkgs ok), git status; rulebook-compliance section answers R1–R7 + SDD; ends with the exact *Assisted-by: Claude Code Anthropic Opus 5 (fully tested and validated)* footer. Tier justified for this schema-removal class (regenerated, build + full suite green).
  • SDD: CUE declaration is the source; cue_types_gen.go regenerated in the same commit, not hand-edited; vocab_gen.go/version_gen.go absent from diff, consistent with the byte-identical claim.
  • R5/R2: Cross-repo sequencing is legitimate and forced (schema-first would reject authored fields); remaining plugin-distro instance is explicitly named as the next step — a named routing, not a vague deferral.
  • B16 placement: CORRECT — schema removal lives in spec/schema, generated types follow the CUE source.
  • B18: Clean diff, no lint/gofmt issues, removes dead code.

Comment intake: One prior github-actions[bot] review (PASS) — verified-non-blocking; its claims re-derive cleanly against the current head/diff (same two-file change, same evidence).

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot merged commit 0c48f38 into main Aug 30, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
@aitrawog
aitrawog deleted the fix/drop-dead-pacstrap-schema-fields branch September 25, 2026 19:10
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