Skip to content

feat(builders)!: one mechanism for every build-time manager — aur behaves exactly like npm - #613

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/unified-builders
Nov 22, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/unified-builders

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

The sdk half of the unified builder mechanism (#608, Unit 1). Before, aur, npm, pixi, cargo and mise did one job spread over five surfaces, and aur took a different road on every one. Each road had a silent skip. kdotool, declared under aur: in layer-kde-shell, never reached any image while the build stayed green (opencharly/layer-kde-shell#7). Now every builder goes through one trigger, one fail-loud pre-pass, one install contract and one IR. aur behaves exactly like npm.

Closes #608. Closes #610: the #609 regression is superseded, because the tag-scoped trigger below keeps an arch-tagged declaration off non-arch boxes.

Consumes opencharly/spec#420, merged and tagged v0.2026326.323, which go.mod now requires.

One trigger. NeedsBuilder(candy, image, builder) fires on a detect file, or on a manager declaration the image's tag chain selects. ResolveManagerPackages reads it over the same CascadeTagChain the OS packages resolve over.

  • The loader records distro.<tag>.aur on its own tag section. It used to merge every tag into one image-independent section, so an arch-tagged declaration no longer reaches a fedora image.
  • There is no box build: opt-in.
  • Stage emit, artifact emit, runtime env, plugin detection (DetectExternalizedBuilders) and the apply compile all call this one function.

One fail-loud pre-pass. requireBuilders runs first in EmitBuilderStages, over the builder vocabulary, not a hard-coded list. A needed builder with no definition, no vocabulary, no plugin, or no route to a builder box is a build error naming the candy and the builder. It replaces #609's requireDeclaredBuilders.

One install contract, owned by the builder plugin (DESIGN.cue #BuilderAlt under D-PLUG-2, D-IR-7, P3; the operator chose plugin-owned on #608). What a builder installs is the plugin's own knowledge, never the authored builder node.

  • kit defines every stage builder's payload (builderPayloadCopies): pixi, npm and mise copy the stage home, and aur copies its extracted package tree. A stage word with no payload is an error.
  • aur declares its package output in its replies (BuilderResolveReply.Package, BuilderCollectReply.Package, via kit.BuilderPackageOutput).
  • On an image whose distro serves that format through local_pkg, pacman installs the candy's packages from the candy's own directory (/tmp/aur-pkgs/<candy>). There is no shared directory, so no double install.
  • On any other image the payload is copied in, like npm's.
  • The secondary-format loop and its swallowed render errors are deleted.

One IR for both modes (D-IR-1). compileBuilderSteps uses the same trigger and carries the plugin-declared package output onto BuilderStep.Package, never bName == "aur".

  • Its directory and glob come from that declaration, and the find / backstop is deleted.
  • A host venue that cannot install a package output refuses the step (RunVenueBuilderStep). An image build copies the payload instead, so the shared compile no longer fails a fedora pod overlay.
  • The pod overlay and the box build share one package-install render (RenderBuilderPackageInstall).
  • NeededBuilderImages lists exactly the builder images the stages name, so the overlay ensures them first.

Teardown parity (D-IR-2). The collect input carries the candy's detected manifest. npm records its dependencies, cargo its package name, and mise its tools plus the copied manifest. Before, nothing filled npm's or cargo's teardown set. An unknown builder word or an unparseable manifest is an error.

No swallowed errors, one dispatch (R2).

  • The manylinux_fix render error, a missing cached stage reply, and an external_builder stage that copies nothing now fail.
  • HasInstallFiles counts mise manifests and manager declarations.
  • BuilderCollectInputFor is the one constructor of the collect input.
  • sdk.InvokeBuilder is the one Invoke dispatch every builder plugin serves. The four byte-identical plugin-builder-* copies and plugin-mise's three helpers become one call each.

Cache. The materialized-tree cache key's doc names the embedded-defaults digest among its inputs (spec#420 carries the field, charly's walk stamps it). TestLoadedProjectCacheKeyCoversTheEmbeddedDefaults fails if the key narrows to the documents.

Also:

  • The intermediate format/tag union test modelled build: [pac, aur], a box the schema now refuses. It now models a schema-valid box, and its new tag half covers the aur case, since manager declarations are tag-scoped.
  • The aur payload has its own assertion: a mutation swapping it for the home copy used to survive.
  • The generate-source skill, the kit comments and the npm stage template's comment stop naming the retired copy_artifact/detect_config.

The chain (producer-first). spec#420 (merged) → this PR → plugin-builder, plugin-fleet, plugin-box, plugin-installstep, plugin-loader, plugin-deploy-pod, the builder plugins (aur, npm, pixi, cargo, mise) → charly → distro-arch, plugin-migrate, distro-cachyos, pod-kde-vnc → layer-kde-shell. Each is its own PR, opened when its producer has tagged.

How tested

This is a contract / library module (/charly-check:check, "R10 gate by change class"). Its gate is its own committed CI (.github/workflows/ci.yml: gofmt, vet, golangci-lint v2.13.2, go test ./..., the four-arch cross-compile), green on the PR head.

Every job, on the pushed head bee074910ae368de15bd5f3af3fa43f6a7595a6d, with GOWORK=off (the spec require resolves from the module proxy at v0.2026326.323). Verbatim:

head: bee074910ae368de15bd5f3af3fa43f6a7595a6d
$ test -z "$(gofmt -l .)"
exit=0
$ go vet ./...
exit=0
$ golangci-lint run ./...   # v2.13.2, the CI version
0 issues.
$ go test ./...
exit=0 ok=21 FAIL=0
$ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build ./...
exit=0
$ GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build ./...
exit=0
$ GOOS=linux GOARCH=arm CGO_ENABLED=0 go build ./...
exit=0
$ GOOS=linux GOARCH=386 CGO_ENABLED=0 go build ./...
exit=0

Each rule's test fails with the rule reverted. All twelve mutations ran on bee074910ae368de15bd5f3af3fa43f6a7595a6d. Each one was applied, the named test run, and the file restored; the runner checks git status at the end. Verbatim:

head: bee074910ae368de15bd5f3af3fa43f6a7595a6d
== mutation: the consumers' distro tags are not unioned into a hoisting intermediate -> exit 1
   --- FAIL: TestComputeIntermediates_UnionChildBuildFormats (0.00s)
   intermediates_move_test.go:1039: auto-intermediate "arch-a-uid0": Distro = [arch], want both arch and the consumer-only cachyos
== mutation: NeedsBuilder ignores manager declarations -> exit 1
   --- FAIL: TestNeedsBuilderIsOneRuleForEveryBuilder (0.00s)
   builder_unified_test.go:100: aur: an arch-tagged declaration does not trigger the builder on an arch image
   builder_unified_test.go:100: npm: an arch-tagged declaration does not trigger the builder on an arch image
== mutation: manager scope ignores the image tag chain -> exit 1
   --- FAIL: TestNeedsBuilderIsOneRuleForEveryBuilder (0.00s)
   builder_unified_test.go:103: aur: an arch-tagged declaration triggers the builder on a fedora image
   builder_unified_test.go:103: npm: an arch-tagged declaration triggers the builder on a fedora image
== mutation: pre-pass not called -> exit 1
   --- FAIL: TestRequireBuildersRefusesEveryUnrunnableBuilder (0.00s)
   builder_unified_test.go:136: aur / no definition: a needed builder that cannot run did not fail the build
   builder_unified_test.go:136: aur / no vocabulary: a needed builder that cannot run did not fail the build
== mutation: missing stage skipped silently -> exit 1
   --- FAIL: TestEmitBuilderArtifactsRefusesAMissingStage (0.00s)
   builder_unified_test.go:222: a needed builder with no resolved stage must fail naming candy and builder, got <nil>
== mutation: payload also copied when packages install -> exit 1
   --- FAIL: TestBuilderPackageInstallIsReadFromData (0.00s)
   builder_unified_test.go:196: arch: payload copied = true, want false:
== mutation: shared package directory -> exit 1
   --- FAIL: TestAurStage_PerCandyDirectoriesDeclaredByThePlugin (0.00s)
   aur_guard_test.go:58: aur stage missing "-exec cp {} /tmp/aur-pkgs/kde-shell/":
   aur_guard_test.go:66: aur reply package = &{Format:pac Dir:/tmp/aur-pkgs Glob:*.pkg.tar.zst}, want {Format:pac Dir:/tmp/aur-pkgs/kde-shell Glob:*.pkg.tar.zst}
== mutation: host venue without local_pkg tolerated -> exit 1
   --- FAIL: TestCompileBuilderStepsUsesTheSameRule (0.00s)
   builder_unified_test.go:256: a host venue applied aur packages it cannot install: builder "aur" on venue target has no phase.install.host cell in the embedded build vocab
== mutation: plugin detection ignores the trigger -> exit 1
   --- FAIL: TestDetectExternalizedBuildersMatchesNeedsBuilder (0.00s)
   builder_unified_test.go:269: needed builders = [aur cargo mise npm pixi], want [npm] (the arch-tagged aur declaration does not reach fedora)
== mutation: aur payload replaced by the home copy -> exit 1
   --- FAIL: TestStageBuildersCarryThePluginsPayload (0.00s)
   aur_guard_test.go:97: aur: payload = [COPY --from=c-aur-build --chown=1000:1000 /home/u /home/u], want [COPY --from=c-aur-build /tmp/aur-root/c/ /] (the extracted package
== mutation: npm teardown empty -> exit 1
   --- FAIL: TestBuilderCollectContext (0.00s)
   builder_test.go:46: BuilderCollectContext("npm", claude-code) = map[], want map[packages:[@anthropic-ai/claude-code aaa]]
   builder_test.go:54: an unparseable package.json returned no error
== mutation: unknown builder word silently nil -> exit 1
   --- FAIL: TestBuilderCollectContext (0.00s)
   builder_test.go:51: an unknown builder word returned no error
tree after mutations: clean

No disposable target exists here, so no bed can. The class requires proof of that, executed on the head:

head: bee074910ae368de15bd5f3af3fa43f6a7595a6d
$ git grep -nE '^[[:space:]]*disposable:' HEAD -- '*.yml' '*.yaml'
exit=1 (1 = no match)
$ the root charly.yml declares (each node and its kind key):
  capabilities-skill: skill:
  cloud-init-renderer-skill: skill:
  generate-source-skill: skill:
  libvirt-renderer-skill: skill:
  local-infra-skill: skill:
  ovmf-skill: skill:
  sdk-skill-shelf: candy:
  skills-skill: skill:
  27:repo: github.com/opencharly/sdk

sdk-skill-shelf is a skill-carrier candy, not a box, deploy or check node.

The consumer boundary. This module's behaviour is observable live only through a charly binary built over it. That bed rides the charly PR of this chain, the consumer, in producer→consumer order. Dev-build evidence from earlier in the cutover, with a worktree-local charly built from these branches (it supports the design, but it is not this PR's gate):

  • arch-test (aur on arch): charly check box, 41 steps: 39 passed, 0 failed, 2 skipped.
  • A fedora box composing an aur candy (cross-distro aur): 4 steps: 4 passed, 0 failed, 0 skipped. That includes kdotool resolves every shared library on Fedora (ldd reports none not found) and kdotool runs on Fedora.
  • builders-arch: the npm and pixi payloads land (cowsay in the image home, jq in the default pixi env), 5 steps: 5 passed, 0 failed, 0 skipped.
  • A pod overlay (add_candy:) adding an npm candy: the payload landed (/home/user/.npm-global/bin/cowsay -> ../lib/node_modules/cowsay/cli.js). Running it exits 127 with env: 'node': No such file or directory. The throwaway probe declares no Node runtime (real npm candies require nodejs), so that run proves the copy, not a runnable package.

Rulebook compliance

  • R0: loaded through the harness: /charly-internals:git-workflow, /charly-internals:go, /charly-internals:plugin, /charly-internals:install-plan (sdk's own AGENTS.md R0 list is plugin, go and install-plan), and /charly-internals:strict-policy. /charly-internals:design was read by path from the corpus (marketplace/internals/skills/design/SKILL.md), because this harness's installed plugin cache predates it. That's a stale install, not a skipped skill. The change-class gate table was read from /charly-check:check's references/beds-and-r10.md.
  • R1: every anomaly met in this cutover was RCA'd on aur: packages are silently skipped when the AUR builder is absent from the image; the build stays green #608. A blocking finding is fixed here, for example the warm-cache parity failure (a cache key missing the embedded defaults) and the overlay's mid-file builder stage. A non-blocking finding is filed below. Two findings came up while preparing this push:
  • R2: one trigger (NeedsBuilder), one pre-pass (requireBuilders), one collect-input constructor, one package-install render, and one builder Invoke dispatch (InvokeBuilder), replacing four byte-identical plugin copies.
  • R3: no workaround. The build: format gate, the secondary-format loop, the shared /tmp/aur-pkgs, the find / backstop and every silent continue on these paths are deleted, not routed around.
  • R4: the product is fixed first. The skill text follows the code.
  • R5: the claim-keyed sweep, run on bee074910ae368de15bd5f3af3fa43f6a7595a6d:
head: bee074910ae368de15bd5f3af3fa43f6a7595a6d
$ git grep -n -E 'requireDeclaredBuilders|detect_config|DetectConfig|FormatSections?\b|format_sections|IsSecondary|\.Secondary\b|secondary format|non-primary|NonPrimary|copy_artifacts?\b|copy_binary|BuildFormats\(|pac, ?aur|pac,aur|four (DETECTION-)?builders|AUR gate' HEAD -- ':!CHANGELOG'
HEAD:.agents/skills/generate-source/references/multistage-and-intermediates.md:63:The pixi/npm/aur stages above are NOT rendered from an in-core `builders.<name>` vocabulary. Since C10 **both** the vocabulary builders (pixi/npm/cargo/aur/mise — selected by a candy's `pixi.toml` / `package.json` / `Cargo.toml` / `mise.toml`, or by a manager declaration such as `distro.arch.aur:` that the image's tag chain selects) **and** an OUT-OF-TREE builder selected by a candy's `external_builder: <word>` field emit their build-time multi-stage through the SAME `OpResolve` seam: the plugin returns a `spec.BuilderResolveReply` the generator splices. The stage TEMPLATES and payloads for the vocabulary builders live in the shared `sdk/kit.BuilderResolve` (imported by each `candy/plugin-builder-<word>`); the former embedded vocabulary's `stage_template`/`copy_artifact`/`copy_binary`/cargo `install_template` are gone.
HEAD:deploykit/intermediates_move_test.go:995:func TestComputeIntermediates_UnionChildBuildFormats(t *testing.T) {
exit=0

Both hits are intended. :63 is the corrected text: "pixi/npm/cargo/aur/mise" matches the old pattern at the \b before /mise, and the sentence states that copy_artifact/copy_binary are gone. TestComputeIntermediates_UnionChildBuildFormats is the rewritten union test's name.

  • R6: git status was clean before the push. This is a feat/ branch off fresh origin/main (e52cf22), rebased before its first push. Nothing else was touched.

  • R7: every rule has a test that fails with it reverted (above), across all five builders where the rule applies.

  • R8: nothing live is mocked. The module suite is unit-level by class, and the live boundary runs on the consumer PR.

  • R9: the dev-build evidence used a worktree-local, CalVer-stamped charly built from these sources, never a shared install.

  • R10: the class gate (the module CI) passed on the exact pushed head bee074910ae368de15bd5f3af3fa43f6a7595a6d.

  • R11: conforms to:

    • D-IR-1: one IR for build and apply. The apply compile and the image render use one trigger and one package-install render.
    • D-IR-2: every builder action declares its reverse. npm, cargo and mise now record theirs.
    • D-IR-7: a build-time manager's package is built by a builder node. aur is one like npm, with no box opt-in, and a declaration is scoped by its tag.
    • D-PLUG-2 / #BuilderAlt: the authored builder row is a manager map, so the payload and package output are the plugin's, never authored.
    • P3: derived, never authored.

    Nothing moves further from DESIGN. The umbrella ledger design/dulling.tsv (the kind:builder row) still lists detect_config among the builder fields; it is corrected in the umbrella PR at the end of this chain.

Change classification

  • Change class: contract / library module, the second producer of the aur: packages are silently skipped when the AUR builder is absent from the image; the build stays green #608 chain.
  • Attribution tier: fully tested and validated. The class gate passed on the final tree, and no bed can exist in this module.
  • Breaking change + rollback: breaking. The exported requireDeclaredBuilders path, the secondary-format install road and the authored copy_artifact/copy_binary reading are gone. Builder replies now carry Package, and compileBuilderSteps reads the plugin's declaration. Every consumer moves to this tag only in its own PR of the chain, so nothing that pins an older sdk changes behaviour. Rollback: revert this squash commit and re-tag. Consumers still pinned to the previous sdk tag (v0.2026325.921) are unaffected throughout.

Filed issues

https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)

…aves exactly like npm

The sdk half of the unified builder mechanism (#608, Unit 1).
aur, npm, pixi, cargo and mise were one job spread over five surfaces, and aur
took a different road on every one, each with a silent skip. Now:

One trigger. `NeedsBuilder(candy, image, builder)`: a detect file, or a manager
declaration the image's tag chain selects (`ResolveManagerPackages`, the same
chain OS packages resolve over). The loader records `distro.<tag>.aur` on its
tag section instead of merging every tag into one image-independent section,
so an arch-tagged declaration never reaches a fedora image (the sdk#610
regression) and there is no box `build:` opt-in. Stage emit, artifact emit,
runtime env, plugin detection and the apply compile all call it.

One fail-loud pre-pass. `requireBuilders` runs first in `EmitBuilderStages`,
over the vocabulary rather than a hard-coded list: a needed builder with no
definition, no vocabulary, no plugin, or no route to a builder box is a build
error naming the candy and the builder. It replaces #609's
`requireDeclaredBuilders`.

One install contract, owned by the builder plugin. What a builder installs is
the plugin's own knowledge, never the authored builder node, whose DESIGN shape
is a manager map (DESIGN.cue #BuilderAlt, D-IR-7; P3). kit defines every stage
builder's payload: pixi/npm/mise copy the stage home, and aur copies its
extracted package tree. A stage word with no payload is an error. A builder
that produces OS packages (aur) declares that output in its replies:
`BuilderResolveReply.package` and `BuilderCollectReply.package`, via
kit.BuilderPackageOutput. On an image whose distro serves that format through
`local_pkg`, the candy's packages are installed through it from the candy's own
directory, so there is no shared /tmp/aur-pkgs and no double install. On any
other image the payload is copied in, like npm's. The secondary-format loop and
its swallowed render errors are deleted.

One IR for both modes. `compileBuilderSteps` uses the same trigger. It carries
the package output the plugin's collect leg declared (the pre-pass's
BuilderPreresolved.Package) onto BuilderStep.Package, never `bName == "aur"`. A
venue that cannot install a package output is an error. The apply aur path
takes its directory and glob from that declared package, and the `find /`
backstop is deleted (the host template now guards its own output).

Teardown parity (D-IR-2). The collect input carries the candy's detected
manifest. npm records its dependencies, cargo its package name, and mise its
tools plus the copied manifest (a user-scope plugin-script reverse). Before,
nothing filled npm's or cargo's teardown set. An unknown builder word or an
unparseable manifest is an error.

No swallowed errors. The manylinux_fix render error, a missing cached stage
reply, and an external_builder stage that copies nothing now fail instead of
continuing. `HasInstallFiles` counts mise's manifests and manager declarations.
`BuilderCollectInputFor` is the one constructor of the collect input (R2).
`sdk.InvokeBuilder` is the one Invoke dispatch every builder plugin serves
(OpResolve, OpCollectContext, OpReverse); the four byte-identical
plugin-builder-* copies and plugin-mise's three helpers become one call (R2).

Pod overlay. One render for both image builds (D-IR-1):
- `RenderBuilderPackageInstall` is the one render of a builder's package
  install, shared by the box build and the overlay's builder step.
- `NeededBuilderImages` lists exactly the builder images the stages name, so
  the overlay ensures them first.
- A package output the target distro cannot install through `local_pkg` no
  longer fails the shared compile. An image build (box or overlay) copies the
  payload instead, and the HOST venue refuses the step (`RunVenueBuilderStep`),
  because it alone cannot install a payload.

Cache. The materialized-tree cache key's doc now names the embedded-defaults
digest among its inputs (it rides the walk envelope; spec carries the field,
charly's walk stamps it). TestLoadedProjectCacheKeyCoversTheEmbeddedDefaults
pins it, and fails if the key narrows to the documents.

Tests: builder_unified_test.go runs every rule over all five builders
(trigger and tag scope, every unrunnable-builder refusal, package install vs
payload, missing stage, apply compile, plugin detection, external_builder,
collect input), plus kit tests for the plugin-owned payloads, per-candy aur
directories declared in the reply, manifest-derived collect and the mise
reverse, and the collect reply's package output. Each named
mutation fails its test.

Also in this change: the intermediate format/tag union test models a
schema-valid box (it modelled `build: [pac, aur]`), and its tag half covers
the aur case now that manager declarations are tag-scoped. The aur payload
has its own assertion (a mutation swapping it for the home copy used to
survive). The generate-source skill, kit comments and the npm stage
template's comment stop naming the retired `copy_artifact`/`detect_config`.

Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)
@aitrawog

Copy link
Copy Markdown
Contributor Author

HOLDING

HOLDING — #613 (head bee074910ae368de15bd5f3af3fa43f6a7595a6d) is the sdk producer leg of this chain, and it holds every later leg. Each later leg moves its sdk require to #613's merge tag, so none opens until that tag exists:

  • plugin-builder, plugin-fleet, plugin-box, plugin-installstep, plugin-loader, plugin-deploy-pod;
  • the builder plugins (aur, npm, pixi, cargo, mise);
  • then charly, distro-arch, plugin-migrate, distro-cachyos, pod-kde-vnc and layer-kde-shell.

All of those are committed locally and gated against the dev chain. #613 closes this issue and #610.

Next STATUS: on #613's verdict, or by 2026-11-22 12:00 UTC.

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (analysed on a live system)

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: bee074910ae368de15bd5f3af3fa43f6a7595a6d (branch: feat/unified-builders)

Security screen: PASS — no secrets/egress, no guardrail weakening (the change makes silent skips loud), go-toml/v2 is an indirect→direct promotion of an already-pinned module (no new supply chain), no rulebook/validator edits.

Comment considered: @aitrawog's HOLDING (first line is a valid closed-set label, names #613 and the downstream legs, correct Agent:/Assisted-by: footer) — verified-non-blocking; coordination metadata, consistent with the body's producer-first chain.

Checklist: All applicable rules PASS or NA. Notable cross-checks: A1 body complete with AI-form Assisted-by footer; A2/R10 module-class gate (no bed can exist in an sdk module, evidenced by the empty disposable: grep) with 12 mutation tests on the exact head; A3 tier supported by live dev-build execution of the aur/npm/pixi changed paths; R1 RCA on the npm-overlay 127 and filed #612; R5 grep output internally consistent with the diff (both hits intended); R11 cites D-IR-1/2/7, D-PLUG-2, P3; the untouched design/dulling.tsv divergence is other-repo design debt the diff does not touch (R11); ARCH placement correct (sdk mechanism kit).

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 22, 2026 03:42
@github-actions
github-actions Bot merged commit 4b2e981 into main Nov 22, 2026
8 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 22, 2026
github-actions Bot pushed a commit to opencharly/spec that referenced this pull request Nov 22, 2026
…421)

Completes opencharly/sdk#608's plugin-owned install contract in the schema.

opencharly/sdk#613 made what a builder copies into the target the builder
plugin's own knowledge: its payload and tool binary come back in its
#BuilderResolveReply (copy_artifacts, copy_binary). Nothing reads the authored
copy_artifact or copy_binary on a builder node any more. Both fields still loaded
and were then silently ignored, the same defect class this chain deleted
#AUR.replace for. A grep of the org finds no config that authors them, so no
`charly migrate` step is needed.

- #Builder loses copy_artifact and copy_binary, and #Copy, which only they used,
  is deleted. The reply's copy_artifacts and copy_binary strings stay; they are
  what the plugin produces.
- The comment above copy_artifact, which this chain itself wrote in
  #420, said it was "the ONE install contract every builder
  shares", read by the image render and the apply path. That was false once
  sdk#613 landed and is gone with the field.
- #BuilderPackage's comment and the unified test's comment cite #BuilderAlt under
  D-PLUG-2. They cited D-IR-7, a different requirement.
- spec/cue_types_gen.go is regenerated (charly task cue-gen).

Test: TestBuilderPackageOutputIsDeclaredByThePlugin now refuses an authored
copy_artifact and copy_binary on #Builder. It fails at
builder_manager_unified_test.go:102, for both, when the fields are restored.

Claude-Session: https://claude.ai/code/session_01Tvdn3vtn8FoWTMqGwqn4ZT

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant