Skip to content

feat(buildkit)!: adopt sdk/buildkit render library (P3-unit-1 consumer) - #24

Merged
atrawog merged 3 commits into
mainfrom
feat/sdk-buildkit
Jul 8, 2026
Merged

atrawog merged 3 commits into
mainfrom
feat/sdk-buildkit

Conversation

@atrawog

@atrawog atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

The paired consumer of P3-unit-1 (producer: sdk v0.2026189.1027, merged 43f00e9). The pure Containerfile render/compute cluster now lives in sdk/buildkit; charly:

  • deletes charly/format_template.go (the cluster moved verbatim to sdk/buildkit);
  • re-exports the library zero-churn via charly/buildkit_aliases.go (CacheMount, RenderCacheMounts(Auto), RenderTemplate, NewInstallContext, templateFuncs, toStringSlice/toMapSlice → the exported buildkit symbols), so the ~15 consumer sites compile unchanged — the Go compiler is the parity check;
  • bumps sdk gitlink → 43f00e9 + charly/go.mod require → v0.2026189.1027;
  • (2nd commit) sweeps stale format_template.go comment refs in build_target_oci.go + localpkg.go + buildkit_aliases.go (R5).

Change class

charly Go (build render adoption) + submodule/go.mod bump + a comment-only R5 sweep.

How R10-tested — exact gate + pasted output

  • Behavior-neutral proof: verbatim move; charly's golden go test suite (cache_mount/generate/install_build) exercises the moved cluster and passes → Containerfile output byte-preserved.
  • Disposable bed (fresh rebuild): check-builder-local on the final code (merged sdk 43f00e9).
$ (charly) go build/vet/test ./...  → green (test 36.7s; ~15 consumer sites zero-churn via buildkit_aliases.go)
$ task build:charly → charly 2026.189.0957 ; charly box generate → exit 0
$ charly check run check-builder-local  (fresh binary, FINAL code, source frozen)  →  PASS (steps=4), ok: true
    deploy-add ✓ 22s · check-live ✓ 5s · update ✓ 29s (fresh-rebuild leg) · cleanup ✓ 7s · total 63s · zero warnings
$ git grep 'format_template' -- charly/ ':(exclude)CHANGELOG'  →  EMPTY (R5 clean)

Attribution tier

fully tested and validated — the aliased buildkit library executed against a fresh rebuild in the disposable bed (all 4 steps green). The 2nd commit is comment-only (documentation reviewed) riding the same cutover.

CLAUDE.md rule compliance

  • R0: /charly-internals:generate-source + /charly-build:generate/build + /charly-internals:go.
  • R5: format_template.go deleted; grep self-test clean (only CHANGELOG history + the R5 sweep updated the 3 stale comments to point at sdk/buildkit).
  • R3: render cluster is ONE importable library (no duplication). Kernel/plugin boundary: the SDK-library half — a mechanism on spec E-envelope types, no charly import.
  • Hard cutover: producer-first cross-repo (sdk merged+tagged first); P3 decomposed into atomic per-unit cutovers (unit-1).
  • CHANGELOG: CHANGELOG/2026.189.1017.md.

Assisted-by: Claude (fully tested and validated)

atrawog added 2 commits July 8, 2026 12:35
The paired consumer of P3-unit-1 (producer: sdk v0.2026189.1027). The pure
Containerfile render/compute cluster now lives in sdk/buildkit; charly:
- deletes charly/format_template.go (the cluster moved verbatim to sdk/buildkit);
- re-exports the library zero-churn via charly/buildkit_aliases.go, so the ~15
  consumer sites compile unchanged (the Go compiler is the parity check);
- bumps sdk → v0.2026189.1027 (43f00e9) + charly/go.mod require.

Behavior-neutral (verbatim move); proven by the golden go-test suite + the
check-builder-local bed (all 4 steps green on a fresh rebuild). First unit of the P3
sdk/buildkit extraction.

Assisted-by: Claude (fully tested and validated)
Comment-only: the render machinery moved to sdk/buildkit (P3-unit-1), so
build_target_oci.go + localpkg.go now point at sdk/buildkit, and buildkit_aliases.go
drops the deleted-filename reference. R5 grep self-test clean.

