Repository navigation
test(build): downloads cache ownership coverage - #166
Conversation
Update the EmitDownload mount-form assertions to the corrected ownership contract (non-root stage -> uid/gid-owned charly-tmp-downloads-uid<uid> cache; root stage -> shared cache) and add TestEmitDownload_DownloadsCacheRootShared for the root case. Companion to opencharly/sdk#79 (the deploykit fix); the sdk gitlink bump lands on this branch after the producer merges. Assisted-by: Kimi Code (Moonshot K3; documentation reviewed)
Bumps the sdk submodule to the merged opencharly/sdk#79 squash (2e2ad01, tag v0.2026201.1313) — the downloads-cache ownership fix, producer leg of this cutover — and the charly/go.mod require to the same version. Assembly re-gated on the merged tree: full go test ./... ok, go vet clean, golangci-lint 0 issues, task build:binary rebuilt (2026.201.1241, taskRunsAsRoot present), box validate exit 0. Assisted-by: Kimi Code (Moonshot K3; analysed on a live system)
…ownership # Conflicts: # charly/go.mod
pr-validator — APPROVED ✅Bound identities (all verified live, read-only, by me):
Update-merge (spec Phase 3 step 1, update-branch equivalent): the branch was 1 BEHIND main and DIRTY — both main ( Change class: cross-repo consumer leg / Checklist (every rule re-derived and re-run by me, never the author's word)
Comments consideredNone — the PR carries zero comments (verified via Cross-PR interactions considered
DecisionCompliant on every applicable item at the honestly-claimed tier. The charly-side coverage pins the corrected mount-ownership contract and fails without it; the producer behavior change arrived through the reviewed sdk gitlink delta and was independently live-proven against the exact failing environment; the assembled final tree (main Assisted-by: Kimi Code (Moonshot K3; analysed on a live system) |
Assisted-by: Kimi Code (Moonshot K3; analysed on a live system)
pr-validator — LANDED ✅Gated-action outcomes (each ALLOWED, verbatim):
Final CalVer: 2026.201.1353 ( Assisted-by: Kimi Code (Moonshot K3; analysed on a live system) |
…rve (#1144) `charly task sync` in this repo advanced exactly three of its six pins, and they are the three that block the umbrella's distro pins: box/cachyos 4907fc2d8f -> c7fe3d9110 (distro-cachyos origin/main) box/fedora a152cafb22 -> 9211accabd (distro-fedora origin/main) box/omarchy d1040b2097 -> 8bc25c2a1b (distro-omarchy origin/main) Each new pin is the tip its remote serves, which is what the pin contract's `upstream:main` intent names — no hand-pin, and no checkout was committed. Why it matters beyond this repo: the umbrella's `distro-cachyos`, `distro-fedora` and `distro-omarchy` pins are derived-from this repo, so they are blocked-by `charly:box/<distro>` until these gitlinks move. With them advanced, the next umbrella wave can collect the three, and `box/cachyos` at c7fe3d9110 carries the openwebui 0.13.3 pin chain (pod-openwebui v2026.317.2036, the bed assertion, and the plugin round-trip bed) that landed through distro-cachyos#164/#165/#166. The gate this repo declares for a pin change, `charly task pin-current`, now reads: currency: 0 of 6 pin(s) NOT current [6 cur]; producer-first legs: none — every pin is at the ref its intent names Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Summary of changes
Companion consumer leg of opencharly/sdk#79. The downloads cache mount
emitted for image builds was a shared root-owned mount, so the first
root-stage download permanently broke every non-root stage's download
(
curl: (23) write error, reproduced serially on this host's root-pollutedcache). The sdk leg makes the mount follow the task's stage user (non-root →
uid/gid-owned
charly-tmp-downloads-uid<uid>cache; root → shared).Concrete edits in THIS PR:
charly/tasks_test.go: theEmitDownloadmount-form assertions updatedto the corrected contract (uid1000-owned for the non-root
testResolvedBox), plus the newTestEmitDownload_DownloadsCacheRootShared(root stage keeps the shared mount, no uid-scoped id).
CHANGELOG/2026.201.1238.md: placeholder entry.sdkgitlink +go.modrequire bump tothe merged sdk commit — appended to this branch per B2.
Change class
cross-repo — consumer leg. Order: opencharly/sdk#79 FIRST → this PR
(gitlink bump before validation).
How R10-tested — exact gate, commands, and pasted output
go test ./...+go vet+golangci-lint+task build:binary+ content marker) + thelive build proof (below).
N/A — the proof is the live image build; no disposable bed exercises a mount-form emission change beyond a full build.task build:binaryrebuilt;go tool nm bin/charly | grep taskRunsAsRootpresent.openclaw-full(theimage whose claude.ai download previously curl-23'd) builds past the
download step with a root-owned shared cache present on the host.
state; the fix isolates per uid instead of sharing one root-owned backing.
Attribution tier
analysed on a live system — the changed emission executed live in a real
build; no disposable-bed roster applies.
Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)git-workflow+goloaded by path; B2 order.dismissed as flake.
TaskCacheMounts) fixed in the sdk leg.taskRunsAsRoot).stages.
(unit tests + live build).
N/A.
lives in sdk deploykit.
CHANGELOG/2026.201.1238.mdstaged (placeholder — thepr-validator finalizes it at merge).
Assisted-by: Kimi Code (Moonshot K3; analysed on a live system)