Propagate the Pi (.pi/) adapter tier in the AI corpus broadcast - #66
Merged
Conversation
The AI corpus now carries a Pi (Pi coding agent) adapter tier under .pi/: per-file prompt symlinks (.pi/prompts/<n>.md -> ../../.ai/prompts/<n>.prompt.md), per-file agent symlinks (.pi/agents/<n>.md -> ../../.ai/agents/<n>.md), and real extension machinery under .pi/extensions/ (the subagent tool + the cratis-hooks bridge, the Pi peer of the .claude/settings.json hook wiring). Teach the source-artifact preparer about it so broadcast propagation keeps the Pi tier intact across Cratis repositories: - select .pi/ paths (they were previously ignored entirely); - normalize the two per-file symlink adapters back to symlinks when the matching canonical .ai/ file exists (mirrors the .claude/commands and .github/agents cases), so a repo holding copied content at those paths is repaired; - .pi/extensions/** carry no adapter spec and fall through as real content, the same treatment as .claude/settings.json.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Teach the copilot-instructions broadcast propagation about the new Pi (Pi coding agent) adapter tier that the AI corpus now carries under
.pi/.Without this,
.pi/**is never selected for propagation, so every other Cratis repo would silently miss the Pi tier.Changes (
prepare-copilot-source-artifact.sh)Selection — add
.pi/to the source-tree file filter (previously.pi/**was ignored entirely).Adapter normalization — add two per-file symlink cases, mirroring the existing
.claude/commands/*.mdand.github/agents/*.agent.mdcases:.pi/prompts/<n>.md→../../.ai/prompts/<n>.prompt.md.pi/agents/<n>.md→../../.ai/agents/<n>.mdEach only normalizes when the matching canonical
.ai/file exists, so a repo that has copied content at an adapter path is repaired back to a symlink..pi/extensions/**carry no adapter spec and fall through as real content — the same treatment as.claude/settings.json(they are adapter machinery, not symlink adapters).Verification
bash -n+shellcheck -S errorclean..pi/prompts,.pi/agents,.pi/extensions, excludesSource/.120000symlink targets;.pi/extensions/*→ no spec (content).Paired with the
.pi/tier and the.github/workflows/propagate-copilot-instructions.ymltrigger addition inCratis/AI.