Repository navigation
fix(skills): gate the refs list against the marketplace's authoritative copy - #430
Conversation
…ve copy candy/charly-marketplace/charly.yml exists in TWO repos with different authority, and nothing kept them in sync. The marketplace deploy workflow copies ITS copy OVER the cloned charly's before generating -- it says so in the step comment -- so that file, not this one, decides which candy versions the corpus is built from. This repo's copy is only what skills:sync / skills:drift feed the generator locally. The consequence is a gate that cannot see the defect it exists to catch. #426 bumped pod-charly-hooks to v2026.240.2141 HERE to drop the internals plugin's stdio github MCP server. skills:drift reported "no drift" because the local generation used this copy. CI kept resolving v2026.239.1634 from the marketplace's copy and regenerated internals/.mcp.json straight back, failing the marketplace build with a 22-file drift across the whole internals plugin. Reproduced locally: generating with the marketplace's refs list instead of this one yields 23 changed paths including an untracked internals/.mcp.json. Adds skills:refs, which fails when the two copies differ, and runs it before every generation in sync and drift. Equality is what makes the local gate faithful to CI, so it is now asserted rather than assumed. The error prints the diff and says where the matching change has to land. Also syncs this copy to the authoritative content: charly v2026.240.0831 -> v2026.240.2301 and pod-charly-hooks v2026.239.1634 -> v2026.240.2141, keeping the six pins the marketplace's copy already had newer. Claude-Session: https://claude.ai/code/session_01MJWYgjRyvYkQsApe3Nvccq
Review — BLOCKHead SHA: Change class: build tooling — new Security screen: PASS — the change strengthens the drift gate (asserts an invariant rather than assuming it), no secrets/exfiltration/network, no guardrail weakening, no supply-chain change beyond in-repo candy version bumps. No embedded directives aimed at the reviewer. Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Keeps this copy equal to the marketplace's authoritative copy, which moved to the newest charly tag in opencharly/marketplace#236. The new skills:refs gate asserts that equality, so the two must move together. Claude-Session: https://claude.ai/code/session_01MJWYgjRyvYkQsApe3Nvccq
Review — BLOCKHead SHA: Change class: build tooling — new Security screen: PASS — the change strengthens the drift gate (asserts an invariant rather than assuming it); no secrets/exfiltration/network, no guardrail weakening, no supply-chain change beyond in-repo candy version bumps. No embedded directives aimed at the reviewer. Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
The marketplace copy moved this pin in opencharly/marketplace#236 to close the last stale corpus artifact. The new skills:refs gate flagged the divergence here immediately, which is the behaviour it was added for. Claude-Session: https://claude.ai/code/session_01MJWYgjRyvYkQsApe3Nvccq
Review — PASSHead SHA: Security screen: PASS — the change strengthens the drift gate (asserts the refs-list invariant against the marketplace's authoritative copy rather than assuming it); no secrets/exfiltration/network, no guardrail weakening, no supply-chain change beyond in-repo candy version bumps. No embedded directives aimed at the reviewer. Checklist: All applicable rules PASS or NA. Prior The Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — the change strengthens the drift gate (asserts the refs-list invariant rather than assuming it); no secrets/exfiltration/network, no guardrail weakening, no supply-chain change beyond in-repo candy version bumps. No embedded directives aimed at the reviewer. Checklist: All applicable rules PASS or NA. Comment intake:
Verification notes: The diff changes exactly 8 refs in Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — the change strengthens the drift gate (asserts the refs-list invariant against the marketplace's authoritative copy rather than assuming it); no secrets/exfiltration/network, no guardrail weakening, no supply-chain change beyond in-repo candy version bumps. No embedded directives aimed at the reviewer. Checklist: All applicable rules PASS or NA. Comment intake:
Verification notes: The diff changes exactly 8 refs in Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — the change strengthens the drift gate (asserts the refs-list invariant against the marketplace's authoritative copy rather than assuming it); no secrets/exfiltration/network, no guardrail weakening, no supply-chain change beyond in-repo candy version bumps. No embedded directives aimed at the reviewer. Checklist: All applicable rules PASS or NA. Comment intake:
Verification notes: The diff changes exactly 8 refs in Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — the change strengthens the drift gate (asserts the refs-list invariant against the marketplace's authoritative copy rather than assuming it); no secrets/exfiltration/network, no guardrail weakening, no supply-chain change beyond in-repo candy version bumps. No embedded directives aimed at the reviewer. Checklist: All applicable rules PASS or NA. Comment intake:
Verification notes: The diff changes exactly 8 refs in Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
candy/charly-marketplace/charly.ymlexists in two repos with differentauthority, and nothing kept them in sync.
The marketplace deploy workflow copies its copy over the cloned charly's
before generating — its own step comment says so:
So that file, not this one, decides which candy versions the corpus is built
from. This repo's copy is only what
skills:sync/skills:driftfeed thegenerator locally.
The consequence is a gate that cannot see the defect it exists to catch. #426
bumped
pod-charly-hookstov2026.240.2141here, to drop theinternalsplugin's stdio
githubMCP server.skills:driftreportedno drift, becauselocal generation used this copy. CI kept resolving
v2026.239.1634from themarketplace's copy and regenerated
internals/.mcp.jsonstraight back — failingthe marketplace build across a 22-file drift, while every local gate stayed green.
This adds
skills:refs, which fails when the two copies differ, and runs itbefore every generation in
syncanddrift. Equality is what makes the localgate faithful to CI, so it is now asserted rather than assumed. The failure prints
the diff and says where the matching change has to land.
The refs sync in this PR — all 8 changed pins
pod-charly-hooksis not among them: it is alreadyv2026.240.2141in thebase, from #426. What was stale here is everything the marketplace's copy had
moved without this one following:
charlyv2026.238.1242→v2026.240.2345pod-testapiv2026.237.558→v2026.240.0203pod-traefikv2026.237.558→v2026.240.0203pod-valkeyv2026.237.458→v2026.240.0130pod-versatilesv2026.237.458→v2026.240.0122vm-k3s-agentv2026.238.2257→v2026.240.0122pod-selkies-corev2026.239.1558→v2026.240.2344pod-waybar-labwcv2026.238.1855→v2026.240.0122That the divergence ran in both directions — this repo ahead on
pod-charly-hooks, the marketplace ahead on seven others — is the clearestevidence that nothing was reconciling them.
Paired with opencharly/marketplace#236, which sets the authoritative copy to the
same content; its
builddrift gate now passes.How tested
Negative control first — the gate catches the exact pin that caused the
incident. Reintroducing
pod-charly-hooks:v2026.239.1634:Had this gate existed, #426 would have failed here instead of shipping a bump
that changed nothing.
It caught a real divergence during this PR, unprompted. After
opencharly/marketplace#236 moved
pod-selkies-coreto close its last staleartifact, the gate failed here on the next run — which is how the eighth pin
above got into this PR:
Positive — with the copies synced:
Wired into the real gate —
skills:driftruns it first:The root cause was reproduced before being fixed. Generating with the
marketplace's refs list instead of this repo's, into a pristine checkout,
recreates CI's failure exactly — same file set, and the deleted artifact returns:
That
??line is the whole point: CI was regenerating the removed MCP serverback into the corpus.
Known unrelated failure, stated plainly: a full
task skills:driftfrom thisbranch reports stale artifacts, because
mainhas moved past the tag themarketplace corpus is pinned to (#429 rewrote
candy/charly-internals/charly.yml,+79/−73). Generating from a tree ahead of the pin has always produced that,
before and after this PR; it clears at the next marketplace bump. The
refsgateitself passes, which is what this PR changes.
Rulebook compliance
and reproduced locally before any fix; the fix targets the cause (an unasserted
invariant), not the symptom (a stale pin).
invariant that the two copies must be equal is stated in exactly one place.
hole that let a bump be silently ineffective is closed.
corrected alongside the gate.
gh pr listpreflight;fix/branch; no force-push, nohook bypass, no direct push to
main. The PR was updated with follow-upcommits, never closed and recreated.
fails on the real defect, by an unprompted real catch during this PR, and by a
reproduction that recreates CI's exact failure — not by a passing run alone.
Change classification
taskfiles/Skills.yml, plus an 8-pin refs synctask skills:sync/skills:driftgain a precondition; no Go, no schema, no generated corpus, no candy contenttask skills:refsin both directions, plus a local reproduction of the CI failurefully tested and validated— the gate was executed live in both directions, caught a real divergence unprompted, and the defect it prevents was reproduced end to endAssisted-by: Claude Code anthropic/claude-opus-5[1m] (fully tested and validated)