Skip to content

About

A .NET console application demonstrating AI-powered decision-making with SystemOne/Decisions APIs through probabilistic forecasting, Bayesian updating, decision framing, and model calibration.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

SystemOne Decisions

A .NET Console application demonstrating (Jev-like) AI decisions through the SystemOne and Decisions APIs on Microsoft Foundry AI or Local AI. Select SystemOne API (Microsoft Foundry AI) - Decision-1.1, Decisions API (Microsoft Foundry AI) - GPT-6-Luna, or Local AI to explore the matching examples. The 20 basic and advanced menu examples focus on business decisions where these decision models are a potential great fit.

Contents

Intro

Jev-like Decision APIs, such as the Jev (TypeSafe AI)-compatible SystemOne API, expose AI judgments as typed, structured results. An application supplies the current situation, questions, and decision criteria. The model returns a choice with probabilities, the probability that a Yes/No condition is true, or a score against an ordered rubric. These outputs give software a clear contract for consuming AI judgments while making uncertainty visible.

Decision APIs are important because applications need actionable judgments for tasks such as routing customer requests, prioritizing work, and evaluating alternatives. Contrast this with Generative AI models that you have used (GPT-6, Opus etc.), where these models can provide structured output, but they are really targeting unstructured output (lots of text, new images).

Quantitative structured outputs make those judgments easier to integrate. Why? Because they output probabilities, confidence scores based on math! I can add, subtract, compare, sort numbers...can't really do that easily with a Generative AI output that is many paragraphs. They also make decision quality measurable: predictions can be compared with observed outcomes using Brier scores and macro calibration checks. This repository demonstrates these ideas through local and hosted APIs, combining decision outputs with decision rules, framing, and updates as new evidence arrives.

How do these (Jev-like) Decision Models work?


See the OpenAI Decisions Guide for the Decisions API concepts and examples.
See the TypeSafe SystemOne Guide for the SystemOne API concepts and examples.

The examples below supply text input, like a Gen AI prompt, and a JSON document defining the question and its criteria. In each diagram, blue highlights the text input and yellow highlights the question JSON document.

All probabilities and results in the diagrams below are illustrative, not recorded model responses.

Choice: select one option

Use choice to select one category from a fixed set. Describe when each option applies: Billing handles payments and refunds, Technical handles product problems, and Shipping handles deliveries.

flowchart LR
    A["<b>Text input</b><br/>Like a Gen AI prompt<br/>Two charges for<br/>one purchase"] --> B["<b>Question JSON document</b><br/>Which department?<br/>Billing / Technical / Shipping"]
    B --> C["Option probabilities<br/>Billing: 0.95<br/>Technical: 0.03<br/>Shipping: 0.02"]
    C --> D["Result<br/>Billing<br/>Distribution + confidence"]
    style A fill:#e0f2fe,stroke:#0284c7,color:#0c4a6e
    style B fill:#fef3c7,stroke:#d97706,color:#78350f
Loading

API fields: SystemOne defines options in a criteria object; Decisions uses a choices array with value and description. Both return choice, probabilities, and a separate confidence value.

Yes/No: noul / predicate

Use SystemOne's noul or Decisions' predicate to estimate the probability that a condition is true. The probability ranges from 0 to 1; the probability of No is 1 - P(Yes). The console displays both probabilities without applying a boolean threshold.

flowchart LR
    A["<b>Text input</b><br/>Like a Gen AI prompt<br/>Two charges for<br/>one purchase"] --> B["<b>Question JSON document</b><br/>Yes/No question<br/>Duplicate charge reported?"]
    B --> C["Estimate likelihood<br/>P(Yes) = 0.90"]
    C --> D["Result<br/>Yes: 0.90<br/>No: 1 - 0.90 = 0.10"]
    style A fill:#e0f2fe,stroke:#0284c7,color:#0c4a6e
    style B fill:#fef3c7,stroke:#d97706,color:#78350f
Loading

API fields: SystemOne uses type: "noul", can describe true/false outcomes in criteria, and returns the Yes probability as noul. Decisions uses type: "predicate" and returns it as probability. Both use instructions to define the condition.

Score: rate against ordered levels

Use score to rate an input against a rubric ordered from lowest to highest. For the export example, Cosmetic means no lost functionality, Workaround Available means the task can be completed another way, and Fully Blocked means no workaround exists.

