Skip to content

fix(sync): the generated body proves each moved pin's default-branch HEAD - #230

Merged
github-actions[bot] merged 5 commits into
mainfrom
fix/sync-body-pin-gate
Sep 20, 2026
Merged

github-actions[bot] merged 5 commits into
mainfrom
fix/sync-body-pin-gate

Conversation

@atrawog

@atrawog atrawog commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the validator findings on the generated sync PR opencharly/opencharly#229 by correcting the body generator in .github/workflows/sync.yml (the sync PR is bot-authored; its body is emitted by this committed block and cannot be hand-edited into truthfulness without fixing the generator).

Findings fixed:

  1. The coverage gate could not fail on the diff — the body offered scripts/check-policy-b.sh as "the one pinning assertion this PR's diff can violate", but it asserts only distro-* gitlinks, while chore: sync gitlinks #229 moved dotgithub/eval-omarchy/marketplace/sdk (zero distro-*).
  2. The default-branch claim had no per-pin evidence — only four short SHAs, no ref.
  3. The emitted "staged submodule SHA" read the wrong object — the working-tree HEAD (then HEAD:<path>), not the staged index gitlink.
  4. The self-test had no coverage of the staged-gitlink read, and it corrupted the calling repo (R1): git exports GIT_DIR/GIT_INDEX_FILE to hook processes, and git -C <dir> does not override them, so the fixture's git config/update-index wrote into the umbrella (measured: core.bare=true, user.name=t, a stray sub gitlink).

