Conversation
Add `activation:` block to skillfile.yml with 4 modes (strict / merge / fallback / manual) × inherit_global flag. compose_effective_skillset() now applies the policy; resolve and status gain --ignore-global. - ActivationPolicy model + Skillfile.activation field (default: manual + inherit_global=true → backward-compatible with v0.6.0) - _normalise_activation in manifest/loader.py - _apply_activation_policy in skillset/compose.py; EffectiveSkillset gains warnings: tuple[str, ...] surfaced to CLI stderr - New LayerOrigin values: GLOBAL_PROFILE_FILTER, POLICY_BLOCKED_GLOBAL - --ignore-global flag wired into resolve and status CLI commands - status output shows "activation: <mode> / inherit_global=<bool>" line - 25 new tests (348 total, all green)
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
ActivationPolicymodel tomanifest/models.pywith 4 modes:strict,merge,fallback,manualSkillfilegainsactivation:field (default:manual + inherit_global=true→ zero breaking change from v0.6.0)compose_effective_skillset()applies the policy via_apply_activation_policy();EffectiveSkillsetgainswarnings: tuple[str, ...]surfaced to CLI stderrLayerOriginvalues:GLOBAL_PROFILE_FILTER,POLICY_BLOCKED_GLOBALresolveandstatusgain--ignore-globalflagstatusoutput showsactivation: <mode> / inherit_global=<bool>lineMode semantics
--profile--profile Xstrictdefault_profilefrom project)mergedefault_profile(project ∪ global)fallbackdefault_profile: project first, else globalmanualOut of scope (deferred)
--ignore-globalforinstall/sync(requires migratingpipeline.py/sync.pycall sites fromflatten()tocompose_effective_skillset())switchcommand, 3-scope active profile state)Test plan
uv run pytest -q— 348 passed, 1 skippeduv run mypy src/skillpod— cleanuv run ruff check src tests— cleanskillpod statusshowsactivation:lineskillpod resolve --ignore-globalskips global profilesactivation: {mode: strict}rejects global profile with exit 1 + stderr warning