cleandataengineering.aiAgent Harness, drawn simply
You are here: Real flows › 5 · Asking about cover

Agent Harness Tutorial · Real flows

Flow 5: Asking about cover

Route: Refuse. 0 model calls · 0 tool calls · 164 ms.

Open: Entra IDEntraIDOpen: PostgreSQLPostgresstateOpen: DBOSDBOSwaitsOpen: APIM → modelAPIM→ modelOpen: Claims (MCP)ClaimsMCPTHE BOXES IT PASSEDWHAT HAPPENEDBEFORE THE MESSAGEOpen: Sign-in with Microsoft EntraSign-in with Microsoft Entrazoom in ›1Rohan signs in with MicrosoftEntra ID (code flow + PKCE); thetoken stays in the pageOpen: Page opens: load the conversationPage opens: load the conversationzoom in ›2GET /opening: the newestcheckpoint is resumed if under24 h old, else a newconversationTHE MESSAGERohan: "Will my claim be approved?"Open: Front doorFront doorzoom in ›3body ≤ 8 KiB · token verified →PH-1001 · kill switch onOpen: Delivery ledgerDelivery ledgerzoom in ›4new row PH-1001:<delivery id>,in_flight, expires in 600 sOpen: Anything waiting?Anything waiting?zoom in ›5nothing pendingOpen: RouterRouterzoom in ›6rule R-COVERAGEOpen: RefuseRefusezoom in ›7a fixed polite refusal, writtenin advanceOpen: After-loop rulesAfter-loop ruleszoom in ›8no Tier-2 rule fires · promisegate: passOpen: Before-reply checkBefore-reply checkzoom in ›9no_promise_of_cover,no_pii_echo, money_in_rupees:passOpen: Save and settleSave and settlezoom in ›10checkpoint saved · ledger row →answeredReply: "I am sorry — I cannot say whether a claim is covered or what it pays — only theassessment decides that. I can tell you the status ..."
Left: the boxes this message really passed, in order; each opens its design page. Middle: the outside systems each box called, as dots on five lanes (Entra ID, PostgreSQL, DBOS, APIM in front of the model, the claims system over MCP); click a lane head to open it. Right: what happened. Grey boxes are checks, the dark box is the model, a crossed box is where something was blocked.
What it teachesRefusing questions about cover is a deterministic router rule, not the model's judgement.

Want every detail? The long version is in the Series: this flow with real spans and payloads.