<?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 Pooja Kurbetti on Medium]]></title>
        <description><![CDATA[Stories by Pooja Kurbetti on Medium]]></description>
        <link>https://medium.com/@pooja.kurbetti89?source=rss-00403753b1dc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*5vRLMsonXGZSTJi4</url>
            <title>Stories by Pooja Kurbetti on Medium</title>
            <link>https://medium.com/@pooja.kurbetti89?source=rss-00403753b1dc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:54:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pooja.kurbetti89/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[Your Cache Is Lying to You: How to Test and Automate Caching, Even a 2-Hour TTL]]></title>
            <link>https://medium.com/@pooja.kurbetti89/your-cache-is-lying-to-you-how-to-test-and-automate-caching-even-a-2-hour-ttl-4fa034cee108?source=rss-00403753b1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fa034cee108</guid>
            <category><![CDATA[cache]]></category>
            <category><![CDATA[redis]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <dc:creator><![CDATA[Pooja Kurbetti]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 14:01:26 GMT</pubDate>
            <atom:updated>2026-10-04T14:01:26.326Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Caching bugs live in time and concurrency. Here’s how to test both on purpose.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lqm1BQ9egwk_a0VQsJNkw.png" /></figure><p>Imagine a pricing service that caches product prices for two hours. An engineer notices a wrong price and fixes it in the database. The database is correct within seconds, but the site keeps showing the wrong price for up to two hours, because that’s how long the old value lives in the cache.</p><p>The tests had all passed. They checked that a second read was served from the cache and returned the same data. Nobody tested expiry, because nobody wants a CI pipeline that waits two hours.</p><p>The code wasn’t wrong. The tests simply never touched the dimension where caching bugs live: time.</p><blockquote><em>If you can’t test the clock, you haven’t tested the cache.</em></blockquote><h3>Why caching bugs slip through</h3><p>Most tests are fast, sequential and single-threaded. Cache bugs need the opposite: elapsed time, concurrent requests, partial failures and deploys that change the shape of cached data. A cache that passes every unit test can still serve stale data, collapse under load, or break a rollback.</p><h3>What to test</h3><ul><li><strong>Hits and misses.</strong> A second read comes from the cache, and a miss falls through to the source of truth.</li><li><strong>Invalidation.</strong> After a write, nobody can read the old value for longer than you intended.</li><li><strong>TTL and expiry.</strong> The entry expires when expected, and the next read reloads cleanly.</li><li><strong>Stampede.</strong> When a hot key expires, hundreds of requests don’t all hit the database at once.</li><li><strong>Stale writes.</strong> A slow reader can’t put an old value back after a fresh update (more on this below).</li><li><strong>Cache outage.</strong> If the cache is down or slow, the service degrades instead of failing.</li><li><strong>Key isolation.</strong> Two tenants or users can never share a key.</li><li><strong>Schema versioning.</strong> New code can’t misread old cached data, and a rollback can’t misread new data.</li></ul><h3>The bug that surprises people: the stale write</h3><p>With the common cache-aside pattern, a race hides in plain sight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ps0h23Y6-sB8S0wdQOvicA.png" /></figure><p>A slow reader loads the old value from the database. Meanwhile a writer updates the database and deletes the cache key. Then the slow reader finishes and writes its old value into the cache. Nothing is wrong with any single step, yet the cache now holds stale data until the TTL expires.</p><p>Two defences work well together. Store a version alongside each cached value and refuse to overwrite a newer one, and keep a TTL as a backstop so any mistake heals itself. Then write a concurrency test that deliberately delays the reader to reproduce this exact order.</p><h3>Test in layers</h3><ol><li><strong>Unit tests with a fake clock.</strong> Inject the clock so TTL logic runs instantly. Test key building, serialization and fallback behavior against an in-memory fake.</li><li><strong>Integration tests against the real cache.</strong> Start Redis or Memcached with Testcontainers in CI. Fakes hide real behavior like eviction, size limits and atomic operations.</li><li><strong>Concurrency tests.</strong> Fire parallel requests at a cold key and assert the database is hit once.</li><li><strong>Failure injection.</strong> Stop the cache, add latency with a tool like Toxiproxy, or return errors. The service should answer slower, not die.</li><li><strong>Cold and warm load tests.</strong> Measure p95 and p99 latency with an empty cache and a warm one. Restarts and deploys will produce the cold case sooner or later.</li><li><strong>HTTP and CDN checks.</strong> Assert Cache-Control, ETag and Vary headers, and that personalized responses are never stored by shared caches.</li></ol><h3>The 2-hour TTL problem</h3><p>Here is the question that stops most teams: if invalidation is set to two hours, how do you test it in staging through automation?</p><p>You don’t wait two hours on every pull request. Instead, split the claim into three smaller claims and test each the cheapest reliable way:</p><ul><li><strong>The TTL is set correctly.</strong> Check the number.</li><li><strong>Expiry behaves correctly.</strong> Fast-forward one key and watch the reload.</li><li><strong>The full real window works.</strong> Run a slow probe on a schedule, not per commit.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N9SxTGvC-RDgcAYDfGRybA.png" /></figure><ol><li>Assert the TTL, don’t wait for it</li></ol><p>After a normal read populates the cache, ask the cache how long the entry has left. This takes milliseconds and proves the configured value reached the cache.</p><p>python</p><pre>def test_ttl_is_about_two_hours(app, redis):<br>    app.get_product(&quot;test-sku-1&quot;)<br>    ttl = redis.ttl(&quot;product:v3:test-sku-1&quot;)<br>    assert 6480 &lt;= ttl &lt;= 7920   # 2 hours, allowing for ±10% jitter</pre><h4>2. Fast-forward a single key</h4><p>Shorten the TTL of one test key to a second, wait briefly, and verify the full expiry path: stale inside the window, fresh after expiry, repopulated with a full TTL.</p><p>python</p><pre>def test_expiry_reloads_fresh_value(app, redis, db):<br>    key = &quot;product:v3:test-sku-1&quot;<br>    app.get_product(&quot;test-sku-1&quot;)                     # warm the cache<br>    db.set_price(&quot;test-sku-1&quot;, 99)                     # source of truth changes<br>    assert app.get_product(&quot;test-sku-1&quot;).price != 99   # stale inside the window<br>    redis.expire(key, 1)                               # fast-forward this one key<br>    time.sleep(2)<br>    assert app.get_product(&quot;test-sku-1&quot;).price == 99   # miss, reload, fresh<br>    assert redis.ttl(key) &gt; 6000                       # repopulated with a full TTL</pre><p>This proves the expiry mechanism, and step 1 proves the number. Together they cover both without a two-hour wait.</p><h4>3. Test the stampede at expiry</h4><p>The moment a hot key expires is when many systems fall over. Expire the key, then send parallel requests.</p><p>python</p><pre>def test_hot_key_expiry_does_not_stampede(app, redis, db_metrics):<br>    app.get_product(&quot;test-sku-1&quot;)<br>    redis.expire(&quot;product:v3:test-sku-1&quot;, 1)<br>    time.sleep(2)<br>    before = db_metrics.query_count(&quot;products&quot;)<br>    with ThreadPoolExecutor(50) as pool:<br>        list(pool.map(lambda _: app.get_product(&quot;test-sku-1&quot;), range(50)))<br>    assert db_metrics.query_count(&quot;products&quot;) - before == 1</pre><h4>4. Use a fake clock for in-process caches</h4><p>If the cache lives inside the application (for example Caffeine in Java), inject a ticker or clock and advance it by two hours in a unit test. It finishes instantly.</p><h4>5. Make the TTL a config value</h4><p>Never hard-code 7200. Read it from configuration so a test environment can override it (say, to 20 seconds) for faster end-to-end runs. Then declare that override as an allowed difference with an owner and an expiry date in your config-diff check, and assert that the production value is still 7200. That way the shortcut can&#39;t leak into production unnoticed.</p><h4>6. Add a real-time probe on a schedule</h4><p>Fast-forwarding proves the logic. One scheduled job proves the real window.</p><ul><li>Write a probe key in a test-only namespace and change its source value.</li><li>Check at about 1 hour 50 minutes: the old value should still be served.</li><li>Check at about 2 hours 10 minutes: the new value should be served.</li></ul><p>Run it nightly on staging, or split it into two scheduled jobs that share state through the cache. It catches the case where a proxy, CDN or sidecar adds its own TTL on top of yours, which none of the faster tests can see.</p><h4>Staging safety rules</h4><ul><li>Use test-only keys or a dedicated tenant. Never flush a shared staging cache.</li><li>Make every test clean up the keys it creates.</li><li>If you need true time travel, run it against a disposable cache container (for example with a time-shifting library), never a shared one.</li></ul><h3>What to automate</h3><p><strong>On every pull request</strong></p><ul><li>Integration and concurrency tests against a containerized cache</li><li>A check that keys include tenant or user scope where needed</li><li>A check that cached values carry a schema version</li></ul><p><strong>After each staging deploy</strong></p><ul><li>The TTL assertion, fast-forward and stampede tests above</li><li>A cache-down drill: stop the cache briefly and confirm the service holds</li></ul><p><strong>In the deploy pipeline</strong></p><ul><li>Prefix keys with a data-schema version (user:v3:42) so a new release misses old entries, and a rollback stays safe.</li><li>Warm your hottest keys before shifting traffic, so a release doesn’t start cold.</li><li>Purge CDN entries by tag as a pipeline step, not a manual one.</li><li>Put new cache paths behind a feature flag and roll out with a canary.</li></ul><p><strong>In production, continuously</strong></p><ul><li>Alert on hit-ratio drops, eviction spikes and cache-call latency.</li><li>Run a sampling job that compares a small percentage of cached values with the source of truth and reports the mismatch rate.</li><li>If invalidation travels through events, make handlers idempotent and keep a dead-letter queue, because a lost message means stale data until the TTL.</li></ul><h3>Pitfalls to avoid</h3><ul><li><strong>Testing only against a fake.</strong> It passes while the real cache behaves differently.</li><li><strong>Sleeping in tests.</strong> Use a fake clock or the fast-forward technique.</li><li><strong>No TTL as a safety net.</strong> Even with event-based invalidation, a TTL limits how long a missed invalidation can hurt.</li><li><strong>Never testing the cold path.</strong> You’ll discover it during your first outage.</li><li><strong>Caching errors or empty results</strong> for the full TTL.</li><li><strong>Same expiry time for every key.</strong> Add jitter so keys don’t all expire together.</li></ul><h3>Principles worth keeping</h3><ul><li>Test time and concurrency on purpose, not by accident.</li><li>Prove each claim the cheapest reliable way: assert, fast-forward, then probe.</li><li>Treat the TTL as a safety net, not the whole invalidation strategy.</li><li>Make every cache path flag-guarded and easy to switch off.</li><li>A cache that can’t be rebuilt from scratch isn’t a cache.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fa034cee108" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Gatekeeping Deploys: Make the Safe Path the Easy Path]]></title>
            <link>https://medium.com/@pooja.kurbetti89/stop-gatekeeping-deploys-make-the-safe-path-the-easy-path-69019c2c7b1d?source=rss-00403753b1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/69019c2c7b1d</guid>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[guardrail]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Pooja Kurbetti]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 13:52:26 GMT</pubDate>
            <atom:updated>2026-10-04T13:52:26.849Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why the best platform teams approve almost nothing, and still prevent the outages that matter.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wnpm1lW6kgo-Jwtt-gVEyA.png" /></figure><p>Imagine an order-processing orchestrator that consumes events from Kafka: PaymentConfirmed, OrderCancelled, InventoryReserved. Each handler reads the order&#39;s state, decides what to do, and writes the new state back.</p><p>In staging, everything passes. The tests feed messages one at a time, in order, to a single consumer.</p><p>In production, a customer pays and cancels within seconds. The two events land on different partitions, so two consumers process them at the same time. Both read the order as pending. One decides to ship it, the other decides to refund it. Whichever writes last wins, and the order is both shipped and refunded.</p><p>Rolling back the code doesn’t help, because the bad state is already written. Neither handler was wrong on its own. The bug lived in the gap between them.</p><blockquote><em>The worst bugs often live in the gaps between your code, not in it.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4xU82GrGM6fa8rE-1Rrsvw.png" /></figure><p>The usual response makes things worse</p><p>After an incident like this, most organizations add a gate: a review board, a change ticket, a mandatory sign-off.</p><p>It feels safe, but it isn’t. Deploys slow down, engineers find ways around the process, and the next race condition still gets through. A reviewer reading a diff would struggle to spot this bug, and an approval board that never sees the code would miss it entirely.</p><p>There is a better approach. Don’t centralize approvals. Build a platform that makes the safe path the fastest path.</p><blockquote><em>Make the safe path the easy path.</em></blockquote><h3>What a platform team should build instead</h3><p>A platform team shouldn’t approve deploys. It should build the things that make every deploy safe by default:</p><ul><li>A service scaffold that gives every new service CI, tracing, feature-flag hooks and a test harness on day one</li><li>Policy-as-code (tools like OPA or Kyverno) that runs in CI and explains failures clearly in the pull request</li><li>Progressive rollouts with automatic health checks and automatic rollback</li><li>Developer-owned quality: teams write and own their tests, migrations and runbooks, and the platform makes that easy</li></ul><p>The race condition above is a good example. No approval board would have caught it, but a scaffold that enforces the right patterns would have prevented it.</p><h3>Four pitfalls that quietly kill platform efforts</h3><p><strong>1. Tool sprawl.</strong> When teams face too many choices, they build their own pipelines. Offer one golden path per layer (CI, CD, infrastructure, observability), delivered as a scaffold. If a single create-service command gives developers a working pipeline, tracing and test harness, the paved road becomes the fastest road, and people take it.</p><p><strong>2. The platform team becomes the gatekeeper.</strong> Replace manual approvals with automated policy checks, and make every failure message actionable. Spend your time mentoring teams, not approving their changes. A healthy signal is that approval tickets trend toward zero while deploy frequency holds steady or rises.</p><p><strong>3. Event-driven bugs that only appear under concurrency.</strong> Unit tests run one message at a time, in order. Production doesn’t. Build the fixes into the scaffold so nobody has to remember them:</p><ul><li>Key messages by entity ID, so all events for one order land on the same partition and are processed in order.</li><li>Make handlers idempotent, because Kafka can redeliver messages after a consumer rebalance.</li><li>Use optimistic locking: write with a version check, and retry or reject if the state changed since you read it.</li><li>Include a test in the harness that replays events out of order, duplicated and in parallel, so the failure shows up in CI rather than in production.</li><li>Add a dead-letter topic and put any new orchestration path behind a feature flag, so you can switch it off without a redeploy.</li></ul><p><strong>4. Patchy observability.</strong> If every team instruments differently, nobody can debug across services. Bake OpenTelemetry into the scaffold and fail the pull request if required traces or metrics are missing.</p><h3>The guardrails that matter</h3><p>You don’t need forty controls. You need a handful that run automatically at every stage, each with a defined way back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*59dy6IM3bUbiBmgnF8YnBQ.png" /></figure><p>A few principles run through all of them:</p><ul><li>Every user-visible change ships behind a feature flag that defaults to off.</li><li>Every deploy is progressive (canary or blue-green) with automatic abort rules.</li><li>Every database change follows expand/contract: add first, switch behind a flag, remove later. Never ship a change that only the new code can read.</li><li>Every service has an owner, SLOs, alerts and a runbook.</li></ul><h3>Principles worth keeping</h3><ul><li>Do no harm: prefer pausing and rolling back to debugging in production.</li><li>Visibility before action: surface problems early.</li><li>Small changes, frequent releases: keep the blast radius small.</li><li>Automate recovery until it’s a single button.</li><li>Developer experience is what makes ownership possible.</li></ul><p>The goal isn’t to slow anyone down. It’s to make the safe choice the one that takes the least effort.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69019c2c7b1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Guessing What’s Broken: How to Investigate an Incident With Metrics and Traces]]></title>
            <link>https://medium.com/@pooja.kurbetti89/stop-guessing-whats-broken-how-to-investigate-an-incident-with-metrics-and-traces-e867e1935fbe?source=rss-00403753b1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e867e1935fbe</guid>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[opentelemetry]]></category>
            <dc:creator><![CDATA[Pooja Kurbetti]]></dc:creator>
            <pubDate>Fri, 02 Oct 2026 05:21:00 GMT</pubDate>
            <atom:updated>2026-10-02T05:21:00.073Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A walkthrough of the Grafana → Jaeger → Prometheus flow, using a simulated payments outage</em></p><p>Many failures aren’t crashes. They fade.</p><p>Requests get slower. Errors appear randomly. One service quietly drags everything else down. Then your team is stuck asking, “Where is this actually breaking?”</p><p>You probably already collect logs and metrics, so data isn’t the problem. Clarity is: turning noise into an answer you can act on. This post walks through how that investigation looks with a common open-source stack, using a simulated incident.</p><h3>What the setup looks like</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hVJ8D3w25-GeOV8NYQvsPw.png" /><figcaption><em>Metrics and traces flow through one pipeline. (Simplified. Jaeger also has its own UI.)</em></figcaption></figure><p>Your apps send telemetry through OpenTelemetry to a Collector, which routes it to the tools you’ll use during an incident. One pipeline, one place to look.</p><p>Metrics and traces flow through one pipeline. (Simplified. Jaeger also has its own UI.)</p><p>This post focuses on how to use the stack, not how to install it. For setup, the official docs for <a href="https://opentelemetry.io/docs/">OpenTelemetry</a>, <a href="https://prometheus.io/docs/">Prometheus</a>, <a href="https://www.jaegertracing.io/docs/">Jaeger</a>, and <a href="https://grafana.com/docs/">Grafana</a> are the right starting point, and they’re better maintained than any copy-paste manifests in a blog.</p><p><em>A note on scope: this covers metrics and traces. Logs are the third pillar, and linking trace IDs into your logs is a worthwhile next step, but it’s outside this post.</em></p><h3>The scenario: “Payments are failing”</h3><p><em>This is an illustrative scenario, not a real incident. The numbers and charts are simulated to show the process.</em></p><p>Your product manager messages you: “Payments are failing.”</p><h3>Step 1: Detect the spike</h3><p>Open Grafana. The dashboard shows a clear signal:</p><ul><li>Error rate jumps from about 1% to 18%</li><li>Request latency climbs sharply at the same moment</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oc1T5gsHJkFcVfH5ME8Zgg.png" /><figcaption><em>Simulated dashboard. Both lines change at the same moment, which is the first clue.</em></figcaption></figure><p>Simulated dashboard. Both lines change at the same moment, which is the first clue.</p><p>The spike is sudden and sustained, so this isn’t background noise. Something changed.</p><h3>Step 2: Follow a request with distributed tracing</h3><p>Open Jaeger and inspect a few slow, failed traces from the incident window. A representative trace looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yFPJzwsO5sNLPefIJcZi5A.png" /><figcaption><em>Simulated trace. Nearly all the time sits in the external gateway call.</em></figcaption></figure><p>Simulated trace. Nearly all the time sits in the external gateway call.</p><p>The trace shows that the payment service itself isn’t slow. Nearly all of its time is spent waiting on the external gateway. A single trace tells you where time goes, which dashboards alone can’t.</p><h3>Step 3: Test the hypothesis with metrics</h3><p>The trace suggests the gateway is the problem. Now check whether the metrics agree. A query like this shows payment failures over time:</p><pre>sum(rate(payment_failures_total[5m]))</pre><p>If failures rise at the same moment latency does, the data supports your hypothesis. It doesn’t prove it yet. To test it, break the failures down by gateway or provider (if you label them that way) and check whether one provider accounts for nearly all of them. If the failures spread across every provider, look elsewhere, such as a shared database or a recent deploy.</p><h3>Step 4: Mitigate, from fastest and most reversible</h3><ol><li><strong>Toggle the feature flag</strong> to disable the failing provider.</li><li><strong>Route traffic to a known-good fallback gateway.</strong></li><li><strong>Check timeouts, retries, and circuit breakers.</strong> A slow dependency combined with aggressive retries can multiply load on the very system that’s struggling. Lower retry limits or open the circuit breaker if you have one.</li><li><strong>Roll back or roll forward</strong> if the problem lines up with a recent deploy.</li><li><strong>Scale the payment service last, and only if you see resource exhaustion</strong> (CPU, memory, connection pools). If the real problem is a slow downstream, adding more instances can mean more concurrent calls into an already overloaded dependency, which makes things worse.</li></ol><p>With clear signals and a trace pointing at the cause, you spend your time on mitigation instead of guessing.</p><h3>How an app emits traces (simplified example)</h3><p>Here’s a minimal Node.js setup to show the idea. It’s simplified, so check the current OpenTelemetry docs for your version and language.</p><pre>// otel-setup.js<br>const { NodeSDK } = require(&#39;@opentelemetry/sdk-node&#39;);<br>const { OTLPTraceExporter } = require(&#39;@opentelemetry/exporter-trace-otlp-http&#39;);<br>const { getNodeAutoInstrumentations } = require(&#39;@opentelemetry/auto-instrumentations-node&#39;);</pre><pre>const sdk = new NodeSDK({<br>  serviceName: &#39;payment-service&#39;,<br>  traceExporter: new OTLPTraceExporter({<br>    url: &#39;http://otel-collector:4318/v1/traces&#39;,<br>  }),<br>  instrumentations: [getNodeAutoInstrumentations()],<br>});</pre><pre>sdk.start();</pre><p>Run your app with node -r ./otel-setup.js server.js.</p><p>Two details matter here. The <strong>auto-instrumentation</strong> line is what creates spans for incoming HTTP requests and outgoing calls, such as the gateway call in the trace above. Without it, you’d see little. And the <strong>service name</strong> is how the service appears in Jaeger. Other languages follow the same pattern, and the OpenTelemetry docs cover each one.</p><p>Metrics are a separate piece. The queries in this post assume your app exposes metrics such as http_requests_total and payment_failures_total in Prometheus conventions, so the names depend on how your app and libraries are instrumented. Adjust the queries to the names you actually have.</p><h3>PromQL patterns for your dashboard panels</h3><p><strong>Request rate:</strong></p><pre>sum(rate(http_requests_total{job=&quot;payment-service&quot;}[5m]))</pre><p><strong>Error rate (%):</strong></p><pre>sum(rate(http_requests_total{job=&quot;payment-service&quot;,status=~&quot;5..&quot;}[5m]))<br>/<br>sum(rate(http_requests_total{job=&quot;payment-service&quot;}[5m])) * 100</pre><p><strong>P95 latency:</strong></p><pre>histogram_quantile(0.95,<br>  sum(rate(http_request_duration_seconds_bucket{job=&quot;payment-service&quot;}[5m])) by (le)<br>)</pre><h3>Don’t wait for a human to notice</h3><p>A dashboard only helps if someone looks at it. An alert rule gets you to the dashboard. A simplified Prometheus example:</p><pre>- alert: HighErrorRate<br>  expr: |<br>    sum(rate(http_requests_total{job=&quot;payment-service&quot;,status=~&quot;5..&quot;}[5m]))<br>    / sum(rate(http_requests_total{job=&quot;payment-service&quot;}[5m])) &gt; 0.05<br>  for: 5m<br>  labels:<br>    severity: page</pre><p>Adjust the threshold to your service. An alert that fires constantly gets ignored, so tune it with real traffic.</p><h3>A short incident runbook</h3><p><strong>Alert: HighErrorRate on payment-service</strong></p><ol><li>Open Grafana and confirm the error spike and the latency change.</li><li>Open Jaeger and inspect two or three traces from the alert window.</li><li>Identify the slow or failing span (which downstream host or API).</li><li>Confirm with metrics, broken down by provider or dependency.</li><li>Mitigate: disable the provider, route to fallback, check retries and timeouts.</li><li>Roll back or roll forward if a deploy is involved.</li><li>Write a blameless postmortem with the traces and dashboards attached.</li></ol><h3>Production checklist</h3><p>The simple setup above isn’t production-ready. Before you rely on it:</p><ul><li>Persistent storage for Prometheus and Grafana, with retention settings you’ve chosen on purpose.</li><li>TLS between services, the Collector, and backends.</li><li>Access control on Grafana, with no default credentials.</li><li><strong>Sampling for traces.</strong> Keeping every trace gets expensive quickly, so use head or tail sampling, and keep the slow and failed traces.</li><li><strong>Collector limits.</strong> Use the memory limiter and batching so a traffic spike doesn’t take the Collector down.</li><li><strong>No high-cardinality labels.</strong> Don’t put raw user IDs or request IDs on metrics, since each unique value creates a new time series.</li><li>Network policies and namespace isolation.</li><li>Dashboards and alert rules stored in version control, so changes are reviewed.</li></ul><p>A side note: sampling and cardinality aren’t just cost controls. Every trace and time series you store takes storage, compute, and energy, so keeping telemetry lean helps your budget and your footprint at the same time.</p><h3>How to tell it’s working</h3><p>Skip generic goals. Pick numbers you can measure:</p><ul><li><strong>Time to identify the failing component</strong> after an alert fires</li><li><strong>Time to mitigate</strong></li><li><strong>Number of rollbacks that turned out not to be the cause</strong></li><li><strong>Alerts that led to action</strong> versus alerts that were ignored</li></ul><p>Record them before you improve your observability, and again afterward. Your own numbers will persuade your team more than any general claim.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e867e1935fbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Every Token Has a Footprint: Use AI Smarter]]></title>
            <link>https://medium.com/@pooja.kurbetti89/every-token-has-a-footprint-use-ai-smarter-768868870eda?source=rss-00403753b1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/768868870eda</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[carbon-footprint]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[sustainability]]></category>
            <dc:creator><![CDATA[Pooja Kurbetti]]></dc:creator>
            <pubDate>Fri, 02 Oct 2026 04:42:13 GMT</pubDate>
            <atom:updated>2026-10-02T04:42:13.776Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*puw-8yGv43fR58qDPwnitw.png" /></figure><p><em>How to cut AI costs and carbon without cutting productivity</em></p><p><strong>TL;DR</strong></p><ul><li>Every prompt runs on data center hardware, so wasteful usage costs money and energy at the same time.</li><li>Most waste comes from a few habits: oversized inputs, endless chat threads, the wrong model for the job, and runaway automation.</li><li>Small changes, repeated across a team, add up. This post gives you the habits, with before/after examples.</li></ul><p>A developer on your team hits a bug in a module nobody has touched in two years. She uploads the whole repository to an AI assistant and types, “Find what’s wrong.” The assistant reads every file, including hundreds that have nothing to do with the bug. She asks three follow-up questions, and each one re-processes the whole thing.</p><p>Nothing about that was careless. It was just the easiest thing to do. But multiply it by every engineer, every week, across a quarter, and you get a budget conversation. It’s also a data center conversation, because behind every one of those tokens is a rack of GPUs drawing electricity.</p><h3>How a prompt becomes a bill (and a carbon footprint)</h3><p>When you send a message to an AI model, it runs on GPUs in a data center. Those chips draw significant electricity, produce heat that has to be removed (often with large amounts of water), and are expensive hardware with their own manufacturing footprint.</p><p>The work grows with what you send. A longer prompt, a longer conversation, a bigger model, or a longer response each mean more computation. Providers price tokens to cover that, so token spend is a rough proxy for resource use.</p><p>It’s only a proxy. Prices also reflect margins, and the carbon intensity of a kilowatt-hour varies widely by region and energy mix. But the direction holds: less unnecessary compute means lower cost and a smaller footprint.</p><p>The scale is worth knowing. The International Energy Agency (IEA) projected in 2025 that global data center electricity demand will more than double by 2030, to around 945 TWh, with AI as the main driver. Its 2026 follow-up found that data center electricity demand rose 17% in 2025, against 3% growth in overall global power demand, and that consumption by infrastructure dedicated to AI grew even faster, by about 50%. <a href="https://iifiir.org/en/news/ai-set-to-drive-doubling-of-electricity-demand-from-data-centres">AI set to drive doubling of electricity demand from data centres +2</a></p><p>There’s an important nuance. The IEA reports that energy use per AI task has been falling steeply, by at least a factor of ten a year in recent years, but that more energy-hungry uses such as video generation, reasoning, and agentic tasks are becoming popular. Efficiency gains are real, but they’re being outrun by growth in usage. <a href="https://archive.writingpartners.net/documents/11123/combined?print=yes">writingpartners</a></p><p>To keep this in proportion: the IEA’s 2025 report also noted that data centers were expected to account for around a tenth of global electricity demand growth to 2030, less than industrial motors, air conditioning, or electric vehicles, and that the resulting emissions increase is small relative to the overall energy sector. So this isn’t a reason to feel guilty about using AI. It’s a reason not to waste it, since waste costs you money and adds to a growing load for no benefit. <a href="https://arab.news/cdgpq">arab</a><a href="https://sustainabilityonline.net/news/global-data-centre-electricity-usage-to-double-by-2030/">sustainabilityonline</a></p><h3>Why this matters at the team level</h3><p>One person pasting a 40-page document to get a two-line answer is trivial. Two hundred people doing it daily is not. Enterprise AI costs are rarely driven by one big mistake. They come from small, repeated inefficiencies multiplied across a workforce. That’s good news, because small habit changes multiply too.</p><h3>Seven habits that cut waste</h3><p><strong>1. Send only what’s needed</strong></p><p>Models process everything you give them, relevant or not.</p><p><em>Before:</em> Paste an entire 30-page contract and ask, “Does this have an auto-renewal clause?”</p><p><em>After:</em> Paste the termination and renewal sections only, and ask the same question.</p><p>Same answer, a fraction of the compute. The same goes for files: upload a document once and keep working in that thread, rather than re-attaching it to every message.</p><p><strong>2. Say how long the answer should be</strong></p><p>Models default to thorough. If you don’t need thorough, say so.</p><p><em>Before:</em> “Summarize this meeting transcript.”</p><p><em>After:</em> “Summarize this transcript in 5 bullets, max 15 words each, with owners for action items.”</p><p>You get a more usable result and pay for fewer output tokens.</p><p><strong>3. Ask for the change, not the whole thing</strong></p><p><em>Before:</em> “Improve this 1,500-word report” (returns 1,500 rewritten words).</p><p><em>After:</em> “Suggest the 5 most impactful edits to this report as a list, with the original sentence and the fix.”</p><p>You review faster, and the model writes far less. For code, the equivalent is asking for a diff of the changed lines instead of a rewritten file.</p><p><strong>4. Start a new chat for a new task</strong></p><p>This is the most overlooked habit. In a long conversation, the model processes the accumulated history with every new message. A thread that began with a budget spreadsheet and drifted into a marketing email carries all that baggage into every reply.</p><p>Rule of thumb: new task, new chat. If you must continue a long thread, ask for a short summary and paste it into a fresh chat.</p><p><strong>5. Match the model to the task</strong></p><p>Larger models use more compute per token. Smaller models suit formatting, tagging, simple rewrites, and extraction. Save larger ones for complex analysis, multi-step reasoning, and hard coding problems. Using a top-tier model to fix capitalization is like driving a truck to buy milk.</p><p><strong>6. Use templates for repeat work</strong></p><p>If your team writes status updates, customer replies, or release notes every week, build one tight prompt template. It removes rambling instructions and produces consistent output with fewer retries, and retries are one of the least visible sources of waste.</p><p><strong>7. Watch automated and agentic workflows</strong></p><p>Pipelines and coding agents can loop, retry, and re-read large amounts of context without anyone noticing. Set limits, review logs, and point tools at specific files or inputs rather than letting them explore everything.</p><h3>Code review without burning tokens</h3><p>Codebases are where spend quietly balloons, because the inputs are large and the conversations run long. You don’t need to know every module to avoid this. You need a workflow that builds understanding once and then works in small slices.</p><p><strong>Build a map once, then reuse it.</strong> Spend one session having your AI assistant explore the codebase and write a one- or two-page architecture summary: what each module does, how they connect, and where the entry points are. Save it in the repo (for example, ARCHITECTURE.md). From then on, share that summary instead of the code.</p><p><em>Before:</em> Upload the full repo for every bug, so the model re-reads the whole system each time.</p><p><em>After:</em> Paste the architecture summary plus the one relevant module.</p><p><strong>Start from the symptom, not the repository.</strong> An error message, stack trace, or failing test points straight to the right files.</p><p><em>Before:</em> “Here’s our codebase. Review it and fix whatever is wrong.”</p><p><em>After:</em> “Users get a 500 error when exporting reports with more than 1,000 rows. Here’s the stack trace and the export module. Find the cause and propose the smallest fix.”</p><p>The second prompt is cheaper and usually gets a better answer, because the model isn’t hunting through unrelated code.</p><p><strong>Ask in layers, so you learn as you go.</strong> If you don’t know the system, move from broad to narrow: “Which module handles report exports?” Then “How is it called?” Then “Where could a row limit trigger this error?” Then “Propose the fix as a diff.” Each step is a short, cheap exchange, and by the end you understand enough to judge whether the fix makes sense.</p><p><strong>Reproduce first, then fix.</strong> Ask for a test that reproduces the bug before any fix, then confirm the fix passes it. Without that, teams burn tokens in loops of “try this, still broken, try again.” For people who don’t know the code well, the test is also a safety net against a fix that looks plausible but is wrong.</p><p><strong>One bug, one session.</strong> Start fresh for each bug and paste in your architecture summary rather than carrying a long history forward.</p><p>A starter prompt your team can copy:</p><blockquote><em>“Here is our architecture summary: [paste]. Bug: [symptom and error]. Identify the likely modules, explain the cause in 3 sentences, then give the minimal fix as a diff and a test that would have caught it.”</em></blockquote><h3>Don’t over-optimize</h3><p>Saving tokens can backfire if you take it too far. A model that’s too small for a hard problem, or a prompt so terse that it leaves out key context, produces wrong answers, and wrong answers mean retries, rework, and human time that often cost more than the tokens you saved. The goal is the cheapest path to a correct result, not the cheapest single prompt. If a task keeps failing on a smaller model, move up a tier rather than looping.</p><h3>Make it a team practice</h3><p>Individual habits help, but a few structural steps move the numbers:</p><ul><li><strong>Measure first.</strong> Use your admin dashboard to see where usage concentrates. Often a small group or a few workflows account for most of the spend.</li><li><strong>Know how you’re billed.</strong> Enterprise plans vary: some are seat-based with usage limits, others add usage-based charges. Check your contract so you know whether savings show up as lower bills, more headroom under limits, or both.</li><li><strong>Share examples.</strong> A one-page “good prompt vs. wasteful prompt” guide does more than a policy memo.</li><li><strong>Build a shared template library</strong> for recurring tasks.</li><li><strong>Celebrate efficiency.</strong> Recognize the person who got the same result with a third of the usage.</li><li><strong>Revisit regularly.</strong> Models, pricing, and plans change, so review your setup every quarter.</li></ul><h3>The bottom line</h3><p>Saving tokens isn’t about using AI less. It’s about using it deliberately. The same habits that trim your invoice also reduce the electricity, cooling, and hardware demand behind every request. Efficiency is one of the few cases where the financial case and the environmental case point the same way.</p><p>Start small: pick two of these habits this week, share them with your team, and compare your usage dashboard a month from now. If you see a real change, share the number. Your own data will persuade people more than any general claim.</p><p><strong>Sources</strong></p><ul><li>IEA, <em>Energy and AI</em> (April 2025): <a href="https://www.iea.org/reports/energy-and-ai">https://www.iea.org/reports/energy-and-ai</a></li><li>IEA, <em>Key Questions on Energy and AI</em> (April 2026): <a href="https://www.iea.org/reports/key-questions-on-energy-and-ai">https://www.iea.org/reports/key-questions-on-energy-and-ai</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=768868870eda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stability Enablement in SDLC]]></title>
            <link>https://medium.com/@pooja.kurbetti89/stability-enablement-in-sdlc-6e9244205a14?source=rss-00403753b1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e9244205a14</guid>
            <category><![CDATA[dora]]></category>
            <category><![CDATA[stability-enablement]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <dc:creator><![CDATA[Pooja Kurbetti]]></dc:creator>
            <pubDate>Sat, 29 Aug 2026 03:15:08 GMT</pubDate>
            <atom:updated>2026-08-29T03:15:08.056Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Platform-Driven Quality Ownership Scales in Modern Engineering</h3><h3>The Shift: From Central QA to Distributed Ownership</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fQlw_94SacLmTLsP" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jwdQIN2y-p4WOLWo" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qgsgrp-FnRGLy0Ur" /></figure><p>For years, quality was someone else’s job.</p><p>A centralized QA team tested, validated, and “approved” releases. It worked — until systems became:</p><ul><li>distributed</li><li>microservice-heavy</li><li>data-driven</li><li>continuously deployed</li></ul><p>Today, that model collapses under scale.</p><p>A new model is emerging:</p><blockquote><strong><em>Stability Enablement = Central Platform + Distributed Quality Ownership</em></strong></blockquote><p>A <strong>center of excellence (CoE)</strong> builds tooling, frameworks, and guardrails, while <strong>product teams own quality, performance, and reliability</strong> end-to-end.</p><p>This isn’t theory — it aligns with modern <strong>platform engineering</strong>, where internal platforms provide self-service capabilities and enforce standards behind the scenes .</p><h3>What the Model Actually Looks Like</h3><h3>Core Idea</h3><ul><li><strong>Central Team (Enablement / Platform / QE CoE)</strong></li><li>Builds Internal Developer Platform (IDP)</li><li>Defines standards, golden paths, guardrails</li><li>Provides tooling (CI/CD, testing, observability, security)</li><li><strong>Product Teams</strong></li><li>Use platform</li><li>Own testing, releases, reliability</li><li>Move fast without breaking things</li></ul><h3>Architecture: The Internal Developer Platform (IDP)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*GKG4SKBx-mOrV5XX" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GEE0oYI-mO1FL8OH" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nldCo4HqBVVnYiPx" /></figure><p>A modern IDP is layered:</p><p>LayerPurposeDeveloper PortalEntry point (service catalog, templates)CI/CD &amp; GitOpsBuild, test, deployInfrastructureProvisioning, environmentsObservabilityLogs, metrics, tracingSecurity &amp; PolicyGuardrails, complianceAutomationWorkflows, self-service</p><p>The goal: <strong>self-service with safety</strong>.</p><p>Platform engineering explicitly focuses on enabling developers to perform tasks without tickets while keeping governance intact .</p><h3>Stability Enablement Across the SDLC</h3><p>Let’s walk through each SDLC stage with <strong>tools + guardrails</strong>, especially for:</p><ul><li>microservices</li><li>distributed systems</li><li>data pipelines (e.g., Databricks)</li></ul><h3>1. Code &amp; Design Stage</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wKa8AExGS1u_y-VP" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ay_s0bN94QxJlmdD" /></figure><h3>Tools</h3><ul><li>Version Control: GitHub, GitLab</li><li>Code Quality: SonarQube</li><li>Feature Flags: LaunchDarkly</li><li>API Design: Postman / OpenAPI</li></ul><h3>Guardrails</h3><ul><li>Mandatory PR reviews</li><li>Code quality thresholds</li><li>API contracts (schema validation)</li><li>Service ownership defined</li></ul><h3>2. Build &amp; CI</h3><h3>Tools</h3><ul><li>CI/CD: GitHub Actions, Jenkins, GitLab CI</li><li>Build: Maven, Gradle</li><li>Artifact Repos: Nexus, Artifactory</li></ul><p>CI tools automate builds, tests, and deployments directly from source control</p><h3>Guardrails</h3><ul><li>Build must pass before merge</li><li>Static analysis required</li><li>Dependency scanning</li></ul><h3>3. Testing (Shift-Left + Continuous Testing)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_rXXHMLSpPVK11jv" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LO_l8uZnhHczMl0K" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Hn0ahdxRHOY-4dYA" /></figure><h3>Tools</h3><ul><li>Unit/Integration: JUnit, pytest</li><li>E2E: Cypress, Playwright</li><li>Contract Testing: Pact</li><li>Performance: k6, JMeter</li><li>Code Coverage: JaCoCo</li></ul><h3>Guardrails</h3><ul><li>Minimum coverage thresholds</li><li>Contract tests for microservices</li><li>Performance budgets (latency, throughput)</li></ul><p>👉 Continuous testing tools are key to maintaining quality in automated pipelines</p><h3>4. Deployment &amp; CD (GitOps-first)</h3><h3>Tools</h3><ul><li>CD: ArgoCD, Spinnaker</li><li>Containers: Docker</li><li>Orchestration: Kubernetes</li><li>GitOps: ArgoCD / Flux</li></ul><h3>Guardrails</h3><ul><li>Progressive delivery (canary, blue-green)</li><li>Rollback automation</li><li>Environment parity</li></ul><h3>5. Infrastructure &amp; Platform</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/0*wYPDH-bCWLIkQbV7" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/0*MZYPZ95TxNiuRrwM" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oVC2OAAhhMXvp-yD" /></figure><h3>Tools</h3><ul><li>IaC: Terraform / OpenTofu</li><li>Config Mgmt: Ansible</li><li>Orchestration: Kubernetes</li><li>Data Pipelines: Databricks, Airflow</li></ul><h3>Guardrails</h3><ul><li>Infra as Code only (no manual changes)</li><li>Environment isolation</li><li>Cost controls</li></ul><p>IaC and orchestration are core layers in platform stacks</p><h3>6. Observability &amp; Reliability</h3><h3>Tools</h3><ul><li>Metrics: Prometheus</li><li>Dashboards: Grafana</li><li>Logs: ELK / Logstash</li><li>APM: Datadog</li><li>Tracing: OpenTelemetry</li></ul><h3>Guardrails</h3><ul><li>SLOs &amp; SLIs defined per service</li><li>Alert thresholds standardized</li><li>Error budgets enforced</li></ul><p>Observability tools are essential to “know what just broke” in distributed systems</p><h3>7. Security (Shift-Left + Runtime)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*HYE8KEIrjNUw9zne" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M1yg4UjxaLyk2KDN" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/0*GAsHbuPybFW4WPOs" /></figure><h3>Tools</h3><ul><li>SAST/DAST: Snyk, Checkmarx</li><li>Secrets: Vault</li><li>Container Scanning: Trivy</li><li>Policy-as-Code: OPA, Kyverno</li></ul><h3>Guardrails</h3><ul><li>Security scans mandatory in CI</li><li>Secrets never in code</li><li>Policy enforcement at deploy</li></ul><h3>Handling Upstream &amp; Downstream Dependencies</h3><p>This is where most systems break.</p><h3>Problems</h3><ul><li>API contract mismatches</li><li>cascading failures</li><li>data inconsistencies</li></ul><h3>Critical Guardrails</h3><h3>1. Contract-First Development</h3><ul><li>OpenAPI / AsyncAPI</li><li>Pact for contract testing</li></ul><h3>2. Resilience Patterns</h3><ul><li>Circuit breakers (Hystrix-like)</li><li>Retries with backoff</li><li>Timeouts</li></ul><h3>3. Data Pipeline Stability (Databricks etc.)</h3><ul><li>Schema enforcement</li><li>Data quality checks (Great Expectations)</li><li>Idempotent pipelines</li></ul><h3>4. Dependency Observability</h3><ul><li>Distributed tracing</li><li>Service dependency graphs</li></ul><h3>5. Release Coordination</h3><ul><li>Backward-compatible APIs</li><li>Versioning strategies</li></ul><h3>Pitfalls (and How to Survive Them)</h3><h3>1. Tool Sprawl</h3><p>Too many tools → zero adoption</p><p>Fix:</p><ul><li>Standardize per layer</li><li>Provide “golden paths”</li></ul><h3>2. Central Team Becomes Gatekeeper</h3><p>You recreate old QA bottleneck</p><p>Fix:</p><ul><li>Build self-service platforms</li><li>Avoid manual approvals</li></ul><h3>3. Devs Don’t Own Quality</h3><p>Culture doesn’t change</p><p>Fix:</p><ul><li>Make quality visible (dashboards)</li><li>Tie ownership to services</li></ul><h3>4. Over-Engineering the Platform</h3><p>Building too much too early</p><p>Fix:</p><ul><li>Start with biggest pain point</li><li>Add layers incrementally</li></ul><p>Platform engineering succeeds when tools are integrated into a cohesive system, not just selected individually</p><h3>5. Poor Developer Experience</h3><p>Slow pipelines, complex workflows</p><p>Fix:</p><ul><li>Optimize feedback loops</li><li>Invest in DX as a priority</li></ul><h3>The End State</h3><p>A mature stability enablement model looks like this:</p><p><strong>Developers:</strong></p><ul><li>deploy daily</li><li>own quality</li><li>monitor their services</li></ul><p><strong>Platform team:</strong></p><ul><li>builds paved roads</li><li>enforces guardrails</li><li>improves developer productivity</li></ul><p><strong>System</strong>:</p><ul><li>resilient by design</li><li>observable by default</li><li>secure automatically</li></ul><h3>Final Thought</h3><blockquote><strong><em>You don’t scale quality by hiring more testers.<br>You scale it by making every engineer responsible — and giving them the platform to succeed.</em></strong></blockquote><p>That’s what stability enablement is really about.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e9244205a14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Test Caching Using Automation: A Practical Guide for Modern Applications]]></title>
            <link>https://medium.com/@pooja.kurbetti89/how-to-test-caching-using-automation-a-practical-guide-for-modern-applications-38e11b74beed?source=rss-00403753b1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/38e11b74beed</guid>
            <category><![CDATA[cache]]></category>
            <category><![CDATA[redis]]></category>
            <dc:creator><![CDATA[Pooja Kurbetti]]></dc:creator>
            <pubDate>Sat, 29 Aug 2026 03:09:33 GMT</pubDate>
            <atom:updated>2026-08-29T03:09:33.046Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/391/0*M8qpIOpTzcDngnVT" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pqWigSxlRSv1LlEE" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aoeO8l35wORN9zjV" /></figure><p>Caching is one of the easiest ways to improve application performance. Whether you’re using Redis, Memcached, CDN caching, or an in-memory cache, a well-configured cache can reduce response times from hundreds of milliseconds to just a few milliseconds.</p><p>However, caching can also introduce subtle bugs. Stale data, incorrect cache invalidation, low cache hit rates, or misconfigured cache keys can silently impact application performance and user experience.</p><p>Instead of manually checking cache behavior, modern engineering teams automate cache testing as part of their CI/CD pipeline. This article walks through a practical, real-world approach to testing caching automatically.</p><h3>Why Test Caching?</h3><p>Imagine an e-commerce application.</p><p>When a customer opens a product page:</p><pre>User Request<br>      │<br>      ▼<br>Application<br>      │<br>      ▼<br>Redis Cache<br>   │        │<br> HIT      MISS<br> │          │<br> ▼          ▼<br>Return    Database<br>Data         │<br>             ▼<br>         Store in Cache</pre><p>If caching is working correctly:</p><ul><li>Frequently accessed products load quickly.</li><li>Database traffic decreases.</li><li>Application latency remains low.</li></ul><p>If caching fails:</p><ul><li>Every request hits the database.</li><li>CPU utilization increases.</li><li>Database costs grow.</li><li>Users experience slower response times.</li></ul><p>Automated testing helps detect these problems before they reach production.</p><h3>What Should Be Automated?</h3><p>A good cache testing strategy verifies:</p><ul><li>Cache hit behavior</li><li>Cache miss behavior</li><li>Cache expiration (TTL)</li><li>Cache invalidation</li><li>Performance improvements</li><li>Concurrent access</li><li>Cache metrics</li></ul><p>Rather than only checking whether the application returns the correct response, automated tests should also confirm that the cache behaves as expected. Industry guidance recommends validating cache hits and misses using cache-specific response headers or metrics instead of relying solely on HTTP status codes.</p><h3>Real Example</h3><p>Suppose your application retrieves product information.</p><pre>GET /products/101</pre><p>Business logic:</p><ol><li>Check Redis.</li><li>If product exists, return cached value.</li><li>Otherwise query the database.</li><li>Save result in Redis.</li><li>Return response.</li></ol><h3>Test Case 1 — Cache Miss</h3><p>The first request should access the database.</p><p>Example using Python and pytest:</p><pre>cache.clear()</pre><pre>response = api.get(&quot;/products/101&quot;)</pre><pre>assert response.status_code == 200<br>assert database.call_count == 1<br>assert cache.exists(&quot;product:101&quot;)</pre><p>This verifies that:</p><ul><li>Cache starts empty.</li><li>Database is queried.</li><li>Data is stored in cache.</li></ul><h3>Test Case 2 — Cache Hit</h3><p>The second request should avoid the database.</p><pre>response = api.get(&quot;/products/101&quot;)</pre><pre>assert database.call_count == 1</pre><p>If the database call count does not increase, the application successfully served the response from the cache.</p><p>A practical way to validate this in production-like environments is to assert cache indicators such as Age, X-Cache, or provider-specific cache status headers, which distinguish cache hits from origin responses.</p><h3>Test Case 3 — Cache Expiration</h3><p>Suppose the cache TTL is 60 seconds.</p><p>Your automated test should verify expiration.</p><pre>cache.set(&quot;product:101&quot;, data, ttl=60)</pre><pre>sleep(61)</pre><pre>response = api.get(&quot;/products/101&quot;)</pre><pre>assert database.call_count == 2</pre><p>Expected behavior:</p><ul><li>Cached data expires.</li><li>Database is queried again.</li><li>Cache is refreshed.</li></ul><h3>Test Case 4 — Cache Invalidation</h3><p>Suppose someone updates a product price.</p><pre>Update Product<br>      │<br>      ▼<br>Database Updated<br>      │<br>      ▼<br>Cache Deleted<br>      │<br>      ▼<br>Next Request Loads Fresh Data</pre><p>Automated test:</p><pre>update_product(101)</pre><pre>assert cache.exists(&quot;product:101&quot;) is False</pre><p>Then verify that the next request returns the updated value instead of stale data.</p><h3>Test Case 5 — Performance Validation</h3><p>Caching isn’t just about correctness — it should also improve speed.</p><p>Measure the response time for:</p><ul><li>Cold cache (first request)</li><li>Warm cache (subsequent requests)</li></ul><p>Example:</p><p>ScenarioResponse TimeCold Cache320 msWarm Cache18 ms</p><p>Testing both cold and warm cache scenarios is a common performance validation strategy because it shows both cache warm-up behavior and steady-state performance.</p><h3>Automating Cache Tests in CI/CD</h3><p>A modern DevOps workflow might look like this:</p><pre>Developer Pushes Code<br>         │<br>         ▼<br>GitHub Actions / Jenkins<br>         │<br>         ▼<br>Run Unit Tests<br>         │<br>         ▼<br>Run Cache Tests<br>         │<br>         ▼<br>Run Integration Tests<br>         │<br>         ▼<br>Deploy to Staging<br>         │<br>         ▼<br>Run Performance Tests</pre><p>If any cache test fails, deployment stops automatically.</p><p>Automating these tests improves repeatability, supports continuous integration, and reduces manual verification effort.</p><h3>Monitoring Cache Metrics</h3><p>Automated tests should also monitor runtime metrics, including:</p><ul><li>Cache Hit Ratio</li><li>Cache Miss Ratio</li><li>Average Response Time</li><li>Cache Memory Usage</li><li>Cache Evictions</li><li>TTL Expirations</li></ul><p>Example acceptance criteria:</p><pre>Cache Hit Ratio &gt; 90%</pre><pre>Average Response Time &lt; 50 ms</pre><pre>Cache Miss Ratio &lt; 10%</pre><p>Tracking these metrics helps detect regressions such as incorrect cache keys, unexpected invalidation, or configuration errors before they affect users.</p><h3>Common Mistakes</h3><p>Many teams make these mistakes when testing caches:</p><ul><li>Only verifying response data, not whether it came from the cache.</li><li>Ignoring TTL and expiration behavior.</li><li>Forgetting to test cache invalidation.</li><li>Running performance tests only against a warm cache.</li><li>Sharing cache state between tests, causing flaky results.</li></ul><p>Isolating cache state between test runs and covering both hit and miss scenarios are widely recommended testing practices.</p><h3>Best Practices</h3><p>For reliable automated cache testing:</p><ul><li>Clear the cache before each test.</li><li>Test both cache hits and cache misses.</li><li>Validate TTL expiration.</li><li>Verify cache invalidation after updates.</li><li>Measure warm and cold cache performance.</li><li>Monitor cache hit ratio in production.</li><li>Include cache tests in every CI/CD pipeline.</li><li>Use realistic datasets instead of synthetic edge cases only.</li></ul><h3>Conclusion</h3><p>Caching can dramatically improve application performance, but only if it behaves correctly under real-world conditions. Automated cache testing ensures that cache hits, misses, expiration, and invalidation work as expected while continuously validating performance improvements.</p><p>By integrating cache tests into your CI/CD pipeline, you can catch performance regressions early, reduce unnecessary database load, and confidently deploy applications that remain fast and reliable at scale.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38e11b74beed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Test Databricks Pipelines with Real Automated Examples (A Practical Guide)]]></title>
            <link>https://medium.com/@pooja.kurbetti89/how-to-test-databricks-pipelines-with-real-automated-examples-a-practical-guide-64c583f910c5?source=rss-00403753b1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/64c583f910c5</guid>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[pipeline]]></category>
            <category><![CDATA[etl]]></category>
            <dc:creator><![CDATA[Pooja Kurbetti]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 14:43:17 GMT</pubDate>
            <atom:updated>2026-08-11T14:43:17.138Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-QHGRN8vo8vSpINn" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xszTzylDSKJ7XTws" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/0*NtlMQiejzvsBpODq" /></figure><p>Data engineering has evolved beyond simply writing notebooks and hoping they work. Modern teams expect the same engineering practices that software developers have followed for years: unit testing, integration testing, continuous integration (CI), and automated deployments.</p><p>Yet many Databricks projects still rely on manual notebook execution and visual inspection of output tables. While this approach may work for small teams, it becomes risky as pipelines grow in complexity.</p><p>In this article, we’ll build a practical testing strategy for Databricks using a real-world ETL pipeline that can be fully automated.</p><h3>The Problem</h3><p>Imagine you have a retail data pipeline:</p><pre>Raw CSV Files<br>       │<br>       ▼<br> Bronze Table<br>       │<br>       ▼<br>Silver Transformations<br>       │<br>       ▼<br> Gold Sales Dashboard</pre><p>Every day:</p><ul><li>Thousands of files arrive.</li><li>Transformations clean the data.</li><li>Business reports are generated.</li></ul><p>Now imagine a developer changes one line of code.</p><p>Suddenly:</p><ul><li>Sales are duplicated.</li><li>Customer IDs become null.</li><li>Reports become inaccurate.</li></ul><p>Without automated testing, nobody notices until business users complain.</p><p>This is exactly why Databricks recommends organizing code into testable functions and running automated unit tests with frameworks such as pytest, integrating them into CI/CD workflows.</p><h3>A Better Approach</h3><p>Instead of testing entire notebooks manually, separate your logic into layers.</p><pre>Notebook<br>    │<br>    ▼<br>Business Logic (Python Functions)<br>    │<br>    ▼<br>PySpark Transformations<br>    │<br>    ▼<br>Unit Tests</pre><p>This makes each transformation independently testable.</p><h3>Real Example</h3><p>Suppose your company receives customer sales every day.</p><p>Input</p><p>CustomerAmountAlice200Bob-20Charlie500</p><p>Business Rule</p><p>Negative sales should be removed.</p><p>Transformation Function</p><pre>def remove_negative_sales(df):<br>    return df.filter(df.amount &gt;= 0)</pre><p>Looks simple.</p><p>But how do we know someone won’t accidentally change it later?</p><h3>Writing an Automated Test</h3><p>Using pytest:</p><pre>def test_remove_negative_sales(spark):</pre><pre>    data = [<br>        (&quot;Alice&quot;,200),<br>        (&quot;Bob&quot;,-20),<br>        (&quot;Charlie&quot;,500)<br>    ]</pre><pre>    df = spark.createDataFrame(data,[&quot;customer&quot;,&quot;amount&quot;])</pre><pre>    result = remove_negative_sales(df)</pre><pre>    assert result.count() == 2</pre><p>Now every code change automatically verifies that the business rule still works.</p><p>Databricks supports running pytest directly from notebooks or source-controlled projects and recommends failing notebook execution when tests fail.</p><h3>Testing Data Quality</h3><p>Business logic isn’t enough.</p><p>Data itself must also be validated.</p><p>Example validations:</p><p>✅ No duplicate Order IDs</p><p>✅ Customer ID is never NULL</p><p>✅ Sales Amount &gt; 0</p><p>✅ Transaction Date is valid</p><p>Example:</p><pre>assert df.filter(col(&quot;customer_id&quot;).isNull()).count() == 0</pre><p>These tests stop bad data before it reaches production dashboards.</p><h3>Integration Testing</h3><p>Unit tests verify individual functions.</p><p>Integration tests verify the complete pipeline.</p><p>Example workflow:</p><pre>CSV File<br>      │<br>      ▼<br>Read Data<br>      │<br>      ▼<br>Transform<br>      │<br>      ▼<br>Write Delta Table<br>      │<br>      ▼<br>Validate Output</pre><p>Integration tests answer questions like:</p><ul><li>Was the pipeline executed successfully?</li><li>Were output tables created?</li><li>Did row counts match expectations?</li><li>Were duplicate records introduced?</li><li>Were all required columns generated?</li></ul><p>Community discussions also recommend using dedicated development datasets and validating output tables programmatically rather than relying on manual inspection.</p><h3>Automating Tests with GitHub Actions</h3><p>A modern workflow looks like this:</p><pre>Developer pushes code<br>        │<br>        ▼<br>GitHub Pull Request<br>        │<br>        ▼<br>Run pytest<br>        │<br>        ▼<br>Run notebook tests<br>        │<br>        ▼<br>Deploy to Dev<br>        │<br>        ▼<br>Run integration tests<br>        │<br>        ▼<br>Deploy to Production</pre><p>If any test fails:</p><p>❌ Deployment stops automatically.</p><p>Databricks recommends version-controlling notebooks, automating testing, and using CI/CD pipelines with GitHub Actions, Azure DevOps, Jenkins, or similar tools.</p><h3>Example Project Structure</h3><pre>project/</pre><pre>│</pre><pre>├── notebooks/</pre><pre>│      sales_pipeline.py</pre><pre>│</pre><pre>├── src/</pre><pre>│      transform.py</pre><pre>│</pre><pre>├── tests/</pre><pre>│      test_transform.py</pre><pre>│      test_quality.py</pre><pre>│</pre><pre>├── requirements.txt</pre><pre>│</pre><pre>└── github/</pre><pre>       workflow.yml</pre><p>This structure separates reusable business logic from notebooks, making testing much easier.</p><h3>What Should You Automate?</h3><p>A production-ready Databricks project should automatically verify:</p><p>TestPurposeUnit TestsValidate transformation logicSchema TestsEnsure expected columns existData Quality TestsDetect nulls, duplicates, invalid valuesIntegration TestsValidate end-to-end pipeline executionPerformance TestsIdentify slow transformationsRegression TestsEnsure existing functionality still works after code changes</p><h3>Common Mistakes</h3><p>Many teams make these mistakes:</p><ul><li>Writing all logic directly inside notebooks.</li><li>Testing only with production data.</li><li>Manually checking output tables.</li><li>Skipping tests for small code changes.</li><li>Deploying without CI/CD.</li></ul><p>These practices increase the risk of production failures and make pipelines harder to maintain.</p><h3>Best Practices</h3><p>For reliable Databricks projects:</p><ul><li>Keep business logic in reusable Python modules.</li><li>Write unit tests for every transformation.</li><li>Use small sample datasets for testing.</li><li>Validate schemas and data quality.</li><li>Store code in Git.</li><li>Run tests automatically on every pull request.</li><li>Deploy only when all tests pass.</li><li>Monitor production pipelines for failures.</li></ul><h3>Final Thoughts</h3><p>Testing Databricks pipelines should be treated like testing any modern software application. Instead of relying on manual notebook execution, adopt automated unit tests, integration tests, and CI/CD pipelines. This approach catches issues early, improves confidence during deployments, and reduces costly production failures.</p><p>Whether you’re building ETL jobs, machine learning pipelines, or Lakehouse workloads, investing in automated testing pays dividends in reliability, scalability, and maintainability. As Databricks continues to strengthen its testing and CI/CD capabilities, teams that embrace these engineering practices will deliver faster and with greater confidence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64c583f910c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Writing Optimized Code Matters: The Hidden Impact on Data Centers]]></title>
            <link>https://medium.com/@pooja.kurbetti89/why-writing-optimized-code-matters-the-hidden-impact-on-data-centers-ead2b24def4b?source=rss-00403753b1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ead2b24def4b</guid>
            <category><![CDATA[code-optimization]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[data-center]]></category>
            <category><![CDATA[scalability]]></category>
            <dc:creator><![CDATA[Pooja Kurbetti]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 14:38:00 GMT</pubDate>
            <atom:updated>2026-08-11T14:38:00.555Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dbpvHuN0-EpCOJ3Z" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XUcZ-lBLAVLLfojR" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4A0Vzqq_OxwiZMfe" /></figure><p>Every line of code we write has a cost — not just in development time, but also in computing resources. While inefficient code may seem harmless during development, its impact becomes significant when applications are used by millions of people. Optimized code helps applications run faster, consume fewer resources, and reduce operational costs. More importantly, it plays a critical role in improving the efficiency and sustainability of modern data centers.</p><h3>What Is Code Optimization?</h3><p>Code optimization is the process of improving software so that it performs the same tasks while using fewer resources such as CPU, memory, storage, and network bandwidth.</p><p>Optimization does <strong>not</strong> mean making code unnecessarily complex. Instead, it focuses on:</p><ul><li>Choosing efficient algorithms and data structures.</li><li>Eliminating redundant computations.</li><li>Reducing unnecessary memory allocations.</li><li>Optimizing database queries.</li><li>Minimizing network requests.</li><li>Using caching where appropriate.</li></ul><p>The goal is to build software that is both maintainable and efficient.</p><h3>Why Is Optimized Code Important?</h3><h3>1. Better Performance</h3><p>Optimized applications execute tasks faster, leading to quicker response times and a smoother user experience. Whether users are browsing an e-commerce website or streaming videos, performance directly affects satisfaction.</p><h3>2. Lower Infrastructure Costs</h3><p>Cloud providers charge based on compute power, memory, storage, and bandwidth usage. Applications that consume fewer resources require fewer or smaller servers, reducing operational expenses. Microsoft highlights that optimizing code lowers processing time and resource consumption, which directly reduces cloud costs.</p><h3>3. Improved Scalability</h3><p>As user traffic increases, optimized applications can handle more requests without requiring a proportional increase in infrastructure. This enables businesses to grow efficiently while maintaining performance.</p><h3>How Optimized Code Impacts Data Centers</h3><p>Data centers power nearly every online service, including websites, cloud applications, AI systems, streaming platforms, and social media. Thousands of servers operate continuously to process requests.</p><p>When applications are inefficient:</p><ul><li>CPUs remain busy longer.</li><li>More RAM is consumed.</li><li>Additional storage operations are performed.</li><li>Network traffic increases.</li><li>More electricity is required.</li><li>Cooling systems work harder.</li></ul><p>Efficient software reduces these demands, allowing data centers to process more work with the same infrastructure. Energy-efficient IT systems also create cascading savings by reducing cooling and electrical requirements.</p><h3>A Simple Example</h3><p>Imagine an API endpoint that processes one request in <strong>100 milliseconds</strong>.</p><p>After optimization, it processes the same request in <strong>50 milliseconds</strong>.</p><p>If the application receives <strong>100 million requests per day</strong>, that optimization effectively doubles the number of requests each server can process within the same period.</p><p>The benefits include:</p><ul><li>Fewer servers required</li><li>Lower electricity consumption</li><li>Reduced hardware costs</li><li>Better response times</li><li>Lower maintenance expenses</li></ul><p>A small improvement in one function can create enormous savings when multiplied across millions of users.</p><h3>The Connection Between Code and Energy Consumption</h3><p>Every CPU instruction requires electrical power.</p><p>More computations lead to:</p><ul><li>Higher CPU utilization</li><li>Increased power consumption</li><li>Greater heat generation</li><li>Increased cooling requirements</li></ul><p>This chain reaction significantly affects data center operating costs because cooling systems consume a substantial portion of facility energy.</p><p>By writing efficient code, developers indirectly reduce:</p><ul><li>Power consumption</li><li>Heat production</li><li>Cooling requirements</li><li>Carbon emissions</li></ul><p>Major cloud providers also recommend developing energy-efficient software because reducing server load decreases energy use, water consumption for cooling, and overall environmental impact.</p><h3>Real-World Impact</h3><p>Large technology companies such as Google, Amazon, Microsoft, and Meta process billions of requests every day.</p><p>Even a <strong>1% improvement</strong> in efficiency can result in:</p><ul><li>Millions of CPU hours saved annually</li><li>Lower cloud infrastructure costs</li><li>Reduced energy consumption</li><li>Smaller environmental footprint</li></ul><p>Modern data center strategies increasingly combine optimized software with efficient hardware, intelligent scheduling, and advanced cooling technologies to maximize performance while minimizing energy usage.</p><h3>Best Practices for Writing Optimized Code</h3><p>Developers can improve application efficiency by following a few simple practices:</p><ul><li>Select appropriate algorithms and data structures.</li><li>Avoid duplicate or unnecessary computations.</li><li>Write efficient database queries.</li><li>Cache frequently accessed data.</li><li>Reduce unnecessary API and network calls.</li><li>Optimize loops and memory usage.</li><li>Profile applications before optimizing to identify real bottlenecks.</li></ul><p>Remember that optimization should be guided by measurements rather than assumptions.</p><h3>Conclusion</h3><p>Optimized code is about much more than making applications run faster. It reduces infrastructure costs, improves scalability, lowers energy consumption, and contributes to more sustainable data centers. As cloud computing and AI continue to expand, writing efficient software is becoming an essential responsibility for developers.</p><p>Every optimization — whether it saves a few milliseconds or reduces memory usage — can have a significant impact when multiplied across millions of users. By writing smarter code today, developers help build faster applications, more efficient data centers, and a greener digital future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ead2b24def4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Enterprise AI That Proves Its Decisions]]></title>
            <link>https://medium.com/@pooja.kurbetti89/beyond-autonomous-execution-9a381d5ecf1c?source=rss-00403753b1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a381d5ecf1c</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[enterprise-ai]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[claude-ai]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Pooja Kurbetti]]></dc:creator>
            <pubDate>Sun, 02 Aug 2026 17:09:19 GMT</pubDate>
            <atom:updated>2026-08-05T07:47:09.617Z</atom:updated>
            <content:encoded><![CDATA[<h4>Building Enterprise Agentic AI with Claude Skills, Guardrails, and Evidence</h4><h4>Most AI agents execute tasks. Enterprise AI agents should prove every decision they make.</h4><blockquote><strong>Conceptual Collaboration:</strong> I’d like to recognise <strong>Shouvik Dey</strong> for the many thought-provoking discussions on enterprise AI that inspired and refined several of the concepts explored in this article. His insights were invaluable in shaping this work. You can connect with him on <a href="https://www.linkedin.com/in/sd3993/">LinkedIn</a>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z1JlYz59OJLm5vQ_c3LtEQ.png" /></figure><p>“An API returned HTTP 200.”</p><p>“Kafka acknowledged the message.”</p><p>“The database transaction committed.”</p><p>Most enterprise systems celebrate these events as success.</p><p>I don’t.</p><p>While building AI-powered enterprise workflows with Claude Code and Claude Skills, I realized something that fundamentally changed how I design enterprise systems.</p><p><strong>Technical success is not business success.</strong></p><p>An API returning <strong>200 OK</strong> doesn’t prove the data is correct.</p><p>A Kafka ACK doesn’t prove the consumer processed the message.</p><p>A database commit doesn’t prove your portfolio is in the correct state.</p><p>Yet many Agentic AI architectures implicitly make exactly those assumptions.</p><p>So I started asking a different question:</p><p><strong>Can an AI agent prove that a task was completed correctly?</strong></p><p>That single question changed how I think about enterprise AI.</p><p>Throughout this article, we’ll apply the same control loop:</p><p><strong>Reason → Execute → Validate → Generate Evidence → Evaluate Policy → Continue</strong></p><p>We’ll use a real-world trade settlement workflow to show how this approach works in practice.</p><h3>The Architecture We All Build</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DO9cb9rWX5GKGSsug5kUSw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-hRh_2vN3t4d4QznqysvSg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oOK328WIv4p_iWxx77c_iA.jpeg" /></figure><p>Let’s make this concrete.</p><p>Imagine you’re building a trade settlement platform for an investment bank.</p><p>Every morning, institutional clients upload trade files to Amazon S3 to settle millions of trades.</p><p>If you’ve built event-driven microservices, this architecture will look familiar — scalable, asynchronous, and widely used across enterprise systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jfp3OZqE3zQAnHwMtyjj8A.png" /></figure><p>On paper, it looks correct.</p><p>So what’s the problem?</p><p>Every arrow represents a trust boundary. The orchestrator trusts the uploaded file. Kafka trusts the producer. The consumer trusts the event. The business workflow trusts external APIs. The database trusts the application. Every component assumes the previous one did its job correctly. This article challenges that assumption.</p><h3>The Morning Everything Was Green</h3><p>Let&#39;s make this real.</p><p>It&#39;s 9:00 AM.</p><p>BlackRock uploads a trade file containing 12 million equity trades worth $8.4 billion.</p><p>Within seconds, your Claude Orchestrator starts the settlement workflow, and every operational dashboard is green.</p><p>✅ S3 event received.</p><p>✅ Claude Orchestrator started.</p><p>✅ Kafka Producer published successfully.</p><p>✅ Consumer processed every event.</p><p>✅ Pricing API returned HTTP 200.</p><p>✅ Compliance API approved every trade.</p><p>✅ Settlement completed.</p><p>✅ PostgreSQL committed.</p><p>Operations signs off.</p><p>Finance doesn&#39;t.</p><p>Four hours later, the reconciliation report reveals that thousands of trades were settled using stale market prices.</p><p>The Pricing API returned HTTP 200 for every request.</p><p>Kafka delivered every message.</p><p>The database committed every transaction.</p><p>Technically, everything succeeded.</p><p>Business-wise, the settlement was wrong.</p><p>That&#39;s the day I stopped trusting infrastructure.</p><h3>The Wrong Question</h3><p>Most enterprise workflows ask three questions:</p><ul><li>Did the API succeed?</li><li>Did Kafka publish the message?</li><li>Did the database transaction commit?</li></ul><p>They’re all infrastructure questions.</p><p>The better question is:</p><p><strong>Can I prove the business outcome is correct?</strong></p><p>That single question changes everything.</p><p>Instead of optimizing for successful execution, we optimize for <strong>verifiable outcomes</strong>.</p><p>Execution starts a workflow.</p><p>Evidence earns the right to continue it.</p><h3>Trust Boundary #1 — The Uploaded File</h3><p>The first trust boundary appears before Claude makes a single decision.</p><p>Most systems assume that once a file reaches Amazon S3, it’s ready to process.</p><p>Enterprise AI shouldn’t make that assumption.</p><p>Instead of trusting the upload, the Claude Orchestrator delegates validation to a dedicated File Validation Skill before planning begins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JAfwT5xNqQ8wQnUP5XMg-Q.png" /></figure><p>The File Validation Skill has a single responsibility: determine whether an uploaded file is safe to process.</p><p><strong>Example Claude Skill</strong></p><p><strong>Skill Name</strong></p><p>file-validator</p><p><strong>Mission</strong></p><p>Validate every uploaded trade file before orchestration begins.</p><p>Before the workflow can continue, the Skill verifies:</p><ul><li>File exists</li><li>SHA-256 checksum generated</li><li>Schema matches the expected version</li><li>Row count within expected limits</li><li>Virus scan passed</li><li>Duplicate upload detection</li><li>Upload timestamp within SLA</li><li>Mandatory columns present</li></ul><p>Instead of returning:</p><pre>{<br>  &quot;status&quot;: &quot;PASS&quot;<br>}</pre><p>the Skill produces structured evidence:</p><pre>{<br>  &quot;evidenceId&quot;: &quot;EV-001&quot;,<br>  &quot;workflowId&quot;: &quot;WF-2026-08-02-001&quot;,<br>  &quot;skill&quot;: &quot;file-validator&quot;,<br>  &quot;step&quot;: &quot;File Validation&quot;,<br>  &quot;status&quot;: &quot;PASS&quot;,<br>  &quot;timestamp&quot;: &quot;2026-08-02T09:01:12Z&quot;,<br>  &quot;file&quot;: {<br>    &quot;name&quot;: &quot;trade_2026_08_02.csv&quot;,<br>    &quot;rows&quot;: 12000000,<br>    &quot;schemaVersion&quot;: &quot;v7&quot;,<br>    &quot;checksum&quot;: &quot;SHA256:4AFB8C...&quot;<br>  },<br>  &quot;validation&quot;: {<br>    &quot;duplicateUpload&quot;: false,<br>    &quot;virusScan&quot;: &quot;PASS&quot;,<br>    &quot;mandatoryColumns&quot;: &quot;PASS&quot;<br>  }<br>}</pre><p>Rather than returning a simple PASS or FAIL, the Skill generates enough evidence for another agent — or a human auditor — to independently verify the decision.</p><p>The orchestrator evaluates evidence, not execution.</p><h3>Why Claude Skills</h3><p>One of the reasons I enjoy building enterprise workflows with Claude Code is its support for Skills.</p><p>Instead of creating one massive prompt that validates files, publishes Kafka events, calls APIs, updates databases, retries failures, and generates audit logs, I split the workflow into small, focused Skills.</p><p>Each Skill has a single responsibility — planning, validation, evidence generation, or policy evaluation.</p><p>This separation makes every Skill independently testable, reusable, and easier to evolve over time.</p><p>That’s the same principle we’ve followed for years when designing microservices.</p><p>Enterprise AI should be no different.</p><p>Each Skill produces structured evidence and can be tested independently.</p><blockquote>From this point onward, every trust boundary follows the same control loop:</blockquote><blockquote>Reason → Execute → Validate → Generate Evidence → Evaluate Policy → Continue</blockquote><blockquote>The technology changes. The control loop doesn’t.</blockquote><h3>Trust Boundary #2 — Kafka Is a Transport, Not a Source of Truth</h3><p>Kafka is one of the most reliable event streaming platforms in enterprise systems.</p><p>But reliability isn’t the same as correctness.</p><p>Kafka is a transport layer, not a source of truth. It reliably moves events between trust boundaries, but it doesn’t prove that the business objective was achieved.</p><p>Many enterprise workflows make a simple assumption:</p><blockquote><em>“Kafka acknowledged the message, therefore the workflow can continue.”</em></blockquote><p>That’s not what Kafka guarantees.</p><p>A Kafka acknowledgment confirms that the broker accepted the message. It does <strong>not</strong> guarantee that:</p><ul><li>the consumer received it,</li><li>the consumer processed it,</li><li>the consumer processed it exactly once,</li><li>downstream services completed successfully, or</li><li>the business objective was achieved.</li></ul><p>That’s why Kafka acknowledgments are never treated as evidence in this workflow.</p><p>Evidence is produced only after an independent Validation Skill verifies the outcome.</p><h3>Let Claude Think</h3><p>Assume the uploaded trade file has already passed validation.</p><p>The Claude Orchestrator doesn’t publish an event to Kafka immediately. It first reasons about the business objective.</p><p>The goal isn’t to publish a message.</p><p>The goal is to settle trades correctly.</p><p>The Planning Skill decomposes that objective into a sequence of verifiable tasks before any action is taken.</p><h3>The Kafka Publish Skill</h3><p>Instead of publishing directly, the Claude Orchestrator delegates the task to a dedicated Kafka Publish Skill.</p><p><strong>Skill Name</strong></p><p>publish-trade-event</p><p><strong>Mission</strong></p><p>Publish a trade settlement event to Kafka and return the metadata required for independent validation.</p><p>The Skill has a single responsibility: publish the event and return the metadata needed by the Validation Skill.</p><p><strong>Example payload</strong></p><pre>{<br>  &quot;workflowId&quot;:&quot;WF-001&quot;,<br>  &quot;event&quot;:&quot;TradeSettlementStarted&quot;,<br>  &quot;file&quot;:&quot;trade_2026_08_02.csv&quot;,<br>  &quot;tradeCount&quot;:12000000,<br>  &quot;timestamp&quot;:&quot;2026-08-02T09:03:00Z&quot;<br>}</pre><p>Notice what’s missing.</p><p>The Skill doesn’t determine whether publishing succeeded. It simply returns the topic, partition, offset, and correlation ID required for the next Validation Skill to independently verify the outcome.</p><h3>But Publishing Isn’t Enough</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ce6IndsXgrVHTyA5cPqOwg.png" /></figure><p>At this point, the Claude Orchestrator knows only one thing: a publish request was made.</p><p>It has no evidence that the event was durably persisted, consumed, or that downstream processing will succeed.</p><p>That’s where an independent Validation Skill takes over.</p><h3>This is where most enterprise workflows stop.</h3><p>Mine starts.</p><h3>What Does the Validation Skill Actually Verify?</h3><p>The Validation Skill isn’t testing Kafka itself. Kafka has already accepted the message.</p><p>Its job is to determine whether the published event is trustworthy enough for the workflow to continue.</p><p>Instead of validating execution, it validates confidence.</p><pre>| **Validation**         | **Why it matters**                         |<br>| ---------------------- | ------------------------------------------ |<br>| Topic exists           | Prevent publishing to incorrect topics     |<br>| Partition assigned     | Detect routing issues                      |<br>| Offset generated       | Ensure the message was persisted           |<br>| Replication successful | Protect against broker failure             |<br>| ACK = all              | Provide the strongest durability guarantee |<br>| Serialization valid    | Prevent unreadable or malformed events     |<br>| Checksum verified      | Detect data corruption                     |<br>| Correlation ID present | Enable end-to-end workflow tracing         |</pre><p>Instead of returning a simple PASS, the Skill produces structured evidence:</p><pre>{<br>    &quot;step&quot;:&quot;Kafka Publish Validation&quot;,<br>    &quot;topic&quot;:&quot;trade-settlement&quot;,<br>    &quot;partition&quot;:7,<br>    &quot;offset&quot;:19823341,<br>    &quot;replicationFactor&quot;:3,<br>    &quot;acks&quot;:&quot;all&quot;,<br>    &quot;checksum&quot;:&quot;Verified&quot;,<br>    &quot;correlationId&quot;:&quot;WF-001&quot;,<br>    &quot;status&quot;:&quot;PASS&quot;,<br>    &quot;evidenceId&quot;:&quot;EV-002&quot;<br>}</pre><p>Rather than simply declaring success, the Skill provides the evidence needed to justify it.</p><h3>Now Comes the Interesting Part</h3><p>Most enterprise workflows stop here.</p><p>They treat publishing as the end of the journey.</p><p>It isn’t.</p><p>Publishing proves that an event was sent.</p><p>It doesn’t prove that the event was consumed or that the business process succeeded.</p><p>That’s why publishing and consumption are separate trust boundaries.</p><h3>Trust Boundary #3 — The Consumer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mamRs-uO0gydHg6gGX_kRg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ySRoRldAzKhdljb-Y_AMEw.png" /></figure><h3>Consumer Validation Checks</h3><p>The Consumer Validation Skill verifies that the event was processed correctly before the workflow continues.</p><p>It answers questions such as:</p><ul><li>Was the correct topic consumed?</li><li>Was the expected offset processed?</li><li>Was the event processed exactly once?</li><li>Is this a duplicate?</li><li>Was the offset committed?</li><li>Is consumer lag acceptable?</li><li>Does the schema version match?</li><li>Does the Correlation ID match the workflow?</li></ul><p>These checks verify the integrity of the workflow — not just the messaging infrastructure.</p><p><strong>Example evidence</strong></p><pre>{<br>  &quot;step&quot;:&quot;Kafka Consumer Validation&quot;,<br>  &quot;consumerGroup&quot;:&quot;trade-settlement&quot;,<br>  &quot;offset&quot;:19823341,<br>  &quot;duplicate&quot;:false,<br>  &quot;lag&quot;:0,<br>  &quot;schema&quot;:&quot;v7&quot;,<br>  &quot;correlationId&quot;:&quot;WF-001&quot;,<br>  &quot;status&quot;:&quot;PASS&quot;,<br>  &quot;evidenceId&quot;:&quot;EV-003&quot;<br>}</pre><p>Only after this evidence is produced does the workflow proceed.</p><h3>A Different Way to Think About Kafka</h3><p>Kafka isn’t part of the business workflow.</p><p>It’s a courier.</p><p>Think about sending an important legal contract.</p><p>You don’t celebrate because the courier accepted the package.</p><p>You celebrate when the recipient signs for it.</p><p>A Kafka ACK is the courier accepting the package.</p><p>Consumer validation is the signed delivery receipt.</p><p>That’s the level of proof enterprise AI should require.</p><h3>The Orchestrator Never Makes Blind Decisions</h3><p>By this point, the Claude Orchestrator still hasn’t called a single business API.</p><p>So far, it has only:</p><ul><li>Generated a plan</li><li>Collected evidence</li><li>Evaluated policies</li></ul><p>That’s intentional.</p><p>The orchestrator’s role isn’t to execute business logic. It’s to coordinate specialized Claude Skills and decide whether the accumulated evidence justifies moving the workflow forward.</p><p>That keeps the orchestrator simple, testable, and explainable.</p><h3>Trust Boundary #4 — An API Returning HTTP 200 Isn’t Success</h3><p>Most enterprise workflows treat an HTTP response as the end of validation.</p><pre>HTTP/1.1 200 OK<br>↓<br>Workflow continues</pre><p>But an HTTP 200 only tells you that the server successfully processed the request.</p><p>It doesn’t tell you whether:</p><blockquote>the data is correct, the response is complete, the business rules were satisfied, or the workflow should continue.</blockquote><p>For enterprise AI, that’s a dangerous assumption.</p><h3>Claude Doesn’t Call APIs</h3><p>The Claude Orchestrator never calls business services directly.</p><p>Instead, it delegates work to specialized Skills.</p><p>For our trade settlement workflow, the Planning Skill produces an execution plan:</p><pre>Retrieve market prices<br>        ↓<br>Validate regulatory compliance<br>        ↓<br>Execute settlement</pre><p>Each task is then delegated to the appropriate Skill for execution and independent validation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ppDFM6s1pSLtYkBFgwK1Xg.png" /></figure><p>Notice something important.</p><p>This Skill performs execution.</p><p>It does <strong>not</strong> decide whether execution succeeded.</p><p>That’s someone else’s job.</p><h3>Meet the Validation Skill</h3><p>Every business API follows the same pattern.</p><p>Immediately after execution, the Claude Orchestrator invokes a corresponding Validation Skill.</p><p><em>Figure 6. Every business API follows the execution → validation → evidence pattern.</em></p><p>This separation preserves independence. The component that performs the work should never be responsible for validating it.</p><h3>Example — Pricing API</h3><p>Suppose the Pricing API returns:</p><pre>{<br>    &quot;symbol&quot;:&quot;AAPL&quot;,<br>    &quot;price&quot;:212.14,<br>    &quot;currency&quot;:&quot;USD&quot;<br>}</pre><p>Looks perfectly valid.</p><p>Most workflows continue.</p><p>Claude doesn’t.</p><p>Instead, the Pricing Validation Skill asks a completely different set of questions.</p><h3>What Gets Validated?</h3><p>Instead of validating the transport…</p><p>We validate the business outcome.</p><pre>| **Question**                                  | **Why it matters**        |<br>| --------------------------------------------- | ------------------------- |<br>| Was every requested instrument returned?      | Detect partial responses  |<br>| Are prices recent enough?                     | Prevent stale market data |<br>| Is the currency correct?                      | Prevent settlement errors |<br>| Are prices within expected market ranges?     | Detect provider anomalies |<br>| Which market data provider supplied the data? | Ensure traceability       |<br>| What is the confidence score?                 | Support policy decisions  |</pre><p>Notice that only the first question is technical.</p><p>Everything else is business validation.</p><h3>Example Evidence</h3><p>Instead of returning</p><pre>{<br>    &quot;status&quot;:&quot;PASS&quot;<br>}</pre><p>The Validation Skill returns</p><pre>{<br>    &quot;step&quot;:&quot;Pricing Validation&quot;,<br>    &quot;provider&quot;:&quot;Bloomberg&quot;,<br>    &quot;requestedPrices&quot;:12000000,<br>    &quot;returnedPrices&quot;:12000000,<br>    &quot;missingPrices&quot;:0,<br>    &quot;currency&quot;:&quot;USD&quot;,<br>    &quot;maximumAge&quot;:&quot;18 seconds&quot;,<br>    &quot;confidence&quot;:0.998,<br>    &quot;status&quot;:&quot;PASS&quot;,<br>    &quot;evidenceId&quot;:&quot;EV-004&quot;<br>}</pre><p>Now Claude has something meaningful.</p><p>Evidence.</p><p>Not optimism.</p><h3>Claude Makes a Policy Decision</h3><p>This is one of my favorite parts of the architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y_-wX28L4NLM9RUFxS_sFQ.png" /></figure><blockquote>Validation doesn’t answer the final question.</blockquote><blockquote>Policy does.</blockquote><blockquote>The Policy Engine doesn’t ask:</blockquote><blockquote><strong><em>Did validation pass?</em></strong></blockquote><p>It asks:</p><blockquote><strong><em>Given the available evidence, what should happen next?</em></strong></blockquote><p>That distinction changes everything.</p><p>For example:</p><ul><li><strong>18-second-old market prices</strong> → <strong>PASS</strong></li><li><strong>4-minute-old market prices</strong> → <strong>RETRY</strong></li><li><strong>22-minute-old market prices</strong> → <strong>FAIL</strong></li><li><strong>Primary market data provider unavailable</strong> → Switch to Reuters, use ICE Data Services, or escalate for manual approval.</li></ul><h3>Every Skill Produces Evidence</h3><p>By now our workflow looks like this.</p><pre>File Validation<br>↓<br>Evidence EV-001<br>↓<br>Kafka Publish Validation<br>↓<br>Evidence EV-002<br>↓<br>Consumer Validation<br>↓<br>Evidence EV-003<br>↓<br>Pricing Validation<br>↓<br>Evidence EV-004</pre><p>The Evidence Store keeps growing.</p><p>Nothing has been trusted.</p><p>Everything has been verified.</p><h3>Compliance Works the Same Way</h3><p>The Compliance Skill isn’t special.</p><p>It follows exactly the same pattern.</p><p>Execution.</p><p>Validation.</p><p>Evidence.</p><p>Policy.</p><p>Continue.</p><h3>Figure 7 — Compliance Validation</h3><pre>Compliance API<br>        │<br>        ▼<br>Compliance Validation Skill<br>        │<br>        ▼<br>Evidence EV-005<br>        │<br>        ▼<br>Policy Decision</pre><p>Validation includes:</p><ul><li>Sanctions screening completed</li><li>Trading window valid</li><li>Position limits respected</li><li>Restricted securities checked</li><li>Regional regulations applied</li><li>Rule engine version recorded</li></ul><p>Example evidence</p><pre>{<br>    &quot;ruleEngine&quot;:&quot;v12.3&quot;,<br>    &quot;rulesExecuted&quot;:48,<br>    &quot;rulesFailed&quot;:0,<br>    &quot;sanctions&quot;:&quot;PASS&quot;,<br>    &quot;positionLimits&quot;:&quot;PASS&quot;,<br>    &quot;status&quot;:&quot;PASS&quot;,<br>    &quot;evidenceId&quot;:&quot;EV-005&quot;<br>}</pre><p>Notice something subtle.</p><p>We’re not only recording <em>what</em> happened.</p><p>We’re recording <strong>which version of the rule engine</strong> produced the decision.</p><p>Six months later, if an auditor asks why a trade was approved, we can reproduce the exact decision context.</p><p>That’s the kind of traceability regulated industries demand.</p><h3>The Execution Pattern Never Changes</h3><p>By now you might have noticed something.</p><p>Every Skill follows the same lifecycle.</p><p>That’s deliberate.</p><p>Whether Claude is validating Kafka, pricing, compliance, or settlement, the control loop stays the same.</p><p>The only thing that changes is <strong>what</strong> is being validated.</p><p>That consistency makes the architecture easier to understand, easier to test, and easier to extend.</p><h3>Trust Boundary #5 — A Database Commit Doesn’t Mean the Business Is Correct</h3><p>Every engineer has written code like this:</p><pre>db.save(position);<br>db.commit();<br>return Success;</pre><p>It looks correct.</p><p>The transaction committed.</p><p>The application returned success.</p><p>The monitoring dashboard turned green.</p><p>But what did the commit actually prove?</p><p>It proved that PostgreSQL successfully committed a transaction.</p><p>It did <strong>not</strong> prove that:</p><ul><li>the portfolio position is correct,</li><li>the cash movement balances,</li><li>downstream systems received the update,</li><li>the audit trail was created, or</li><li>the ledger reconciles.</li></ul><p>We’ve confused <strong>database consistency</strong> with <strong>business correctness</strong>.</p><p>They’re not the same thing.</p><h3>Claude Doesn’t Trust the Database Either</h3><p>By now, the pattern should feel familiar.</p><p>Execution never decides success.</p><p>Validation does.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6p_nYC7CbWFSou585s21ag.png" /></figure><p>Just because SQL succeeded doesn’t mean the workflow should continue.</p><p>Claude asks another Skill to prove the resulting business state is correct.</p><h3>What Does the Database Validation Skill Verify?</h3><p>This Skill isn’t checking SQL syntax.</p><p>It’s checking the outcome.</p><pre>| **Validation**                    | **Why it matters**                 |<br>| --------------------------------- | ---------------------------------- |<br>| Transaction committed             | Verify technical consistency       |<br>| Expected rows updated             | Detect partial writes              |<br>| Unexpected rows modified          | Prevent data corruption            |<br>| Optimistic lock/version increment | Detect concurrent updates          |<br>| Audit record created              | Ensure regulatory traceability     |<br>| CDC event published               | Synchronize downstream systems     |<br>| Read-after-write successful       | Verify persistence                 |<br>| Replication healthy               | Ensure disaster recovery readiness |</pre><p>Notice something.</p><p>Half of these checks have nothing to do with SQL.</p><p>They’re validating <strong>the enterprise workflow</strong>, not the database.</p><h3>Example Evidence</h3><pre>{<br>  &quot;step&quot;:&quot;Database Validation&quot;,<br>  &quot;transactionId&quot;:&quot;TX-981234&quot;,<br>  &quot;rowsExpected&quot;:12000000,<br>  &quot;rowsUpdated&quot;:12000000,<br>  &quot;auditRecord&quot;:true,<br>  &quot;cdcPublished&quot;:true,<br>  &quot;replication&quot;:&quot;Healthy&quot;,<br>  &quot;readAfterWrite&quot;:&quot;PASS&quot;,<br>  &quot;status&quot;:&quot;PASS&quot;,<br>  &quot;evidenceId&quot;:&quot;EV-006&quot;<br>}</pre><p>Again…</p><p>Claude doesn’t receive</p><pre>{<br>   &quot;status&quot;:&quot;PASS&quot;<br>}</pre><p>It receives enough information to justify <strong>why</strong> the workflow should continue.</p><p>That’s a very different contract.</p><h3>Wait… Aren’t We Finished?</h3><p>Not yet.</p><p>This is where I think most enterprise architectures stop too early.</p><p>Every component passed.</p><p>The file was valid.</p><p>Kafka worked.</p><p>The consumer processed the event.</p><p>The APIs returned success.</p><p>The database committed.</p><p>Everything looks good.</p><p>So…</p><p>Did the business objective succeed?</p><p>Nobody knows.</p><h3>The Final Skill</h3><p>Everything we’ve done so far validates <strong>individual components</strong>.</p><p>Now we validate <strong>the business itself</strong>.</p><p>I call this the <strong>Reconciliation Skill</strong>.</p><p>It is, in my opinion, the most important Skill in the entire architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XsaLA_MWMLGt2uMqPH3fgw.png" /></figure><p>Notice what we’re validating.</p><p>Not systems.</p><p>Business outcomes.</p><h3>The Question Every Enterprise Should Ask</h3><p>Imagine someone from Finance walks over to your desk and asks one question:</p><blockquote><strong><em>“How do you know today’s settlement is correct?”</em></strong></blockquote><p>How would your system answer?</p><p>Would it say:</p><ul><li>Kafka worked.</li><li>PostgreSQL committed.</li><li>The Pricing API returned HTTP 200.</li></ul><p>None of those answers would satisfy an auditor.</p><p>The Reconciliation Skill answers a different question:</p><pre>Uploaded Trades      = 12,000,000<br>Processed Trades     = 12,000,000<br>Settled Trades       = 12,000,000<br>Ledger Entries       = 12,000,000<br>Cash Difference      = $0.00<br>Portfolio Difference = 0<br>Status               = PASS</pre><p><strong>That’s evidence.</strong></p><h3>The Evidence Store</h3><p>By this point we’ve accumulated evidence from every trust boundary.</p><p>Figure 9. Every validation produces immutable evidence that supports policy, audits, and observability.</p><pre><br>EV-001 File Validation<br>EV-002  Kafka Publish<br>EV-003  Kafka Consumer<br>EV-004  Pricing Validation<br>EV-005  Compliance Validation<br>EV-006  Database Validation<br>EV-007  Reconciliation</pre><p>Instead of scattering these across logs, dashboards, and monitoring systems, I store them in one place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yMPgOoN7jEaIR3mTFOfhBw.png" /></figure><p>Think of it as a ledger for your AI system.</p><p>Every meaningful decision leaves behind an immutable record.</p><p>Months later you can answer questions like:</p><ul><li>Why was this workflow approved?</li><li>Which Skill made the decision?</li><li>Which evidence supported it?</li><li>Which policy evaluated it?</li><li>Which version of the Skill was running?</li><li>Which model generated the decision?</li></ul><p>Traditional logs rarely answer those questions.</p><p>An Evidence Store can.</p><h3>Claude Skills Become Surprisingly Small</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ADe1ozOuvXKQoCl-ycuww.png" /></figure><h3>The Complete Architecture</h3><p>We’ve validated every trust boundary independently.</p><p>Now it’s time to put everything together.</p><p>The complete architecture below shows how Claude Skills, validation, evidence, policy evaluation, and reconciliation work together as a single enterprise workflow.</p><h3>This is the architecture I now build.</h3><p>Not because it’s more complicated.</p><p>Because it’s more trustworthy.</p><p>Every time Claude makes a decision, another Skill asks a simple question:</p><p><strong>“Can you prove it?”</strong></p><p>Only evidence earns the right to continue the workflow.</p><h3>We’re Solving the Wrong Problem</h3><p>Most discussions about Agentic AI focus on one question:</p><blockquote><strong><em>How do we make AI more autonomous?</em></strong></blockquote><p>I think a better question is:</p><blockquote><strong><em>How do we know when an autonomous system should be trusted?</em></strong></blockquote><p>The first is about capability.</p><p>The second is about accountability.</p><p>Enterprise software has always been built on accountability.</p><p>Predictable.</p><p>Auditable.</p><p>Observable.</p><p>Recoverable.</p><p>Enterprise AI shouldn’t be held to a lower standard.</p><h3>The Shift</h3><p>When I started building agentic workflows with Claude, I optimized for execution. Today, I optimize for verification. That shift — from assuming success to demanding evidence — changed how I think about autonomous systems. It isn’t dramatically more complicated. But it is dramatically more trustworthy.</p><h3>Claude Isn’t the System</h3><p>Claude isn’t your workflow.</p><p>Claude isn’t your business process.</p><p>Claude is one decision-maker within a much larger system.</p><p>That realization changes how you design enterprise AI.</p><p>Instead of asking Claude to do more, ask it to do less.</p><p>Reason.</p><p>Plan.</p><p>Decide.</p><p>Everything else belongs to specialized Skills.</p><p>Just as we decomposed monoliths into services, we should decompose AI into Skills.</p><h3>Why I Chose Claude Skills</h3><p>One reason I enjoy building with Claude Code is that Skills naturally encourage decomposition.</p><p>Instead of one enormous prompt that tries to plan, validate, execute, and audit an entire workflow, I build small, single-purpose capabilities.</p><p>For example:</p><ul><li><strong>planning.md</strong> — Creates the execution plan.</li><li><strong>file-validator.md</strong> — Validates uploaded files.</li><li><strong>pricing-validator.md</strong> — Verifies market prices.</li><li><strong>kafka-publish-validator.md</strong> — Validates event publication.</li><li><strong>db-validator.md</strong> — Verifies business persistence.</li><li><strong>reconciliation.md</strong> — Proves the business outcome.</li><li><strong>policy-engine.md</strong> — Decides what happens next.</li></ul><p>The orchestrator doesn’t become smarter.</p><p>It becomes simpler.</p><p>And simplicity is usually a good sign that an architecture is moving in the right direction.</p><h3>The Architecture I Now Reach For</h3><p>If I were starting a new enterprise AI project tomorrow, this is the checklist I’d use:</p><ul><li>✅ Every trust boundary has a dedicated Validation Skill.</li><li>✅ Every Validation Skill produces structured evidence.</li><li>✅ Every decision is evaluated by a Policy Engine.</li><li>✅ Every workflow ends with business reconciliation.</li><li>✅ Every piece of evidence is stored immutably.</li></ul><p>Notice what’s missing.</p><p>Nowhere does this checklist say:</p><ul><li>Use Kafka.</li><li>Use PostgreSQL.</li><li>Use Claude.</li></ul><p>Those are implementation choices.</p><p>The architectural pattern is what matters.</p><p>The model reasons.</p><p>Skills execute.</p><p>Validators verify.</p><p>Evidence proves.</p><p>Policy decides.</p><h3>What I’d Love to See Next</h3><p>Most discussions around Agentic AI today focus on:</p><ul><li>Better prompting</li><li>More tools</li><li>Longer context windows</li><li>More autonomous agents</li></ul><p>Those are valuable.</p><p>But I think the next wave of innovation will come from somewhere else.</p><p>I think we’ll start asking questions like:</p><ul><li>How do agents justify their decisions?</li><li>How do we replay an AI workflow six months later?</li><li>How do auditors inspect autonomous systems?</li><li>How do we prove regulatory compliance?</li><li>How do multiple agents establish trust with each other?</li></ul><p>In other words…</p><p>We’ll stop measuring intelligence.</p><p>We’ll start measuring trust.</p><h3>Final Thought</h3><p>There’s one sentence I hope you remember after reading this article.</p><p>Not the Kafka diagrams.</p><p>Not the Claude Skills.</p><p>Not the architecture.</p><p>Just this:</p><blockquote><strong><em>Enterprise AI shouldn’t advance because an action completed.</em></strong></blockquote><blockquote><strong><em>It should advance because the outcome has been independently verified and supported by evidence.</em></strong></blockquote><p>That’s the architecture I build today.</p><p>And I believe it’s the direction enterprise Agentic AI is heading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a381d5ecf1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of Intelligent Impact Analysis]]></title>
            <link>https://medium.com/@pooja.kurbetti89/the-rise-of-intelligent-impact-analysis-8ee9c7719d1b?source=rss-00403753b1dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ee9c7719d1b</guid>
            <category><![CDATA[runtime-code-analysis]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[static-code-analysis]]></category>
            <category><![CDATA[blast-radius]]></category>
            <category><![CDATA[opentelemetry]]></category>
            <dc:creator><![CDATA[Pooja Kurbetti]]></dc:creator>
            <pubDate>Thu, 09 Jul 2026 16:48:01 GMT</pubDate>
            <atom:updated>2026-07-09T16:48:01.303Z</atom:updated>
            <content:encoded><![CDATA[<p>When developers change code, engineering teams immediately ask one question:</p><blockquote><strong><em>What is the blast radius of this change?</em></strong></blockquote><p>For years, the answer has come from <strong>static code analysis</strong>.</p><p>Static analysis examines source code, dependency graphs, call hierarchies, imports, interfaces, API contracts, and build dependencies to determine <strong>what could potentially be affected</strong> by a code change.</p><p>For example, suppose a developer modifies:</p><pre>PaymentService.processPayment()</pre><p>A static analysis engine might report:</p><pre>PaymentService<br>      │<br>      ├── Checkout API<br>      ├── Refund API<br>      ├── Invoice Service<br>      ├── Fraud Service<br>      └── Notification Service</pre><p>Technically, the analysis is correct.</p><p>Every one of these components <strong>could</strong> be impacted.</p><p>But static analysis has one fundamental limitation:</p><blockquote><strong><em>It has no idea what actually happens in production.</em></strong></blockquote><p>It cannot answer questions like:</p><ul><li>Which APIs actually invoke this method?</li><li>Which execution paths are most frequently used by customers?</li><li>Which downstream services are actually called?</li><li>Which database tables are updated?</li><li>Which Kafka topics are published?</li><li>Which code paths have never been executed?</li><li>Which dependencies are effectively dormant?</li></ul><p>Static analysis tells us <strong>what could happen</strong>.</p><p>It doesn’t tell us <strong>what actually happens</strong>.</p><h3>Runtime Impact Analysis Completes the Picture</h3><p>Runtime analysis approaches the problem from a completely different angle.</p><p>Instead of reading source code, it observes the application while it is executing.</p><p>Every production request becomes evidence.</p><p>Imagine thousands of customer requests flowing through your platform.</p><p>The runtime engine observes an execution path like:</p><pre>POST /checkout<br>        │<br>Checkout Service<br>        │<br>Payment Service<br>        │<br>Fraud Service<br>        │<br>payment table<br>        │<br>Kafka Topic: payment-created<br>        │<br>Notification Service</pre><p>Now AI can answer questions that static analysis simply cannot.</p><p>For example:</p><ul><li>Which APIs actually invoke PaymentService?</li><li>Which execution path handles 95% of production traffic?</li><li>Which services are never used?</li><li>Which downstream dependency becomes the bottleneck?</li><li>Which database tables are modified during checkout?</li><li>Which Kafka topics are published only under specific business scenarios?</li></ul><p>This is <strong>runtime impact analysis</strong>.</p><p>It tells you <strong>what is actually happening — not what could happen.</strong></p><h3>Static Analysis vs Runtime Analysis</h3><p>Static AnalysisRuntime AnalysisReads source codeObserves application executionFinds potential dependenciesFinds actual dependenciesConservativeEvidence-basedHigher false positivesHigher confidenceDoesn’t know production usageKnows production behaviorDoesn’t know request volumeKnows traffic distributionDoesn’t know execution frequencyKnows hot pathsDoesn’t know failuresKnows real production failures</p><p>Neither approach is sufficient on its own.</p><p>The real value comes from combining both.</p><h3>The AI Opportunity</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T9BXUrWqQQfH7rgIhOnRfQ.png" /></figure><p>Imagine a developer changes:</p><pre>PaymentService.processPayment()</pre><p>Static analysis reports:</p><ul><li>42 APIs</li><li>18 services</li><li>9 databases</li><li>76 classes</li></ul><p>Runtime analysis reports:</p><ul><li>Only 6 APIs actually invoke the method</li><li>Only 3 downstream services participate</li><li>95% of production traffic flows through Checkout</li><li>Only 2 database tables are updated</li><li>Only 1 Kafka topic is published</li><li>18 regression tests already cover this execution path</li></ul><p>Now AI combines both perspectives.</p><p>Instead of overwhelming engineers with hundreds of potential dependencies, it produces something far more actionable.</p><p><strong>Potential Impact</strong></p><ul><li>Broad dependency footprint</li><li>Multiple services could be affected</li></ul><p><strong>Actual Runtime Impact</strong></p><ul><li>Concentrated around Checkout</li><li>High production traffic</li><li>Limited downstream dependencies</li></ul><p><strong>Recommendation</strong></p><p>Execute:</p><ul><li>Checkout regression suite</li><li>Payment regression suite</li><li>Fraud regression suite</li><li>Invoice regression suite</li></ul><p>The result is a much more focused and intelligent impact assessment than static analysis alone.</p><h3>But Runtime Analysis Has a Hidden Dependency</h3><p>This is where many AI initiatives struggle.</p><p>Runtime analysis depends entirely on one thing:</p><blockquote><strong><em>Observability.</em></strong></blockquote><p>Without sufficient runtime telemetry, AI cannot determine what actually happened.</p><p>Suppose the only logs available are:</p><pre>Payment started</pre><pre>Payment completed</pre><pre>Error occurred</pre><p>Can AI determine:</p><ul><li>Which API triggered the request?</li><li>Which customer was affected?</li><li>Which downstream services were invoked?</li><li>Which Kafka topic was published?</li><li>Which database tables were updated?</li></ul><p>The answer is <strong>no</strong>.</p><p>Now compare that with structured telemetry:</p><pre>TraceId=abc123</pre><pre>RequestId=xyz789</pre><pre>API=POST /checkout</pre><pre>Service=PaymentService</pre><pre>Method=processPayment()</pre><pre>Downstream=FraudService</pre><pre>Database=payment</pre><pre>KafkaTopic=payment-created</pre><pre>Latency=210ms</pre><p>Suddenly AI can reconstruct the complete execution graph.</p><p>The difference isn’t smarter AI.</p><p>The difference is better observability.</p><h3>Why We Need an Observability Readiness Score</h3><p>Organizations already measure:</p><ul><li>Code Coverage</li><li>Deployment Frequency</li><li>Security</li><li>MTTR</li><li>Test Automation</li></ul><p>But very few measure whether their systems generate enough runtime telemetry to support intelligent engineering decisions.</p><p>This is where the <strong>Observability Readiness Score (ORS)</strong> comes in.</p><p>Instead of asking:</p><blockquote><em>“Do we have logs?”</em></blockquote><p>ORS asks:</p><blockquote><strong><em>“Can our runtime telemetry support accurate AI-powered impact analysis?”</em></strong></blockquote><p>A practical ORS measures whether a system provides sufficient runtime evidence through:</p><ul><li>Structured logging</li><li>Correlation IDs</li><li>Distributed tracing</li><li>Metrics</li><li>Database visibility</li><li>Messaging visibility</li><li>Runtime context</li><li>Automatic dependency discovery</li></ul><p>The higher the score, the greater the confidence AI has in its runtime analysis.</p><h3>AI-Powered Impact Analysis: The Complete Picture</h3><pre>AI-Powered Impact Analysis</pre><pre>                     Developer Changes Code<br>                              │<br>        ┌─────────────────────┼─────────────────────┐<br>        │                     │                     │<br>        ▼                     ▼                     ▼<br> Static Code           Runtime Evidence       Business Context<br>   Analysis              (Observability)         (Risk)<br>(Potential Impact)      (Actual Impact)      (Importance)<br>        │                     │                     │<br>        │                     │                     │<br> Source Code          Logs • Traces • Metrics    Customer Usage<br> Dependencies         Kubernetes Events          Revenue<br> Call Graphs          Grafana Metrics            Critical Journeys<br> Interfaces           Sumo Logic                Feature Flags<br> API Contracts        Database Queries          SLA<br> Configurations       Kafka Topics              Incident History<br>        │                     │                     │<br>        └─────────────────────┼─────────────────────┘<br>                              ▼<br>                     AI Correlation Engine<br>                              │<br>                              ▼<br>                 Intelligent Impact Analysis<br>                              │<br>      ┌──────────────┬──────────────┬──────────────┬──────────────┐<br>      ▼              ▼              ▼              ▼<br> Blast Radius   Regression     Risk Score     Confidence<br>                Recommendation                 (ORS)</pre><p>Static analysis answers:</p><blockquote><strong><em>What could be affected?</em></strong></blockquote><p>Runtime analysis answers:</p><blockquote><strong><em>What is actually affected?</em></strong></blockquote><p>Business context answers:</p><blockquote><strong><em>What matters most to the business?</em></strong></blockquote><p>AI brings all three together to deliver intelligent, prioritized, and explainable impact analysis.</p><h3>Final Thoughts</h3><p>The future of impact analysis isn’t static analysis.</p><p>It isn’t runtime analysis either.</p><p>It’s the intelligent combination of <strong>code understanding</strong>, <strong>runtime evidence</strong>, and <strong>business context</strong>.</p><p>Static analysis identifies every possible dependency.</p><p>Runtime analysis validates what actually happens in production.</p><p>Business context prioritizes what truly matters.</p><p>AI then correlates all three to produce a blast radius that is not only technically accurate but also operationally and commercially meaningful.</p><p>The quality of those AI recommendations, however, depends heavily on one thing:</p><p><strong>How observable your systems are.</strong></p><p>That’s why measuring observability readiness may soon become just as important as measuring code coverage or deployment frequency.</p><p>Because before AI can tell you what will be impacted…</p><p><strong>Your system must first give AI enough evidence to understand itself.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ee9c7719d1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>