Skip to content

fix(postgresql): pgvector moved AUR→extra, install via pacman (arch) - #9

Merged
atrawog merged 2 commits into
mainfrom
feat/pgvector-repo-package
Jul 8, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/pgvector-repo-package

Conversation

@atrawog

@atrawog atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

pgvector moved from the AUR into Arch's official extra repo (extra/pgvector 0.8.4-1). In candy/postgresql it was still declared under distro.arch as an aur: package, so on an arch build yay -S --needed resolved it as a repo package, makepkg never ran, the aur builder's find … *.pkg.tar.zst -exec cp copied nothing, and an empty /tmp/aur-pkgs COPY layer was committed and cached — the check-cachyos-immich-ml-pod build failure ("/tmp/aur-pkgs/*.pkg.tar.zst: could not find or read package"). Moved pgvector to the plain package: list; it was the only arch AUR package for postgresql, so the entire aur builder stage is eliminated from every arch image composing postgresql. The fedora path already had pgvector as a repo package — this brings arch in line.

(The aur-builder's silent zero-output find|cp — the masked failure that let the empty layer cache — is fixed separately as its own R8 cutover.)

Change class + gate (R10, candy config)

Four independent proofs:

  1. RDD: pacman -Si pgvector → Repository: extra, Version: 0.8.4-1.
  2. R8 (generated artifact): the regenerated immich-ml Containerfile installs pgvector via pacman -Syu … postgresql pgvector (line 287) with zero yay -S aur stages.
  3. pacman resolve: pacman -Sp postgresql pgvector → postgresql-18.4, postgresql-libs-18.4, pgvector-0.8.4 all from extra (exit 0).
  4. In-context build: a fresh charly box build immich-ml (arch, --dev-local-pkg, local-candy override) executed the step —
[14/14] STEP 69/141: RUN … pacman -Syu --noconfirm postgresql pgvector
cachyos-extra-v3/pgvector 0.8.4-1.1 … installing pgvector...
Detected PostgreSQL 18: pkglibdir=/usr/lib/postgresql

The bed itself (check-cachyos-immich-ml-pod) requires_shared: nvidia-gpu and correctly SKIPs on this AMD host (P1.7), so the build is the gate for this arch-package change.

Tier: fully tested and validated.

Assisted-by: Claude (fully tested and validated)

pgvector left the AUR for Arch's extra repo (extra/pgvector 0.8.4-1). Declared
under distro.arch as an aur: package, yay -S --needed resolved it from the repo,
makepkg never ran, the aur builder copied zero .pkg.tar.zst, and an EMPTY layer
was committed+cached (check-cachyos-immich-ml-pod build failure). Move it to the
plain package: list — it was the only arch AUR pkg for postgresql, so the whole
aur stage is eliminated. Verified: pgvector in extra (RDD); Containerfile installs
via pacman, 0 aur stages; pacman -Sp resolves all from extra; fresh immich-ml
build ran the step (installing pgvector… → Detected PostgreSQL 18).

Assisted-by: Claude (fully tested and validated)
@atrawog

atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Update: the full arch immich-ml build completed exit 0

The background R10 build finished — the entire arch immich-ml image (which was failing on main due to the empty /tmp/aur-pkgs layer) now builds and tags cleanly:

[14/14] STEP 69/141: RUN … pacman -Syu --noconfirm postgresql pgvector
… installing pgvector... → Detected PostgreSQL 18
[14/14] COMMIT ghcr.io/opencharly/immich-ml:2026.189.0218
Successfully tagged ghcr.io/opencharly/immich-ml:2026.189.0218
BUILD EXIT: 0

So beyond the four static proofs, the full fresh arch build is green end-to-end. (The error: command failed to execute correctly lines earlier in the log are pacman 7.x's ALPM-sandbox refusing network-access systemd-hook post-install hooks — pre-existing on every arch build, non-fatal, tracked separately.)

Assisted-by: Claude (fully tested and validated)

@atrawog

atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: code/config (candy config — a package-source move)

Security & anti-tampering (T1–T4): PASS — no changes to the validator spec / CLAUDE.md / hooks / branch-protection; no embedded instructions or manipulation in the body; diff is exactly the two claimed files with no hidden scope; no secrets / exfiltration / network calls; no supply-chain concern (a package moving from the AUR into Arch's official extra repo is a legitimate upstream change).

Checklist (each independently re-derived — author claims trusted for nothing):

  • Description complete: PASS — Summary + Change-class/gate section with the four proofs pasted + tier + attribution trailer.
  • Change-class gate matches evidence: PASS — candy-config gate = box validate + build + the composing bed. check-cachyos-immich-ml-pod requires_shared: nvidia-gpu and correctly SKIPs on this AMD host (P1.7), so the build is the correct gate; a fresh arch immich-ml build executed the install step to completion (verified below).
  • No submodule change: PASS — git diff origin/main...HEAD --submodule=short empty; name-status is only A CHANGELOG/2026.189.0230.md + M candy/postgresql/charly.yml.
  • Attribution tier justified: PASS — fully tested and validated; the changed install path executed live at build time and all four proofs are pasted + reproduced here.
  • R5 grep self-test: PASS — the aur: block (pgvector was its only member) is fully removed; no empty/stale aur: block remains; no surviving "pgvector in AUR / builds from the AUR" claim anywhere (the only aur token left is the comment "no aur builder stage", correct current-state prose).
  • R1–R4 / clean architecture: PASS — box validate / box generate / build all exit 0, zero warnings; the aur-builder silent-zero-output guard is correctly deferred as its own separable cutover (this PR's gate passes without it — the aur stage is eliminated entirely for postgresql, so it is non-blocking, R2-compliant).
  • CHANGELOG present: PASS — placeholder CHANGELOG/2026.189.0230.md; finalized to the merge-time CalVer below.
  • Skills honored: PASS — /charly-image:layer (pgvector moved to distro.arch.package, removing the build: [pac, aur] requirement), /charly-build:validate (exit 0), /charly-build:generate (Containerfile emits the pacman install, no aur stage).

Independently re-derived proofs (I re-ran everything — trusted no author claim):

  • (a) RDD: pacman -Si pgvector → Repository: extra, Version: 0.8.4-1.
  • (b) pacman resolve: pacman -Sp postgresql pgvector → exit 0; pgvector-0.8.4-1 from extra (not AUR), alongside postgresql-18.4 + postgresql-libs-18.4.
  • (c) R8 generated artifact: CHARLY_REPO_OVERRIDE=…=<local> charly -C box/cachyos box generate immich-ml (exit 0) → the regenerated Containerfile installs pgvector on a pacman -Syu --noconfirm postgresql pgvector block (line 287), and grep -c 'yay -S' = 0 (aur stage gone).
  • (d) In-context build: the finished immich-ml build log shows STEP 69/141 pacman -Syu … postgresql pgvector → installing pgvector… → BUILD EXIT: 0; yay -S count 0; no aur-pkgs … could not find or read package error (the original failure is gone).
  • Check-coverage: the candy ships check: package pgvector installed: true (would FAIL without the package).

Decision: Every gate passes on independently re-derived evidence. pgvector genuinely left the AUR for Arch's extra repo; the candy now installs it via plain pacman, the whole aur builder stage is eliminated from every arch image composing postgresql, and the fresh build executed the install step cleanly. Finalizing the merge-time CalVer, merging (rebase), and tagging.

Assisted-by: Claude (fully tested and validated)

…AUR→extra)

Assisted-by: Claude (fully tested and validated)
@atrawog
atrawog merged commit 23a7ddb into main Jul 8, 2026
@atrawog
atrawog deleted the feat/pgvector-repo-package branch July 8, 2026 02:39
atrawog added a commit that referenced this pull request Aug 6, 2026
atrawog added a commit that referenced this pull request Aug 6, 2026
* build(tools): K-wave 2 residue ledger — the per-file CSV contract + its mechanical validator

The opening commit of the K-wave 2 residue-ledger program (the operator-approved plan at
plans/kwave2-residue-ledger-plan.md, 2026-08-05). It ships the program's contract and the tool
that judges it, before any residue moves.

K-wave 1's target was an aggregate ESTIMATE, so its outcome could never be validated against the
original number — mid-course re-classifications were legitimate but lived in prose. This program
fixes the process: the contract is charly/KWAVE2_LEDGER.csv, one row per file
(file,baseline_loc,disposition,target_loc,cone), and acceptance is tools/ledger-validate exiting 0
against the tree. The aggregate is COMPUTED from the rows, never asserted first, and a disposition
can change only by a ledger-amendment commit — silent renumbering is mechanically impossible.

BASELINE RE-PINNED to the K-wave 1 terminus 58f9878b (tag v2026.217.0608): 133 prod files,
17,189 LOC (top-level charly/*.go excluding _test.go, wc -l). The plan pinned 17,137/133 at
a0e9be3d; that same sha measures 17,189 with this method, so the tree never differed — the plan's
figure was censused earlier on the same branch. Traced: 7c6bcfc4 17,137 -> cf04638a 17,138 (+1,
the hostprobe-seam comment sweep) -> d68b2e66 17,189 (+51, the `Merge origin/main` the terminus
CHANGELOG itself names: #207's --repo prescan and the Kong `long:`-tag fix). File count is 133
throughout. Every baseline_loc in the CSV is measured at this sha, never copied from the plan.

Cone R1's stated aggregate does not match its own rows and is recorded here as measured, not as
stated: R1 says "2,097 LOC pure" but its 12 pure rows measure 1,407. Every other cone's arithmetic
is exact against the tree (R2 957, R3 365, R4 320, R5 268+200, R6 218, contested 543/-21/378), and
all 46 named files exist at exactly the LOC the plan states. The computed non-contested removable
is therefore 3,735, not 4,425; with the contested release the program targets 4,278 plus the R1
MIXED rows the pre-cone spike still has to measure. Whether R1's file list is instead incomplete
by ~690 LOC is an operator call, and the plan's own change control (a ledger-amendment commit) is
the mechanism if rows must be added.

The four dispositions: DELETE (the file must not exist), THIN (survives at <= target_loc), STAY
(survives, no LOC constraint), THIN-TBD (a mixed row whose thin target the cone's pre-cone spike
has not measured — never satisfied, and the -frozen check stays red while any remain). Line counts
reproduce wc -l exactly, so any ledger figure is checkable from the shell.

Proof: go build/vet/test green on the new module (25 cases, GOWORK=off — it is its own module
outside go.work, the tools/gomod-canonical and tools/golden-compile precedent), with the red/green
arms the gate needs to be non-vacuous: a DELETE row whose file is still present must fail, a THIN
row over target must fail, a THIN row deleted rather than thinned must fail, and a STAY row deleted
must fail. All three modes were then run live against the real untouched tree and their output
retained: -progress prints the starting scoreboard (2 of 46 satisfied — only the two STAY rows,
satisfied by definition at rest; 44 pending, 4 TBD) at exit 0, the default acceptance gate is RED
at exit 1 naming all 44, and -frozen is RED at exit 1 naming the 4 unmeasured R1 rows. The
acceptance output independently re-confirms every baseline_loc against the tree.

Additive only: a new standalone tool module plus a CSV. The charly workspace build is unaffected,
and the gomod-canonical gate globs candy/plugin-*/go.mod so it does not scan this module. The
built binary joins the existing tools/<name>/<name> .gitignore convention.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)

* ledger: freeze the R1 mixed targets + the ruling-1 cascade rows (operator-approved)

The R1 pre-cone spike measured the four THIN-TBD rows per-function
(defines-vs-calls, per-submodule caller traces): validate_project_host
THIN(80), generate DELETE(0) — the render-seam floor's last two methods die
by the LocalPkg/EmitPluginOp precedents recorded in the seam's own history —
host_build_buildengine THIN(65, incl. the 20-line context-ignore B pair
folded from generate.go), cue_schema THIN(38).

Ruling 1 (operator-approved 2026-08-05, AskUserQuestion in-session): the
manifest's CUE stay-claim is FALSE — sharedCueSchema is the spec-embed
concat, not the cross-plugin splice; the six loaderkit CUE methods are
spec.CueSchema-PARAMETERIZED and compiled-in plugin-loader builds its own
schema (the plugin-migrate twin already does, 'no longer shares charly's
core cueSchemaCtx'). Cascade rows added under the same approval:
validate.go DELETE(0) (every function leaves — fold to candy/plugin-box,
which already imports loaderkit) + the nine cue_kind_*.go D-rows (45 LOC,
dying with registerCueKind/cueKindDefs, whose only consumer is
coreCueSchema().KindDef; the M kind dispatch reads spec.KindValueDefs).

Ledger now 56 rows, -frozen GREEN, scoreboard 2/56 at rest. Row-computed
end-state: 17,189 − 3,735 − 543 − 830 − 226 = 11,855.

Assisted-by: Claude Code Anthropic Fable 5 (analysed on a live system)

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

* refactor(core)!: #55 K-wave2 cone R1 ruling 1 — the CUE schema leaves the kernel

Deletes 11 charly/ files and thins cue_schema.go 130 -> 54 by moving the
compiled CUE schema and its kind -> def table to the loader that validates
against it (sdk/loaderkit/cue_schema.go, this commit's sdk leg).

Deleted (ledger rows, K-wave 2 cone R1):
  charly/cue_defaults.go          (25)  applyCueDefaults wrapper
  charly/cue_node.go              (17)  validateNodeDocCUE wrapper
  charly/cue_kind_android_reg.go  (7)
  charly/cue_kind_box.go          (9)
  charly/cue_kind_candy.go        (11)
  charly/cue_kind_check.go        (3)
  charly/cue_kind_deploy.go       (3)
  charly/cue_kind_k8s.go          (3)
  charly/cue_kind_local.go        (3)
  charly/cue_kind_pod.go          (3)
  charly/cue_kind_vm.go           (3)

cue_schema.go keeps ONLY what two in-core clause-M mechanisms need: the
plugin-schema SPLICE (plugin_loader.go unifies each plugin's served schema_cue
onto this base to gate its authored input) and the structural-kind VALUE gate
(provider_kind_invoke.go's validateKindValueCUE). Gone from it: registerCueKind
/ cueKindDefs / cueKindDef, the coreCueSchema() handle constructor, and the six
same-named wrappers that forwarded that handle through the ProjectLoader seam.
Both remaining core symbols are now LAZY (sync.OnceValue) — previously the base
schema compiled eagerly at package init for every invocation including
"charly version"; the second compiled copy the loader now owns is therefore not
a net startup cost.

Callers reach the loader directly instead of through a core wrapper:
  loader_threaded.go        GateDoc: requireProjectLoader().ValidateNodeDocCUE
  materialize.go            requireProjectLoader().ValidateNodeDocCUE
  host_build_config_resolve requireProjectLoader().ApplyCueDefaults
  provider_kind_invoke.go   requireProjectLoader().CueDocFromYAML
  validate.go               all four CUE validators via the seam

R1 DOC-DIVERGENCE FIX (KERNEL_MANIFEST.md:172, assigned by this cone's brief).
The manifest justified validate.go staying core because coreCueSchema() was
"the HOST's SPLICED cross-plugin CUE schema ... a live, non-marshalable object".
REFUTED at the tree: coreCueSchema() returned {cueSchemaCtx, sharedCueSchema,
cueKindDef}, and sharedCueSchema was ONLY schemaconcat.ConcatSchema(sdkschema.FS)
— the BASE schema. No plugin fragment was ever unified into it; the plugin splice
is a SEPARATE value built in plugin_loader.go and used solely to gate that
plugin's own authored input. So no non-marshalable cross-plugin graph pinned
these validators to the host and no new seam family was needed. The manifest row
and the stale "cascade check" paragraph asserting the K1 CUE files did not move
are both corrected; the nine cue_kind_*.go / cue_defaults.go / cue_node.go rows
are deleted and cue_schema.go's row is rewritten (census test green).

Gates: go build + go vet clean (charly, spec, sdk, candy/plugin-loader);
gofmt clean; go test ./charly/ ok (171s, incl. TestKernelManifestBidirectional);
spec + plugin-loader tests ok; sdk tests ok under the workspace. The
GOWORK=off sdk/deploykit setup failure (a test importing candy/plugin-egress,
which resolves only through go.work) reproduces on the stashed clean tree — a
pre-existing workspace-scope artifact, not a regression from this change.

Tier is honest for a mid-flight bank on the accumulation branch: unit-proven,
no bed run yet. The program's full R10 roster + the B2 PR chain (with the
CHANGELOG entry) are paid once at the terminus, where this tier is re-stamped
to what the roster earns.

Assisted-by: Claude Code Claude Opus 5 (1M context) (analysed on a live system)

* refactor(core)!: #55 K-wave2 cone R1 ruling 2 — generate.go leaves the kernel; the render-seam dies

Ledger rows satisfied: charly/generate.go DELETE(0). R1 11/26 -> 12/26, overall 13/56 -> 14/56.

charly/generate.go is DELETED. Its four claims to kernel residency were each traced to the tree and
each failed:

  - createRemoteCandyCopies + candyByName: PRODUCTION-DEAD. Byte-faithful twins have served every
    live caller since the K3 host-prep move and the overlay-render relocation
    (candy/plugin-build/host_prep.go:129, candy/plugin-deploy-pod/overlay.go:453). Only tests and
    comments still named the core copies.
  - resolveInlineBuilderSeam + resolveBuilderStage (with tasks.go's wrapper): the file's own header
    called the builder-emit cluster "registry-coupled and stays core". It only CALLED the registry —
    the defines-vs-calls test — and the identical OpResolve dispatch had already been running
    plugin-side for the detection and external builder legs. Moved to sdk/deploykit beside them.
  - newCandyScanGenerator: existed solely to populate the render-seam floor's Generator cache. With
    the render seam gone the cache has no readers, so the constructor, the cache, and the
    HostBuild("buildengine-prep") leg that fed it all die together.
  - baselineContextIgnore + parseEmbeddedContextIgnoreBaseline: a genuine B-clause fact (a separate
    Go module cannot //go:embed charly/charly.yml), FOLDED into host_build_buildengine.go beside
    hostBuildContextIgnoreBaseline, its only reader.

The Generator struct itself COLOCATES into builder_venue.go as the two scalars the pod-overlay
step-emit actually reads (ExtraCandyRefs, DevLocalPkg). A file for a two-field struct whose only
consumer is buildEngineContext would be dumping, not structure.

Also deleted, as dead once their last caller went:
  - charly/host_build_render_seam.go — the whole "render-seam" host-builder.
  - charly/builder_preresolve.go — ensureBuildersConnected. Its "genuinely host-only" claim did not
    hold: it duplicated connectPluginByWordRef, which InvokeProvider already falls back to. Its
    header additionally described a deploy-time pre-pass whose call site had ALREADY relocated to
    candy/plugin-bundle — stale prose guarding dead code.
  - charly/provider_builder_external.go — comment-only residue after its word->candy map moved to
    spec beside the ExternalizedBuilders set it is keyed identically to (R3; the two halves of one
    D-fact had drifted into two files in two modules).

Latent gap closed in the same seam (R3, one connect rule for every builder dispatch):
candy/plugin-bundle's deploy-time pre-pass Invoked with an EMPTY ExtraRef, so it only ever reached
Pass-1 — a box/<distro> submodule deploy triggering a builder purely by DETECTION but vendoring the
plugin candy nowhere had no Pass-2 to fall back to. Both its Invokes now carry
spec.ExternalBuilderPluginRef(word), identical to the build-time resolve.

Coverage moved with the code, not dropped: TestCreateRemoteCandyCopies_StagesRemoteCandySource and
TestGeneratorCandyByNameRemoteQualifiedKey guarded two RCA'd regression classes (the "candy not
found" overlay-emit failure and the remote-candy staging COPY failure) but lived in charly while the
live twins carried no tests at all. They are ported to candy/plugin-build and candy/plugin-deploy-pod
against the surviving implementations, the second with an explicit vacuity guard asserting the remote
candy really is qualified-keyed.

R5 sweep (per-submodule, whole-tree): every deleted identifier's surviving references are either my
own deletion notes or past-tense history. Present-tense claims that a render-seam still exists were
corrected across charly, sdk and four candies (R1 claim-keyed). KERNEL_MANIFEST.md drops the four
rows for deleted files; the tasks.go, host_build_buildengine.go and builder_venue.go rows are
rewritten with fresh justifications, and the reverse-channel three-legs whitelist drops
"render-seam" and "buildengine-prep".

Gates: go build/vet/test green (charly, spec, sdk + the three touched candies, out-of-workspace ones
under GOWORK=off); gofmt clean; `task cue:gen` second run a no-op; `task build:binary` + `charly
version` 2026.217.0717 with the changed error string confirmed present in the binary via strings;
`charly box validate` exit 0 zero warnings at the root AND -C box/fedora; TestKernelManifestBidirectional
green.

Submodule legs: spec 0827e73, sdk fdff12b.

Assisted-by: Claude Code Claude Opus 5 (analysed on a live system)

* refactor(core)!: #55 K-wave2 cone R1 — the remote-repo fetch leaves the kernel

Ledger rows satisfied: charly/refs.go DELETE(0) + charly/refs_threaded.go DELETE(0).
R1 12/26 -> 14/26, overall 14/56 -> 16/56.

charly core is no longer a party to a remote-repo fetch. Both files are deleted:

  - refs.go held same-named wrappers whose entire body was ASSEMBLING spec.RefsCollectSeams — the
    resolved downloader, the command:migrate dispatch, the local-template substrate resolve, the
    CHARLY_REPO_OVERRIDE value — and handing them to the relocated mechanism. Core was not defining
    anything there; it was resolving three peers and reading one env var on the loader's behalf. The
    defines-vs-calls test calls that an R-item, so the assembly moves to candy/plugin-loader
    (refs_seams.go), which builds the legs from the ctx-threaded executor and reaches each peer over
    InvokeProvider. The ProjectLoader seam methods drop their `seams` parameter and take ctx.
  - refs_threaded.go held activeRefsDownloader + requireRefsDownloader: the typed handle core
    resolved a compiled-in refs plugin to. With the loader reaching the backend as a peer there is
    nothing left to wire, so plugin_inproc.go stops wiring it.

candy/plugin-refs gains an Invoke leg (OpResolve, CUE-sourced #RefsDownloadInput/#RefsDownloadReply)
because a peer plugin cannot hold a typed handle to another plugin the way core could. Both faces
run the SAME Download, so an alternative refs plugin overriding it for an OCI/S3 backend serves both
without knowing the wire face exists — the swappability the P7 seam exists for survives intact.

R3 consolidation folded in: the literal
`specexec.ContextWithExecutor(context.Background(), specexec.NewInProcExecutor(&inprocExecutorClient{...}))`
was copy-pasted at TEN production sites across the check / preempt / validate / loader / command
dispatch. This cutover needed it at seven more. All are now one `hostInProcCtx()`
(plugin_inproc_reverse.go, beside the client it constructs); each call still builds its own stateless
server + executor, so nothing about lifetime or isolation changes.

Coverage moved with the logic, not dropped (the test-double trap this relocation would otherwise
have sprung): TestEnsureRepoDownloaded_MutableRefAlwaysDelegates swapped charly's package-level
activeRefsDownloader, which no longer exists. Stubbing through the host registry would have tested
the dispatch rather than the decision, so the test moves to candy/plugin-loader/refs_fetch_test.go
and drives loaderkit.EnsureRepoDownloaded — where the cache-hit-vs-delegate decision actually lives —
with a stub Downloader. Porting it surfaced an incomplete fixture (a nil MigrateCache leg panicked in
the delegate path, which production never hits because refsSeams always supplies all four); the
ported test now supplies it AND asserts the migrate call pattern, so it covers strictly more than
before. TestRefsDownloaderRegisteredAtInit is restated as TestRefsProviderRegisteredAtInit: the
invariant it protected — the backend must be resolvable before the first fetch — is unchanged, only
its modern form is registry resolution rather than a non-nil package var.

COLD-CACHE PROOF (the gate that actually matters for a fetch-path change; a warm-cache pass would
prove nothing): `CHARLY_REPO_CACHE=<fresh dir> charly -C box/fedora box validate` printed
"Downloading github.com/opencharly/charly:v2026.201.0706...", exited 0 with zero warnings, and left a
populated `github.com/opencharly/[email protected]` tree (+ .ref/.download/.lock) in the fresh
cache — a real git clone driven end-to-end through the new loader-plugin -> InvokeProvider ->
plugin-refs path.

Other gates: go build/vet/test green (charly, spec, sdk, plugin-loader + six touched candies, the
out-of-workspace one under GOWORK=off); gofmt clean; `task cue:gen` reproducible; `task build:binary`
+ `charly version` 2026.217.0803 with the new loader error string confirmed in the binary via strings;
`charly box validate` exit 0 zero warnings at root AND -C box/fedora; TestKernelManifestBidirectional
green after dropping the refs.go / refs_threaded.go rows and rewriting main_repo.go's (its
justification named refs.go as the mechanism it feeds); three-legs whitelist rows for
box-fetch-resolve / buildengine-ensure-repo / buildengine-collect-remote-refs restated against the
seam. R5 sweep per-submodule on every deleted identifier; the two surviving present-tense mentions
(spec's RefsCollectSeams doc, sdk's refs_collect header) corrected rather than left pointing at
deleted core functions.

Submodule legs: spec 6e1cbec, sdk bafc97b.

Assisted-by: Claude Code Claude Opus 5 (analysed on a live system)

* refactor(core)!: #55 K-wave2 cone R1 — the project load-entry files leave the kernel

Ledger rows satisfied: charly/config.go DELETE(0), charly/format_config.go DELETE(0),
charly/main_repo.go DELETE(0). R1 14/26 -> 17/26, overall 16/56 -> 19/56.

Three files deleted, routed per the orchestrator's confirmed (a)+(b) split (msg 3b56e2ff, rule 4b):
what carried LOGIC relocated to the owning plugin, what was a bare forward colocated onto the seam
that owns it. Neither row is claimed by inlining.

(a) LOGIC relocated to candy/plugin-loader:
  - ResolveProjectRepo (main_repo.go) — spec.NormalizeRepoSpec + a default-branch resolve wrapped
    around one fetch. It is the same clone-and-cache machinery the loader plugin took over in the
    previous commit; it stayed behind only because the seam did not carry it yet. New seam method
    ProjectLoader.ResolveProjectRepo(ctx, spec).

(b) BARE FORWARDS colocated into loader_threaded.go, which DECLARES the seam they call:
  - LoadUnified, LoadConfig, LoadBuildConfigForBox/LoadDefaultBuildConfig, ErrNoCharlyYml +
    noCharlyYmlErr, and the ResolveProjectRepo forward.
  Inlining these into their ~40 call sites instead (LoadUnified alone is referenced across 30 files)
  would have GROWN the kernel to make three files disappear — the cosmetic-gaming pattern the ledger
  forbids. The file grows 253 -> 336 LOC and becomes the loader-seam facade: the handles, the
  registry-derived D-snapshot, the callback seams, and now the load entry points that forward into
  them. Reported measured, not asserted (rule 4b).

Dead surface removed on the way past:
  - BuildFile (format_config.go) — the on-disk build.yml schema struct. ZERO references anywhere in
    the tree beyond its own declaration; the unified loader superseded it long ago.
  - LoadConfigRaw — had decayed to a verbatim alias of LoadConfig, kept "for call sites that
    previously distinguished raw-vs-merged loads". No such call site remains.
  - resolveIntPtr COLOCATED to host_build_retention_defaults.go, its only consumer.

COLD-CACHE PROOF, twice, because this touches the fetch entry points and warm greens prove nothing:
  - `CHARLY_REPO_CACHE=<fresh> charly -C box/fedora box validate` — "Downloading
    github.com/opencharly/charly:v2026.201.0706...", exit 0, zero warnings, cache populated.
  - `CHARLY_REPO_CACHE=<fresh> charly --repo default box list boxes` — the relocated resolver
    end-to-end: cloned github.com/opencharly/charly:main, then resolved the whole transitive
    namespace tree (8 distinct repo fetches, including distro-arch / distro-cachyos / distro-fedora)
    through loader-plugin -> InvokeProvider -> plugin-refs, and listed the boxes. exit 0.

Other gates: go build/vet/test green (charly, spec, sdk, plugin-loader + EIGHT touched candies, the
out-of-workspace one under GOWORK=off); gofmt clean; `task cue:gen` a no-op; `task build:binary` +
`charly version` 2026.217.0836; `charly box validate` exit 0 zero warnings at root AND -C box/fedora;
TestKernelManifestBidirectional green after dropping the three deleted-file rows and rewriting
loader_threaded.go's row to state the colocation and why it is not inlining.

R5 sweep per-submodule on every deleted identifier. Four surviving references named a deleted FILE
rather than a deleted symbol (candy/plugin-vm x2, candy/plugin-box, charly's own init_def_label_test)
and were repointed at loader_threaded.go; the spec-side pair rides the spec leg.

Submodule leg: spec 632385d (sdk unchanged this bank).

Assisted-by: Claude Code Claude Opus 5 (analysed on a live system)

* refactor(core)!: #55 K-wave2 cone R1 A2 unit 1 — the fetch legs leave the kernel

Two `buildengine-*` reverse legs DELETED from charly/host_build_buildengine.go (271 -> 224 LOC).
Neither was a mechanism the kernel DEFINES; both only CALLED a relocated mechanism on the plugin's
behalf, which the defines-vs-calls test classifies as an R-item:

  - buildengine-collect-remote-refs — re-derived cfg (LoadConfig) + the local candy scan
    (scanLocalCandies) HOST-side purely to hand them straight back to loaderkit.CollectRemoteRefsOpts.
    candy/plugin-build already holds both: cfg from uf.ProjectConfig() (resolve.go step 1) and
    localScanned as the fetch fixpoint's own seam parameter. Nothing needed re-deriving.
  - buildengine-ensure-repo — a bare forward to loaderkit.EnsureRepoDownloaded.

candy/plugin-build now drives both itself over loaderkit.RefsSeamsFromExecutor — the ONE shared
executor-backed refs-legs builder hoisted into sdk/loaderkit in this cutover's sdk leg, so the plugin
does NOT grow a second private copy of what candy/plugin-loader already had (R3). Of the three
ScanSeams legs only ScanRemote still crosses to the host: its per-candy manifest parse threads the
registered DocParser + the registry-derived Threaded snapshot.

The two helpers the plugin needed moved to the shared fabric module rather than being duplicated
across the boundary (spec leg): boxResolveOpts -> spec.BoxResolveOpts (the box-selection rule, R3
single source for build AND generate) and withLocalRawRefs -> spec.WithLocalRawRefs (the
pinned-remote-dep augmentation), the latter leaving charly/layers.go.

Parity detail worth recording: ensureRepoLeg builds its seams INSIDE the closure, once per call,
never hoisted to construction time. The deleted host leg read CHARLY_REPO_OVERRIDE at the moment of
each fetch, and resolveProjectEnvelope's LocalSuperproject branch sets that env var around the
resolve with a deferred restore — caching the seams would freeze the override and silently change
which tree a fetch resolves against.

Gates:
  - workspace build (61 modules) + go vet charly/spec/sdk + go test ./charly: PASS
  - out-of-workspace candies (28, GOWORK=off): PASS   [the go.work loop misses these]
  - gofmt, task cue:gen no-op on a clean tree: PASS
  - TestReverseChannelIsThreeLegs: caught the 2 now-stale whitelist rows; trimmed in this same commit
    (the whitelist only ever shrinks), then green. TestKernelManifestBidirectional green with the
    host_build_buildengine.go row rewritten to its fresh justification.
  - charly box validate (root + -C box/fedora): exit 0, zero warnings
  - R9: task build:binary -> 2026.217.0856; binary-content markers confirm the change is really in
    the binary (the relocated loaderkit error string present; "buildengine-ensure-repo" absent).
  - RUNTIME, COLD CACHE (this cutover IS the fetch path — a warm green would prove nothing):
    CHARLY_REPO_CACHE=<fresh> ./bin/charly --repo default box list boxes -> exit 0, zero warnings,
    full namespaced box list resolved through the new plugin-side EnsureRepo + CollectRemoteRefs legs.

Coverage: charly/box_selection_test.go moves to spec (the test-double rule — an orphaned test goes
where the logic landed), strengthened with TestWithLocalRawRefs, which covers a function that had NO
test while it was charly-private and is now called directly from the plugin's own fetch leg.

Ledger: no row is CLAIMED by this unit. host_build_buildengine.go is THIN(65) and measures 224 here;
layers.go is a cone-C row still in flight. Reported measured, not asserted (rule 4b).

Assisted-by: Claude Code Claude Opus 5 (analysed on a live system)

* refactor(core)!: #55 K-wave2 cone R1 A2 unit 2 — the candy-manifest parse leaves the kernel

charly/layers.go 511 -> 191 LOC (-320). host_build_buildengine.go 224 -> 223, and with unit 1 the
buildengine-* family is down from 7 registered legs to 4.

`buildengine-scan-remote` DELETED — the LAST ScanSeams leg still crossing to the host. It existed for
exactly one reason: the per-candy manifest parse (parseCandyYAML) appeared to need the clause-B
buildCandy factory, so no plugin could parse a manifest itself.

That was DISPROVEN BY MEASUREMENT, not argued away. parseCandyYAML's node-form branch ran
parsedNodeToGeneric(pn) -> buildCandy(gn) -> decodeNodeValue(gn) -> genericToParsedNode(gn) ->
DecodeNodeValue(pn') — a pn -> genericNode -> pn IDENTITY round trip. An RDD spike compared it
against the pure loaderkit sequence over the whole real corpus (324 candy manifests across candy/
and box/): 321 node-form manifests plus all 3 error paths, BYTE-IDENTICAL, zero diffs.

So the mechanism relocated (sdk leg -> loaderkit.ParseCandyManifest) and core keeps only what is
genuinely host-side:

  - RegisterBuildVocabulary — now a one-line setter over spec.CandyVocab (the two process-global
    caches candyYAMLFormatNames/candyYAMLDistroNames and looksLikeDistroOrFormatKey are gone).
  - parseCandyYAML — a 3-line forward into the CandyScanner seam, supplying the two host-side values
    the mechanism takes as parameters (loaderThreaded(), candyVocab).

Both COLOCATE onto loader_threaded.go, the file that DECLARES the seam they call — the owner-colocate
rule, not an inline-into-callers spread that would have grown the kernel to shrink one file.

buildCandy/candyIsImage STAY core. Their genuine clause-B consumers are the discovered-candy
pre-check and foldCandyKind — a DIFFERENT call path this cutover does not touch. The doctrine is
unchanged; what changed is that the manifest parse was never actually on it.

Coverage (test-double rule — no orphaned test deleted or faked):
  - candyBodyGuardErr (cue_test_helpers_test.go) called the two guard functions directly while they
    were charly-private. They are now unexported inside the relocated mechanism, so the helper drives
    the REAL production path instead: it writes the body into a kind-keyed manifest and calls
    parseCandyYAML. That is STRONGER than the pre-move form — it proves the guards are still REACHED
    by a real parse, not merely that the functions exist. Verified live: all three guard classes fire
    with their exact production messages (unknown top-level key, misplaced `rpm:` -> `distro:` map,
    removed `depends:`). Its 3 consumers (layers_test, format_config_test) are unchanged.
  - TestRejectLegacyTopLevelFormatAndDistroKeys repoints to spec.NewCandyVocab(...).
    LooksLikeDistroOrFormatKey — the relocated rule — keeping the real testdata/build.yml fixture.

Gates:
  - workspace build (61 modules) + go vet charly/spec/sdk + go test ./charly: PASS
  - out-of-workspace candies (28, GOWORK=off): PASS
  - gofmt, task cue:gen reproducible: PASS
  - TestReverseChannelIsThreeLegs: caught the stale buildengine-scan-remote whitelist row; trimmed in
    this same commit. TestKernelManifestBidirectional green, both touched rows rewritten with fresh
    justifications (layers.go 511 -> 191, host_build_buildengine.go -> 223).
  - charly box validate (root + -C box/fedora): exit 0, zero warnings
  - R9: task build:binary -> 2026.217.0940; content markers confirm the change is in the binary (the
    relocated parse's error string present, "buildengine-scan-remote" absent).
  - RUNTIME, COLD CACHE on the exact changed path (a warm run would prove nothing — this cutover IS
    the remote fetch+parse path):
      CHARLY_REPO_CACHE=<fresh> ./bin/charly box generate fedora.check-pod
      -> exit 0, 0 warning lines, 0 error lines, 7 repos downloaded cold, .build/check-pod emitted.
      That drives candy/plugin-build's resolve through the new plugin-side EnsureRepo +
      CollectRemoteRefs + ScanRemoteCandy legs, parsing every remote candy manifest in-plugin.

Ledger: no row CLAIMED. layers.go is a cone-C row (DELETE(0) as frozen) measuring 191 here;
host_build_buildengine.go is THIN(65) measuring 223. Both reported measured, not asserted (rule 4b);
the consolidated amendment is team-lead's, on the numbers this cone finally reaches.

Assisted-by: Claude Code Claude Opus 5 (analysed on a live system)

* refactor(core)!: #55 K-wave2 cone R1 A2 unit 3 — the local candy scan leaves the kernel

`buildengine-scan-local` DELETED. With units 1+2 the buildengine-* family is down from 7 registered
legs to 3 (connect-plugins, namespaced, context-ignore-baseline), and host_build_buildengine.go from
271 to 220 LOC.

The leg ran scanLocalCandies host-side — LoadUnified + ApplyDiscover + projectCandiesScanned — for a
caller that ALREADY HELD a loaded project. candy/plugin-build gets its *spec.UnifiedFile from
loaderkit.LoadUnifiedViaExecutor, whose walk runs `discover:` at each project boundary exactly as the
host's LoadUnified + ApplyDiscover pair does (verified in loaderkit/walk.go's walkProject, a faithful
port of that same sequence — checked rather than assumed, since a plugin-side uf missing its
discovered candies would have been a silent regression, not a build failure).

So the only piece the plugin genuinely lacked was the scan BODY, which relocated to
loaderkit.ProjectCandiesScanned alongside the manifest parse unit 2 moved. The leg was core
re-deriving an input its caller already had, in order to call a mechanism that no longer lives here —
an R-item on both counts.

Core keeps projectCandiesScanned as a one-line forward through the CandyScanner seam (import purity),
serving charly's own ScanCandy/ScanAllCandyWithConfigOpts callers and the surviving
`buildengine-namespaced` leg. The host leg's project-less fallback (legacyScanCandiesDirScanned)
needs no plugin analogue: every plugin caller returns the empty-project envelope before reaching the
scan when LoadUnifiedViaExecutor reports no project.

Gates:
  - workspace build (61 modules) + go vet charly/spec/sdk + go test ./charly: PASS
  - out-of-workspace candies (28, GOWORK=off): PASS
  - gofmt, task cue:gen reproducible: PASS
  - TestReverseChannelIsThreeLegs green after trimming the now-stale whitelist row (same commit);
    TestKernelManifestBidirectional green with the host_build_buildengine.go row rewritten to 220 and
    its fresh four-leg justification.
  - charly box validate (root + -C box/fedora): exit 0, zero warnings
  - R9: task build:binary -> 2026.217.1005
  - RUNTIME, COLD CACHE on the changed path:
      CHARLY_REPO_CACHE=<fresh> ./bin/charly box generate fedora.check-pod
      -> exit 0, 0 warning lines, 0 error lines, 7 repos downloaded cold.
  - R8 (emitted artifacts, not just exit codes): 4 Containerfiles written by that run —
    .build/fedora.check-pod/Containerfile (101 lines, correct ARG BASE_IMAGE + FROM stages), plus
    fedora.fedora / fedora.fedora-builder / fedora.fedora-nonfree. Timestamps confirm they are that
    run's output, not a stale tree.

Doc sweep (R5): plugin-build's pkg.go + resolve.go headers named the deleted leg in their
host-round-trip lists; both corrected to the plugin-side call.

Ledger: no row CLAIMED. layers.go measures 191 (row DELETE(0)); host_build_buildengine.go measures
220 (row THIN(65)); unified.go measures 281 (row DELETE(0), a facade-remainder row still in flight).
Reported measured, not asserted (rule 4b).

Assisted-by: Claude Code Claude Opus 5 (analysed on a live system)

* refactor(core)!: #55 K-wave2 cone R1 A2 unit 3b — the namespace walk leaves the kernel

Delete the "buildengine-namespaced" host leg and its collectNamespaceScanEntries
recursion. The buildengine family is now TWO registered kinds (was seven).

WHY IT WAS RESIDUE. The leg recursed the project's import-namespace tree host-side
and emitted a flat spec.NamespaceScanReply of per-namespace (scanned, downloads)
pairs, which candy/plugin-build then walked AGAIN to fold into the resolved-project
envelope — the same recursion paid twice across a process boundary, over a
*spec.UnifiedFile the plugin already held from loaderkit.LoadUnifiedViaExecutor.
Its two per-namespace steps were the only thing that ever justified it, and neither
is core-only any more: the local candy scan is loaderkit.ProjectCandiesScanned (unit
3a) and the reachability walk is loaderkit.CollectRemoteRefsOpts over
loaderkit.RefsSeamsFromExecutor (unit 1). So the leg was core CALLING relocated
mechanisms on the plugin's behalf over inputs its caller already had — an R-item by
the defines-vs-calls test, on both counts.

WHAT REPLACES IT. candy/plugin-build's fillNamespacedBoxes (resolve_legs.go) does the
whole walk in ONE plugin-side pass: per namespace it scans, collects, runs the fetch
fix-point (ScanCandyFromLocal), and folds (deploykit.RawCandyPair +
deploykit.FillNamespaceBoxViews), then descends. foldNamespaceScanEntries and
resolveNamespaceUFByPath are gone — with the walk and the fold unified there is no
flat list to re-descend by dotted path. The ResolveProjectSeams.FillNamespacedBoxes
seam now genuinely owns its recursion: the assembler calls it once with prefix "" and
a fresh visited set.

PRESERVED VERBATIM, and documented at the new function so it cannot be re-broken by
someone reading only the new code:
  - the nsDir fallback (a namespace's candy from: paths are relative to the
    NAMESPACE's own RootDir, falling back to the outer project dir);
  - the visited cycle-guard, keyed on the *spec.UnifiedFile POINTER (the loader mounts
    a back-imported ancestor as the SAME in-progress node, so a mutual import
    terminates);
  - DFS pre-order (fold a namespace, then descend), matching the flat reply's former
    append order;
  - the UNCONDITIONAL reachability walk. It must never be re-guarded by
    `if len(scanned) > 0`: CollectRemoteRefsOpts walks sub.Box to collect the BOXES'
    candy @-refs, so a namespace that vendors no candies of its own but whose boxes pin
    remote ones (every distro submodule) still has refs to fetch. That guard is the
    coneK1load regression, R1-bisected to b367e5d5;
  - opts stays spec.BoxResolveOpts(nil, includeDisabled) — nil RequestedBoxes, so a
    namespace walk is never narrowed by the ROOT request's box selection.

MEASURED, NOT CLAIMED. charly/host_build_buildengine.go 220 -> 100 LOC: 66 lines from
the leg deletion, the rest from folding six per-leg "DELETED" tombstone comment blocks
into one present-tense header (CLAUDE.md puts history in CHANGELOG/, and those blocks
were roughly 55 lines of it duplicated into source). The KWAVE2 ledger row targets
THIN(65); 100 is the honest measurement and is reported to the orchestrator as a
measured amendment rather than squeezed. The two survivors are clean E/M/B/D escapes —
hostBuildConnectPlugins registers project plugin candies into providerRegistry (M, the
plugin-loading mechanism), hostBuildContextIgnoreBaseline serves a directive read from
charly's OWN //go:embed charly.yml (B/D). There is no K1-IOU remainder in this file.

COVERAGE. TestFillNamespacedBoxes_QualifiedView is PORTED, not deleted or faked: it no
longer feeds a canned NamespaceScanReply but drives the production walk off the root
uf's own Namespaces map, and its fake executor now PANICS on any HostBuild kind other
than the generic loader-threaded snapshot — so re-introducing any namespace host
round-trip fails it loudly. The reverse-channel three-legs table drops its
buildengine-namespaced row; the KERNEL_MANIFEST row is rewritten to the measured 100.

TWO INCIDENTAL DOC DIVERGENCES fixed in place (R1; both were false before this change).
validate_project_host.go claimed loadProjectForResolve was "also still used by
build_overlay.go's fail-fast call" — grep says build_overlay.go never calls it. And
with this leg gone loadProjectForResolve has exactly one caller and its diags==nil
fail-fast branch has no production caller left; that is documented in place and dies
with the function in the validate unit that follows.

Assisted-by: Claude Code Claude Opus 5 (1M context) (fully tested and validated)

* refactor(core)!: #55 K-wave2 cone R1 unit B — the validate rules leave the kernel

Delete charly/validate.go entirely and cut charly/validate_project_host.go from 325 to
90 LOC. `charly box validate` now runs EVERY rule inside candy/plugin-box; the host
answers one registry question and nothing else.

WHY IT WAS RESIDUE. The "validate-project-checks" HostBuild seam made the host
RE-LOAD and RE-SCAN the whole project (LoadConfig + ScanAllCandyWithConfigOpts +
LoadUnified + ApplyDiscover) purely so it could run three validators over data
candy/plugin-box already held — the boundary law's named re-derivation R-pattern. The
two documented reasons for keeping them there were both already false when written:

  - "they need the HOST's spliced cross-plugin CUE schema, a live non-marshalable
    cue.Value graph". They do not. CueDocFromYAML / ValidateEntityClosedCUE /
    ValidateCandyManifestCUE / ValidateNodeFormSteps are FREE FUNCTIONS in
    sdk/loaderkit, compiled against loaderkit's OWN schema since cone R1 ruling 1, and
    the spec.ProjectLoader methods core called were bare forwards to exactly them. The
    plugin splice built in plugin_loader.go is a separate value that gates one plugin's
    authored input and was never unified into this schema. (KERNEL_MANIFEST.md already
    recorded this refutation against validate.go's own row.)
  - "validateRemoteCandies needs a spec.RefsCollectSeams bridge that does not exist".
    It exists: loaderkit.RefsSeamsFromExecutor, which candy/plugin-build has paired
    with loaderkit.CollectRemoteRefsOpts at two call sites since cone R1 A2.

WHAT MOVED. validateCandyCUESchemas / validateProjectCUESchemas / validateRemoteCandies
(plus boxEntityWireYAML / isNodeFormFile) land VERBATIM in
candy/plugin-box/validate_schema_rules.go, driven off the raw config the plugin already
self-loads — hoisted so ONE loadRawProjectConfig now feeds both these and the
raw-config rules (R3). Diagnostic ORDER is preserved exactly: resolve findings, then
these, then the per-kind/op + graph + raw-config findings.

The candy set they run over is byte-identical either way, which is what makes this a
move and not a rewrite: the envelope's deploykit.NewSpecCandyModel adapters are the
SAME values loaderkit.FinalizeScannedCandies builds for the host scan — same
constructor, same already-bare GetRequire/GetIncludedCandy refs (spec.FinalizeCandyRefs
bare-strings them before any CandyReader is wrapped, as charly/refs_test.go's own
fixture marker independently records).

WHAT STAYS. The provider REGISTRY, a kernel M-mechanism. hostBuildValidateWordSets
("validate-word-sets") answers ProviderCapabilities + ActCapableVerbs over an inventory
the PLUGIN supplies: the `plugin:` words it enumerated from its own envelope, plus the
declared capability strings of its out-of-tree plugin candies. That second half absorbs
plugin_prescan.go's now-callerless registerExternalVerbsFromCandies — the registration
still mutates the registry host-side, it just stops re-scanning the project to discover
what to register. No load, no scan, no host-side diagnostics, no project data on the
wire in either direction. The request/reply are CUE-authored (spec leg), never
hand-written.

Also deleted: loadProjectForResolve / loadedProject / addLoadDiag /
runHostNaturalValidateChecks / diagSeverityError (the re-derivation path) and the
production-dead validateProjectForBuild, whose six fixture-test callers now drive
dispatchValidateForTest in the new charly/validate_dispatch_test.go — a deliberate
mirror of candy/plugin-build's validateProjectLeg, so the tests keep exercising the
real dispatch instead of a stub.

COVERAGE. TestValidateCandyCUESchema_ClosednessThroughRealPipeline is new and drives
the WHOLE pipeline (the sibling cue_candy_reject_test.go calls the seam directly and
would stay green even if nothing wired the rule in — exactly the regression a
relocation risks). Red/green proven: unwiring validateCandyCUESchemas fails it
("expected validation error, got nil"), restoring it passes. The orphaned
TestRegisterExternalVerbsFromCandies is PORTED, not dropped, and split to where its two
halves now live: TestValidateWordSets_DeclaredExternalRecognition (host — registration
by class + act-capability) and candy/plugin-box's
TestFetchValidateWordSets_ExternalProvidersOnly + _PluginWordsFromBothPlans (plugin —
the envelope-derived inventory, incl. the builtin-candy exclusion).

R1 claim-keyed doc sweep: nine comments across candy/plugin-box, candy/plugin-build,
charly and the two submodules described the old arrangement in the present tense; all
corrected, including the two gate tables (KERNEL_MANIFEST.md's row, now measured at 90,
and reverseChannelHostBuilderWhitelist's kind).

GATES. Workspace gate PASS (61 modules build + vet + go test ./charly + 28 GOWORK=off
candies + gofmt). task cue:gen no-op (sha256 identical across a second run).
task build:binary 2026.217.1046, R9 by content marker: validate-word-sets / "box
validate: registry word sets" / "candy %q: CUE schema" / "remote candy name conflict"
PRESENT; validate-project-checks / "box validate: host-natural checks" / "pre-build
validation: the validate capability" ABSENT. charly box validate exit 0 zero warnings
at root AND -C box/fedora. Live end-to-end: a scratch project with a typo'd candy key
surfaced `candy "badcandy": CUE schema: ... bogus_typo_field: field not allowed` from
the relocated plugin path. Bed check-exampledeploy PASS (steps=6: deploy-add,
bring-up-members, check-live, update, cleanup, cleanup-members). R5 per-submodule grep
over every relocated/deleted identifier across . spec sdk plugins docs box/* pkg/*:
hostBuildValidateProjectChecks and validateProjectChecksBuilderKind return ZERO; the
rest resolve only to their new homes, CHANGELOG history, or the plugins/ skill rows
already booked as task #34.

Assisted-by: Claude Code Claude Opus 5 (1M context) (fully tested and validated)

* refactor(core)!: #55 K-wave2 cone R1 unit 3 — charly/unified.go leaves the kernel

Delete charly/unified.go (281 LOC). Nothing about the unified config format lives in a
file of its own any more: the one piece of LOGIC left it relocated, the forwards moved to
the file that owns their seam, and four accessors turned out to have no production caller
at all.

WHAT WAS ACTUALLY IN IT. By this point the file was ~250 lines of relocation receipts
around 7 symbols, and each fell into exactly one of the (a)/(b) arms:

  (a) LOGIC — canonicalRef, the import-ref resolution behind spec.WalkSeams.ResolveRef.
      Its body is kind-blind ref vocabulary (ParseRemoteRef) plus a default-branch resolve
      plus EnsureRepoDownloaded — no registry, no host state — so core was CALLING a
      mechanism, not defining one. It is loaderkit.CanonicalRef now, behind the new
      ProjectLoader.CanonicalRef seam (spec + sdk legs), and hostWalkSeams' ResolveRef is
      a three-line closure. Same route ResolveProjectRepo took out of main_repo.go.

  (b) BARE FORWARDS — ApplyDiscover and projectCandiesScanned, each a one-or-two-line
      call into a seam loader_threaded.go DECLARES (RunDiscover + hostWalkSeams;
      CandyScanner + parseCandyYAML). They colocate onto that file, joining the LOAD-ENTRY
      forwards K-wave 2 already moved there from config.go / format_config.go /
      main_repo.go — whose section header had, prematurely, already called unified.go
      deleted. It is now.

  (c) PRODUCTION-DEAD — Distros, Builders, resolveInits, ProjectCandies. Grep across
      charly/ non-test proves zero production callers: the build-vocab CONFIG projections
      are loaderkit's Project{Distro,Builder,Init}Config (reached via
      LoadBuildConfigForBox) and the candy scan runs through ScanAllCandyWithConfigOpts.
      unified.go's own header already conceded they were "the map-shaped accessors the
      tests read". They are MOVED, not deleted, into charly/vocab_accessors_test.go —
      their nine test call sites assert real behaviour (that the embedded vocabulary
      decodes, that discovery synthesizes the right candies) over the SAME mechanisms, so
      the coverage is unchanged while production carries none of it.

R1 CLAIM-KEYED SWEEP. Deleting the file falsified every doc that named it as a current
home. Corrected across all three repos: charly's distro_resolve.go, layers.go (it named
unified.go as where UnifiedFileName is defined — it is spec.UnifiedFileName),
load_executor_host.go x2, and the KERNEL_MANIFEST rows (unified.go's row deleted,
loader_threaded.go's re-measured at 399 and its forward list extended, layers.go's,
load_executor_host.go's, node_build.go's, node_candy.go's and the K1-IOU clause key all
re-worded); sdk's discover.go + load_unified.go; spec's config.go, deploy_tree_validate.go
and the android/deploy CUE prose. Past-tense port-provenance notes ("the K1 port of
charly/unified.go's discover walk") are deliberately LEFT: naming where relocated code
came from stays true.

NOT DONE, AND WHY — host_build_deploy_plugins_connect.go (36 LOC) is NOT deleted. Its two
statements are os.Getwd plus loadDeployPlugins, and loadDeployPlugins' body is the SAME
LoadConfig + ScanAllCandyWithConfigOpts + collectReferencedPluginWords + loadProjectPlugins
derivation that hostBuildConnectPlugins runs for the build path. Removing the host-side
derivation is exactly the serializable candy-plugin descriptor payload booked as task #36,
and doing the deploy half now would have to reshape the shared derivation this unit was
told to leave alone. Reported with the call-chain evidence rather than forced to zero by
inlining, which would be the cosmetic gaming the residue ledger forbids.

GATES. Workspace gate PASS (61 modules build + vet + go test ./charly + 28 GOWORK=off
candies + gofmt). task cue:gen no-op. task build:binary 2026.217.1126; R9 content markers
for the relocated fetch path ("downloading remote ref", "resolving default branch for")
PRESENT. charly box validate exit 0 zero warnings at root and -C box/fedora.
TestKernelManifestBidirectional caught the stale unified.go row before commit (that is the
gate working) and is green after the rewrite, as is TestReverseChannelIsThreeLegs.

COLD-CACHE PROOF (this unit changes the import-ref FETCH path, so a warm cache would prove
nothing): with CHARLY_REPO_CACHE pointed at a verified-empty dir, `charly box validate` at
the ROOT — whose charly.yml carries three NAMESPACED remote imports, the exact
CanonicalRef input — fetched distro-arch v2026.204.1300, distro-cachyos v2026.204.1336,
distro-fedora v2026.216.0232, the nested distro-arch v2026.200.2132 that cachyos itself
imports, and three charly pins, then exited 0 with zero warnings. (The -C box/fedora cold
run is NOT evidence for this seam: that project's `import:` is empty, so its downloads came
from candy refs, not CanonicalRef.)

Assisted-by: Claude Code Claude Opus 5 (1M context) (fully tested and validated)

* refactor(core)!: #55 K-wave2 cone R1 unit C — measure the three stay-targets honestly

C is a MEASURE-THE-HONEST-STAY unit, not a deletion: a caller census proved nothing in
layers.go / node_parsed.go / node_desugar.go is dead, so all three ledger rows amend
UPWARD from DELETE(0). The one thing that WAS dead turned out to be in the sdk, not core.

node_parsed.go 133 -> 100. The materialize plumbing (materializeNodeInto's accumulator
seed/copy-back + materializeProject's per-document loop) colocates onto materialize.go
(145 -> 188), which already owns every other host-coupled materialize leg AND
hostMaterializeProjectSeams, the seam both are reached through. Colocation, not shrinkage:
the pair's lines moved, they did not leave the kernel. What remains in node_parsed.go is
exactly the genericNode BRIDGE its header now claims — the conversion the
bootstrap-critical candyIsImage/buildCandy routing and validateKindValueCUE's raw-discValue
check still need, plus normalizeNodeInto, the test-facing entry. Row: THIN(100).

node_desugar.go 63 -> 71 (stale-header rewrite only; zero code change). Its clause was
WRONG and is corrected: the row read
"parse-time plugin-verb sugar desugar", but the desugar MECHANISM is not here — it is
sdk/loaderkit/parse.go's desugarEntityPlan/desugarStep, which reads primaries as DATA off
the spec.Threaded snapshot. What is here is the host TABLE that snapshot is built from:
kind-recognition DATA consulted by word (clause D — loaderThreaded() projects it into
spec.Threaded.Primaries before every parse) plus registerPluginPrimary mutating it from the
provider registry (clause M). Neither half moves without the registry, so nothing honestly
leaves. Row: THIN(71) — 71 is the MEASURED post-rewrite count, not the 63 this file
carried before the header was corrected.

Checking that clause is what surfaced the real find, landed in the sdk leg: a
byte-identical DEAD COPY at sdk/kit/plugin_primary.go, whose header claimed charly's two
registration call sites called kit.RegisterPluginPrimary directly. They never did — import
purity forbids charly importing sdk/kit — so the K4 relocation was authored but never
wired, leaving two SEPARATE mutable maps of one registry. Zero consumers in any of the 13
repos; deleted.

layers.go 191, unchanged. By the defines-vs-calls test this file DEFINES no mechanism:
scanCandyFromLocal is a bare forward into requireProjectLoader().ScanCandyFromLocal and
scanSeamsFor only builds the closures that seam takes. What keeps it kernel is WHO CALLS
it. Of the seven production callers of ScanAllCandyWithConfigOpts, three are the plugin
BOOTSTRAP path (plugin_loader.go's loadDeployPlugins + hostBuildConnectPlugins,
plugin_prescan.go, provider_command_external.go): the host must scan candies to FIND AND
CONNECT plugins before any plugin exists to be asked — the same irreducible-bootstrap
argument that keeps candyIsImage/buildCandy core. The other four (check_cmd.go,
oci_step_emit.go, host_build_buildengine.go, host_build_check_load_plugins.go) are R-items
owned by the check/build/oci cones, but relocating them removes CALLERS, not lines from
this file, so they will not shrink it either. Row: THIN(191).

GATES. Workspace gate PASS (61 modules build + vet + go test ./charly + 28 GOWORK=off
candies + gofmt). task build:binary 2026.217.1142; R9 by content marker — the live
primaries path ("collides with an authored #Op field") PRESENT, the deleted duplicate's
symbol (kit.RegisterPluginPrimary) ABSENT from the binary. charly box validate exit 0 zero
warnings at root AND -C box/fedora, which parses the whole candy corpus through the
desugar. Bed check-exampledeploy PASS (steps=6). TestKernelManifestBidirectional +
TestReverseChannelIsThreeLegs green with all four rows rewritten (layers.go,
materialize.go, node_parsed.go, node_desugar.go). R5 per-submodule sweep over
materializeNodeInto / materializeProject / pluginPrimaries / plugin_primary.go /
RegisterPluginPrimary across . spec sdk plugins docs box/* pkg/*: every hit resolves to a
new home, a manifest row, or CHANGELOG history.

NO COLD-CACHE RUN, deliberately: this unit touches no fetch/clone/download path (a
same-package function relocation, a comment rewrite, and a zero-consumer sdk deletion). The
cold-cache proof was paid where it belonged, in unit 3, which moved the import-ref fetch.

Assisted-by: Claude Code Claude Opus 5 (1M context) (fully tested and validated)

* docs(ledger)!: #55 K-wave2 — the ONE consolidated ledger amendment (17 rows, authority-cited)

Per plan rule 4 (a disposition changes only by an amendment commit citing its AUTHORITY)
and rule 4b (no row freezes unspiked; the 2026-08-05 row-audit applies retroactively),
this is the single consolidated amendment the program's execution was gated on. After it,
the ledger moves only by rows being satisfied. Row-computed end-state: 17,189 − 4,162 =
13,027 (supersedes the pre-audit 11,855, which double-counted work K-wave 1 had already
executed and carried 13 unspiked DELETE(0) labels the per-function audit refuted).

AUTHORITY 1 — the 24-row per-function defines-vs-calls audit (2026-08-05, executed under
rule 4b after the three-row R1 amendment incident; verdicts transcript-recorded verbatim):
  bundle_add_cmd.go        DELETE(0) → THIN(75)   deriveChildExecutorForPath registry-coupled
  host_build_resolve_target_add.go DELETE(0) → THIN(65)
  pod_lifecycle_verb.go    DELETE(0) → STAY       dispatchLifecycleTarget, shared M
  host_build_deploy_node_del_dispatch.go DELETE(0) → THIN(35)
  gpu_shim.go              DELETE(0) → THIN(30)
  check_cmd.go             DELETE(0) → THIN(110)  resolveCheckRunnerContext STAY-called
  checkspec.go             DELETE(0) → THIN(55)   opActsInBuildDeploy serves validate-word-sets
  commands.go              DELETE(0) → THIN(45)   podUpdateCmd + isTerminal STAY-called
  deploy_target_dispatch.go DELETE(0) → STAY      S3b core half, registry M
  unified_targets.go       THIN(341) → STAY       the manifest's A9 per-symbol table classes
                                                  ~533/541 as M/B/D/E; the ~200 extraction
                                                  was K-wave 1's, already executed

AUTHORITY 2 — plan rule 1 (every number is a wc -l at the artifact), measured by cone R1's
banked units (commits 0222c5c5/e536b957…/7cd3cbbb/fe5f8fa9/0057c6a6, gates pasted there):
  layers.go                DELETE(0) → THIN(191)  nothing dead; 3 of 7 callers are the
                                                  plugin-bootstrap scan (irreducible-B, the
                                                  candyIsImage argument); 509→191 achieved
  node_parsed.go           DELETE(0) → THIN(100)  materialize plumbing colocated to
                                                  materialize.go (145→188, net-zero pair);
                                                  the genericNode bridge stays
  node_desugar.go          DELETE(0) → STAY       clause CORRECTED: the desugar mechanism is
                                                  sdk/loaderkit/parse.go's; this is the host
                                                  primaries TABLE — D (loaderThreaded
                                                  projects it) + M (registry mutation).
                                                  Kernel-legal, nothing honestly leaves
  validate_project_host.go THIN(80) → THIN(90)    measured post-thin (unit B, 325→90)
  cue_schema.go            THIN(38) → THIN(54)    measured post-thin (unit 1, 130→54)

AUTHORITY 3 — the K-wave-exit doctrine (boundary law: residue leaves via a NAMED exit,
tracked task #36 connect-plugins descriptor payload) + the no-gaming rule (no inlining to
fake a zero):
  host_build_buildengine.go THIN(65) → THIN(100)  measured (270→100, 7→2 kinds); #36 takes
                                                  it to ~70-75 next
  host_build_deploy_plugins_connect.go DELETE(0) → STAY  its 2 statements ARE the #36
                                                  derivation; deletion needs #36's payload

Validator: 31/56 satisfied, R1 COMPLETE 26/26, zero TBD; `ledger-validate -progress` green.
No code touched — documentation-only change class.

Assisted-by: Claude Code Claude Fable 5 (documentation reviewed)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj

* charly: dissolve service_render.go + consolidate the arbiter token normalizer (K-wave 2 cone R2, bank A)

service_render.go (119 LOC) DELETED — its two families split per the ledger:
  (a) the egress family (egressValidate/ValidateEgress/ValidateEgressValue +
      init(){spec.ValidateRecord=...}) moved to candy/plugin-bundle/egress.go —
      the SOLE ledger writer (deploy_target.go's recordDeploy/recordVenueLedger)
      now binds the egress seam in-process and reaches verb:egress by
      InvokeProvider (the vm_egress_shim.go precedent); loud-on-missing-provider
      preserved 1:1 (a reachable-but-failing provider aborts the write loudly).
  (b) resolveInitConfigViaPlugin + invokeInitResolve (25 LOC, M kind-dispatch
      callback wrappers) colocated into the NEW charly/init_resolve.go beside
      resource_resolve.go/distro_resolve.go — honest +25 M kernel mass (like
      materialize.go's +43), noted in the manifest's new init_resolve.go row.

R3 consolidation: the six byte-identical token-list normalizers repoint to
spec.DedupeNonEmpty (spec/spec/token_set.go) — charly/preempt.go, gpu_allocate.go
(core), candy/plugin-preempt/arbiter_support.go + arbiter.go, candy/plugin-check/
bed_session.go, candy/plugin-vm/vm_util_shims.go + vm_arbiter_shim.go. All local
copies deleted; the seam.cue + loaderkit prose repoint in the same sweep.

Egress shim tests relocated: charly/egress_test.go -> candy/plugin-bundle/
egress_test.go (a stub executor proves the shim's marshalling/reply-decode/
loud-provider/graceful-degrade contract — the real schema is tested in
candy/plugin-egress). The golden cloud-init fixtures + renderer-vs-schema proof
moved to candy/plugin-egress/testdata/ + egress_test.go; tools/golden-cloudinit
writes the new path.

R5 sweep: KERNEL_MANIFEST.md service_render.go row -> init_resolve.go row;
AGENTS.md/CLAUDE.md + plugin-kube + provider.go + vendor README + plugins skills
repoint the egress shim's home. No CHANGELOG (paid once at terminus).

Assisted-by: Claude Code AI (deepseek-v4-flash:0731-cloud) (analysed on a live system)

* charly: dissolve the deploy-from-box seam; from-box pod path is plugin-side (K-wave 2 cone R2, bank B)

bundle_from_box_cmd.go (89 LOC) + host_build_deploy_from_box.go (34 LOC) DELETED
(ONE unit): the `charly bundle from-box` POD path now runs ENTIRELY in
candy/plugin-bundle (from_box_pod.go) — it reaches deploy:pod's ops.OpConfigSetup
by exec.InvokeProvider("deploy","pod",OpConfigSetup,...), the exact peer-dispatch
idiom this package's deploy_from_box.go already uses for deploy:k8s's OpEmit — no
HostBuild round-trip. The quadlet-mode systemd service start + the direct-mode
skip move with it.

spec.HostEnv threads as DATA onto the generic COMMAND dispatch (OpRun) for every
command plugin — charly/provider_command_external.go's dispatchInProcCommand adds
host_env_json (computed in-core, the #200 "threads as DATA, does not anchor a
seam" precedent / KERNEL_MANIFEST.md:39; os.Executable() is only correct in-core,
R10 bed-found bug #5); command:bundle's runBundleCommand decodes + stashes it and
from_box_pod.go forwards it verbatim into PodConfigSetupRequest.HostEnvJSON.
Class-generic, no provider word (F11-safe); the other command plugins ignore the
extra key.

Dead code removed with the seam: #DeployFromBoxRequest/#DeployFromBoxReply CUE
types (spec leg), the reverse_channel_three_legs_test whitelist row, both
KERNEL_MANIFEST rows, and every comment naming bundle_from_box_cmd.go /
deploy-from-box (bundle_cmd, command, host_seams, plugin, deploy_from_box,
plugin-pod/pod_cmd, builder_venue, plugins skills).

Coverage: from_box_pod_test.go drives the InvokeProvider dispatch (asserts the
marshalled PodConfigSetupRequest incl. ExplicitRef + threaded HostEnvJSON), the
derived vs explicit deploy name, the quadlet systemctl start (stubbed), and the
empty-ref guard — the pre-move path had no unit test at all.

Assisted-by: Claude Code AI (deepseek-v4-flash:0731-cloud) (analysed on a live system)

* charly: dissolve the deploy-del-resolve seam; del resolution is plugin-side (K-wave 2 cone R2, bank C)

host_build_deploy_del_resolve.go (46 LOC) DELETED + bundle_add_cmd.go thinned
214 -> 73 + host_build_deploy_node_del_dispatch.go thinned 56 -> 35 (the del
family):

- The del RESOLUTION (deployDelCmd struct, resolveDelNode, podDeploymentArtifactExists)
  moved to candy/plugin-bundle/del_resolve.go — the plugin already threads the merged
  deploy tree plugin-side (resolveTreeViaLoader, which also connects the deployment's
  plugins), so BundleDelCmd.Run() resolves the node in-process instead of round-tripping
  through the "deploy-del-resolve" HostBuild seam. bundle_add_cmd.go keeps ONLY the
  floor-M host machinery (deriveChildExecutorForPath — registry-coupled M — and
  loadConfigForDeploy — build-shared); its header + deriveChild comment were rewritten
  to the reduced scope.
- host_build_deploy_node_del_dispatch.go keeps the registry-coupled terminal
  (ResolveTarget + target.Del + the teardown gates) but drops the resolveNode default +
  vm:-prefix stripping (the plugin now guarantees a resolved node + a clean name; the
  RCA #9 comment condenses to its load-bearing fact).
- R3: the del resolution's container probe uses the new shared kit.ContainerExists;
  candy/plugin-pod's token-identical copy repoints to it (charly core keeps its own —
  import purity, spec/container.EngineBinary is the allowed equivalent).
- Tests: TestPodDeploymentArtifactExists + TestResolveDelNode moved to
  candy/plugin-bundle/del_resolve_test.go (adapted to the free-function + kit stub);
  charly/bundle_del_diagnostics_test.go keeps TestUnresolvedDeployTargetError.
- R5: KERNEL_MANIFEST rows (del_resolve deleted, bundle_add + node_del_dispatch
  re-claused M), reverse-channel whitelist row, plugin_loader.go + every plugin-bundle
  comment listing deploy-del-resolve as a live seam, plugins install-plan SKILL.

Coverage: the check-exampledeploy bed's [cleanup] step (`charly bundle del`) runs the
new plugin-side resolveDelNode + thinned dispatch live.

Assisted-by: Claude Code AI (deepseek-v4-flash:0731-cloud) (analysed on a live system)

* charly: dissolve the config-resolve seam; resolve-target-add thinned (K-wave 2 cone R2, bank D)

host_build_config_resolve.go (168 LOC) DELETED + host_build_resolve_target_add.go
thinned 126 -> 52:

- The "config-resolve" HostBuild seam is gone. Its three consumers self-serve via
  sdk/loaderkit: candy/plugin-vm's hostConfigResolve now resolves the runtime
  (kit.ResolveRuntime), the project (loaderkit.LoadUnifiedViaExecutor), the kind:vm
  entity (loaderkit.ResolveVmEntityViaExecutor + loaderkit.ApplyCueDefaults —
  vmshared.VmSpec IS spec.ResolvedVm, so the former VmJSON wire round-trip was
  identity), the resources (spec.ResolvePluginKindViaPlugin over
  loaderkit.ResolveResourceViaExecutor), the Claimant (already plugin-side), and the
  VmState (loaderkit.ResolveVmStateViaExecutor). candy/plugin-deploy-vm's
  resolvePriorVmState + candy/plugin-kube's hostConfigResolveVmState repoint to the
  same loaderkit reader (R3, one home).
- host_build_resolve_target_add.go keeps ONLY the floor-M terminal (spec.
  ReconstructParentExec over the registry-coupled deriveChildExecutorForPath,
  loadConfigForDeploy, ResolveTarget + utgt.Add); the plan re-materialization
  (spec.PlansFromViews) + EmitOpts construction (spec.EmitOptsFromResolveTargetAdd)
  + the ancestor loop (spec.ReconstructParentExec) moved to spec helpers.
- #ConfigResolveRequest/#ConfigResolveReply CUE types deleted (spec leg).
- Tests: plugin-deploy-vm + plugin-kube rewire their seam stubs to the package-var
  seams (resolvePriorVmState / hostConfigResolveVmState); loaderkit gains
  VmStateFromBundleConfig coverage.
- R5: KERNEL_MANIFEST rows (config-resolve deleted, resolve-target-add re-claused
  M), reverse-channel whitelist, embedded seam.cue/buildresolve.cue prose, and every
  comment naming the config-resolve seam (plugin-vm hostConfigResolve +
  vm_backend_resolve, plugin-deploy-vm lifecycle, plugin-kube k3s_post, preempt.go,
  plugin-check, plugins skills).

Coverage: check-exampledeploy's [deploy-add] runs the thinned resolve-target-add
terminal live; the VM-state self-serve i…
atrawog added a commit that referenced this pull request Aug 20, 2026
# fix(ci): repair the org-wide auto-merge workflow

The `auto-merge` workflow (byte-identical across all opencharly repos) had
**never succeeded once**. Eleven defects in total — four fatal in the original
workflow, then five exposed by the live runs of the first fix, then two more
exposed by the canary's live runs of the second.

## The four original defects

1. **No `actions/checkout`** — the `workflow_run` trigger checks out nothing, but
   `gh pr merge` runs `git status` against a local repo → every merge died with
   `failed to run git: fatal: not a git repository` (observed live, run 3235221669).
2. **Tag from a future SHA** — `git log -1 "$MS"` on the merge commit SHA the clone
   does not have → empty version → tag POST 422.
3. **No wait for pending checks** — an `in_progress` check aborted the run instead
   of waiting.
4. **No CHANGELOG placeholder finalization** — the changelog filename/H1 and the
   release tag could disagree.

## The five live-exposed defects

The first fix was live-proven on the canary repo (2026.232.1246) — every gate
passed — but the live runs then exposed five more defects that the stub-gh
harness could not see:

5. **The revalidation race.** The CHANGELOG-finalization push creates a NEW head,
   and the revalidation ran immediately after the push — before the validator had
   created its check-run on the new head. `wait_all_settled()` saw ZERO check-runs
   (indistinguishable from "all completed") and `verify_all_green()` saw empty →
   green, so the merge proceeded and failed branch protection with `GraphQL: Pull
   Request is not mergeable (mergePullRequest)`. (Observed live in run 32371493249:
   the log shows `revalidation: all status checks have completed` 0.7s after the
   push, then the merge failure.)
6. **The `action_required` validator run.** A finalization push made with
   `GITHUB_TOKEN` does not dispatch jobs — the validator run it triggers ends
   `action_required` with 0 jobs and no check-run. The auto-merge could not re-run
   it (no `actions: write` permission), so the new head could never get a green
   validator check-run.
7. **The re-finalization loop.** Re-running the auto-merge re-finalized the
   changelog to a NEW stamp each time (2026.232.1256 → 2026.232.1304), creating a
   new head each time, and the cycle repeated.
8. **The `merge_commit_sha` tag field.** The already-closed and post-merge paths
   read the merge commit from `.merge_commit.sha`, but GitHub's REST
   `GET /pulls/{n}` exposes it as the FLAT `merge_commit_sha` string (`merge_commit`
   is `null` on the REST object). Every merge therefore left the release tag
   unminted: the post-merge poll never observed a merge commit and died in its
   10-minute timeout, and the already-closed path silently skipped the tag.
   (Observed live on the canary: PR #20 merged at 15:25:35Z in run 32385963824,
   but the tag `v2026.232.1524` was never created — the run's `updated_at` froze
   at 15:24:43 in its poll. The stub-gh harness had mocked the `/pulls/{id}`
   object with a nested `merge_commit` field, so this could not be seen until a
   live run.)
9. **The A1 body↔diff mismatch.** After the finalize renames the PR's CHANGELOG
   placeholder to the merge-time CalVer, the re-run validator re-reviews the
   FINALIZED head against the PR body. A body that still names the author's
   placeholder (e.g. `CHANGELOG/2026.232.0004.md`) reads as a description↔code
   mismatch (A1), the re-validation concludes `failure`, and the run fails
   loudly — the mandatory post-finalize re-validation can never pass on a PR
   whose body pins its placeholder. (Observed live: the first canary live-proof
   PR was BLOCKed on the finalized head — body named `0004.md`, diff carried
   `1553.md` — and stayed unmergeable until its body was reconciled.)

## The two canary defects (the second live-exposed set)

The state-based idempotency + body-reconciliation fix was then live-proven on the
canary, and its own live runs exposed two more defects — the two that motivate
THIS change:

10. **The marker-collision body-append (PR #26, run 32392375687).** The
    body-reconciliation append was guarded by a grep for the `## Auto-merge
    finalization` HEADING — but a PR body that describes the auto-merge workflow
    can legitimately name that heading in prose. The canary's body-append PR did
    exactly that (its step 3 names the note), so the guard's grep matched the
    author's prose and the append was silently SKIPPED — the re-run validator
    then blocked on the body↔diff mismatch exactly as in defect #9. The fix
    guards the append on a marker an author cannot write: the HTML comment
    `<!-- auto-merge-finalization-note: <stamp> -->`. (Proven by harness S17:
    the append executes even when the author's prose names the heading.)
11. **The release-tag mint never fires (PR #27, run 32397140298).** The
    tag-existence guard read
    `gh api "/repos/$REPO/git/refs/tags/$ver" -q '.ref'` — but `gh api` writes an
    HTTP 404's **response body to stdout**, and `-q '.ref'` is applied only to
    successful responses. For a tag that does NOT exist, the captured string is
    the non-empty `{"message":"Not Found",…}` body — the `-z` guard reads
    non-empty, the "already exists" branch fires, and the mint is **structurally
    unreachable**. (Observed live: PR #27 merged at `711a80ab` and logged `Tag
    v2026.232.1721 already exists` — yet `v2026.232.1721` was never created; it
    was backfilled add-only on the merged HEAD.) The fix checks existence against
    the **local git refs** (the checkout fetches `+refs/tags/*:refs/tags/*`) and
    treats the POST as the mint; a failed POST (a concurrent run's 422) reads as
    "already exists (concurrent mint)" and never fails the run. (Proven by
    harness S19/S20.)

## The fix

- `actions/checkout@v7` (`fetch-depth: 0`) so `gh pr merge` has a git repo.
- Tag version from the merge commit's committer date via the GitHub API, never a
  local `git log` on a SHA the clone lacks.
- `wait_all_settled()` polls check-runs + commit statuses until **every** check
  completes; `verify_all_green()` accepts only `success`/`skipped`/`neutral`
  check-run conclusions and rejects any **non-empty** commit-status array whose
  combined state is not `success` (including `error`) — **the auto-merge runs
  only once ALL status checks are green**. The combined commit-status state is
  `"pending"` by default when a commit has NO commit statuses (GitHub's
  documented empty-default); the validator posts a check-run, never a commit
  status, so a green head reads `state=pending, statuses=[]` and is accepted —
  only a non-empty statuses array that is not `success` is rejected.
- Rulebook merge-time CHANGELOG finalization (same-repo PRs, best-effort):
  `git mv` placeholder → merge stamp + H1 rewrite, push, re-validate the new head,
  then merge — so changelog filename/H1 and the release tag always agree. The
  rename is staged as `git add <new>` and committed without a pathspec so the
  deletion side of the `git mv` is not dropped.
- **`actions: write`** permission so the auto-merge can re-run the validator via
  the API.
- **`wait_for_validator()`** replaces the immediate revalidation after a
  finalization push: it waits for the validator run to appear on the new head,
  re-runs it via the API if it ended `action_required`/`startup_failure`, then
  waits for the validator check-run to appear before revalidating — so the merge
  never races ahead of the validator's check-run creation.
- **Idempotent finalization.** If the head's copy of the placeholder file already
  carries the `<!-- auto-merge-finalized: <stamp> -->` marker, the changelog is
  already at a merge stamp — the rename is skipped and that stamp is reused for
  the tag, so the changelog filename/H1 and the release tag still agree and the
  re-finalization loop is broken. The check is a DIRECT blob read (a file-name
  check + marker grep), not a branch-history walk.
- **PR-body reconciliation before the re-run (A1).** The finalize step appends an
  idempotent note to the PR body naming the actual (finalized) file, so the
  re-run validator's review of the finalized head stays body↔diff-consistent. The
  guard matches a unique HTML comment (`<!-- auto-merge-finalization-note:
  <stamp> -->`), not a heading an author's prose can name — so the append fires
  even on a PR that describes the workflow. The marker prevents re-appending
  across re-runs; a body-append failure is non-fatal — if the author's body
  pinned the placeholder, the re-run validator blocks and the run fails loudly,
  leaving the PR open.
- **A mint that can actually mint.** `ensure_tag` checks existence against the
  LOCAL git refs (`git rev-parse -q --verify refs/tags/$ver`) — the checkout
  carries `+refs/tags/*:refs/tags/*` — and the `gh api -X POST /repos/$REPO/git/refs`
  IS the mint. A failed POST (a concurrent run's 422 "Reference already exists")
  reports "already exists (concurrent mint)" and exits 0. Idempotent in both
  paths (already-closed + post-merge) so the two cannot drift.
- **`merge_commit_sha` flat-field read.** Both the already-closed and post-merge
  paths read the merge commit from the FLAT `merge_commit_sha` string — the real
  REST shape of `GET /pulls/{n}` (`merge_commit` is `null`) — so every merge
  mints its release tag.
- A `concurrency:` group keyed on the PR head branch serializes runs for the same
  PR (a new run queues, never cancels), so the CHANGELOG-finalization push
  re-triggering the validator cannot cause overlapping runs to rename the
  CHANGELOG repeatedly or merge a head another run is still re-validating.
- `timeout-minutes: 60` caps the job so a hung wait/merge cannot run forever.
- **No direct-squash fallback**: enabling GitHub auto-merge is the only merge path
  (it atomically re-checks branch protection); a failure fails the run loudly with
  the PR left open for investigation.
- **The merge path requires the repository setting `allow_auto_merge: true`**
  ("Allow auto-merge" in Settings → General → Pull Requests). `gh pr merge
  --auto` fails with `GraphQL: Auto merge is not allowed for this repository`
  when it is off. The setting is enabled per-repo; the workflow itself is
  unchanged.

## How validated

The workflow logic was proven against a stub `gh` + a real local git repo before
landing — the exact run block extracted from this workflow, with the stub `gh`
extended to cover every API call the run makes and the `/pulls/<id>` mock
corrected to the REAL REST shape (`merge_commit_sha` flat, `merge_commit` null) —
the shape live GitHub returned and that had blinded the first stub. Twenty
decision paths, 92 assertions, all passing:

```
PASS: S1 exit 0
PASS: S1 merge --auto called
PASS: S1 tag created
PASS: S1 all-green message
PASS: S2 exit 0
PASS: S2 waited (pending logged)
PASS: S2 merged after wait
PASS: S3 exit 1
PASS: S3 no merge
PASS: S3 failure reported
PASS: S3b exit 1
PASS: S3b no merge
PASS: S3b error state reported
PASS: S4 exit 0
PASS: S4 tag created
PASS: S4 already-closed message
PASS: S4b exit 0
PASS: S4b no tag POST
PASS: S4b already-exists message
PASS: S5 exit 0
PASS: S5 finalize message
PASS: S5 merged after finalize
PASS: S5 placeholder gone from head
PASS: S5 new file present
PASS: S5 H1 rewritten to stamp
PASS: S6 exit 0
PASS: S6 no finalize (M-status excluded)
PASS: S6 no rename commit
PASS: S6 merged
PASS: S6 modified file intact
PASS: S7 exit 0
PASS: S7 already-at-stamp message
PASS: S7 merged
PASS: S8 exit 1
PASS: S8 no direct-squash fallback
PASS: S8 only one merge attempt
PASS: S9 exit 0
PASS: S9 fork skip message
PASS: S9 merged
PASS: S10 exit 0
PASS: S10 empty-default pending accepted
PASS: S10 merged
PASS: S10b exit 1
PASS: S10b no merge
PASS: S10b pending state reported
PASS: S11 exit 0
PASS: S11 finalize message
PASS: S11 action_required reported
PASS: S11 validator re-run called
PASS: S11 merged after revalidation
PASS: S11 tag created
PASS: S12 exit 0
PASS: S12 skip finalization message
PASS: S12 no rename commit
PASS: S12 merged
PASS: S12 tag uses changelog stamp
PASS: S13 exit 0
PASS: S13 no re-run (normal dispatch)
PASS: S13 merged
PASS: S13 tag created
PASS: S14 exit 1
PASS: S14 no validator run reported
PASS: S14 no merge
PASS: S15 exit 0
PASS: S15 finalize message
PASS: S15 body reconciled before re-run
PASS: S15 revalidation green (A1 resolved by the body-append)
PASS: S15 merged
PASS: S15 tag created
PASS: S16 exit 1
PASS: S16 body-append failure reported
PASS: S16 re-validation blocked (A1)
PASS: S16 no merge
PASS: S17 exit 0
PASS: S17 finalize message
PASS: S17 body-append executed despite heading in author prose
PASS: S17 revalidation green (A1 resolved by the body-append)
PASS: S17 merged
PASS: S17 tag created
PASS: S18 exit 0
PASS: S18 skip finalization message
PASS: S18 no rename commit
PASS: S18 merged
PASS: S18 tag uses changelog stamp
PASS: S19 exit 0
PASS: S19 mint POST executed
PASS: S19 Tagged message
PASS: S19 no already-exists echo
PASS: S20 exit 0
PASS: S20 POST failure logged
PASS: S20 no mint recorded
PASS: S20 concurrent-mint message
==============================
TOTAL: 92 passed, 0 failed
```

Scenario map: S1 self-merge+tag · S2 pending-then-green wait · S3 failed check
abort · S3b commit-status `error` state abort · S4 already-closed idempotent
tag · S4b tag-already-exists reported, not re-created · S5 same-repo CHANGELOG
finalize (rename commit, old placeholder deleted, revalidate, merge, tag) · S6
`A`-status narrowing (a modified CHANGELOG file is not renamed) · S7 placeholder
already at the merge stamp (skips finalize) · S8 auto-merge enable failure (exit
1, no direct-squash fallback) · S9 fork PR (skips finalize, merges) · S10 no
commit statuses at all (empty-default `pending`, statuses=[] → accepted as green
→ merge) · S10b a real pending with non-empty statuses → still rejected · S11
finalization → validator run ends `action_required` → re-run via API →
check-run appears → revalidate → merge · S12 idempotent finalization (the head's
file already carries the marker → skip the rename, reuse the changelog stamp for
the tag) · S13 finalization → validator dispatches normally (no re-run) → merge ·
S14 finalization → no validator run appears → fail loudly, no merge · S15
finalize + author-body pins the placeholder → body-append lands → re-run
validator green → merge + tag (the A1 live-proof scenario) · S16 body-append
fails → fail loudly, no merge · S17 **the marker-collision live defect** (PR #26):
the author's prose names the workflow note's heading, yet the body-append still
fires (the HTML-comment marker guard) · S18 idempotency skip WITHOUT a finalize
commit — a head whose file carries the marker (the state-based check) · S19
**the tag-mint fix** (the PR #27 live case): tag ABSENT → mint POST fires →
`Tagged` · S20 POST fails (a concurrent run minted the tag first → 422) →
concurrent-mint message, exit 0.

## Change class

**ci/config** — a workflow file + its CHANGELOG entry. No code, no candies, no
beds. The R10 for a workflow change is the live run of the workflow itself, which
can only happen after this lands on `main`; the stub-gh proof above is the
pre-landing gate.

## Project-rulebook rule-compliance

- **R0** — N/A: no skill-owned surface; the workflow mechanics were validated
  against a stub `gh` (RDD), not a skill lookup.
- **R1** — every defect was RCA'd from its live run: the four original from run
  3235221669 (`not a git repository`); the empty-default `pending` defect from the
  fresh validator's live API observation (`GET /commits/<head>/status` →
  `{"state":"pending","statuses":[]}` on a green head); the revalidation race
  from run 32371493249 (the log shows `revalidation: all status checks have
  completed` 0.7s after the push, then `GraphQL: Pull Request is not mergeable`);
  the `action_required` state from the live validator run on a GITHUB_TOKEN-pushed
  head (0 jobs, 0 check-runs, instant completion); the re-finalization loop from
  the observed 2026.232.1256 → 2026.232.1304 re-finalization across re-runs; the
  `merge_commit_sha` REST shape from the canary's frozen poll; the A1 mismatch
  from the BLOCKed canary PR; the marker collision from PR #26's silent skip; and
  the tag-mint non-fire from run 32397140298's "Tag v2026.232.1721 already
  exists" log on a tag that was never created — no flake framing anywhere.
- **R2** — all eleven defects fixed in the same change; nothing deferred.
- **R3** — no duplication introduced; the wait/verify helpers are defined once,
  and the tag logic is a single `ensure_tag` helper shared by both paths.
- **R4** — the `wait_for_validator` polling is a legitimate check-wait (the
  GitHub API exposes no event/sync primitive for check-run creation), not a race
  workaround.
- **R5** — no legacy path survives; the old immediate-revalidation call is fully
  replaced by `wait_for_validator`, the heading-guard body-append is replaced by
  the marker-guard, and the old `gh api …git/refs/tags` existence guard is
  replaced by the local-ref check.
- **R6** — no force-push, no direct push to `main`; PR-only landing.
- **R7/R8/R9** — N/A: no runtime artifacts, no emitted Containerfiles, no binary.
- **R10** — the live run of the workflow itself is the gate, which can only
  execute after this lands on `main`; the stub-gh proof of all twenty decision
  paths is the pre-landing gate (documented above). The canary repo has already
  run the corrected workflow end-to-end live.
- **RDD** — the highest-risk unknown (the workflow's decision logic) was proven
  against a stub `gh` before landing, not deferred to the live run. The stub's
  blind spots (the revalidation race, the `action_required` state, the
  re-finalization loop, the flat `merge_commit_sha`, the marker collision, the
  tag-mint 404 body) were each caught by the canary's live runs and closed with a
  new scenario before this rollout.
- **ADE/SDD** — N/A: no candies, no CUE schema.

Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)
github-actions Bot pushed a commit that referenced this pull request Aug 30, 2026
main ships the omarchy `installer:` block (#485) with a plugin-vm that
does not implement `source.kind: iso`. So the answer format is there and
unusable:

  charly: error: command "vm": vm "omarchy-vm":
    unsupported source.kind "iso" (want one of cloud_image, bootc, bootstrap)

#485 carried this bump as a second commit; the squash-merge landed only
charly/charly.yml. Confirmed:

  $ git show --stat 5caaf43 | tail -2
   charly/charly.yml | 236 +++++++++++++++++++++++++++++++++++++++++++
   1 file changed, 236 insertions(+)

So this is not a new dependency decision — it is the half of #485 that
did not land, restored, and re-verified against what is published now
rather than what was published then.

  plugin-vm      v0.2026240.2034 -> v0.2026242.1323
  plugin-distro  v0.2026242.804  -> v0.2026242.1131
  sdk            v0.2026241.2111 -> v0.2026242.1250
  spec           v0.2026242.753  -> v0.2026242.1251

plugin-vm brings the iso engine (#8), the virtio answers volume (#9) and
the per-domain seed (#10). plugin-distro brings the resolver that stops
`installer:` arriving nil at every consumer (#6) — without it the block
in charly.yml is silently dropped even once the engine exists. sdk and
spec bring the seed context's disk_size_bytes and the template
arithmetic the partition geometry needs.

Verified: `task build:binary` passes its own go.work.sum drift guard, and
the resulting binary builds an iso VM — vm-build and vm-create both PASS
on check-omarchy-iso-vm, where the previous binary failed in 761 ms with
the error above.

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

Co-authored-by: atrawog <[email protected]>
atrawog added a commit that referenced this pull request Aug 30, 2026
#499)

distro-omarchy has landed two PRs that charly's gitlink does not reach, so none of the work
is usable from charly:

  #8  the omarchy beds assert through typed verbs instead of shell
  #9  upstream's system and cups acceptance suites ported onto check-omarchy-iso-vm

  box/omarchy   2f5e5c1 -> db2199a
  import pin    v2026.242.0551 -> v2026.242.2251

Until this bump, `charly -C box/omarchy check run check-omarchy-iso-vm` resolves the pinned
commit and runs the OLD 28-step shell-based bed. The work was merged but not wired in.

Policy B is preserved by construction: this repo's box/omarchy IS the pin the umbrella
mirrors, so the umbrella syncs to this rather than being hand-pinned. That sync is its own
PR in opencharly/opencharly.

## What it brings in

The bed goes from 28 steps to 52, and from 43 `command:` shell steps across three beds to
4 in this one — each of the four justified in place with the reason it is not a verb.

The 24 new assertions are the first consumer of the verb fields charly#498 just repinned:
`service: {scope: user}` for the user-session audio stack, `service: {none_failed:}` on
both managers, `user: {not_groups: [docker]}` for the root-equivalent-group posture,
`file: {owner, group_of, mode}` for the CUPS policy file, and
`command: {expect_non_zero: true}` for the two assertions whose whole point is that they
must fail.

## How tested

    $ task build:binary
    [exit 0]

    $ charly -C box/omarchy box validate
    [exit 0]

The bed is reachable through charly at its new size, which is the thing this bump exists to
make true:

    $ python3 -c "... yaml.safe_load(open('box/omarchy/charly.yml')) ..."
    iso bed steps reachable from charly: 52

The bed itself was proven in distro-omarchy#9 on the submodule commit this pins —
`PASS (steps=9)`, with `check-live` and `check-live-rebuild` both at
`52 steps: 52 passed, 0 failed, 0 skipped` and no `warnings=` counter on any step.

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

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit that referenced this pull request Aug 31, 2026
…#516)

charly pinned plugin-box v0.2026243.729, from before two fixes merged and tagged
in the owning repo. A merged and tagged module is not a shipped fix until its
consumer repins, so neither was in any charly binary:

  #8 (v0.2026243.1040) -- `charly box validate` reported "N warnings" and never
     said what any of them were. The count was visible, the cause was not.

  #9 (v0.2026243.1718) -- `charly box reconcile`, which the git-workflow rule
     names as THE remedy for a `resolved to multiple versions` warning, rewrote
     the 4 pins it reported and 405 lines in total. It re-serialized the whole
     document, and yaml.v3 does not reproduce a folded block scalar (`>-`): every
     authored description: in the file was reflowed. The remedy's own diff was a
     review blocker, so the warning it exists to clear could not be cleared with it.

Both verified against a stock `task build:binary` of this tree, on a real 160KB
project rather than a fixture:

  box validate   now prints the two warnings by name, not just the count
  box reconcile  2 files changed, 4 insertions(+), 4 deletions(-)
                 (was 170 insertions(+), 235 deletions(-) on the same 4 pins)

go.sum moves with the require; no source changes.

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

Co-authored-by: atrawog <[email protected]>
atrawog added a commit that referenced this pull request Sep 7, 2026
…— the shape classifier missed the Fleet gate exemption

RCA (2026-09-07 runtime envelope drop): the canonical imageless agent_provisioned pod (agent_provisioned: true + iterate:, no image:/from:, no resource-member sibling) VANISHED from the resolved-project envelope Deploy map — every build:project consumer saw no-entity. Root cause: foldSubstrateKind classified deploy vs template via pl.IsDeployShape(pn) (from:/image: bodies only) || ResourceChildren — the agent_provisioned spelling the Fleet gate (spec.ValidateDeploymentTree → ValidateDeployRequiresBox) exempts from the box requirement matched NEITHER arm, so the node folded as a standalone TEMPLATE (acc.PluginKinds[pod]) and never entered acc.Fleet. The plugin-build #9 in-repo tests missed it because every test doc carries a watcher: sibling feeding the ResourceChildren arm. Fix: extend the foldSubstrateKind predicate with agentProvisionedBody(rawBody) so the classifier stays in lockstep with the gate exemption. TDD: substrate_imageless_deploy_test.go reproduces the drop pre-fix (acc.Fleet empty, node in the template map) and locks the discriminator (plain imageless pod stays a template; watcher-sibling shape unaffected).
github-actions Bot pushed a commit that referenced this pull request Sep 7, 2026
…ags + box pointers + spec 200 / sdk 417 re-pins (#552)

* feat(schema)!: remove the group kind from charly — unroll migration, provider drop, seven-contract re-pin (Cutover C task 1, charly half)

* feat(schema)!: remove the group kind from charly — unroll migration, provider drop, seven-contract re-pin (Cutover C task 1, charly half)

* fix(substrate): fold the imageless agent_provisioned pod as a DEPLOY — the shape classifier missed the Fleet gate exemption

RCA (2026-09-07 runtime envelope drop): the canonical imageless agent_provisioned pod (agent_provisioned: true + iterate:, no image:/from:, no resource-member sibling) VANISHED from the resolved-project envelope Deploy map — every build:project consumer saw no-entity. Root cause: foldSubstrateKind classified deploy vs template via pl.IsDeployShape(pn) (from:/image: bodies only) || ResourceChildren — the agent_provisioned spelling the Fleet gate (spec.ValidateDeploymentTree → ValidateDeployRequiresBox) exempts from the box requirement matched NEITHER arm, so the node folded as a standalone TEMPLATE (acc.PluginKinds[pod]) and never entered acc.Fleet. The plugin-build #9 in-repo tests missed it because every test doc carries a watcher: sibling feeding the ResourceChildren arm. Fix: extend the foldSubstrateKind predicate with agentProvisionedBody(rawBody) so the classifier stays in lockstep with the gate exemption. TDD: substrate_imageless_deploy_test.go reproduces the drop pre-fix (acc.Fleet empty, node in the template map) and locks the discriminator (plain imageless pod stays a template; watcher-sibling shape unaffected).

* chore(deps): the 10/11-contract re-pin — spec WarmUp prefetch-warm + sdk ledger-lock decoupling + build/substrate advance (Cutover C task 1, charly half, follow-up)

Completes the seven-contract re-pin the group-removal conversion commit
(dbf8e2a) started, to the settled CC-1 wave ledger:

- spec v0.2026249.2215 -> v0.2026250.158: the refs WarmUp prefetch-warm
  fix (spec #109) — a persisted latest_tags entry is now PREFETCH-warm,
  killing the on-demand LatestTag strict re-probe O(n) network storm and
  the deterministic "fetching git metadata for 194 repo(s)" hang.
- sdk v0.2026249.2239 -> v0.2026250.154: carries BOTH the contract floor
  (sdk #226) AND the fleet-del self-deadlock fix (sdk #227:
  kit.AcquireLedgerLock moved off charly.yml.lock onto the dedicated
  <config>.ledger.lock). Folded from sibling commit 3867f71e
  (feat/fleet-del-deadlock-pin-bump) — its bump is absorbed here rather
  than cherry-picked to avoid a broken intermediate sdk pin (the
  conversion commit's tree carried v0.2026250.17 uncommitted).
- plugin-build v0.2026243.1627 -> v0.2026249.2311 and plugin-substrate
  v0.2026241.1038 -> v0.2026249.2326 (the substrate imageless
  agent_provisioned fold fix a857bd5 consumes).
- plugin-check 2119 / plugin-preempt 2116 / plugin-fleet 2126 /
  plugin-migrate 2144 were already advanced by dbf8e2a — unchanged.
- plugin-deploy-vm (v0.2026249.2224) / plugin-deploy-pod
  (v0.2026249.2212) are @github refs resolved at runtime to their
  latest tags — no go.mod require exists by design (externalized
  deploy substrates, provider_deploy.go).

Verified: go build ./... and go vet ./... exit 0; go test -count=1
./... fails ONLY the two distro-gated tests (TestCueKinds_Corpus and
TestMaterializeSeam_RealFixtureDeterministic — both read the
pre-conversion ../box/{arch,fedora,cachyos} submodule trees, the
pending distro conversion wave's dependency, independent of this
go.mod/go.sum-only diff); task build:binary exit 0, bin/charly
version 2026.250.0054. The own-tree bed R10s + box validate are
blocked at project resolve by the same pre-conversion distro import
pins (arch v2026.241.1429 first) — they run when the distro
conversion PRs land and the import pins bump (coordinated separately).

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)

* feat(cutover-c): land the distro conversion wave — the 4 converted distro import tags + box pointers + spec v0.2026250.200 + sdk v0.2026250.417 + the structkind plugin re-pin

* chore: re-trigger the pr-validator — body re-classification (A1/A3/R2/R10 findings addressed; named batch #553)

---------

Co-authored-by: atrawog <[email protected]>
aitrawog added a commit that referenced this pull request Sep 27, 2026
…oject

Address the last two validator findings on the host leg (#716):

- cue_tighten_test.go: the "candy/box bad version format rejected" cases asserted the
  DELETED CalVer rule; a leftover `version:` is now rejected by CLOSEDNESS (an unknown
  field), not a format rule. Rename them accordingly, drop the stale "cutover #9: CalVer
  format" comment, and keep the "missing version accepted" case.
- packaging/charly.yml: the removed `packaging.config` section (#PackagingConfig, spec#183)
  was what shipped /etc/charly/charly.yml — the system-wide project the charly-mcp systemd
  units resolve via WorkingDirectory=/etc/charly. Replace it with the surviving mechanism:
  a packaging plan run-step that writes the file (with its plugin-mcp candy ref) into the
  package/install. Add TestPackagingShipsSystemProject to pin it (replacing the deleted
  TestPackagingConfigDeclared).

Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant