Skip to content

feat(deps): re-pin plugin-build v0.2026266.1755 + plugin-clean v0.2026266.2221 - #640

Merged
github-actions[bot] merged 3 commits into
mainfrom
fix/charly-gh-gaps
Sep 24, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
fix/charly-gh-gaps

Conversation

@aitrawog

@aitrawog aitrawog commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adopt the two merged plugin tags of the cache-consolidation cutover, so the charly binary ships them:

  • plugin-build → v0.2026266.1755: the resolved-project cache folded onto the shared spec/cache ArtifactStore (the bespoke project.json map file + its evictor deleted — hard cutover).
  • plugin-clean → v0.2026266.2221: the new cache retention category (charly clean --cache, the CAS ArtifactStore GC).

Both are additive/behavior-preserving for charly: plugin-build's cache change keeps the same content-addressed key + fail-closed contract (only the storage shape moves to the OCI layout); plugin-clean's category is opt-in-only (a plain charly clean is unchanged). plugins_generated.go is name-only (no version pins), so no regeneration is needed.

The plugin bump raises the shared spec pin in charly/go.mod (v0.2026266.1306 → v0.2026266.2126, pulled transitively by plugin-clean). charly/go.mod is the single in-tree anchor for the shared spec pin, so the three lockstep tools/* modules that also require a contract module (tools/generate-packages, tools/golden-cloudinit, tools/golden-compile) have their spec require raised to the same v0.2026266.2126 via task mods:tidy — the documented remedy for TestContractPinsMatchShared, which fails on any lagging lockstep module.

How tested

Pin + build, real output:

$ grep -E "/candy/plugin-(build|clean) " charly/go.mod
	github.com/opencharly/plugin-build/candy/plugin-build v0.2026266.1755
	github.com/opencharly/plugin-clean/candy/plugin-clean v0.2026266.2221

$ GOWORK=off go build -buildvcs=false -o /tmp/charly-repin .
(no output — exit 0)

$ go version -m /tmp/charly-repin | grep -E 'plugin-(build|clean)/candy'
	dep	github.com/opencharly/plugin-build/candy/plugin-build	v0.2026266.1755	h1:L1ozCKUAI1HmfsOFCMkLZQyY4vWpWqEg8ke49FCmxeg=
	dep	github.com/opencharly/plugin-clean/candy/plugin-clean	v0.2026266.2221	h1:kAzG3DYccXJs00Dejh+qsowPCfIIEIWtHk4Zx+TsRT4=

Lockstep-module sweep (the fix for the CI go job), real output:

$ task mods:tidy
shared pins: sdk=v0.2026266.1111 spec=v0.2026266.2126
aligned and tidied 3 modules

$ cd tools/gomod-canonical && GOWORK=off go test ./...
ok  	github.com/opencharly/charly/tools/gomod-canonical	0.008s

(The prior CI go job failed only on TestContractPinsMatchShared: tools/generate-packages, tools/golden-cloudinit, tools/golden-compile still required spec v0.2026266.1306 while the anchor had moved to v0.2026266.2126.)

The charly binary builds green and provably contains the re-pinned plugin versions (module buildinfo).

Runtime exercise of BOTH re-pinned behaviors against the rebuilt binary (not just a compile/containment check — the changed plugin code executed live):

plugin-build's resolved-project cache now lives in the shared spec/cache ArtifactStore (the OCI layout), where the bespoke project.json map file used to sit. charly box list boxes on a fixture project materialized the new layout and then served it warm:

$ charly box list boxes          # cold
... "plugin plugin-example-kind: served from ..." ... exit 0
$ find ~/.config/charly/cache/project
~/.config/charly/cache/project/.lock
~/.config/charly/cache/project/blobs/sha256/<3 blobs>
~/.config/charly/cache/project/oci-layout
~/.config/charly/cache/project/index.json
$ head -c 120 ~/.config/charly/cache/project/index.json
{"schemaVersion":2,"mediaType":"application/vnd.oci.image.index.v1+json","manifests":[... "ai.opencharly.cache.key": "<project-dir>| ...

$ charly box list boxes          # warm — no "first run"/"resolving project" line; exit 0

plugin-clean's new cache retention category enumerates every named ArtifactStore layout — including project (the one plugin-build just wrote) and gh-http:

$ charly clean --cache
cache gh-http: 6 live entry(ies); removed 0 unreferenced blob(s) (0 B)
cache images: 1 live entry(ies); removed 0 unreferenced blob(s) (0 B)
cache labels: 6 live entry(ies); removed 0 unreferenced blob(s) (0 B)
cache materialized: 21 live entry(ies); removed 0 unreferenced blob(s) (0 B)
cache probes: 1 live entry(ies); removed 0 unreferenced blob(s) (0 B)
cache project: 1 live entry(ies); removed 0 unreferenced blob(s) (0 B)
cache submodules: 434 live entry(ies); removed 48 unreferenced blob(s) (16.3 KiB)
(exit 0)

This PR's change class is a dependency pin whose adopted plugin behaviors were exercised live against the rebuilt binary; full R10 beds for those behaviors live with their own PRs (plugin-build#15: pbuild-cache-r10; plugin-clean#6: its live run).

Rulebook compliance

  • R0 — loaded /charly-internals:git-workflow, /charly-internals:go.
  • R1 — the pins were behind the merged tags; the bump adopts them. The surfaced TestContractPinsMatchShared failure was RCA'd to the anchor move and fixed via the documented task mods:tidy sweep, not a hand-edit.
  • R2 — the whole re-pin plus the lockstep alignment are here.
  • R3 — the plugins are the single implementations; charly consumes them by pin; the tools modules share one pin via the sweep (no duplicating pin edits).
  • R4 — no workaround.
  • R5 — the stale pins are the only change.
  • R6 — fix/charly-gh-gaps off origin/main; no force-push.
  • R7 / R7a — build green against the adopted tags; the lockstep contract test green; both re-pinned behaviors exercised live against the rebuilt binary (pasted).
  • R8 / R9 — dependency-pin change; no label/runtime dependency change.
  • R10 — the consuming build green, the lockstep-pin contract test green, and the adopted plugin runtime paths executed live against the rebuilt binary (pasted above); the behavioral R10 beds are the plugins' own (pbuild-cache-r10; plugin-clean's live run).

Change classification

  • Change class: Go module dependency pin (charly consuming merged plugin tags) + lockstep tools/* spec-pin alignment.
  • Verification gate: go build of the charly binary against the adopted tags + module-buildinfo confirmation + tools/gomod-canonical TestContractPinsMatchShared green + both re-pinned plugin behaviors exercised live against the rebuilt binary.
  • Attribution tier: analysed on a live system — both adopted runtime paths (plugin-build's project ArtifactStore cache, plugin-clean's cache category) ran live against the rebuilt binary with retained output; the plugins' own full R10 beds were not re-run in this repo.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

…6266.2221

Adopt the merged plugin tags of the cache-consolidation cutover:
- plugin-build: the resolved-project cache folded onto the spec ArtifactStore
  (bespoke project.json + its evictor deleted).
- plugin-clean: the `cache` retention category (CAS ArtifactStore GC).

Both are additive/behavior-preserving for charly; the charly binary builds green
against them.
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 4ad7d866591152fb2c24e2d1712f86fcf27a3d37 (branch: fix/charly-gh-gaps)

Change class: Go module dependency re-pin (config: charly/go.mod + charly/go.sum).

Security screen: no finding (org-internal plugin/spec pins; no secrets, no exfil, no guardrail/supply-chain tampering).

Blocks

  1. A1 / T3 — body does not account for the spec bump (description↔code mismatch). The diff changes three pins, not two: alongside plugin-build and plugin-clean, charly/go.mod (2nd hunk, github.com/opencharly/spec) moves v0.2026266.1306 → v0.2026266.2126 (with the matching go.sum h1 swap). The Summary only lists "the two merged plugin tags", and the body's own compliance claim "R5 — the stale pins are the only change" plus its grep (grep -E "/candy/plugin-(build|clean) ") never mention spec. The body's spec/cache ArtifactStore reference implies the spec bump is intended, but it is never stated, named, or covered by the pasted proof. Account for the spec change explicitly (what it carries, why it is required by the plugin-build pin, and the matching go.sum verification), or drop it.

  2. A3 — inflated attribution tier. The footer claims fully tested and validated, which per A3 requires the cutover's NEW/CHANGED code paths to have executed against the fresh rebuild. The only pasted evidence is a go build + go version -m (module buildinfo); the body itself states "Runtime proof of the two re-pinned behaviors lives with their own PRs" — i.e. the changed plugin behavior never ran here. A build that never executes the changed path is not fully tested and validated; lower the tier to what the build actually proves.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 8e683617fedf96762ed341f10bf78f6e7bfd607a (branch: fix/charly-gh-gaps)

Change class: Go module dependency re-pin — charly/go.mod/go.sum (plugin-build, plugin-clean, spec) plus three lockstep tools/* spec-pin alignments. 8 files, all version pins / checksum lines; no source code changes.

Security screen: no finding (org-internal plugin/spec pins; no secrets, egress, or guardrail/supply-chain tampering).

Blocks

  1. A3 — inflated attribution tier. The footer claims fully tested and validated, but A3 reserves that tier for a change whose NEW/CHANGED code paths executed against the fresh rebuild. The pasted evidence is only go build + go version -m (module buildinfo) + TestContractPinsMatchShared — a compile/containment check, not execution of the re-pinned behavior that is this PR's entire point (plugin-build's spec/cache ArtifactStore resolved-project cache; plugin-clean's cache retention category). The body concedes the gap verbatim: "Runtime proof of the two re-pinned behaviors lives with their own PRs." No bed was run against the rebuilt charly, so the changed path never ran live here; the honest ceiling is analysed on a live system. Either lower the tier to what the build actually proves, or run the adopted behavior against the rebuilt binary and paste the output (this is the same defect as the A2 gate question: a re-pin adopts runtime plugin code, and a build that never exercises it does not validate it).

Comment dispositions

  • Comment 5804794984, finding 1 (spec bump unaccounted) — stale-superseded. The CURRENT body's Summary (¶3) and How tested explicitly account for github.com/opencharly/spec v0.2026266.1306 → v0.2026266.2126 and the three lockstep tools/* modules via task mods:tidy; the diff matches (3 tools/* go.mod+go.sum pairs). Does not reproduce.
  • Comment 5804794984, finding 2 (A3 tier) — verified-blocking. Re-derived against the CURRENT body: the footer still claims fully tested and validated and the body still states the runtime behavior was not run here. Reproduces as Block 1.

Note (non-blocking): two non-changelog commits (4ad7d86, 8e68361) — the intended squash will collapse them; no partial/split scope remains in the final tree.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: b8115a00244d222bb89e5d2ccd5a710add6f518f (branch: fix/charly-gh-gaps)

Change class: Go module dependency re-pin (config) — charly/go.mod/go.sum (plugin-build, plugin-clean, spec) plus three lockstep tools/* spec-pin alignments; 8 files, all version/checksum lines, no source.

Security screen: PASS — org-internal github.com/opencharly/{plugin-build,plugin-clean,spec} pins only; no new external deps, no secrets/egress, no CI/guardrail edits. go.sum h1 values match the body's go version -m output (L1ozCKUA…, kAzG3DYc…).

Checklist: All applicable rules PASS or NA. A1 body accounts for every diff item (Summary ¶3 covers the spec v0.2026266.1306→v0.2026266.2126 bump + the three tools/* modules; mods:tidy output sdk=…1111 spec=…2126 / aligned and tidied 3 modules is internally consistent); footer ends with the AI Assisted-by: line. A3 tier analysed on a live system is honest (not inflated). B16 placement CORRECT (consumer re-pin; capability stays in the plugin candies). B13/B18/B17/B12-extra: NA (no candy/schema/Go source/OS-dep changes; no autonomous target destroy).

Comment dispositions:

  • 5804794984 finding 1 (spec bump unaccounted) — stale-superseded: current body ¶3 explicitly accounts for the spec pin and the three lockstep tools/* modules.
  • 5804794984 finding 2 (A3 tier claimed fully tested and validated) — stale-superseded: current footer is analysed on a live system.
  • 5804922204 Block 1 (A3 inflated tier) — stale-superseded: re-frozen body (commit b8115a00) lowers the tier and pastes live runtime exercise of both re-pinned behaviors against the rebuilt binary; its own disposition of 5804794984 finding 1 was correct.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 24, 2026 00:08
@github-actions
github-actions Bot merged commit f9c639a into main Sep 24, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 24, 2026
@aitrawog
aitrawog deleted the fix/charly-gh-gaps branch September 25, 2026 19:06
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