feat(lanes): add resync.sh for a one-command full resync #445
All Vouch review confidence checks passed
Residual risk 0.36 = Change Risk (0.51) × (1 − Review Confidence (0.28)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.51 · 464 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 44% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.367
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #445"
general
weight: 0.35
github-actions[bot]
Closes #444
Summary
A full resync from claude-code-plugins becomes one command for the session that runs it:
scripts/lanes/resync.sh [<sha>] --repo <claude-code-plugins clone>stages the copy, runscheck-sync.sh, and prints the condition 2 evidence for the CLAUDE.md rule "Merging a full resyncfrom claude-code-plugins". Committing, pushing, opening the PR and merging stay with the session.
Fix
scripts/lanes/sync-lists.sh(new): the SYNCED, LEFT_OUT, ADAPTED and PINNED lists, movedverbatim out of
check-sync.sh.check-sync.shandresync.shboth source it; neither keeps acopy.
scripts/lanes/resync.sh(new): takes a ref (defaultorigin/mainof the--repoclone, fetchedfirst; without
--repoit fetches from GitHub likecheck-sync.sh). It removes files tracked hereunder a SYNCED path that the ref lacks, checks the ref's blobs out through a throwaway index with
no gitattributes applied (so upstream's
.cmd eol=crlfrule cannot rewrite a byte), stagesthem, and stages each file's git mode from the ref whatever
core.fileModesays. LEFT_OUT,ADAPTED and PINNED paths are left alone. It then runs
check-sync.sh: exit 1 on any differencebeyond a PINNED file, exit 0 with a paste-ready evidence block otherwise. The evidence prints the
clone as
<claude-code-plugins clone>, never a local path.scripts/lanes/resync.test.sh(new): fixture test in the style of the.test.shtests under.github/scripts/merge-base/. Thescripts/laneschecks have no tests of their own to follow.resync.shand paste its evidence. The threeconditions are unchanged, and lines 3-4 (test-fixture text) are untouched.
None of the changed files is on the SYNCED list.
Loosened checks
None.
Verification
scripts/lanes/resync.test.sh: 29 checks pass. They cover an older ref restoring a file, thedefault ref removing it again, byte-for-byte content with no eol conversion, the executable bit
staged under
core.fileMode=false, ADAPTED, PINNED and LEFT_OUT left alone, nothing committed,check-sync.shpassing on its own, a PINNED-only difference passing with that verdict, a planteddifference (a clean filter rewriting a synced file) failing with exit 1 and no evidence, and bad
usage exiting 2.
--attr-sourceremoved and--chmod=+xflipped, the eol, mode andcheck-syncchecks fail.shellcheckon all four scripts with the repository's.shellcheckrc: clean. The lefthookpre-commit hooks pass.
ef5971b:it wrote 4074 files (300 changed against this branch) and printed:
That is the same PINNED-only result as #440. The run took 61 s, almost all of it in
check-sync.sh, which starts about three git processes per file.Related
docs/owner-decisions.mdrow Q301and row Q302,
which amends it: keep the session-run resync flow with no lane automation and no new permissions.
🤖 Generated with Claude Code