Skip to content

docs(skills): a refreshed marketplace is not an updated plugin (the cache is commit-keyed) - #427

Merged
github-actions[bot] merged 1 commit into
mainfrom
docs/skills-plugin-cache-is-commit-keyed
Aug 28, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
docs/skills-plugin-cache-is-commit-keyed

Conversation

@atrawog

@atrawog atrawog commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the delivery-audit section added in #425, written from verifying
that chain end to end.

After opencharly/marketplace#234 merged and the local marketplace was refreshed,
a fresh session still failed to start plugin:charly-internals:github — the
very server the chain had just removed. The marketplace clone was correct and
carried no internals/.mcp.json; the installed plugin was still resolving an
older commit-keyed cache entry that did.

The corpus is cached per marketplace commit under
~/.claude/plugins/cache/<marketplace>/<plugin>/<sha>/, and
claude plugin marketplace update refreshes only the clone. The plugin itself
must be moved with claude plugin update <plugin>@<marketplace> --scope project,
which reports the commit pair it moved between — that line, not a refreshed
clone, is the evidence a session will see the change. The flag matters: --scope
defaults to user and fails outright on a project-scoped plugin.

This is the same class of defect the section already documents — a valid corpus
that never reaches the agent — reached by a different route, so it lands beside
it rather than in a new skill (R3).

How tested

The failure this documents was observed live, after the full removal chain
had merged and the marketplace had been refreshed:

$ claude plugin marketplace update charly-plugins
✔ Successfully updated marketplace: charly-plugins

$ ls ~/.claude/plugins/marketplaces/charly-plugins/internals/.mcp.json
ls: cannot access '…': No such file or directory        # clone is correct

$ claude -p "list every MCP server that failed to connect or was skipped"
plugin:charly-internals:github                          # still failing

Root cause confirmed in the cache — two stale commit-keyed copies, both
carrying the removed file:

$ ls ~/.claude/plugins/cache/charly-plugins/charly-internals/
7072e53a9d92    cb1c031b3eed
$ # .mcp.json present in BOTH

The documented fix works, and names the commits it moves between:

$ claude plugin update charly-internals@charly-plugins --scope project
✔ Plugin "charly-internals" updated from 7072e53a9d92 to 9ded51f3e2d1 for scope project

$ ls ~/.claude/plugins/cache/charly-plugins/charly-internals/9ded51f3e2d1/.mcp.json
ls: cannot access '…': No such file or directory

The --scope caveat is real, not inferred — the default fails:

$ claude plugin update charly-internals@charly-plugins
Checking for updates … at user scope…
✘ Failed to update plugin: Plugin "charly-internals" is not installed at scope user

Verified fixed in a fresh session — zero plugin MCP failures, skills intact:

$ claude -p "(1) COUNT of skills whose name contains ':' (2) every plugin: MCP server that failed or was skipped"
(1) 29
(2) NONE

The drift gate is live for this change — negative control first. Run against
the edited source before regenerating, it fails; after task skills:sync, it
passes on the committed tree:

$ task skills:drift          # source edited, corpus not yet regenerated
skills: marketplace drift failed (see above).
exit=1

$ task skills:sync && task skills:drift
marketplace drift: clean (405 artifact(s) on disk match their sources; regeneration is a no-op)
skills: no drift.
exit=0

Single-file source change; harness surface untouched:

$ git status --short
 M candy/charly-internals/charly.yml
 1 file changed, 18 insertions(+)

Rulebook compliance

  • R1 — RCA every anomaly. The residual failure after a "completed" chain was
    root-caused to the commit-keyed cache rather than dismissed as staleness or
    retried blindly; the finding is fed back into the owning skill.
  • R3 — No duplication. Lands in the existing delivery-audit section of the
    skills skill, not a second skill covering the same class.
  • R4 — No workarounds. Documents the supported plugin update path; no cache
    directory was hand-deleted to force the result.
  • R5 — Delete legacy completely. Pure addition; no superseded wording left.
  • R6 — Git safety. gh pr list preflight; docs/ branch; no force-push, no
    hook bypass, no direct push to main. The pre-commit gate refused a compound
    command it could not tokenize and the commit was reformulated as
    git commit -F <file>, as the gate instructs — never bypassed.
  • R7 / R10 — Prove the gate, not the plan. task skills:drift on the final
    committed tree, preceded by a negative control showing it actually fails when
    the corpus is stale.
  • SDD. Source-of-truth edit in the candy's skill: entity; the generated
    SKILL.md is a projection and was never hand-edited.

Change classification

Field Value
Change class skill content — candy/charly-internals skill: entity
Blast radius one skill's markdown; no Go, no schema, no harness surface
Verification gate task skills:drift (regeneration is a no-op) on the final tree, with a negative control
Attribution tier fully tested and validated — the gate passed on the committed tree, and every command documented in the new text was executed live with its real output pasted above

Follow-up (sequenced, not deferred)

opencharly/marketplace regenerates from its own pinned charly, so the corpus
artifact for this text lands there once this merges and charly tags — the same
ordering used by #425 → #426 → marketplace#234.

Assisted-by: Claude Code anthropic/claude-opus-5[1m] (fully tested and validated)

Follow-up to the delivery-audit section added in #425, from verifying that
chain end to end.

After opencharly/marketplace#234 merged and the local marketplace was refreshed,
a fresh session STILL failed to start plugin:charly-internals:github -- the very
server the chain had removed. The marketplace clone was correct and carried no
internals/.mcp.json; the installed plugin was still resolving an older
commit-keyed cache entry that did.

