HoneyDrunk.Operator 0.3.0

dotnet add package HoneyDrunk.Operator --version 0.3.0
                    
NuGet\Install-Package HoneyDrunk.Operator -Version 0.3.0
                    
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="HoneyDrunk.Operator" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HoneyDrunk.Operator" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="HoneyDrunk.Operator" />
                    
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 HoneyDrunk.Operator --version 0.3.0
                    
#r "nuget: HoneyDrunk.Operator, 0.3.0"
                    
#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 HoneyDrunk.Operator@0.3.0
                    
#: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=HoneyDrunk.Operator&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=HoneyDrunk.Operator&version=0.3.0
                    
Install as a Cake Tool

HoneyDrunk.Operator

Runtime composition for the HoneyDrunk.Operator human-policy enforcement substrate (ADR-0018).

services
    .AddHoneyDrunkOperator(options =>
    {
        options.ConfigKeyPrefix = "HoneyDrunk:Operator";
    })
    .AddSafetyRule<MyCustomSafetyRule>();

What it registers

Contract Default implementation
IApprovalGate DefaultApprovalGate (event-out + in-process pending state)
ICircuitBreaker DefaultCircuitBreaker (Closed → Open → HalfOpen state machine)
ICostGuard DefaultCostGuard (in-process accumulator, config-sourced budgets)
IDecisionPolicy AuthBackedDecisionPolicy (config-sourced outcomes)
ISafetyFilter DefaultSafetyFilter (composable ISafetyRule chain)

Plus OperatorTelemetry (Kernel ITelemetryActivityFactory), OperatorAuditWriter (Audit IAuditLog), and ApprovalEventEmitter (IApprovalEventSink event-out).

Scoped pending approvals

Resolve IApprovalDesk as usual and test for ISubjectScopedApprovalDesk from HoneyDrunk.Operator.Abstractions.Approvals to request a PendingApprovalQuery. DefaultApprovalDesk requires its store to implement ISubjectScopedOperatorStore for that read. The built-in in-memory store and Operator.Data do; custom stores without it fail explicitly. This is a read capability, not an approval or authorization decision. The existing unscoped list and decision methods are unchanged.

Host responsibilities

  • Vault — register an IConfigProvider so cost-rate tables, breaker thresholds, decision policies, and safety-filter config resolve from Azure App Configuration (ADR-0018 D6 / invariant 117).
  • Kernel — register an ITelemetryActivityFactory (ADR-0018 D7).
  • Audit — register an IAuditLog from HoneyDrunk.Audit to capture decisions (ADR-0030 / ADR-0031). When absent, audit emission is a no-op (graceful degradation). Entries for changes wait in the store's outbox until delivered; run the host as an IHost so OperatorAuditDeliveryService retries any that failed.
  • Approval transport — register an IApprovalEventSink to deliver approval-needed events; the default is a no-op sink. The wire shape is deferred per ADR-0018 D8.

Standards notes

  • Per invariants 1/2, the runtime references peer Nodes' contract surfaces, never their runtime composition: HoneyDrunk.Kernel.Abstractions and HoneyDrunk.Audit.Abstractions. Vault does not yet publish a standalone .Abstractions package, so IConfigProvider (namespace HoneyDrunk.Vault.Abstractions) is consumed from the HoneyDrunk.Vault package — the contract type only; no Vault runtime services are composed here.
  • v0.1.0 deferrals: the AuthBackedDecisionPolicy → HoneyDrunk.Auth delegation (ADR-0018 D5) and durable persistence of cost/approval state (HoneyDrunk.Data, ADR-0018 D12) were deferred from v0.1.0. Since 0.2.0, state lives behind IOperatorStore: in memory by default, or durable with HoneyDrunk.Operator.Data. The Auth delegation is still marked TODO(auth).
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on HoneyDrunk.Operator:

Package Downloads
HoneyDrunk.Operator.Data

Durable storage for HoneyDrunk.Operator over HoneyDrunk.Data's Entity Framework layer: approvals and decisions, manual pauses, and budget spend survive restarts.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0 234 11/11/2026
0.2.0 111 11/11/2026
0.1.2 158 11/6/2026
0.1.1 129 9/26/2026