feat(skills): policy-gated skills foundation with Agent Framework adapter - #229
Open
IanFrelinger wants to merge 5 commits into
Open
feat(skills): policy-gated skills foundation with Agent Framework adapter#229IanFrelinger wants to merge 5 commits into
IanFrelinger wants to merge 5 commits into
Conversation
Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
…mples Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Make skill script approval human-in-the-loop via waitable store + CLI/API. Wire skill advertisements into self-extend agent snapshots, register AgentSkillsProvider for hosts, and invalidate skill cache after skill rewrites. Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
IanFrelinger
marked this pull request as ready for review
July 14, 2026 05:53
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
Implements Nexo's policy-gated capability-extension layer using the Microsoft Agent Skills
SKILL.mdformat, with Nexo-owned ports as the public contract andMicrosoft.Agents.AIisolated to a single adapter project.Architecture
Nexo.Core.Application.Skills):INexoSkillCatalog,INexoSkillPolicyEvaluator,INexoScriptRunner,INexoSkillApprovalResolver,INexoSkillAuditLog,INexoSkillCacheControllerNexo.Infrastructure.Skills): policy evaluator, local sandbox runner, approval resolver, audit emitter, content-hash cache controllerNexo.Skills.AgentFramework): wrapsAgentSkillsProvider/ file + class skills; only project referencingMicrosoft.Agents.AI1.13.0Policy & trust
TrustPolicyPackwith optionalskillRules(visibility by tier, script allow-list, auto-approve tuples, script limits)internal-only.jsonandstrict-enterprise.jsonScript execution
NexoScriptRunnerroutes throughICapabilityRouterseam (local-only this phase) withINexoScriptSandboxswappable implementationIApprovalGatebridge (ApprovalGateSkillApprovalBridge)Audit contract
Stable
NexoSkillAuditEventschema with six event types:SKILL_ADVERTISED,SKILL_LOADED,SKILL_RESOURCE_READ,SKILL_SCRIPT_APPROVAL_REQUESTED,SKILL_SCRIPT_APPROVAL_RESOLVED,SKILL_SCRIPT_EXECUTEDEvents fan out to
IBarrierAuditLogandIDataDecisionAuditLog.LogSkillDisclosure.Dogfood skills
nexo-trust-inspectorSKILL.md+scripts/list-packs.sh)nexo-active-policy-packAgentClassSkill<T>)Tests
15 tests covering policy filter mapping, approval paths, runner enforcement (allow-list, output cap, timeout passthrough), audit emission per stage, and end-to-end disclosure flow integration.
Test plan
dotnet test src/Nexo.Tests.Infrastructure/Nexo.Tests.Infrastructure.csproj -f net8.0 --filter "FullyQualifiedName~Nexo.Tests.Infrastructure.Tests.Skills"dotnet build src/Nexo.Hosting/Nexo.Hosting.csproj