Repository navigation
chore: sync gitlinks - #85
charly-auto-merge[bot] wants to merge 2 commits into
Conversation
The sync ran green for two dispatches and then died:
== charly-pinned repos (exactly charly's gitlinks) ==
fatal: unable to read tree (677dbbe038f2daba286dee1d00112a38547bfc6f)
##[error]Process completed with exit code 128
That message names a TREE and the real problem is a missing COMMIT, which sends
you looking at the wrong object -- I first went after charly's own checkout
before noticing 677dbbe0 is what charly's box/cachyos gitlink POINTS AT, i.e. a
distro-cachyos commit.
Root cause: a distro-* ref is an arbitrary commit, not a branch tip. Submodule
clones in CI are shallow (actions/checkout fetches them at depth 1), and
`fetch origin` brings only tips, so that commit is usually absent and `switch`
cannot resolve it. It worked until now purely because charly's gitlinks happened
to point at commits the shallow fetch already had; the moment charly adopted a
newer distro-cachyos snapshot, it did not.
Reproduced outside CI, byte-identical, and the fix verified as a clean A/B on a
shallow clone:
OLD: fetch tips, switch -> fatal: unable to read tree (677dbbe0...)
HEAD still 7b4e85f
NEW: commit absent after the tip fetch -> fetch the SHA -> switch OK
HEAD 677dbbe
The guard is `cat-file -e`, so the common case (a branch ref, already fetched on
the line above) costs nothing, and a server that refuses SHA fetches still takes
the plain path.
Failure mode was safe, which is worth recording: `set -euo pipefail` turned the
failed switch into a hard exit, so the run died rather than `git add`-ing a
submodule still parked on the wrong commit. Without it this would have produced
a plausible-looking sync PR with one silently stale pin.
Claude-Session: https://claude.ai/code/session_01Gf42A3bau77JigFYLALrnq
Review — BLOCKHead SHA: Change class: gitlink sync + shell-script change ( Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
|
Superseded — a branch-derivation artifact. Dispatching sync.yml from What it proves is the fix: this run got PAST the The fix is up as a focused PR. Once it lands, a dispatch on |
….0738 (#163) * chore: close-out the eval/fix wave — advance gitlinks (eval-omarchy #39, marketplace #293, layer-charly-internals #12, layer-charly-distros #7, dotgithub #84) + bump the pi-omarchy-eval pin to v2026.251.0738 * fix(dispatcher): actions: write is REQUIRED for the cancel-in-progress concurrency dedupe (otherwise dispatches fail to expand — the #163 infra regression) * revert(dispatcher): drop the actions:write permission line from #163 — T4-deferred (no maintainer sign-off granted); the dispatcher works without it post-#85 and the dedupe cannot cancel without the permission anyway. #163 is now a pure gitlink+pin change: no workflow permission change.
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.
33 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
scripts/verify-pins.sh(task verify) — the full pinning gate,which fails closed on a dangling pin, a dirty submodule, or a policy-B violation.
It runs on this PR.
scripts/sync-gitlinks.sh, whose output is the diff above. The pinsare resolved from each repo's actual default-branch HEAD over the network, never
hand-written.
Change classification
Authorship
No
Assisted-by:footer, deliberately. Rule A1 requires that line on anAI-authored body. This body is emitted by a fixed block in
.github/workflows/sync.ymlwith no model in the loop, so there is no harness and noprovider model to name; inventing one to satisfy the pattern would be the false claim
the rule exists to prevent.
Generated by:
.github/workflows/sync.yml(deterministic; no model).