flowchart LR
    A["<b>Text input</b><br/>Like a Gen AI prompt<br/>Export fails in Safari<br/>but works in Chrome"] --> B["<b>Question JSON document</b><br/>Ordered severity levels<br/>0: Cosmetic<br/>1: Workaround Available<br/>2: Fully Blocked"]
    B --> C["Level probabilities<br/>0: 0.10<br/>1: 0.70<br/>2: 0.20"]
    C --> D["Result<br/>Score: 1.1<br/>Distribution + confidence"]
    style A fill:#e0f2fe,stroke:#0284c7,color:#0c4a6e
    style B fill:#fef3c7,stroke:#d97706,color:#78350f
Loading

The score is the probability-weighted average of the level indices: 0 * 0.10 + 1 * 0.70 + 2 * 0.20 = 1.1. Indices start at 0, so three levels give a score range of 0 to 2. A score can fall between levels; it summarizes the distribution rather than selecting a single category.

API fields: SystemOne supplies an ordered criteria array; Decisions supplies an ordered levels array with label and description. Both return score, probabilities, and a separate confidence value.

The concepts in this repository are based on Bart Czernicki's book, Decision Intelligence with AI. The interactive version provides further context and examples for applying Decision Intelligence with AI.

Quick start

Run your first decision locally with LM Studio. This path uses Local AI and does not require Microsoft Foundry credentials.

  1. Install .NET and get the code. Install the .NET 11 SDK, then clone the repository and open its root folder in a terminal:

    git clone https://github.com/bartczernicki/SystemOneDecisionsConsole.git
    cd SystemOneDecisionsConsole

    If you already have the code, open a terminal in the existing repository root instead. Run all commands below from that folder.

  2. Load a decision model and start LM Studio's server. Install LM Studio with an inference runtime that supports the SystemOne endpoint. In Discover, paste the Clef-Flash model URL, download a model that fits your machine, and load it. Note the loaded model's exact identifier. In the Developer tab, turn on Start server and leave it running. The commands below assume the server address is http://localhost:1234.

  3. Configure the local endpoints and model. Replace your-loaded-model-id with the identifier from LM Studio. If your server uses a different address or port, update both endpoint URLs while keeping their /v1/... paths:

    dotnet user-secrets set "LocalSystemOneAPI" "http://localhost:1234/v1/systemone" --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj
    dotnet user-secrets set "LocalDecisionsAPI" "http://localhost:1234/v1/decisions" --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj
    dotnet user-secrets set "LocalDecisionModel" "your-loaded-model-id" --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj

    These settings are stored outside the repository. Existing environment variables with the same names override User Secrets.

  4. Run the console application:

    dotnet run --project SystemOneDecisionsConsole
  5. Try the first example. Select 1) Basic Decision Examples, then 1) SystemOne API (Local AI) - Choice. Local AI is the default on first run. To select it again, use 4) Configure → 2) Decision provider → 3) Local AI, then return to the main menu.

    A successful response shows your provider and model, a department recommendation (normally Billing for the duplicate-charge complaint), confidence, and probability bars for Billing, Technical, and Shipping. The model's recommendation and probabilities can vary. Press Enter to return to the menu.

Basic Decision Examples

The tables below show the complete Local AI menus. Basic examples match the selected API and are numbered from 1. Decision-1.1 runs all 14 advanced examples through the SystemOne API; GPT-6-Luna runs all 14 advanced examples through the Decisions API:

Decision provider API and model Basic examples Advanced examples
SystemOne API (Microsoft Foundry AI) - Decision-1.1 SystemOne API on Microsoft Foundry AI, using the Decision-1.1-Global deployment 3 14
Decisions API (Microsoft Foundry AI) - GPT-6-Luna Decisions API on Microsoft Foundry AI, using the GPT-6-Luna deployment 3 14
Local AI SystemOne and Decisions APIs, using the local model 6 14
Option Example What it demonstrates
1 SystemOne API - Choice Routes a customer's report of two charges for one purchase to Billing, Technical, or Shipping. Shows the recommended department and its probability distribution.
2 SystemOne API - Yes/No (noul) Evaluates whether a customer reports being charged twice for the same purchase. Shows the probability of Yes without applying a boolean threshold.
3 SystemOne API - Score Rates a CSV export failure in Safari when Chrome provides a working alternative. Shows a probability-weighted severity score across Cosmetic, Workaround Available, and Fully Blocked levels.
4 Decisions API - Choice Routes a customer's report of two charges for one purchase to Billing, Technical, or Shipping. Shows the recommended department and its probability distribution.
5 Decisions API - Yes/No (predicate) Evaluates whether a customer reports being charged twice for the same purchase. Shows the probability of Yes without applying a boolean threshold.
6 Decisions API - Score Rates a CSV export failure in Safari when Chrome provides a working alternative. Shows a probability-weighted severity score across Cosmetic, Workaround Available, and Fully Blocked levels.

Every menu item includes its provider, for example SystemOne API (Local AI) - Choice or Decisions API (Microsoft Foundry AI) - Choice. Decision-1.1 shows the first three SystemOne examples. Decision-1.1 and GPT-6-Luna show their matching Choice, Yes/No, and Score examples as options 1–3.

Advanced Decision Examples

Option Example What it demonstrates
1 SystemOne API - Football Game Probability Forecast Forecasts an Atlanta Falcons at Green Bay Packers game from a halftime snapshot. One request estimates the winner, Green Bay's chance of covering the spread, and final total-points bands.
2 SystemOne API - Football Total Points Cumulative Probability Forecasts combined final points from the same football halftime snapshot. Adds probabilities across the relevant score bands to show the chance of strictly more than 40 points.
3 SystemOne API - Shipment Arrival Evidence with Bayesian updating Forecasts a fictional shipment's arrival using three successive evidence updates at a fixed forecast time. Compares live arrival-window distributions, entropy, and confidence as more information becomes available.
4 SystemOne API - Customer Subscription Brier Score and Calibration Predicts term-deposit subscriptions for 200 recorded customers from UCI Bank Marketing. Scores representative and previous-success groups separately with Brier score and ECE, and saves complete results.
5 Courier Logistics Package Shipping Decision Evaluates two package photographs in separate requests against a fictional Express Delivery policy. Uses SystemOne for Decision-1.1 and Decisions for Local AI and GPT-6-Luna. Shows six Pass/Fail/Unknown shipping checks and an overall Ship, Repack or Relabel, or Needs Inspection decision for each package.
6 SystemOne API - Apple Watch Step Goal with 10,000 Step Decision Rule Compares visiting the park, taking a walk, or running from a 5,000-step starting point. Reports an independent Yes/No probability for each activity reaching the 10,000-step goal.
7 SystemOne API - Energy Plant Investment Strategy with Decision Framing Recommends a fictional solar-and-battery investment strategy through Creativity, Caution, and Benefits thinking hats. Three isolated requests compare recommendation distributions using the same project facts and strategy choices.
8 SystemOne API - Work Queue Prioritization with the Eisenhower Matrix Classifies eight operations-manager tasks by urgency and importance using separate requests. Shows the returned actions in a summary and an Eisenhower Matrix: Do Now, Schedule, Delegate, or Eliminate.
9 SystemOne API - Restaurant Choice: Decision Exploration or Exploitation? Chooses whether a regular restaurant customer should try an unfamiliar dish or order a familiar favorite. One request evaluates the strategy and both conditional dish choices, then displays the strategy and its matching recommendation.
10 SystemOne API - Sales Conversions: Bernoulli to Binomial Predicts one prospect’s subscription probability, then calculates the count distribution for 100 independent comparable prospects and the chance of more than 30 conversions (31 or more).
11 SystemOne API - Sales Conversions Extension: Bernoulli to Poisson-Binomial Extends option 10 to 100 distinct prospects, using 100 isolated requests. Combines their individual conversion probabilities and compares the resulting count distribution with a Binomial using their average probability.
12 SystemOne API - Project Completion from Task Duration Distributions Predicts three sequential stages' duration distributions in one request, then convolves them locally to show total completion time and the chance of finishing within 20 working days, including day 20.
13 SystemOne API - Inbound Claims Email Triage and Automated Intake Classifies four fictional emails covering complete and incomplete notifications, document submission, and status inquiry, then applies policy to simulate provisional intake, missing-information requests, or queue routing.
14 SystemOne API - Claim Validation and Automation Eligibility Evaluates four fictional property claims covering eligible continuation, missing information, inconsistent facts, and a possible duplicate, then applies policy to simulate the next permitted treatment.

