Repository navigation
chore: sync gitlinks - #229
charly-auto-merge[bot] wants to merge 1 commit into
Conversation
[step: review]Review — BLOCKHead SHA: Change class: gitlink-only (4 submodule pointer bumps: Security screen: PASS — no secrets, no code, no guardrail/CI-script edits, no new deps; the diff is four Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…HEAD (#230) * fix(sync): the generated body proves each moved pin's default-branch 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). * fix(sync): testable pin-evidence + staged-gitlink proof in the generated 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. * fix(sync): read the STAGED index gitlink + stop the fixture corrupting 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. * docs: re-freeze the PR body against the final head 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. * fix(sync): the unstaged-path fallback was dead — rev-parse :path echoes 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. --------- Co-authored-by: charly-auto-merge[bot] <319588822+charly-auto-merge[bot]@users.noreply.github.com>
|
Superseded by a fresh sync run. This PR was cut at base |
Summary
Automated gitlink sync: every umbrella submodule pin advanced to what policy B
requires —
charlyto its own default-branch HEAD,distro-*to exactly the commitscharly's own gitlinks pin, everything else to its own default branch.
4 gitlink(s) moved.
Every changed path, named
Each entry is a submodule pointer, not file content: the umbrella records which
commit of each repo the snapshot means. The content behind every one of them was
reviewed and gated by that repo's own
pr-validatorbefore it was tagged. This PRcannot review it and does not restate it.
How tested
What produced this diff, pasted from the run that opened this PR — the producer's
own resolution for EXACTLY the moved pins, filtered from /tmp/sync-pins.log by the
moved-path set. (The log holds ~400 pin lines in one pass, so a fixed slice of it
cannot name the moved set in general; the filter matches each moved path exactly.)
Policy B is asserted by a REAL gate that runs on this PR, pasted verbatim from
this run.
scripts/check-policy-b.shreads charly's own gitlinks withgit ls-tree(tree objects — present in a shallow clone; charly's NESTED submodules need not be
initialised) and asserts every umbrella
distro-*gitlink equals it — the onepinning assertion this PR's diff can violate:
Each moved pin is also a real commit on the owning repo's default branch (the
producer resolves
origin/<branch>/ charly's gitlink; it never pins a PR branch).Change classification
Harness rulebook compliance
/charly-internals:git-workflow; this PR isproduced by the workflow that skill describes.
cannot resolve rather than guessing; no warning appears in the pasted output.
moved gitlink belongs to its OWNING repo (which gated it before tagging).
scripts/check-policy-b.sh— the ONEimplementation
verify-pins.shalso calls.the producer never pins a PR branch.
main.N/A — no generated artifact/OCI label.N/A — no binary is built by this workflow.N/A — a gitlink bump; the coverage is the policy-B gate pasted above, which fails if adistro-*` pin diverges from charly's gitlink.a doc. ADE — no candy. SDD —
N/A, no schema/generated-code change.N/A — no destroy/rebuild.Attribution
This body is emitted by the fixed, model-free
printf/echoblock in.github/workflows/sync.yml(visible in this workflow's committed source). Theruntime identity is the GitHub Actions runner itself.
Assisted-by: GitHub Actions ubuntu-latest (fully tested and validated)