Assisted-by: Claude (documentation reviewed)
@atrawog

atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly Go (build-render adoption) + submodule/go.mod bump + a comment-only R5 sweep

Fresh, independent evaluation (new context, not the author). Every claim re-derived from the diff + my own re-run; nothing taken on the author's word.

Checklist

  • [PASS] 0. Security/anti-tampering (T1–T4): diff == description exactly (6 files + sdk gitlink); no exfiltration/secrets/obfuscation; no weakened gate; supply-chain clean — the only dep move is sdk v0.2026189.748 → v0.2026189.1027, the tag that points at 43f00e9 = sdk main HEAD; no manipulation attempt.
  • [PASS] 1. Description complete: filled template, per-file summary, R10 gate named + pasted output, attribution justified.
  • [PASS] 2. Change-class gate matches evidence (R7/R10): builder-DEPLOY-leg render is exactly what moved to sdk/buildkit; gated on check-builder-local re-run by me (below). No dry-run / rebuild-alone fraud.
  • [PASS] 3. Attribution tier: fully tested and validated — I re-ran the disposable bed green on a fresh rebuild. The 2nd (comment-only) commit correctly rides at documentation reviewed.
  • [PASS] 4. R0 skills: /charly-internals:generate-source + /charly-build:generate + /charly-internals:go honored; the aliases route the build engine's render calls into the importable library exactly as generate-source describes.
  • [PASS] 5. R1 / zero warnings: bed ok:true, 0 failed; zero [WARN]/[ERROR] lines, no newest-wins/version-mismatch warning. The only error-substring lines are the benign hashicorp go-plugin EOF-on-clean-shutdown DEBUG traces (present in every plugin-using run, not introduced here).
  • [PASS] 6. R2: no pre-existing/out-of-scope split; producer (sdk#8) merged+tagged first.
  • [PASS] 7. R3: the render/compute cluster is now ONE importable library — no duplication; the aliases keep ~15 call sites zero-churn.
  • [PASS] 8. R4: no sleep/retry/magic-number/ad-hoc-podman.
  • [PASS] 9. R5: format_template.go deleted; git grep 'format_template' -- charly/ ':(exclude)CHANGELOG' → EMPTY; type CacheMount struct / func RenderTemplate / func NewInstallContext → EMPTY in charly/ (defs live in sdk/buildkit, charly only aliases). No transitional/dual-mode path.
  • [PASS] 10. R6/R8/R9: clean tree pre-op; render is byte-preserved (golden go-test suite green); R9 — charly rebuilt, charly version = 2026.189.1037 matches source.
  • [PASS] 11. R10: disposable check-builder-local (host: local), fresh-rebuild update leg green, zero warnings, and the builder-artifact-present check would FAIL if the moved render broke.
  • [PASS] 12. RDD/ADE/SDD: composition proven on the bed; no new candy (ADE plan already present on the bed); no .cue edit (InstallContext CUE-sourcing was P2, not this unit) — no gen drift possible.
  • [PASS] 13. concurrency/anti-cheat: no idle/serial-as-proof, no forbidden framing; pure render-library extraction.
  • [PASS] 14. hard cutover: the two feat commits (adopt + its own R5 comment sweep) rebase-merge into ONE linear atomic cutover with an R5-clean final state; no deferred/Phase-2 work; producer-first order honored.
  • [PASS] 15. kernel/plugin boundary: moves pure render machinery OUT of core INTO sdk/buildkit (core-minimization); the library operates on spec envelope types with no charly import — no concrete-kind leak.
  • [PASS] 16. disposable-only autonomy: the only destroy/rebuild happened on the disposable: true bed.
  • [PASS] 17. clean architecture + Go gates (re-run by me): gofmt -l . empty · go build ./... · go vet ./... · go test ./... all green (test 41.9s). Deprecated in-core file fully removed.
  • [PASS] 18. CHANGELOG: CHANGELOG/2026.189.1017.md present (placeholder; I finalize the merge-time CalVer).

My R10 re-run (fresh rebuild, FINAL code, source frozen)

task build:charly → opencharly-git-2026.189.1037-1 ; charly version → 2026.189.1037
charly check run check-builder-local → PASS (steps=4)
  summary.yml: deploy-add ✓ 23s · check-live ✓ 5s · update ✓ 29s (fresh-rebuild leg) · cleanup ✓ 7s · total 64s · ok: true
  check-live: PASS builder-artifact-present exit=0 — 1 passed, 0 failed, 0 skipped
zero [WARN]/[ERROR] lines · git grep format_template (charly/, excl CHANGELOG) → EMPTY

Decision: APPROVED — verbatim render move proven byte-neutral by the golden test suite and green end-to-end on a fresh-rebuilt disposable bed; sdk gitlink == main HEAD == the tagged require; R5 grep self-test clean; supply chain clean. Finalizing the merge-time CalVer, merging --rebase, and tagging.

Assisted-by: Claude (fully tested and validated)

…kit adopt)

