Repository navigation
feat(cache): charly cache status|clear|refresh + the --no-git-cache bypass - #539
Conversation
…ate (the R10 change-class switch)
…ypass (the git-ref cache operator surface)
…— the cache verbs need CacheStatus/ClearCache/BypassCache)
…ugin-check/sdk/spec → /home/atrawog/...) — they break the CI go gate on ubuntu-latest; the modules resolve from the proxy at the pinned require versions (go build clean)
…refresh CLI surface over the core git-ref cache (same M class as cli_model_cmd.go/plugin_cmd.go); fixes the KERNEL_MANIFEST.md gate in TestKernelManifestBidirectional
Review — BLOCKHead SHA: Change class: code/config — new Go CLI surface ( Security screen: PASS — no T1–T4 findings. No secrets/exfiltration, no scope mismatch, no weakened guardrails, no unexpected supply-chain targets (the Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
… plugin-cache command candy (R5) — delete cache_cmd.go + the Cache CLI field + the --no-git-cache flag; the singleton honors the PERSISTED bypass (spec/refs SetBypass, spec #95); plugin-cache wired as a compiled-in command plugin (compiled_plugins + go.mod pin + regenerated plugins_generated.go); KERNEL_MANIFEST.md drops the cache_cmd.go row
|
I've gathered the current state. Let me analyze the diff, commits, body, and the prior review comment. Reconciling head SHA: The task prompt says head Diff analysis: The current diff is a dependency-wiring change: adds Prior review disposition (the only comment, github-actions BLOCK against head
Current-state verification:
No blocking findings survive against the current state. Review — PASSHead SHA: Security screen: PASS Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no T1–T4 findings. No secrets/exfiltration, no scope mismatch (body's description matches the diff exactly), no weakened guardrails, no supply-chain redirect (new Checklist: All applicable rules PASS or NA. Prior-comment dispositions:
Current-state verification: dependency-wiring change (compiled_plugins + go.mod/go.sum pins + regenerated Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Change class: code/config — dependency wiring (adds Security screen: PASS — no T1–T4 findings. No secrets/exfiltration, no scope mismatch (body's description matches the diff exactly), no weakened guardrails, no supply-chain redirect (new Checklist: All applicable rules PASS or NA. Prior-comment dispositions:
Current-state verification: R5 hard cutover holds — no residual Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
The git-ref cache operator surface, migrated OUT of core into a command plugin (the architecture-gap fix: a command for a plugin never lives in core):
charly cachecommand is now the plugin-cache command candy (opencharly/plugin-cache, compiled-in + external dual placement):charly cache status|clear|refresh|bypass. The plugin operates on the git-ref cache DIRECTLY through spec/refs (the established plugin pattern — plugin-box/doctor/loader all import spec/refs): the cache lives in the per-host charly.ymlcache:section, shared on-disk state.refs.GitClient.SetBypass):charly cache bypasswritesbypass: trueinto the cache: git: section; a fresh core process honors it at construction. The--no-git-cacheglobal flag is DELETED (R5) — the bypass is plugin-owned state.cache_cmd.go+ theCacheCLI field + theNoGitCacheflag are deleted;git_client.go's singleton honors the persisted bypass.plugin-cacheis wired as a compiled-in command plugin (compiled_plugins:+ go.mod pin + regeneratedplugins_generated.go).How tested
The plugin-cache candy's own CLI was exercised live (status/bypass/--off/clear against the real per-host config). The spec #95 SetBypass mechanism is unit-tested (
TestGitClientSetBypassPersists— a fresh client honors the persisted bypass).Rulebook compliance
Change classification: feature (eval-tooling-adjacent operator surface, migrated to a command plugin). Tier: analysed on a live system (the changed paths — the plugin command + the persisted bypass — ran live against the real per-host config; the full-gate bed run is the plugin-cache R10).
Assisted-by: pi ollama-cloud/deepseek-v4-flash:0731 (analysed on a live system)