Skip to content

feat(deps): adopt spec v0.2026322.1814 + sdk v0.2026322.1853, and ask the contract for the resource-kind set (TODO 3.1, leg 3 of 3) - #1209

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/resource-kind-set-leg3
Nov 18, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/resource-kind-set-leg3

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

TODO.md 3.1, leg 3 of 3 (leg 1: spec#381; leg 2: sdk#564; tracking: spec#380). Two units in one change, because either alone is red.

The paired pin bump. charly's spec pin (v0.2026322.1239) predates spec.ResourceKindSet (shipped in spec#381's tag), so the swap cannot compile at the old pin. Bumping spec alone also fails, and the reason is a finding about the org's dependency shape:

$ go get github.com/opencharly/[email protected] && go build ./...
# github.com/opencharly/sdk/kit
…/[email protected]/kit/checkvars.go:192:10: meta.AcmeEmail undefined
…/[email protected]/kit/checkvars.go:193:28: meta.AcmeEmail undefined

charly pins sdk v0.2026322.1227, whose kit/ still read the field spec#379 deleted. The deletion reached this repo through the sdk pin — two hops from the repo that made it. Not a consumer: a consumer's consumer. So spec and sdk travel together (sdk v0.2026322.1853 carries the acme adaptation and leg 2), and the pair is the only state in which the build is green.

The swap. Core derived its own copy of the #ResourceKind membership at init — resourceKindSet = setFromSlice(spec.ResourceKinds) (reserved_registry.go:46). Two live predicates read it (isExternalDeploySubstrate, unresolvedDeployTargetError) plus two test fixtures; all four now ask spec.ResourceKindSet(), and the copy is gone. setFromSlice stays standing for its four other callers (authoredOpFieldSet and a two-vocabulary consistency check) — measured, not assumed.

How tested

The RED, behavioural — the two vocabularies in one line of output. The test moves spec.ResourceKinds and asks unresolvedDeployTargetError, whose two outcomes differ by wording rather than by a returned token, so no prescan setup is needed:

$ go test -run TestDeployTargetClassificationTracksTheVocabulary -count=1 .
--- FAIL: TestDeployTargetClassificationTracksTheVocabulary (0.00s)
    the target classification does not see a word the composed schema now declares: got
    "deployment \"probe-deploy\": unknown target \"resourcekindtest\" (want local|vm|pod|kubernetes|android)",
    want the 'known substrate' branch; the core is answering from a snapshot taken at package init
FAIL	github.com/opencharly/charly/charly	2.493s

The want … enumeration is the snapshot reading itself out loud; the branch the call failed to reach is the contract's answer. The two vocabularies appear side by side in one line. Green after the change, with the control arm asserting definitely-not-a-kind-word still lands on the typo branch:

$ go test -run TestDeployTargetClassificationTracksTheVocabulary -v -count=1 .
--- PASS: TestDeployTargetClassificationTracksTheVocabulary (0.00s)

The module gate:

$ gofmt -l .      (no output)      gofmt_rc=0
$ go vet ./...                     vet_rc=0
$ go test ./...                    test_rc=0
$ bash scripts/bootstrap-charly.sh ; ./bin/charly version
bootstrap-charly: built ./bin/charly (2026.322.1902)
2026.322.1902

The live proof — ONE of the beds the class feeds, not the gate:

$ ./bin/charly check run check-pod-overlay
[rebuild-ready]        PASS after 1.583s
[check-live-rebuild]   PASS after 1m28.87s
[wait-ready]           PASS after 352ms
[feature-run-rebuild]  PASS after 50.082s
[cleanup]              PASS after 37.827s
[cleanup-members]      PASS after 0s
charly check run check-pod-overlay: PASS (steps=16, skipped_checks=3) — check-image: declared check
  plan:candy:github.com/opencharly/layer-supervisord:5 did not run: context [runtime] not active in
  box mode; plan:candy:github.com/opencharly/pod-check-keepalive:3 did not run: [runtime] not active
  in box mode; os-bash-service-running did not run: [runtime] not active in box mode