The corpus is cached per marketplace COMMIT under
~/.claude/plugins/cache/<marketplace>/<plugin>/<sha>/, and
`claude plugin marketplace update` refreshes only the clone. The plugin itself
has to be moved with `claude plugin update <plugin>@<marketplace> --scope
project`, which reports the commit pair it moved between -- that line, not a
refreshed clone, is the evidence a session will see the change. The flag matters:
--scope defaults to user and fails outright on a project-scoped plugin.

This is the same class of defect the section already documents -- a valid corpus
that never reaches the agent -- reached by a different route, so it belongs
beside it rather than in a new skill.

Claude-Session: https://claude.ai/code/session_01MJWYgjRyvYkQsApe3Nvccq
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: ff9bfacf6b61 (branch: docs/skills-marketplace-cache)

Security screen: PASS — docs-only skill content; no code, secrets, network, guardrail, or supply-chain surface. No embedded directives.

Checklist: All applicable rules PASS or NA.

  • Change class: docs-only (skill skill: entity markdown in candy/charly-internals/charly.yml); no bed required, task skills:drift gate appropriate with negative control shown.
  • A1/A3: body complete, accounts for the single file (18 insertions, 1 file — matches meta), every documented command executed live with pasted output; fully tested and validated tier justified by live execution of all documented commands; footer present.
  • R1: RCA provided (commit-keyed cache) with real evidence; drift gate clean at zero warnings.
  • R2/R3/R4/R5: no duplication (lands in existing delivery-audit section), no workarounds, pure addition, follow-up routed to named marketplace sequencing.
  • SDD: source-of-truth edit in skill: entity; generated SKILL.md is a projection, never hand-edited.
  • Architecture: placement CORRECT — content belongs in the owning candy's skill; no core/sdk concern.
  • No comments on thread to adjudicate.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 28, 2026 23:01
@github-actions
github-actions Bot merged commit e11b753 into main Aug 28, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 28, 2026
github-actions Bot pushed a commit to opencharly/marketplace that referenced this pull request Aug 29, 2026
…l now reaches the corpus) (#236)

* chore(refs): bump charly to v2026.240.2301 + regenerate

Bumps the CI-time charly tag from v2026.240.2158 to v2026.240.2301 and carries
the regenerated corpus, as deploy.yml requires.

Brings in opencharly/charly#427, which extends the skills skill delivery-audit
section: the plugin corpus is cached per marketplace COMMIT, so refreshing the
marketplace clone does not move an installed plugin off its old commit. That
was observed live -- after the internals stdio github MCP server was removed and
the marketplace refreshed, a fresh session still failed to start it, because the
plugin resolved a stale commit-keyed cache entry.

Claude-Session: https://claude.ai/code/session_01MJWYgjRyvYkQsApe3Nvccq

* fix: bump the AUTHORITATIVE refs list, not just the CI tag

deploy.yml copies THIS repo's candy/charly-marketplace/charly.yml over the
cloned charly's before generating -- it is the authoritative refs list, and the
charly checkout supplies only in-repo candy dirs. Bumping the CI-time tag in
deploy.yml therefore does NOT change which candy versions the corpus is built
from; those come from this file.

That is why this PR's build failed with a 22-file drift across the whole
internals plugin: the refs list still pinned

    charly:v2026.240.0831            (predates #425/#426/#427)
    pod-charly-hooks:v2026.239.1634  (the version WITH the stdio github MCP server)

so CI regenerated internals from stale sources and recreated internals/.mcp.json
-- the very artifact the chain removed. Reproduced locally by generating with
this file instead of charly's: 23 changed paths including ?? internals/.mcp.json.

Bumps both to the versions that carry the merged work:

    charly            v2026.240.0831 -> v2026.240.2301
    pod-charly-hooks  v2026.239.1634 -> v2026.240.2141

The other six pins in this file were already newer than charly's copy and are
left alone.

Regenerating with the corrected list changes NO corpus file -- the committed
corpus already matches, so the drift gate now passes on this tree.

Claude-Session: https://claude.ai/code/session_01MJWYgjRyvYkQsApe3Nvccq

* fix: re-pin to charly v2026.240.2345 so the corpus and the refs agree

Merges main and moves both pins to the newest charly tag.

main's corpus already carries #429's git-workflow reality fix (regenerated by
#235), but main's authoritative refs list still pinned charly v2026.240.0831 and
pod-charly-hooks v2026.239.1634. A corpus generated from content newer than the
refs that are supposed to produce it is drift by definition, which is why the
build job has been failing across recent PRs -- it is not a required check, so
they merged red and the divergence kept growing.

Both pins now point at v2026.240.2345, which contains #425, #426, #427 and #429,
and pod-charly-hooks stays at v2026.240.2141 (the version without the stdio
github MCP server).

Regenerating at this pin changes NO corpus file: the committed corpus already
matches what CI will produce, so the drift gate passes.

Claude-Session: https://claude.ai/code/session_01MJWYgjRyvYkQsApe3Nvccq

* fix: pin pod-selkies-core to v2026.240.2344 and regenerate its skill

The drift gate was left with one stale artifact, selkies/skills/selkies-core/SKILL.md.

The top-level pin said v2026.239.1558, whose charly.yml still describes
chrome-wrapper polling for the wayland-0 socket. CI regenerated the newer
wording, where the service's wait_for: blocks before Chrome execs -- text that
exists only in v2026.240.2104 and later. So the version CI actually resolved was
newer than the top-level pin, reached transitively through another candy, while
a local run resolved the pinned one and reproduced the stale committed file.

Pinning the top level to v2026.240.2344 makes both resolve the same content.
Regenerating then updates the one skill, and the corpus matches what CI
produces.

Claude-Session: https://claude.ai/code/session_01MJWYgjRyvYkQsApe3Nvccq

---------

Co-authored-by: atrawog <[email protected]>
@aitrawog
aitrawog deleted the docs/skills-plugin-cache-is-commit-keyed branch September 25, 2026 19:04
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