<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Winter on Medium]]></title>
        <description><![CDATA[Stories by Winter on Medium]]></description>
        <link>https://medium.com/@winter.inc?source=rss-b4fc3b6ebef4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Jgc2CIKeZYgO7vkI6YqviA.png</url>
            <title>Stories by Winter on Medium</title>
            <link>https://medium.com/@winter.inc?source=rss-b4fc3b6ebef4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:52:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@winter.inc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Agentic Kubernetes Incident Response with Azure AI Foundry and AKS | 25 Days of AI Day 23]]></title>
            <link>https://medium.com/@winter.inc/agentic-kubernetes-incident-response-with-azure-ai-foundry-and-aks-25-days-of-ai-day-23-0f5dd92b2586?source=rss-b4fc3b6ebef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f5dd92b2586</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Winter]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 19:02:36 GMT</pubDate>
            <atom:updated>2026-11-25T19:02:36.414Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>A bad deployment is the fastest way to break a healthy service. One merged change, and within minutes customers are seeing slow, failing checkouts — while every pod still reports “Ready.” Kubernetes Incident Commander is a proof of concept that takes a production-style alert from detection to a verified recovery. An AI agent built on Azure AI Foundry investigates the incident through read-only tools and cites evidence for every claim. Deterministic Python code validates the evidence, reconstructs the timeline and decides whether a rollback is permitted. An engineer approves. A separate, restricted service performs a pinned rollback and checks fresh telemetry to prove the service actually recovered.</p><p>The scope is deliberate. The AI never does arithmetic, never decides the verdict and never changes anything on the cluster. It does the slow, repetitive investigation work, and leaves the judgement to code and people.</p><h3>The Problem</h3><p>Kubernetes and its observability stack are good at noticing. Prometheus and Grafana show that latency and error rates rose, and Kubernetes shows that a deployment happened. What still lands on an SRE’s desk is the judgement and the fix: which service is aﬀected, when the degradation actually began, what changed and who changed it, whether that change is really the cause, what the safe fix is, and whether it worked.</p><p>Today that work is manual. Engineers jump between Grafana, kubectl, container logs, events and deployment history, then fix things by hand.</p><p>Pods that look healthy hide the real problem. The demo’s faulty release returns errors and slow responses while its readiness and liveness probes still pass, so Kubernetes reports 3/3 Ready during the outage. The signal is only visible in application metrics, which is exactly why a real SRE has to correlate them.</p><p>Approved work looks like an incident. A planned rollout raises the same alarm as a broken one, so alerts get ignored and real incidents get lost in the noise.</p><p>The evidence is scattered. Every source may be correct on its own, but someone has to connect them under time pressure and keep a record of why a decision was made.</p><p>Fixes are rarely proven. A rollback command may complete while the application stays degraded, and nobody checks whether the metrics actually recovered.</p><h3>Challenges</h3><p>Correlation is not causation. A deployment five minutes before an incident can be completely unrelated. Code matches resource identity, timestamps and metric changes, not just timing, and the system must explain why it ignores a distractor.</p><p>Kubernetes health is not application health. A pod can be Running and Ready while its route returns errors and high latency. The investigation combines pod state with application-level latency, error rate and version telemetry.</p><p>Missing evidence is not evidence. “No metrics found” means “please confirm,” never “no fault.” When the data cannot explain a cost or an incident, the system says so, returns inconclusive and escalates.</p><p>Multiple possible root causes. An incident can be a bad release, a failing downstream dependency, resource pressure or an unrelated change. The agent must investigate several signals and is allowed to be inconclusive when the evidence is insuﬃcient.</p><p>AI output must be verifiable. Every claim must cite an evidence ID that a tool actually returned, and every number must come from code. A finding that fails schema validation is repaired once; if it still fails, the run ends as inconclusive and escalates — it never guesses its way to a rollback.</p><p>Untrusted text stays data. Logs, events and annotations are written by people (and can be written by attackers). One test puts instruction-style text into a log line; it is treated as data, never as instructions, and it changes nothing.</p><p>A successful rollback does not guarantee recovery. The rollback may complete while the service stays degraded. Recovery is confirmed only from fresh metrics, not from the rollout having finished.</p><h3>Architecture</h3><p>The architecture follows one path from an alert to a proven recovery. It has five layers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*niq6gh0MnHXLo35MLLP0hg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eNU7em_KGn9jVK6qDu_vkg.png" /></figure><p><strong>Detect (code).</strong> A detector polls Prometheus and opens an incident when checkout has been degraded (p95 ≥ 300 ms or 5xx ≥ 1%) for a sustained 60 seconds, so a single blip does not page anyone.</p><p><strong>Investigate (gpt-4.1-mini on Azure AI Foundry)</strong>. The investigator runs a bounded tool-calling loop over seven read-only tools shaped like the real SRE workflow: service health, Prometheus metrics, pod status, Kubernetes events, deployment history, container logs and resource configuration. It returns structured findings, each citing evidence IDs.</p><p><strong>Decide (code).</strong> Python validates every cited evidence ID, recomputes the timeline (when metrics first broke vs. when the rollout happened), checks that the new version is the degraded one while the previous was healthy, and applies a rollback policy. It sets the verdict, the target revision and the owner; the AI never computes a number or chooses the verdict.</p><p><strong>Fix (code, with a human gate).</strong> An engineer reviews the proposal and approves. A separate remediation service — the only component with write access — re-validates everything itself, performs a dry run, then a pinned rollback, and watches the rollout.</p><p><strong>Confirm (code).</strong> After the rollout completes, code waits for the metrics window to contain only post-rollback traﬃc, then checks recovery thresholds and records RECOVERED or RECOVERY_NOT_CONFIRMED.</p><p>The application, cluster, metrics, logs and events are real (a local kind cluster during development, Azure Kubernetes Service for the Azure integration). The AI investigation on Azure AI Foundry and the rollback are real. Only the incident itself is deliberately planted: a faulty v2 image whose defect is baked in, not described anywhere the investigator can read.</p><h3>Engineering Decisions</h3><p>Code measures, AI investigates, humans judge, the system verifies. Each part does what it is reliable at, and no part can overrule another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eGiqr20DpSvdnDfXJwGxvQ.png" /></figure><p>Locate the cause from evidence, not guesswork. The decision layer recomputes the onset — the first moment metrics broke and stayed broken — and compares it to the rollout time. It then checks attribution through the version label: the new version is degraded while the previous version was within thresholds. A deployment near the incident is not enough on its own; timing, identity and per-version metrics all have to line up.</p><p>Keep the boundary structural, not behavioural. The safety property does not rest on the model behaving itself. The model sees only the seven tools plus a submit_finding tool — no shell, no kubectl , no write client. The investigator’s Kubernetes service account is read-only. The remediation service can patch only deployments/checkout-api. A NetworkPolicy even blocks the investigator from talking to the remediation service. The AI being well-behaved is a nice-to-have, not the mechanism.</p><p>Never leak the answer. The defect lives inside the v2 image, so the only visible change in Kubernetes is “image changed.” Fault-injection and scenario names never appear in logs, metrics or anything the investigator reads — otherwise the demo would hand the AI the solution.</p><p>Keep cost and time bounded. The investigation loop has hard budgets (12 steps, 20 tool calls, 60,000 tokens, 180 seconds), and every run records tokens and cost. A single investigation costs about a cent.</p><h3>Use Cases</h3><p>The POC is built around one production incident and a suite of seven repeatable scenarios, where each scenario has a known right answer.</p><h4>The headline scenario: checkout breaks after a deployment</h4><p>ShopSphere runs a checkout API in the incident-demo namespace. On v1 the baseline is healthy: p95 latency about 195 ms and a 0.2% error rate, with 3/3 pods ready. A new v2 is deployed with a deliberately introduced defect — a fixed 2.4 s delay on every checkout and exactly 8% of requests failing. Checkout p95 jumps to about 2.4 s, errors rise to 8%, and the pods stay 3/3 Ready.</p><p>The detector notices the sustained breach and opens an incident. The investigator’s trace shows the actual tool calls: service health, Prometheus metrics (p95, error ratio, and the same split by version ), pod status, deployment history (v1 → v2), Kubernetes events and container logs. Code scores the finding: the change is inside the window, it precedes the onset, only v2 is degraded, no competing change exists and the dependency is healthy — so a rollback is permitted and pinned to revision 1.</p><p>The engineer reviews the cited evidence and approves. The remediation service dry-runs the change, then applies a single JSON Patch that restores the v1 pod template, watches the rollout, waits 180 seconds for the metrics window to clear, and checks the recovery targets: p95 under 300 ms, errors under 1%, 3/3 ready, all pods on v1. It records RECOVERED — verified, not assumed.</p><h4>The seven scenarios</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a9ovJdzXWw9PxCbtDmfSZA.png" /></figure><h4>Measured, not claimed</h4><p>The headline scenario is reliable: bad-deployment reaches RECOVERED across repeated seeded runs, with mean investigation latency of roughly 18–21 seconds and a model cost of about a cent per run.</p><p>The safety properties held across the full 21-run suite (seven scenarios × three seeded runs): 100% evidence validity, zero false rollbacks, zero unauthorized writes, correct recovery discrimination (scenario 1 vs. scenario 6), and every negative approval test refused. The open area is classification breadth — the model’s diagnosis matched the answer key on 8 of 21 runs in that early evaluation (42.9%), with the safety net catching the rest as escalations rather than wrong actions. That diagnosis accuracy, not the safety boundary, is the part the POC is still improving.</p><h3>Business Value</h3><p>The value is not another Kubernetes chatbot. It is the time and risk taken out of the work between “the alert fired” and “the service is back.”</p><p>Faster answers. Each incident arrives with the evidence already gathered and a plain- English explanation, instead of an engineer spending time across dashboards, kubectl , logs, events and deployment history.</p><p>Fewer false alarms. Planned and unrelated changes are recognised, so alerts are trusted again and real incidents get attention.</p><p>Less manual fixing. The fix arrives as a pre-checked, pinned rollback for the exact workload, instead of a ticket waiting in a backlog.</p><p>Accountability by design. Every case has an owner, every decision is recorded with who made it and why, and nothing changes without an approval. The record holds up in a review or an audit.</p><p>Recovery you can trust. Recovery is reported only once fresh telemetry confirms it, so the team works from a proven outcome, not from “the rollback command succeeded.”</p><p>Low cost to run, inside Azure. Each investigation costs cents on Azure AI Foundry, and in production the whole workflow can stay inside the customer’s Azure account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Op-SkX_LVcvPw183ZqFZyQ.png" /></figure><h3>Production Proposal</h3><p>The POC runs locally on a kind cluster for development and on Azure Kubernetes Service for the Azure integration. In production, we propose running the same agent on AKS with the Azure-native stack: Azure Monitor managed Prometheus for metrics, Log Analytics for logs and events, Managed Grafana for dashboards, and Azure AI Foundry hosting the model. Azure Monitor alerts (or an Alertmanager webhook) start an investigation by calling the investigator’s API. Workload identity (Microsoft Entra) gives the investigator and remediation services their credentials instead of long-lived keys. The investigator stays read-only, remediation keeps its single permitted action, human approval stays explicit, and the API-server audit stream into Log Analytics provides the “zero unauthorized writes” evidence. The same “AI investigates, code decides, humans approve, the system verifies” boundary holds end to end.</p><h3>Next Steps</h3><p>More remediation types. Add briefs for scaling, restarts and configuration changes alongside the pinned rollback.</p><p>Enterprise identity and integrations. Entra ID single sign-on instead of the allowlisted approver name, and Slack or Teams for owner notifications.</p><p>Broader alert sources. Wire Azure Monitor alerts and Alertmanager webhooks directly into the investigator.</p><p>Continuous evaluation. Run the scenario suite in CI and score a sample of live investigations, so diagnosis quality is tracked the same way the safety boundary already is.</p><p>Improve diagnosis breadth. The next iteration targets the 42.9% classification accuracy across all seven scenarios — richer prompts or model tuning — without touching the safety net that already guarantees zero false rollbacks.</p><h3>Conclusion</h3><p>This POC set out to answer a practical question: can an AI take a production alert all the way to a verified recovery without anyone losing control of the decision?</p><p>It can. The agent on Azure AI Foundry gathers and cites the evidence, code decides consistently, the engineer approves, a separate service acts, and fresh telemetry proves the result.</p><h4>What this POC establishes:</h4><p><strong>Verdicts are evidence-based.</strong> Every claim traces to a record a tool returned; code computes every number and the verdict.</p><p><strong>Application health is not assumed from pod health.</strong> A 3/3 Ready service can still be broken, and the system catches it.</p><p><strong>Human authority stays explicit.</strong> The AI cannot act; only a separate, restricted service can, and only after approval.</p><p><strong>The fix is real and checked.</strong> A dry run, a resourceVersion precondition and a pinned revision; a human merges the decision into reality.</p><p><strong>Recovery is proven. </strong>Fresh metrics confirm it, or the system says it did not happen.</p><p>What remains for production is the integration layer: live Azure alerting, workload identity, enterprise identity and more remediation types. The pattern itself is concrete and measured: AI investigates, code validates, engineers approve, the system verifies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ezJWCAd3f5koEUw-q1h-Jg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f5dd92b2586" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic FinOps with AWS Bedrock and Devin | 25 Days of AI Day 22]]></title>
            <link>https://medium.com/@winter.inc/agentic-finops-with-aws-bedrock-and-devin-25-days-of-ai-day-22-c62c9169915f?source=rss-b4fc3b6ebef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c62c9169915f</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Winter]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 16:45:35 GMT</pubDate>
            <atom:updated>2026-11-20T16:45:35.032Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>A cloud bill is the one invoice anyone in engineering can raise in seconds. One forgotten GPU cluster, or one deployment that routes traffic the expensive way, and the daily bill jumps by hundreds of dollars before anyone notices.</p><p>Agentic FinOps with AWS Bedrock and Devin is a proof of concept that takes a cost spike from alert to a proven saving. An agent built with Strands Agents on Amazon Bedrock investigates each cost driver with read-only tools and cites evidence for every claim. Plain code scores the evidence and decides the verdict. The resource owner approves a fix. When the fix is a code change, Devin writes it in the right folder of the right repository, code checks it, and it arrives as a pull request. The next day’s bill confirms whether the money was saved.</p><p>The scope is deliberate. The AI never does arithmetic, never decides the verdict and never changes anything on its own. It does the slow, repetitive investigation work, and leaves the judgement to code and people.</p><h3>The Problem</h3><p>AWS is good at noticing. Cost Anomaly Detection flags that spend changed, and Cost Explorer shows which service grew. What still lands on an engineer’s desk is the judgement and the fix: which resources explain the increase, what changed and who changed it, whether the spend was planned, whether the resource is actually being used, what the safe fix is, and whether it worked.</p><p>Today that work is manual. Engineers jump between the bill, CloudTrail, CloudWatch, tags, budgets, tickets and deployment history, and then fix things by hand.</p><p><strong>Approved work looks like waste.</strong> A planned load test raises the same alarm as a forgotten GPU cluster, so alerts get ignored.</p><p><strong>The evidence is scattered.</strong> Every source may be correct, but someone has to connect them under time pressure and keep a record of why a decision was made.</p><p><strong>Fixes are rarely proven.</strong> A resource gets stopped or a pull request gets merged, but nobody checks whether the bill actually went down.</p><h3>Challenges</h3><p><strong>Correlation is not causation.</strong> A CloudTrail event five minutes after a launch can be completely unrelated. Code matches resource IDs and time windows, not just timing, and the agent must explain why it ignores a distractor.</p><p><strong>Missing evidence is not evidence.</strong> “No ticket found” means “please confirm”, never “unauthorised”. When nothing explains a cost, the system says so and lists the gaps.</p><p><strong>Shared resources have no single owner.</strong> A NAT gateway serves many teams, so no change event names it. The agent has to link the deployment that came just before the traffic jumped and find where the traffic goes.</p><p><strong>AI output must be verifiable.</strong> Every claim must cite an evidence ID that a tool actually returned, and every number must come from code. Uncited or invented claims are rejected, retried and, if needed, escalated from Claude Haiku to Sonnet.</p><p><strong>Untrusted text stays data.</strong> Ticket descriptions and notes are written by people. One test ticket tells the “automated cost reviewer” to ignore its rules; it is treated as data, for the agent and for Devin.</p><p><strong>Code fixes must land in the right place.</strong> A cost on an AWS resource has to be traced to the repository folder that defines it before anyone can write a fix, and the change must be checked before a human sees it.</p><h3>Architecture</h3><p>The architecture follows one path from a cost signal to a proven saving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*8E3K532YC_IH9sgi-_c0uQ.png" /><figcaption><em>POC architecture</em></figcaption></figure><p><strong>Detect (code).</strong> A materiality gate (more than $100 a day and more than 20%) stops noise from becoming an alert. Code splits the increase into the few cost drivers that explain about 90% of it.</p><p><strong>Investigate (Claude on Amazon Bedrock).</strong> A Strands agent uses nine read-only tools shaped like the real AWS APIs: Cost and Usage Report lines, CloudTrail, CloudWatch, tags, AWS Budgets, VPC Flow Logs, change tickets, exceptions and CI/CD deployment records. It returns structured findings, each citing evidence IDs.</p><p><strong>Decide (code).</strong> Python validates every claim, runs four checks (size, timing, exact resource ID, owner), sets the verdict and money, proposes a fix and routes the case to the right owner, with role-based access for six actors.</p><p><strong>Fix (Devin, checked by code).</strong> For code-managed infrastructure, code builds a fix brief from validated facts only. Devin edits the target folder, code checks that only Terraform files inside it changed and runs terraform fmt and validate, and the pull request goes up with CI. A human merges.</p><p><strong>Confirm (code).</strong> The next day’s bill is compared with the expected saving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*65aDLZr33U2cmKSACjcInA.png" /><figcaption><em>Process flow</em></figcaption></figure><p>The bills, activity logs, metrics, tickets and deployments are sample data in the exact formats AWS uses, generated from fixed seeds. The AI investigation on Amazon Bedrock, the Devin code change, the GitHub pull request and its CI checks are real.</p><h3>5. Engineering Decisions</h3><p><strong>Code measures, AI investigates, humans judge, Devin implements.</strong> Each part does what it is reliable at, and no part can overrule another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*86Jq7FXkWM2wm_3Ir4vvuw.png" /></figure><p><strong>Locate the code from evidence, not guesswork.</strong> The agent links the deployment that preceded the cost. The deployment record names the service and repository path, and code checks it against the repository’s service catalog. If the two disagree, no fix is proposed.</p><p><strong>Keep cost visible.</strong> Every Bedrock call goes into a ledger shown in the app. The app estimates and asks for approval before each investigation and refuses new calls at $25. The whole build used about $2 of Bedrock.</p><h3>Use Cases</h3><p><strong>Separating real waste from approved work.</strong> I built the POC around a week of cost scenarios (6 to 14 November 2026), where each day tells a different story. In the Tuesday scenario, the daily bill is $4,500 against an expected $3,260: GPU instances left running (+$820 a day), an approved load test (+$260) and a NAT gateway charge after a deployment (+$130). Code shows three drivers explain 98% of the spike; the load test stays quiet because it is planned and in use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*oQ4-N3zgJtCOCnekY4s01w.png" /><figcaption><em>Investigation page, Tue 10 Nov: the GPU instances case</em></figcaption></figure><p><strong>An investigation you can follow.</strong> The trace shows each tool call: the GPU instances were launched from the console the evening before by one engineer, have no tags, no approved ticket and about 1% GPU use. Code scores it 4 of 4: likely waste, $888 already spent, $820 a day avoidable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*MCXiatpk4i8NOCjeRvcH0g.png" /><figcaption><em>Case report: summary, cited evidence, checks and audit trail</em></figcaption></figure><p><strong>Owner approval, and a fix written by Devin.</strong> Each owner sees only their own cases. The ML engineer approves a reversible stop. The orders team approves the NAT fix: Devin adds an S3 gateway endpoint in services/orders-service/infra, code runs terraform fmt and validate, and the pull request opens with CI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*ZFnQNB_hoTRc3QCO0nNSvQ.png" /><figcaption><em>Inbox as the Orders team: the owner’s decision options</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*hKHCpYupYlTohIHjBxLXUw.png" /><figcaption><em>Approve fix: the owner chooses Devin and approves, and the pull request is opened after code checks the change</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*qA7HetEkIFJudQkqtU721Q.png" /><figcaption><em>The pull request opened by Devin, with all checks passed</em></figcaption></figure><p><strong>Measured, not claimed.</strong> The next day’s bill confirms the saving, or reports that it did not happen (on 14 November the stopped GPUs were relaunched by a script). The AI performance page shows accuracy, valid citations, time and cost per investigation, and the comparison with plain AI.</p><h3>Business Value</h3><p>The value is not another cost report. It is the time and risk taken out of the work between “the bill went up” and “the money is saved”.</p><p><strong>Faster answers.</strong> Each cost spike arrives with the evidence already gathered and a plain-English explanation, instead of an engineer spending hours across the bill, activity logs, metrics, tickets and deployments.</p><p><strong>Fewer false alarms.</strong> Planned launches, load tests and migrations are recognised as planned, so alerts are trusted again and real waste gets attention.</p><p><strong>Less manual fixing.</strong> For infrastructure managed in code, the fix arrives as a reviewed pull request written by Devin, in the right folder and already checked, instead of a ticket waiting in someone’s backlog.</p><p><strong>Accountability by design.</strong> Every case goes to the right owner, every decision is recorded with who made it and why, and nothing changes without an approval. The record holds up in a review or an audit.</p><p><strong>Savings you can trust.</strong> A saving is only reported once the next bill confirms it, so finance and engineering work from the same numbers.</p><p><strong>Low cost to run, inside AWS.</strong> Each investigation costs cents on Amazon Bedrock, and in production the whole workflow can stay inside the customer’s AWS account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJP1DCNuThag8aO1WdLmJA.png" /></figure><h3>Production Proposal</h3><p>The POC runs locally on sample data in AWS formats. In production, we propose running the same agent on Amazon Bedrock AgentCore, so everything stays inside the customer’s AWS account. Cost Anomaly Detection alerts start an investigation through SNS and Lambda; AgentCore Runtime hosts it; Gateway connects the tools to live CUR 2.0, CloudTrail and CloudWatch data; Identity and Policy ensure the agent can never act without an approval; Observability traces every step. Devin connects with a service-user API key and GitHub with a GitHub App, with credentials in Secrets Manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*g5dTKU0RjqFPjPDMeRiYww.png" /><figcaption><em>Production data flow (proposal)</em></figcaption></figure><h3>Next Steps</h3><p><strong>More fix types.</strong> Add briefs for rightsizing, schedules and log retention alongside the S3 gateway endpoint.</p><p><strong>Enterprise identity and integrations.</strong> Single sign-on instead of the actor selector, Slack or Teams for owner messages, and a GitHub App integration.</p><p><strong>Hosted Devin.</strong> Connect Devin through its API for a shared, multi-user deployment.</p><p><strong>Continuous evaluation.</strong> Run the scenario suite in CI and score a sample of live investigations with AgentCore Evaluations.</p><h3>Conclusion</h3><p>This POC set out to answer a practical question: can AI take a cost spike all the way to a fix without anyone losing control of the decision?</p><p>It can. The agent on Amazon Bedrock gathers and cites the evidence, code decides consistently, the owner approves, Devin writes the change in the right place, code and CI check it, and the next day’s bill proves the result.</p><h4>What this POC establishes:</h4><p><strong>Verdicts are evidence-based.</strong> Every claim traces to a record a tool returned; code computes every number and the verdict.</p><p><strong>Approved work stays quiet.</strong> Intent checks against tickets, budgets and exceptions remove false alarms.</p><p><strong>Human authority stays explicit.</strong> Nothing happens without the owner, and access is enforced in the backend.</p><p><strong>The fix is real and checked.</strong> Devin writes it, code validates it, CI runs it, and a human merges it.</p><p><strong>Savings are proven.</strong> The next day’s bill confirms them, or says they did not happen.</p><p>What remains for production is the integration layer: live AWS data, AgentCore hosting, enterprise identity and hosted Devin. The pattern itself is concrete and measured: AI investigates, code decides, people approve, Devin implements, and the bill proves the saving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*40AsAPlZTSHkAXuCzG6BqQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c62c9169915f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intelligent Accounts Payable: With Jev and OpendocRouter | 25 Days of AI Day 21]]></title>
            <link>https://medium.com/@winter.inc/intelligent-accounts-payable-with-jev-and-opendocrouter-25-days-of-ai-day-21-ad4f3d4da1e1?source=rss-b4fc3b6ebef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad4f3d4da1e1</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Winter]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 17:10:50 GMT</pubDate>
            <atom:updated>2026-11-17T17:10:50.661Z</atom:updated>
            <content:encoded><![CDATA[<p>Accounts payable triage starts before an invoice can be scheduled for payment. Every incoming bill has to agree with itself, match the purchase order it cites, and align with history on file. In high-volume operations, a line-price mismatch, a duplicate copy, and an unlisted purchase order are fundamentally different operational problems. Yet when inspected by eye under deadline pressure, they routinely get lumped into a single generic hold, obscuring why the invoice stopped and who needs to resolve it.</p><p>The Intelligent Accounts Payable puts that comparison in front of the reviewer. OpenDocRouter parses the files. Python checks the line math, the required fields, and the purchase order, and packages what it found. TypeSafe Jev (jev-1.14.0) is there to help with that package. It is not told a route in advance. From the evidence alone it returns a queue, an exception type, how soon to look, and whether a senior reviewer should see the case. Document text stays out of the request. The workbench does not pay, approve, or reject an invoice. A person accepts Jev’s queue or moves the case.</p><h3><strong>Engineering Challenges</strong></h3><p><strong>Reliable financial extraction. </strong>An automated queue is only as reliable as the raw data underneath it. The workbench ingests PDFs, PNGs, and JPEGs, confirming file integrity through extension and magic-byte validation before running OpenDocRouter. Extraction parses printed labels directly so that explicit tokens like ‘invoice number’ and ‘PO number’ govern document typing. Decimal amounts are represented as exact cents in USD, floats are strictly rejected, and foreign currency markers fail the read. When the vendor, invoice number, date, or total cannot be read, there is no complete invoice for Jev to help with, so the case goes to manual review.</p><p><strong>Distinguishing exception types. </strong>Not every disagreement signifies the same operational breakdown. An arithmetic error on a line requires vendor correction; an unlisted purchase order requires purchasing research; and a duplicate submission requires confirmation of prior payment. The checks lay those differences out in order: a line that cannot be multiplied, a missing field, arithmetic that does not hold, a price or quantity difference, a matching identity, a missing or unknown purchase order. That layout is the evidence. Jev is not shown a queue to copy.</p><p><strong>Differentiating duplicates from lookalikes. </strong>Superficial similarities easily mislead manual reviewers. Two invoices from the same supplier may share identical line items and identical totals while referencing distinct purchase orders. The workbench requires an exact match on vendor name, invoice number, date, and total amount before flagging an in-session duplicate or historical re-submission. When an invoice shares line descriptions and a near-identical dollar amount with a prior transaction but carries its own valid invoice number and PO, the rules classify it as a lookalike, keeping it in normal processing with an informational note rather than halting the workflow.</p><p><strong>The help stays visible. </strong>The card shows Jev’s four answers beside the fields, the comparisons, and the pages those comparisons cite. The reviewer can open the evidence Jev received. Accepting the queue or moving the case is logged, and a move needs a note of at most 300 characters. Document text stays out of the log.</p><p><strong>Jev helps with the queue. </strong>Jev answers four questions it has not been shown an answer for: which queue fits, which exception fits, how soon to look, and whether a senior reviewer should see the case first. A priority of 0.7 or more flags Needs attention today and sorts the list. Escalation reads as yes at 0.7 or more and no at 0.3 or less. The reviewer accepts Jev’s queue or moves the case.</p><h3><strong>Workflow Architecture</strong></h3><p>The path is upload, parse, check the facts, ask Jev for help with those facts, then accept the queue or move the case. A reviewer uploads the files. OpenDocRouter parses each one into per-page markdown. Extractors map the fields and keep the page each value came from.</p><p>Validation runs in two deliberate stages. First, in-document verification checks each file against itself: confirming required identity fields, multiplying quantity by unit price across all lines, summing line amounts across pages against printed subtotals, and verifying that subtotal plus tax equals the total. Second, cross-document verification compares the invoice against its referenced purchase order (from session files or the PO register), checks against other in-session invoices, and queries historical records.</p><p>Jev is asked from the Decision page. The request carries the fields, the comparison sentences, and the page numbers. It carries no route, so Jev does not know the outcome beforehand. It helps by returning a queue, an exception type, a priority, and an escalation answer. That answer is the queue on the card. The reviewer accepts it or moves the case and writes a note. The next step is a fixed instruction for the exception type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*MjFStKFbr6WCG2JWb-a8TA.png" /><figcaption><em>Figure 1. Intelligent Accounts Payable solution architecture.</em></figcaption></figure><h3><strong>Key Engineering Decisions</strong></h3><p><strong>Jev works from the evidence, not from a prepared answer. </strong>The checks finish the arithmetic and the comparisons so Jev has verified facts to help with. Jev is not handed a route to copy. Its help is the queue, the exception, how soon to look, and whether to escalate.</p><p><strong>Jev’s answer is the queue on the card. </strong>Once Jev has answered, its route and exception type are what the reviewer sees. The reviewer accepts that help or moves the case, and the move is logged.</p><p><strong>Strict document and log hygiene. </strong>Jev receives only structured findings and citations. The append-only audit trail logs intake, parse, model evaluation, and reviewer events while rejecting strings over 300 characters to prevent unredacted document leakage.</p><p><strong>Jev’s answer stays tied to the evidence it saw. </strong>The answer is kept while that evidence is unchanged. When the evidence changes, the answer is set aside and Jev is asked again, so its help matches the case on the screen.</p><p><strong>The next step stays specific. </strong>The card gives one instruction for the exception type, filled from the invoice: confirm the price, find the purchase order, compare the earlier invoice, or continue with standard handling. Jev’s help stays in the four answers.</p><h3><strong>Use Cases</strong></h3><p>On 14 synthetic cases, Jev was asked wherever the invoice could be read, which was 12 of them. The other two were missing a date or a number, so there was nothing complete for Jev to help with. Reading the evidence on its own, Jev’s queue matched the labelled route on 10 of 12 answers, and its exception type matched on 9 of 12. The two queue differences were duplicate cases. Three use cases show how that help looks.</p><h4><strong>1. Match (Purchase Order Match)</strong></h4><p>Harborline Paper Co. invoice INV-1044 cites purchase order PO-45021. Both documents exhibit flawless internal line arithmetic. When cross-checked, vendor details, line-item quantities, unit prices, subtotal, and the $1,324.00 total match exactly across both records.</p><p><strong>Observed result: </strong>Jev, with no route given to it, returns normal processing, and also says how soon to look and whether to escalate.</p><h4><strong>2. Mismatch (Price Discrepancy)</strong></h4><p>A secondary submission of Harborline INV-1044 enters the session alongside the original, or matches an already-settled record in invoice history. Vendor name, invoice number, billing date, and total amount match to the exact cent, even if visual document formatting varies.</p><p><strong>Observed result: </strong>Jev is not told this is a duplicate. On the recorded answers it reads the evidence as normal processing. The comparison that shows the matching identity stays on the card, and the reviewer accepts Jev’s queue or moves the case.</p><h3><strong>Technology Stack</strong></h3><p><strong>Streamlit</strong> — interactive reviewer interface for upload intake, validation inspection, and exception triage.</p><p><strong>OpenDocRouter</strong> — document ingestion engine that converts PDF, PNG, and JPEG documents into per-page markdown.</p><p><strong>TypeSafe Jev (jev-1.14.0)</strong> — helps the reviewer by reading the evidence, without a route in advance, and returning a queue, an exception type, a priority, and an escalation answer.</p><p><strong>Python code</strong> — runs extraction, the arithmetic, the comparisons, the evidence package, and the audit log.</p><h3><strong>Conclusion</strong></h3><p>OpenDocRouter reads the pages. Python checks whether the invoice agrees with itself, with its purchase order, and with history, and puts that evidence in front of Jev. Jev does not see the document text and does not know a route beforehand. It helps by choosing the queue and adding when to look and whether to escalate. A person accepts that queue or moves it.</p><p>On the labelled cases Jev was asked, its queue matched 10 of 12. Both differences were duplicates, and the matching identity stayed on the card for the reviewer. The payment decision stays with a person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T5j7v2Q9G9WyfjuJJJGk1A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad4f3d4da1e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ResolveIQ: AI-Assisted Incident Response Orchestration with Temporal | 25 Days of AI Day 20]]></title>
            <link>https://medium.com/@winter.inc/resolveiq-ai-assisted-incident-response-orchestration-with-temporal-25-days-of-ai-day-20-3439faebc185?source=rss-b4fc3b6ebef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/3439faebc185</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Winter]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 16:10:07 GMT</pubDate>
            <atom:updated>2026-11-12T16:10:07.804Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Production incidents rarely fail because engineers have no data. They fail because the useful data is fragmented across monitoring systems, deployment records, runbooks, ticketing tools and the knowledge held by people responding under pressure. A customer sees something much simpler: checkout does not complete.</p><p>ResolveIQ is an AI-assisted incident-response proof of concept powered by Temporal. It coordinates the work between a sustained operational signal and a verified recovery: gather evidence, form a grounded hypothesis, apply deterministic policy, wait for an authorised human decision, execute one controlled action and prove the result against the live service.</p><p>The narrow purpose is deliberate. ResolveIQ does not give an AI model independent production control. It reduces the repetitive work around a high-stakes decision while keeping policy and accountability outside the model.</p><h3>The Problem</h3><p>During an incident, responders must quickly identify the affected service and customer journey, recent changes, the applicable runbook, the live diagnostic evidence, the permitted remediation and the person authorised to approve it. They must then determine whether the action genuinely restored the customer experience.</p><p>Today, that work is often manual. Responders move between dashboards, deployment histories, runbooks, tickets and chat threads while the incident clock continues to run. Context can be missed, approvals may be unclear and a successful command can be mistaken for a successful recovery.</p><p><strong>The customer impact is immediate. </strong>A failed checkout creates lost revenue and lost trust before the response team has assembled the operational context needed to act safely.</p><p><strong>The operational record is fragmented. </strong>Even when every source contains correct information, the responder must connect it under time pressure and preserve enough evidence for later review.</p><p><strong>The recovery decision is high risk. </strong>A plausible AI explanation is not authority to change production, and a green command response is not evidence that customers recovered.</p><h3>Challenges</h3><p><strong>Detection must resist noise. </strong>One high latency sample should not create an incident. The monitor requires multiple breached signals across three consecutive checks before it sends the webhook.</p><p><strong>AI reasoning must stay grounded. </strong>The model can use only evidence identifiers that the backend actually loaded. Unsupported citations are rejected, and the leading hypothesis remains visibly unconfirmed.</p><p><strong>Human control must be enforceable. </strong>Authorisation is evaluated by deterministic policy. The workflow must remain paused when an unauthorised role attempts approval, while recording the attempt for audit.</p><p><strong>Retries must not repeat production side effects. </strong>The rollback activity carries an idempotency key so that Temporal can retry safely without applying the same change twice.</p><p><strong>Recovery must be measured. </strong>ResolveIQ requires five consecutive live samples to meet the runbook thresholds before the incident can close.</p><h3>Architecture</h3><p>The architecture follows one durable path from customer signal to recovery proof.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*AsMd9CwJINsXij87NQs6vg.png" /></figure><p><strong>Customer traffic and monitoring. </strong>Northstar Supply provides a live cart and checkout flow. A monitoring agent evaluates latency, HTTP 5xx rate and database-pool utilisation, then sends one webhook after a sustained multi-signal breach.</p><p><strong>FastAPI and Temporal. </strong>The API exposes operator and webhook endpoints. Temporal stores workflow state, activities, timers, retries and human signals so the response survives waiting or worker interruption.</p><p><strong>Worker and AI. </strong>The worker retrieves service ownership, deployment history, runbook guidance, related records and read-only diagnostics. A local Ollama model forms the hypothesis, while validators and deterministic policy constrain its output.</p><p><strong>Live target service. </strong>The target exposes the same measurements used for detection and recovery. It applies the rollback once and supplies the repeated health samples required for closure.</p><p>Service records, users, runbooks, deployments, tickets and mock enterprise integrations are synthetic and repeatable. The storefront, traffic, latency, errors, monitoring webhook, rollback and recovery checks are live inside the demonstration.</p><h3>Engineering Decisions</h3><p><strong>Automate around the decision, not through it. </strong>AI gathers and explains context; deterministic policy defines what is permitted; a named human accepts responsibility for the production action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*RvO4lSj18nvkCgc0RJ14Uw.png" /></figure><p><strong>Keep evidence attached to the workflow. </strong>The final incident record connects customer impact, model reasoning, human approval, execution and recovery rather than leaving those facts across separate tools.</p><p><strong>Use one durable run. </strong>The approval wait does not start a new process. Temporal resumes the same run and preserves the event history that led to the decision.</p><h3>Use Cases</h3><h4><strong>Showing customer failure and operational response together.</strong></h4><p>The split-screen demonstration uses the same running target service on both sides. Flash-sale traffic exposes a connection-pool regression in portal-2.18; checkout fails while ResolveIQ observes the same latency, error-rate and pool-saturation increase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*tIeU99rSxZg5_4EuDrPDGQ.png" /></figure><p>After multiple signals stay outside their limits for three checks, the monitoring agent opens INC-3001 automatically. ResolveIQ begins collecting ownership, the recent release, runbook guidance and read-only diagnostics without a manual incident injection.</p><h4><strong>Keeping production unchanged until the right person approves.</strong></h4><p>The full operator workspace shows the workflow path, proposed rollback, live metrics, AI finding and activity record in one view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*o_YTr5xEobS-QzOzXRWfbA.png" /></figure><p>An SRE attempts approval first. ResolveIQ refuses the request, records the role and keeps the workflow paused. An authorised incident commander then approves the rollback with a named audit decision.</p><h4><strong>Proving that the workflow is real.</strong></h4><p>The exact incident is opened in Temporal Web UI, exposing the workflow ID, run ID, task queue and event history rather than relying on an architecture diagram alone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*qBYpCTCl3vAJdnBCHVZICQ.png" /></figure><p>After approval, Temporal resumes the same workflow, executes one idempotent rollback and begins verification. Five live samples must pass before ResolveIQ closes the incident. The customer retries checkout on portal-2.17 and the order completes.</p><h3>Next Steps</h3><p><strong>Enterprise identity and secrets. </strong>Replace the role selector and local configuration with single sign-on, managed identities, least-privilege service accounts and a production secrets store.</p><p><strong>Real operational connectors. </strong>Integrate the workflow with enterprise observability, deployment, ticketing and notification systems while retaining evidence validation and idempotency.</p><p><strong>Model monitoring and evaluation. </strong>Track groundedness, unsupported-citation rejection, action recommendation quality and changes between model versions before allowing broader use.</p><p><strong>Cloud and security validation. </strong>Validate Temporal Cloud connectivity, network controls, data retention, audit requirements and service-level objectives in the target environment.</p><p><strong>Cross-service incident clustering. </strong>The next feature is to associate related failures across dependent services before recommending a coordinated response with the same policy and approval controls.</p><h3>Conclusion</h3><p>ResolveIQ set out to answer a practical question: can AI reduce the work around an incident decision without removing accountability from the decision itself?</p><p>The proof of concept demonstrates that it can. A customer-facing failure triggers a durable workflow from live signals. The model receives grounded evidence, policy remains deterministic, an unauthorised approval is refused, the approved action executes once and recovery is measured against the same running service.</p><p>What this POC establishes:</p><p><strong>Detection is evidence based. </strong>The incident begins only after a sustained multi-signal breach, not a manual click or a single noisy point.</p><p><strong>AI output is constrained. </strong>The hypothesis stays unconfirmed, and every cited evidence identifier must exist in the backend record.</p><p><strong>Human authority remains explicit. </strong>The model proposes, deterministic policy checks and a named authorised person approves.</p><p><strong>Recovery is part of the answer. </strong>ResolveIQ does not close on a successful command; it requires five passing live measurements and a restored customer checkout.</p><p>What remains scoped to a POC is the enterprise integration layer: identity, secrets, production connectors, security review, model monitoring and cloud validation. The orchestration pattern itself is concrete and testable: AI proposes, policy decides, humans approve, Temporal remembers and recovery is something we prove.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*glTUrrt18J8iHOh_vbvdRw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3439faebc185" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Financial Document Intelligence Workbench | 25 Days of AI Day 19]]></title>
            <link>https://medium.com/@winter.inc/financial-document-intelligence-workbench-25-days-of-ai-day-19-6d432286c708?source=rss-b4fc3b6ebef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d432286c708</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Winter]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 15:06:55 GMT</pubDate>
            <atom:updated>2026-11-06T15:06:55.890Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Consumer loan review depends on several documents that have to be read and compared before a person can assess the file. A loan application, a pay stub, an income and expense statement, a bank statement, and a utility bill rarely share a layout. When extraction, comparison, and explanation are collapsed into one model response, it becomes difficult to see which value came from which page, which disagreement is material, and why a package was allowed to proceed.</p><p>This proof of concept explores how document parsing can be combined with deterministic validation, reviewer oversight, and a language-model brief. Its purpose is not to give an AI model authority over a credit decision. Instead, it separates page reading from the rules that decide whether the documents agree, and from the prose that explains that result.</p><h3><strong>Engineering Challenges</strong></h3><h4><strong>Reading documents that do not share a layout</strong></h4><p>OpenDocRouter parses PDF, PNG, and JPEG files, including a public HTTPS link that resolves to one of those formats. The reviewer selects the parse model for the session. The default is google/gemini-3.8-flash-low. Each page is returned as markdown, with status, token usage, and charge. Files of 3 MB or less are sent inline. Larger files, up to the 10 MB upload limit, use an upload session. Layout metadata can be requested and stays off by default. Document reading stays in that parser. The brief model is not asked to interpret the original page.</p><h4><strong>Extracting fields without a second model call</strong></h4><p>Deterministic extractors turn the markdown into typed fields. A missing amount remains missing. Each money value keeps the source filename and the source text it was read from. The loan application is the baseline, and the other documents are compared against it. Match and mismatch are not decided during extraction.</p><h4><strong>Using AI without delegating the comparison to the model</strong></h4><p>Five Python rule packs test the extracted package: identity and entity, financial and numeric, temporal and dates, cross-document consistency, and completeness. Money within one cent is a match. Beyond one cent, and within 1 percent of the larger value, is within tolerance. Beyond that is a mismatch. A document dated after the application, or more than 90 days before it, is a warning. These outcomes come from application logic.</p><h4><strong>Supporting human oversight</strong></h4><p>A reviewer can accept a finding, select a source of truth when two documents disagree, escalate the item, or correct a value. A correction requires a note, is applied to a copy of the extraction, and every check runs again. Reviewer actions annotate the file. They do not rewrite a check’s outcome. If the underlying values change, the decision is cleared.</p><h4><strong>Making the brief traceable</strong></h4><p>Azure OpenAI writes the brief only after the rules have produced a package stance. Google Gemini is the fallback when Azure is not configured. The model receives structured values, findings, reviewer actions, a timeline, and derived metrics. It does not receive the parsed page text, contact details, or account numbers. If the model proposes a different stance, the application replaces it with the stance from validation. Dollar amounts in the brief that are absent from the payload are flagged. The JSON export includes the payload the model received.</p><h3><strong>Workflow Architecture</strong></h3><p>A review starts when a reviewer opens a client case in the Streamlit workbench, or when a caller creates an application through the FastAPI service. Both entry points use the same Python core. Documents are uploaded, assigned a type, and parsed. OpenDocRouter returns page markdown. Extractors build the typed package. The rule packs produce findings, and the package stance is computed from those findings. The brief is requested only after that stance exists.</p><p>The stance has three values. An open mismatch produces Hold — inconsistencies. An open missing item produces Hold — incomplete. Otherwise the package may proceed to review. That stance describes readiness for a human underwriter. It is not an approval, a decline, or a score.</p><p>At a high level, the lifecycle is: open a case, accept PDF, PNG, or JPEG documents, parse them with OpenDocRouter, extract typed fields, run the five rule packs, record any reviewer decision, compute the package stance, and generate the brief from the verified payload. Moving from validation to the brief does not call OpenDocRouter again. The stored parse is reused.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*NJXG3VJ7uiGSlp7q_XCv3A.png" /><figcaption>Figure 1. Financial document intelligence solution architecture.</figcaption></figure><p>In Figure 1, Streamlit is the reviewer interface and FastAPI is the HTTP service over the same workflow. Both use the shared Python core. OpenDocRouter reads the documents. The rule packs perform the deterministic checks. Azure OpenAI writes the brief from the verified payload.</p><h3><strong>Key Engineering Decisions</strong></h3><h4><strong>Separating parsing from proof</strong></h4><p>OpenDocRouter produces markdown. The rule packs do not call it, and they do not ask a model whether two amounts match. Each finding lists the values compared, the document each value came from, the method, and any variance. A later page of the review can be inspected without repeating the parse.</p><h4><strong>Separating proof from narrative</strong></h4><p>The package stance is computed before the brief is written. The brief model is instructed to use that stance. If it returns a different one, the application overwrites it and records that the replacement happened. The narrative cannot move a held package to proceed to review.</p><h4><strong>Keeping a human path on every open item</strong></h4><p>Accept, source-of-truth selection, escalation, and correction are available on the validation matrix. Escalation leaves the item open, so the stance does not clear. A source-of-truth choice is recorded as a reviewer annotation. A field changes only when the reviewer corrects it, and that correction is logged with the value it replaced.</p><h4><strong>Distinguishing a tolerance from a mismatch</strong></h4><p>An amount within one cent is a match. A variance within 1 percent of the larger value is within tolerance and does not, by itself, hold the package. A larger variance is a mismatch. Rent implied from the bank statement is reported as a warning at most. Small arithmetic noise stays distinct from a contradiction.</p><h4><strong>Limiting what the brief is allowed to see</strong></h4><p>Contact details and account numbers are excluded from the payload. Parsed document text is excluded. Strings in the payload are treated as data. The downloaded JSON contains both the brief and the payload, so a reviewer can see the evidence the model was given.</p><h3><strong>Use cases</strong></h3><h4><strong>A labelled package with no mismatches</strong></h4><p>The labelled Marcus Vance package is the consistent case. The reference amounts are pay-stub gross of $3,750 and net of $3,000, loan monthly gross of $7,500, and income-and-expense total income of $83,500. The validation report has no mismatch findings on the labelled checks, including pay-stub net pay, income-statement totals, monthly income, and year-to-date salary.</p><p><strong>Observed result:</strong> zero mismatch findings on the labelled package.</p><h4><strong>An identity mismatch that holds the package</strong></h4><p>Elena’s sample package includes a utility bill in another person’s name and at another billing address. Income, payroll deposit, and bank reconciliation checks still pass. The identity rules fail the utility-bill name and the billing address against the loan application. Because a mismatch is open, the package stance is Hold — inconsistencies. The brief may describe that finding. It may not treat the package as clear, and it may not decline the loan.</p><p><strong>Observed result:</strong> the utility-bill name and billing address are mismatches. The stance is held for inconsistencies.</p><h4><strong>Amount, address, and date problems kept distinct</strong></h4><p>Raj’s utility bill fails amount-due consistency and the charge total. The bill is also dated after the application, which is a warning rather than a second mismatch. Chloe’s utility bill fails the service address and the charge total, and it has no statement date. That missing date stays missing. It is not filled in. On the Chloe, Elena, and Raj packages, the bank statement period ends two days after the application date, which is a warning.</p><p><strong>Observed result:</strong> amount and address disagreements are mismatches, a late bank statement is a warning, and a missing statement date remains missing.</p><h3><strong>Technology Stack</strong></h3><p><strong>OpenDocRouter:</strong> page-level parsing of PDF, PNG, and JPEG into markdown, with a selectable model and an optional layout flag.</p><p><strong>Streamlit:</strong> the reviewer workbench for upload, extracted fields, the validation matrix, the brief, and parse settings.</p><p><strong>FastAPI: </strong>the same workflow over HTTP, from creating a case through parse, validation, and brief.</p><p><strong>Deterministic Python services:</strong> field extraction, the five rule packs, package stance, and reviewer actions.</p><p><strong>Azure OpenAI: </strong>the preferred model for the brief. Google Gemini is the fallback when Azure is not configured.</p><p>In-memory session store: case state for the proof of concept, with opaque application and document identifiers.</p><h3><strong>Conclusion</strong></h3><p>This proof of concept demonstrates an approach to using a document parser and a language model inside a controlled underwriting-preparation workflow. OpenDocRouter reads the pages. Deterministic rules compare the extracted fields and set the package stance. A reviewer can annotate the findings. Azure OpenAI writes the brief from the verified payload, and the application keeps the stance the rules already produced.</p><p>The demonstrated packages cover a consistent labelled file, a utility bill that names someone else, and utility bills whose amounts, address, or dates do not agree with the application. Together, these cases illustrate why reading, comparison, reviewer judgment, and narrative should remain distinct responsibilities when AI is used on a loan file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pcwAtC_ijGyI1NOvb7G0Sw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d432286c708" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DEVIN — From Bug Report to Pull Request | 25 Days of AI Day 18]]></title>
            <link>https://medium.com/@winter.inc/devin-from-bug-report-to-pull-request-25-days-of-ai-day-18-b158daa20f23?source=rss-b4fc3b6ebef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b158daa20f23</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[devin]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Winter]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 14:45:10 GMT</pubDate>
            <atom:updated>2026-11-04T15:08:58.654Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>A bug report usually lands with an engineer who has to read the existing code, try the case, find out why the number is wrong, fix it, and show that the fix holds. Writing a new function is only one piece of that work. The larger part is investigation, a careful change, tests, and a pull request that another person can review.</p><p>This post follows that path with <strong>Devin</strong>, Cognition’s AI software engineer. The application is a small Python order service that was already in this repository. A percentage discount was returning the wrong total. We described the bad total and asked <strong>Devin</strong> to investigate, correct the code, add regression tests, run the suite, and open a pull request. <strong>Devin</strong> was told to leave the pull request open. An engineer still decides whether to merge it.</p><p><strong>The task is a bug report that becomes a pull request a human can review.</strong></p><h3>The Problem</h3><p>A customer places an order for $100 and takes 20% off. Before tax, the total should be $80. The service returns $96. The customer is being charged $16 more than the discount allows.</p><p>The order code is already split into ordinary pieces. One module works out the subtotal from the items. Another applies the percentage discount. Checkout calls that discount, then adds tax and returns the final total. The bug report does not name a file. It only says the total is wrong. Someone has to place the same order, follow it through checkout, and see where a $20 discount became $4.</p><p>That is why a contained pricing bug still takes real engineering time. The change in the code may be small. Finding which calculation is wrong, proving it with the reported order, and showing that the rest of checkout still behaves is the work.</p><h3>Technology Considered</h3><p><strong>Devin</strong> is the technology this POC is about. It is an AI software engineer from Cognition. In this kind of scenario it is given a repository and a bug report, and it does the engineering work itself: read the code, reproduce the failure, change the implementation, add tests, run them, and open a pull request.</p><p>A coding assistant is usually asked to write a piece of code while a person stays in the editor and decides what to keep. <strong>Devin</strong> was used differently here. The person described the wrong total and the repository. <strong>Devin</strong> had to find the relevant code, explain the cause, limit the change to that cause, and leave a pull request behind. The review and the merge stay with a human engineer.</p><p>The rest of the setup is the application that was already there.</p><p><strong>GitHub</strong> holds this repository, this branch, and the pull request.</p><p><strong>Python</strong> is the order service, including the pricing, discount, and checkout modules.</p><p><strong>Pytest</strong> is how the existing tests and the new regression tests are run.</p><p>No second agent was added, and no separate search or orchestration system sits in front of <strong>Devin</strong>. The point is what <strong>Devin</strong> can do with an existing repository and a concrete bug.</p><h3>Challenges</h3><p><strong>The broken function was not named.</strong> The pricing path runs through the subtotal, the discount, and checkout. <strong>Devin</strong> had to locate the code that produces the order total.</p><p><strong>The wrong total had to be reproduced.</strong> A $100 order at 20% off had to be shown returning $96, with $80 as the expected total before tax. A description of the bug is not the same as a failing case.</p><p><strong>The cause had to come from the code.</strong> The $16 gap could have been tax, a rounding error, or the discount itself. The explanation had to point at the line that turns 20% into 4%.</p><p><strong>The fix had to stay small.</strong> Only the discount calculation needed to change. Checkout and the rest of the pricing behaviour had to stay as they were.</p><p><strong>The result had to be reviewable.</strong> The reported case needed regression tests, the suite had to be run, and the work had to arrive as a pull request. <strong>Devin</strong> does not merge that pull request.</p><h3>Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*mEsr5Qlir0pBXYhFUGlEtA.png" /></figure><p>The figure has three parts. On the left are the inputs: the bug report, the prompt, and this repository. The bug report is the $100 order, the 20% discount, the expected $80, and the actual $96. The prompt asks <strong>Devin</strong> to investigate, fix, test, and open a pull request, and to leave it unmerged. The repository is the existing Python order service and its pytest suite.</p><p>The middle is the session. <strong>Devin</strong> traces the discount and checkout code, reproduces the $96 total, and finds the cause in the discount function. It removes the extra division, adds regression tests, and runs the full suite. On this run, 9 of 9 tests passed.</p><p>The right side is the review. The change sits on this branch, in one commit that touches three files. <strong>Devin</strong> opens the pull request and leaves it open. An engineer reviews the diff. The pull request is not merged.</p><p>The dashed band along the bottom is a separate local check. This branch was fetched and python -m pytest -v was run locally. That run also reported 9 passed. It confirms the tests. It does not merge the pull request.</p><h3>What we Handed to Devin</h3><p>This repository was already an order service, with a README and tests, before <strong>Devin</strong> was given the task. It was not working correctly yet: the discount was wrong, and three of its five tests failed. The subtotal, the discount, and checkout live in separate modules: orders/pricing.py, orders/discounts.py, and orders/checkout.py. The tests live in tests/test_discounts.py and tests/test_orders.py. The history on the repository was the defective version, so <strong>Devin</strong> started from the bug, not from a fix.</p><p>The defect is inside apply_percentage_discount. The function turns a percentage into a rate, which is the right first step. It then divides that rate by 5 again. Twenty percent becomes four percent. On a $100 order, four dollars come off, and the total is $96 instead of $80. Checkout is doing its job. It calls the discount function, subtracts the result, and adds tax. The tax in the reported case is zero, so the $96 is the discounted total, not a tax surprise.</p><p>The prompt describes that result and asks <strong>Devin</strong> to find the cause. This is what we sent:</p><p>Investigate the incorrect order total when a percentage discount is applied. For a $100 subtotal and a 20% discount, the expected total before tax is $80, but the application returns $96. Trace the existing implementation, reproduce the issue, identify the root cause, implement a targeted fix, add regression tests and run the existing test suite. Create a pull request explaining the root cause and changes. Do not modify unrelated functionality or merge the PR.</p><p><strong>Devin</strong> removed the extra division, so the full discount rate is applied. A 20% discount now takes $20 off a $100 order. orders/checkout.py and orders/pricing.py were left unchanged. The commit touches three files: orders/discounts.py, tests/test_discounts.py, and tests/test_orders.py. It is on this branch. The message is “Fix percentage discount applying only one fifth of the rate”. <strong>Devin</strong> is a co-author of the commit.</p><p>The pull request explains the reported issue, the root cause, the change, and the tests. It stays open for an engineer to read.</p><h3>Use Case</h3><p>Take the reported order on its own. The subtotal is $100, the discount is 20%, and tax is not applied yet. The customer should pay $80. The service was charging $96.</p><p>Five tests were already in this repository. Three of them failed on the broken discount. The 20% discount test expected $80 from $100 and got $96. The 100% discount test expected the amount to fall to zero, and instead the extra division left most of the price in place. The order-total test, with a discount and no tax, expected a $20 discount and a total of $80, and it failed for the same reason. Two tests still passed. A zero percent discount passes because zero divided by 5 is still zero. An order with no discount never uses the bad rate, so the subtotal, the tax, and the total stay correct.</p><p><strong>Devin</strong> added four regression tests. A 10% discount on $250 returns $225. A 12.5% discount on $80 returns $70. A $100 order with 20% off, and then 10% tax, totals $88. A $100 order made of several items, at 25% off, totals $75. The discount tests and the order tests are in two files because the bug is in the discount function, while the order total is calculated in checkout. One file checks the discount by itself. The other checks the full order, including tax and an order with several items.</p><p>We ran python -m pytest -v on this branch after the fix. All 9 tests passed. The same command, run locally after this branch was fetched, passed all 9 as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*LwKjqISl3OxJAhvQatJ6OA.png" /></figure><p><strong>Devin</strong> opened the pull request and left it open. The summary states the reported bug, the root cause in the discount function, the change, and the regression tests. It also records that the full suite passed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*rnyf1aNNnPLuckG8ptU5wQ.png" /></figure><p>An engineer can read the root cause, the diff, and the test results, and then decide whether to merge.</p><p>The same path is how <strong>Devin</strong> can take other engineering work: a reported defect, a failing check, a missing regression test, a defined change, or a dependency update. Each one still ends in a pull request a person reviews. This POC ran the discount bug.</p><h3>Conclusion</h3><p>On this order service, <strong>Devin</strong> followed a wrong total from the report into the discount code. The rate was being divided by 5 a second time, so 20% was applied as 4% and a $100 order returned $96 instead of $80. <strong>Devin</strong> removed that extra division, left checkout alone, and added four regression tests. The suite went from 3 failing tests out of 5 to 9 tests passing. The pull request is open, and a human engineer still decides whether to merge it.</p><p><strong>Devin</strong> is an AI software engineer, and that is the difference in this kind of scenario. A coding assistant helps a person write code, usually a function or a change the person has already located. Here the input was a bug report and an existing repository. <strong>Devin</strong> had to understand the order flow, reproduce the $96 total, name the cause, change only the discount, prove the fix with tests, and open a pull request. The person reviews that pull request. The person was not asked to start the investigation.</p><p>That is the general result. <strong>Devin</strong> can take an engineering task from a bug report to a pull request that a human reviews.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*SxniONMdLBFyy6y5limFRQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b158daa20f23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SupplyChainIQ Graph Native Supplier Risk Reasoning | 25 Days of AI Day 17]]></title>
            <link>https://medium.com/@winter.inc/supplychainiq-graph-native-supplier-risk-reasoning-25-days-of-ai-day-17-16dc8877b66f?source=rss-b4fc3b6ebef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/16dc8877b66f</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Winter]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 18:39:56 GMT</pubDate>
            <atom:updated>2026-10-28T18:39:56.763Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>Supplier onboarding can look safe when each record is reviewed in isolation. A supplier may hold valid certifications, satisfy required controls, and have an active contract, yet still expose a critical business process through an unresolved incident or connected dependency. The decision changes only when those relationships are examined together.</p><p>SupplyChainIQ is a graph-native supplier risk reasoning proof of concept. It combines structured enterprise records, a Neo4j knowledge graph, deterministic screening rules, and a local AI explanation layer. For a selected supplier and service, it returns one of four recommendations: Approve, Caution, Pending Evidence, or Do Not Onboard. It also shows the evidence path that produced the result.</p><p>The proof of concept tests one focused question: can connected supplier evidence produce a recommendation that is faster to investigate, consistent in its logic, and traceable enough for a human reviewer to challenge?</p><h3><strong>The Problem</strong></h3><p>Third-party risk evidence is usually fragmented across contracts, certifications, controls, incidents, regulations, service inventories, sub-processors, and business-process records. Traditional reviews often verify these sources independently. That approach can confirm that evidence exists without showing whether a specific incident affects the exact service being considered or whether that service supports a critical operation.</p><p>The distinction between missing evidence and negative evidence is equally important. A control that failed is not the same as a control that has not been recorded. A contract that exists for one service does not automatically cover another. When those conditions are collapsed into a single score, the reviewer cannot tell whether to reject the supplier, request more evidence, or proceed with caution.</p><p>A generative model alone is not an appropriate decision authority for this problem. Supplier screening requires repeatable policy logic, stable outcomes, and source-level traceability. AI is useful for explaining the result, but the recommendation must remain anchored to verified records and explicit rules.</p><h3>Challenges</h3><p><strong>Fragmented evidence. </strong>The application must connect records that originate in separate tables while preserving their source identifiers and business meaning.</p><p><strong>Multi-hop reasoning. </strong>The material risk may sit several relationships away from the supplier. The system must follow a path from supplier to service, then to an incident or dependency, and finally to the business process that could be affected.</p><p><strong>Source and graph consistency. </strong>A graph is valuable only when its nodes and relationships match the underlying enterprise records. Stale or incomplete graph data could create a convincing but incorrect risk path.</p><p><strong>Decision control. </strong>The language model must explain evidence without modifying, weakening, or inventing the screening outcome.</p><p><strong>Reproducible local execution. </strong>The proof of concept must demonstrate the complete flow on one machine while still behaving like an enterprise architecture with distinct data, graph, policy, and explanation layers.</p><h3><strong>Architecture</strong></h3><p>An investigation begins in the browser with a supplier, service, or natural-language question. The local Node.js API reads the structured workbook snapshot from SQLite and queries Neo4j for the connected entities and relationships. These reads are evaluated together, and a parity check rejects the investigation if the graph and source records disagree.</p><p>After verification, deterministic rules evaluate service coverage, contract scope, required controls, certifications, open incidents, risk entries, and downstream dependencies. Only after the recommendation is fixed does a Qwen 3 1.7B model, running locally through Ollama, generate a plain-language explanation of the verified evidence. The model can describe the outcome but cannot change it.</p><p>The browser, API, SQLite database, Neo4j graph, and local model all run on the same laptop through a loopback endpoint. The synthetic dataset contains 20 SQLite tables and 387 workbook rows. The graph contains 140 nodes and 247 relationships, giving the application both a source-record view and a relationship view of the same evidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*8GDU-nhUltNZB5yt3mVTuQ.png" /><figcaption><em>Figure 1 SupplyChainIQ local evidence and reasoning architecture</em></figcaption></figure><h3>Engineering Decisions</h3><p><strong>The graph is connected evidence, not a replacement source. </strong>Neo4j makes relationships visible, while SQLite retains the tabular workbook view. Reading both prevents the graph from becoming an opaque secondary truth.</p><p><strong>Rules decide and AI explains. </strong>The screening engine owns the four possible outcomes. The local model receives the completed evidence package only after that outcome is fixed, creating a clear governance boundary.</p><p><strong>Parity is checked before reasoning. </strong>Every investigation compares graph records with the corresponding source data. A mismatch stops the flow instead of allowing an explanation to proceed on inconsistent evidence.</p><p><strong>Evidence paths are first-class outputs. </strong>The reviewer receives source identifiers, connected nodes, decision factors, and the relationship path behind the recommendation. Explainability is part of the result rather than a narrative added afterward.</p><p><strong>Absence and failure remain distinct. </strong>Missing records produce Pending Evidence when the facts are not sufficient. Verified blockers, such as an invalid service scope, can produce Do Not Onboard. Relevant but non-blocking concerns can produce Caution.</p><h3>Use Cases</h3><p><strong>Amazon Web Services for Customer Data Processing. </strong>The recorded contract matches the selected service and all six required controls are present. However, one relevant incident remains open, and the affected service supports the critical Customer Operations process. The observed recommendation is Caution because the connected incident changes the risk posture even though the contract and controls pass.</p><p><strong>Amazon Web Services for Cloud Hosting. </strong>The recorded contract does not satisfy the selected service scope, and two required controls are not recorded. The observed recommendation is Do Not Onboard. The blocking contract condition is resolved by policy logic rather than by model interpretation.</p><p><strong>Shopify for Customer Data Processing. </strong>No matching contract is recorded and zero of six required controls are connected to the supplier. The observed recommendation is Pending Evidence, directing the reviewer to collect missing records instead of treating the absence as a verified control failure.</p><p>Together, these scenarios show why a single supplier score is insufficient. The same application distinguishes a connected operational concern, a verified onboarding blocker, and an incomplete evidence package, while preserving the facts that led to each outcome.</p><h3><strong>Next Steps</strong></h3><p><strong>Connect governed enterprise data. </strong>The local SQLite snapshot can be replaced by controlled warehouse or lakehouse integration, while preserving the parity and evidence-lineage checks demonstrated in the proof of concept.</p><p><strong>Expand relationship coverage. </strong>Future iterations can include geographic exposure, fourth-party dependencies, financial signals, concentration risk, policy exceptions, and supplier exit dependencies.</p><p><strong>Operationalize policy governance. </strong>Decision rules should be versioned, tested against approved scenarios, and linked to the policy clause that justifies each outcome. Role-based approval and evidence-export workflows would support formal review.</p><p><strong>Validate scale and model quality. </strong>The proof of concept uses synthetic data and a local model. Production readiness requires larger datasets, performance testing, security review, explanation-quality evaluation, and monitoring for data drift.</p><p>These steps do not change the intended control model: verified records and deterministic policy logic remain authoritative, while AI improves readability and investigation speed.</p><h3>Conclusion</h3><p>The proof of concept answers its core question positively within the boundaries of recorded evidence. Connected supplier data, verified across source and graph, can produce a repeatable recommendation and expose the relationship that changes the answer. The three demonstrated scenarios show distinct outcomes for an open connected incident, an invalid service scope, and missing evidence.</p><p>SupplyChainIQ does not automate final supplier approval. It demonstrates a decision-support pattern in which deterministic rules own the recommendation, a local model explains only verified evidence, and a human reviewer remains accountable for the decision. The current implementation uses synthetic data and local deployment, but its architecture provides a practical foundation for governed third-party risk, compliance analysis, procurement comparison, and operational-resilience workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xx2nCRWF6jCQyLl4uQ_BvA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16dc8877b66f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI-Driven Billing Workflow Orchestration | 25 Days of AI Day 16]]></title>
            <link>https://medium.com/@winter.inc/ai-driven-billing-workflow-orchestration-25-days-of-ai-day-16-4c32ad09bd97?source=rss-b4fc3b6ebef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c32ad09bd97</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Winter]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 13:26:48 GMT</pubDate>
            <atom:updated>2026-10-21T13:26:48.991Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Billing operations often involve several dependent stages, from validating incoming data to merging records, loading results, and confirming that each stage is allowed to proceed. When these activities are handled by separate processes, teams need clear control over decisions, execution order, and the evidence behind each outcome.</p><p>This proof of concept explores how AI-assisted assessment can be combined with deterministic validation, workflow orchestration, background processing, and approval gates. Its purpose is not to give an AI model unrestricted control over billing operations. Instead, it separates the role of AI assessment from the rules that govern execution.</p><h3>Engineering Challenges</h3><h4>Validating incoming billing data</h4><p>Billing files must be checked before downstream processing begins. The workflow uses deterministic validation to assess incoming billing files and establish the validation results used by the billing cycle. This keeps basic data checks grounded in explicit application logic rather than relying on a language model to validate records.</p><h4>Using AI without delegating control to the model</h4><p>An AI-generated recommendation can help summarize assessment findings, but it should not be treated as execution authorization. The solution uses a locally hosted Ollama model to provide recommendations, confidence scores, and supporting evidence. A separate policy evaluation determines the applicable gate outcome.</p><h4>Controlling dependent processing stages</h4><p>Merging and loading are dependent operations. The workflow must prevent downstream jobs from starting when the required gate has not been approved. Elsa manages workflow state and approval gates, while Hangfire runs the BillMerge and BillLoad background jobs within the approved workflow path.</p><h4>Supporting human oversight</h4><p>Not every assessment should proceed automatically. The proof of concept includes a human-approved processing path, allowing an operator to review and approve the relevant stages. This keeps human decision-making available alongside the policy-based path demonstrated by the application.</p><h4>Making outcomes understandable</h4><p>Operators need to understand whether a cycle proceeded, which stage was reached, and why processing stopped. The workflow brings together assessment information, gate outcomes, and job results so that the demonstrated processing path can be inspected rather than treated as a single opaque operation.</p><h3>Workflow Architecture</h3><p>The workflow begins when an operator starts a billing cycle. Billing files are read from blob storage, with Azurite supporting local development. Deterministic validation runs before the AI-assisted intake assessment. The workflow then evaluates the relevant gate before allowing the next processing stage.</p><p>Elsa is responsible for workflow state and approval gates. Hangfire executes the heavier BillMerge jobs(merging files) and BillLoad jobs(validation), and those jobs are enqueued only within the appropriate approved branches. After merge and load processing, the workflow evaluates the stage outcomes and can progress toward completion when the required conditions are met.</p><p>At a high level, the lifecycle is: start the billing cycle, validate the input files, assess the intake, evaluate Gate 1, execute BillMerge, assess the merge stage, evaluate Gate 2, execute BillLoad, assess the load stage, evaluate Gate 3, and complete the cycle. A rejected gate terminates the cycle rather than allowing the approved processing path to continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*3XbDzRotDRPrXSVj45UZaw.png" /></figure><h3>Key Engineering Decisions</h3><h4>Separating assessment from enforcement</h4><p>The AI assessment service provides recommendation data, while deterministic policy logic evaluates the conditions used by the gate. This separation makes the decision path easier to reason about and test: a recommendation is an input to policy evaluation, not a substitute for it.</p><h4>Using workflow gates to control job execution</h4><p>The workflow owns the order of operations and the conditions under which a stage may proceed. Hangfire is used for background execution, but job scheduling remains tied to the approved workflow branch. This prevents a rejected gate from being treated as a successful authorization to continue.</p><h4>Distinguishing file-level validation from batch-level decisions</h4><p>File validation results and batch-wide conditions serve different purposes. Keeping these concerns distinct avoids turning an individual file issue into an unintended batch-wide decision. The policy can then evaluate the conditions that are explicitly relevant to the current gate.</p><h4>Keeping a human-approved path</h4><p>The human-in-the-loop scenario demonstrates that operators can approve the required stages and allow processing to continue. This is important for workflows where a person must retain direct control over progression, rather than assuming that every assessment should be handled automatically.</p><h4>Recording evidence for decisions</h4><p>Assessment details, policy outcomes, workflow progression, and job results provide context for understanding each run. This evidence-oriented approach helps explain why a cycle proceeded or stopped and supports review of the demonstrated behavior.</p><h3>Demonstrated Scenarios</h3><h4>Human-approved processing</h4><p>In the demonstrated human-in-the-loop run, a batch containing three files and 25 records proceeds through manual approval at the required gates. The merge and load stages complete.</p><p><strong>Observed result:</strong> 25 records were merged and loaded, with zero rejected records.</p><h4>Successful AI-assisted processing</h4><p>In the successful AI-assisted run, a valid batch containing one file and 10 records proceeds through the configured policy gates. The merge and load jobs execute, and the cycle completes.</p><p><strong>Observed result:</strong> 10 records were merged and loaded, with zero rejected records.</p><h4>Policy-based rejection</h4><p>In the rejection scenario, the AI recommends review with a confidence score of 0.80, below the configured threshold of 0.85. The deterministic gate policy rejects the cycle at Gate 1. Since the gate is not approved, the downstream processing jobs do not start.</p><p><strong>This scenario illustrates the division of responsibility:</strong> the model supplies the recommendation, and the configured policy determines the gate outcome.</p><h3>Technology Stack</h3><p><strong>Ollama:</strong> local language-model execution for AI-assisted assessment.</p><p><strong>Elsa:</strong> workflow state, orchestration, and approval-gate management.</p><p><strong>Hangfire</strong>: background execution of BillMerge and BillLoad jobs.</p><p><strong>Blob storage and Azurite</strong>: storage and local development support for billing files and associated data.</p><p><strong>Deterministic backend services:</strong> file validation, assessment handling, policy evaluation, and billing-cycle processing.</p><h3>Conclusion</h3><p>This proof of concept demonstrates an approach to integrating AI-assisted assessment into a controlled billing process. Deterministic validation checks the input, AI contributes recommendations and evidence, policy logic evaluates gate conditions, Elsa orchestrates progression, and Hangfire executes approved processing jobs.</p><p>The proof of concept demonstrates human-approved processing, a successful AI-assisted run, and a policy-based rejection at intake. Together, these scenarios illustrate why assessment, enforcement, orchestration, and execution should remain distinct responsibilities in an AI-enabled business workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVJdYyBnLd0eQtu4P4JU7w.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c32ad09bd97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Health Report Intelligence AI-Powered Comparison and Care Insights| 25 Days of AI Day 15]]></title>
            <link>https://medium.com/@winter.inc/health-report-intelligence-ai-powered-comparison-and-care-insights-25-days-of-ai-day-15-1c4b7ca2b762?source=rss-b4fc3b6ebef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c4b7ca2b762</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[healthcare-technology]]></category>
            <category><![CDATA[digital-health]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Winter]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 14:22:13 GMT</pubDate>
            <atom:updated>2026-10-01T14:22:13.450Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Health reports contain important health information, but reviewing multiple test results and understanding abnormal values can be time-consuming and difficult. Comparing current and previous reports also requires identifying changes across different parameters and understanding what those changes may indicate.</p><p>This Health Report Intelligence system addresses this challenge by using AI and automated data-processing techniques to extract, validate, compare, and explain blood test results. The system uses OCR to read uploaded reports, Llama Index to structure the extracted information, and deterministic validation to ensure that values are checked against the actual reference ranges rather than being interpreted solely by AI. Historical comparison identifies changes between current and previous reports, while Lang Chain and Azure OpenAI generate clear, easy-to-understand explanations based on the validated data.</p><p>In this Proof of Concept, we explored an end-to-end approach that combines report extraction, value validation, historical comparison, AI-powered analysis, and care insights in a single workflow. The goal is to demonstrate, for example, how blood-report analysis can be made more automated, reliable, and understandable while supporting users in discussing their results with qualified healthcare professionals.</p><h3>Challenges</h3><p><strong>Complex Health Reports</strong>: Medical terms, multiple test values, and reference ranges can be difficult for patients to understand. Manually interpreting these details can be time-consuming and may cause confusion.</p><p><strong>Unclear Abnormalities:</strong> Identifying which values are normal, high, or low requires reliable validation against the reported reference ranges. Accurate classification is important to avoid misunderstanding the actual reported results.</p><p><strong>Difficult Report Comparison</strong>:<strong> </strong>Comparing current and previous reports manually makes it difficult to identify changes and trends over time. Patients may miss important increases, decreases, or unchanged values when reviewing reports separately.</p><p><strong>Lack of Simple Explanation</strong>:<strong> </strong>Patients need clear, easy-to-understand AI explanations based on the validated results. Technical laboratory information needs to be converted into meaningful insights without replacing professional medical advice.</p><p><strong>Specialist Recommendation</strong>: Patients may be unsure about which specialist to consult based on the identified abnormalities. A relevant specialist category can help patients understand whom they may discuss their results with<strong>.</strong></p><h3>Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3K7Fy9xgu5BsjNF-UHQxpg.png" /></figure><h4><strong>The Architecture flow is as follows:</strong></h4><p><strong>Report Input</strong>: The user uploads current and previous blood reports in PDF or image format through the application. Both reports provide the required information for identifying changes and performing historical trend analysis.</p><p><strong>Data Extraction</strong>: <strong>Tesseract OCR</strong> scans the uploaded reports and converts the content from images or PDF pages into machine-readable text. Llama Index then helps organize the extracted information into a structured format for the next stages.</p><p><strong>Validation</strong>: The system extracts important fields such as test name, value, unit, and reference range from the report. A deterministic validation process compares each value with its actual reported reference range and classifies it as High, Low, or Normal, rather than allowing the AI model to decide the result.</p><p><strong>Historical Comparison</strong>: The validated values from the current and previous reports are matched parameter by parameter. The system identifies whether each test value has Increased, Decreased, or<strong> </strong>Remained Unchanged, helping users understand their health-data trends over time.</p><p><strong>AI Explanation</strong>: The validated results and comparison findings are passed to LangChain and Azure OpenAI for explanation. The AI converts the technical results into simple, understandable language, while the system is designed not to provide a medical diagnosis or prescription.</p><p><strong>Care Insights</strong>: The validated abnormal results are analyzed to identify the relevant specialist category associated with the findings. The system then provides a specialist recommendation as a care insight for further discussion with a qualified healthcare professional.</p><p><strong>Output Dashboard</strong>: The Streamlit dashboard brings all the processed information together in one place. Users can view the extracted parameters, validation results, historical trends, AI explanation, and specialist recommendation through an easy-to-understand interface.</p><p><strong>Data Storage</strong>:<strong> </strong>MongoDB stores the processed information generated throughout the workflow. This includes report data, validation results, historical comparisons, AI explanations, and care insights, allowing the information to be retained for future application workflows.</p><h3>Engineering Decisions</h3><h4><strong>Extract locally before analysis.</strong></h4><p>Tesseract OCR extracts text from uploaded blood reports, while LlamaIndex structures the parameters. This keeps extraction separate from interpretation and ensures that downstream analysis uses actual report data.</p><h4><strong>Validate against the report’s own ranges.</strong></h4><p>Python compares each extracted value against its reported reference range. This avoids applying fixed thresholds across different tests and prevents AI from deciding abnormality status.</p><h4><strong>Compare matching parameters only.</strong></h4><p>Current and previous reports are matched by test name and compatible units. Python calculates the actual differences, ensuring that historical trends are based on corresponding laboratory values.</p><h4><strong>Let deterministic logic decide; let AI explain.</strong></h4><p>Python determines validation results and trends. LangChain and Azure OpenAI explain these results in simple language but cannot modify values, calculations, or validation outcomes.</p><h4><strong>Bind explanations to validated evidence.</strong></h4><p>AI receives structured and validated results rather than raw assumptions. This reduces unsupported medical claims and ensures explanations remain grounded in extracted report data.</p><h4><strong>Keep specialist recommendations traceable.</strong></h4><p>The in-memory knowledge graph maps abnormal parameters to relevant specialties using predefined relationships, avoiding unrestricted AI-generated recommendations.</p><h4><strong>Preserve evidence and verify every stage.</strong></h4><p>MongoDB stores extracted values, validation results, comparisons, and summaries. Independent testing checks each pipeline stage against expected results before final insights are generated</p><h3>Use Cases</h3><h4><strong>Blood Report Analysis</strong></h4><p>Users upload current blood reports to extract and validate laboratory values. The system highlights abnormal results and generates easy-to-understand medical summaries</p><h4><strong>Historical Trend Analysis</strong></h4><p>The system compares current and previous blood reports to identify increased, decreased, or unchanged values. This helps patients track changes in their laboratory results over time.</p><h4><strong>AI-Powered Report Explanation</strong></h4><p>Validated results and identified trends are processed by LangChain and Azure OpenAI to generate simple, user-friendly explanations. This helps patients understand their result without relying only on technical medical terminology.</p><h4><strong>Care Insights &amp; Specialist Recommendation</strong></h4><p>The system analyzes validated findings to identify a relevant specialist category for further discussion. This provides patients with clearer guidance on whom they may consult regarding their results.</p><h3>Conclusion</h3><p>The Health Report Intelligence POC demonstrates how traditional blood-report analysis can be transformed into an intelligent and user-friendly healthcare experience. By combining OCR-based extraction, LlamaIndex, deterministic validation, historical trend analysis, LangChain with Azure OpenAI, and care insights, the system converts unstructured blood reports into structured and meaningful information. It helps identify abnormal values, compare current and previous reports, explain results in simple language, and recommend the relevant specialist category.</p><p>The proof of concept also demonstrates how multiple AI capabilities can work together in a single healthcare workflow. Streamlit provides the user interface, while MongoDB supports storage of processed information and an in-memory knowledge graph supports specialist recommendations. Overall, the solution provides a practical foundation for making blood-report analysis more automated, understandable, and actionable, while supporting patients in discussing their results with qualified healthcare professionals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*McSHZM9YGnepOIREN-A0UQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c4b7ca2b762" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agent Regression Harness: An Evidence-Based Approach to Enterprise Agent Evals | 25 Days of AI Day…]]></title>
            <link>https://medium.com/@winter.inc/agent-regression-harness-an-evidence-based-approach-to-enterprise-agent-evals-25-days-of-ai-day-ad3a7aa1b86f?source=rss-b4fc3b6ebef4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad3a7aa1b86f</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Winter]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 13:17:20 GMT</pubDate>
            <atom:updated>2026-09-23T13:17:20.711Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Agent Regression Harness: An Evidence-Based Approach to Enterprise Agent Evals | 25 Days of AI Day 14</strong></h3><h3>Introduction</h3><p>An LLM agent is changed constantly, and almost never by changing code. Someone shortens a system prompt to save tokens. Someone rewrites a tool description to make it clearer. Someone upgrades the model version. No compiler, type checker or unit test catches any of these — and every one of them can change which tools the agent calls, and in what order.</p><p>The <strong>Agent Regression Harness</strong> is a testing pipeline that scores each of an agent’s capabilities separately against a measured noise floor, and gates pull requests when a capability drops further than noise can explain. It then localizes what broke — reporting the capability, the test cases, and the tool calls responsible to guide the engineer who introduced the change.</p><p>This is not a quality benchmark. It answers a narrower, falsifiable question: did this change make a specific capability worse?</p><h3><strong>The Problem</strong></h3><p>Many teams, today, find out about an agent regressing the same way their users do — someone reports that a request never went through, or that the assistant answered confidently but wrongly, and an engineer works backwards to a change that shipped days earlier. Evaluation, where it exists, is often a handful of prompts run by hand before release — enough to catch an agent that is broken outright, but not enough to catch one that quietly got worse at a single capability.</p><p>The more rigorous version is to run a fixed eval set and compare the score before and after the change. That is an improvement, but it still fails in two ways, and they compound.</p><p><strong>A single score hides which capability broke.</strong></p><p>In this POC, a two-line addition to the system prompt produced:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*co9BUq5LHUA0niNFUDaPUg.png" /></figure><p>The aggregate moved six points. But one capability lost thirty. And averaging concealed it.</p><p><strong>The score moves on its own.</strong> The same configuration, run twice over the same cases, produces different tool calls and a different score. So when a number moves after an edit, nothing tells you the edit caused it. Without knowing how much the score moves when <em>nothing</em> changed, no comparison is falsifiable.</p><h3>Challenges</h3><h4><strong>The measurement is noisy by construction.</strong></h4><p>Temperature above zero is required — the noise floor is measured by repeated sampling, and temperature zero would collapse it and make every difference look significant. The harness has to measure its own variability before it can interpret anything.</p><h4><strong>Five capabilities are tested at once.</strong></h4><p>Without correction, the chance of at least one spurious result is about 23%. With the Bonferroni correction splitting the error budget across the five tests, detection power per capability drops — so smaller but real regressions can be missed. That trade-off is unavoidable, and the harness makes it explicit.</p><h4><strong>Knowing something broke isn’t knowing what to fix.</strong></h4><p>A red check that sends an engineer to read trajectories by hand has moved the work, not done it.</p><h4><strong>The scorers themselves can be wrong.</strong></h4><p>A scorer that draws a distinction the agent doesn’t draw will manufacture regressions.</p><h4><strong>A correct trajectory doesn’t mean a correct answer.</strong></h4><p>An agent can call exactly the right tools with the right arguments and still state something false. Deterministic trajectory scoring structurally cannot see this.</p><h3><strong>Architecture</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9OIAICSosTSBI2a8KE-pNQ.png" /></figure><p>The architecture is divided into two stages: generating evidence, and gating the change.</p><p><strong>Generating evidence</strong> runs offline, with a model and credentials. The agent — LangChain and LangGraph on Azure OpenAI gpt-4o, with model, prompt and tool descriptions all injected from a YAML file — runs 100 golden cases three times each. MLflow captures every tool call as a span, on a trace tagged with case, rep, capability and config fingerprint. Eight deterministic scorers grade the resulting trajectory. The output is a Parquet frame of 300 scored traces, which gets committed along with the pull request.</p><p><strong>Gating the change</strong> runs on every pull request via GitHub Actions using the committed scores. It verifies the config fingerprint, bootstraps a per-capability confidence band, applies the frozen thresholds, and localizes the errors when it blocks a change.</p><p>The agent under test is an IT support assistant with five capabilities — looking up people, checking tickets, answering from a handbook, checking licenses, and filing access requests.</p><p>To demonstrate and test these capabilities, we use a fixed synthetic organization: 24 people across 6 departments, 20 tickets with full history, 16 handbook articles, 10 products and 71 licence grants, served by 11 pure-function tools with no network, no clock and no randomness. That’s the controlled variable — it’s what makes two runs comparable at all.</p><p>The case set is shaped deliberately. Each capability gets 20 cases in three tiers: 8 <strong>straightforward</strong> (the obvious use), 8 <strong>wrinkle</strong> (a step the phrasing doesn’t advertise), and 4 <strong>restraint</strong> (where the correct behavior is <em>not</em> to act). A failure in each tier means something different — broken outright, stopping at the first plausible result, or acting when it should have asked.</p><h3>Engineering Decisions</h3><h4><strong>Measure the noise floor first.</strong></h4><p>The harness’s first comparison is baseline against baseline — identical config, identical cases, different sampling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gLAc4GUNyjapgLdLhX6s6w.png" /></figure><p>The lower bound of each band becomes that capability’s limit. access_request tolerates a 21.7-point drop; ticket_status, 1.7. These differ by more than an order of magnitude, which is exactly why a single hand-picked threshold cannot work.</p><h4><strong>Freeze the thresholds before the change exists.</strong></h4><p>They’re committed to gate_config.yaml, so a change can never move its own goalposts.</p><h4><strong>Pair by case, and bootstrap cases rather than observations.</strong></h4><p>Cases differ in difficulty, so the unit of evidence is a per-case delta. The bootstrap resamples 2,000 times over <em>cases</em>, which is the population you’d actually draw differently next time.</p><h4><strong>Require two conditions to block.</strong></h4><p>A capability blocks only when the drop clears the frozen limit <em>and</em> its own band excludes zero. Neither alone is enough: the limit is a point estimate compared against a bound with no uncertainty of its own, so a capability whose floor happened to bottom out at 0.0 would block on any dip. Thresholds are also clamped no tighter than 1/(reps × cases) = 1.7 points — below that, a “drop” is the measurement grid, not a finding.</p><h4><strong>Let deterministic checks gate; let AI only advise.</strong></h4><p>tool_recall, arg_match, order_violations and forbidden_tool_used decide the verdict — same evidence, same result, every time. A separate LLM judge reads each answer against what the tools actually returned and flags unsupported claims. It never touches the verdict, and every judgement carries its prompt version so a prompt edit can’t silently rewrite history.</p><h4><strong>Bind evidence to the config that produced it.</strong></h4><p>The gate recomputes the config fingerprint and requires it to match the fingerprint on every trace. If a PR edits a config without re-running it, the gate reports NO EVIDENCE rather than judging the change against someone else’s measurements.</p><h4><strong>Keep the tools pure.</strong></h4><p>No network, no clock, no randomness — and CI verifies output is identical across four PYTHONHASHSEED values. If tool determinism breaks, the noise floor is measuring tool flake rather than model sampling, and every band derived from it is wrong. 668 offline tests hold this in place. Additionally, every scorer was tested using a sabotage discipline.</p><h3>Use Cases</h3><h4><strong>Catching a prompt edit that looked harmless.</strong></h4><p>Two lines appended to the system prompt, with nothing else changed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JKiFGNGQmUCzL2UJGZfB9w.png" /></figure><p>The gate blocked it: access_request fell 0.300 with a band of [−0.533, −0.017], entirely below zero. Localization pointed at tool_recall on notify_approver, in 8 of 20 cases:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nk0tOB7XVhXUi8ocXGQTtw.png" /></figure><p>Case accs_004 shows us: When the system prompt was edited to use fewer tool calls, the agent dropped the last step in the chain — the one with no visible consequence in its own reply. The request exists but the person who must approve it was never told.</p><h4><strong>Clearing a change that only looked dangerous.</strong></h4><p>A tool description was rewritten from what the tool is <em>for</em> to what it <em>contains</em> (“Historical reporting only”). It was expected to break the precondition check. Measured against the noise floor, every capability stayed inside its limit, so the gate passed it.</p><h4><strong>Qualifying a model upgrade.</strong></h4><p>A provider repoints a deployment, or the team switches models. The config difference is one field, the case set is unchanged, and the noise floor already exists — so the same comparison answers whether any capability regressed.</p><h4><strong>Blocking a merge in CI.</strong></h4><p>A pull request touching any config runs the frozen gate. On a block, the localization table is posted as a PR comment and the check fails. On a pass, the job summary still carries the full table.</p><h3>Next Steps</h3><h4><strong>Resolution.</strong></h4><p>More cases and more reps narrow the bands. Narrower noise thresholds mean that even smaller regressions can be detected.</p><h4><strong>A drift guard.</strong></h4><p>Every change is measured against the most recent baseline, never the original. Five merges, each landing just inside its limits, could take this agent further away from the original baseline’s accuracy even with every check green. The fix is a second comparison against a fixed anchor baseline, carrying its own budget for how far a capability may sit below the original.</p><h4><strong>A judge on different weights.</strong></h4><p>The advisory judge currently runs on the same gpt-4o deployment as the agent under test, so it may share its blind spots. That bias is recorded on every judged row rather than hidden but pointing it at another provider is the real fix.</p><h3>Conclusion</h3><p>The POC set out to answer one question: can we tell, with a defensible number, whether a change made a specific agent capability worse?</p><p>It can. A prompt edit that moved the aggregate by six points — the kind of edit that ships after a nod in review — was blocked on a thirty-point drop in a single capability, with the cause traced to a tool call the agent had silently stopped making. Interestingly, a second change that looked more dangerous was cleared.</p><h4>What this POC establishes:</h4><p><strong>Noise is evident, and it differs per capability.</strong> access_request tolerates a 21.7-point drop; ticket_status, 1.7. Any single hand-picked threshold would be wrong for at least one of them.</p><p><strong>Aggregate scores are the wrong unit.</strong> Per-capability verdicts surfaced a regression the overall number actively hid.</p><p><strong>Scoring the path turns a verdict into a diagnosis. </strong>Grading the tool-call path turns “access_request dropped” into “notify_approver stopped firing in 8 of 20 cases.”</p><p>The gate is already in production-ready use on this repository: it runs on every pull request, reads the committed evidence, gates a merge and has offline tests to support it. Thresholds are frozen before the change exists, evidence is bound by fingerprint to the config that produced it, and any verdict can be reproduced by whoever disputes it.</p><p>What remains scoped to a POC is breadth, not depth. The implemented statistics and gating work on any agent’s results. The case loader does not — this agent’s capabilities are written into its code. Pointing the harness at another agent means editing code, not the configuration. A capability registry and case schema would close that gap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*15ZQeZQ6_FKMvMMe6frvlQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad3a7aa1b86f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>