Affiant.Policies
1.0.0-beta.1
Prefix Reserved
dotnet add package Affiant.Policies --version 1.0.0-beta.1
NuGet\Install-Package Affiant.Policies -Version 1.0.0-beta.1
<PackageReference Include="Affiant.Policies" Version="1.0.0-beta.1" />
<PackageVersion Include="Affiant.Policies" Version="1.0.0-beta.1" />
<PackageReference Include="Affiant.Policies" />
paket add Affiant.Policies --version 1.0.0-beta.1
#r "nuget: Affiant.Policies, 1.0.0-beta.1"
#:package Affiant.Policies@1.0.0-beta.1
#addin nuget:?package=Affiant.Policies&version=1.0.0-beta.1&prerelease
#tool nuget:?package=Affiant.Policies&version=1.0.0-beta.1&prerelease
Affiant.Policies
Approval policy framework for the Affiant framework — "sworn provenance for every AI write."
Provides the building blocks for deciding what happens to a filed WriteProposal before it reaches a human reviewer: Standing Orders (auto-approval rules), Referral routing (escalation rules), and risk-scoring — the layer between "a write was proposed" and "a write sits in the Docket awaiting confirmation."
Quick start
builder.Services.AddAffiantCore();
builder.Services.AddAffiantPolicies(policies =>
{
policies
.AddStandingOrder<LowValueAutoApproval>()
.AddReferralRule<HighValueEscalation>()
.AddDefaultReviewerConfirmation();
});
Implement StandingOrderBase for an auto-approval rule, ReferralRuleBase for an escalation rule, and override RiskScoreCalculatorBase (registered by default as DefaultRiskScoreCalculator, TryAddScoped so a host override always wins) to change how risk feeds into either.
Package contents
| Namespace | Purpose |
|---|---|
Affiant.Policies.StandingOrders |
StandingOrderBase — the auto-approval rule contract |
Affiant.Policies.Referrals |
ReferralRuleBase — the escalation-routing rule contract |
Affiant.Policies.Services |
RiskScoreCalculatorBase / DefaultRiskScoreCalculator, RiskLevel |
Affiant.Policies.Extensions |
ServiceCollectionExtensions — AddAffiantPolicies, the PoliciesBuilder fluent registration surface |
Further reading
- Affiant Framework Specification — the full design contract, including the review pipeline and approval-policy semantics
- Tool Authoring Guide — write your first Affiant plugin pair
Part of the Affiant Framework | Apache-2.0 License
| Product | Versions 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. |
-
net10.0
- Affiant.Abstractions (>= 1.0.0-beta.1)
- Affiant.Core (>= 1.0.0-beta.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-beta.1 | 48 | 8/23/2026 |