Repository navigation
feat(candy/charly): install charly from the published per-distro package repos - #388
Conversation
…age repos
The charly meta-candy's plan baked the binary via `copy: bin/charly` —
the in-repo artifact at candy/charly/bin/charly, synced by
`task build:binary`. When a box repo resolves the candy from the
PUBLISHED charly repo at a pinned tag, that artifact does not exist, so
the compose fails at `COPY --from=charly bin/charly` (the pre-existing
failure blocking the batch-1 box PRs' R10).
The charly binary is published natively by the six per-distro package
repos (charly-{alpine,arch,fedora,ubuntu,debian,openwrt}) on GitHub
Pages. This change installs `charly` from those repos via the
declarative `distro:` + `package:` + `repo:` mechanism:
- debian/ubuntu: apt repo (suite stable, component main, charly.gpg key)
- fedora: dnf baseurl form (repo/amd64 + RPM-GPG-KEY-charly gpgkey)
- arch: pacman server + siglevel (repo/amd64)
- alpine: apk repo (amd64 dir with APKINDEX + charly.rsa.pub key)
The baked `copy: bin/charly` step is removed; the package install
provides the binary. The stale comment describing the copy step is
updated to the repo-install reality.
Review — BLOCKHead SHA: Change class: config change — Blocks
Comment intake: thread is empty; nothing to re-derive. CI Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
…ro-repo install) The charly candy's new distro: repo install (charly#388) requires sdk#162 (CompileLocalPkgStep skips when the candy's distro repo provides the package) — without it a box composing the charly candy double-installs charly (apt 'Packages were downgraded' failure).
go work sync rewrote 124 workspace go.sum files; the sdk pin bump needs only charly/go.mod + charly/go.sum. Reverting the churn.
Review — BLOCKHead SHA: Change class: config change ( Security screen: FINDING — see Block 1. Blocks
Comment intake:
Placement: CORRECT — the install capability lives in the candy's declarative Checklist note: ADE (description + deterministic Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: config change ( Security screen: FINDING — see Block 1. Blocks
Comment intake:
Placement: CORRECT — the install capability lives in the candy's declarative Checklist note: ADE PASS (non-empty Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
…ession test - arch repo entry: siglevel Optional TrustAll -> Required DatabaseOptional with the published key fingerprint (978DFF11A951A830F7ADA2D4062B073E9D1BAE2E, now on keyserver.ubuntu.com) — the arch install is signature-verified like every other distro entry. - TestDistroRepoInstallDeclared: asserts the charly candy's distro: section declares the charly package + a repo entry for every published distro (debian/ubuntu/fedora/arch/alpine). Fails on origin/main (no distro entries), passes with the repo-install change.
…arget, go.mod accounting, arch key RCA)
Review — BLOCKHead SHA: Change class: config change ( Blocks
Comment intake
Notes (non-blocking)
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: config change ( Blocks
Comment intake (all prior
|
…arch/alpine static-verified)
Review — PASSHead SHA: Security screen: PASS — all four diff files accounted for in the Summary (no scope mismatch); no secrets/exfiltration (public org-owned Checklist: All applicable rules PASS or NA.
Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no scope mismatch (all 4 diff files accounted for in the body: Checklist: All applicable rules PASS or NA.
Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Summary
The charly meta-candy's plan baked the binary via
copy: bin/charly— the in-repo artifact atcandy/charly/bin/charly, synced bytask build:binary. When a box repo resolves the candy from the published charly repo at a pinned tag, that artifact does not exist, so the compose fails atCOPY --from=charly bin/charly(the pre-existing failure blocking the batch-1 box PRs' R10).This change installs
charlyfrom the published per-distro package repos (charly-{debian,ubuntu,fedora,arch,alpine}on GitHub Pages) via the declarativedistro:+package:+repo:mechanism, and removes the bakedcopy: bin/charlystep (R5 hard cutover, same change):stable, componentmain,charly.gpgkey)repo/amd64+RPM-GPG-KEY-charlygpgkey)server+ pinned signing key978DFF11A951A830F7ADA2D4062B073E9D1BAE2E(published to keyserver.ubuntu.com) withsiglevel: Required DatabaseOptional— signature-verified like every other distro entry (the initialOptional TrustAllwas replaced after the validator's supply-chain finding)charly.rsa.pubkey)Dependency bump (go.mod/go.sum):
github.com/opencharly/sdkv0.2026235.1716 → v0.2026236.813 (sdk#162, merged). The repo install requires sdk#162'sCompileLocalPkgStepskip (when the candy'sdistro:repo provides the packaged name, the localpkg fallback must not fire) — without it a box composing the charly candy double-installs charly and apt fails withPackages were downgraded and -y was used without --allow-downgrades. The go.sum diff also carries the transitive hash updates for that version (fsnotify/renameio additions, go-spew/go-difflib removals, go-isatty bump).Regression test:
TestDistroRepoInstallDeclared(charly/packaging_test.go) asserts the candy'sdistro:section declares the charly package + a repo entry for every published distro. Fails on origin/main (debian/ubuntu carry onlytailscale; fedora/arch/alpine have no distro entry — all five errors above), passes with this change.How tested
1. The live compose gate — the changed runtime path executed live on a disposable target (the ubuntu-coder box: a fresh container build from scratch — the disposable bed is the build itself; the box vocabulary has no
disposable:field — the spec'sDisposablelives on the Deploy struct, not the Box — and the box repo's own header comment (distro-ubuntucharly.yml:38) describes the repo-shipped disposable check bed; the box repo is a scratch checkout at /tmp/box-ubuntu, the candy resolves from THIS branch viaCHARLY_REPO_OVERRIDE, the binary is built from THIS branch):The rendered Containerfile installs charly ONCE (the apt repo install from the declared
repo:entry). Before sdk#162, the same build failed at the second install path withPackages were downgraded and -y was used without --allow-downgrades.2. The binary version matches the source (stamped via
task build:binaryon this branch):3. The manifest validates with zero warnings (full output, no elision — the 8
Note:lines are informational "local candy shadows remote candy" messages inherent to a repo checkout, not warnings):4. The regression test — fails without the change, passes with it:
5. The repo entry forms were verified against the render engine ([email protected]
buildkit/render.go+ the distro vocabulary templates): deb usesname/url/key/suite/components; rpm distinguishes a.repoURL from a baseurl (inline.repowithurl→baseurl+gpgkey); pac usesserver+siglevel+key(keyserver fingerprint forpacman-key --recv-keys); apk usesurl(arch dir with APKINDEX) +key. The published repo layouts were verified live (all fivehttps://opencharly.github.io/charly-<distro>/return 200; fedora/arch/alpine publish per-arch dirs + keys).Rulebook compliance
CompileLocalPkgStepfiring alongside the repo install (fixed at the mechanism in sdk#162)copy: bin/charlystep is deleted in the same changego test+box validatepasted aboveChange classification
charly box validate(zero warnings) +charly versionmatching the sourceanalysed on a live system— the deb-family repo-install path executed live (ubuntu-coder compose, EXIT:0, retained output); the fedora/arch/alpine install paths are verified statically (render-engine field verification, live HTTP-200 repo-layout checks, the declaration regression test) and no alpine box exists to compose — the full gate did not pass for every changed pathAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)