ControlAgentNet.Policies 0.1.2

dotnet add package ControlAgentNet.Policies --version 0.1.2
                    
NuGet\Install-Package ControlAgentNet.Policies -Version 0.1.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ControlAgentNet.Policies" Version="0.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ControlAgentNet.Policies" Version="0.1.2" />
                    
Directory.Packages.props
<PackageReference Include="ControlAgentNet.Policies" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ControlAgentNet.Policies --version 0.1.2
                    
#r "nuget: ControlAgentNet.Policies, 0.1.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ControlAgentNet.Policies@0.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ControlAgentNet.Policies&version=0.1.2
                    
Install as a Cake Addin
#tool nuget:?package=ControlAgentNet.Policies&version=0.1.2
                    
Install as a Cake Tool

ControlAgentNet.Policies

<p align="center"> <img src="https://img.shields.io/github/license/ControlAgentNet/ControlAgentNet.Policies" alt="License"> <img src="https://img.shields.io/github/actions/workflow/status/ControlAgentNet/ControlAgentNet.Policies/ci.yml?branch=main" alt="CI"> <img src="https://img.shields.io/nuget/v/ControlAgentNet.Policies" alt="NuGet Version"> </p>

Core policy abstractions and scoped policy contracts for ControlAgentNet.

What This Repository Contains

This repository publishes the ControlAgentNet.Policies package.

It defines the contracts used to store, resolve, and audit tool and channel policies across different scopes.

What It Does

This package provides:

  • IToolPolicyStore
  • IChannelPolicyStore
  • IPolicyAuditStore
  • ConfiguredPolicyRecord
  • policy resolution semantics based on PolicyContext

It does not provide storage by itself. Use an implementation package such as ControlAgentNet.Policies.InMemory or ControlAgentNet.Policies.Sqlite.

Installation

dotnet add package ControlAgentNet.Policies
dotnet add package ControlAgentNet.Policies.InMemory

Policy Resolution

Policies resolve from most specific to least specific:

  1. user
  2. channel
  3. agent
  4. tenant
  5. default/inherited

Policy Values

Value Description
Inherit Use parent scope policy
Enabled Subject is allowed
Disabled Subject is blocked
ApprovalRequired Subject requires human approval

Build

dotnet restore ControlAgentNet.Policies.slnx
dotnet build ControlAgentNet.Policies.slnx -c Release
dotnet test ControlAgentNet.Policies.slnx -c Release --no-build
dotnet pack ControlAgentNet.Policies.slnx -c Release -o artifacts/nuget

Versioning

  • local builds: 0.1.2-dev
  • pull requests: 0.1.2-preview.<run_number>
  • pushes to main: 0.1.2-alpha.<run_number>
  • tags like v0.1.2: exact stable package version 0.1.2

See VERSIONING.md for the release flow.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on ControlAgentNet.Policies:

Package Downloads
ControlAgentNet.Guards.Policies

Package Description

ControlAgentNet.Policies.InMemory

In-memory implementation of the ControlAgentNet policy stores for development and testing.

ControlAgentNet.Features.Heartbeat

Prompt-driven heartbeat tasks for ControlAgentNet agents.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.2 154 4/15/2026