SdJwt.Net.AgentTrust.Policy
1.0.3
See the version list below for details.
dotnet add package SdJwt.Net.AgentTrust.Policy --version 1.0.3
NuGet\Install-Package SdJwt.Net.AgentTrust.Policy -Version 1.0.3
<PackageReference Include="SdJwt.Net.AgentTrust.Policy" Version="1.0.3" />
<PackageVersion Include="SdJwt.Net.AgentTrust.Policy" Version="1.0.3" />
<PackageReference Include="SdJwt.Net.AgentTrust.Policy" />
paket add SdJwt.Net.AgentTrust.Policy --version 1.0.3
#r "nuget: SdJwt.Net.AgentTrust.Policy, 1.0.3"
#:package SdJwt.Net.AgentTrust.Policy@1.0.3
#addin nuget:?package=SdJwt.Net.AgentTrust.Policy&version=1.0.3
#tool nuget:?package=SdJwt.Net.AgentTrust.Policy&version=1.0.3
SdJwt.Net.AgentTrust.Policy
Policy evaluation layer for agent trust decisions, including rule-based allow/deny logic and delegation constraints.
Install
dotnet add package SdJwt.Net.AgentTrust.Policy
What This Package Provides
IPolicyEngineabstraction for policy evaluation.DefaultPolicyEnginefor wildcard rule matching and deterministic allow/deny decisions.PolicyBuilderfor fluent rule configuration.- Delegation model support via
DelegationChainandDelegationTokenOptions. - Constraint model (
PolicyConstraints) for max token lifetime, required disclosures, and capability limits.
Quick Start
using SdJwt.Net.AgentTrust.Core;
using SdJwt.Net.AgentTrust.Policy;
var rules = new PolicyBuilder()
.Deny("*", "payments", "Delete")
.Allow("agent://ops-*", "payments", "Read", c =>
{
c.MaxLifetime(TimeSpan.FromSeconds(45));
c.RequireDisclosure("ctx.correlationId");
c.Limits(new CapabilityLimits { MaxResults = 100 });
})
.Build();
var policyEngine = new DefaultPolicyEngine(rules);
var decision = await policyEngine.EvaluateAsync(new PolicyRequest
{
AgentId = "agent://ops-eu",
Tool = "payments",
Action = "Read",
Resource = "merchant/42",
Context = new CapabilityContext { CorrelationId = "corr-1" }
});
if (!decision.IsPermitted)
{
throw new InvalidOperationException(decision.DenialReason);
}
Rule Semantics
- Rules are evaluated by descending
Priority. *wildcard matching is supported for agent/tool/action/resource patterns.- First matching rule decides the outcome.
- Deny rules should have higher priority than allow rules.
Delegation Notes
DefaultPolicyEnginevalidates delegation depth (Depth <= MaxDepth).- Optional
AllowedActionsin a delegation chain are enforced before rule matching. - Use short lifetimes and explicit disclosures for delegated actions.
Related Packages
SdJwt.Net.AgentTrust.CoreSdJwt.Net.AgentTrust.AspNetCoreSdJwt.Net.AgentTrust.Maf
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.6)
- SdJwt.Net.AgentTrust.Core (>= 1.0.3)
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.6)
- SdJwt.Net.AgentTrust.Core (>= 1.0.3)
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.6)
- SdJwt.Net.AgentTrust.Core (>= 1.0.3)
-
net9.0
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.6)
- SdJwt.Net.AgentTrust.Core (>= 1.0.3)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on SdJwt.Net.AgentTrust.Policy:
| Package | Downloads |
|---|---|
|
SdJwt.Net.AgentTrust.Maf
Middleware-style adapter for applying agent trust capability tokens to agent tool calls. |
|
|
SdJwt.Net.AgentTrust.AspNetCore
Inbound middleware and authorization integration for agent trust capability tokens. |
|
|
SdJwt.Net.AgentTrust.A2A
Agent-to-Agent (A2A) protocol integration for multi-agent delegation, agent card discovery, and cross-agent trust chain validation. |
|
|
SdJwt.Net.AgentTrust.Mcp
Model Context Protocol (MCP) integration for agent trust capability token propagation and verification in MCP tool servers and clients. |
|
|
SdJwt.Net.AgentTrust.Policy.Opa
Open Policy Agent (OPA) integration for externalized agent trust policy evaluation over HTTP. |
GitHub repositories
This package is not used by any popular GitHub repositories.