Repository navigation
fix(dist): ship bundled skill assets in rendered payloads - #223
Merged
Merged
Conversation
render_skill copied nothing but SKILL.md, so the pi package channel (.pi/skills) and the Antigravity channel (.agents/skills) shipped 0 of the 92 bundled files that 38 of 80 skills tell the model to read or run: deepen-architecture/LANGUAGE.md, audit-code/HEURISTICS.md, extract-design/scripts/extract.js, align-grid/scripts/*, templates, fixtures. Symlink installs ship the whole directory, so the same skill behaved differently per channel. New scripts/lib/adapter-assets.sh mirrors every sibling of the source skill directory (markdown, nested dirs, dotfiles) and exposes assert_skill_assets(). The pi and agy adapters call it on both render paths; srp-engine hands them BP_REPO_ROOT so assets resolve from any cwd; sync-post now fails the build when a rendered tree is missing an asset. tests/test-render-assets.sh covers mirror contents, assertion pass/fail with a named missing asset, and the live .pi/skills payload; wired into the golden suite. Refs #218
test-adapter-render.sh renders fixtures in a scratch tree with no skills/<name> source directory. mirror_skill_assets must not fail the render in that context — the post-sync assertion is the enforcement point, not the adapter itself. Refs #218
|
🎉 This PR is included in version 2.93.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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 this fixes — #218
The pi package channel (
.pi/skills, shipped aspackage.json → pi.skills) and the Antigravity channel (.agents/skills) carried SKILL.md only — 0 of the 92 bundled files that 38 of 80 skills instruct the model to read or run.Concrete breaks in the shipped payload:
skills/deepen-architecture/SKILL.md→[LANGUAGE.md](LANGUAGE.md)—LANGUAGE.md,DEEPENING.md,INTERFACE-DESIGN.mdabsentskills/audit-code/SKILL.md→audit-code/HEURISTICS.md— absentskills/extract-design/SKILL.md→node extract-design/scripts/extract.js—scripts/(4 files) absentskills/align-grid/→scripts/grid_tokens.py,scripts/verify_grid.js— absentSymlink installs ship the whole directory, so the same skill behaved differently depending on the install channel — the same class of problem as #208.
Change
scripts/lib/adapter-assets.sh:mirror_skill_assets()copies every sibling of the source skill dir (markdown, nested dirs, dotfiles; neverSKILL.md), andassert_skill_assets()verifies a rendered tree is complete.scripts/adapters/pi.shandscripts/adapters/agy.shmirror assets on both render paths (mirror is non-fatal in a fixture tree; the post-sync assertion is the enforcement point).scripts/lib/srp-engine.pypassesBP_REPO_ROOTto the render driver so assets resolve from any cwd.scripts/lib/sync-post.shfails the build when.pi/skillsor.agents/skillsis missing an asset.tests/test-render-assets.sh(4 checks) wired into the golden suite.Evidence
find .pi/skills -mindepth 2 -type f ! -name SKILL.md | wc -l→ 92 (was 0).Gates
npm run compliance0 ·bash scripts/run-verification-gates.sh58/58 ·trace-stories --strict0.Note:
.agents/skillsis untracked/gitignored (it is the Antigravity render); it is regenerated bysync-skills.shand now carries the assets too. The relocation of that render target is #209 (batch B3), so this PR keeps the current path and only fixes the payload.Closes #218