Skip to content

docs(skills): audit skill DELIVERY, not just content (the corpus can be valid and never load) - #425

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/skills-audit-plugin-load-delivery
Aug 28, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/skills-audit-plugin-load-delivery

Conversation

@atrawog

@atrawog atrawog commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

/charly-internals:skills covered when and how to write skills, but never how
to check that the corpus actually reaches the agent. That gap hid a real
failure: opencharly/opencharly declared three plugins in enabledPlugins and
loaded zero of their skills, so every row of its R0 dispatcher pointed at
something no session could load (opencharly/opencharly#30).

Enablement and installation are separate halves of the harness contract.
enabledPlugins flips the first; skills load only when the harness also holds
an install record scoped to the current project. The umbrella's records were
bound to a different project, with installPaths that no longer existed — and
the marketplace, the manifest, and every SKILL.md frontmatter were valid the
whole time. Nothing in the corpus was wrong; it simply never arrived.

claude plugin list makes the failure worse rather than surfacing it: it reads
enablement from settings.json and prints Status: ✔ enabled regardless of
whether the install record resolves, so the obvious diagnostic confirms a
corpus that is not loading.

Added a section to the skills skill giving:

  • the failure mode, stated so it is recognisable before it costs a session;
  • the only probe that is real evidence — a fresh session's own answer;
  • the fix that writes both halves (claude plugin install … --scope project),
    and why hand-editing the settings JSON reproduces the same half-state;
  • the warning that this presents as a badly written dispatcher row, so the
    tempting fix is to rewrite the row and leave the real defect in place;
  • a scoping note: enabling image/pod plugins in a repo that runs no boxes also
    drags in their pod-provided MCP servers, which then log connection failures
    for boxes never meant to be running there.

Source-only change to candy/charly-internals/charly.yml. The corresponding
corpus artifact (internals/skills/skills/SKILL.md) regenerates in
opencharly/marketplace once this merges and charly tags — see Follow-up.

How tested

Regeneration is a no-op — task skills:drift passes on the committed tree:

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

charly's own harness surface is untouched — this skill is not part of the
.claude/ R0 surface, and skills:sync reported no change to it:

$ git status --short          # after task skills:sync
 M candy/charly-internals/charly.yml

(the sync "changed the harness surface" branch did not fire — 0 occurrences in
the run log)

The regenerated corpus artifact matches the source exactly — +42 lines in
the candy produce +42 lines in the generated skill:

 internals/skills/skills/SKILL.md  | 42 ++++++++++++++++++++++

Rendered output verified, headings, bullets and both fenced blocks intact:

## The corpus must actually LOAD — audit delivery, not just content
…
**The only reliable probe is a fresh session's own answer:**

```bash
claude -p "List the skills available to you whose name contains ':'"

**Change attribution is clean.** Regenerating against current `main` also moved
four artifacts that are *not* mine — a `layer-supervisord` pin bump
(`v2026.235.2056` → `v2026.239.1300`) and the `candy/charly` → `candy/charly-dev`
rename, touching `build/skills/charly-mcp-cmd`, `internals/skills/go`,
`internals/skills/agents/references/parallel-bed-testing`, and
`tools/skills/charly`. Those are pre-existing marketplace drift owned by
opencharly/marketplace#233 and are deliberately **not** carried here; this PR
changes one file.

**The finding this documents was verified live**, before and after, in the repo
where it was found:

before: $ claude -p "List skills starting with charly-internals/charly-automation"
NONE (while claude plugin list said "enabled")
after: 29 skills, all six R0 dispatcher rows resolving


## Rulebook compliance

- **R1 — RCA every anomaly.** The section exists *because* an anomaly was
  root-caused rather than worked around; the operational insight is fed back
  into the skill that owns skill maintenance, which is what R1 asks for.
- **R3 — No duplication.** The knowledge lands in exactly one skill — `skills`,
  whose stated remit is "feeding back operational insights, or auditing skill
  coverage". No other skill documents plugin loading, so nothing is forked.
- **R4 — No workarounds.** Documents the fix that writes both halves of the
  contract and explicitly rules out hand-editing the settings JSON.
- **R5 — Delete legacy completely.** Pure addition; no superseded guidance left
  behind, and no stale wording elsewhere describes plugin loading.
- **R6 — Git safety.** `gh pr list` preflight across every affected repo before
  branching; a dirty sibling checkout on another contributor's branch was left
  untouched and a fresh clone used instead. `fix/` branch, no force-push, no
  hook bypass, no direct push to `main`.
- **R7 / R10 — Prove the gate, not the plan.** `task skills:drift` pasted above,
  run on the final committed tree, with the generated artifact inspected rather
  than assumed.
- **SDD.** Source-of-truth edit in the candy's `skill:` entity; the generated
  `SKILL.md` is a projection and was never hand-edited — the `DO NOT EDIT`
  banner on the artifact is respected.

## 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, no other candy |
| **Verification gate** | `task skills:drift` (regeneration is a no-op) on the final tree |
| **Attribution tier** | `fully tested and validated` — the drift gate passed on the committed tree, and the documented failure mode was reproduced and then fixed live in `opencharly/opencharly` |

## Follow-up (sequenced, not deferred)

`opencharly/marketplace` regenerates its corpus from **its own pinned charly**.
Its drift gate would reject `internals/skills/skills/SKILL.md` today, because the
pinned charly does not yet contain this candy change. The corpus PR is therefore
gated on this one merging and charly tagging — a landing-order constraint, not
an open loop. Same ordering applies to opencharly/pod-charly-hooks#2, which
removes the `charly-internals` stdio `github` MCP server.

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

The skills skill covered when and how to write skills, but never how to check
that the corpus actually reaches the agent. That gap hid a real failure:
`opencharly/opencharly` declared three plugins in `enabledPlugins` and loaded
ZERO of their skills, so every row of its R0 dispatcher pointed at something no
session could load.

Enablement and installation are separate halves of the harness contract.
`enabledPlugins` flips the first; skills load only when the harness also holds
an install record scoped to the current project. The umbrella's records were
bound to a different project, with installPaths that no longer existed, and the
marketplace, manifest, and SKILL.md frontmatter were all valid the whole time.

`claude plugin list` makes it worse: it reads enablement from settings.json and
prints "Status: enabled" no matter whether the install record resolves, so it
actively confirms a corpus that is not loading.

Added a section giving the failure mode, the only probe that is real evidence
(a fresh session's own answer), the fix that writes both halves, and the
warning that this presents as a badly written dispatcher row -- so the wrong
fix is to rewrite the row and leave the defect in place. Also records that the
enabled set should match what the repo does, since enabling image/pod plugins
in a repo that runs no boxes drags in their pod MCP servers.

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

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 6557e4d25362 (branch: fix/skills-delivery-audit)

Security screen: PASS — docs-only skill content; no secrets, no scope mismatch, no guardrail changes, no embedded directives.

Checklist: All applicable rules PASS or NA.

  • Change class: docs-only (skill entity content in candy/charly-internals/charly.yml). No runtime code, no Go, no schema, no harness surface. No bed required; the appropriate gate is the regeneration/drift check, which the body supplies with pasted output.
  • A1/A2/A3: Body fully accounts for the single changed file; task skills:drift output pasted; git status evidence consistent with one-file change; attribution footer in the exact required form; fully tested and validated tier supported by the drift gate plus the live before/after reproduction of the documented failure mode in opencharly/opencharly.
  • R1–R10: RCA provided for the delivery failure; no duplication (knowledge lands in the single skills skill); no workarounds (documents the both-halves fix, rules out hand-editing settings JSON); pure addition with no legacy left; R6 git status preflight stated; SDD respected (source-of-truth edit, generated SKILL.md never hand-edited).
  • R2 / B14: Pre-existing marketplace drift is routed to the named opencharly/marketplace#233; follow-up names exact repos/PRs with a landing-order constraint, not a vague deferral.
  • B16 placement: Correct layer — capability knowledge belongs in the candy's skill: entity, not core/sdk.
  • Comments: none on the thread.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 28, 2026 21:39
@github-actions
github-actions Bot merged commit 45aa9c9 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 28, 2026
…als .mcp.json) (#234)

Bumps the CI-time charly tag from v2026.238.1242 to v2026.240.2158 and carries
the regenerated corpus, as deploy.yml requires: a marketplace PR must bump the
charly CI-time tag and carry the regenerated corpus.

The bump brings in two merged changes:

- opencharly/charly#426 -> pod-charly-hooks v2026.240.2141, which removed the
  internals plugin stdio github MCP server. charly-internals ships no pod, and
  no candy installs github-mcp-server, so the server failed to start on every
  session on any host lacking that binary -- while duplicating the gh CLI that
  the git-workflow skill already mandates. Regeneration therefore DELETES
  internals/.mcp.json, drops the mcpServers key from both plugin manifests, and
  removes the trailing github-MCP clause from the descriptions in
  marketplace.json and internals/.claude-plugin/plugin.json.
- opencharly/charly#425 -> a new section in the skills skill on auditing skill
  DELIVERY (a corpus can be valid and still never load).

The four remaining mcp_servers declarations are http endpoints served by the pod
each plugin ships; they are correct and untouched.

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

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit that referenced this pull request Aug 28, 2026
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

Co-authored-by: atrawog <[email protected]>
@aitrawog
aitrawog deleted the fix/skills-audit-plugin-load-delivery 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