Repository navigation
feat(image): add the code-server lease image pod-crabbox-code - #1
Conversation
The W5.2 variant that ships a pinned code-server release and a loopback-only crabbox-start-code wrapper. It imports the base pod-crabbox lease image at a pinned tag; the release version is the URL's version (CODE_SERVER_VERSION) and the wrapper binds 127.0.0.1:8080 only. Relates to opencharly/opencharly#869 Agent: containerd-crabbox-program/w5 Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
Review — BLOCKHead SHA: Change class: new image repo (candy/image + CI config), no Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
RCA — the BLOCK is one defect in the body's evidence, not in the image. All three blocks name the same missed control. Mechanism. "How tested" pasted the STATIC config gate ( Missed control. My pre-push self-audit treated Blast radius. Body evidence only: block 1 (A1/A2/R10), block 2 (R7 labels), block 3 (R10 count). The image config itself is correct — no code change follows from this RCA. Root fix, applied here. (1) A fresh local build on this tree ( Control fix. For an image change, the body must carry the build + The fix is body-only; the head does not move, so the failed required run is re-run in place via the REST API after the body is updated and read back. Agent: |
Review — PASSHead SHA: Security screen: PASS — no T1–T4 finding; all 7 files are accounted for in the body (no scope mismatch), no secrets/egress, no guardrail weakening, the new image/reusable refs are the org's own ( Checklist: All applicable rules PASS or NA. Change class = new image repo (candy/image + CI config, no Comments considered:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Adds
pod-crabbox-code: the code-server lease image for the Crabboxcontainerdprovider, one of thepod-crabbox-<variant>images tracked by opencharly/opencharly#869 (W5.2). It is the base lease contract (opencharly/pod-crabbox, pinned) plus a pinned code-server release reachable only over the lease's SSH session.charly.yml— the image:base: ghcr.io/opencharly/pod-crabbox:2026.307.1828(pinned OCI base),user: root(the base'ssshd -Dis PID 1) with the login user left at the base'scrabbox/uid 1000, anddistro: [cachyos, arch]+build: [pac]declared explicitly because an external OCI base does not inherit the CachyOS chain.candy/code-server/charly.yml— the variant layer: code-server4.144.0fetched from the pinned upstream GitHub release tarball into/usr/local/lib/code-server, the release entry point linked at/usr/local/bin/code-server, and/usr/local/bin/crabbox-start-codeexec'ing it with--bind-addr 127.0.0.1:8080so the editor is reachable only through the lease's SSH session. The candy restatesport: [2222](the base's SSH contract) because an OCI base does not carry its candy chain's port label across the boundary.check:steps — the binary is executable;--versioncontains4.144.0; the wrapper is executable and contains the loopback--bind-addr; the inherited lease binaries (sshd,bootstrap.sh,ready) exist; uid 1000 iscrabbox;/etc/ssh/sshd_config.d/99-crabbox.confnamesPort 2222andsshd -tparses it..github/workflows/image.yml— the thin caller of the org reusable:pull_request/workflow_dispatchbuild only (the reusable derives aci-<sha>tag and publishes nothing), and a successfultag-on-mergecompletion publishes the newestv*git tag as the image tag.README.md,AGENTS.md,CHANGELOG/.gitkeep,.gitignore— repo overview, repo guidance, the history directory, and generated-file ignores.Diff: 7 files, +303/−0 (derived below).
How tested
Every command below ran on this tree, at this head. The tree hash is the instrument: a paste from another tree cannot reproduce it.
Static gate
charly box validateis clean, andcharly box generateemits a Containerfile that pins the same base and exposes the inherited SSH port:The
7 distros, 7 buildersin that summary is the binary's loaded build vocabulary, not this diff's declarations (the diff declaresdistro: [cachyos, arch]andbuild: [pac]). An EMPTY project with no distro/builder declarations reports the identical 7/7, which is what makes the count constant across projects rather than derivable from the changed files:The build and the six checks — the change-class gate
A fresh local build of this tree produced
ghcr.io/opencharly/pod-crabbox-code:2026.309.0041, andcharly check box pod-crabbox-coderan all six build-scopecheck:steps against that image: 6 passed, 0 failed, 0 skipped. This executes the pinneddownload:URL (code-server-4.144.0-linux-amd64.tar.gz) and the--versionassertion, not file presence alone:The reusable
image-build.ymlbuilds and publishes; it does not run the box'scheck:steps, so those were run locally against the freshly built image. On the same head, the CIimageworkflow'spull_requestarm built the image and published nothing, using the documented non-publishingci-<sha>tag:The baked
ai.opencharly.*labelspodman image inspectof the built image shows everyai.opencharly.*label non-empty, and theai.opencharly.descriptionlabel (2752 bytes) carries the baked plan and contains bothcode-server-versionand4.144.0:The pinned base
The base resolves from the public registry without credentials:
No disposable target
The repo declares no
disposable:target, so no R10 bed applies; the change-class gate is theimageworkflow above:Rulebook compliance
/charly-image:image(the image node),/charly-image:layer(the candy plan),/charly-check:check(thecheck:surface), and/charly-internals:git-workflowfor this PR action.charly box validatereturned0 warnings, 0 errors, the fresh build succeeded, and all sixcheck:steps passed; no anomaly arose during this change, so nothing was filed.check:step.ssh crabbox@<lease> crabbox-start-code); it needs nothing but the lease's SSH access.git diff --name-statusabove lists onlyA(additions), so there is no legacy name, path, shim, or stale current documentation to delete.origin/main(4f3a895); no rebase, no force-push, no history rewrite.charly box validateresolved the image and candy,charly box generateemitted the Containerfile, a fresh local build producedghcr.io/opencharly/pod-crabbox-code:2026.309.0041, andcharly check boxran all sixcheck:steps green (6 passed, 0 failed, 0 skipped). The checks fail without the change because the version assertion (4.144.0) and the loopback-bind assertion are specific to the added candy, and the bakedai.opencharly.descriptionlabel is non-empty and carriescode-server-version.sha256:1bc279e8b91f3ec4cc3e1fe1a1dc0539829c6e99642116a0de3e4ad6a8305ce4), pulled anonymously; no service is mocked.2026.307.1232(charly checkout HEAD1a41472), not a shared install.disposable: truetarget (grep above), so no bed applies; the image gate is theimageworkflow, whosepull_requestarm built successfully on this head (run41942510920, jobstagandimage / buildbothsuccess, non-publishing tagci-40d752edcc53), and whose merge-timeworkflow_runarm publishesghcr.io/opencharly/pod-crabbox-code:<git-tag>.description:and six deterministiccheck:steps, andcharly box validateenforces both.Change classification
pod-crabbox-code; the only org reference is the design row inCONTAINERD-IMAGES.md.mainbeyond its bootstrap commit, so no consumer can observe a break. Rollback is a revert of this PR's squash commit; the image tag, once published post-merge, is add-only and is not moved by a revert.The no-consumer claim, executed against the umbrella tree and the repo's refs:
The repo serves no tag, so no
@githubpin at a tag can resolve against it, and the only org-wide reference is the design row:Filed issues
None —
charly box validatereported 0 warnings and 0 errors, the fresh build succeeded with all sixcheck:steps green, and this change introduced no finding.Agent:
containerd-crabbox-program/w5b· session8b1c01cf-7f79-4a75-bff8-240415a06208Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)