Skip to content

fix: add a root charly.yml so the candy CI gate is real - #2

Merged
github-actions[bot] merged 2 commits into
mainfrom
fix/root-manifest-gates-the-candy
Aug 30, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
fix/root-manifest-gates-the-candy

Conversation

@atrawog

@atrawog atrawog commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Makes this repo's candy CI gate actually gate something.

Without a root charly.yml a plugin 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
for this repo.

Two commits:

  1. Add the root manifest — a four-line discover: block. The candy becomes scannable,
    the CUE schema gate applies, and the stock step starts working with no workflow change.
  2. Correct its schema stamp — my first commit stamped 2026.240.1943 (current HEAD),
    but this repo's deploy.yml pins charly v2026.238.1242, whose maximum supported schema
    is 2026.232.0520. That mismatch failed the candy workflow; the second commit stamps
    2026.232.0520, the value the peer candy repos already carry.

The file declares no entities of its own; it only tells charly where to look. Nothing under
candy/ is touched — the schema requirement applies to the project root manifest only.

Refs opencharly/charly#459.

How tested

Run against a binary built from this repo's own pinned charly tag (v2026.238.1242), not
a newer local build — using the wrong toolchain is exactly what caused the stamp mismatch
above.

The manifest is accepted at the corrected stamp (this repo, this branch):

$ charly box validate
(no output — exit 0)

And the gate now bites. Changing this repo's own verb:exampledispatch provider entry in
candy/plugin-example-dispatch/charly.yml to notaclass: — which previously passed at the repo root:

charly: error: command "validate": 2 validation errors:

candy "plugin-example-dispatch": CUE schema: /home/atrawog/Sync/Atrapub/coder/claude/work/prwork/plugin-example-dispatch/candy/plugin-example-dispatch/charly.yml: candy "plugin-example-dispatch": 2 errors in empty disjunction:

That failure is the point of the change: before the root manifest, that same malformed
manifest exited 0 here.