Local AI, Decision-1.1, and GPT-6-Luna use the option numbers above. Courier Logistics is 5 and uses the selected provider's API; email triage and claim validation are 13 and 14. Decision-1.1 runs every advanced scenario, including Courier Logistics, through SystemOne. Existing examples retain their numbers.

The claims examples each contain four independent cases and an editable policy.json. Both require raw model confidence and selected-outcome probability of at least 90%, including the boundary, plus a unique highest-probability selected outcome before automatic treatment is allowed. Sensitive, high-risk, uncertain-extraction, and mandatory-review flags require a human specialist. Validation also blocks automatic continuation for inconsistent facts, suspected duplicates, missing required information, unknown or non-USD amounts, and amounts above USD 5,000. The amount limit permits workflow continuation only; it never authorizes claim approval, denial, payment, or settlement.

These examples use synthetic emails, attachment transcripts, and supplied understanding-layer snapshots. They do not connect to an inbox, perform extraction or OCR, or update a claims system. The console displays each case's model probabilities, permitted simulated action, queue, and policy reasons, then action counts after a successful run. No reports or outgoing messages are created. The thresholds and authority limit are fictional business rules, with no jurisdiction-specific regulatory assumptions.

Run the Console Application

Install the .NET 11 SDK. Configure the local API settings for Local AI, or the Foundry gateway endpoint, deployment name and API key for your hosted selection below. The default local model is clef-flash; set LocalDecisionModel if your server uses a different identifier. Run from the repository root:

dotnet run --project SystemOneDecisionsConsole

Use a terminal that supports ANSI RGB colors to display the cyan banner and gold menu.

The top-level menu includes 3) Test Decision Variance and 4) Configure. Variance testing runs each supported basic sample 100 times for each configured provider, shuffling the sample/provider order in each round. Local AI uses only its SystemOne API and its three SystemOne basic samples. It reports per-outcome probability and confidence minima, maxima, and population variance; Yes/No samples report Yes and No probabilities, and note when their API does not return confidence. Requests are sequential and produce no actions. Select 1) Show / Hide Decision JSON under Configure to toggle raw response blocks; JSON starts hidden, and each toggle is saved immediately.

Select 2) Decision provider to choose 1) SystemOne API (Microsoft Foundry AI) - Decision-1.1, 2) Decisions API (Microsoft Foundry AI) - GPT-6-Luna, or 3) Local AI (the default). Decision-1.1 uses the SystemOne API and the Decision-1.1-Global deployment for all its examples, including Courier Logistics; GPT-6-Luna uses the Decisions API. Selection validates the configured endpoint, model and authentication without making an API request, then displays the model name or Foundry model deployment. Missing or invalid settings and failed saves leave the current selection unchanged. Every example states its API, provider and model before running. Decision-1.1 and GPT-6-Luna each include all 14 advanced workflows.

Preferences are stored in Configuration.json in the current working folder (the repository root when using the command above). The application creates this file on first run with:

{
  "ShowDecisionJson": false,
  "DecisionProvider": "LocalAI"
}

DecisionProvider can be DecisionsDecision11, DecisionsGPT6Luna, or LocalAI. Saved SystemOneDecision1 selections migrate to DecisionsDecision11; the legacy SystemOneProvider value MicrosoftFoundryAI also maps to Decision-1.1. LocalAI continues to map to Local AI. DecisionProvider takes precedence when both properties exist; files without either use Local AI. Loading an existing file does not rewrite it. The next successful preference save uses DecisionProvider. Provider changes and JSON toggles preserve each other's settings. Only preferences are stored here; endpoints, model names and credentials remain in User Secrets or environment variables. Environment variables override matching User Secrets for both selection and execution.

Manual edits take effect the next time the application starts. When JSON is hidden, HTTP errors still show their status and reason, while raw response bodies are omitted. Summaries, charts, and saved evaluation reports remain available. Enabling JSON also displays each of the 200 customer calibration responses. If configuration cannot be loaded, the application warns and uses the defaults without overwriting the file; failed saves retain the previous settings. Execution reports configuration errors without switching providers automatically.

Download LM Studio and a Decision Model

For Local AI, install LM Studio and load a decision model such as Clef or Clef-Flash:

  1. Download the installer for your operating system from the LM Studio download page and install the application.
  2. Open Discover and search for Clef or Clef-Flash. For a concrete download, paste the ggml-org/Clef-Flash-GGUF model URL into the search bar. LM Studio supports searching by model name or Hugging Face URL; see its model download guide.
  3. Open the Model Server tab and turn on Start server. The usual local address is http://localhost:1234; use the address and port shown by your server. See the LM Studio server guide.
  4. Select Load Model to load the downloaded model in LM Studio and note its model identifier. Use that exact identifier for LocalDecisionModel in the User Secrets section below; the console defaults to clef-flash.