Fix. The pin-evidence logic is extracted into a committed, self-testing script, scripts/sync-pin-evidence.sh:

  • staged_gitlink reads the STAGED INDEX gitlink with git rev-parse --verify --quiet :<path> (the index entry), falling back to git ls-tree HEAD -- <path> only when the path is not in the index (already committed, so HEAD is the recorded pin). It never reads the submodule working tree (finding 3) — and it scrubs GIT_DIR/GIT_INDEX_FILE/GIT_WORK_TREE/… so it always targets the repo it names (finding 4).
  • --verify --quiet + || true are the load-bearing fix for the fallback: bare git rev-parse ":$p" echoes the literal :<path> token on failure and exits non-zero, so the old [ -n "$sha" ] guard passed and the ls-tree HEAD fallback was dead code (the validator's block on the previous head). --verify --quiet prints nothing and exits 1; || true keeps that from aborting under set -e.
  • The body prints, per moved pin, staged-gitlink=<sha> remote-HEAD=<sha> [kind, EQUAL|not-equal] (finding 2).
  • Policy B is offered as coverage only when a distro-* pin moved; otherwise the body says so plainly and names the per-pin evidence as the real coverage (finding 1).
  • --self-test covers the classification (both ways), the equality, the coverage branch (both directions), a real fixture repo where the staged pin differs from HEAD, and the unstaged-path fallback (an absent path → empty; a path in HEAD but removed from the index → HEAD's pin) — each arm fails without its logic. It is wired into the pre-commit gate.

Commit set (this branch is append-only; main receives a squash): fa9ba3f, af69343, 20e8c51, the content fix 9669767, and the empty re-freeze commit c670023.

Files: .github/workflows/sync.yml (+20/−17), hooks/pre-commit (+3), scripts/sync-pin-evidence.sh (new, +190; executable). 3 files, +213/−17.

$ git diff --numstat origin/main...HEAD
20	17	.github/workflows/sync.yml
3	0	hooks/pre-commit
190	0	scripts/sync-pin-evidence.sh

$ git diff --stat origin/main...HEAD
 .github/workflows/sync.yml   |  37 +++++----
 hooks/pre-commit             |   3 +
 scripts/sync-pin-evidence.sh | 190 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 213 insertions(+), 17 deletions(-)

Closes / relates to: supersedes the body of opencharly/opencharly#229.

Breaking change + rollback: none — body-emission only.

How tested — the real command outputs

All of the following were run on the frozen head 9669767; pasted verbatim.

1. The committed self-test (B12 coverage) and the umbrella pre-commit gate:

$ bash scripts/sync-pin-evidence.sh --self-test
sync-pin-evidence: self-test OK (per-pin classification both ways; coverage both directions; staged-gitlink reads the index + falls back to HEAD)
exit=0

$ bash scripts/check-policy-b.sh && bash scripts/check-harness-parity.sh && bash scripts/sync-dispatcher.sh --self-test && bash scripts/sync-pin-evidence.sh --self-test
check-policy-b: OK — 6 distro pins equal charly's gitlinks
check-harness-parity: OK — 5 shared harness files identical to charly/
sync-dispatcher: self-test OK (splice writes, steady-state passes, stale fails)
sync-pin-evidence: self-test OK (per-pin classification both ways; coverage both directions; staged-gitlink reads the index + falls back to HEAD)
exit=0

2. B12 — each new-logic arm, reverted, FAILS the self-test (full output):

## arm 1 — misclassify distro-* as default-branch:
FAIL: sync-pin-evidence self-test: distro-* row not classified charly-pinned/not-equal
exit=1

## arm 2 — make the staged/remote equality always not-equal:
FAIL: sync-pin-evidence self-test: distro-* equal staged/remote not EQUAL
exit=1

## arm 3 — invert the coverage branch:
FAIL: sync-pin-evidence self-test: 0 distro moved should NOT offer policy B
exit=1

## arm 4 — staged_gitlink reads HEAD instead of the staged index:
FAIL: sync-pin-evidence self-test: staged_gitlink read '1111111111111111111111111111111111111111', want the STAGED index pin (2222…), not HEAD/working-tree
exit=1

## arm 5 — drop `--verify --quiet` (the bare rev-parse token-echo defect):
FAIL: sync-pin-evidence self-test: staged_gitlink on an absent path read ':absent-path', want empty (no index entry, no HEAD entry)
exit=1

## arm 6 — remove the `ls-tree HEAD` fallback:
FAIL: sync-pin-evidence self-test: staged_gitlink fallback read '', want HEAD's 3333… for an unstaged path
exit=1

3. The GIT_DIR-corruption fix, proven inert under the exact hook environment:

$ GIT_DIR=/…/opencharly/.git GIT_INDEX_FILE=/…/opencharly/.git/index bash scripts/sync-pin-evidence.sh --self-test
sync-pin-evidence: self-test OK (per-pin classification both ways; coverage both directions; staged-gitlink reads the index + falls back to HEAD)
exit=0
$ md5sum /…/opencharly/.git/config
5d8bea7187f4bee4d40ff050ea702852  (before == after; UNCHANGED)
$ git -C /…/opencharly config --get core.bare   # empty / unset (good)
$ git -C /…/opencharly ls-files --stage sub     # empty — no stray gitlink

4. The generated run: block is valid bash:

$ yq -e '.jobs.sync.steps[] | select(.name=="Open sync PR") | .run' .github/workflows/sync.yml > /tmp/opencode/x.sh && bash -n /tmp/opencode/x.sh
exit=0

5. The generated per-pin table, produced by the real script (moved set = the four #229 paths; not-equal is expected because this branch is based on the OLD origin/main pins — the sync run re-runs it against its own staged pins, where each is the merged default-branch HEAD):

$ printf "%s\n" dotgithub eval-omarchy marketplace sdk | bash scripts/sync-pin-evidence.sh "$PWD" /tmp/opencode/pb.log
**Default-branch HEAD, per moved pin.** For each moved path: the STAGED
GITLINK this PR records (`git rev-parse --verify --quiet :<path>` from the index, `git ls-tree HEAD` fallback) beside the owning
remote default-branch HEAD (`git ls-remote <url> HEAD`). `charly` and every
non-`distro-*` repo must be EQUAL; a `distro-*` pin tracks charly's own gitlink
and is proven by policy B, so it is marked `charly-pinned` and not required
equal here:

  dotgithub                    staged-gitlink=5f7c86803e35 remote-HEAD=a4dbd246a53e  [default-branch HEAD, not-equal]
  eval-omarchy                 staged-gitlink=3bc88873d728 remote-HEAD=40767ccbe3ea  [default-branch HEAD, not-equal]
  marketplace                  staged-gitlink=dd16d3dd379b remote-HEAD=b2410903e276  [default-branch HEAD, not-equal]
  sdk                          staged-gitlink=7343d34e3f15 remote-HEAD=1b4fc040b75d  [default-branch HEAD, not-equal]

**Policy B is NOT offered as this diff's coverage:** it asserts the umbrella
`distro-*` gitlinks equal charly's own, and **this diff moved zero `distro-*`
pins**, so that gate cannot fail on this diff. The coverage for the pins that
DID move is the per-pin `git ls-remote` default-branch evidence above (and, for
`charly`, its own default-branch HEAD). For transparency the policy-B gate still
ran and passed:

policy-b placeholder
exit=0

(The policy-b placeholder line is this local run's injected stand-in for the policy-B log; in the generator the real check-policy-b.sh output is appended there.)

Harness rulebook compliance

  • R0 skills: /charly-internals:git-workflow loaded.
  • R1 RCA + zero warnings: all findings real. Finding 4 (the self-test writing into the caller) was root-caused to GIT_DIR being exported to hooks and -C not overriding it. The previous head's block (the dead ls-tree HEAD fallback) was root-caused to bare git rev-parse :<path> echoing the literal token on failure — fixed with --verify --quiet and proven by new arms 5/6. Zero warnings.
  • R2 no out-of-scope: all findings are fixed here.
  • R3 no duplication: the per-pin logic lives ONCE in scripts/sync-pin-evidence.sh; policy B remains the one distro-* gate.
  • R4 no workaround: no hand-edit of a bot PR body; the generator is fixed and the logic is testable.
  • R5 hard cutover + grep: the old unconditional policy-B-as-coverage text is replaced.
  • R6 git safety: append-only commits; no force-push.
  • R7 runtime gate: the run block is bash-checked; the new script's self-test runs in the gate.
  • R8/R9: N/A — no artifact/binary.
  • R10 disposable + coverage: the committed self-test is the coverage and fails without each new arm (six arms pasted above).
  • Hard cutover: the fix shipped as content commits plus one empty re-freeze commit; no two cutovers share this PR.
  • CHANGELOG: N/A by construction — written at merge from this body.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

…HEAD

Two validator findings on the last sync PR (#229):
- the body offered check-policy-b.sh as the diff's coverage, but that gate
  asserts only distro-* gitlinks and the diff moved zero distro-* pins, so
  it could not fail on the change;
- the default-branch claim was asserted with no per-pin evidence.

The body now pastes, per moved path, the staged submodule SHA beside the
owning repo's remote default-branch HEAD (git ls-remote <url> HEAD), marks
distro-* as charly-pinned, and states truthfully whether policy B is this
diff's coverage or not (offered as coverage ONLY when a distro-* pin moved).
@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: fa9ba3fbee57afee924a087cc1875d27b868fcc6 (branch: not returned by get_pr_meta; base b50912fffd6e)

Change class: hook/workflow — .github/workflows/sync.yml body generator (YAML + embedded bash), 1 file, +58/−13. No Go, no candy, no schema, no artifact. Security screen: no finding (the change does not touch the pre-push/pre-commit gate, branch protection, this validator's spec, or the rulebook; it makes the emitted body more truthful, so T4 is not triggered).

Blocks

  1. B12/R10 — the new behaviour ships no test that would fail without it. The diff adds ~40 lines of new logic (the per-pin ls-remote table at sync.yml:~200-213 and the DISTRO_MOVED coverage branch at sync.yml:~217-231) and no test/hook anywhere in the diff. The repo demonstrably self-tests sync scripts — the body's own pasted gate output contains sync-dispatcher: self-test OK (splice writes, steady-state passes, stale fails) — so this logic is testable and the coverage is simply absent. The body's ad-hoc mock run is not committed coverage. Fix: add a self-test (in the same style as the sync-dispatcher self-test) that fails without the new per-pin/coverage logic.

  2. A1 / rule 4 / A3 — the "How tested" output is synthesized, not pasted, so the fully tested and validated tier is unsupported. The pasted block is not real command output:

    • bash -n prints nothing on success; the body shows BASH SYNTAX OK as if it were output.
    • The command line is a placeholder, not a command: $ python3 <extract 'Open sync PR' run block> ; bash -n /tmp/opencode/sync-run.sh.
    • The per-pin "output" elides the very fields the code prints (printf ' %-28s staged=%.12s remote-HEAD=%.12s [%s, %s]\n' → body shows dotgithub ... [default-branch HEAD, EQUAL]), and the coverage section is an arrow summary (MOVED=dotgithub,distro-arch -> DISTRO_MOVED=1 -> …), not a transcript. That summary is also not producible as written: grep -c '^distro-' on a comma-joined MOVED yields 0, so either the mock is not verbatim output or MOVED's format is undocumented.
      Fix: paste the real transcript — real command, real output, real staged=/remote-HEAD= values — or drop the tier to what the evidence supports.
  3. T3 description↔code mismatch — the emitted "staged submodule SHA" is not the staged gitlink. The generated body asserts "the staged submodule SHA vs the owning repo's remote default-branch HEAD", but the code reads staged=$(git -C "$p" rev-parse HEAD …) (sync.yml:~202) — the submodule's working-tree HEAD, not the staged gitlink (git rev-parse ":$p" / git ls-tree HEAD -- "$p"). If the submodule working tree is not at the staged pin (or is uninitialised), the code emits ? and reports not-equal for a correctly pinned repo — i.e. the new "proof" can be false, which is exactly the defect this PR claims to fix. Fix: read the staged gitlink, or prove in the body that the working tree equals the staged pin.

Verdict: BLOCK


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

View action run

…ted body

Addresses all three validator findings on #230:
- B12: extract the per-pin evidence logic into a committed, SELF-TESTING script
  (scripts/sync-pin-evidence.sh --self-test), wired into the pre-commit gate;
  its three arms (classification, equality, coverage branch) each make the
  self-test FAIL when broken (proven).
- T3: read the STAGED GITLINK (git ls-tree HEAD -- <path>), never the submodule
  working-tree HEAD, so an uninitialised/other-commit submodule cannot turn a
  correct pin into a false not-equal.
- A1: the body now calls that script, so the evidence is real command output.

The generated body states truthfully whether policy B can fail on THIS diff.
@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: af69343bf6674bb67ad9997ed2af9ed028ea9513 (branch: not returned by get_pr_meta; base b50912fffd6e)

Change class: hook/workflow — umbrella sync.yml body generator + hooks/pre-commit + new scripts/sync-pin-evidence.sh. 3 files, +147/−17. No Go, no candy, no schema, no artifact.
Placement (B16): CORRECT — umbrella tooling only; no charly core/sdk/candy surface touched, no alias file, no core import.
Security screen: no finding — the pre-commit gate is only extended (a new self-test step), not weakened; no secrets/egress/scope mismatch beyond the body-accounting defect below.

Blocks

  1. A1 — the body is stale and does not account for 2 of the 3 changed files. The body's **Files:** line names only .github/workflows/sync.yml (+58/−13) and never mentions scripts/sync-pin-evidence.sh (new, 124 lines) or hooks/pre-commit (+2). That file list and line count match the previous head fa9ba3fbee57, not the current head af69343bf667 (147 additions across 3 files). Fix: rewrite the Summary/Files to account for the new script and the pre-commit hook change, with the current counts.

  2. A1 / rule 4 — the pasted pre-commit output contradicts the diff. The diff adds bash "$ROOT/scripts/sync-pin-evidence.sh" --self-test to hooks/pre-commit:33, which prints sync-pin-evidence: self-test OK (per-pin classification both ways; coverage both directions). The body's pasted "The umbrella gate (pre-commit) ran green on the committed tree" transcript ends sync-dispatcher: self-test OK … → pre-commit: OK and omits that line, so it cannot be output of the committed tree. Fix: paste the real transcript of the current tree (including the new step's line).

  3. A3 — fully tested and validated is unsupported. The new script's self-test execution is evidenced nowhere in the body, and the "How tested" block is a synthesized/elided mock, not a transcript: the command is a placeholder ($ python3 <extract 'Open sync PR' run block> ; bash -n /tmp/opencode/sync-run.sh), BASH SYNTAX OK is not bash -n output (it prints nothing on success), and the per-pin rows elide the very fields the code prints (staged-gitlink=… remote-HEAD=…) as dotgithub … [default-branch HEAD, EQUAL]. Fix: paste the real command + real output (including the --self-test run), or drop the tier to what the evidence supports.

  4. B12 — the self-test does not cover the live staged-gitlink read. --self-test exercises pin_row/coverage_note with fixtures only; nothing exercises staged=$(git ls-tree HEAD -- "$p" …) / the git rev-parse ":$p" fallback in the live path (scripts/sync-pin-evidence.sh:96-99). The self-test would still pass if that line reverted to the submodule working-tree HEAD — the exact defect this PR claims to fix. Fix: add a fixture-repo case that fails when the staged gitlink (not the working-tree HEAD) is read.

Comment intake: comment 5750520579 (github-actions[bot], head fa9ba3fbee57) — its finding 1 (no committed test) and finding 3 (working-tree HEAD instead of staged gitlink) are stale-superseded: the current head adds scripts/sync-pin-evidence.sh --self-test wired into hooks/pre-commit, and reads git ls-tree HEAD -- "$p". Its finding 2 (synthesized "How tested" output) is verified-blocking and re-derived above as blocks 2–3.

Verdict: BLOCK


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

View action run

…g the caller

Two defects in the pin-evidence self-test and live path:

1. The live path read the staged pin with `git ls-tree HEAD`, but the body is
   generated AFTER `git add -A` and BEFORE the commit, so HEAD still names the
   OLD snapshot. Read the INDEX (`git rev-parse :<path>`) via `staged_gitlink`.
2. R1 CORRUPTION: git exports GIT_DIR/GIT_INDEX_FILE to hook processes, and
   `git -C <dir>` does NOT override them — so the self-test's fixture `git`
   calls wrote into the CALLING repo (measured: the umbrella's config gained
   `bare=true`, `user.name=t`, and a stray `sub` gitlink). Both the fixture
   ops and `staged_gitlink` now scrub those vars first; verified inert under a
   simulated hook env.

A fixture-repo self-test arm pins the staged-gitlink read: reverting to HEAD or
the submodule working-tree HEAD FAILS the self-test.
@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 20e8c51acba481cd245fa90158e8cf7073fde9c6 (branch: not returned by get_pr_meta; base b50912fffd6e)

Change class: hook/workflow — umbrella sync.yml body generator + hooks/pre-commit + new scripts/sync-pin-evidence.sh. 3 files, +188/−17. No Go, no candy, no schema, no artifact.
Placement (B16): CORRECT — umbrella tooling only; no charly core/sdk/candy surface, no alias file, no core import.
Security screen: no finding — the pre-commit gate is only extended (a new self-test step at hooks/pre-commit:33), not weakened; no secrets/egress/scope mismatch beyond the body-accounting defects below.

Blocks

  1. A1 / rule 4 — the body's pasted self-test output is stale; it cannot be output of this head. Body items 1 and 3 paste sync-pin-evidence: self-test OK (per-pin classification both ways; coverage both directions), but the current script prints …; staged-gitlink reads the index) (scripts/sync-pin-evidence.sh:115). The pasted transcript is the pre-20e8c51 output (the third commit added the fixture and the third clause), so the body's evidence contradicts the current diff. Fix: re-run the gate on this head and paste the real transcript.

  2. A1 — the body's file accounting is stale. **Files:** claims .github/workflows/sync.yml (+25/−17) and scripts/sync-pin-evidence.sh (new, +124). The current diff is sync.yml +20/−17, the new script 165 lines (@@ -0,0 +1,165 @@), total +188/−17 across 3 files. Fix: update the counts to the current head.

  3. A1 / A3 / rule 4 — the B12 revert proof and the per-pin transcript are elided placeholders, not pasted output. Item 4 arms 2 and 3 show literal ... in place of the FAIL message (FAIL: sync-pin-evidence self-test: ...), and item 5's header/coverage lines are elided with .... The fully tested and validated tier rests on this evidence; an elided placeholder is not a transcript (B14d). Fix: paste the real command output for all three arms and the full per-pin section, or drop the tier to what the evidence supports.

  4. A1 / T3 — the body misdescribes the mechanism it ships. The body says the script "reads the STAGED GITLINK (git ls-tree HEAD -- <path>)" — that is only the fallback; the primary read is the index (git rev-parse ":$p", scripts/sync-pin-evidence.sh:63). The body also claims "Hard cutover: one atomic commit", while the history carries three commits (fa9ba3fbee57, af69343bf667, 20e8c51acba4). Fix: describe the actual read and the actual commit set.

Comment intake

  • 5750520579 (head fa9ba3fbee57) — finding 1 (no committed test) and finding 3 (working-tree HEAD instead of staged gitlink): stale-superseded (the current head adds scripts/sync-pin-evidence.sh --self-test wired into hooks/pre-commit, and reads the index gitlink). Finding 2 (synthesized "How tested" output): verified-blocking, re-derived as blocks 1 and 3.
  • 5750558815 (head af69343bf667) — block 1 (body omits the new script/pre-commit): stale-superseded (the body now names all three files). Block 2 (pasted gate output omits the new step's line): stale-superseded in form, re-derived as block 1 (the line is present but carries the stale suffix). Block 3 (synthesized output): verified-blocking → blocks 1 and 3. Block 4 (self-test does not cover the live staged-gitlink read): stale-superseded (the fixture at scripts/sync-pin-evidence.sh:99-113 now fails if the working-tree HEAD is read).

Verdict: BLOCK


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

View action run

Body-only correction (validator re-trigger): the head is unchanged in content;
this empty commit exists solely so the org validator re-reviews the PR against
the corrected body. Tree is identical to 20e8c51.
@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: c6700236abb2819477cd0d1d26a60020f8567411 (branch: not returned by get_pr_meta; base b50912fffd6e)

Change class: hook/workflow — umbrella sync.yml body generator + hooks/pre-commit + new scripts/sync-pin-evidence.sh. 3 files, +188/−17. No Go, no candy, no schema, no artifact.
Placement (B16): CORRECT — umbrella tooling only; no charly core/sdk/candy surface, no alias file, no core import.
Security screen: no finding — hooks/pre-commit is only extended (a new self-test step at hooks/pre-commit:33), not weakened; no secrets/egress/scope mismatch.

Blocks

  1. B14(a) / T3 — the ls-tree HEAD fallback in staged_gitlink is unreachable, and the body describes it as functional. scripts/sync-pin-evidence.sh:63 reads sha=$(git -C "$root" rev-parse ":$p" 2>/dev/null). Under the script's own set -euo pipefail (line 22), a simple command consisting only of an assignment completes with the command substitution's exit status, so a failing git rev-parse (path not in the index) aborts the script before the || fallback on line 64 can run. The fallback arm is therefore dead code, and the body's claim that the script "falls back to git ls-tree HEAD -- <path> only when the path is not staged" describes behaviour the code cannot deliver. Nothing catches it: the --self-test fixture always stages the path, so no arm fails if the fallback stays dead (the four pasted revert arms cover classification, equality, the coverage branch and the staged read — not this). Fix: make the read non-fatal (sha=$(git -C "$root" rev-parse ":$p" 2>/dev/null || true)) or drop the fallback, and add a self-test arm for the unstaged path.

Comment intake

  • 5750520579 (head fa9ba3fbee57) — block 1 (no committed test) and block 3 (working-tree HEAD instead of the staged gitlink): stale-superseded (the current head ships scripts/sync-pin-evidence.sh --self-test wired into hooks/pre-commit, and reads the index gitlink). Block 2 (synthesized "How tested" output): stale-superseded (item 4 now pastes a real yq/bash -n command with only exit=0).
  • 5750558815 (head af69343bf667) — blocks 1 (body omits the new script/pre-commit), 2 (pasted gate output omits the new step's line), 4 (self-test does not cover the staged-gitlink read): stale-superseded (the body names all three files; item 1 pastes the full gate including the new step's line; the fixture at scripts/sync-pin-evidence.sh:99-113 fails if the working-tree HEAD is read). Block 3 (synthesized output): stale-superseded (real transcripts now pasted).
  • 5751146156 (head 20e8c51acba4) — blocks 1 (stale self-test suffix), 2 (stale file accounting), 3 (elided placeholders), 4 (mechanism misdescription / "one atomic commit"): stale-superseded — the current body pastes the …; staged-gitlink reads the index) suffix, the counts +20/−17 / +165 / +188/−17 match get_pr_diff, all four revert arms carry full FAIL text, and the body now describes the index read as primary with the ls-tree HEAD fallback and lists the four-commit set.

Verdict: BLOCK


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

View action run

…es the token

RCA of the validator block on c670023: `staged_gitlink` read the index with a
bare `git rev-parse ":$p"`. On a failure it ECHOES the literal `:path` token
and exits non-zero, so the `[ -n "$sha" ]` guard passed and the `git ls-tree
HEAD` fallback never ran — dead code. Switch to `rev-parse --verify --quiet`
(prints nothing, exits 1) with `|| true`, and add two self-test arms (an absent
path; a path present in HEAD but removed from the index) so a regression fails
the gate.
@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 9669767a73406cfec7b908013b58e6fa936e6904 (branch: not returned by get_pr_meta; base b50912fffd6e)

Change class: hook/workflow — umbrella sync.yml body generator + hooks/pre-commit + new scripts/sync-pin-evidence.sh (3 files, +213/−17). No Go, no candy, no schema, no artifact.
Placement (B16): CORRECT — umbrella tooling only; no charly core/sdk/candy surface, no alias file, no core import.
Security screen: PASS — hooks/pre-commit is only extended (a new self-test step), not weakened; no secrets/egress; the self-test path makes no network call (only the live path does git ls-remote, as before).
Checklist: All applicable rules PASS or NA. Body counts re-derived from the diff (sync.yml +20/−17, hooks/pre-commit +3, new script 190 lines = +213/−17) match get_pr_meta; the pasted self-test/coverage/table text matches the script's actual echo/printf strings verbatim; the prior block (dead ls-tree HEAD fallback) is fixed at scripts/sync-pin-evidence.sh:63 (--verify --quiet + || true) and covered by new arms 5/6.

Comment intake: all four prior github-actions[bot] reviews (heads fa9ba3f, af69343, 20e8c51, c670023) are stale-superseded — their surviving finding (comment 5751539121: the unreachable ls-tree HEAD fallback) is resolved at the current head and now has a failing self-test arm; the earlier findings (no committed test, working-tree-HEAD read, stale counts/suffix, elided placeholders) are each contradicted by the current diff/body.

Note (non-blocking): the body's commit-set line lists 9669767 before c670023, while get_pr_commits shows c670023 (17:46) precedes 9669767 (17:51); all five commits are named and every count/transcript matches the current diff.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 20, 2026 17:56
@github-actions
github-actions Bot merged commit c97a5b4 into main Sep 20, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 20, 2026
@atrawog atrawog mentioned this pull request Sep 20, 2026
@aitrawog
aitrawog deleted the fix/sync-body-pin-gate branch September 25, 2026 18:28
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