Skip to content

chore: bump sdk → aur-builder empty-output guard (6c20071) - #10

Merged
atrawog merged 2 commits into
mainfrom
feat/bump-sdk-aur-guard
Jul 8, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/bump-sdk-aur-guard

Conversation

@atrawog

@atrawog atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Bumps the sdk pointer 0561805 → 6c20071 (opencharly/sdk#4, v0.2026189.249, merged) — adopting the R8 aur-builder guard: a non-empty aur: package list that produces zero .pkg.tar.zst artifacts now fails the build loudly instead of silently caching an empty COPY layer (the pgvector incident's prevention half). No superproject code change.

Change class + gate

Submodule pointer bump integrating a builder-template change. Behavioral gate (per SDK-first landing — the sdk repo has no bed): a fresh charly box build arch-test (arch; arch-aur-test installs yay-bin, a genuine AUR package) built EXIT 0 with the guard present —

[5/5] … find /tmp/aur-build -name '*.pkg.tar.zst' -exec cp {} /tmp/aur-pkgs/ \; && \
      { ls /tmp/aur-pkgs/*.pkg.tar.zst … || { echo '…ZERO…'; exit 1; }; }
yay-bin 13.0.1-1 … installing yay-bin...
Successfully tagged ghcr.io/opencharly/arch-test:2026.189.0253
BUILD EXIT: 0

— proving the guard does not spuriously fail a legitimate aur build (yay-bin produced an artifact, the guard's ls passed). The zero-output failure path is proven by the sdk-side shell-logic test (exit 1 on an empty dir). task build:charly R9 (charly version 2026.189.0239).

Tier: fully tested and validated.

Assisted-by: Claude (fully tested and validated)

Adopts the sdk R8 guard: a non-empty aur: package list producing zero
.pkg.tar.zst now fails the build loudly (the pgvector-incident prevention half).
Behavioral gate: charly box build arch-test (arch-aur-test installs yay-bin, a
genuine AUR package) built EXIT 0 with the guard present — proving it does not
break a legitimate aur build. Zero-output path proven by the sdk shell-logic test.

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 (submodule-pointer bump integrating a builder-template change — runtime class, behavioral gate required)

Item Verdict
Security & anti-tampering (T1–T4) PASS — sdk range 0561805..6c20071 is exactly 2 commits touching only kit/builder_resolve.go (+1 shell line), a new kit/aur_guard_test.go, and a CHANGELOG. No secrets/exfiltration, no scope mismatch (code == description), no weakened gate, no unexpected @github/dep change. No attempt to instruct/manipulate the validator.
Description complete PASS — real Summary, Change class + gate with pasted build evidence, attribution tier, Assisted-by trailer.
Change-class gate matches evidence PASS — behavioral gate reproduced independently: freshly rebuilt charly (guard compiled in, strings grep = 1) → charly box build arch-test --dev-local-pkg EXIT 0, Successfully tagged ghcr.io/opencharly/arch-test:2026.189.0258, zero warnings.
Attribution tier justified PASS — fully tested and validated is supported by the fresh consumer build with the guard active.
R5 grep self-test PASS — PR removes no code identifier (only the old gitlink line + adds a CHANGELOG). Nothing to sweep.
R1–R4 / clean architecture PASS — no carried warnings, no duplication, no ad-hoc workaround, no dual-mode path.
CHANGELOG present PASS — CHANGELOG/2026.189.0255.md (placeholder; finalized at merge).
Skills honored PASS — git-workflow (SDK-first landing: producer sdk merged + tagged v0.2026189.249 first, then this consumer pointer bump), plugin (the aur builder resolves via BuilderResolveReply), build (aur builder stage).

Independent verification performed:

  • Confirmed 6c20071 is on sdk's real origin/main and tagged v0.2026189.249; the guard (ls /tmp/aur-pkgs/*.pkg.tar.zst … exit 1 after the find … -exec cp) is byte-exact in 6c20071:kit/builder_resolve.go.
  • Confirmed the guard is byte-exact and correctly ordered in the generated box/arch/.build/arch-test/Containerfile (immediately after the find … -exec cp, building yay-bin).
  • Full arch-test build EXIT 0 (whole arch chain rebuilt fresh to :2026.189.0258). The guarded aur RUN hit the podman layer cache — a RUN cache hit is positive proof the byte-identical guarded instruction previously executed to a zero exit (a fired guard exits 1, aborting the build and caching nothing); the downstream pacman -U /tmp/aur-pkgs/*.pkg.tar.zst also cache-hit, proving a real .pkg.tar.zst artifact was produced. The author's paste additionally shows the fresh installing yay-bin… live run.

Decision: APPROVED — a minimal, correctly-scoped consumer adoption of an already-merged, independently-tested sdk fix; the guard is proven not to break a legitimate aur build. Finalizing the merge-time CalVer, merging --rebase, and tagging.

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

… empty-output guard)

Superproject pointer bump adopting the already-merged sdk fix at 6c20071
(v0.2026189.249): the aur builder stage fails loudly on zero produced
.pkg.tar.zst artifacts for a non-empty aur: package list (R8 masked-failure
prevention). Validator-finalized the CHANGELOG placeholder to the merge-time
CalVer. Behavioral gate: fresh charly box build arch-test EXIT 0 with the guard
active on a genuine AUR package (yay-bin).

Assisted-by: Claude (fully tested and validated)

Claude-Session: https://claude.ai/code/session_01LjLm6DGQasmXaXw2ZorwhE
@atrawog
atrawog merged commit 0d23e76 into main Jul 8, 2026
@atrawog
atrawog deleted the feat/bump-sdk-aur-guard branch July 8, 2026 03:08
atrawog added a commit that referenced this pull request Jul 20, 2026
…er-cone

Merges origin/main (09172e1, PR #160 — restores nested CLI grammar for
check/box-list, touching cli_model_cmd.go/main.go/main_freshness.go/
plugin_provider_common.go/provider_command_external.go/candy/plugin-box/
candy/plugin-check) into feat/w9-loader-cone. Clean auto-merge, one real
conflict: charly/go.mod's sdk require version (HEAD's v0.2026200.1312 vs
main's v0.2026201.542) — resolved to v0.2026201.636, matching the sdk
gitlink bump below. None of #160's touched files overlap the W9 retype's
surface (layers.go/unified.go/resolved_project_host.go/render_baked_metadata.go).

sdk gitlink -> db63ef1 (sdk#75 merged main, tag v0.2026201.636) — the
CandyReader agent/terminal-profile accessors this cutover's render_baked_metadata.go
fix depends on are now landed upstream, so the previous local-only pin is
replaced by the real merged+tagged commit.

Verified: task build:binary (2026.201.0620, zero go.work.sum drift); charly
go test ./... 114.7s green; gofmt/vet/golangci-lint clean; GOWORK=off go mod
verify clean; superproject task cue:gen no-op beyond untouched submodule
pointer noise; charly box validate exit 0. candy/plugin-http and
candy/plugin-port fakeCC fixture failures reproduced with the identical
signature (*fakeCC missing ResolveClusterContext) already tracked as
pre-existing/unrelated (task #10's thematic batch) — confirmed untouched
by this merge, not fixed here.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
atrawog added a commit that referenced this pull request Jul 20, 2026
…tures, dead code, stale refs

Thematic hygiene batch (task #10) — four independently-surfaced, zero-file-overlap
fixes bundled per the Cutover Sizing Law:

1. Fixed `go vet` failures in `candy/plugin-http` + `candy/plugin-port`: both
   plugins' `fakeCC` test fixtures fell behind `kit.CheckContext` after the sdk
   control-plane work added `ResolveEndpoint`/`ResolveGraphicsEndpoint`/
   `ResolveClusterContext`/`ResolveImageLabel`. Patched each fixture with the
   four missing no-op methods.
2. Deleted the zero-caller `ValidatePreemptibleAcrossDeploy` and folded
   `defaultK8sOutputDir` out of the stray `bundle_add_cmd_k8s.go` into its
   sibling `k8s_generate.go`, deduping the inline copy in
   `k8s_deploy_from_box.go`. Fixed a stale doc comment in
   `candy/plugin-substrate/status_k8s.go` for the fourth copy, which the
   kernel/plugin boundary law forbids unifying across the core/plugin seam.
3. Swept the stale `check-charly-selftest-pod` bed-name reference; the one
   hit lives in the sdk submodule and lands as its own companion PR
   (opencharly/sdk#76) — this PR does not bump the sdk gitlink.
4. Added `scratchpad/` to `.gitignore`.

R10: independently re-verified by the fresh pr-validator on the exact head —
go build/vet/test/gofmt/golangci-lint clean across charly + plugin-http +
plugin-port + plugin-substrate (each GOWORK=off, own module); confirmed
RED-on-main -> GREEN-on-PR for the fixture fix by direct swap-test; R5 grep
self-tests re-run independently (clean); sdk + plugins gitlinks confirmed
byte-identical to origin/main. The k8s helper-fold's own R10 gate
(`check-k8s-deploy`, the deploy:k8s substrate's disposable bed) was run live
by the validator — 10/10 steps green, proving defaultK8sOutputDir/
GenerateK8sKustomize both pre- and post-charly-update.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
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]>
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