Skip to content

feat(ci): ONE org candy-validate reusable + retire the per-repo candy gates (supersedes #138) - #141

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/org-candy-validate-v2
Sep 28, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/org-candy-validate-v2

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

Successor to opencharly/.github#138 (RESOLVED — superseded by this PR). #138
auto-closed at the AI_REVIEW_AUTO_CLOSE_AFTER=5 threshold after six non-PASS verdicts
(four real BLOCK rounds plus provider-outage INCONCLUSIVEs). Its final verdict raised two
body-only findings — both now fixed and pasted below: (1) the gitlink→tag line's
pasted command (git ls-remote … <sha>) cannot produce its output, since a 40-hex arg is
a ref-name pattern and matches nothing (now git ls-remote … | grep <sha>); (2) the
governance-reconcile output was abbreviated and omitted the candy_gate_single_pin row
(now the COMPLETE output). The source tree is unchanged — this PR carries the identical
tree as #138's final head (git diff between them is empty); only the evidence is corrected.

ONE org-level source for the candy-manifest gate, and retirement of the ~376 stale per-repo copies.

~376 opencharly repos carried a hand-rolled .github/workflows/deploy.yml
(name: candy, job build) that CI-time-cloned opencharly/charly at a
hand-pinned tag and ran charly box validate. 298 of the 376 were frozen at
v2026.238.1242; the candy stubs carry 16 distinct charly pins — 374 name an
inline v2026.* tag (15 distinct tags) and plugin-herdr / pod-herdr pin charly via
a git-submodule gitlink at v2026.251.0841 (the 16th) — and nothing advanced them (all
measured with pasted commands below). The schema-versioning-removal cutover made this
acute: the cutover deleted the authored top-level version: field, and the old pinned
charly's box validate requires that stamp, so every version-strip PR fails its OWN
repo CI with schema 2026.232.0520 is required (found ""). Run: charly migrate.

This replaces that class with ONE org-level source, mirroring the established
retire-per-repo-dispatchers pattern (one source, zero per-repo copies):

  • .github/workflows/candy-validate.yml — a new on: workflow_call reusable.
    It clones opencharly/charly at the org variable vars.CHARLY_VERSION (the
    single knob), builds the binary, and runs charly box validate. It skips
    cleanly (green)
    when a repo has no charly.yml, and fails loud when the pin
    is unset/invisible (no bundled fallback, same fail-closed contract as the org
    validator). Called from a job named candy, its inner job named validate
    produces the candy / validate check context (verified live below: a reusable's
    nested job renders as <caller-job> / <inner-job>; the retired per-repo stub
    produced bare build).
  • scripts/retire-per-repo-candy-gates.sh + the workflow
    .github/workflows/retire-per-repo-candy-gates.yml — the one-shot org cutover
    that DELETES the stale stubs. It runs as a workflow because a delete on a protected
    main needs a ruleset-bypass commit author — the charly-auto-merge App (the
    workflow mints that token), same precedent as retire-per-repo-dispatchers.
    SAFETY: a deploy.yml is deleted only when its parsed top-level name: is
    exactly candy and its body carries the charly box validate signature;
    name: marketplace, name: docs, and every other real gate are skipped, never
    touched
    . Idempotent (absent files skipped); a non-404 probe / metadata failure
    aborts (never reads as "absent"); a 403 aborts with the workflows: write
    remediation.
  • scripts/retire-per-repo-candy-gates_test.sh — offline mock-gh test,
    wired into .github/workflows/validator-harness.yml. It asserts the happy path, the
    real-gate safety rule (name: marketplace never deleted), the renamed-stub safety
    rule (a candy-named file with no validate signature never deleted), idempotency,
    the API-abort, the metadata-abort, the delete-failure counters, and the 403 abort.
  • .github/tests/validator-gate-harness.py — extended to drive the reusable's
    real run: bodies offline (the same technique as the pr-validator scenarios):
    the skip path (no charly.yml → present=false → the pin-required step's if
    resolves false → green) and the fail-loud path (charly.yml present + pin unset →
    non-zero ::error::).
  • scripts/governance-claims.tsv — two rows pinning the reusable's single-knob
    invariant (require vars.CHARLY_VERSION, forbid a hand tag --branch v20).
  • README.md — documents the reusable, the cutover, and the deferred activation.

Activation is deliberately deferred (and this is the load-bearing design point).
The reusable is NOT named by the org ruleset as a required workflow. The current
vars.CHARLY_VERSION = v2026.271.0950 names a release whose box validate still
requires the retired stamp
(re-measured live below: schema 2026.261.1747 is required (found ""). Run: charly migrate). Making it required at that pin would re-break
the very PRs this replacement exists to unblock. The stale-pin deadlock is removed
either way (the old pins are deleted); the reusable becomes nameable org-wide once the
pin names a release carrying the schema-versioning removal (the charly#716 host
leg). The org ruleset 23827016 currently requires only validate / validate; the
candy check was and remains not required, so this PR adds no new required gate and
makes no org-ruleset.sh change.

Closes / relates to: relates to opencharly/charly#716 (the schema-versioning
removal host leg) and opencharly/charly#717 (the transitive-pin reconcile wave);
this is the org-CI leg that unblocks the per-repo version-strip PRs
(plugin-box#19 / plugin-deploy-local#11 / plugin-deploy-vm#31).

Breaking change + rollback: none — purely additive (a new reusable, a new
one-shot cutover script+workflow, a new test + harness coverage, two governance rows,
README). The cutover deletes per-repo files only when the App-token workflow is
dispatched, and only the verified name: candy + charly box validate stub.
Rollback: revert this PR; the per-repo stubs are recoverable from each repo's git
history.

Change class

hook/workflow (org CI) + candy/box-config (the manifest gate). Cross-repo
consumer: this repo's reusable + cutover. It does not itself edit any submodule (the
umbrella is used READ-ONLY for inventory).

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: the repo's own self-tests, run by its
    validator-harness.yml — every scripts/*_test.sh (offline mock-gh),
    governance-reconcile.sh --self-test, the live standalone governance reconcile, and
    the validator-gate harness. For the new script the gate is its own test
    (retire-per-repo-candy-gates_test.sh), which fails without the script's safety
    predicate; for the new reusable it is the harness section added to
    validator-gate-harness.py, which fails without the skip/fail-loud branches
    (mutation-proven below).
  • Eval beds run: N/A — no charly-managed runtime resource touched; this change is repo CI + a shell cutover script covered by its offline mock-gh test. There is no candy/box/layer/Go code in the diff. (No charly check run bed applies to an
    opencharly/.github workflow/script change; the repo's own harness is the gate.)
  • Fresh rebuild: N/A — no charly binary built or changed; the changed paths are shell/YAML/TSV/Markdown in this repo and were executed directly (see below).
  • Did the CHANGED code path execute live? yes — the new shell script's full
    control flow executed under its mock-gh harness (delete path, safety-skip paths,
    abort paths, 403 path, counters), and the reusable's skip + fail-loud run: bodies
    executed via validator-gate-harness.py. Their real GitHub API / Actions paths (the
    App-token org-wide DELETE; the reusable's actual git clone + go build) are not
    exercised here (no dispatch on this PR; the clone needs network) — a deliberate,
    documented one-shot cutover / offline boundary, so the tier is scoped accordingly.
  • Concurrency: N/A — no shared-state loader/ledger/store/lifecycle change.

Evidence — put each item in the block whose label names it.

1. Fresh-rebuild gate output — the repo's own self-tests, on the final tree:

$ for t in scripts/*_test.sh; do bash "$t"; done
bootstrap-repo-main_test: all assertions passed
org-ruleset_test: all assertions passed (apply/verify/abort)
retire-per-repo-candy-gates_test: all assertions passed
retire-per-repo-dispatchers_test: all assertions passed

$ for f in scripts/retire-per-repo-candy-gates.sh scripts/retire-per-repo-candy-gates_test.sh; do bash -n "$f" && echo "bash -n OK: $f"; done
bash -n OK: scripts/retire-per-repo-candy-gates.sh
bash -n OK: scripts/retire-per-repo-candy-gates_test.sh

$ bash scripts/governance-reconcile.sh --self-test
governance-reconcile --self-test: all assertions passed

$ bash scripts/governance-reconcile.sh            # standalone .github root (as CI runs it) — COMPLETE output
governance-reconcile: root=/tmp/opencode/dotorg manifest=/tmp/opencode/dotorg/scripts/governance-claims.tsv
skip  footer_order/umbrella AGENTS.md — AGENTS.md not in this checkout
skip  footer_order/umbrella AGENTS.md — AGENTS.md not in this checkout
skip  footer_order/git-workflow skill source — layer-charly-internals/charly.yml not in this checkout
skip  footer_order/git-workflow skill source — layer-charly-internals/charly.yml not in this checkout
skip  footer_order/marketplace projection — marketplace/internals/skills/git-workflow/SKILL.md not in this checkout
skip  footer_order/marketplace projection — marketplace/internals/skills/git-workflow/SKILL.md not in this checkout
skip  takeover_window/umbrella AGENTS.md — AGENTS.md not in this checkout
skip  takeover_window/umbrella AGENTS.md — AGENTS.md not in this checkout
skip  takeover_window/git-workflow skill source — layer-charly-internals/charly.yml not in this checkout
skip  takeover_window/git-workflow skill source — layer-charly-internals/charly.yml not in this checkout
skip  takeover_window/marketplace projection — marketplace/internals/skills/git-workflow/references/multi-repo-coordination.md not in this checkout
skip  takeover_window/marketplace projection — marketplace/internals/skills/git-workflow/references/multi-repo-coordination.md not in this checkout
skip  comment_first_takeover/umbrella AGENTS.md — AGENTS.md not in this checkout
skip  comment_first_takeover/git-workflow skill source — layer-charly-internals/charly.yml not in this checkout
skip  comment_first_takeover/marketplace projection — marketplace/internals/skills/git-workflow/references/multi-repo-coordination.md not in this checkout
skip  successor_protocol/umbrella AGENTS.md — AGENTS.md not in this checkout
skip  successor_protocol/git-workflow skill source — layer-charly-internals/charly.yml not in this checkout
skip  successor_protocol/marketplace projection — marketplace/internals/skills/git-workflow/references/multi-repo-coordination.md not in this checkout
skip  signoff_account_gate/umbrella AGENTS.md — AGENTS.md not in this checkout
skip  signoff_account_gate/umbrella AGENTS.md — AGENTS.md not in this checkout
skip  signoff_account_gate/git-workflow skill source — layer-charly-internals/charly.yml not in this checkout
skip  signoff_account_gate/git-workflow skill source — layer-charly-internals/charly.yml not in this checkout
skip  signoff_account_gate/marketplace projection — marketplace/internals/skills/git-workflow/references/multi-repo-coordination.md not in this checkout
skip  signoff_account_gate/marketplace projection — marketplace/internals/skills/git-workflow/references/multi-repo-coordination.md not in this checkout
skip  rerun_manual/git-workflow skill source — layer-charly-internals/charly.yml not in this checkout
skip  rerun_manual/git-workflow skill source — layer-charly-internals/charly.yml not in this checkout
skip  rerun_manual/marketplace projection — marketplace/internals/skills/git-workflow/SKILL.md not in this checkout
skip  rerun_manual/marketplace projection — marketplace/internals/skills/git-workflow/SKILL.md not in this checkout
ok    rerun_manual/org-wide required workflow — forbidden phrase absent from .github/workflows/org-wide-pr-validator-required.yml
ok    auto_close_threshold/validator workflow — required phrase present in .github/workflows/pr-validator.yml
ok    candy_gate_single_pin/org-wide candy validate reusable — required phrase present in .github/workflows/candy-validate.yml
ok    candy_gate_no_hand_pin/org-wide candy validate reusable — forbidden phrase absent from .github/workflows/candy-validate.yml
skip  auto_close_threshold/umbrella AGENTS.md — AGENTS.md not in this checkout
skip  auto_close_threshold/git-workflow skill source — layer-charly-internals/charly.yml not in this checkout
governance-reconcile: checked=4 skipped=30 fail=0

$ python3 .github/tests/validator-gate-harness.py | tail -4

scenarios: 18    assertions: 298
ALL PASS: 298 assertions across 18 scenarios, run against the real workflow run: bodies (fakes for charly and gh).
Coverage is WIRED IN: .github/workflows/validator-harness.yml runs this harness on every pull_request and on workflow_dispatch.

2. The org-wide inventory — the actually-executed commands + real output. Run
READ-ONLY against the umbrella checkout
(/home/atrawog/Sync/Atrapub/mo/opencoder/opencharly), scoped to each repo's own
<repo>/.github/workflows/deploy.yml:

$ find . -mindepth 2 -maxdepth 4 -path "*/.github/workflows/deploy.yml" -not -path "./.git/*" | while read -r f; do grep -m1 "^name:" "$f"; done | sort | uniq -c | sort -rn
    376 name: candy
      1 name: marketplace
      1 name: docs

$ # how the 376 name:candy stubs pin charly: inline tag vs submodule gitlink
$ for f in $(find . -mindepth 2 -maxdepth 4 -path "*/.github/workflows/deploy.yml" -not -path "./.git/*"); do
    [[ "$(grep -m1 "^name:" "$f" | tr -d "\r")" == "name: candy" ]] || continue
    grep -qE "v2026\.[0-9]+\.[0-9]+" "$f" && echo inline-tag || echo "gitlink $f"
  done | sort | uniq -c
      1 gitlink ./plugin-herdr/.github/workflows/deploy.yml
      1 gitlink ./pod-herdr/.github/workflows/deploy.yml
    374 inline-tag

$ # the 374 inline-tag stubs: first v2026.* pin per file
$ for f in $(find . -mindepth 2 -maxdepth 4 -path "*/.github/workflows/deploy.yml" -not -path "./.git/*"); do
    [[ "$(grep -m1 "^name:" "$f" | tr -d "\r")" == "name: candy" ]] || continue
    grep -oE "v2026\.[0-9]+\.[0-9]+" "$f" | head -1
  done | sort | uniq -c | sort -rn
    298 v2026.238.1242
     18 v2026.241.1535
     13 v2026.241.1130
     13 v2026.241.1121
     11 v2026.256.1316
      5 v2026.240.2035
      3 v2026.247.0327
      2 v2026.266.1654
      2 v2026.265.0747
      2 v2026.258.0219
      2 v2026.254.0903
      2 v2026.247.1701
      1 v2026.250.0450
      1 v2026.245.1836
      1 v2026.242.1928
# 298+18+13+13+11+5+3+2+2+2+2+2+1+1+1 = 374 (every inline-tag stub accounted for)

$ # the 2 gitlink stubs: charly submodule gitlink, and the tag it resolves to
$ for r in plugin-herdr pod-herdr; do git -C "$r" ls-tree HEAD charly | sed "s#^#$r #"; done
plugin-herdr 160000 commit bb9bfc915bc60a15af95b725be4e69cb5bb0be39	charly
pod-herdr 160000 commit bb9bfc915bc60a15af95b725be4e69cb5bb0be39	charly
$ git ls-remote --tags https://github.com/opencharly/charly.git | grep bb9bfc915bc60a15af95b725be4e69cb5bb0be39
bb9bfc915bc60a15af95b725be4e69cb5bb0be39	refs/tags/v2026.251.0841

# distinct charly candy-gate pins: 15 (inline) + 1 (gitlink v2026.251.0841) = 16

$ # the two non-candy real gates (SKIPPED by the safety predicate), + their pins
$ grep -m1 "^name:" docs/.github/workflows/deploy.yml marketplace/.github/workflows/deploy.yml
docs/.github/workflows/deploy.yml:name: docs
marketplace/.github/workflows/deploy.yml:name: marketplace
$ grep -nE "checkout [0-9a-f]{40}|--branch v2026" docs/.github/workflows/deploy.yml marketplace/.github/workflows/deploy.yml
docs/.github/workflows/deploy.yml:65:          git clone https://github.com/opencharly/charly.git /tmp/charly && git -C /tmp/charly checkout d45132f338677a2c86a5dbed53eef53b8112a1e2 && git -C /tmp/charly submodule update --init --recursive
docs/.github/workflows/deploy.yml:84:          git clone --depth 1 --branch v2026.261.1812 https://github.com/opencharly/plugin-docs.git /tmp/plugin-docs
marketplace/.github/workflows/deploy.yml:50:          git clone --depth 1 --branch v2026.266.1654 https://github.com/opencharly/charly.git /tmp/charly

$ # the signature predicate that is the second half of the delete gate
$ printf "name: candy stubs: "; for f in $(find . -mindepth 2 -maxdepth 4 -path "*/.github/workflows/deploy.yml" -not -path "./.git/*"); do [[ "$(grep -m1 "^name:" "$f" | tr -d "\r")" == "name: candy" ]] && echo "$f"; done | wc -l
name: candy stubs: 376
$ printf "carrying charly box validate: "; for f in $(find . -mindepth 2 -maxdepth 4 -path "*/.github/workflows/deploy.yml" -not -path "./.git/*"); do [[ "$(grep -m1 "^name:" "$f" | tr -d "\r")" == "name: candy" ]] || continue; grep -qF "charly box validate" "$f" && echo "$f"; done | wc -l
carrying charly box validate: 376
$ printf "NO-SIG (missing validate): "; for f in $(find . -mindepth 2 -maxdepth 4 -path "*/.github/workflows/deploy.yml" -not -path "./.git/*"); do [[ "$(grep -m1 "^name:" "$f" | tr -d "\r")" == "name: candy" ]] || continue; grep -qF "charly box validate" "$f" || echo "$f"; done | wc -l
NO-SIG (missing validate): 0

The 16-vs-15 and 374-vs-376 reconciliation (the previous body left this
contradictory): the two candy stubs that name no inline v2026.* tag are
plugin-herdr and pod-herdr, which pin charly via a git-submodule gitlink
(uses: actions/checkout with submodules: recursive, then charly/charly/go.mod).
Their charly gitlink bb9bfc915bc60a15af95b725be4e69cb5bb0be39 resolves to tag
v2026.251.0841 — a 16th distinct charly pin. So the original brief's "16
distinct pins" was correct, and the earlier commit's "correction" to 15 was wrong: it
had wrongly attributed the 16th to docs' plugin-docs pin, which is not a charly
candy-gate pin. The source comments and README now state 16 (374 inline across 15
tags + 2 submodule gitlinks at v2026.251.0841).

3. The check-context claim — the reusable renders <caller-job> / <inner-job>
(candy / validate); the retired stub rendered bare build.
Verified live:

$ gh api repos/opencharly/pod-sway/commits/main --jq .sha
eb09116683d34fc7def51aca011c2ab972d85bc7

$ gh api repos/opencharly/pod-sway/commits/eb09116683d34fc7def51aca011c2ab972d85bc7/check-runs --jq ".check_runs[] | \"\(.name) \(.conclusion)\""
tag / tag-and-changelog success
wait-for-merge success
build success

$ gh api repos/opencharly/pod-herdr/commits/main --jq .sha
a67a7bacb35d1777786b66b409bd207d02ae9155

$ gh api repos/opencharly/pod-herdr/commits/a67a7bacb35d1777786b66b409bd207d02ae9155/check-runs --jq ".check_runs[].name"
tag / tag-and-changelog
wait-for-merge
build

pod-sway/pod-herdr both still carry the hand-rolled stub, so their check set shows
the bare build the stub produced. The tag / tag-and-changelog run proves the
<caller-job> / <inner-job> naming a reusable produces — so the new reusable, called
from a job named candy with inner job validate, renders candy / validate.

4. Mutation proof that the new reusable coverage would FAIL without the behaviour
(the R10 "fails without it" criterion). Reverting either guard branch reddens the
harness:

$ sed -i "s/            exit 1/            exit 0/" .github/workflows/candy-validate.yml   # remove the fail-loud guard
$ python3 .github/tests/validator-gate-harness.py 2>&1 | tail -4

scenarios: 18    assertions: 298
FAILED assertions:
  - functional: candy-validate with charly.yml present and vars.CHARLY_VERSION UNSET exits non-zero with ::error:: (fail loud; NO bundled fallback) — got rc=0

$ sed -i "s/echo \"present=false\"/echo \"present=true\"/" .github/workflows/candy-validate.yml   # break the skip branch
$ python3 .github/tests/validator-gate-harness.py 2>&1 | tail -5

scenarios: 18    assertions: 298
FAILED assertions:
  - functional: candy-validate detect with NO charly.yml emits present=false (the clean-skip contract) — got present='true'
  - functional: candy-validate's pin-required step `if` resolves FALSE when charly.yml is absent (the fail-loud step is SKIPPED, never run on a non-candy repo)

$ python3 .github/tests/validator-gate-harness.py 2>&1 | tail -3   # restored
scenarios: 18    assertions: 298
ALL PASS: 298 assertions across 18 scenarios, run against the real workflow run: bodies (fakes for charly and gh).
Coverage is WIRED IN: .github/workflows/validator-harness.yml runs this harness on every pull_request and on workflow_dispatch.

5. Live evidence for the deferred-activation claim — re-measured against the
current org pin, with the pinned release's own binary:

$ gh variable list --org opencharly --json name,value --jq ".[]|select(.name==\"CHARLY_VERSION\")|.value"
v2026.271.0950

$ curl -fsSL -o /tmp/charly-pin https://github.com/opencharly/charly/releases/download/v2026.271.0950/charly-linux-amd64
$ printf "name: probe\n" > charly.yml && /tmp/charly-pin box validate; echo "exit=$?"
WARNING: charly is a dev/worktree build (not installed at /usr/bin or /usr/local/bin); NOT loading the installed package's plugins from /usr/lib/charly/plugins (they may be built against a different charly version). Set CHARLY_PLUGIN_DIR to load plugins from a custom location.
charly: error: command "validate": validation error: /tmp/vtest2/charly.yml: schema 2026.261.1747 is required (found ""). Run: charly migrate
exit=1

The pinned engine still requires the retired version: stamp — so naming the
reusable as a required gate at this pin would fail exactly the version-strip PRs the
retirement unblocks. Hence activation is deferred to the charly#716 host leg.

Attribution tier

analysed on a live system — the changed shell/YAML/TSV/Markdown paths executed
live (the new script's full control flow under its mock-gh harness; the reusable's
skip + fail-loud run: bodies under the extended harness; the governance and
validator-harness gates ran; the reusable's clone/pin logic was reasoned against the
live vars.CHARLY_VERSION value and the live charly release behavior; the inventory
was measured live against the umbrella). The tier is NOT fully tested and validated
because the reusable's own GitHub Actions execution and the cutover's real org-wide
App-token DELETE were NOT run — the cutover is a one-shot operator dispatch (not
exercised on this PR), and the reusable's git clone + go build needs network. That
is the self-install class (the change IS org CI infrastructure), stated honestly rather
than inflated.

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: loaded /charly-internals:git-workflow (branch/PR/no-force-push
    discipline, the body-before-push and POISON rules) and /charly-internals:agents
    (the validator/fresh-validator model) before the first action; followed the
    .github repo's own conventions by mirroring retire-per-repo-dispatchers.sh,
    its test style, the validator-gate-harness.py real-run:-body technique, and
    validator-harness.yml wiring.
  • R1 RCA + zero warnings: the root cause is stated and evidenced (the stale
    hand-pin + the retired version: stamp; the live schema … is required (found "")
    reproduces it against the CURRENT pin). All self-tests pass with zero warnings; no
    flake/transient/environmental framing. Every validator finding was RCA'd: the
    374-vs-376 gap is the 2 submodule-gitlink stubs (resolved to the 16th pin
    v2026.251.0841); the untested branches now have mutation-proven coverage; and each
    "unpasted evidence" finding was closed by re-running the command and pasting its real
    output — including the round-3 finding that a signature-sweep "output" line was a
    hand-transcribed echo template (replaced by the wc -l form, pasted from the actual
    run), and the feat(ci): ONE org candy-validate reusable + retire the per-repo candy gates #138 final findings that the gitlink line's git ls-remote <sha> form
    cannot emit (now | grep <sha>) and that the governance paste was abbreviated (now
    complete).
  • R2 no out-of-scope: the stale-pin deadlock is fixed at its source (delete the
    stale gates + provide the ONE reusable). The one thing NOT done here — naming the
    reusable as a required gate — is not parked: it is explicitly blocked on the
    charly#716 host leg producing a pin that accepts the stripped tree, and is
    documented as such. No issue is left unaddressed behind a parking phrase.
  • R3 no duplication: ONE reusable is the single source; the per-repo copies are
    deleted. The script shares lib-org.sh (discover_repos, api_status) with the
    existing cutover scripts; the reusable's coverage reuses the existing harness's
    real-run:-body driver rather than a second parser.
  • R4 no workaround: no sleeps/retries/magic numbers; the cutover is
    workflow-driven with an App token because that is the only actor that can commit on
    protected main (the same mechanism the org already uses, not an ad-hoc substitute).
  • R5 hard cutover + grep: this PR adds the new path and provides the retirement
    for the old path in the same change (the cutover is a dispatch, not a per-repo
    sweep). Grep confirms the reusable carries no hand-pin (the governance forbid row
    --branch v20 is asserted absent); no transitional/dual-mode path is introduced.
    The stale "15 pins" claim from the superseded commit was swept from every surface.
  • R6 git safety: git status + git stash list were checked before staging; no
    destructive action; the cutover script is fail-closed on any non-404 probe/metadata
    failure.
  • R7 runtime gate: N/A — no runtime behavior; the gate is the repo self-test suite (run, output above).
  • R8 artifact invariants: N/A — no image/generation change.
  • R9 binary == source + deps: N/A — no binary built or deployed; no runtime OS dep added (the reusable uses git/go/charly already required by the org validator).
  • R10 disposable + coverage: this change ships the tests that FAIL without it —
    retire-per-repo-candy-gates_test.sh (the delete + every abort/skip safety path) and
    the extended validator-gate-harness.py (the reusable's skip/fail-loud branches,
    mutation-proven above); both wired into validator-harness.yml. No disposable bed
    applies (no charly-managed resource).
  • RDD / ADE / SDD: RDD — the high-risk assumption ("deleting only the parsed
    name: candy + charly box validate stubs is safe") is proven by the test's
    negative cases (gamma real gate, delta renamed stub) AND by the live inventory
    pasted above: 376 of 378 deploy.yml files are name: candy (all 376 carry the
    signature); the other two are marketplace and docs, both SKIPPED. ADE/SDD — N/A
    (no candy and no schema/.cue in the diff).
  • Hard cutover: ONE atomic commit; no "Phase 2/TODO" in scope. The deferred
    activation names its exact gate (charly#716), not a vague follow-up.
  • Kernel/plugin boundary law: N/A — no core/sdk change.
  • Disposable-only autonomy: N/A — the cutover only deletes files via the App-token workflow; it destroys no charly-managed target.
  • Clean architecture + Go gates: N/A — no Go change. Shell scripts are
    bash -n-clean (output above); shellcheck is not installed in this environment.
  • CHANGELOG: the CHANGELOG entry is written post-merge by the org
    tag-on-merge workflow from this PR body (the body IS the changelog), so no
    placeholder is staged — matching the repo's recent merged PRs (feat(ci): the cross-surface governance reconciliation gate (+ drop the dangling rerun-listener ref) #128, fix(ci): point the marketplace claims at the generated file that carries them (full-green) #132, feat(ci)!: retire the rerun-label channel; body-fix rerun is manual gh run rerun #134),
    none of which carry a CHANGELOG/ file in their diff; the tag commit
    (docs: add CHANGELOG <CalVer> for PR #<n>) lands afterwards.

Assisted-by: opencode Ollama Cloud deepseek-v4.1-flash (analysed on a live system)

…y gates

~376 opencharly repos carried a hand-rolled .github/workflows/deploy.yml
(name: candy, job build) that CI-time-cloned opencharly/charly at a HAND-PINNED
tag and ran charly box validate. 298 were frozen at v2026.238.1242; the candy
stubs carry 16 distinct charly pins (374 at an inline v2026.* tag across 15
distinct tags, plus plugin-herdr/pod-herdr at a submodule gitlink
v2026.251.0841), and nothing advanced them. The schema-versioning-removal cutover
deleted the authored version: field, so the old pinned charly REQUIRES the retired
stamp and every version-strip PR failed its OWN repo CI.

ONE org-level source replaces that class:
- .github/workflows/candy-validate.yml — on: workflow_call reusable cloning charly
  at vars.CHARLY_VERSION (single knob), running charly box validate, skipping
  cleanly when a repo has no charly.yml, failing loud when the pin is unset.
- scripts/retire-per-repo-candy-gates.sh + the App-token workflow — one-shot cutover
  deleting a deploy.yml ONLY when its parsed name is exactly candy AND it carries the
  charly box validate signature; marketplace/docs/every real gate are skipped.
- scripts/retire-per-repo-candy-gates_test.sh — offline mock-gh coverage.
- .github/tests/validator-gate-harness.py — drives the reusable's real run: bodies
  offline (skip + fail-loud branches), mutation-proven.
- two governance-claims rows pinning the single-knob invariant; README docs.

Activation as a required gate is deliberately deferred: the current pip
vars.CHARLY_VERSION still REQUIRES the retired stamp, so a required gate now would
re-break the same PRs; the retirement removes the deadlock either way. No org-ruleset
change and no new required check.

Assisted-by: opencode Ollama Cloud deepseek-v4.1-flash (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 18eb16b4304df4743ec89ba91dc7562cc9cb59cd (branch: feat/org-candy-validate-v2)

Security screen: PASS — no rulebook/validator-spec edit, no secrets added, no egress, no gate weakened (org ruleset untouched, no org-ruleset.sh change; the App-token delete is an additive one-shot cutover mirroring the existing retire-per-repo-dispatchers precedent, and merging deletes nothing).
Checklist: All applicable rules PASS or NA (additive hook/workflow + shell change; ADE/SDD/RDD-runtime/R8/R9/R10-bed N/A with stated reasons; new behaviour ships wired, mutation-proven coverage).
Comments: none — empty thread, nothing to disposition.
Tool-limited cross-check: cannot re-run the harness/script/beds; pasted evidence reconciles internally (376 = 374 inline + 2 gitlink; 374 across 15 tags; 376+1+1 = 378; governance checked=4 skipped=30 fail=0; harness 18 scenarios/298 assertions; delete-failure counters retired=0 absent=1 skipped=2 failed=1; attribution analysed on a live system is not inflated). The probe's WARNING: charly is a dev/worktree build… is a self-describing artifact of running the release binary un-installed, not gate output. Deferred activation is blocked on the named charly#716 host leg — not blockable (rule 3).

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 28, 2026 14:07
@github-actions
github-actions Bot merged commit fb1d789 into main Sep 28, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 28, 2026
github-actions Bot pushed a commit to opencharly/layer-ripgrep that referenced this pull request Sep 28, 2026
…#3)

The #286 docs named .github/workflows/deploy.yml as the gate; that per-repo gate
was retired org-wide by opencharly/.github#141. This repo now has only
tag-on-merge.yml, and the merge gate is the org-wide charly/pr-validator
(required check validate / validate). Rewrites the false references; no behavior
change. Refs #286, #293.

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-nvidia that referenced this pull request Sep 28, 2026
…#8)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-supervisord that referenced this pull request Sep 28, 2026
…#5)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-android-test-apps that referenced this pull request Sep 28, 2026
…#4)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-agentteams-openclaw that referenced this pull request Sep 28, 2026
…#3)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Normalize the validate line: no CI candy gate remains. Refs #286, #293.

* docs: re-freeze with the R5-scoped sweep evidence (#293)

* docs: re-freeze with R5-scoped sweep evidence (#293)

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-a11y-tools that referenced this pull request Sep 28, 2026
…#7)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Normalize the validate line: no CI candy gate remains. Refs #286, #293.

* docs: re-freeze with the R5-scoped sweep evidence (#293)

* docs: re-freeze with R5-scoped sweep evidence (#293)

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-agentteams that referenced this pull request Sep 28, 2026
…#8)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Normalize the validate line: no CI candy gate remains. Refs #286, #293.

* docs: re-freeze with the R5-scoped sweep evidence (#293)

* docs: re-freeze with R5-scoped sweep evidence (#293)

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-android-apidemos that referenced this pull request Sep 28, 2026
…#4)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Normalize the validate line: no CI candy gate remains. Refs #286, #293.

* docs: re-freeze with the R5-scoped sweep evidence (#293)

* docs: re-freeze with R5-scoped sweep evidence (#293)

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-android-sdk that referenced this pull request Sep 28, 2026
…#5)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

* docs: re-freeze with the R5-scoped sweep evidence (#293)

* docs: re-freeze with R5-scoped sweep evidence (#293)

* docs: re-freeze with the per-repo dynamic evidence (#293)

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-blogwatcher that referenced this pull request Sep 28, 2026
…#4)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

* docs: re-freeze with the R5-scoped sweep evidence (#293)

* docs: re-freeze with R5-scoped sweep evidence (#293)

* docs: re-freeze with the per-repo dynamic evidence (#293)

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-agent-forwarding that referenced this pull request Sep 28, 2026
…#6)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Normalize the validate line: no CI candy gate remains. Refs #286, #293.

* docs: re-freeze with the R5-scoped sweep evidence (#293)

* docs: re-freeze with R5-scoped sweep evidence (#293)

* docs: re-freeze with the per-repo dynamic evidence (#293)

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-agentteams-cli that referenced this pull request Sep 28, 2026
…#3)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Normalize the validate line: no CI candy gate remains. Refs #286, #293.

* docs: re-freeze with the R5-scoped sweep evidence (#293)

* docs: re-freeze with R5-scoped sweep evidence (#293)

* docs: re-freeze with the per-repo dynamic evidence (#293)

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-build-toolchain that referenced this pull request Sep 28, 2026
…#3)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

* docs: re-freeze with the R5-scoped sweep evidence (#293)

* docs: re-freeze with R5-scoped sweep evidence (#293)

* docs: re-freeze with the per-repo dynamic evidence (#293)

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-cachyos-extras that referenced this pull request Sep 28, 2026
…#4)

* fix(docs): drop the deleted per-repo deploy.yml gate reference (#293)

The #286 docs named .github/workflows/deploy.yml as the gate; retired org-wide by opencharly/.github#141. The merge gate is the org-wide charly/pr-validator (required check validate / validate). Refs #286, #293.

* fix(docs): state the org-wide pr-validator gate accurately (#293)

Prior replacement presented .github/workflows/ (a directory) as the gate. State the real merge gate: the org-wide charly/pr-validator (required check validate / validate, defined in opencharly/.github); this repo has no per-repo candy gate. Refs #286, #293.

* docs: re-freeze with the R5-scoped sweep evidence (#293)

* docs: re-freeze with R5-scoped sweep evidence (#293)

* docs: re-freeze with the per-repo dynamic evidence (#293)

---------

Co-authored-by: atrawog <[email protected]>
@aitrawog
aitrawog deleted the feat/org-candy-validate-v2 branch September 28, 2026 22:35
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.

2 participants