Skip to content

Propagate .ai/.claude setup correctly and preserve symlink modes in Copilot sync workflows#50

Merged
einari merged 7 commits into
mainfrom
copilot/fix-ai-setup-propagation
May 16, 2026
Merged

Propagate .ai/.claude setup correctly and preserve symlink modes in Copilot sync workflows#50
einari merged 7 commits into
mainfrom
copilot/fix-ai-setup-propagation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 15, 2026

Summary

Propagation was only syncing .github Copilot artifacts and writing all files as regular blobs, which broke .claude -> .ai symlink propagation from source repos like Fundamentals.
This change extends synced path coverage to .ai/ and .claude/ and preserves Git tree entry mode during sync/propagate/bootstrap updates.

Added

  • Synced artifact coverage for .ai/ and .claude/ paths across all Copilot sync flows.
  • Documentation entry for .ai/ and .claude/ as synchronized artifacts in README.md.

Changed

  • Updated path filters in:
    • .github/scripts/propagate-copilot-instructions.sh
    • .github/scripts/sync-copilot-instructions.sh
    • .github/scripts/bootstrap-copilot-sync.sh
  • Up-to-date checks now compare both blob SHA and file mode.
  • Tree creation now writes source mode dynamically (100644, 100755, 120000) instead of forcing 100644.

Fixed

  • Fixed failure to propagate AI setup directories from source repositories.
  • Fixed incorrect handling of symlinked .claude/* entries by preserving symlink mode (120000) in target repos.
# Before
.tree += [{path: $p, mode: "100644", type: "blob", sha: $s}]

# After
.tree += [{path: $p, mode: $m, type: "blob", sha: $s}]

Removed

  • None.

Security

  • None.

Deprecated

  • None.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/Cratis/Fundamentals/git/trees/HEAD
    • Triggering command: /usr/bin/curl curl -fsSL REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue May 15, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix problems propagating AI setup from repositories Propagate .ai/.claude setup correctly and preserve symlink modes in Copilot sync workflows May 15, 2026
Copilot finished work on behalf of einari May 15, 2026 20:55
Copilot AI requested a review from einari May 15, 2026 20:55
@einari einari marked this pull request as ready for review May 16, 2026 06:47
@einari einari merged commit d3e622c into main May 16, 2026
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.

Problems propagating AI setup

2 participants