Skip to content

fix: scope the discover walk so it skips the Go test fixture - #9

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/discover-skips-testdata
Aug 30, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/discover-skips-testdata

Conversation

@atrawog

@atrawog atrawog commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Repairs a regression I introduced: the candy workflow is failing on main here.

The root charly.yml I added (#8) used
recursive: true, which descends into candy/generate-packages/testdata/charly.yml — a
Go test fixture, not a deployable candy. validate rightly rejected it:

candy "testdata": must have at least one install file (candy manifest distro: packages,
  root.yml, pixi.toml, pyproject.toml, environment.yml, package.json, Cargo.toml, or user.yml),
  a candy: field, an external_builder:, or a plugin: block
candy "testdata": missing required `plan:` list (ADE is mandatory; the spec IS the test)

recursive: false matches the plugin repo layout exactly — candy/<name>/charly.yml is
found, nested fixtures are not. This is the only repo of the 94 in the sweep with a nested
charly.yml, which is why it is the only one that broke.

How tested

Against a binary built from this repo's own pinned charly tag (v2026.238.1242).

The real candy is still discovered, and validate passes:

$ charly box validate
exit=0
$ charly box list candies
generate-packages [testing]

(the testdata fixture is correctly absent)

The gate still bites — a non-recursive walk that found nothing would be worthless.
Changing this repo's own - command:generate-packages provider entry to - notaclass::

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

  candy "generate-packages": CUE schema: .../candy/generate-packages/charly.yml:
  candy "generate-packages": 2 errors in empty disjunction:

So the repo keeps the working gate the earlier PR was for, and its candy workflow goes
green again.

Rulebook compliance

  • R0 (skills) — /charly-internals:plugin, /charly-internals:git-workflow.
  • R1 (RCA) — root-caused from the actual CI output: the failure named candy "testdata",
    which traced to a nested fixture reached only because of recursive: true. Not guessed.
  • R2 (no split) — fixed here and now; the org-wide audit that found it covered all 94
    repos, and this was the only failure.
  • R3 (no duplication) — one discover spec; no exclusion list bolted on beside a too-broad
    glob.
  • R4 (no workarounds) — the walk is scoped correctly rather than the fixture being
    deleted, moved, or the gate suppressed.
  • R4a (fix the product first) — N/A — my own regression, not a product defect.
  • R5 (hard cutover) — recursive: true is replaced, not supplemented.
  • R6 (git safety) — feature branch, no force-push, no hook bypass.
  • R7 (prove the gate) — this repo's own before/after output under its pinned toolchain,
    above.
  • R9 (deployed binary) — N/A — no binary or runtime path.
  • R10 (fresh disposable proof) — N/A — cannot reach a running deployment; the validate
    pair fully observes the change.
  • RDD — the assumption behind the regression (that recursive: true is harmless for a
    plugin repo) is now measured: it is not, wherever a nested charly.yml exists.
  • ADE / SDD — N/A — no install content, no schema or generated code.
  • Concurrency mandate — N/A — a one-line change.
  • Architecture gate / placement — correct: the repo declares its own shape.

Change classification

  • Change class: regression fix — one line in the root manifest.
  • Verification gate: charly box validate and box list candies under this repo's
    pinned charly, plus a deliberately malformed provider entry.
  • Attribution tier: fully tested and validated — exercised in both directions against
    the exact toolchain this repo's CI uses, with output retained above.

Assisted-by: Claude Code claude-opus-5 (fully tested and validated)

The root manifest I added used recursive: true, which descends into
candy/generate-packages/testdata/charly.yml - a Go test fixture, not a deployable
candy. validate rightly rejected it (no install content, no plan: list), so the candy
workflow failed on main.

recursive: false matches the plugin repo layout exactly: candy/<name>/charly.yml is
found, nested fixtures are not. Verified against a binary built from this repo's pinned
charly tag: the real generate-packages candy is still discovered, validate passes, and
a deliberately malformed provider class is still caught.

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

Copy link
Copy Markdown

Review — PASS

Head SHA: c91972a7ea3d54770ab8d0744079e0e6270f6358 (branch: main-targeting PR #9)

Security screen: PASS — no scope mismatch (diff is exactly the described recursive: true→false change plus removal of the now-stale rationale comment), no secrets/exfiltration, no weakened guardrails, no supply-chain changes.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: Body is complete (Summary, How tested with pasted output, Rulebook compliance, classification). Change class = config (one-line manifest). Gate matches — charly box validate + box list candies under the pinned toolchain, plus a deliberately malformed provider entry proving the gate still bites. Attribution tier fully tested and validated is justified: the changed config path executed live in both directions. Assisted-by: line present in exact form at body end.
  • R1/R2/R3/R4/R4a/R5: RCA from actual CI output naming candy "testdata"; fixed in-tree, no split; no duplication; no workaround (walk scoped, fixture not deleted/suppressed); N/A product-defect; hard cutover (replaced, not supplemented).
  • R6/R8/R9/R10: git safety stated; R8/R9 N/A; R10 N/A with reason (config change fully observed by the validate pair — appropriate for this class).
  • RDD/ADE/SDD: N/A with reasons (no install content, no schema/generated code).
  • Concurrency / hard-cutover / architecture: N/A or correct — single atomic commit, placement correct (repo declares its own shape).
  • B18: no Go changes; config-only.

Comment thread: empty — no comments to disposition.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 30, 2026 06:14
@github-actions
github-actions Bot merged commit e15cdd8 into main Aug 30, 2026
4 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
@aitrawog
aitrawog deleted the fix/discover-skips-testdata branch September 25, 2026 19:10
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