feat: add Skill Capsule routing#27
Open
chu459 wants to merge 2 commits into
Open
Conversation
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.
Summary
Closes #26.
Thanks @rfdiosuao for the detailed feature request and acceptance criteria.
This PR adds v0.8.0 Skill Capsule routing for Claude Code workers:
skill-routeand compactskill-capsule--skills autoforrun,run-streaming,spawn-role-team, and mockworkflow-runcc_skill_index,cc_skill_manual,cc_skill_route,cc_skill_capsule,cc_skill_status.git,node_modules, virtualenvs, build output, symlinks, and junctionsEvidence
python -m py_compile scripts\cc-orchestrator\cc_orchestrator.py scripts\cc-orchestrator\server.pypassedpython scripts\cc-orchestrator\cc_orchestrator.py selftestpassed with new gates for path safety, root aliases, ID collision protection, pruned scanning, linked script safety, Skill routing, and workflow metadatapython scripts\cc-orchestrator\cc_orchestrator.py skill-index --refresh --cwd .passed:skill_count=110,skipped=19, no user/repo absolute path in outputpython scripts\cc-orchestrator\cc_orchestrator.py skill-route --task "Audit Browser connector and GitHub app access" --role security --cwd .passed:selected_count=3, nopathfield, no user absolute pathpython scripts\cc-orchestrator\cc_orchestrator.py skill-capsule --task "Audit Browser connector and GitHub app access" --role security --cwd .passed: compact capsule, relative capsule ref, no user/repo absolute pathnpm run docs:buildpassedgit diff --checkpassedReview Notes
Two sub-agent rounds reviewed this. The first critic caught absolute Skill path exposure, unpruned recursive scanning, unstable IDs, and missing top-level workflow routing metadata. This PR fixes those and adds selftest coverage.
One remaining non-blocking note: older workflow APIs still expose absolute
cwd/ workflow artifact paths as part of the existing local-controller API. The new path-safety guarantee here is scoped to public Skill routing outputs and worker-facing capsules.