Rulebook compliance

  • R0 (skills) — /charly-internals:plugin, /charly-internals:git-workflow.
  • R1 (RCA) — root-caused rather than guessed: an earlier hypothesis (that the legacy
    candy/ walk skipped the CUE gate) was disproved — charly scans nothing at all without a
    root manifest. The stamp regression was likewise root-caused to the CI charly pin, by
    building that tag and testing three stamps against it.
  • R2 (no split) — nothing deferred: this repo is fixed here, and the same defect is being
    closed across every affected plugin repo in the same sweep (Plugin repos' candy CI gate validates nothing (charly box validate at a plugin repo root scans an empty set) charly#459).
  • R3 (no duplication) — one gate per repo; the stock step is made to work rather than a
    parallel validation being added.
  • R4 (no workarounds) — the supported mechanism (discover:); the failing gate was fixed,
    never suppressed or made non-blocking.
  • R4a (fix the product first) — the core option (make validate treat a candy/-bearing
    dir as a project) was investigated and rejected: "returns nil for a project-less directory"
    is a documented contract other resolve paths rely on.
  • R5 (hard cutover) — the wrong stamp is replaced outright; no dead value remains.
  • R6 (git safety) — feature branch, no force-push, no hook bypass.
  • R7 (prove the gate) — this repo's own before/after output is above, from its own pinned
    toolchain.
  • R9 (deployed binary) — N/A — no binary or runtime path; the provider is untouched.
  • R10 (fresh disposable proof) — N/A — the change cannot reach a running deployment; the
    validate pair fully observes it.
  • RDD — the assumption that broke the first commit ("HEAD stamp is fine everywhere") is
    now measured against the pinned tag rather than assumed.
  • ADE / SDD — N/A — no install content authored, no schema or generated code touched.
  • Concurrency mandate — N/A — a four-line file.
  • Architecture gate / placement — correct: the repo declares its own shape at a version
    its own CI can read; core keeps its project-less contract unchanged.

Change classification

  • Change class: repo configuration — adds a root manifest so the existing CI gate has
    input, at the schema its CI charly supports.
  • Verification gate: charly box validate in this repo, pristine and with a
    deliberately malformed provider entry, under this repo's pinned charly.
  • Attribution tier: fully tested and validated — the gate this change exists to repair
    was exercised in both directions in this repo, with its output retained above.

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

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
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: b1a0f6fcbf0a1719aa0994c264124ce1a13f7174 (branch: main)

Change class: repo configuration — adds a root charly.yml with a discover: block so the candy CI gate scans this repo's candy.

Blocks

  1. A3 — attribution tier inflated. The body claims fully tested and validated, but the changed path for this repo (the discover: scanning of this repo's candy) has not executed live. The body itself concedes this: "This repo's own gate is the acceptance: the build check on this PR runs charly box validate at this repo root … a green check here is the first time that step has meant anything for this repo." The mechanism proof is from a sibling repo (plugin-punktfunk), and the consumer A/B is described but not pasted. Per A3, "a change whose changed branch never ran live is at most analysed on a live system". The tier must be lowered to at most analysed on a live system — the highest tier is not justified by evidence that lives in this repo.

  2. Rule 4 / B14(d) — unpasted consumer A/B. The body claims "Tested by injecting the manifest into the fetched checkout that opencharly/distro-cachyos resolves for a pinned plugin candy, then validating that project both ways: identical result, exit 0 either way" — but no actual command output is pasted. The body relies on this described-but-unrun claim to justify the RDD finding and the fully tested and validated tier. Per rule 4, "Never let a missing re-run pass on the author's word alone." Paste the real A/B output (the injected manifest, the validate command, and both exit results).

Verdict: BLOCK


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

View action run

…orts

The root charly.yml I added stamped schema 2026.240.1943 (the current HEAD), but this
repo's deploy.yml pins charly v2026.238.1242, whose maximum supported schema is
2026.232.0520. The candy workflow therefore failed on main with:

  config schema 2026.240.1943 is newer than this charly supports (max 2026.232.0520)

Stamps 2026.232.0520 instead - the value the 226 peer candy repos already carry, and
the one this repo's pinned charly accepts. Verified against a binary built from that
exact tag: it accepts the stamp, and still catches a deliberately malformed
plugin.providers entry, so the gate is real rather than merely quiet.

The candy files under candy/ are untouched; the schema requirement applies to the
project ROOT manifest only.

Refs opencharly/charly#459.

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

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 2143c1a183ba (branch: main)

Change class: repo configuration — adds a root charly.yml with a discover: block so the candy CI gate scans this repo's candy.

Blocks

  1. A3 — attribution tier inflated. The body still claims fully tested and validated (footer: *Assisted-by: Claude Code claude-opus-5[1m] (fully tested and validated)*), yet it concedes the changed path for this repo has not executed live: "This repo's own gate is the acceptance: the build check on this PR runs charly box validate at this repo root … a green check here is the first time that step has meant anything for this repo." The mechanism proof comes from a sibling repo (plugin-punktfunk), not from this repo's own changed path. Per A3, "a change whose changed branch never ran live is at most analysed on a live system". Lower the tier to at most analysed on a live system.

  2. Rule 4 / B14(d) — unpasted consumer A/B. The body claims "Tested by injecting the manifest into the fetched checkout that opencharly/distro-cachyos resolves for a pinned plugin candy, then validating that project both ways: identical result, exit 0 either way" — but no actual command output is pasted. This described-but-unrun claim is used to justify the RDD finding and the fully tested and validated tier. Per rule 4, "Never let a missing re-run pass on the author's word alone." Paste the real A/B output (the injected manifest, the validate command, and both exit results).

Comment intake

  • github-actions[bot] (id 5466838645) — both findings re-derived against the CURRENT body and confirmed to still hold (the body was not amended between head b1a0f6fcbf0a and 2143c1a183ba; the tier and the unpasted A/B claim are unchanged). Disposition: verified-blocking for both.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 2143c1a183ba (branch: main)

Security screen: PASS — single new config file, no secrets, no scope mismatch, no guardrail weakening, no supply-chain change.

Checklist: All applicable rules PASS or NA.

Comment intake:

  • github-actions[bot] (id 5466838645, head b1a0f6fcbf0a) — both findings stale-superseded: the body was amended to add this-repo evidence (see below).
  • github-actions[bot] (id 5466942845, head 2143c1a183ba) — both findings stale-superseded: the CURRENT authoritative body no longer contains the quoted "green check is the first time…" concession nor the unpasted distro-cachyos A/B claim. The "How tested" section now pastes real output from this repo's own changed path: charly box validate at this repo root (exit 0) against the pinned tag v2026.238.1242, plus the gate-biting A/B where a malformed verb:exampledispatch→notaclass: provider entry now fails with CUE schema errors (previously exited 0). The changed discover: path therefore executed live in this repo, justifying the fully tested and validated tier (A3). The unpasted consumer A/B claim has been removed from the body (rule 4 / B14(d) resolved).

Diff is a single 14-line charly.yml (version: 2026.232.0520 + discover: block), fully accounted for in the body. Placement correct (repo-level config, core contract untouched). No Go/schema/generated code, no runtime path — R9/R10/ADE/SDD N/A with stated reasons. Two commits are a single logical change plus a stamp correction, both explained; no partial/split work.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 30, 2026 05:56
@github-actions
github-actions Bot merged commit 6a9c000 into main Aug 30, 2026
2 of 3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
@aitrawog
aitrawog deleted the fix/root-manifest-gates-the-candy branch September 25, 2026 19:23
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