Repository navigation
fix(kit): delete the retired acme_email use — the contract field is gone - #563
Merged
Merged
Conversation
opencharly/spec#379 deleted `acme_email` from the schema on purpose, so every sdk tag at or after that merge fails to compile against the released contract (`meta.AcmeEmail undefined`). The field is retired, not deprecated: nothing sources it any more, so every sdk reference goes in the same change (R5). - kit/checkvars.go — the `ACME_EMAIL` entry in the build-time variable map is DELETED: a box's metadata can no longer carry an ACME address. Nothing in charly's own plans used the variable; the one live consumer is Traefik's OWN `${ACME_EMAIL:-…}` expansion inside a container, which reads the container's process environment, so an operator who needs it passes it as a deploy `env:` entry (a first-class surface, untouched by this change). - deploykit/deploy_file.go — the overlay→metadata copy of `overlay.AcmeEmail` is DELETED, and the schema-v4 note no longer names the field. - deploykit/capabilities.go — `"AcmeEmail"` is removed from DeployOnlyCapabilityFields (it cannot be a spec.BoxMetadata field any more), and the two comments listing it reworded. - buildkit/config_resolve.go — the resolve note reworded. - kit/checkvars_test.go — the fixture and the expected-map entry removed; the whole-map DeepEqual remains as the regression guard against a field-derived var coming back. - go.mod/go.sum — `require github.com/opencharly/spec v0.2026322.1814`, and no replace. Refs: opencharly/spec#379, opencharly/spec#384 Agent: sdk-store Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 18, 2026
…, leg 2 of 3) (#564) The loader derived its own copy of the #ResourceKind membership at package init: resourceKindSet = sliceSet(spec.ResourceKinds) so the parse and the contract held two independent derivations of one list that could only agree by luck. The parse now asks spec.ResourceKindSet() at every consult (memberDisc and the deploy-body member scan), and the copy is gone. sliceSet stays standing for its six other callers; only the resource-kind site moves. RED-first, on the right claim. The test makes spec.ResourceKinds MOVE and asks the parse, so it fails while the loader answers from its own copy and passes only when the verdict comes from the contract: memberDisc does not see a word the composed schema now declares: the loader answers from a snapshot taken at package init, so its verdict can disagree with spec.ResourceKindSet() The observable is divergence, not compilation. The earlier `undefined: ResourceKindSet` failure available on an un-bumped tree was refused for exactly that reason: it proves a symbol is missing, not that the two derivations can disagree. Base moved during the wait, deliberately and for a measured reason: this branch was rebased from sdk#561's head (8de8a57, carrying the spec v0.2026322.1616 bump) onto aec1d52, because #561 was CLOSED as a policy action while its content landed through #563 and the deploykit fix. The redundant commits are dropped rather than inherited, which is why the diff is one behaviour change and not a pin bump. Premise re-measured at the new tip (spec v0.2026322.1814 carries spec.ResourceKindSet; loaderkit/parse.go:35 still held its own copy), not assumed. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
opencharly/spec#379retiredacme_emailfrom the schema — not deprecated, deleted.sdkstill read it in four places, so every sdk tag at or after that merge fails to compileagainst the released contract (
meta.AcmeEmail undefined (type *spec.BoxMetadata has no field or method AcmeEmail)). This change deletes every reference and adopts the tag that retired it.What breaks for consumers — the behaviour change, named.
ACME_EMAILis no longer populatedfrom a box's metadata. It cannot be: the contract has no field to carry it, so there is nothing to
copy into the variable map. Concretely, for a
charlyplan step or deploy template that used${ACME_EMAIL}:run:/check:stepanywhere in this repo, charly's candies, or the boxes that expands
${ACME_EMAIL}from charly'svariable map.
pod-traefik/traefik.yml:27(
email: ${ACME_EMAIL:[email protected]}). That${…}is expanded by Traefik inside thecontainer, from the container's process environment — not by charly's variable map — so it is
unaffected by this change as long as the operator supplies the value the way that surface always
worked: a deploy
env:/env_file:entry. What is gone is the second, implicit source: puttingacme_email:on a box/deploy and having charly hand it to the variable map. That authoringsurface was already gone with
spec#379; this PR is where the code catches up, so the fallback[email protected]is what a Traefik deploy that relied on the metadata path will now use —silently, which is why it is stated here rather than left to be discovered.
deploykit's overlay→metadata copy and theDeployOnlyCapabilityFieldsexemption existed only to carry the field from the overlay to the metadata; both go with it.
The producer-first ordering defect — this PR is the repair.
spec#379retired the fieldwithout the consumer moving first, and not in the same cutover. The rulebook's relocation
invariant is explicit: the replacement must be merged at its new home before the removal, or
both land in one change — otherwise, at the commit where the producer drops the field, the
consumer is broken on
mainand every sdk release until the repair lands. That is exactly whathappened:
spec v0.2026322.1356(which carries#379) cannot be consumed by any sdk tag, so thesdk had to follow the spec tag rather than precede it. The order is recorded here so the next
reader sees why this leg is a repair and not a cleanup.
Files:
kit/checkvars.go(theACME_EMAILmap entry),kit/checkvars_test.go(fixture +expectation),
deploykit/deploy_file.go(theoverlay.AcmeEmailcopy + the schema-v4 note),deploykit/capabilities.go("AcmeEmail"exemption + two comments),buildkit/config_resolve.go(note),
go.mod/go.sum(require github.com/opencharly/spec v0.2026322.1814).Head
9331191f748cf4f20f88534559d4fc34620f1c27(7 files changed, 30 insertions(+), 35 deletions(-)).How tested
The repo's authoritative gate is
.github/workflows/ci.yml(gofmt, vet, golangci-lint v2.13.2,test, and the four-arch cross-compile). Every command ran in
/home/atrawog/Sync/Atrapub/a/dsh/opencharly/.worktrees/remove-acme/sdkunderGOWORK=off GOTOOLCHAIN=go1.26.8 GOTMPDIR=~/.cache/go-tmp TMPDIR=/tmp/cs.go test -count=1 ./...is RED on THIS host, and the red is pre-existing and environmental.One test fails —
deploykit.TestResolveBoxRef_BoxShortName— and it fails identically on anunmodified
origin/mainworktree that carries none of my changes:Its cause is a disagreement between two readers of one engine store (
kit.ListLocalImagesliststhe name; the contract's
container.ResolveLocalImageRefcannot find it), it reproduces onpristine
main, and it skips on a host with no local images — i.e. on CI's runners. It is RCA'dand FILED as #562 (see
## Filed issues), not suppressed here. With that one armexcluded, the suite is green, and the exclusion is named:
One anomaly during the gates, RCA'd. The first
golangci-lint run ./...after the version bumppanicked inside
goanalysis'sloadFromSourcewith "file requires newer Go version go1.27(application built with go1.26)". It is an analysis-CACHE artifact, not a code finding: the same
command with a FRESH cache directory returns
0 issues,go vetandgo buildare clean under thesame toolchain, and the default-cache run is ALSO green immediately afterwards (the stale entry was
replaced). Evidence, both arms:
The repo's own
AGENTS.mddocuments this family of mismatch (there asexport data version 5 > maximum 4): golangci-lint v2.13.2 is itself built with a go1.27 toolchain and its cache key does notinclude that fact, so a shared
~/.cache/golangci-lintcan carry an entry the go1.26 type-checkercannot re-load. Nothing in the change is implicated, and the final tree is green.
Rulebook compliance
go,plugin,git-workflow,strict-policy,root-cause-analyzer,cutover-policy,check), plus this repo'sAGENTS.mdin the worktree.TestResolveBoxRef_BoxShortNamefailure (RCA'd, proven on a pristine tree, FILED as deploykit: TestResolveBoxRef_BoxShortName fails on any store holding a name the contract's resolver cannot find (two readers of one store disagree) #562) and thegolangci-lintcache panic (RCA'd as an analysis-cache/toolchain artifact with both arms pasted, then re-run green). The change's own four removed references are fixed here, not filed.DeployOnlyCapabilityFieldsexemption existed only for this field and is not replaced by anything.//nolint, no fallback that would keep a var alive from a second source, no sleep or retry. The lint anomaly was diagnosed with a fresh-cache arm before the re-run rather than being retried until green.The four remaining lines are retirement notes (each says "retired"/"gone"), never a stale
reference: a reader landing there learns why the field is not in the map rather than being told it
is. No live reference survives — that is what the 0s above assert.
git status --shortwas empty before the commit and after every gate; only this worktree's own paths were touched, nothing was force-pushed, and no history was rewritten.go build ./...rc=0 atspec v0.2026322.1814, plus the whole suite green minus the one pre-existing arm. The deleted entry's guard is the whole-mapDeepEqualinTestResolveTestVarsBuild, which fails if any field-derived variable reappears.packaging:is untouched.ci.yml, and every step of it ran on the committed head: gofmt, vet, golangci-lint v2.13.2, go test (with the one pre-existing, environment-dependent arm named and filed), and the four-arch cross-compile, as pasted above.Change classification
Code (
kit/,deploykit/,buildkit/+go.mod/go.sum) — not documentation, sodocumentation reviewedis not claimed. The tier claimed isfully tested and validated: everystep of the change-class gate passed on this head, except the one pre-existing, environment-dependent
test arm, which is RCA'd, proven on a pristine tree, and filed — the tier's "gate passed on the final
tree" clause therefore diverges on exactly that arm, and the divergence is stated rather than
absorbed.
Breaking change + rollback: the CODE change is a deletion forced by the contract, and the
behaviour it removes is named at the top:
ACME_EMAILis no longer sourced from box metadata, so aTraefik deploy that relied on
acme_email:falls back to its own${ACME_EMAIL:[email protected]}default; supply the value with a deploy
env:entry instead. The API removal isspec's, alreadymerged. Rollback is to drop this branch — but note that rolling back to the previous sdk tag cannot
compile against
specat or afterv0.2026322.1356, which is why the repair has to land.Filed issues
deploykit.TestResolveBoxRef_BoxShortNamefails on any store holding a name the contract's resolver cannot find (two readers of one engine store disagree); pre-existing, reproduces on a pristinemain, skips on a host with no local images.Agent: sdk-store
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)