HoneAI.Core 0.9.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package HoneAI.Core --version 0.9.0
                    
NuGet\Install-Package HoneAI.Core -Version 0.9.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="HoneAI.Core" Version="0.9.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HoneAI.Core" Version="0.9.0" />
                    
Directory.Packages.props
<PackageReference Include="HoneAI.Core" />
                    
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 HoneAI.Core --version 0.9.0
                    
#r "nuget: HoneAI.Core, 0.9.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 HoneAI.Core@0.9.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=HoneAI.Core&version=0.9.0
                    
Install as a Cake Addin
#tool nuget:?package=HoneAI.Core&version=0.9.0
                    
Install as a Cake Tool

HoneAI.Core

The implementations for HoneAI — tiers of judges with measured trust and provenance — behind the HoneAI.Abstractions contracts. No third-party dependencies.

What it ships

  • TieredRouter<TInput, TValue> (HoneAI.Routing) — the IReasoningRouter over any number of tiers: a tier below the top settles only where the policy snapshot puts it in Active or Stable for the input's slice, and only an answer the settlement policy lets it settle; otherwise the decision goes up without the lower answer. Every lower-tier settlement is drawn for a recheck at π.
  • RecheckDraw — the deterministic draw: SHA-256 of the decision id and snapshot version → [0, 1) < π. TieredRouter.RecheckAsync judges a drawn decision again at a tier above, blind — told it is a recheck, given no hints, no lower answer and no abstain quantile — and settles nothing.
  • PolicySnapshotJson — the canonical JSON of a policy snapshot (entries by tier and slice, rates by knob, times in UTC) and its SHA-256 content hash, for carrying a snapshot to a judging site and checking it is the one issued. Signing is the consumer's.
  • HoneAI.Trust — earning the right to settle: TrustLedger / TeacherLedger (what rechecks and planted items show), TrustLifecycle (shadow → active → stable, and back), RecheckRate (the recheck probability a promise needs), RecheckBudget (sharing the tier above's capacity), PolicySnapshotIssuer, and TrustController.Close, which runs them in order at a window's end.
  • Judge.From / Judge.Constant / MemoryJudge<,> — reference judges: a function, a constant, a memory of settled answers (System1).
  • SettlementPolicy / SliceKey — categorical, tolerance and specification-limit policies; slice keys from a function.
  • HttpMLoopClient — IMLoopClient over MLoop's REST API (mloop serve). MLoop is reached over the wire, never referenced as an SDK. Construct it with an HttpClient whose BaseAddress and bearer token you configure (e.g. via IHttpClientFactory).
  • JsonlProvenanceSink — file-backed IProvenanceSink appending each assessment as one JSON line. Append-only, Git-friendly.
  • InMemoryReviewStore / JsonlReviewStore — IReviewStore in memory, or as an append-only JSONL event file several processes on one machine can share.
  • InMemoryLifecycleStore / JsonlLifecycleStore — ILifecycleStore in memory or as JSONL (the last line of a run id is the run).
  • ModelLifecycle — a resumable train → poll → review (HITL) → promote run over an IMLoopClient, an IReviewStore and an ILifecycleStore, recording each stage to an optional IProvenanceSink.
  • RolePersona — builds domain-neutral persona instructions for a trust-loop role, with the consumer's domain colour injected into a {Domain} slot.

Example — two tiers and a person

using HoneAI;
using HoneAI.Routing;

var memory = new MemoryJudge<Item, string>(
    new Tier { Id = "memory", Kind = JudgeKind.System1, Version = "1", CostRank = 0 }, item => item.Key);
var model  = Judge.From<Item, string>(
    new Tier { Id = "model", Kind = JudgeKind.Ml, Version = "exp-012", CostRank = 1 },
    async (item, ctx, ct) => await PredictAsync(item, ct));
var person = Judge.From<Item, string>(
    new Tier { Id = "person", Kind = JudgeKind.Human, Version = "1", CostRank = 2 },
    async (item, ctx, ct) => await ReviewAsync(item, ct));

var router = new TieredRouter<Item, string>(
    new IJudge<Item, string>[] { memory, model, person },
    SettlementPolicy.Categorical(new[] { "OK" }, mustCatch: new[] { "NG" }),
    SliceKey.From<Item>("line-v1", item => item.Line),
    decisionIdOf: item => item.Id,
    snapshot: () => snapshot);

var decision = await router.DecideAsync(item);
// decision.Prediction — the settled value and its provenance
// decision.Steps      — every tier's verdict, including what a tier in shadow would have answered

License

Apache-2.0

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 (1)

Showing the top 1 NuGet packages that depend on HoneAI.Core:

Package Downloads
UVision.Hosting

U-Vision AI 비전 검사 — 임베드 가능한 ASP.NET Core 기능 라이브러리(빌드된 PWA 임베드 + AddUVision/UseUVision).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.12.0 65 10/24/2026
0.11.0 73 10/23/2026
0.10.0 92 10/22/2026
0.9.0 88 10/22/2026
0.8.0 87 10/22/2026
0.7.0 85 10/21/2026
0.6.0 77 10/21/2026
0.5.0 78 10/21/2026
0.4.0 81 10/21/2026
0.3.0 92 10/20/2026
0.2.2 137 9/9/2026
0.2.1 136 7/17/2026
0.2.0 177 7/8/2026