Skip to content

vendored-sync: reference the local claw checkout (claw private)#181

Merged
realmarcin merged 1 commit into
mainfrom
chore/vendored-sync-local-claw
Jul 22, 2026
Merged

vendored-sync: reference the local claw checkout (claw private)#181
realmarcin merged 1 commit into
mainfrom
chore/vendored-sync-local-claw

Conversation

@realmarcin

Copy link
Copy Markdown
Contributor

The canonical id-label source moved to claw (claw#18, shared/idlabel/), but claw is private, so the tokenless raw.githubusercontent fetch 404s. Per direction, this references a local claw checkout instead of the network.

check_vendored_sync.sh now:

  • locates claw via $CLAW_ROOT or sibling auto-discovery (handles flat Mechs and CommunityMech's nested path);
  • diffs the 5 vendored files against $claw/shared/idlabel/, fails on drift (verified: catches an edit, exit 1);
  • skips (exit 0) with a loud notice when no claw checkout is present, so it doesn't false-fail on a CI runner without it.

Trade-off (important): mech CI has no claw checkout, so this job now skips in CI — enforcement is local (anyone with the sibling claw checkout). The durable CI path is claw-side: claw's cross-repo-validation already checks out the Mechs and can diff them against shared/idlabel/. Making claw public later restores a CI-enforceable pinned raw-fetch with a one-line revert.

Vendored file content is unchanged — only the checker + .vendored_canon_ref (bumped to claw 1ad5d40).

🤖 Generated with Claude Code

The canonical source moved to culturebotai-claw (claw#18, shared/idlabel/), but
claw is private, so the tokenless raw-fetch model 404s. This points the drift
check at a LOCAL sibling claw checkout instead of the network.

check_vendored_sync.sh now:
- locates claw via $CLAW_ROOT or sibling auto-discovery (handles a flat Mech and
  CommunityMech's nested path);
- diffs the 5 vendored files against $claw/shared/idlabel/ and fails on drift;
- SKIPS (exit 0) with a loud notice when no claw checkout is present -- so it
  does not false-fail on a CI runner that lacks it. Enforcement is LOCAL while
  claw is private; anyone doing cross-Mech work with the sibling checkout gets
  it. .vendored_canon_ref (bumped to claw 1ad5d40) records the intended claw
  commit and drives a soft HEAD-mismatch warning.

Trade-off: mech CI (no claw checkout) no longer enforces this -- it skips. The
durable CI path is claw-side: claw's cross-repo-validation already checks out
the Mechs and can diff them against shared/idlabel/. Restoring a pinned raw-fetch
(CI-enforceable) just needs claw to be public.

Vendored file content is unchanged -- only the checker and the ref.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 22, 2026 03:07
@realmarcin
realmarcin merged commit df85d68 into main Jul 22, 2026
2 checks passed
@realmarcin
realmarcin deleted the chore/vendored-sync-local-claw branch July 22, 2026 03:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the vendored-sync drift checker to compare against a local culturebotai-claw checkout (since claw is private and raw GitHub fetches 404), and bumps the pinned canonical commit reference.

Changes:

  • Reworked scripts/check_vendored_sync.sh to locate a local claw checkout ($CLAW_ROOT or sibling auto-discovery) and cmp the vendored files against claw/shared/idlabel/, skipping (exit 0) when claw isn’t available.
  • Updated scripts/.vendored_canon_ref to pin claw commit 1ad5d40….

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
scripts/check_vendored_sync.sh Switches canonical comparison from network raw-fetch to local claw checkout discovery + byte-compare, with skip behavior when claw is absent.
scripts/.vendored_canon_ref Updates the pinned canonical claw commit hash used for informational reporting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# sibling checkout. It is NOT enforced in CI while claw is private. Making claw
# public again lets this revert to a pinned raw-fetch that CI can run.
#
# Dependency-free: bash + diff only.
Comment on lines +31 to +45
canon_dir=""
if [ -n "${CLAW_ROOT:-}" ] && [ -d "${CLAW_ROOT}/shared/idlabel" ]; then
canon_dir="${CLAW_ROOT}/shared/idlabel"
else
for cand in ../culturebotai-claw ../../culturebotai-claw ../../../culturebotai-claw; do
if [ -d "$cand/shared/idlabel" ]; then canon_dir="$cand/shared/idlabel"; break; fi
done
fi

if [ -z "$canon_dir" ]; then
echo "SKIP: culturebotai-claw checkout not found (set CLAW_ROOT to its path)."
echo " Cross-repo vendored-drift is NOT enforced here (claw is private)."
echo " Run locally alongside a claw checkout to enforce."
exit 0
fi
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.

2 participants