Important Note: For multi-question and image examples, both Eval Batch Size and Physical Batch Size must accommodate the combined input and questions. The effective physical batch is capped by Eval Batch Size. Start with 4096 for both and reload the model after changing load settings; if a request exceeds that limit, increase both to accommodate it. Larger physical batches require more working memory. See the llama.cpp batch limit implementation.

Use an LM Studio version and inference runtime that support the selected decision model and the SystemOne (/v1/systemone) and Decisions (/v1/decisions) endpoints. The local courier example (Advanced #5) also requires image-capable Clef/Clef-Flash support and its matching vision adapter (mmproj). Decision-1.1 and GPT-6-Luna use hosted deployments and do not require a local server.

User Secrets for local APIs and Microsoft Foundry

The project has a UserSecretsId configured and loads these settings with Microsoft.Extensions.Configuration.UserSecrets. Store both local API and Microsoft Foundry settings in the same project's User Secrets, outside the repository. Each developer needs to configure the settings for their chosen backend on their own machine. The table lists all eight supported settings.

Provider Secret key Requirement Value
Local AI LocalSystemOneAPI Required http://localhost:1234/v1/systemone
Local AI LocalDecisionsAPI Required http://localhost:1234/v1/decisions
Local AI LocalDecisionModel Optional; defaults to clef-flash The loaded model identifier.
SystemOne - Decision-1.1 MicrosoftFoundrySystemOneAPI Required The SystemOne API URL for the Foundry resource or gateway.
SystemOne - Decision-1.1 MicrosoftFoundryDecisionModelDeploymentName Required Decision-1.1-Global.
SystemOne - Decision-1.1; GPT-6-Luna MicrosoftFoundryAPIKey Required The shared API key accepted by both Foundry endpoints.
Decisions - GPT-6-Luna MicrosoftFoundryDecisionsAPI Required The full Decisions operation URL, for example https://<your-resource-name>.openai.azure.com/openai/v1/decisions, or your gateway's full Decisions route.
Decisions - GPT-6-Luna MicrosoftFoundryOpenAIModelDeploymentName Required Your GPT-6-Luna deployment name, for example gpt-6-luna-global.

Run the commands for your selected provider from the repository root, replacing placeholders with your own values.

For Decisions - GPT-6-Luna, set its endpoint and deployment name. Use the shared MicrosoftFoundryAPIKey configured above:

dotnet user-secrets set "MicrosoftFoundryDecisionsAPI" "https://<your-resource-name>.openai.azure.com/openai/v1/decisions" --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj
dotnet user-secrets set "MicrosoftFoundryOpenAIModelDeploymentName" "gpt-6-luna-global" --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj

For SystemOne - Decision-1.1, set its SystemOne endpoint, deployment name, and shared API key:

dotnet user-secrets set "MicrosoftFoundrySystemOneAPI" "https://<your-gateway-name>.azure-api.net/<your-foundry-name>/providers/microsoft/v1/systemone" --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj
dotnet user-secrets set "MicrosoftFoundryDecisionModelDeploymentName" "Decision-1.1-Global" --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj
dotnet user-secrets set "MicrosoftFoundryAPIKey" "your-api-key" --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj

For Local AI, set both endpoints. The model setting is optional when using the default clef-flash:

dotnet user-secrets set "LocalSystemOneAPI" "http://localhost:1234/v1/systemone" --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj
dotnet user-secrets set "LocalDecisionsAPI" "http://localhost:1234/v1/decisions" --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj
dotnet user-secrets set "LocalDecisionModel" "your-loaded-model-id" --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj

Verify the configured values for your selected provider:

dotnet user-secrets list --project SystemOneDecisionsConsole/SystemOneDecisionsConsole.csproj

Example files

The repository-root Decisions folder contains 23 scenario folders and 85 scenario assets, grouped into Basic and Advanced categories. The menus expose 20 distinct examples, with availability determined by the selected provider. The three original basic Foundry folders are retained for compatibility. Local and hosted SystemOne use the shared basic SystemOne assets; Local AI and GPT-6-Luna share the native Decisions basic and courier assets. The remaining advanced scenario assets are shared across all providers. Each claims folder includes ScenarioDescription.txt, input.txt, questions.json, cases.json, and policy.json; all five artifacts are copied into build and publish output.

File Purpose
ScenarioDescription.txt Scenario explanation displayed in the console; excluded from the API request.
input.txt Input/state supplied to the model. Some scenarios have multiple input.txt files.
questions.json Question (JSON) definitions for choice, Yes/No, or score answers.
*.png For image input, the photographs supplied as inline images by the courier example.

Some advanced examples include additional evidence, evaluation, decision-frame, or task assets. Edit the repository-root files, then rebuild or run again.

JSON formats

Both local and Foundry SystemOne examples follow the Jev SystemOne schema and use the same typed .NET request and response models. Their questions.json is a dictionary keyed by question ID. The application builds { "model": "...", "state": "...", "questions": { ... } }. Choice uses criteria as an object, Yes/No uses type: "noul", and Score uses an ordered criteria array. For example:

{
  "Duplicate Charge": {
    "type": "noul",
    "instructions": "Does the customer report a duplicate charge?",
    "criteria": {
      "true": "Multiple charges for one purchase.",
      "false": "No duplicate charge reported."
    }
  }
}

Local and hosted Decisions follow the OpenAI Decisions API reference and use typed .NET models over REST. Native Decisions assets store questions.json as an array of named questions. Text requests build { "model": "...", "input": "...", "questions": [ ... ] }. Choice uses choices with value/description, Yes/No uses type: "predicate", and Score uses ordered levels with label/description. For example:

[
  {
    "name": "Duplicate Charge",
    "type": "predicate",
    "instructions": "Does the customer report a duplicate charge?"
  }
]

For GPT-6-Luna's shared advanced scenarios, SystemOne noul becomes Decisions predicate, with both true and false criterion descriptions preserved in the instructions. Choice criteria become named choices, and ordered score criteria become levels. Native Decisions answer arrays are mapped in memory to the existing workflow models for calculations; the displayed JSON and saved raw responses keep the native answer arrays. Hosted requests continue to use the configured MicrosoftFoundryDecisionsAPI endpoint and API-key authentication.

Courier Logistics sends the same policy, inspection facts, questions, and one PNG per request through the selected API. SystemOne - Decision-1.1 sends a SystemOne request with state, an images data URL array, and a question object; Local AI and GPT-6-Luna use the Decisions API's multimodal input message format. This excerpt shows the Local AI/GPT-6-Luna request with the final shipping question; the scenario sends all seven questions:

{
  "model": "clef-flash",
  "input": [
    {
      "role": "user",
      "content": [
        { "type": "input_text", "text": "<courier policy and inspection record>" },
        { "type": "input_image", "image_url": "data:image/png;base64,<PNG bytes>" }
      ]
    }
  ],
  "questions": [
    {
      "name": "Shipping Decision",
      "type": "choice",
      "instructions": "Apply all courier requirements to this parcel.",
      "choices": [
        { "value": "Ship", "description": "Every requirement is satisfied." },
        { "value": "Repack or Relabel", "description": "At least one requirement fails." },
        { "value": "Needs Inspection", "description": "No failure is established, but required evidence is missing." }
      ]
    }
  ]
}

Validation

The solution includes the application and the native MSTest 4.0.2 project, SystemOneDecisionConsole.Tests, targeting .NET 11 with the standard VSTest runner. Run the functionality tests in either configuration:

dotnet test SystemOneDecisionsConsole.sln
dotnet test SystemOneDecisionsConsole.sln -c Release

The tests use isolated copies of the application's complete output for the active configuration and a concurrent loopback HTTP fixture. They require no configured model or API credentials. The suite runs serially, verifies console workflows and private validators, checks generated reports, and compares all 23 scenarios and 85 assets across source, build, and publish outputs, including the original PNG bytes. Claims coverage includes isolated four-case workflows across providers, probability and authority boundaries, mandatory-review overrides, missing information, invalid assets and responses, and failure continuation behavior. The migration coverage inventory is in SystemOneDecisionConsole.Tests/Coverage.md.

Sources

About

A .NET console application demonstrating AI-powered decision-making with SystemOne/Decisions APIs through probabilistic forecasting, Bayesian updating, decision framing, and model calibration.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages