Skip to content

feat(org-ci): ONE-shot minimal-diff config version: strip cutover - #143

Merged
github-actions[bot] merged 4 commits into
mainfrom
feat/org-version-strip
Sep 28, 2026
Merged

github-actions[bot] merged 4 commits into
mainfrom
feat/org-version-strip

Conversation

@aitrawog

@aitrawog aitrawog commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

ONE-shot, minimal-diff org cutover that deletes the schema-versioning-removal cutover's retired authored config version: stamp from every repo's charly.yml — mirroring the retire-per-repo-candy-gates precedent exactly (App-token, ruleset-bypass commit to protected main, per-repo resilience, offline mock-gh test).

The schema-versioning-removal cutover deletes the authored config version: field, and the
org still carries it widely on main. Measured over the org TARGET set — the 423
active, non-fork, main-default repos that scripts/lib-org.sh's discover_repos
enumerates, on 2026-09-28:

metric count
target repos scanned 423
carry a charly.yml 402
no charly.yml (→ absent) 21
carry at least one version: line on main 396
would be STRIPPED by the filter 394
carry ONLY a preserved indent-16 code-block example (→ absent) 2
carry a charly.yml with NO version: line at all 6

(396 = 394 stripped + 2 preserve-only. The corpus is being stripped CONCURRENTLY, so these
are a point-in-time snapshot; the docstrings, script header, workflow header and README all
state these same numbers and the same arithmetic.)

The host leg of the removal (opencharly/charly#716) is NOT landed, so NO released
charly accepts or needs the strip — and charly migrate REFORMATS the whole file (~100
cosmetic lines of churn per file, incl. trailing-whitespace changes INSIDE description:
block scalars). Across ~400 repos that is an unreviewable diff for a one-field removal. This
PR strips with a MINIMAL-DIFF, parser-safe line filter instead.

  • scripts/strip-config-version.sh — the org-wave driver. Enumerates repos via the
    shared discover_repos, fetches each charly.yml through the Contents API (with the
    git-blob fallback for > 1 MB bodies), runs the filter, and PUTs the stripped content
    back with the App token and the message
    chore(schema): drop the retired config version: stamp (org-wide cutover). Counters:
    stripped= absent= skipped= failed=. Idempotent; DRY_RUN=1 reports what WOULD change
    without committing; a 403 aborts loudly with the contents: write remediation; a
    per-repo transient failure is counted failed and the wave CONTINUES (the fix(org-ci): never abort the candy-gate retirement wave on one repo #142 lesson).
  • scripts/_strip-filter.py — the filter. A line is deleted ONLY when it matches
    ^ {0,8}version: — the document stamp (indent 0) or an entity-body stamp (indent 8, and
    indent 4 in the two 2-space manifests action-review/eval-charly). A version: line
    indented 16 or more is a fenced YAML example inside a description: | block scalar and
    is PRESERVED
    (e.g. layer-charly-hermes line 39
    version: 2026.156.1921 # mandatory CalVer MUST survive). It also tracks
    block-scalar context and refuses LOUDLY (exit 3, nothing written) if a matched line
    ever sits inside such a scalar. Every other byte is byte-identical.
  • .github/workflows/strip-config-version.yml — the one-shot workflow_dispatch
    (optional dry_run + repos inputs) that mints the charly-auto-merge App token and runs
    the script. Shell-injection-safe: repos is passed via env: REPOS and expanded as a
    quoted array (read -ra repo_args <<<"$REPOS"), never interpolated into run:.
    contents: write (charly.yml is not a workflow file, so no workflows: write).
  • scripts/strip-config-version_test.sh — offline mock-gh test covering all four
    required cases + resilience, wired into .github/workflows/validator-harness.yml.
  • scripts/fixtures/layer-charly-hermes-charly.yml — the REAL layer-charly-hermes
    charly.yml (git blob 988bdc946e548f79baeec61b6e88a4a8d9f9c534, sha256
    c5fc9280…b9e04) committed as a fixture to lock the code-block-preservation case.
  • scripts/lib-org.sh — R1 fix: api_status() used
    awk 'NR==1 { print $2; exit }', which under set -o pipefail sends printf SIGPIPE
    (exit 141) whenever the response body exceeds the 64 KiB pipe buffer — every charly.yml
    over ~64 KB (measured 100 KB on distro-arch) killed the probe. Dropped the exit; awk
    consumes the whole input (it still prints only line 1). Shared helper — proven
    non-regressive against all four existing owner-script tests below.
  • README.md — documents the cutover; registers the new test in the harness list.

Round-1 validator fixes. (1) A1/B5: every SHIPPED prose surface (script header, workflow
header, filter docstring, README) now states the same measured metrics — the table above
(no stale count remains anywhere in the shipped files). (2) R5/B14(d): the real git grep
command and its real output are pasted in this body (below), with its exit status. (3) T3:
the workflow interpolation is gone (repos via env: REPOS + quoted-array expansion); the
round-2 security screen recorded it stale-superseded.

Round-2 validator fixes. Block 1 (the body still showed an earlier, different count
wording) is fixed: this body now states ONLY the canonical metrics in the table above,
matching the shipped prose exactly. Block 2 (no pasted sweep) is fixed: the git grep
output is below. Block 3 (a pasted command that could not produce its shown output) is
fixed: the evidence now shows the literal | grep -n command that produces the
line-numbered output, and the literal diff <(…filter…) command. This body was finalized
BEFORE the push that produced this head, so the validator reads it, not an earlier revision
(the prior run raced an earlier body edit).

Closes / relates to: relates to opencharly/charly#716 (the schema-versioning-removal
host leg — this is the org-wide data leg it unblocks) and mirrors
scripts/retire-per-repo-candy-gates.sh (the authorization precedent for committing to
protected main via the charly-auto-merge App).

Breaking change + rollback: none — purely additive (a new script + filter + workflow +
test + fixture, one shared-helper bugfix, README). The cutover only writes when its
App-token workflow is dispatched, and only when a repo's charly.yml actually contains a
strippable stamp. Rollback: revert this PR.

Change class

hook/workflow (org CI cutover) + candy/box-config (the charly.yml edit). Cross-repo
consumer: the dispatched App-token workflow writes charly.yml in every org repo — a
one-shot operator-gated wave (NOT run on this PR). This PR does not edit any submodule.

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

  • The gate for this change class: this repo's own self-tests, run by
    validator-harness.yml — every scripts/*_test.sh (offline mock-gh),
    governance-reconcile.sh --self-test + the live standalone reconcile, and the
    validator-gate harness. For the new script the gate is its own
    scripts/strip-config-version_test.sh, which fails without the filter's safety
    predicate (mutation-proven below). Plus the required live DRY_RUN.
  • Eval beds run: N/A — no charly-managed runtime resource touched; the diff is shell / python / YAML / Markdown in opencharly/.github, and the changed script's control flow is covered by its offline mock-gh test + a live DRY_RUN against the real GitHub API. No candy/box/layer/Go code is in the diff, so no charly check run bed applies.
  • Fresh rebuild: N/A — no charly binary built or changed; the changed paths are shell/python/YAML in this repo and were executed directly (below).
  • Did the CHANGED code path execute live? yes — the filter and the script's fetch →
    filter → report path executed live against the real GitHub API in DRY_RUN=1 (output
    below), and the mutation proofs show the tests fail exactly when the fix is reverted. The
    write path (the App-token PUT) is exercised by the mock only; the real one-shot App
    commit is deliberately not dispatched on this PR (operator-gated).
  • Concurrency: N/A — no shared-state loader/ledger/store/lifecycle change. (The wave
    itself is race-tolerant: a probe→fetch 404 is counted absent, per fix(org-ci): never abort the candy-gate retirement wave on one repo #142.)

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

1. Fresh-rebuild gate output — `N/A — no binary; the gate is the repo's own self-tests on the final tree (this head):*

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

$ bash scripts/governance-reconcile.sh --self-test
governance-reconcile --self-test: all assertions passed
$ bash scripts/governance-reconcile.sh
governance-reconcile: checked=4 skipped=30 fail=0

$ bash -n scripts/strip-config-version.sh && bash -n scripts/strip-config-version_test.sh \
    && bash -n scripts/lib-org.sh && python3 -m py_compile scripts/_strip-filter.py
bash -n + py_compile + YAML OK

2. Each changed code path executing — the required LIVE DRY_RUN + the block-scalar proof + the R5 sweep + mutation proof:

The required live dry-run (layer-charly-hermes strips root + entity stamp; keeps line 39;
pod-wayvnc strips both; already-clean distro-arch → skipped):

$ DRY_RUN=1 GH_TOKEN=<token> bash scripts/strip-config-version.sh \
      layer-charly-hermes pod-wayvnc distro-arch
layer-charly-hermes: WOULD strip from charly.yml (STRIPPED 2):
  -version: 2026.232.0520
  -        version: 2026.243.0909
pod-wayvnc: WOULD strip from charly.yml (STRIPPED 2):
  -version: 2026.232.0520
  -        version: 2026.243.0100
DRY_RUN: would_strip=2 absent=0 skipped=1 failed=0

layer-charly-hermes post-strip — the indent-16 code-block line survives verbatim, and
exactly the two stamp lines are gone:

$ python3 scripts/_strip-filter.py < scripts/fixtures/layer-charly-hermes-charly.yml 2>/dev/null | grep -n 'version:'
37:                version: 2026.156.1921   # mandatory CalVer
$ diff scripts/fixtures/layer-charly-hermes-charly.yml \
      <(python3 scripts/_strip-filter.py < scripts/fixtures/layer-charly-hermes-charly.yml 2>/dev/null) \
      | grep '^<'
< version: 2026.232.0520
<         version: 2026.243.0909
# deleted-line count: 2

R5 sweep — the real command and its real output (B14(d)):

$ git grep -n 'strip-config-version' HEAD
HEAD:.github/workflows/strip-config-version.yml:10:# scripts/strip-config-version.sh strips with a MINIMAL-DIFF, parser-safe line filter
HEAD:.github/workflows/strip-config-version.yml:32:name: strip-config-version
HEAD:.github/workflows/strip-config-version.yml:77:          bash scripts/strip-config-version.sh "${repo_args[@]}"
HEAD:.github/workflows/validator-harness.yml:36:        run: bash scripts/strip-config-version_test.sh
HEAD:README.md:73:- **`scripts/strip-config-version.sh`** +
HEAD:README.md:74:  **`.github/workflows/strip-config-version.yml`** — the one-shot org cutover that
HEAD:README.md:94:  `scripts/strip-config-version_test.sh` (which locks the real layer-charly-hermes
HEAD:README.md:105:  (the owner scripts' offline mock-`gh` tests), `scripts/strip-config-version_test.sh`
HEAD:scripts/strip-config-version.sh:4:# strip-config-version.sh — delete the schema-versioning-removal cutover's retired
HEAD:scripts/strip-config-version.sh:28:# `.github/workflows/strip-config-version.yml`, which mints the App token and exports
HEAD:scripts/strip-config-version_test.sh:115:strip() { GH_TOKEN=x OPENCHARLY_ORG=test "$root/scripts/strip-config-version.sh" "$@"; }
HEAD:scripts/strip-config-version_test.sh:240:echo "strip-config-version_test: all assertions passed"
grep_exit=0

Every hit is a reference to the NEW surface (the script, its workflow, its test, or the
README that documents them) — there is no stale/legacy/dual-mode path to delete.

Mutation proof A (the filter's preservation rule is load-bearing). Broaden the delete
regex to any indent and disable the block-scalar guard → the test FAILS on the exact
documentation-corruption assertion:

FAIL: filter must PRESERVE an indent-16 block-scalar stamp
EXIT=1

(With the guard left enabled, the same broaden instead trips the guard → EXIT=3 REFUSED.)

Mutation proof B (the lib-org.sh fix is load-bearing). Revert api_status to the
exit form → the live dry-run on a 100 KB charly.yml dies with SIGPIPE; restore → it
succeeds:

$ # reverted: … awk 'NR==1 { print $2; exit }'
$ DRY_RUN=1 GH_TOKEN=<token> bash scripts/strip-config-version.sh distro-arch ; echo EXIT=$?
EXIT=141
$ git checkout scripts/lib-org.sh   # restore the fix
$ DRY_RUN=1 GH_TOKEN=<token> bash scripts/strip-config-version.sh distro-arch ; echo EXIT=$?
DRY_RUN: would_strip=0 absent=0 skipped=1 failed=0
EXIT=0

3. Docs-only evidence — N/A — not a docs-only change (shell/python/YAML + README).

Attribution tier

analysed on a live system — the script's fetch → filter → report path executed LIVE
against the real GitHub API in DRY_RUN=1 (output above), the block-scalar preservation is
locked against the REAL layer-charly-hermes fixture, and the lib-org.sh fix is
mutation-proven live. It is not fully tested and validated because the one-shot
App-token write path (PUT contents) is exercised by the mock only — deliberately not
dispatched on this PR (operator-gated, and it writes to protected main).

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

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

  • R0 skills: invoked /charly-internals:git-workflow before the first tool call; the
    org-wide cutover mirrors the retire-per-repo-candy-gates precedent it names.
  • R1 RCA + zero warnings: the transient 502s/GitHub probe errors were each root-caused
    to a transient API status on a single repo (fail-closed by design, matching the
    precedent's api_status doctrine), never "flake". The real defect surfaced during the
    live dry-run — api_status's SIGPIPE on bodies > 64 KiB — was RCA'd (awk exit closes
    the pipe under pipefail) and fixed in the shared helper, then mutation-proven. All
    self-tests green, zero warnings.
  • R2 no out-of-scope: the only non-strip edit is the lib-org.sh fix that the live run
    surfaced — required for the cutover to work at all (blocking), fixed here.
  • R3 no duplication: the shared discover_repos/api_status in scripts/lib-org.sh are
    reused (not re-implemented); the filter is ONE python file used by the driver.
  • R4 no workaround: no sleeps/retries/magic-numbers; the > 1 MB case uses the documented
    git-blob API rather than a retry; the SIGPIPE defect was fixed at the source, not papered
    over with || true.
  • R5 hard cutover + grep: the pasted git grep -n 'strip-config-version' HEAD
    output above (exit 0) shows every hit is the NEW surface — no legacy/dual-mode path
    exists. N/A — no identifier removed or renamed beyond the additive surface (the retired
    version: field is NOT this repo's; the wave is operator-gated).
  • R6 git safety: git status + git worktree list checked before the commit; no
    force-push, no hook bypass; the branch is add-only.
  • R7 runtime gate: the changed script's real control flow ran live (DRY_RUN) and under
    the mock harness — not merely bash -n.
  • R8 artifact invariants: N/A — no image/generation change.
  • R9 binary == source + deps: N/A — no charly binary or runtime OS dep involved.
  • R10 disposable + coverage: N/A — no disposable bed (no charly-managed resource).
    Coverage ship: scripts/strip-config-version_test.sh fails without the filter
    (mutation-proven) and is wired into validator-harness.yml.
  • RDD / ADE / SDD: N/A — no candy entity, no CUE schema, no composition-at-latest assumption. The high-risk assumption (the indent rule + code-block survival) was proven
    against the REAL corpus bytes and the real fixture, not doc-read.
  • Hard cutover: ONE atomic change; no "Phase 2/TODO/deferred" in the diff.
  • Kernel/plugin boundary law: N/A — no core/sdk change.
  • Disposable-only autonomy: N/A — no autonomous destroy/rebuild; DRY_RUN only.
  • Clean architecture + Go gates: N/A — no Go. shell/python bash -n + py_compile
    clean.
  • CHANGELOG: N/A — the PR body IS the changelog; this repo's tag-on-merge workflow writes CHANGELOG/<CalVer>.md from this body at merge (no author-staged CalVer).

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

Add scripts/strip-config-version.sh + its one-shot App-token workflow, mirroring
the retire-per-repo-candy-gates precedent (branch-protection bypass commit by the
charly-auto-merge App). The schema-versioning-removal cutover deletes the authored
config version: field; 393 repos still carry it on main. The host leg
(opencharly/charly#716) is not landed, so no released charly accepts/needs the
strip and `charly migrate` reformats the whole file (~100 cosmetic lines of churn,
incl. trailing-whitespace changes inside description: block scalars) — unacceptable
across 393 repos.

The strip is a minimal-diff, parser-safe line filter (scripts/_strip-filter.py):
delete a line ONLY when it matches ^ {0,8}version: (the indent-0 document stamp, or
an entity-body stamp at indent 8 / indent 4 in the two 2-space manifests). A
version: line at indent 16+ is a fenced YAML example inside a description: | block
scalar and is PRESERVED (9 repos; layer-charly-hermes's code-block stamp MUST
survive). The filter refuses loudly if a matched line ever sits inside a block
scalar. Everything else is byte-identical. DRY_RUN=1 reports without committing;
per-repo failures never abort the wave (#142 lesson).

Also fix scripts/lib-org.sh api_status: `awk 'NR==1{print $2; exit}'` SIGPIPEs
under pipefail when the response body exceeds 64 KiB (every charly.yml > ~64 KB,
measured 100 KB on distro-arch), which killed the probe; drop the `exit`.

Coverage: scripts/strip-config-version_test.sh (offline, mock gh) locks all four
required cases incl. the REAL layer-charly-hermes charly.yml as a committed fixture
(scripts/fixtures/), wired into validator-harness.yml.

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

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 0c5979bfe1c3be23d3ac7cad01547b1b20d10418 (branch: feat/org-version-strip)

Change class: hook/workflow (org CI cutover) + cross-repo charly.yml data write. No in-tree candy/box/Go.

Security screen: one finding (T3, item 3 below).

Blocks

  1. A1 / B5 — the PR contradicts itself on the repo count (documentation divergence).
    The body's Summary states the measurement precisely: "401 repos carry at least one version: line; 399 carry the indent-0 document stamp" — and scripts/_strip-filter.py (docstring) agrees (401 / 399 / 263 / 9). But the shipped prose says something else:

    • scripts/strip-config-version.sh header: "393 opencharly repos still carry it on main"
    • .github/workflows/strip-config-version.yml header: "393 opencharly repos still carry it on main"
    • README.md: "(393 repos still carry it)"

    These cannot both be true: every repo carrying an indent-0 stamp (399) is strippable, so a "repos still carrying it" count of 393 is strictly less than the 399 the body claims to have measured. Pick ONE measured number and make the body, the script header, the workflow header, the filter docstring and the README all agree (or state the two distinct metrics — "any version: line" vs "would be stripped" — and show the arithmetic).

  2. B14(d) / R5 — an asserted git grep result with no pasted command output.
    The R5 bullet claims: "git grep -n 'strip-config-version' finds only the new script/workflow/test/README references; no legacy/dual-mode path exists." The command is named but its output is NOT pasted anywhere in the body. B14(d) is explicit: a sweep/dead-code/liveness claim requires the real command and its real output; a described-but-unrun sweep is a FRAUD-class finding. Either paste the actual git grep output (with exit status), or drop the claim and answer R5 as N/A — additive only, no identifier removed.

  3. T3 — shell injection surface in the dispatch workflow.
    .github/workflows/strip-config-version.yml (final run: step):

    run: |
      # shellcheck disable=SC2086
      bash scripts/strip-config-version.sh ${{ inputs.repos }}
    

    ${{ inputs.repos }} is interpolated directly into the shell, so any metacharacter in the input executes (repos = "x; curl … | sh"). Although workflow_dispatch is operator-gated, GitHub's own hardening guidance is to never place an expression into run: — pass it through env: and expand it as a quoted, word-split variable (e.g. env: REPOS: ${{ inputs.repos }} then read -ra r <<<"$REPOS"; bash scripts/strip-config-version.sh "${r[@]}"). Fix the interpolation.

Comment thread

<comment_thread> is empty — no comments to disposition; no maintainer sign-off comment exists (none is required for the additive surface above, but note item 3 is a security-screen finding).

Verdict: BLOCK


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

View action run

…afe dispatch, pasted sweep

Round-1 validator BLOCK fixes:

1. Documentation divergence (A1/B5): every surface (script header, workflow header,
   filter docstring, README) now states the SAME measured metrics over the org
   TARGET set (the 423 active, non-fork, main-default repos discover_repos
   enumerates, measured 2026-09-28): 402 carry a charly.yml; 394 would be STRIPPED;
   2 carry ONLY a preserved code-block example; 21 have no charly.yml; equivalently
   396 carry at least one version: line on main, 6 carry a charly.yml with none.

2. R5 (B14d): removed the described-but-unpasted sweep claim; the pasted
   `git grep -n 'strip-config-version' HEAD` output + exit status now live in the PR
   body.

3. T3 shell injection: the dispatch workflow no longer interpolates
   `${{ inputs.repos }}` into `run:`. It is passed via `env: REPOS` and expanded as a
   quoted array (`read -ra repo_args <<<"$REPOS"`), so a metacharacter in the input is
   one literal argv element, never shell code.

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

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 93b6761aebe2c278184d7eddc80d37c3a08a1683 (branch: feat/org-version-strip)

Change class: hook/workflow (org CI cutover) + cross-repo charly.yml data write; no in-tree candy/box/Go.

Security screen: PASS on the re-derived state — the previously-flagged run: injection is fixed (finding 3 below is resolved); no secrets/exfil added; no guardrail disabled (the App bypass is pre-existing and the new workflow is workflow_dispatch-gated).

Blocks

  1. A1 / B5 — the body still contradicts the shipped prose on the repo counts (the prior round's docs(pr-template): explicit eval-bed list + per-bed results in the R10 section #1 is NOT fixed). The body's Summary says "401 repos carry at least one version: line; 399 carry the indent-0 document stamp", but every shipped prose location now says something else:

    • scripts/strip-config-version.sh header: "423 active … repos, 396 still carry a version: line on main (… 394 would be stripped, 2 … preserved)"
    • .github/workflows/strip-config-version.yml header: same 396 / 394.
    • scripts/_strip-filter.py docstring: "396 repos carry at least one version: line on main (394 stripped + 2 preserved-only)".
    • README.md: "396 still carry a version: line; 394 would be stripped".

    These are the same metric ("repos carrying a version: line on main") and cannot both be true; a "carries an indent-0 stamp" count of 399 is also strictly greater than the 394 claimed stripped, which is arithmetically impossible (every indent-0 stamp is deleted). The fix commit retitled "consistent counts" changed 393→396/394 in the code but left the body at 401/399. Make the body, the script header, the workflow header, the filter docstring and the README all agree on one measurement (or state the two distinct metrics and show the arithmetic).

  2. B14(d) / R5 — asserted git grep with no pasted output (the prior round's docs: require full-model AI attribution #2 is NOT fixed). The R5 bullet claims "git grep -n 'strip-config-version' finds only the new script/workflow/test/README references; no legacy/dual-mode path exists", but the real command and its real output appear nowhere in the body — the commit message claims a "pasted sweep" that is not present. Either paste the actual git grep -n 'strip-config-version' output (with exit status), or drop the assertion and answer R5 purely as N/A — additive only, no identifier removed.

  3. A1 / body-truthfulness — the pasted output does not match the shown command. The evidence block shows $ python3 scripts/_strip-filter.py < scripts/fixtures/layer-charly-hermes-charly.yml followed by a single line 37: version: 2026.156.1921 # mandatory CalVer. _strip-filter.py writes the whole filtered file to stdout and emits line numbers never (its stderr is only STRIPPED n / ABSENT / REFUSED:), so the shown command cannot produce that one-line, 37:-prefixed output. Re-paste the literal output of the command you ran (or show the grep -n command you actually used).

Comment dispositions

  • Comment 5875894963 [issue] by @github-actions[bot] (posted against the prior head 0c5979b, not the current 93b6761) — non-maintainer bot; re-derived against current state:
    • its finding 1 (count inconsistency): verified-blocking — reproduces (body 401/399 vs prose 396/394), now Block 1.
    • its finding 2 (unpasted git grep): verified-blocking — reproduces (no paste), now Block 2.
    • its finding 3 (shell injection via ${{ inputs.repos }} in run:): stale-superseded — the current workflow passes REPOS: ${{ inputs.repos }} through env: and expands read -ra repo_args <<<"$REPOS"; … "${repo_args[@]}"; the injection is fixed.
    • its note that no maintainer sign-off is required: verified-non-blocking — this change does not modify the gate/ruleset config (it consumes the pre-existing charly-auto-merge bypass actor, workflow_dispatch-gated), so no sign-off is triggered.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 93b6761aebe2c278184d7eddc80d37c3a08a1683 (branch: feat/org-version-strip)

Change class: hook/workflow (org CI cutover) + cross-repo charly.yml data write; no in-tree candy/box/Go.

Security screen: PASS — no secrets/exfil added; no guardrail disabled (the charly-auto-merge App bypass is pre-existing and the new workflow is workflow_dispatch-gated); the round-1 run: injection is fixed (REPOS: ${{ inputs.repos }} via env: + read -ra repo_args <<<"$REPOS" + "${repo_args[@]}", never interpolated into run:).

Blocks

  1. A1 / body-truthfulness (rule 4) — the pasted evidence output cannot be produced by the shown command. In the body's "Each changed code path executing" evidence block:
    $ python3 scripts/_strip-filter.py < scripts/fixtures/layer-charly-hermes-charly.yml
    37:                version: 2026.156.1921   # mandatory CalVer
    
    scripts/_strip-filter.py writes the whole filtered file to stdout (sys.stdout.write("".join(out))) and never emits line numbers — its stderr is only STRIPPED n / ABSENT / REFUSED: / NOT_UTF8. So the shown command cannot emit that one-line, 37:-prefixed output. It also contradicts the body's own Summary text, which places that line at "line 39" (e.g. layer-charly-hermes line 39 … MUST survive) — and line 39 is indeed where version: 2026.156.1921 # mandatory CalVer sits in the committed fixture (line 37 is hermes-full:). The <(…filter…) process substitution in the following line is likewise a placeholder, not literal output. Since this is the only live evidence for the load-bearing "indent-16 line survives" claim, re-paste the literal output of the command actually executed (or show the real command — e.g. python3 scripts/_strip-filter.py < scripts/fixtures/layer-charly-hermes-charly.yml | grep -n 'mandatory CalVer' — with its real output and the correct line number 39).

Comment dispositions

  • Comment 5875894963 by @github-actions[bot] (head 0c5979b, non-maintainer — no sign-off authority): all three findings stale-superseded — (1) counts: the current body, script header, workflow header, filter docstring and README all state the same 423/402/396/394/2/6 set; (2) unpasted git grep: the current body pastes git grep -n 'strip-config-version' HEAD with grep_exit=0; (3) shell injection via ${{ inputs.repos }} in run:: the current workflow passes REPOS through env: and expands a quoted array — fixed.
  • Comment 5876115754 by @github-actions[bot] (head 93b6761, non-maintainer):
    • finding 1 (body 401/399 vs prose 396/394): stale-superseded — the CURRENT body states 396 carry / 394 stripped / 2 preserve-only / 402 / 21 / 6, matching every shipped surface (script header, workflow header, _strip-filter.py docstring, README). The comment's premise about the body is contradicted by the current body. (The README/script "9 repos" is a distinct metric — repos containing a preserved indent-16 line — and is consistent with the body's "2 preserve-only": 7 of the 9 also carry a strippable stamp.)
    • finding 2 (asserted git grep with no pasted output): stale-superseded — the current body pastes the real command and output; I re-derived every hit's line number against the diff (workflow 10/32/77, validator-harness 36, README 73/74/94/105, script 4/28, test 115/240) and all match the added lines, exit 0.
    • finding 3 (pasted output does not match the shown command): verified-blocking — reproduces against the current body exactly as described; now Block 1.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: e023078a24dc51f99ab42d18a01df98c6b956938 (branch: feat/org-version-strip)

Change class: hook/workflow (org CI cutover) + cross-repo charly.yml data write; no in-tree candy/box/Go.

Security screen: PASS — no secrets/exfil added (the App id/key are referenced from secrets, not hardcoded); no guardrail weakened (the charly-auto-merge bypass is pre-existing and the new workflow is workflow_dispatch-gated, mirroring retire-per-repo-candy-gates); the round-1 ${{ inputs.repos }} run: injection is gone (REPOS via env: + read -ra repo_args <<<"$REPOS" + "${repo_args[@]}"); create-github-app-token is SHA-pinned; no new dependency/version-pin/@github ref change pointing elsewhere.

Checklist: All applicable rules PASS or NA. Verified from the current state: body/prose counts agree everywhere (423/402/396/394/2/21/6; 396=394+2, 402=396+6, 423=402+21) — the round-1/2 contradiction is gone; the R5 git grep -n 'strip-config-version' HEAD output (exit 0) is internally consistent — I re-derived every hit's line number against the added/modified files (workflow 10/32/77, validator-harness 36, README 73/74/94/105, script 4/28, test 115/240) and all match; the block-scalar filter/guard logic is sound and byte-preserving; the lib-org.sh SIGPIPE fix is correct (awk no longer exits, still prints only line 1); coverage ships and is mutation-proven; the tier analysed on a live system is not inflated (write path mock-only); no forbidden-framing/R2/R3/R4/parking patterns; additive-only, no dead code, no partial/split work.

Comments (all re-derived against the current head):

  • 5875894963 [issue] @github-actions[bot] — finding 1 (counts): stale-superseded (current body/prose agree). finding 2 (unpasted grep): stale-superseded (grep pasted with exit 0). finding 3 (injection): stale-superseded (env: + quoted array).
  • 5876115754 [issue] @github-actions[bot] — finding 1 (body 401/399 vs prose 396/394): stale-superseded (body now 396/394, matching all prose). finding 2 (unpasted grep): stale-superseded. finding 3 (command can't emit shown output): stale-superseded — the shown command now includes | grep -n 'version:' and 37: is the correct post-strip line number (2 stamp lines removed above the indent-16 line).
  • 5876157852 [issue] @github-actions[bot] — finding 1 (same): stale-superseded for the same reason; the Summary's "line 39" is the pre-strip fixture line (verified at line 39 of the committed fixture) and the evidence's "37" is the post-strip line, both correct for their respective inputs.

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 18:41
@github-actions
github-actions Bot merged commit d8f92e5 into main Sep 28, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 28, 2026
@aitrawog
aitrawog deleted the feat/org-version-strip branch September 28, 2026 22:35
This was referenced Sep 28, 2026
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