check-pod-overlay is a disposable: true bed run on the committed tree, and its fresh rebuild is the R10 leg. The three skipped checks are declared [runtime]-context checks a box-mode run cannot execute; the bed reports them rather than passing silently.

Why the class's full gate is not run, stated as three separate reasons (charly#1205, charly#1207):

  1. The kind:check-roster roster the matrix names does not exist. git -C charly grep -c 'kind: *check-roster' origin/main -- '*.yml' → 0, and no roster entity is declared in plugin-check either. The matrix's mechanism is unavailable, so the matching set was derived by reading the classifier and run bed by bed.
  2. The local leg must not be run autonomously. The bed map names check-local; that entity does not exist. Its live relatives are check-local-app (no disposable: key, a kind:local apply against the operator's host) and check-local-vm (a VM bed). Running the first would violate Disposable-Only Autonomy — disposable: true is never inferred from a name.
  3. The VM leg cannot run here. check-k3s-vm and check-local-vm need an active libvirt; systemctl is-active libvirtd virtqemud reported inactive/inactive on this machine.

So this PR carries one of the three matching beds — real live evidence about the pod half of the classifier, and explicitly not the gate. A green on one of three is exactly the partial roster the matrix forbids, and its stated reason is that the missing bed is where a routing error surfaces.

The gates above were run on the branch's own commit; the merge from main touches no file this diff touches.

Rulebook compliance

  • R0 — /charly-internals:go and /charly-internals:git-workflow loaded before the first git action; charly/AGENTS.md read (Part II refactor(charly): P1 lint/dead/dup rewrite + concurrency & correctness fixes #4), including its boundary law and its statement that go build/go test are cheap smoke rather than the acceptance gate.

  • R1 — four findings were raised and filed, not absorbed: sdk#560 (the acme_email deletion's six reader sites, which is why the bump is paired), spec#382 (C3's typed-word destination), charly#1205 (no roster entity exists for this class), charly#1207 (the bed map names two beds that no longer exist, and the replacement set has no autonomously runnable local or VM leg). The bed that could be run was run and its summary pasted; the two that could not are named with their reasons rather than skipped.

  • R2 — the core's private copy of the resource-kind membership is deleted and the one derivation lives in the contract; setFromSlice is left standing for its four other callers, so the deletion removes a duplicate derivation without removing a shared helper.

  • R3 — no workaround: no cached snapshot kept for speed, no fallback to the old set, no fixture edited to pass, and no bed substituted for another. The unrerunnable beds are reported, not circumvented.

  • R4 — no documented command changed; the classification now asks the source of truth it already claimed to follow.

  • R5 — the reader proof, two columns, at both refs: the name resourceKindSet no longer appears at either live read site, and its reason survives as the comment at the declaration site rather than being deleted with the code.

  • R6 — git status read before every move; the work is on feat/resource-kind-set-leg3 in a session worktree off origin/main (992ae979), the tracked charly/ checkout untouched; no force-push, no bypass, no branch of another session pushed.

  • R7 — the RED is pasted and fails on this change's own subject, the changed path executes in the suite, and the one bed that can run ran live with its summary retained.

  • R8 — no live service is crossed and nothing is mocked: the bed ran a real rootless podman deployment and removed it.

  • R9 — the worktree-local CalVer binary was built by scripts/bootstrap-charly.sh and bin/charly version reports 2026.322.1902; no shared install was used.

  • R10 — the fresh-rebuild leg of check-pod-overlay passed (check-live-rebuild, 1m28.87s). The full class gate is unreachable for the reasons tabled above and filed as charly#1205 / charly#1207; this PR claims analysed on a live system, not fully tested and validated.

  • R11 — conforms. Two requirements govern this change and neither is amended. D-LAW-4 ("Schema first. Every shape has one CUE definition … parsing, validation and Go code derive from it") — the deleted resourceKindSet was a hand-maintained Go mirror of the schema's kind set, so deleting it and asking spec.ResourceKindSet() is the requirement applied, not a deviation from it. D-KIND-1 ("the complete first-party kind set" is stated once) — the set is now stated in exactly one place, spec/schema/candy.cue, and the core derives from it. No DESIGN.md or DESIGN.cue amendment is owed, and no gap is widened: the diff removes a second copy of a contract fact rather than adding a third.

Change classification

Kind: behaviour + dependency pins. The #ResourceKind membership now comes from the contract at consult time, so a vocabulary the contract declares is visible to core immediately; the spec and sdk pins move together because either alone fails to build. Breaking change + rollback: for this repo's consumers, nothing in the public CLI surface changes and no authored key moves; the breakage is internal to the build graph, where the paired bump is the only coherent state. Rollback is reverting this one commit — the pins return to spec v0.2026322.1239 / sdk v0.2026322.1227 and the core returns to its private copy, which still compiles against that pair.

Filed issues

  • sdk#560 — RCA for spec#379's un-swept acme_email deletion: six reader sites across kit/ and deploykit/, which is why this bump is paired rather than a single pin move.
  • spec#382 — C3's "typed word with Valid()" is implemented for no vocabulary in the contract module; the destination spec.ResourceKindSet() records.
  • charly#1205 — no kind: check-roster entity exists, so a cross-cutting loader change has no roster to run.
  • charly#1207 — the bed map names check-pod/check-local, neither of which exists; of the live replacements only check-pod-overlay is disposable, so the class's gate cannot be run by an agent without an operator or an active libvirt.

Files changed

file what changed
charly/go.mod +2/−2: spec → v0.2026322.1814, sdk → v0.2026322.1853 (paired: either alone is red)
charly/go.sum +4/−4: the checksums for that pair
charly/reserved_registry.go +4/−4: the resourceKindSet declaration deleted; the reason it existed recorded at the site that now asks the contract
charly/plugin_prescan.go +1/−1: isExternalDeploySubstrate asks spec.ResourceKindSet()
charly/unified_targets.go +1/−1: unresolvedDeployTargetError asks spec.ResourceKindSet()
charly/reserved_registry_test.go +1/−1: the fixture reads the contract accessor
charly/deploy_del_diagnostics_test.go +2/−1: the same, plus the import it now needs
charly/resource_kind_set_test.go new, 51 lines: the divergence RED, with its control arm
tools/generate-packages/go.mod +2/−2: the shared spec/sdk pair
tools/generate-packages/go.sum +4/−4: the checksums for that pair
tools/golden-cloudinit/go.mod +2/−2: the shared spec/sdk pair
tools/golden-cloudinit/go.sum +4/−4: the checksums for that pair
tools/golden-compile/go.mod +2/−2: the shared spec/sdk pair
tools/golden-compile/go.sum +4/−4: the checksums for that pair
tools/gomod-canonical/go.mod +0/−35: tidy drops the two indirect requires nothing in the module imports
tools/gomod-canonical/go.sum +0/−96: the checksums that went with them

16 files, +84/−163. The eight tools/ rows are not this row's work: charly's go
workflow runs Test tools modules, and four of the five fail it on origin/main
(992ae979) because they still require sdk v0.2026322.1227 / spec v0.2026322.1239.
This change's class gate was red because of that, so it is fixed here — with the test's
own named remedy, charly task mods-tidy (2 steps, 0 failed), from this worktree's
binary.

Agent: lead · DeepSeek Harness session 0d9af4c2ae6e
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

… the contract for the resource-kind set (TODO 3.1, leg 3 of 3)

Two units in one change because either alone is red.

PIN BUMP, PAIRED. spec v0.2026322.1239 predates spec.ResourceKindSet (spec#381's
tag), so the one-line swap cannot compile at the old pin. Bumping spec ALONE also
fails, and the reason is a finding about the org's dependency shape rather than about
this repo:

  charly pins sdk v0.2026322.1227, whose kit/checkvars.go still reads meta.AcmeEmail —
  the field spec#379 deleted. The deletion reached this repo THROUGH the sdk pin, two
  hops from the repo that made it. Not a consumer: a consumer's consumer.

So spec and sdk travel together (sdk v0.2026322.1853 carries the acme adaptation and
leg 2 of this cutover), and the pair is the only state in which the build is green.

THE SWAP. charly derived its own copy of the #ResourceKind membership at init:

  resourceKindSet = setFromSlice(spec.ResourceKinds)   // reserved_registry.go:46

Two live predicates read it — isExternalDeploySubstrate (plugin_prescan.go) and
unresolvedDeployTargetError (unified_targets.go) — plus two test fixtures. All four now
ask spec.ResourceKindSet(), and the copy is gone. setFromSlice stays standing for its
four other callers (authoredOpFieldSet and a two-vocabulary consistency check).

RED-first, behavioural. The test moves spec.ResourceKinds and asks
unresolvedDeployTargetError, whose two outcomes differ by WORDING rather than by a
returned token. Before the change the stale snapshot answers with the typo branch and
enumerates the words it knows:

  unknown target "resourcekindtest" (want local|vm|pod|kubernetes|android)

After it, the same call reaches the "known substrate, no plugin serves it" branch. The
control asserts an undeclared word still classifies as unknown.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: a2d328b962974bc0c4408f57bf574dcb4f62d5ea (branch: feat/resource-kind-set-leg3)

Security screen: PASS — no secrets/exfiltration, no guardrail weakening, no scope mismatch; the two pin moves are the stated purpose (T3 supply-chain reviewed, coherent).
Checklist: All applicable rules PASS or NA.

Change class: behaviour + dependency pins (Go core). The diff matches the body exactly: paired spec/sdk pin bump (either alone red — the pasted go get failure is internally consistent), the resourceKindSet private derivation deleted in favour of spec.ResourceKindSet() at both live sites (plugin_prescan.go:316, unified_targets.go:565) and two test fixtures, plus a new divergence RED. placement: CORRECT — core stops owning a copy of the #ResourceKind vocabulary and consults the contract (outward, source-of-truth), which is the right direction. R2/R3/R5/R6/R9/HC/PIL/QUAL hold; the removed symbol is fully verifiable from the diff (no other live reference, or the build would be red — it is green).

Non-blocking notes (do not change the verdict):

  • A2/R10 — bed coverage. Only check-pod-overlay (1 of the class's 3 derived matching beds) ran. The changed predicate path is exercised live (isExternalDeploySubstrate("pod") → spec.ResourceKindSet()["pod"]), the fresh check-live-rebuild leg passed, and the VM-specific routing is unit-covered by TestUnresolvedDeployTargetError (kubevirt) — so the executed evidence is material, not a bed that can't fail. The local/VM legs are genuinely unreachable without a DISP violation (check-local-app has no disposable: true) or an active libvirt; they are honestly filed (charly#1205/#1207) and the tier is honestly analysed on a live system, not inflated. Because the change is content-preserving (same set, live read) and the missing beds add no coverage for this specific change, this is a filed infrastructure gap, not a proof gap.
  • R5 / CONC(d). The resourceKindSet removal is fully verifiable from the diff, but the "two columns, at both refs" reader proof is described rather than pasted as command output. Paste the grep output next time to satisfy the execution-evidence requirement; the claim itself is true and diff-verifiable, so it is not fraud-class here.

Verdict: PASS


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

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

TAKING OVER — authority: lead integrating a red class gate on an inactive author.

charly#1209's go workflow is red, and not on leg 3. It fails on tools/gomod-canonical, which requires sdk v0.2026322.1227 and spec v0.2026322.1239 while the shared pins have moved:

$ git -C charly show origin/main:tools/gomod-canonical/go.mod | grep opencharly
	github.com/opencharly/sdk v0.2026322.1227 // indirect
	github.com/opencharly/spec v0.2026322.1239 // indirect

Pre-existing on charly's origin/main at 992ae979 — measured, not assumed. The test names its own remedy:

gomod_canonical_test.go:123: ../../tools/gomod-canonical/go.mod: requires sdk v0.2026322.1227,
        but the shared sdk pin is … — run `charly task mods-tidy`

I am applying it in this PR rather than filing it, for the reason R1 gives: this change's class gate is red because of it, so it is blocking, and it is fixed here whoever caused it. The body will say so with that measurement, and #1209 becomes the change that makes charly's own go workflow green again.

Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

`charly`'s `go` workflow runs `Test tools modules`, and four of the five fail it on
`origin/main` (`992ae979`): `tools/generate-packages`, `tools/golden-cloudinit`,
`tools/golden-compile` and `tools/gomod-canonical` still require
`sdk v0.2026322.1227` / `spec v0.2026322.1239` while the core module pins
`sdk v0.2026322.1853` / `spec v0.2026322.1814`.

Applied with the test's own named remedy, `charly task mods-tidy` (2 steps, 0 failed),
run from this worktree's binary. `gomod-canonical`'s requires were indirect and nothing
in that module imports either contract, so tidy drops them and the module leaves the
lockstep glob — which is why the module named after the gate ends up carrying no pin of
its own.

Pre-existing, not introduced here: measured at `origin/main` before this branch was
touched. It lands in this change because this change's class gate is red because of it.

GOWORK=off go test ./... returns rc=0 in all five tools modules.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: b036b30d9649a37c70ffeafb7356ca4c858847d6 (branch: feat/resource-kind-set-leg3)

Security screen: PASS — first-party pin bumps (spec/sdk), no secrets, no guardrail weakening, no scope mismatch: all 16 files (incl. the eight tools/ rows and the gomod-canonical tidy) are accounted for in the body and authorized in-thread by the maintainer TAKING OVER comment.
Checklist: All applicable rules PASS or NA. Re-derived from the current diff: resourceKindSet derivation deleted, both live consult sites and both fixtures now read spec.ResourceKindSet(); new RED/GREEN test exercises the changed branch with a control arm; body/diff counts reconcile (+84/−163, 16 files); tier analysed on a live system is not inflated; placement: CORRECT (core stops owning a copy of the #ResourceKind vocabulary and asks the contract).

Comments considered

  • @github-actions[bot] #6993096396 — stale-superseded on SHA: it reviewed a2d328b (before the chore(tools) commit, 8 files), not HEAD. Its substantive points (bed gap non-blocking; grep proof described not pasted) were re-derived against the current state and still hold; not imported as authoritative.
  • @aitrawog #6993304419 (TAKING OVER) — verified-non-blocking: maintainer-account coordination; the tools/gomod-canonical fix it announces is in the current diff and in the body's Files-changed paragraph with the origin/main measurement it promises. Not a finding.

Non-blocking notes

  • A2/R10 — bed coverage (filed rulebook gap). 1 of 3 derived class beds ran (check-pod-overlay, disposable: true, check-live-rebuild 1m28.87s pasted). The other two are genuinely unreachable for an agent — the matrix's kind:check-roster mechanism does not exist (grep -c → 0 pasted, charly#1205), the bed map names two nonexistent beds and the live local relative has no disposable: key while libvirt is inactive (charly#1207). The changed predicate executes live in the pod bed and is unit-covered RED→GREEN, and the tier is honestly lowered. This is an infrastructure gap, not a proof gap on this change.
  • QUAL — import grouping. charly/deploy_del_diagnostics_test.go:4 places the third-party spec import in the stdlib group; the new resource_kind_set_test.go in the same PR uses stdlib/blank/third-party. gofmt -l is clean as pasted, but goimports/gci would reorder — worth fixing on the next push; the declared lint gate polices it mechanically.
  • R5 / CONC(d). The "two columns, at both refs" reader proof is described, not pasted. Not load-bearing: the deletion is compiler-verified by the pasted go vet/go test rc=0 (a surviving reference would be an undefined identifier). Paste the grep next time.
  • Cosmetic: the retained resourceKindSet rationale comment is glued to the authoredOpFieldSet doc comment with no blank line (reserved_registry.go).

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 18, 2026 22:35
@github-actions
github-actions Bot merged commit 8f60709 into main Nov 18, 2026
5 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 18, 2026
github-actions Bot pushed a commit that referenced this pull request Nov 19, 2026
## Summary

The compiled-in build drive advances to the merged `candy/plugin-build/v0.2026322.2319`
(opencharly/plugin-build#60, squash `16b57922375cfba3592d34dd2098230dc3ed8973`, tag
`v2026.322.2319`), so the `charly` binary links the build resolve that stops a caller's
`--tag` from renaming a borrowed builder node.

**The pin, before and after — two files, +3/−3.**

| File | Before | After |
|---|---|---|
| `charly/go.mod:16` `github.com/opencharly/plugin-build/candy/plugin-build` | `v0.2026322.1325` | `v0.2026322.2319` |
| `charly/go.sum:160` (module hash) | `v0.2026322.1325 h1:p4aD3N4f…` | `v0.2026322.2319 h1:0vCOtaaS2uzkFSr9wHDaiDLIloZ6KT4PjrLiOd9u+N4=` |
| `charly/go.sum:161` (`/go.mod` hash) | `v0.2026322.1325/go.mod h1:du0+Gb9s…` | `v0.2026322.2319/go.mod h1:du0+Gb9slRRh4VfSg9Lwex94TLHA7jrw9UD7tJkkWIE=` |

The base moved since issue #1208 was last described: `origin/main` no longer
carries `v0.2026317.2215` — charly#1204's squash (CHANGELOG `2026.322.1604`, merged
2026-11-18T16:04Z) advanced that require to `v0.2026322.1325`. This leg is therefore a
**one-tag** delta (`1325` → `2319`), not two, and the brief's `v0.2026317.2215` is stale rather
than a second bump.

**What the bump delivers.** plugin-build#60 splits the two tag roles the resolve always had.
`borrowedTag` — `buildkit.ComputeCalVer()`, computed once per resolve — stays on every box the
build does **not** produce: a builder borrowed from another repository's namespace, and any
auto-intermediate off a target's own chain. `targetTag` — the caller's `req.Tag` from
`charly box build <box> --tag <t>` — is stamped on exactly the boxes the build **produces**, and
the resolve's output set is promoted to it after the fact. So a check bed's
`--tag check-comfyui-pod-<calver>` no longer renames `arch-builder`, and the emitted Containerfile
no longer names `ghcr.io/opencharly/arch-builder:check-comfyui-pod-<calver>` — a ref no registry
serves, which died as
`failed to resolve source metadata: … not found` even though the image was in the local store
under its own tag (#1208). DESIGN.md **D-KIND-2** — vocabulary data is nodes in
the repositories that own it — is the requirement this obeys: a caller's tag has no business
renaming another repository's node.

**Nothing else moves.** `plugin-build`'s own `go.mod` is byte-identical between the two tags (its
`/go.mod` checksum `du0+Gb9slRRh4VfSg9Lwex94TLHA7jrw9UD7tJkkWIE=` is unchanged at both pins), so
this bump drags no `sdk`/`spec`/plugin pin with it. Confirmed against the tree: the only three
occurrences of the old version string outside `CHANGELOG/` were the three lines above.

## How tested

On branch `chore/pin-plugin-build`, in the session worktree off
`origin/main` (`5286f448712328a45d5d3d42cde86377677de639`). This repo's declared gate for the
class (`AGENTS.md`: `go build`, `go vet`, `gofmt`, `go test`, then `charly box validate`, then the
org-wide `charly/pr-validator`) plus this repo's own witness bed for a pin adoption,
`check-wave-pins`, run on that tree.

The tag is the merged one, read from the remote and from the proxy — not taken from the brief:

```console
$ git ls-remote --tags https://github.com/opencharly/plugin-build | tail -2
09de5ec84d1189861a239ea6ba77859abd71f2a3	refs/tags/v2026.322.1325
16b57922375cfba3592d34dd2098230dc3ed8973	refs/tags/v2026.322.2319
$ go list -m -versions github.com/opencharly/plugin-build/candy/plugin-build | tr " " "\n" | tail -3
v0.2026319.1655
v0.2026322.1325
v0.2026322.2319
```

The bump, and the module graph after it:

```console
$ go get github.com/opencharly/plugin-build/candy/[email protected]
go: downloading github.com/opencharly/plugin-build/candy/plugin-build v0.2026322.2319
go: upgraded github.com/opencharly/plugin-build/candy/plugin-build v0.2026322.1325 => v0.2026322.2319
$ go mod tidy; echo "tidy rc=$?"
tidy rc=0
$ grep -n 'plugin-build' go.sum
160:github.com/opencharly/plugin-build/candy/plugin-build v0.2026322.2319 h1:0vCOtaaS2uzkFSr9wHDaiDLIloZ6KT4PjrLiOd9u+N4=
161:github.com/opencharly/plugin-build/candy/plugin-build v0.2026322.2319/go.mod h1:du0+Gb9slRRh4VfSg9Lwex94TLHA7jrw9UD7tJkkWIE=
```

The go gate, on the tree this commit carries:

```console
$ go build ./...; echo "build rc=$?"
build rc=0
$ go vet ./...; echo "vet rc=$?"
vet rc=0
$ gofmt -l .; echo "gofmt rc=$?"
gofmt rc=0
$ go test ./...
ok  	github.com/opencharly/charly/charly	242.459s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	135.070s
rc=0
```

R9 — the binary is the worktree's own, rebuilt from this tree, and its stamp equals the source:

```console
$ ./scripts/bootstrap-charly.sh
bootstrap-charly: regenerating compiled-in plugin wiring
bootstrap-charly: building bin/charly
bootstrap-charly: built ./bin/charly (2026.322.2235)
$ ./bin/charly version
2026.322.2235
$ git log -1 --format='%s (%ci)'
docs: add CHANGELOG 2026.322.2235 for PR #1209 (2026-11-18 22:35:26 +0000)
$ git status --short
```

`charly box validate` on the same binary:

```console
$ ./bin/charly box validate; echo "validate rc=$?"
charly box validate: OK — checked 548 candies, 107 boxes, 51 deploys, 6 distros, 7 builders; 0 warnings, 0 errors
validate rc=0
```

This repo's own witness bed for the change class, on the same tree — `check-wave-pins`
(`kind: local`, `disposable: true`, `host: local`), whose header names exactly this class:

```console
$ ./bin/charly check run check-wave-pins; echo "bed rc=$?"
charly check run check-wave-pins: [deploy-add] PASS after 1m9.269s
charly check run check-wave-pins: [bring-up-members] PASS after 3ms
charly check run check-wave-pins: [check-live] PASS after 2m4.236s
  PASS  the module graph the binary was built from carries the pins charly/go.mod declares  [wp-pins]  exit=0
  PASS  the adopted plugin-build ANSWERS in-process — `charly box generate` dispatches the compiled-in build-generate provider and renders a box Containerfile  [wp-build-generate]  exit=0
  PASS  the adopted plugin-vm ANSWERS in-process — `charly vm list` dispatches the compiled-in command:vm provider  [wp-vm-list]  exit=0
  3 steps: 3 passed, 0 failed, 0 skipped
charly check run check-wave-pins: [update] PASS after 41.804s
charly check run check-wave-pins: [cleanup] PASS after 38.0s
charly check run check-wave-pins: [cleanup-members] PASS after 0s
charly check run check-wave-pins: PASS (steps=6)
bed rc=0
```

`.check/check-wave-pins/2026.322.2330/summary.yml`: `status: PASS`, `ok: true`, `diagnostics: errors 0, warnings 0`, `skipped_checks: 0`, `driver_version: 2026.322.2235`.

What `wp-pins` asserts is the property a pin advance must have — the graph the BINARY was built from agrees with what this tree adopts, read from both sides rather than from a literal:

```console
$ go version -m ./.worktrees/pin-plugin-build/charly/bin/charly | tr '\t' ' ' | grep plugin-build
 dep github.com/opencharly/plugin-build/candy/plugin-build v0.2026322.2319 h1:0vCOtaaS2uzkFSr9wHDaiDLIloZ6KT4PjrLiOd9u+N4=
```

and `wp-build-generate` shows the adopted module dispatching in-process: `charly box generate my-box`
rendered `/tmp/charly-wave-pins-boxbed/.build/my-box/Containerfile`.

### What was NOT run, plainly

**No `pod:` bed, and not issue #1208's own closure arm.** `charly check run check-comfyui-pod` is
the bed that reproduces this defect end to end, and it cannot be resolved from any MERGED
project closure: the bed lives only on the still-OPEN opencharly/distro-cachyos#206
(`fix/nvidia-cdi-pod-contract`), which adds the `check-comfyui-pod:` entity to that repo's
`charly.yml`. `grep` over the merged `distro-cachyos` checkout and over this project's closure
finds no such bed, so the verb has nothing to dispatch. That is why this commit carries
`analysed on a live system` and not `fully tested and validated`, and why #1208 stays open with
the live arm as its closure criterion.

**No synthetic `--tag` build arm either**, and here is the measurement behind that: the
discriminating arm needs a builder image that exists in local storage **under its own tag** so
the resolve does not rebuild it (that is exactly the comfyui bed's situation). On this host the
local store carries no `arch-builder`/`*-builder` image at all and the charly OCI store
`$XDG_DATA_HOME/charly/images` does not exist, so such an arm would first build the builder —
which proves the build, not the tag scope.

## Rulebook compliance

- **R0** — `/charly-internals:git-workflow` and `/charly-internals:go` loaded before the first
  git action; the umbrella `AGENTS.md` read from `origin/main` (the R11 form) and this repo's own
  `AGENTS.md` read from `origin/main` before touching the tree.
- **R1** — every finding met on the way is fixed here or named: the stale pin value in the brief
  is corrected above from the tree and the proxy rather than repeated; there is no warning to
  file (the validate line is `0 warnings, 0 errors`).
- **R2/R3** — no code in this change. The behaviour change is the adopted module, whose rule has
  ONE home (`candy/plugin-build/build_tag_scope.go`), and no retry or fallback is introduced here.
- **R4** — no prose routes around a defect; no documented command changes.
- **R5** — the old `require` is replaced, not shadowed: the claim-keyed grep for the retired
  version over the tracked tree (excluding `CHANGELOG/`) returns nothing, and no `replace`
  directive exists.
- **R6** — `git status --short` was empty before the edit; work is in
  `.worktrees/pin-plugin-build/charly` on `chore/pin-plugin-build`, never in the submodule
  checkout; no force-push, no direct `main` push, no other session's branch touched (opencharly/charly
  has no other open PR at this head).
- **R7** — the coverage that proves the changed rule fails without it is the producer's
  (`build_tag_scope_test.go`, its before-arm pasted in opencharly/plugin-build#60); this leg
  proves the adopted module is the one the binary links and dispatches, in `wp-pins` and
  `wp-build-generate`. The live arm this change exists for is named under *What was NOT run*.
- **R8** — no service boundary is crossed or mocked in this change.
- **R9** — built by `scripts/bootstrap-charly.sh` in the worktree; `./bin/charly version` prints
  `2026.322.2235`, equal to the CalVer of HEAD, and the tree is clean after the build (the
  generated `go.work` / `plugins_generated.go` are byte-identical to the committed ones). No
  shared install, and no new runtime OS dependency, so nothing moves in `packaging:`.
- **R10** — `check-wave-pins` is the bed this repo declares for exactly this change class (its
  header: *"the change class here is a Go module dependency-pin adoption whose runtime effect is
  the COMPILED-IN plugins charly loads in-process"*), and it ran on this tree; its output is
  pasted above. The `pod:` bed that would prove the DEFECT is fixed is unmerged — stated, not
  hidden.
- **R11** — DESIGN.md **D-KIND-2** is the requirement this serves and it is cited, not amended: a
  builder is a vocabulary node owned by the repository that declares it, and the adopted resolve
  stops a caller renaming it. No field, shape, kind, verb or mechanism is added here, so no other
  D-id is touched.

## Change classification

A compiled-in module pin advance: every build that passes `--tag` keeps its own produced boxes on
that tag and leaves borrowed builder nodes on the CalVer their owning repository gave them; a
build with no `--tag` is byte-identical to today's behaviour.

**Breaking change + rollback:** none — the pointer moves to a module tag the org has already
merged and published, no wire shape, schema or CLI flag changes, and the rollback is reverting
this commit, which restores `v0.2026322.1325` and the pre-fix tag stamping.

## Filed issues

No issue is filed: nothing met here is separable from the change, and #1208
stays open as the tracker for the one leg this repo cannot run — the live `check-comfyui-pod` bed.

*Agent: comfyui-vram-fix · DeepSeek Harness session 20261118-2110*
Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (analysed on a live system)
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