Skip to content

chore: sync gitlinks - #85

Closed
charly-auto-merge[bot] wants to merge 2 commits into
mainfrom
sync/20260831-093045
Closed

charly-auto-merge[bot] wants to merge 2 commits into
mainfrom
sync/20260831-093045

Conversation

@charly-auto-merge

Copy link
Copy Markdown
Contributor

Summary

Automated gitlink sync: every umbrella submodule pin advanced to what policy B
requires — charly to its own default-branch HEAD, distro-* to exactly the commits
charly's own gitlinks pin, everything else to its own default branch.

33 gitlink(s) moved.

Every changed path, named

charly-streamer
layer-a11y-tools
layer-charly-coder
layer-charly-comfyui
layer-charly-filebrowser
layer-charly-hermes
layer-charly-infrastructure
layer-charly-jupyter
layer-charly-openclaw
layer-hermes-playwright
layer-heroic
layer-openclaw-full
layer-selkies-kde-desktop
layer-sway-desktop
layer-sway-desktop-vnc
layer-wl-record-pixelflux
layer-wl-screenshot-pixelflux
layer-xdg-portal
layer-xfce4-terminal
plugin-box
plugin-build
plugin-check
plugin-loader
pod-charly-automation
pod-charly-core
pod-cstream
pod-hermes
pod-jupyter-ml
pod-kde-selkies
pod-openwebui
pod-selkies
pod-selkies-core
pod-versatiles-frontend

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-validator before it was tagged. This PR
cannot review it and does not restate it.

How tested

  • The gate: 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.
  • Producer: scripts/sync-gitlinks.sh, whose output is the diff above. The pins
    are resolved from each repo's actual default-branch HEAD over the network, never
    hand-written.

Change classification

  • Change class: gitlink-only. No file content, no workflow, no script, no Go.
  • Breaking change + rollback: none — a revert restores the previous snapshot.

Authorship

No Assisted-by: footer, deliberately. Rule A1 requires that line on an
AI-authored body. This body is emitted by a fixed block in
.github/workflows/sync.yml with no model in the loop, so there is no harness and no
provider 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).

atrawog and others added 2 commits August 31, 2026 11:22
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
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 24e29ee4b753 (branch: main)

Change class: gitlink sync + shell-script change (scripts/sync-gitlinks.sh).

Blocks

  1. T3 / A1 — scope mismatch: body claims "no script" but a script changed. The body states "Change class: gitlink-only. No file content, no workflow, no script, no Go." and its "Every changed path, named" list enumerates 33 gitlinks. But the CURRENT diff also modifies scripts/sync-gitlinks.sh (adds a cat-file/fetch origin "$ref" guard for shallow-clone pinned-commit switches). That file is absent from the body's accounting, and the body affirmatively asserts no script changed. This is a description↔code mismatch. The author must add scripts/sync-gitlinks.sh to the summary and correct the change-class claim.

  2. A2 — change-class mismatch / missing runtime evidence. Because the diff includes a real shell-script change (not gitlink-only), the runtime/code gate applies: a fresh-rebuild run with pasted output exercising the changed code path is required. The body's "How tested" only references CI ("It runs on this PR") with no pasted output, and never tests the modified sync-gitlinks.sh path (the shallow-clone pinned-commit fetch). The author must supply pasted output demonstrating the script change executes correctly (e.g. a shallow-clone switch to a pinned distro-* commit succeeding).

  3. A1 — "How tested" lacks pasted output. The gate evidence is a bare assertion that scripts/verify-pins.sh "runs on this PR" — a promise/CI reference, not pasted output. Per A1, pasted output (not a promise) is required.

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

@atrawog

atrawog commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Superseded — a branch-derivation artifact.

Dispatching sync.yml from fix/sync-fetch-pinned-commit cuts the sync branch from that branch, so this diff bundles the scripts/sync-gitlinks.sh change in with 34 gitlink bumps, and the generated body's "gitlink-only" classification is then untrue. That is what its validate is objecting to.

What it proves is the fix: this run got PAST the == charly-pinned repos == loop, which is exactly where the last two dispatches died with fatal: unable to read tree.

The fix is up as a focused PR. Once it lands, a dispatch on main produces a clean gitlinks-only sync.

@atrawog atrawog closed this Aug 31, 2026
atrawog added a commit that referenced this pull request Sep 8, 2026
…— 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.
github-actions Bot pushed a commit that referenced this pull request Sep 8, 2026
….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.
@aitrawog
aitrawog deleted the sync/20260831-093045 branch November 1, 2026 19:13
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