Merge-time CalVer stamp for PR #24 (P3-unit-1 sdk/buildkit consumer adoption),
applied by the fresh pr-validator on PASS. Behavior identical to the validated
feat head 360855f; renames the placeholder CHANGELOG to the merge-time stamp.

Assisted-by: Claude (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01LjLm6DGQasmXaXw2ZorwhE
@atrawog
atrawog merged commit 1460148 into main Jul 8, 2026
@atrawog
atrawog deleted the feat/sdk-buildkit branch July 8, 2026 10:51
atrawog added a commit that referenced this pull request Jul 12, 2026
T-P8b confirmed plugin-build calls the CURRENT core prune under the build-activity
lock, leaving retention.go/filelock.go/local_image.go untouched — so retention→kit is
a P15 unit (moved with the host_build_retention.go fold, after P14a's labels→spec),
not a build-followup pure-compute relocation. Team-lead ruled P15 authoritative.

Assisted-by: Claude (documentation reviewed)
Claude-Session: https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif
atrawog added a commit that referenced this pull request Jul 12, 2026
Evaluator version stamp for PR #80 — the #24 superproject half: repoint the
relocated pure-compute build helpers to the sdk libraries and delete the core
copies. Renames the placeholder CHANGELOG to the merge-time CalVer and aligns
its H1. No behavior change.

Assisted-by: Claude (fully tested and validated)
Claude-Session: https://claude.ai/code/session_014ykuqUwq8WCYeBmmzm5VDk
atrawog added a commit that referenced this pull request Jul 12, 2026
…ies (P8b-followup) (#80)

The #24 superproject half (consumes opencharly/sdk#32, tag v0.2026193.1801). The pure-compute
build helpers relocated into the sdk libraries; charly core repoints to aliases/shims and
DELETES the core copies (R5). Producer-first: the sdk half landed + tagged before this.

- `installDirAtomic` → `var = kit.InstallDirAtomic`
- `formatPhaseTemplate`/`builderPhaseTemplate` → `var = buildkit.*`
- the intermediates DAG pure funcs → `sdk/deploykit` via the `candyModelMap` adapter
  (new `intermediates_shim.go`); no-caller funcs (graphReaches/topoSortByPopularity/
  sortByPopularity/addTransitiveDeps) fully DELETED; the *Config-reading RESOLVE
  orchestration (ComputeIntermediates family) STAYS core
- `stepEmitSystemPackages` render → `buildkit.RenderSystemPackagesFragment` (delegates)
- sdk gitlink → f0f37fab; `charly/go.mod` require → v0.2026193.1801

R10 (re-run independently by the pr-validator, method-independent byte-parity): built BOTH the
pre-move baseline (main, core copies + old sdk) and this branch (shims + released sdk f0f37fab)
from source and generated box/fedora at the pinned `--tag 2026.001.0000` — all 46 Containerfiles
BYTE-IDENTICAL (diff -q: 0 of 46 differ). R5 grep self-test clean (no stale core def survives).
`go test ./charly/...` green; golangci-lint 0 issues; gofmt clean; go vet clean. Re-verified after
`gh pr update-branch` onto main (#79) — byte-parity holds.

Assisted-by: Claude (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 12, 2026
…reflect P8b drive-in-candy (#81)

Bumps the plugins submodule gitlink 118a4e74 -> b527c3f (opencharly/marketplace#36 merged, plus the already-merged all-docs #32/#33/#34). The full submodule old..new range is 100% documentation (SKILL.md + CHANGELOG), so the pointer bump is the Documentation-only change class.

Carries the R5 claim-keyed correction of the stale box-build "engine stays host-side behind HostBuild(image/containerfiles)" claim: the box-build podman DRIVE now lives in candy/plugin-build (P8b) and the pure-compute helpers in the sdk libraries (#24). Verified independently: forward bump (old is an ancestor of new), range all-documentation, skills load cleanly (valid frontmatter, no manifest change).

Assisted-by: Claude (documentation reviewed)
atrawog added a commit that referenced this pull request Jul 25, 2026
K1 keystone (task #24): repoints the sdk submodule to the merged
loaderkit.LoadUnified/ApplyDiscover producer leg (sdk PR #103, squashed
to sdk@3d5ab5c, tagged v0.2026206.1046), and bumps charly/go.mod's
github.com/opencharly/sdk require to match.

Verification: task build:binary clean (no go.work.sum drift); go build
./... / go vet ./... clean; golangci-lint run ./charly/... 0 issues;
go test ./... green, 132.0s full pass.

Assisted-by: Claude Code Anthropic Claude Sonnet 5 (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 25, 2026
…cope

K1 keystone (task #24), closing the plugins leg of the 3-repo cutover
(sdk#103 merged v0.2026206.1046 + plugins#114 merged v2026.206.1136 +
this charly leg):

- Repoints the plugins gitlink from an unpushed local-only SHA
  (2fbcf335) to the merged plugins#114 commit (dc9dd974, tag
  v2026.206.1136) — verified a clean fast-forward descendant of the
  prior plugins-main tip (ede5c1b), so a fresh clone's
  `git submodule update --init` resolves cleanly.
- Adds the 3-repo cutover scope disclosure (sdk + plugins + charly
  legs) and the charly/->sdk/loaderkit kit-import inventory disclosure
  (6->42 sites, +36 — a legitimate intermediate from relocating the
  UnifiedFile/LoadUnified mechanism body, TRACKED until-K<n> debt with
  a named exit: the loader-orchestration->plugin-behind-
  HostBuild("resolved-project") move, tracked by charly#118's P16
  floor gate) to CHANGELOG/2026.206.1300.md.

Verification: go build/vet ./... clean.

Assisted-by: Claude Code Anthropic Claude Sonnet 5 (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 25, 2026
…t thin wrappers

K1 keystone (task #24) — 3-repo cutover, this is the charly consumer leg:
1. sdk (sdk#103, merged 3d5ab5c, tag v0.2026206.1046) — the loaderkit.LoadUnified/ApplyDiscover producer leg.
2. plugins (plugins#114, merged dc9dd974, tag v2026.206.1136) — docs-only R5 claim-sweep correcting the
   plugin skill + pr-validator.md's stale "materialize is a permanent in-core M-mechanism" claim.
3. charly (this leg) — LoadUnified/ApplyDiscover become thin wrappers delegating to
   loaderkit.LoadUnified/loaderkit.RunDiscover, threading every registry-coupled step through the new
   loaderkit.LoadSeams callback struct. Repoints the plugins gitlink to the merged dc9dd974 (was an
   unpushed local-only SHA). Net: -312 core LOC (66 files, +799/-1111).

Disclosed structural changes: UnifiedFile.PluginKinds field consolidation (behavior-preserving, dual
byte-equivalence proven); task #22 partial-only fix (stays open, named follow-on); charly/ -> sdk/loaderkit
import-site inventory 6->42 (+36), tracked until-K<n> debt with a named exit (loader orchestration moves
behind HostBuild("resolved-project")), tracked by charly#118's P16 floor gate.

R10: check-pod PASS (steps=13), ok:true, 169s, fresh-rebuild incl. check-live-rebuild + feature-run-rebuild,
zero warnings. Dual byte-equivalence proof (canonicalized-JSON harness + materialized-Containerfile diff),
both byte-identical.

pr-validator round 2: both round-1 findings (unpushed plugins gitlink; undisclosed kit-import inventory)
independently re-verified fixed against live remote state.

Assisted-by: Claude Code Anthropic Claude Sonnet 5 (fully tested and validated)
atrawog added a commit that referenced this pull request Aug 12, 2026
## Summary of changes

Unit 6 of the AgentTeams integration — the **VM substrate**. The full AgentTeams stack (minio, matrix/tuwunel, element, higress, controller) now deploys on BOTH substrates: the existing `pod:` bed and a new `vm:` bed that installs the `agentteams` top composition into a disposable Arch cloud-image guest via `add_candy`, with services running as systemd units under uid 1000 (init polymorphism — no supervisord in a VM).

### The three-repo fix (spec → sdk → main)

The `extract:` entries (higress binaries exist only in `higress/all-in-one:2.2.1`) are a build-time Containerfile operation on a container venue, but a machine venue has no image build — the install plan executes over the venue's own filesystem. This cutover makes extract work on a VM:

- **spec** (PR #24): the `ExtractStep` in the InstallPlan IR + wire type. **MERGED + TAGGED `v0.2026224.1942`** (squash `a38780e`).
- **sdk** (PR #130): `RunVenueExtractStep` — pull the source image on the host, extract the requested path, ship it into the venue over the DeployExecutor. Plus the machine-venue `write:` verb now creates the parent dir first (`install -d`), matching the container-venue COPY behavior, and the spec-pin bump to `v0.2026224.1942`. **MERGED + TAGGED `v0.2026224.2004`** (squash `e6950fa`).
- **main** (this PR): the `extract` word dispatch in `candy/plugin-installstep` + `charly/plugin_executor_reverse.go`, the VM entity + bed, the candy/init fixes below, and the 90 plugin-candy + `charly` `go.mod` spec pins bumped to `v0.2026224.1942` (the sdk gitlink bump requires the released spec; the stale `v0.2026224.403` pins broke the external-plugin module graph — `TestExternalPluginStep_ReverseChannelEndToEnd` failed "updates to go.mod needed" until the pins aligned).

### Init-polymorphism restart parity (root cause)

supervisord's service template defaults to `autorestart=true`; the systemd template only rendered `Restart=` when `.Restart` was non-empty (unset → `Restart=no`). A service that self-heals in a pod stayed dead in a VM. Fixed at the root: the systemd template now defaults to `Restart=always` for unset/always/unless-stopped (`candy/plugin-init/resolve.go` + `charly/charly.yml`), with a parity test (`render_service_unit_test.go`). The higress gateway service also declares `restart: always` explicitly (envoy's V8 WASM engine segfaults once at startup under the upstream `--concurrency` default; the init's restart policy covers the ~15s down window on both substrates).

### Venue-dependent network (root cause)

The controller's DockerBackend passed `NetworkMode: "charly"` (bridge), but the Arch cloud-image guest kernel has no bridge module → `Netlink error: Operation not supported (os error 95)`. Fixed by venue-dependent network: `pasta` on machine venues, `charly` on container venues.

### Volume refactor (per the user's architectural directive)

Every agentteams candy now uses its own uniquely-named home-relative volume (`~/.agentteams/minio`, `~/.agentteams/matrix`, `~/.agentteams/higress`, `~/.agentteams/controller`) instead of a shared `/data` — each candy is installable in any combination, alone or with others, at freely configurable locations. Element has no volume (static nginx).

### Other fixes

- **`/dev/stdout` venue defect**: the higress gateway's mesh config `accessLogFile: /dev/stdout` fails in a VM (ENXIO on the pipe) → `/var/log/proxy/access.log`.
- **`pacman -Syu`**: the arch distro's machine-venue install template now runs `-Syu` (partial-upgrade on fresh cloud-image guests).
- **`charly vm cp-box --domain`**: new flag for per-deploy domain identity (a check bed's domain is the bed name, not the entity).
- **Bounded probes**: the gateway-health/gateway-http checks use bounded 28×2s loops (the envoy startup/restart window) instead of a single curl.

## Change class

`charly-or-sdk Go` + `candy/config` — the VM substrate cutover: plugin dispatch, init template, VM entity + bed, and the shared candy fixes.

## How R10-tested — exact gate, commands, and pasted output

- **The gate for this change class:** `charly check run check-agentteams-vm` (the new VM bed) + `charly check run check-agentteams-pod` (the existing pod bed — the change set modifies the shared candies it exercises) + `go test ./...` + `charly box validate`. All gates re-run at the FINAL head `2e4a69d1`+`e11f9972` with the rebuilt worktree binary (`charly version` 2026.224.2024).
- **`charly check run check-agentteams-vm`** (run 2026.224.2039) — full fresh-rebuild sequence, all 9 bed steps PASS (vm-build → vm-create → deploy-add → bring-up-members → check-live → update → check-live-rebuild → cleanup → cleanup-members), both check-live legs 13/13 PASS, zero failures/skips:

```
13 steps: 13 passed, 0 failed, 0 skipped
```

- **`charly check run check-agentteams-pod`** (run 2026.224.2105) — full fresh-rebuild sequence, all 13 bed steps PASS (image-build → check-image → deploy-add → config → start → bring-up-members → check-live → feature-run → update → check-live-rebuild → feature-run-rebuild → cleanup → cleanup-members), both check-live legs 73 steps: **64 passed, 0 failed, 9 skipped** (the 9 SKIPs are the mutating `run:` steps that already executed at deploy time — standard `check live` behavior), zero failures.
- **`go test ./...`** (from `charly/`) — all packages green, including `TestExternalPluginStep_ReverseChannelEndToEnd` (the external-plugin e2e that builds a candy module standalone — it failed before the 90-pin bump).
- **`charly box validate`** — zero warnings.

## Attribution tier

`fully tested and validated` — both disposable beds (pod + vm) ran the complete fresh-rebuild R10 with the changed paths executed live; both outputs pasted above.

## Harness rulebook compliance — state HOW each is satisfied (or `N/A — <reason>`)

- **R0 skills:** `/charly-internals:go` (plugin dispatch, init template), `/charly-image:layer` (candy authoring), `/charly-image:image` (box composition), `/charly-check:check` (bed authoring + R10), `/charly-vm:vm` (VM entity + bed), `/charly-internals:git-workflow` (PR-only landing).
- **R1 RCA + zero warnings:** every failure (gateway restart, netavark bridge, /dev/stdout, pacman partial-upgrade) was RCA'd to its root cause and fixed there — no "flake"/"transient"/"pre-existing" framings.
- **R2 no out-of-scope:** every issue surfaced during this cutover is fixed in this tree.
- **R3 no duplication:** the venue-dependent network/URL logic is one shared abstraction in the controller candy; the bounded-probe pattern is shared across both beds.
- **R4 no workaround:** no sleeps/retries/magic-numbers; the bounded probes are bounded loops with a real failure exit, not blind retries; all operational actions go through the `charly` CLI (no ad-hoc podman).
- **R5 hard cutover + grep:** no legacy path introduced; the `/data` volume refactor removed every stale reference.
- **R6 git safety:** no destructive git actions; the branch advances only by adding commits.
- **R7 runtime gate:** both beds ran the end-to-end `charly check run` sequence (pasted above).
- **R8 artifact invariants:** `charly box labels` verified the `ai.opencharly.*` labels on the built images.
- **R9 binary == source + deps:** rebuilt with `task build:binary` at the final head after the gitlink + pin commits; invoked through this worktree's `bin/`; `charly version` = 2026.224.2024 verified; the schema-version warning the stale binary emitted (`box validate`) is gone at zero warnings.
- **R10 disposable + coverage:** both beds are `disposable: true` and RE-RAN at the final head with the rebuilt binary (VM run 2026.224.2039, pod run 2026.224.2105); the VM bed's 13 checks and the pod bed's 64 checks fail without the change (the gateway-restart, netavark, and volume-refactor checks exercise the changed paths).
- **RDD / ADE / SDD:** RDD: the machine-venue extract path was proven on the disposable VM bed. ADE: every candy ships a non-empty `description:` + ≥1 deterministic `check:`. SDD: no CUE schema change in this repo (the wire type lives in spec).
- **Hard cutover:** one atomic commit; no "Phase 2/TODO/deferred" left in scope.
- **Kernel/plugin boundary law:** the `extract` dispatch lives in the class:step plugin (`candy/plugin-installstep`) + the host-step reverse seam; the kernel stays kind-blind.
- **Clean architecture + Go gates:** `gofmt -l .` empty, `go vet` clean, `go test ./...` green.
- **CHANGELOG:** `CHANGELOG/2026.224.1600.md` staged in this PR (placeholder CalVer, finalized by the pr-validator at merge).

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
atrawog added a commit that referenced this pull request Aug 24, 2026
distro-cachyos#24 advanced the arch namespace import to distro-arch
v2026.236.0159 (the batch-1 tag whose arch-builder references
layer-nodejs/layer-cuda). Advance the charly repo's box/cachyos gitlink to
that merged main (7a9a9b4) so the TestCandySourceDirs_OverrideAnchorsRemoteApk
scan resolves the arch namespace from the fixed tag.

With this + the meta-candy socat fix (45397f4) + the box gitlink advances
(758463c), the go gate passes: candySourceDirs entries: 136,
android-emulator-layer present, resolved apk OK.
github-actions Bot pushed a commit that referenced this pull request Aug 24, 2026
#385)

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos (worktree state)

The ref advances + plugin go.mod sdk/spec bumps + fleet-compile parity
golden that the batch-1 move carries (pod-dbus v2026.235.2115, the
distro-repo charly candy, the out-of-process plugin go.mod bumps).

* feat: advance box/cachyos + box/fedora gitlinks; allowlist the mkinitcpio chroot autodetect error

- box/cachyos → 1e52b4e (distro-cachyos main post-#22: the batch-1 moved
  candy refs advance to standalone repos) and box/fedora → 46f7cf7
  (post-#36): unblocks TestCandySourceDirs_OverrideAnchorsRemoteApk, whose
  scan of box/cachyos resolved deleted charly/candy/* refs under
  CHARLY_REPO_OVERRIDE.
- candy/plugin-check: allowlist mkinitcpio's 'failed to detect root
  filesystem' — the autodetect hook cannot find a root device inside the
  pacstrap chroot and falls back to a full initramfs (the correct initramfs
  for a booting VM); CONDITIONAL on 'Initcpio image generation successful'
  in the same log, scoped by TestMkinitcpioChrootAutodetectIsConditional
  (recovered / no-recovery-fatal / unrelated-error-not-exempted). This is
  the named-batch exit the distro-cachyos#23 vm checks need to reach zero
  warnings.

* Revert "feat: advance box/cachyos + box/fedora gitlinks; allowlist the mkinitcpio chroot autodetect error"

This reverts commit 8eba902.

* fix(plugin-check): allowlist mkinitcpio's chroot autodetect rootfs error

mkinitcpio's autodetect hook reads the kernel cmdline/fstab for the root
device; inside the pacstrap chroot (bootstrap VM base-image build) there is
no booted kernel, so it prints '==> ERROR: failed to detect root
filesystem' and falls back to a full initramfs — the CORRECT initramfs for
a booting VM whose real root device arrives via the kernel cmdline at boot.

CONDITIONAL on '==> Initcpio image generation successful' in the same log
(a build that never creates the image still fails the step); scoped by
TestMkinitcpioChrootAutodetectIsConditional (recovered / no-recovery-fatal /
unrelated-error-not-exempted). This is the named-batch exit the
distro-cachyos#23 vm checks need to reach zero warnings.

* Revert "fix(plugin-check): allowlist mkinitcpio's chroot autodetect rootfs error"

This reverts commit 91aa2c2.

* feat: advance the box/* gitlinks to the post-batch-1 distro mains

The committed gitlinks pointed at pre-batch-1 distro commits whose box
files still pinned moved candies in OLD form (arch-builder:
charly/candy/nodejs@0530 etc.). The test scan (TestCandySourceDirs_
OverrideAnchorsRemoteApk) reads the COMMITTED gitlink content, so it
resolved candy/nodejs@0530 under CHARLY_REPO_OVERRIDE to the local repo
where the moved candy is deleted -> 'remote candy .../candy/nodejs not
found'.

Advance all five box/* gitlinks to the merged distro mains (arch#24
98941f3, cachyos#23 0cbfc67, debian#15 6cf14eb, fedora#36 46f7cf7,
ubuntu#15 a371170) whose boxes reference the standalone layer/pod refs.
This unblocks the charly#385 go gate.

* fix(candy/charly): the meta-candy's candy list advances socat to layer-socat

The batch-1 move deleted candy/socat (moved to [email protected])
but the charly meta-candy's OWN candy: list still had the bare name. Under
CHARLY_REPO_OVERRIDE (TestCandySourceDirs_OverrideAnchorsRemoteApk) the
bare socat resolves to the local repo where candy/socat is deleted ->
'remote candy .../candy/socat not found'. Advance to the standalone ref,
matching every other in-repo candy's rewritten deps.

* feat: advance box/cachyos gitlink to the post-#24 main (arch import fix)

distro-cachyos#24 advanced the arch namespace import to distro-arch
v2026.236.0159 (the batch-1 tag whose arch-builder references
layer-nodejs/layer-cuda). Advance the charly repo's box/cachyos gitlink to
that merged main (7a9a9b4) so the TestCandySourceDirs_OverrideAnchorsRemoteApk
scan resolves the arch namespace from the fixed tag.

With this + the meta-candy socat fix (45397f4) + the box gitlink advances
(758463c), the go gate passes: candySourceDirs entries: 136,
android-emulator-layer present, resolved apk OK.

* fix: resolve the plugin-build go.mod spec pin conflict (keep the post-#50 pin)

* fix(charly-coder): the three coder skills' nodejs candy refs advance to layer-nodejs

R5 sweep completion: the arch-coder-skill / debian-coder-skill /
fedora-coder-skill candy lists still referenced the moved nodejs candy by
bare name (the ubuntu-coder-skill and nine other files had already
converted). All three now pin @github.com/opencharly/layer-nodejs. (The
remaining bare nodejs/socat/tmux/ffmpeg names elsewhere are distro
package-list entries — OS package names, never candy refs, per the
cutover's package-vs-candy rule.)

* chore: re-sync PR head (validator re-run at the green head)
atrawog added a commit that referenced this pull request Sep 1, 2026
…ed (#526)

* chore: advance box/omarchy to the omarchy-eval beds + the L3 hybrid bed

Syncs the gitlink to distro-omarchy main (fb7bf64): the omarchy-eval skill
(#21), the snapshot golden policy bed (#22), the L3 dual-GPU hybrid bed
(#23), and the CI pin (#24).

* ci: trigger a fresh validator dispatch
github-actions Bot pushed a commit that referenced this pull request Oct 22, 2026
…s a loadable pipeline (#1020)

charly's module graph pinned github.com/opencharly/plugin-migrate/candy/plugin-migrate
v0.2026280.2238 — two releases behind the reshape that makes `charly migrate`'s own output
loadable (plugin-migrate#22 -> v2026.294.0359, #24 -> v2026.294.1337). The compiled-in
`command:migrate` is a Go module pin, so no released charly could reach the fix: the shipped
reshape emitted a lifted verb as bare step-level sugar, declared the pipeline arg with an
invalid `type:`, left the retired per-lane `$pr` unbound, and flattened `concurrency: {lanes:
N}` into an inert `config:` knob — so the file it wrote failed its own loader with `plan[0] has
no intent keyword`.

The pin moves to the released v0.2026294.1337 (fetched, re-resolved to e4980779, whose tree is
the tree PR #24 passed on), and go.sum carries its two hashes. `go mod tidy` moves nothing
else, `go.work` does not move (its `go` directive follows go.mod), and the tag requires
sdk v0.2026270.1147 / spec v0.2026270.938 — older than this repo's pins, so no transitive
raise and no toolchain directive move.

One new R10 bed, check-migrate-local, witnesses the DELIVERY (no bed in this repo drove
`charly migrate`): a committed fixture carries the retired `kind: pipeline` grammar (`stages:`
+ a lifted-verb `kind:` + a `$pr` reference + `concurrency: {lanes: N}`). Step 1 is the
negative control (the retired spelling is refused, naming both retired keys); step 2 copies the
fixture, migrates it, asserts every emitted-shape clause (intent label with the verb key as its
sibling and no bare sugar, the pooled lane arm, the `prs:` collection arg with no invalid
`type:`, and the `$pr` -> `$pr.stdout` rebinding) and then loads it with `box validate` rc=0.
The same step text against the pre-bump binary fails at the intent-label assertion.

Closes #1018

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

Co-authored-by: Andreas Trawoeger <[email protected]>
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