Skip to content

chore(deps): spec v0.2026330.2134 (content-addressed candy staging) - #1293

Merged
github-actions[bot] merged 3 commits into
mainfrom
chore/bump-spec-content-staging
Nov 26, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
chore/bump-spec-content-staging

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Advance the spec requirement from v0.2026329.803 to v0.2026330.2134, the tag carrying
CandyStageDirName's content addressing (opencharly/spec#444, merged 2026-11-26T21:34:49Z).

The staging directory is now named <candy>.<sha256[:16]> over the candy's content (paths,
executable bit, bytes) instead of <candy>.<version>, so a ref-only change reuses the same
Containerfile COPY source rather than invalidating the layers beneath it.

Head: f6ff93c962d7fa359acc531c7d59868ecf1f2007
Diff: 8 files changed, 12 insertions(+), 14 deletions(-)

  • charly/go.mod, charly/go.sum — the charly module
  • tools/golden-compile, tools/golden-cloudinit, tools/generate-packages (go.mod + go.sum) —
    the same pin, because tools/gomod-canonical requires every module in this repo to share it

(The head carries a merge of main, from gh pr update-branch — a sync, not a review-round fix.)

How tested

$ GOWORK=off go build ./...        # in charly/charly, on the new requirement
rc=0

$ charly/scripts/bootstrap-charly.sh
bootstrap-charly: built ./bin/charly (2026.330.2135)
$ bin/charly version
2026.330.2135

$ charly -C distro-cachyos box build openwebui --tag contentstaging-2135
rc=0
$ grep -oE '\.build/_candy/openwebui\.[A-Za-z0-9._-]+' distro-cachyos/.build/openwebui/Containerfile
.build/_candy/openwebui.3dcd95a9ec44e5eb        ← the CONTENT hash, not .v2026.326.1709

$ podman run --rm --entrypoint pixi ghcr.io/opencharly/openwebui:contentstaging-2135 --version
pixi 0.84.2

The staging name is the change's own witness, measured in a real build through the rebuilt binary.

The layer-hit measurement, and what actually blocked it

The intended end-to-end number — two builds of identical content, expecting a layer hit — did not
materialise, and the cause is not the candy ref:

build A (contentstaging-2135)     FROM …/arch-builder:2026.330.2035   wall=869 s
build B (identical tree, same candy content) FROM …/arch-builder:2026.330.2152   wall=758 s

The BASE builder is rebuilt under a fresh CalVer tag on nearly every build (four tags in 100
minutes), and the FROM resolves the newest, so every layer above it re-executes regardless of the
candy staging name. Filed as opencharly/charly#1292. So the honest claim for this pin is: the
candy COPY source is content-addressed (proved above), and its layer reuse is gated behind #1292
having a stable base ref.

Spike

Candidate Run + result
A — keep spec v0.2026329.803 (version-keyed staging) the status quo: the COPY source changes with every ref (measured earlier: 2400 s cold → 90 s same tree → 683 s new ref)
B — spec v0.2026330.2134 (winner) the staging name above (.3dcd95a9ec44e5eb); the spec PR carries the witnesses that fail without it

Rulebook compliance

  • R0 — /charly-internals:go, /charly-build:build and /charly-internals:git-workflow loaded.
  • R1 — the base-ref churn this uncovered is filed as charly#1292; the pixi cache behaviour as
    charly#1289.
  • R2 — one dependency bump, applied to every module that shares the pin (the canonical-pin gate
    enforces it).
  • R3 — no workaround; the pin names the merged tag.
  • R4 — no documented command changes.
  • R5 — the old requirement line is gone.
  • R6 — branch off fresh origin/main; no force-push; the unrelated box/* gitlink dirt is not
    staged.
  • R7 — the staging name is pasted from a real build through the rebuilt binary.
  • R8 — no service boundary involved.
  • R9 — bin/charly rebuilt from this source reports 2026.330.2135.
  • R10 — the dependency bump's gate is go build on the new requirement plus the live build above.
  • R11 — no shape change.
  • R12 — both candidates carry their run or their measured rejection above.
  • DISP — no deploy or destroy.

Change classification

No breaking change. The dependency moves to the tag of the merged contract change; the binary
behaves as before except for the staging-directory NAME (a first build after the change re-executes the
layers once).

Breaking change + rollback: none — reverting the requirement restores the old staging name.

Filed issues

Agent: cdi-audit · Claude Code session f760307f-53b4-4f48-87da-00f95e5300ed
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

Advance the contract module to the tag carrying CandyStageDirName's content
addressing (opencharly/spec#444): a candy's build staging directory is now
named by its content, so a ref-only change reuses the same COPY source instead
of invalidating the layers beneath it.

`GOWORK=off go build ./...` passes on the new requirement; the end-to-end
two-ref build measurement is the next leg.

Agent: cdi-audit · Claude Code session f760307f-53b4-4f48-87da-00f95e5300ed
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: e90ddac7df0bb91d6bcef667dc2d7915b980425a (branch: chore/bump-spec-content-staging)

Change class: dependency pin (code/config) — charly/go.mod + charly/go.sum only; no runtime logic, docs, or security machinery touched.

Security screen: PASS — no secrets, no exfiltration, no guardrail/validator/rulebook edits, no scope mismatch; diff matches the body's stated spec v0.2026329.803 → v0.2026330.2134 pin exactly (go.sum drops the stale .1115/.803 sums, adds .2134).

Checklist: All applicable rules PASS or NA. Key verifications:

  • A1/A2/A3 — body supplies Summary, pasted How-tested output (fresh bootstrap-charly build 2026.330.2135, matching charly version, real box build, grepped content-addressed staging .3dcd95a9ec44e5eb), and a conservative analysed on a live system tier consistent with the changed path executing live.
  • R1/CONC — the base-builder CalVer churn that blocked the layer-hit number is honestly disclosed and filed as a real issue (opencharly/charly#1292), plus #1289; no "pre-existing/flake" dodge.
  • R5/R7/R10 — old requirement line gone; the live grep (content hash vs old .v… form) is a witness that fails without the pin; fresh-rebuild evidence present.
  • R12 — spike-equivalent satisfied by the pasted live build at the exact boundary (staging name), plus a two-candidate spike block naming the implemented winner.
  • R9/DISP/R11/QUAL/COORD — binary/source version match, no deploy/destroy, no shape change, clean pin, well-formed Agent: + Assisted-by: footers.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Auto-merge was NOT armed for head e90ddac7df0bb91d6bcef667dc2d7915b980425a.

Class: 1 — at least one check run on this head did not pass. Fix it and push; auto-merge arms on the next PASS.

This is reported as a comment because a failing validate / arm check run would make the
pull request permanently unstable and block every later arming attempt
(opencharly/.github#313). The arm job therefore reports success and this comment is its alarm.

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)

The canonical-pin gate (tools/gomod-canonical) requires every module in this
repo to require the same spec version. The charly module moved to
v0.2026330.2134; bump the three tools modules to it as well, and re-tidy.

Agent: cdi-audit · Claude Code session f760307f-53b4-4f48-87da-00f95e5300ed
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: f6ff93c962d7fa359acc531c7d59868ecf1f2007 (branch: chore/bump-spec-content-staging)

Change class: dependency pin (code/config) — 8 files: charly/go.mod|go.sum + the three tools/* modules, all moved to the same spec v0.2026330.2134 pin (required by tools/gomod-canonical). Diff matches the body's stated 12+/14- exactly; no code, docs, or security machinery touched.

Security screen: PASS — no secrets/exfiltration, no guardrail/validator/rulebook edits, no scope mismatch, no supply-chain surprise (org-owned module, hash consistent across all four go.sum files, unchanged /go.mod hash).

Checklist: All applicable rules PASS or NA. Key derivations: A1/A3 — body supplies Summary, pasted How-tested (fresh bootstrap-charly build 2026.330.2135 = charly version; real box build; grep showing content-addressed staging .3dcd95a9ec44e5eb), a conservative analysed on a live system tier (not inflated), and a ### Spike block naming two candidates with the implemented winner. R1/CONC — the unfilled layer-hit number is honestly root-caused (base-builder CalVer churn) and filed as charly#1292, plus #1289; no forbidden dodge. R5/R9/R10 — old requirement line gone; binary=source; live build at the exact boundary is the witness. R11 — no charly shape change (mechanism lives in spec#444). placement: CORRECT (no code moved; dependency pin only).

Comments considered:

  • 7204414272 (PASS) — stale-superseded: reviewed head e90ddac (2 files); current head f6ff93c has 8 files, all accounted for in the body, so its "go.mod + go.sum only" scope claim no longer matches. Its substantive content-addressing reasoning still holds.
  • 7204480566 (arm-unarmed) — stale-superseded: reports on old head e90ddac; CI/arming status is not a review gate (ground rule 5).

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 26, 2026 22:33
@github-actions
github-actions Bot merged commit 6fe5d75 into main Nov 26, 2026
5 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 26, 2026
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