Repository navigation
fix: add a root charly.yml so the candy CI gate is real - #3
Conversation
Without a root manifest this repo is project-less: charly scans NO candies at all, so the stock `charly box validate` step in deploy.yml exits 0 on any manifest - including one with a malformed plugin.providers entry. The step has been asserting nothing. A four-line discover: block is the whole fix: the candy becomes scannable, the CUE schema gate applies, and the stock step starts working with no workflow change. The file declares no entities of its own. Refs opencharly/charly#459. Claude-Session: https://claude.ai/code/session_016fnPmYiC6ZkqXSi6D8PAP6
Review — PASSHead SHA: Security screen: PASS — single additive config file; no secrets, no code, no guardrail weakening (it strengthens the CI gate by making the candy scannable). Checklist: All applicable rules PASS or NA. Change class is repo configuration (root Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
Makes this repo's candy CI gate actually gate something.
Without a root
charly.ymla plugin repo is project-less: charly scans no candies atall, so the stock
charly box validatestep indeploy.ymlexits 0 on any manifest —including one with a malformed
plugin.providersentry. The step has been assertingnothing.
A four-line
discover:block is the whole fix. The candy becomes scannable, the CUE schemagate applies, and the stock step starts working — no workflow change needed. The file
declares no entities of its own; it only tells charly where to look.
Refs opencharly/charly#459.
How tested
The mechanism and the fix were established on
opencharly/plugin-punktfunk(opencharly/plugin-punktfunk#4), with a plain layer candy to isolate it —
box list candiesfilters plugin candies out of its own output, so a plugin candy alone cannot show this:
And on a real plugin candy, before/after, same repo and command:
Consumers are unaffected, which is the real risk of adding a root manifest — a consuming
project might resolve the candy twice (once via its pinned subpath ref, once via the new
discover:). Tested by injecting the manifest into the fetched checkout thatopencharly/distro-cachyosresolves for a pinned plugin candy, then validating that projectboth ways: identical result, exit 0 either way.
This repo's own gate is the acceptance: the
buildcheck on this PR runscharly box validateat this repo root against the pinned charly. It now scans this repo'scandy, so a green check here is the first time that step has meant anything for this repo.
Rulebook compliance
/charly-internals:plugin(plugin repo layout, the candy-ref contract)and
/charly-internals:git-workflowloaded before the change.candy/walkskipped the CUE gate) was disproved by the plain-layer probe above before this fix was
written.
across every affected plugin repo in the same sweep, tracked by Plugin repos' candy CI gate validates nothing (charly box validate at a plugin repo root scans an empty set) charly#459.
charly box validatestep is madeto work rather than a second, parallel validation being bolted on.
discover:) is used; no CI staginghack, no suppression.
validatetreat acandy/-bearing dir as a project) was investigated and rejected: "returns nil for aproject-less directory" is a documented contract other resolve paths rely on, so the fix
belongs in the repo.
buildcheck is the gate running for real.changes what
charlyscans in the repo, which the validate A/B fully observes.was proved before landing, with the cached-checkout A/B above.
plan:is unchanged.its project-less contract unchanged.
Change classification
input. No source, no workflow, no schema change.
charly box validatebefore/after with a deliberately malformedmanifest, a consumer-side resolution A/B, and this PR's own
buildcheck.fully tested and validated— the gate this change exists to repairwas exercised in both directions, and the consumer risk was tested, with output retained
above.
Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated)