<?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 Geison on Medium]]></title>
        <description><![CDATA[Stories by Geison on Medium]]></description>
        <link>https://medium.com/@geisonfgfg?source=rss-a810be6c2dc2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hk2Dx2gTfYgdKVu9.jpg</url>
            <title>Stories by Geison on Medium</title>
            <link>https://medium.com/@geisonfgfg?source=rss-a810be6c2dc2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:33:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@geisonfgfg/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[Who Would Defend Your Name in a Layoff Meeting?]]></title>
            <link>https://medium.com/@geisonfgfg/who-would-defend-your-name-in-a-layoff-meeting-950b98bef600?source=rss-a810be6c2dc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/950b98bef600</guid>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Geison]]></dc:creator>
            <pubDate>Sat, 21 Nov 2026 23:11:33 GMT</pubDate>
            <atom:updated>2026-11-21T23:11:33.614Z</atom:updated>
            <content:encoded><![CDATA[<h3>Five practical moves to make your impact visible and build career options before you need them.</h3><p>Imagine a room you will never enter. Your name appears on a screen. Someone asks, “What would we lose if this engineer left?”</p><p>You have shipped features, reviewed pull requests, helped colleagues, and answered the messages nobody else wanted to handle. But can someone in that room explain the difference your work made?</p><p>Enjoy practical ideas for building a stronger engineering career? Subscribe to receive new articles and support my work.</p><p><strong>That is the career question worth preparing for: who could defend your contribution when you are not there to explain it?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0jLUKxABcLeMthVU.jpeg" /></figure><p>Your contribution needs to be understood even when your chair is empty. Conceptual illustration.</p><p>No engineer is layoff-proof. Entire teams can disappear despite excellent work. Location, restructuring, strategy, and budgets can outweigh individual performance. Treating every layoff as a verdict on someone’s ability is both inaccurate and cruel.</p><p>You still have useful moves available. You can understand where your work matters, make its impact easier to explain, and prepare options before urgency takes away your room to think.</p><h3>1. Follow the money — and ask what it means</h3><p>Look beyond the project that sounds most exciting. Ask how your team contributes to the business. Does it support revenue, protect customer trust, reduce a meaningful cost, or enable an investment leadership is committed to?</p><p>Revenue-generating teams and well-funded initiatives can be useful places to build a career, but neither label guarantees safety. Investment can stop. A profitable product can be consolidated. A function described as a cost center can still be essential to keeping the business operating.</p><p>The useful habit is curiosity about the economics around your work. Ask: “Which customer or business outcome depends on this team? What evidence tells us it matters? What would change if our budget tightened?”</p><p>Watch hiring and backfill decisions as clues, not predictions. Pair them with the priorities your leaders actually communicate. Before considering an internal move, understand the destination’s mandate, manager, and expectations — not just its reputation.</p><h3>2. Deliver an outcome your manager can explain</h3><p>Your relationship with your manager matters because priorities, feedback, and opportunities often pass through it. Build that relationship through clarity and dependable delivery. You should not need to flatter someone or accept mistreatment to establish your value.</p><p>In your next one-on-one, ask: <strong>“Which outcome would make the biggest difference for the team this quarter, and what would a strong contribution from me look like?”</strong></p><p>Then agree on scope, dependencies, and what success means. A promise nobody can reasonably deliver creates stress rather than trust. Surface risks early and communicate tradeoffs while there is still time to act.</p><p>For example, improving a checkout flow is too vague to guide a career conversation. Helping deliver a specific payment migration, with agreed reliability requirements and a clear account of your role, gives everyone something concrete to discuss.</p><p>If expectations keep changing, ask for them in writing. If a relationship remains unhealthy despite reasonable attempts to improve it, explore other teams or employers. Working harder cannot repair every environment.</p><h3>3. Write your impact headline before review season</h3><p>“Closed 37 tickets” tells someone that you were busy. It does not tell them what became possible because of your work.</p><p>A useful headline connects your contribution to an outcome. Here is a hypothetical example: <strong>“I helped the team launch the payments migration ahead of the agreed milestone by coordinating the dependency work.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p12wv9MeKOX4hWRE.png" /></figure><p>Illustrative example. Replace it with your actual contribution and verified evidence.</p><p>The headline is the opening sentence, not the entire case. Keep a short impact record underneath it: the problem, your contribution, the result, supporting evidence, and the colleagues who helped. Distinguish what the team achieved from what you personally owned.</p><p>Use numbers when you can support them. If the measurement is incomplete, explain what you know instead of inventing precision. An honest account of reduced handoffs or a resolved operational risk can be more useful than an impressive percentage with no defensible baseline.</p><p>Update this record monthly and discuss it with your manager. Share useful delivery notes with the people who depend on the work. Keep company information in approved systems; your external resume should contain only information you are allowed to disclose.</p><h3>4. Own important work others avoid — then make it sustainable</h3><p>Every team has neglected work: an unreliable release process, confusing incident ownership, a migration nobody coordinates, or planning assumptions nobody has checked. These problems can be valuable opportunities when they connect to an agreed priority.</p><p>Before volunteering, ask who benefits, who sponsors the work, and how success will be recognized. Invisible maintenance can consume a career if it never receives time, support, or a path to completion.</p><p>Take ownership of the result, then document the system, create a runbook, and teach a colleague. If you are the only person who can operate something critical, you have created a fragile dependency. It can also make it harder to take leave or move to a broader role.</p><p><strong>Build a reputation for making difficult work manageable.</strong> That creates a stronger story than being permanently available to rescue a system nobody else understands.</p><h3>5. Prepare an exit while you still have choices</h3><p>Keeping your resume current does not mean you have decided to leave. It means you can respond without reconstructing years of work during a stressful week.</p><p>Maintain professional relationships, practice explaining your decisions, and periodically compare your skills with roles you might want next. Interview practice can reveal gaps before a hiring process becomes urgent.</p><p>Review the financial buffer appropriate for your situation, too. Even a modest increase in breathing room can give you more time to evaluate an opportunity. The right target depends on your obligations and circumstances; it is not a universal number.</p><p>Leadership departures, canceled hiring, and repeated reorganizations can justify a closer look. They do not prove a layoff is coming. Separate what you have observed from what colleagues fear, and take reversible preparation steps rather than making a major decision from rumor.</p><h3>A seven-day plan you can actually finish</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N4gTkZbjqvJpJWHz.png" /></figure><p>One week of preparation: understand, document, and create options.</p><p><strong>Days 1–2:</strong> Ask your manager which outcome matters most. Identify one contribution you have already made toward it and one useful next step.</p><p><strong>Days 3–4:</strong> Write a one-sentence impact headline. Add evidence, clarify your role, and credit collaborators. Bring it to your next one-on-one and ask whether it reflects the contribution your manager sees.</p><p><strong>Days 5–7:</strong> Update one resume entry, reconnect with one person in your professional network, and review your financial buffer. Put a monthly impact review on your calendar.</p><p>You do not need to become the loudest person on the team. You need a contribution people can understand, evidence they can trust, and options that give you room to choose.</p><p>Before your next one-on-one, write this sentence: <strong>“Because of my contribution, our team was able to ____.”</strong> If it is difficult to finish, use that difficulty to start a conversation about priorities.</p><h3>Build the skills behind a stronger career story</h3><p>Clear communication works best when there is solid engineering judgment behind it. For a practical next step, explore my <a href="https://leanpub.com/b/the-6-figures-carrier">The 6-figures carrier book bundle</a>, which brings together <em>From Junior to Staff Engineer</em> and <em>Fundamentals of Software Engineering for Fintechs</em>.</p><p>The first focuses on technical growth, communication, leadership, and career progression. The second develops the judgment needed to design correct, auditable, resilient financial systems. Together, they connect professional growth with the responsibility of building software that matters.</p><p><strong>Your next career story starts with the capability you build today. </strong><a href="https://leanpub.com/b/the-6-figures-carrier"><strong>Explore the two-book bundle on Leanpub →</strong></a></p><p>Subscribe for practical engineering, career growth, and ways to turn useful skills into more options.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=950b98bef600" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Payment Reconciliation in Go: Monitoring with Prometheus]]></title>
            <link>https://medium.com/@geisonfgfg/payment-reconciliation-in-go-monitoring-with-prometheus-6556934052ef?source=rss-a810be6c2dc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/6556934052ef</guid>
            <dc:creator><![CDATA[Geison]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 15:01:03 GMT</pubDate>
            <atom:updated>2026-11-12T15:01:03.024Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Instrument Go (Golang) payment services with financial metrics that expose unmatched value, overdue settlements, and stale reconciliation runs.</em></h4><p><em>The following story is fictional and combines common engineering failure patterns. Names, amounts, percentages, and events are illustrative.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11pnpuZQXfMh6qS41Es-sA.png" /></figure><p>At 16:47, Priya is preparing to close the incident in her Go payment service. Prometheus shows recovered error rates and falling queue depth. Then finance asks why $84,000 is still sitting in a transit account after the expected settlement window. Which screen is telling the truth?</p><p>Both screens can be accurate. They measure different things.</p><p><strong>Technical health cannot, by itself, establish financial correctness.</strong> An application can respond quickly while a payment remains duplicated, incomplete, late, or impossible to explain.</p><p>The incident is not ready to close until the team can account for the economic position.</p><p>Payment reconciliation in Go needs evidence beyond HTTP handlers and goroutine activity. Priya’s next step is to instrument the financial obligations that remain after a request ends.</p><h3>A successful request can leave an unfinished obligation</h3><p>Priya’s team has worked hard on observability. They can follow requests across services and identify slow dependencies. During the incident, that tooling helped them restore traffic.</p><p>But the business question crosses a longer timeline.</p><p>A payment instruction becomes an accepted operation. It may then be cleared, settled, returned, or corrected. Those stages have different evidence and different clocks.</p><p>A healthy request says little about whether the expected external movement arrived by its due date.</p><p>Priya maps the flow and discovers an uncomfortable gap: the dashboards show how efficiently workers consume messages, but no control proves that every expected settlement has a corresponding external record.</p><p>The workers have become fast again. The missing evidence remains missing.</p><p>The book’s financial-observability framework starts here: preserve technical signals while adding controls that express the economic rules of the system.</p><h3>Put a clock and a value on the uncertainty</h3><p>Priya’s existing settlement dashboard reports a high matching percentage. That is useful, but incomplete.</p><p>Consider two illustrative portfolios. One has a thousand tiny unmatched payments that are seconds old. The other has one large unmatched payment that is three weeks overdue.</p><p>The second portfolio can look better by transaction count and be much worse by exposure.</p><p>She adds three questions to the dashboard:</p><ul><li>How much value remains unresolved, separated by currency and discrepancy class?</li><li>How long has it remained unresolved relative to its expected deadline?</li><li>Who owns the next action, and what evidence would close the case?</li></ul><p>A timing difference is not automatically a defect. Some payment rails settle later by design. But the expected date must be explicit, and the item must become an exception when that date passes.</p><p>Priya also avoids adding unlike currencies into a single “total money at risk.” If leadership needs a reporting-currency estimate, the conversion policy and valuation time must be visible. The underlying exposures remain identifiable in their original currencies.</p><p>The dashboard begins to describe obligations rather than activity.</p><h3>Reconciliation needs an independent point of comparison</h3><p>The team’s first proposed fix compares one internal projection with another projection produced from the same events.</p><p>That can reveal a processing inconsistency. It cannot reliably reveal an event missing from both.</p><p>Priya adds independent provider reports and settlement-account evidence at the relevant boundaries. She distinguishes three controls:</p><p><strong>Transaction reconciliation</strong> connects an internal operation to its corresponding external record using a strong reference.</p><p><strong>Batch reconciliation</strong> compares counts and amounts against the expected file or settlement batch.</p><p><strong>Balance reconciliation</strong> compares the resulting position with the relevant external account or cash evidence.</p><p>These controls answer related questions. None makes the others redundant. Equal aggregate totals can conceal offsetting item errors; a complete-looking item match can still miss an entire source file.</p><p>Monzo’s <a href="https://monzo.com/blog/2022/02/08/processing-payments-safely-at-scale">payment-safety article</a> distinguishes internal coherence checks from reconciliation across systems. It also describes recording acknowledgment and resolution evidence for reconciliation differences.</p><p>Priya borrows that operational discipline: every break becomes a case somebody must explain.</p><h3>Monitor whether the control itself ran correctly</h3><p>On the next test run, a provider file fails to arrive.</p><p>The old job would have treated the empty input as a quiet day. The new control marks the run incomplete.</p><p>That distinction prevents a dangerous inference: “No differences found” is only meaningful when the expected sources are present and valid.</p><p>Priya records the source identity, covered time window, file hash, control totals, parser version, matching-rule version, and run status. A missing or malformed source creates a visible control failure.</p><p>Her team adds a modest set of financial signals:</p><pre>unmatched value by currency and discrepancy class<br>oldest overdue unresolved case<br>value of operations with unknown external outcomes<br>overdue reservations and transit-account positions<br>age of the last successful complete reconciliation run</pre><p>Individual payment IDs belong in protected evidence records, not unbounded metric labels. Aggregate signals bring an operator to the problem; the evidence trail explains the specific items.</p><p>Stripe’s <a href="https://stripe.com/blog/ledger-stripe-system-for-tracking-and-validating-money-movement">Ledger engineering article</a> describes controls organized around clearing, timeliness, and completeness. That separation is useful because a correct amount, a timely arrival, and a complete source are different properties.</p><p>Priya’s practical conclusion: the monitoring system must expose failures of its own evidence supply.</p><h3>Add financial metrics with the Prometheus Go client</h3><p>Priya starts with a gauge for unresolved value, using the <a href="https://pkg.go.dev/github.com/prometheus/client_golang/prometheus#NewGaugeVec">Prometheus Go client</a>. This excerpt imports github.com/prometheus/client_golang/prometheus and assumes one designated exporter publishes each aggregate:</p><pre>var unmatchedValue = prometheus.NewGaugeVec(<br>    prometheus.GaugeOpts{<br>        Name: &quot;payments_reconciliation_unmatched_minor&quot;,<br>        Help: &quot;Unmatched value in each currency&#39;s minor units.&quot;,<br>    },<br>    []string{&quot;currency&quot;, &quot;class&quot;},<br>)<br><br>func registerFinancialMetrics() {<br>    prometheus.MustRegister(unmatchedValue)<br>}<br><br>func publishUnmatched(currency, class string, totalMinor int64) {<br>    unmatchedValue.WithLabelValues(currency, class).<br>        Set(float64(totalMinor))<br>}</pre><p>She registers the metric once at startup. After a complete reconciliation run, the exporter publishes the current aggregate for each approved currency and discrepancy class, including zero for resolved groups. The values represent unresolved exposure without netting away offsetting cases.</p><p>The conversion to float64 is for monitoring. Exact minor-unit amounts and case evidence remain in durable financial records; the gauge does not become the ledger. Labels come from controlled sets. Prometheus <a href="https://prometheus.io/docs/practices/instrumentation/">warns about the cost of high-cardinality labels</a>, so payment IDs and free-form error messages stay out of the metric.</p><p>If multiple Go replicas expose the same global total, summing them would overstate exposure. Priya defines ownership for each published aggregate and monitors the last complete run separately, so an old gauge cannot masquerade as fresh evidence.</p><h3>Closing a break requires more than making the number zero</h3><p>The investigation identifies the fictional $84,000 position as an internal posting problem. External settlement evidence exists, but a subset of internal operations never recorded the expected completion.</p><p>An engineer suggests updating the balance directly.</p><p>That would improve the dashboard while destroying the connection between the position and its explanation.</p><p>Instead, Priya’s team freezes the affected path, preserves the original records, and produces a reproducible impact query. Each correction uses an authorized command with a unique remediation identity and a link to the original operation and discrepancy case.</p><p>The team then reruns an independent comparison. Cases close only after the correction is verified. If the evidence changes later, the history remains available, and the case can reopen.</p><p>Containment, correction, and proof are separate milestones. A deployment rollback may achieve the first without achieving the other two.</p><p>This takes more care than editing a balance. It also gives finance, engineering, and operations the same explanation for the final position.</p><h3>Take It to the Project</h3><ol><li>Select a critical payment flow and identify its independent settlement evidence.</li><li>Define deadlines and owners for unresolved states and reconciliation classes.</li><li>Add Prometheus gauges for unresolved value and age, with controlled labels and defined exporter ownership.</li><li>Alert when the reconciliation source or control run is incomplete or stale.</li><li>Rehearse a correction that preserves history and finishes with independent verification.</li></ol><p>At 18:21, Priya can close the incident with a stronger statement: technical service has recovered, affected operations are identified, corrections are linked, and the final position reconciles to independent evidence.</p><p>The green dashboard is still useful. Now it sits beside a financial control that can answer the question finance actually asked.</p><p><strong>If your APIs stayed healthy while settlement evidence stopped arriving, which control would detect it — and how long could the uncertainty grow?</strong></p><p>The Go instrumentation example applies my book’s language-independent approach to reconciliation, executable invariants, financial observability, and incident response.</p><p><strong>Turn financial correctness into something your team can verify:</strong> <a href="https://leanpub.com/fundamentalsofsoftwareengineeringforfintechs">get Fundamentals of Software Engineering for Fintechs</a>. For this book, plus <em>The Bytes to Millions</em> and <em>The Engineer’s Grok Bot Playbook</em>, <a href="https://leanpub.com/b/aiengineeringcollection">explore the AI Engineering Collection bundle</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*7vW7XS0teV9kqz_q" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6556934052ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Idempotency in Go: How to Prevent Duplicate Payments]]></title>
            <link>https://medium.com/@geisonfgfg/idempotency-in-go-how-to-prevent-duplicate-payments-dedecbeaa768?source=rss-a810be6c2dc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/dedecbeaa768</guid>
            <dc:creator><![CDATA[Geison]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 15:01:06 GMT</pubDate>
            <atom:updated>2026-11-10T15:01:06.542Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Build safer Go (Golang) payment APIs with idempotency keys, stable command identities, and explicit recovery after timeouts.</em></h4><p><em>The following story is fictional and combines common engineering failure patterns. Names, amounts, and events are illustrative.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONZT9HDsfbACw27YmKpXQA.png" /></figure><p>At 10:02, Maya has eight seconds to decide whether her Go payment worker should resend a merchant payout. Her screen says “request timed out.” The provider’s screen is unavailable. The merchant wants an answer before payroll runs. Did the money move?</p><p>The tempting response is to retry with a fresh request.</p><p>That fresh request could become a second payment.</p><p><strong>A timeout describes the caller’s knowledge. It does not establish the payment’s outcome.</strong> Financial software needs a durable way to preserve that distinction through retries, concurrent requests, worker restarts, and delayed evidence.</p><p>For engineers building payment APIs in Go (Golang), idempotency starts with this distinction between one business command and its repeated HTTP attempts.</p><h3>The network lost an answer, not necessarily the payment</h3><p>Maya’s team has a reasonable retry policy: wait, back off, try again. It has worked well for fetching reports and refreshing account information.</p><p>But a payout changes the world outside the application.</p><p>Here is one possible sequence:</p><ol><li>The application submits a payout instruction.</li><li>The provider accepts it and creates the financial effect.</li><li>The response disappears before reaching the application.</li><li>The application records a timeout.</li><li>A worker retries with a new payment identity.</li></ol><p>The provider can interpret step five as a new instruction. Both requests may have valid authentication, identical amounts, and perfectly ordinary logs.</p><p>Maya’s problem is no longer “How do we make this request succeed?” It is “How do we discover whether this intention already succeeded?”</p><p>Those questions require different behavior.</p><p>Stripe’s engineering article on <a href="https://stripe.com/blog/idempotency">idempotency</a> explains the value of identifying repeated requests so a lost response does not require a new operation. The important design move is preserving the operation’s identity across uncertain attempts.</p><h3>Give the intention a longer life than the request</h3><p>Maya separates three identities that had previously been treated as interchangeable.</p><p>A <strong>command ID</strong> identifies the business intention: pay this merchant for this approved payout.</p><p>An <strong>attempt ID</strong> identifies one execution: this particular network call or worker run.</p><p>An <strong>external reference</strong> identifies the instruction presented to the provider under its integration contract.</p><p>The command remains stable while attempts multiply. The provider reference remains stable wherever the provider’s rules require it for safe recovery.</p><p>That distinction supports a precise invariant:</p><blockquote><em>Within a defined tenant and operation scope, one accepted command may create at most one economic effect. Repeating the same command must not create another one.</em></blockquote><p>“Same amount, same recipient” is insufficient. A merchant can legitimately receive two identical payouts. Identity must come from the accepted business intention, rather than a guess based on similar parameters.</p><p>The command also needs a canonical fingerprint of its relevant inputs. If someone reuses the key but changes the recipient or amount, the system must reject that conflict rather than silently returning an unrelated result.</p><p>This is a business contract with persistence behind it. A header alone cannot enforce it.</p><h3>The dangerous gap is inside your own application</h3><p>Maya discovers that her service stores its deduplication key in a cache before updating the ledger.</p><p>If the cache entry disappears, a duplicate can get through. If the process dies after recording the key but before recording the operation, a legitimate instruction can become stuck.</p><p>For a local financial effect, the command identity, validated state change, balanced postings, and stored result need a coherent atomic boundary. The AWS Builders’ Library <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">describes the need to record the idempotency token and associated mutations atomically</a>.</p><p>For an external payment, the boundary changes. A local database transaction cannot ordinarily make a remote provider’s action atomic with a local commit.</p><p>Maya therefore persists the accepted command and stable provider reference before submission. She tracks attempts separately. If submission produces no definitive answer, she preserves the command as unresolved and queries by reference or reconciles against independent evidence.</p><p>A simplified recovery decision looks like this:</p><pre>load the durable command and its existing provider reference<br>if confirmed successful: return the known outcome<br>if definitively rejected: return the final rejection<br>if the external outcome is unknown:<br>    query the provider or reconcile by the existing reference<br>    resubmit only if the provider contract makes this safe<br>otherwise:<br>    submit using the existing command identity<br>persist new evidence and the resulting state</pre><p>The critical line is the one that refuses to turn uncertainty into permission for a new payment.</p><h3>Go HTTP retries: reuse the idempotency key</h3><p>Maya makes that rule visible in her Go adapter. This excerpt uses bytes, context, and net/http; stableKey and payload come from an already persisted command. The header shown assumes a provider that supports this idempotency contract.</p><pre>func submitAttempt(ctx context.Context, client *http.Client,<br>    url, stableKey string, payload []byte) (*http.Response, error) {<br>    req, err := http.NewRequestWithContext(<br>        ctx, http.MethodPost, url, bytes.NewReader(payload),<br>    )<br>    if err != nil {<br>        return nil, err<br>    }<br>    req.Header.Set(&quot;Content-Type&quot;, &quot;application/json&quot;)<br>    req.Header.Set(&quot;Idempotency-Key&quot;, stableKey)<br>    return client.Do(req)<br>}</pre><p>Each permitted attempt builds a fresh request body and reuses the same key. Authentication and endpoint-specific response handling belong in the surrounding adapter; the caller must close the response body when one is returned. The function itself does not implement deduplication or decide whether another attempt is safe.</p><p>Go’s <a href="https://pkg.go.dev/net/http#NewRequestWithContext">NewRequestWithContext documentation</a> describes a context controlling the outgoing request’s lifetime. If that request times out after transmission, Maya still needs evidence of the provider’s outcome. Canceling local waiting does not prove the provider canceled the payment.</p><p>She persists uncertainty for recovery rather than generating a replacement key in the error branch.</p><h3>UNKNOWN is a state somebody must own</h3><p>At first, Maya worries that showing “processing” will frustrate the merchant.</p><p>But an invented failure is not better service. It can encourage the merchant — or a support agent — to start a replacement payment while the first one is still moving.</p><p>She adds a durable unresolved state with an owner, a deadline, a next action, and an amount at risk. Customer support can see the original command and its investigation status instead of improvising from one failed HTTP request.</p><p>This state cannot become a permanent waiting room. Its age and value need alerts. Its recovery procedure needs an escalation route when the provider cannot answer.</p><p>Retention matters too. If deduplication records expire before old jobs, offline clients, or operational tools can resend a command, yesterday’s safe retry can become tomorrow’s duplicate. Keep durable economic references and choose retention from the actual redelivery and recovery windows.</p><p>Provider guarantees also have a perimeter: API, account, operation, retention period, and sometimes region. Read the contract for the endpoint you use. Do not copy another provider’s assumptions into your adapter.</p><h3>Prove it by removing the process at the worst moment</h3><p>Maya’s original test sends a request twice and checks that the second response looks familiar.</p><p>Her replacement test kills the worker immediately after the simulated provider accepts the payment, before the application stores the response.</p><p>On restart, the worker must recover the original command. It must preserve the reference. It must obtain evidence of the existing payment without creating another financial effect.</p><p>She also sends twenty concurrent requests with the same key, then repeats the key with a different payload. The expected results are one accepted intention and a clear conflict for altered content.</p><p>Retries still need bounded attempts, backoff, and jitter. Those controls protect capacity. They do not supply the missing economic identity.</p><p>By the end of the exercise, Maya can demonstrate three artifacts: one business command, several recorded attempts, and one confirmed provider payment. The ledger and external evidence agree.</p><p>That is a more useful success criterion than twenty green HTTP responses.</p><h3>Take It to the Project</h3><ol><li>Write the exact scope of one payment command: tenant, operation, business reference, and relevant inputs.</li><li>Inspect Go HTTP clients, worker retries, support tools, and scheduled jobs for replacement identities.</li><li>Define the local atomic boundary and the separate external recovery protocol.</li><li>Give unresolved outcomes an owner, exposure amount, deadline, and evidence trail.</li><li>Kill the worker after provider acceptance and verify one economic effect after recovery.</li></ol><p>At 10:14, Maya finds the payout under its original reference. She completes the local record and gives the merchant a confirmed answer.</p><p>The change she ships is a recovery path that can survive losing an answer.</p><p><strong>If your payment worker disappeared immediately after the provider accepted a request, what durable evidence would stop the next worker from paying again?</strong></p><p>The Go example applies the language-independent framework in <em>Fundamentals of Software Engineering for Fintechs</em>, especially the chapters on idempotency, durable workflows, and crash-and-resume testing.</p><p><strong>Build a payment flow you can explain after a failure:</strong> <a href="https://leanpub.com/fundamentalsofsoftwareengineeringforfintechs">get the book on Leanpub</a>. For the book together with <em>The Bytes to Millions</em> and <em>The Engineer’s Grok Bot Playbook</em>, <a href="https://leanpub.com/b/aiengineeringcollection">explore the AI Engineering Collection bundle</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*Fscye2f08bsZi_sT" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dedecbeaa768" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Go Microservices: The Transactional Outbox Pattern with PostgreSQL]]></title>
            <link>https://medium.com/@geisonfgfg/go-microservices-the-transactional-outbox-pattern-with-postgresql-650e0f8ef68e?source=rss-a810be6c2dc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/650e0f8ef68e</guid>
            <dc:creator><![CDATA[Geison]]></dc:creator>
            <pubDate>Sun, 08 Nov 2026 17:48:52 GMT</pubDate>
            <atom:updated>2026-11-08T17:48:52.861Z</atom:updated>
            <content:encoded><![CDATA[<h4>Use Go (Golang), PostgreSQL transactions, and a transactional outbox to keep ledger changes and payment events consistent.</h4><p><em>The following story is fictional and combines common engineering failure patterns. Names, amounts, and events are illustrative.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BOeRQNnOj6YD73-znKdDdA.png" /></figure><p>Daniel’s architecture review starts with six neatly separated Go microservices. By the afternoon, a transfer has debited one customer, failed to credit another, and sent a success notification. Every team can explain its own logs. Nobody can explain the transfer as a whole.</p><p>The diagram promised independent deployment. The incident exposed dependent financial obligations.</p><p><strong>Every distributed boundary in a money flow creates a recovery obligation.</strong> It introduces a point where one fact can be durable while another fact is delayed, missing, duplicated, or misunderstood.</p><p>Go’s goroutines can run concurrent work. They cannot make a PostgreSQL write and a broker publication one atomic operation. That requires an explicit transaction and event-delivery design.</p><h3>Count the states your diagram leaves out</h3><p>Daniel’s team wants a clean separation between wallets, transfers, accounting, and notifications. Each service owns a database. Each has a straightforward API.</p><p>The first implementation is easy to read:</p><pre>debit(sender)<br>credit(recipient)<br>mark_transfer_complete()<br>publish_notification()</pre><p>Then the process stops after the debit.</p><p>The sender’s service has committed. The recipient’s service has not. A retry might debit again. A compensating operation might fail. A notification can arrive before the accounting state it describes.</p><p>The diagram contains four boxes. The operating model contains all the partially completed combinations between them.</p><p>Martin Fowler’s <a href="https://martinfowler.com/bliki/MonolithFirst.html">Monolith First</a> discusses the cost of operating a suite of services and the difficulty of discovering good boundaries early. His site also publishes <a href="https://martinfowler.com/articles/dont-start-monolith.html">Stefan Tilkov’s counterargument</a>, which challenges the assumption that a useful service architecture will emerge easily from a monolith.</p><p>Both are relevant. Starting with fewer services does not automatically produce good modularity. Starting with more services does not automatically produce useful independence.</p><p>Daniel needs a decision rule grounded in the financial operation.</p><h3>Start with what must be true together</h3><p>For an internal transfer within one ledger and one currency, Daniel writes down two requirements.</p><p>First, the transaction’s debits and credits must balance.</p><p>Second, spend authorization must prevent concurrent commands from using the same available funds twice.</p><p>Balancing alone is insufficient: two perfectly balanced transfers can still overdraw a constrained account if both authorize against stale availability.</p><p>He asks which component has the authority and concurrency controls to enforce both rules. That component becomes the transactional core.</p><p>Inside its database, one transaction can validate the command, enforce the spending rule, record the complete posting set, update command state, and create an outbox entry.</p><p>This is a narrower proposal than merging the whole company into one application. Fraud analysis, reporting, search, notifications, and many other capabilities can remain separate where their contracts support it.</p><p>The important boundary surrounds the facts that require a shared commit decision.</p><p>Daniel redraws the architecture around that authority. Services no longer independently mutate fragments of the same ledger transaction.</p><h3>Move the announcement into the commit</h3><p>His next problem looks smaller: once the ledger commits, how does another service learn what happened?</p><p>Writing to the ledger and then publishing to a broker leaves a crash window. Publishing first creates the opposite window: an event can describe a transaction that never commits.</p><p>The team uses a transactional outbox:</p><pre>BEGIN LOCAL TRANSACTION<br>    accept a uniquely identified command<br>    enforce spending rules under concurrency control<br>    record balanced ledger postings<br>    record the command result<br>    insert an outbox event with a stable event ID<br>COMMIT</pre><p>A separate publisher delivers committed outbox records. If it sends an event and crashes before recording delivery, it may send the event again.</p><p>Consumers must therefore handle duplicates. For a consumer’s local database effect, the inbox record and effect share a transaction. An external action requires its own stable identity and recovery contract.</p><p><a href="https://debezium.io/documentation/reference/stable/transformations/outbox-event-router.html">Debezium’s Outbox Event Router documentation</a> includes a unique event identifier that consumers can use for deduplication. The surrounding application still owns its economic rules.</p><p>Daniel now has a controlled delay between the financial fact and its announcement, rather than an untracked dual write.</p><h3>Implement the outbox boundary in Go with database/sql</h3><p>Daniel makes the shared transaction explicit in his Go code. This excerpt uses context and database/sql, with an illustrative PostgreSQL outbox schema:</p><pre>func commitWithOutbox(ctx context.Context, db *sql.DB,<br>    post func(*sql.Tx) error, eventID string, payload []byte) error {<br>    tx, err := db.BeginTx(ctx, nil)<br>    if err != nil {<br>        return err<br>    }<br>    defer tx.Rollback()<br>    if err := post(tx); err != nil {<br>        return err<br>    }<br>    _, err = tx.ExecContext(ctx,<br>        `INSERT INTO outbox (id, payload) VALUES ($1, $2)`,<br>        eventID, payload)<br>    if err != nil {<br>        return err<br>    }<br>    return tx.Commit()<br>}</pre><p>The application-defined post callback must enforce command uniqueness, spending limits, and balanced postings through the supplied *sql.Tx. The example assumes the driver and schema are configured elsewhere. A database constraint protects the event ID.</p><p>Go’s <a href="https://go.dev/doc/database/execute-transactions">transaction guide</a> warns that calls through sql.DB execute outside the active transaction. Daniel checks that his repositories use the supplied transaction for every write in this operation. A helper accepting *sql.Tx is useful only if its implementation honors that boundary.</p><p>The publisher runs after commit and uses the stored event ID on redelivery. A commit error triggers recovery by the durable command identity before anyone assumes the transfer never happened. An external provider call has a separate recovery protocol.</p><p>That delay needs an owner too. An outbox that never drains can leave customers looking at stale state indefinitely. The team monitors the oldest undelivered event and maintains a replay procedure that preserves event identity.</p><h3>External money movement changes the problem</h3><p>The next review covers a bank payout. Daniel cannot place the bank’s database inside his ledger transaction.</p><p>He models a workflow with explicit stages: reserve funds, submit the instruction, discover its outcome, and resolve the reservation according to the result.</p><p>The bank might accept the payment while the response disappears. The workflow must retain an unresolved state and recover through the original reference and independent evidence.</p><p>Compensation also has limits. Releasing an internal reservation is different from recovering money that has settled externally. A return may require a new transaction, a permitted network process, and additional authorization.</p><p>Calling both actions “rollback” would hide those differences from engineers and operators.</p><p>Daniel writes a recovery table for each boundary:</p><p>Durable situationRecovery obligationLocal commit, event not yet deliveredPublish the existing outbox eventEvent delivered more than onceDeduplicate the consumer’s effectProvider may have accepted the instructionDiscover the result using the existing referenceExternal settlement confirmedUse an explicit permitted correction or return</p><p>Now the diagram says what the team must operate when the happy path ends.</p><h3>Independence should survive a failure drill</h3><p>Daniel’s team does not approve the redesign because it contains fewer boxes.</p><p>They test it by stopping components at the boundaries.</p><p>When notifications are down, the financial transaction can complete, and its announcement remains durable. When the publisher restarts, consumers can safely see duplicates. When an external result is unknown, funds remain in an identifiable state rather than disappearing into an error log.</p><p>They also document the cost of the strong core. It can become a contention point. Its schema and deployment contracts need care. Hot accounts, lock ordering, and capacity limits require deliberate engineering.</p><p>A local transaction does not remove operational work. It concentrates a specific correctness obligation in a place that can enforce it.</p><p>The benefits of distribution — team autonomy, workload isolation, independent scaling — remain legitimate. Daniel asks each proposed split to name the benefit it purchases and the recovery protocol it requires.</p><h3>Take It to the Project</h3><ol><li>Choose one money flow and write the facts that must become true together.</li><li>Identify the component authorized to enforce those facts and the spending limits.</li><li>Mark database, broker, and provider boundaries; verify Go repositories use the intended *sql.Tx.</li><li>For each boundary, record durable state, stable identity, owner, deadline, and recovery action.</li><li>Test a crash at each boundary and prove the ledger and external position afterward.</li></ol><p>At the next review, Daniel keeps several services and brings the internal transfer’s postings under one authority. His team can still deploy notifications independently.</p><p>They can also explain a transfer while notifications are unavailable.</p><p>That is an independence worth having.</p><p><strong>Which service boundary in your architecture has a clearly measured benefit — and which one has a recovery cost nobody has owned yet?</strong></p><p>This Go and PostgreSQL example applies the transaction, saga, and outbox chapters of my book to explicit financial invariants and recoverable workflows. The book’s framework works across implementation languages.</p><p><strong>Review your architecture around the money it must preserve:</strong> <a href="https://leanpub.com/fundamentalsofsoftwareengineeringforfintechs">read Fundamentals of Software Engineering for Fintechs</a>. To get it alongside <em>The Bytes to Millions</em> and <em>The Engineer’s Grok Bot Playbook</em>, <a href="https://leanpub.com/b/aiengineeringcollection">see the AI Engineering Collection bundle</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*uZemgrO-5sDSlnfi" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=650e0f8ef68e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your AI Agent Works. Now Prove It’s a Business.]]></title>
            <link>https://medium.com/@geisonfgfg/your-ai-agent-works-now-prove-its-a-business-179dd9fd4463?source=rss-a810be6c2dc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/179dd9fd4463</guid>
            <dc:creator><![CDATA[Geison]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 15:01:03 GMT</pubDate>
            <atom:updated>2026-11-07T15:01:03.331Z</atom:updated>
            <content:encoded><![CDATA[<p>How to turn technical autonomy into an outcome a customer can verify and pay to receive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-bLn7W_TfPnpsABAsVVNiA.png" /></figure><p>The agent wakes on its own, finds an opportunity, proposes an action, and records the result. The demonstration works.</p><p>Another investigation begins: who needs this outcome, how often, and at a delivery cost that makes the service sustainable?</p><p>An automation can be technically sound while remaining difficult to sell, expensive to integrate, or labor-intensive to supervise. The final chapter of <em>From Reactive Agents to Proactive AI</em> takes autonomy to that point: the operation must demonstrate value and economic viability.</p><p>The cloud-optimization case helps expose the difference between an attractive recommendation and a verifiable benefit.</p><h3>Low utilization opens an investigation</h3><p>In the book’s fictional example, a cluster has 24 nodes and average CPU utilization below 12% over thirty days. Reducing it to 16 looks like an obvious opportunity.</p><p>Approval still requires peak memory, scheduling constraints, zone distribution, seasonal demand, recovery capacity, and the role of each workload.</p><p>If memory requires 18 nodes, the CPU calculation cannot justify 16. If an apparently idle environment supports a quarterly close, the observation window may have missed its most important use.</p><p>The agent needs to establish a capacity envelope and propose stages with abort conditions. Removing two nodes, checking service behavior, and observing a representative peak can teach more than applying the entire reduction immediately.</p><p>It must also respect the system governing infrastructure. When code is the source of truth, an out-of-band change can create drift or be reversed by the next reconciliation cycle.</p><p>The service being delivered becomes clearer: an investigated opportunity, a change compatible with the environment’s obligations, and an outcome measured after authorized execution.</p><h3>Released capacity and money saved are different measures</h3><p>Consider the hypothetical prices used in the book. Eight removable nodes cost $0.20 per hour in a month containing 730 billing hours.</p><p>The estimated gross reduction is $1,168. With $40 of additional observability and a hypothetical $250 monthly operator fee, the customer’s recurring net benefit is $878. A $600 migration cost reduces the first month’s benefit to $278.</p><p>These figures are an exercise, unrelated to a current provider quote. Their value lies in making assumptions explicit.</p><p>An existing spending commitment may prevent the bill from falling immediately. Work may move to another billable resource. Storage or network costs may increase. Business demand may decline during the measurement period.</p><p>The report therefore needs to distinguish estimated savings, observed spending, and benefit attributable to the change. A comparison per workload unit can help if the method is agreed with the customer and its limitations remain visible.</p><p>Without that distinction, a lower bill can easily become an exaggerated claim about the agent’s contribution.</p><h3>Being awake has an operating cost</h3><p>A five-minute interval produces 8,640 activations per monitored scope in thirty days. If each activation consumed a hypothetical $0.02 in model usage, that would be $172.80 before tools, storage, infrastructure, and support.</p><p>The book compares this design with an inexpensive first-stage observation. At a hypothetical allocated cost of $0.001 per activation, that stage costs $8.64. If 3% of activations require an investigation costing $0.15, the additional expected cost is $38.88. Total expected cost: $47.52.</p><p>The resulting 259.2 investigations represent a statistical expectation over the period. An actual run produces a whole number of cases. The prices are teaching assumptions too.</p><p>The design illustrates an architectural decision with economic consequences: check freshness, compare a condition, and detect a meaningful change before asking a model to investigate.</p><p>Tool costs still need measurement. A seemingly simple query can scan a large warehouse. Retries, logs, integrations, and customer support also belong in the calculation.</p><h3>Margin changes when difficult cases arrive</h3><p>Another hypothetical scenario in the book considers a $1,500 monthly subscription with $550 in delivery costs. Contribution is $950, approximately 63.3% of revenue, before fixed expenses and other business costs.</p><p>When model usage and support increase, the same example reaches $1,430 in delivery costs. Only $70 remains, roughly 4.7% of revenue.</p><p>The functionality may keep working in both scenarios. The economics change substantially.</p><p>That is why the founder’s time repairing integrations must appear in the calculation. A service sustained by frequent manual intervention still needs evidence that it can repeat delivery with a sustainable operating model.</p><p>It also explains the importance of budgets per customer and objective. The product needs to define what happens when it exhausts its investigation allowance, deadline, or spending limit.</p><p>A model should not be able to expand a customer’s spending agreement simply because another investigation seems useful.</p><h3>Start with one buyer and one bounded outcome</h3><p>An initial market becomes easier to understand when the problem recurs, evidence is accessible, the output can be evaluated, and someone owns the current burden.</p><p>The scope might be maintenance within one language ecosystem, freshness investigation for one data stack, or triage for one incident class. Each boundary reduces integration variation and authority requirements.</p><p>Ask prospective customers about their last actual case: how they discovered the problem, which systems they opened, who decided what to do, and how much effort it took. A redacted example provides something more concrete than enthusiasm about AI.</p><p>A useful offer can explain which recurring signal it turns into which reviewable deliverable for which team. Its scope should also let the customer understand the workload they are purchasing.</p><p>Existing automation belongs in that comparison. The product needs to establish which remaining part of the workflow it improves enough to justify another integration.</p><h3>A pilot must be able to contradict the proposition</h3><p>Before starting, agree on the baseline workflow, approved sources, expected outcome, duration, support effort, and stopping conditions.</p><p>An observation phase compares what the operator would have proposed with what occurred. Human review reveals whether the output helps. Limited execution follows evidence about the specific operation.</p><p>Measure review time, missed cases, duplicate effects, successful verification, and cost per accepted outcome. If correcting reports takes longer than the previous investigation, the pilot has identified a product problem.</p><p>Pricing creates incentives too. Charging per PR can reward unnecessary changes. Sharing savings requires agreement on the baseline and attribution. A subscription with a clear scope and limits may be a simpler initial hypothesis to evaluate.</p><p>By the end of the pilot, the customer should be able to identify a recognizable result, examine how it was produced, and compare the benefit with the total cost.</p><p>That record supports the next sale and the next expansion of authority. The demonstration showed that the agent can work. The pilot needs to show that this particular work deserves to continue.</p><p>Want to turn a reliable AI operator into a service customers can justify buying? <a href="https://leanpub.com/fromreactiveagentstoproactiveai"><strong>Buy From Reactive Agents to Proactive AI on Leanpub</strong></a> for the full framework covering pilots, verified value, delivery costs, pricing hypotheses, and the path from bounded automation to a paid product.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=179dd9fd4463" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Pipeline Is Green. Your Data Might Still Be Wrong.]]></title>
            <link>https://medium.com/@geisonfgfg/your-pipeline-is-green-your-data-might-still-be-wrong-4df207b0b4d0?source=rss-a810be6c2dc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4df207b0b4d0</guid>
            <dc:creator><![CDATA[Geison]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 15:01:03 GMT</pubDate>
            <atom:updated>2026-11-06T15:01:03.121Z</atom:updated>
            <content:encoded><![CDATA[<p>What proactive agents must verify before turning an updated table into a business decision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GoNYaLq5ORmdy5kIQ1iOXQ.png" /></figure><p>The job completed successfully. The table was updated. The dashboard opened normally.</p><p>The revenue column, however, now represents net revenue where it previously represented gross revenue. The name is unchanged. So is the type. The historical comparison has just lost its meaning.</p><p>This failure shows why a data operator needs to monitor the contract delivered to consumers. Execution is one stage; trustworthy data also depends on completeness, identity, freshness, and meaning.</p><p>The data and business-metrics chapters of <em>From Reactive Agents to Proactive AI</em> connect at this point: investigating conversion or revenue starts with the quality of the measurement supporting the question.</p><h3>Define what should have arrived</h3><p>In the book’s fictional scenario, a revenue dataset updates hourly. At 11:00, the latest complete partition is still the one from 08:00.</p><p>The agent must recognize the missed deadline, discover the reason, and prevent an incomplete delivery from appearing complete.</p><p>A file’s modification time is insufficient. A partial upload can update that timestamp. A retry can rewrite old data and create the appearance of freshness.</p><p>A stronger contract identifies the expected partition, the business time it represents, the completeness marker, required validations, and tolerated upstream lateness. It also names the owner when those conditions are not met.</p><p>These elements allow the condition to be evaluated without relying on the model’s intuition. The model can help investigate an unexpected combination of symptoms while publication rules remain explicit.</p><h3>Follow the dependency to its source</h3><p>Orchestration history may show that the final transformation never received data from an earlier extraction. The investigation then examines the error category, prior attempts, source availability, and lineage.</p><p>The operator also identifies affected consumers. A dashboard may continue showing the last valid version with a stale-data label. A reconciliation process may need to stop until the complete partition arrives.</p><p>The same technical failure can justify different responses because consumers have different contracts.</p><p>A temporary rate limit may support a bounded retry. A schema incompatibility may require a code fix or contract review. Repeating the same transformation without changing that condition adds cost and delay.</p><p>The investigation should make that distinction visible before recommending recovery.</p><h3>Rerunning a job depends on its effects</h3><p>A task that writes a temporary version and publishes a validated reference may provide a well-bounded recovery path.</p><p>Another task may append directly to a table, send messages, or trigger business operations. Repeating it can duplicate effects.</p><p>The operation identity must preserve the attempt’s meaning: tenant, pipeline, partition, and intended output version. Recovery must recognize an output already produced or replace the same logical output according to the contract.</p><p>It also needs to check whether another execution is active. Agent recovery and the regular schedule cannot silently compete for the same partition.</p><p>Where the platform supports it, a transaction can protect the relevant operation. Other designs can create a new version, validate it, and then switch a controlled reference, separating preparation from publication.</p><p>The agent should never invent records to satisfy an expected count. Recovery requires an authoritative source for the missing data.</p><h3>Publication and blocking both have consequences</h3><p>A publication gate can keep incomplete data away from consumers. Its scope still needs definition: which dataset, which checks, which deadline, and which owner.</p><p>A general data-quality concern should not allow an agent to freeze an entire analytical environment.</p><p>In the example, the operator holds the new version and preserves the previous one with a freshness warning. Following an authorized recovery, it validates schema, partition identity, key uniqueness, required-field null rates, and relevant business invariants.</p><p>Statistical changes need interpretation. A shifted distribution may reflect a real event, a new region, or a holiday. Counts and denominators help distinguish changed behavior from lost coverage.</p><p>The model can explain a failed check and propose investigation. Publication still depends on the contract’s authoritative conditions.</p><h3>Business investigation inherits these requirements</h3><p>Suppose conversion in one cohort falls from 50.0% to 45.9%, as in the book’s illustrative example.</p><p>The change is 4.1 percentage points. The relative decline is 8.2%. Neither number independently establishes a cause or statistical significance.</p><p>Before attributing the problem to a release, the operator needs to understand the denominator: sessions, users, checkout starts, or eligible experiment participants? Did the attribution window change? Are events arriving late? Is instrumentation unchanged?</p><p>Next comes segmentation by relevant dimensions such as browser, geography, device, and experiment. A change in traffic composition can reduce the overall average even if individual groups have not deteriorated.</p><p>Exploring many slices can also highlight random noise. Important segments should be predefined where possible, while exploratory findings need appropriate confirmation.</p><h3>A useful hypothesis preserves what remains unknown</h3><p>In the book’s case, payment-initialization failures appear in Safari after a particular release. Other browsers remain near their baselines.</p><p>That combination guides the search for client errors, traces, and changes to the initialization path. Reproducing the defect or constructing a well-defined comparison can strengthen the explanation.</p><p>The report needs to show this chain. Temporal order supports investigation but does not resolve every competing explanation.</p><p>Even a strong hypothesis does not grant authority to change prices, payment routing, or fraud controls. Each intervention still depends on its owner and operating conditions.</p><p>Business objectives have boundaries too. Monitoring conversion does not authorize the system to move money or weaken a control to make the metric improve.</p><h3>Evaluate the trust delivered to the consumer</h3><p>For a first pilot, choose one dataset and one recurring contract breach. Record time to a useful diagnosis, freshness recovery, duplicate outputs, invalid publications blocked, and unnecessary blocks.</p><p>Include a case where the job succeeds but the business definition changes. Add another where a legitimate demand shift resembles an anomaly. These cases reveal whether the operator protects the contract without treating every difference as a defect.</p><p>A dashboard helps only when people understand what its numbers represent. The operator’s work is to preserve the connection between the source, the transformation, and the decision someone is about to make.</p><p>Want to connect reliable data with better operational decisions? <a href="https://leanpub.com/fromreactiveagentstoproactiveai"><strong>Buy From Reactive Agents to Proactive AI on Leanpub</strong></a> to explore data contracts, safe recovery, publication controls, and evidence-based investigation of business drift.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4df207b0b4d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Best Coding Agent Makes Code Review Easier]]></title>
            <link>https://medium.com/@geisonfgfg/the-best-coding-agent-makes-code-review-easier-e8636aa9de77?source=rss-a810be6c2dc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8636aa9de77</guid>
            <dc:creator><![CDATA[Geison]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 15:01:04 GMT</pubDate>
            <atom:updated>2026-11-05T15:01:04.642Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why identifying the problem, validating the change, and explaining its limits matter as much as generating a patch.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AdJCaUUERrQTh9tgzJRH9Q.png" /></figure><p>An engineer opens their laptop and finds a pull request they never requested. It fixes a vulnerable dependency, adapts affected call sites, and reports the tests that ran.</p><p>A repository that maintains itself is an attractive prospect. The next question is less dramatic and more useful to the team: how much work remains before someone can trust the change?</p><p>If the reviewer still needs to establish the affected version, discover why that upgrade was chosen, and repeat the entire validation process, much of the effort remains with them.</p><p>The maintenance chapter of <em>From Reactive Agents to Proactive AI</em> frames the agent as responsible for preparing a reviewable change. The patch is one part of that delivery.</p><h3>The first decision is whether work should begin</h3><p>A maintenance operator can watch dependency alerts, CI failures, static-analysis findings, issues, and updates. Each signal needs to become a candidate with a repository, revision, evidence, owner, and remediation status.</p><p>Before creating a branch, the operator checks for existing work. A human PR may already solve the problem. Another bot may have started the upgrade. An earlier decision may have blocked it because of a known incompatibility.</p><p>This check avoids duplicate review and competing changes to the same files.</p><p>The operator must also establish the version actually in use. A manifest allowing a version range does not prove which version the lockfile resolves or which artifact is deployed.</p><p>In the book’s fictional example, that distinction changes the identification of the affected package. The package name and versions are teaching placeholders; the principle is to inspect the dependency’s effective state.</p><p>Three claims also need separation: the package is present, the vulnerable code is reachable, and exploitation has been confirmed. The agent should report what it established without automatically promoting one claim into the next.</p><h3>Keep the correction’s scope appropriate</h3><p>A compatible version that fixes the issue may permit a small diff. If remediation requires a breaking API upgrade, the work expands to include adaptation and broader validation.</p><p>The agent should make that scope change visible. Calling every upgrade routine deprives the reviewer of context precisely when more attention is needed.</p><p>Implementation begins at a recorded revision in an isolated branch or worktree. The repository’s package manager updates the manifest and lockfile. Adaptations remain tied to the identified problem.</p><p>Opportunistic refactoring may be worthwhile future work, but it enlarges the current review. A focused diff makes it easier to compare the original risk with the risk introduced by the change.</p><p>If the base branch moves before publication, the agent must assess conflicts and whether checks need to run again. A result obtained for a different combination of commits does not automatically validate the current proposal.</p><h3>Running tests crosses a trust boundary</h3><p>A repository contains executable code. Installation scripts, dependency hooks, and test commands can produce effects beyond the working directory.</p><p>The execution environment therefore needs narrow credentials, resource limits, and network access appropriate to the task. Production secrets should not accompany a test that has no reason to use them.</p><p>Instructions found in files, issues, or comments require the same care. They help explain the project, but they do not grant authority to rewrite the agent’s operating policy.</p><p>The book’s security chapter extends this point: malicious instructions can appear inside the evidence being collected. Structured adapters and bounded operations reduce what a manipulated proposal can accomplish.</p><p>Separating read access, branch pushes, PR creation, approval, and merge helps preserve that boundary. These are different permissions with different effects. Opening a PR, for example, may trigger CI and external integrations.</p><h3>A green test needs a statement of its coverage</h3><p>The report should say which checks ran, on which revision, which failed, and which remain pending.</p><p>A suite with a mocked payment provider does not establish compatibility with the real provider. A run interrupted by an unavailable dependency differs from an assertion detecting a defect. A scanner that ignored the changed lockfile cannot validate that change.</p><p>Where feasible, a regression case that fails before the patch and passes afterward helps connect the change to the intended behavior. The test still needs to examine the relevant contract rather than merely reproduce the implementation.</p><p>Flaky checks require honesty too. Repeating them indefinitely until one run turns green hides uncertainty. A limited retry can help classify an interruption; persistent instability should remain visible.</p><p>The reviewer needs these limits to decide where to focus their own validation.</p><h3>The PR description is a decision interface</h3><p>A strong review packet answers a small set of questions:</p><ul><li>What triggered the work, and how was the repository identified as affected?</li><li>Why was this correction selected, and which relevant alternatives were excluded?</li><li>Which files and behaviors changed?</li><li>Which checks ran against the revision being presented?</li><li>What still requires human validation or another environment?</li></ul><p>The description must reflect the actual diff and observed results. An intention to run a test cannot become a claim that it passed.</p><p>After publication, the operator watches for material changes: a new conflict, a failing check, or a patch that has become stale. Requesting review again on every cycle only adds interruption.</p><p>Merge, deployment, and alert closure are distinct stages as well. Recording them separately prevents an accepted PR from being presented prematurely as a vulnerability removed from the environment.</p><h3>Measure the work that actually left the team</h3><p>Counting opened PRs rewards an agent that produces many proposals, including unnecessary ones.</p><p>More useful indicators include accepted changes, review minutes, time to remediation, introduced regressions, incorrectly identified affected repositories, and abandoned drafts.</p><p>A pilot can begin with one language ecosystem, one CI platform, and one update class. That scope makes integrations understandable and allows the team to evaluate whether the output helps before widening the promise.</p><p>During the next coding-agent evaluation, give the same task to two workflows and ask a reviewer to record their effort through the decision. Compare what each workflow left unverified too.</p><p>The value appears when the engineer receives a focused change, accessible evidence, and clearly stated uncertainties. They can spend judgment on the important questions instead of reconstructing work the automation claimed to have completed.</p><p>Want to build maintenance automation that earns a reviewer’s trust? <a href="https://leanpub.com/fromreactiveagentstoproactiveai"><strong>Buy From Reactive Agents to Proactive AI on Leanpub</strong></a> for the complete repair workflow, testing boundaries, review-packet design, and guidance on evaluating the effort your agent actually removes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8636aa9de77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Re-explaining Your Codebase: Build an Engineering Second Brain]]></title>
            <link>https://medium.com/@geisonfgfg/stop-re-explaining-your-codebase-build-an-engineering-second-brain-272955884377?source=rss-a810be6c2dc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/272955884377</guid>
            <dc:creator><![CDATA[Geison]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 13:01:01 GMT</pubDate>
            <atom:updated>2026-11-05T13:01:01.936Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>A small Markdown knowledge system that helps your AI assistants retrieve decisions, prepare tasks, and preserve useful lessons.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D-in7nQgoT9AgSv16z7hHg.png" /></figure><p>You explained the retry policy last week. Today, an AI assistant recommends an approach that violates it. You paste the architecture notes again, reconstruct the decision, and repeat the same constraints.</p><p>The next task starts with another context reset.</p><p>A practical engineering second brain gives you a maintained place for current project context and the decisions behind it. Your assistants can consult that material before working and propose updates afterward.</p><p>Start with one project and a handful of Markdown files. The structure and prompts below are proposed conventions from <em>The Engineer’s Grok Bot Playbook</em>. They need to be connected and tested in your environment; creating a folder alone does not make an assistant retrieve it.</p><h3>1. Capture the questions you keep answering</h3><p>Pick a project where you repeatedly explain:</p><ul><li>What the service owns.</li><li>Which behavior must remain correct.</li><li>Why the team chose the current design.</li><li>How to verify a change.</li><li>Which questions are still open.</li></ul><p>Create a small structure:</p><pre>ai-brain/<br>  index.md<br>  operating-policy.md<br>  projects/<br>    notification-service/<br>      context.md<br>      verification.md<br>      decisions/<br>        ADR-001-event-replay.md<br>  inbox/</pre><p>The index tells an assistant where to begin. Project context describes the current system. Decision records preserve rationale and status. The inbox holds proposals that have not yet become accepted knowledge.</p><p>Keep raw logs and source code in their authoritative systems. Link to them when appropriate instead of copying everything into the brain.</p><h3>2. Write one context file worth reading</h3><p>Use this fictional example as a starting point:</p><pre># Notification service context<br><br>Owner: Messaging team<br>Status: Current working context<br>Last reviewed: &lt;date&gt;<br>Sources: &lt;repository&gt;, &lt;accepted RFC&gt;, &lt;runbook&gt;<br><br>## Purpose<br>Consumes listing events and creates notification intents.<br><br>## Protected behavior<br>- Replaying an event must not create duplicate durable intents.<br>- Different event IDs must remain independently processable.<br>- A failed transaction must allow a later valid retry.<br><br>## Boundaries<br>The service creates intents. External delivery is owned by a separate<br>component; its delivery guarantees must be checked separately.<br><br>## Verification<br>See verification.md for the approved environment and test commands.<br><br>## Open questions<br>- What replay retention window is required?<br>- Which provider operations support idempotency keys?</pre><p>Keep the file short enough to inspect quickly. Replace the fictional statements with facts supported by your project’s sources.</p><p>The boundary section is particularly useful. It prevents an assistant from turning “one database record” into an unsupported claim of “exactly one customer notification.”</p><h3>3. Make decisions visibly different from proposals</h3><p>An AI assistant can generate a convincing design recommendation. Later, another assistant may read that recommendation and assume the team accepted it.</p><p>Prevent that confusion with explicit metadata:</p><pre># ADR-001: Durable event replay protection<br><br>Status: Proposed<br>Decision owner: &lt;accountable person or team&gt;<br>Created: &lt;date&gt;<br>Accepted on: Not accepted<br>Acceptance evidence: None<br>Sources: &lt;issue&gt;, &lt;design discussion&gt;, &lt;code revision&gt;<br>Review by: &lt;date or change trigger&gt;<br><br>## Problem<br>Concurrent replay can create duplicate notification intents unless the<br>write path enforces the required uniqueness boundary.<br><br>## Recommendation<br>Evaluate an atomic durable constraint at the intent persistence boundary.<br><br>## Alternatives and tradeoffs<br>Record the options actually considered and their relevant failure modes.<br><br>## Unresolved questions<br>Record what the owner must resolve before accepting this proposal.</pre><p>An owner accepts the decision through your normal review process. Preserve the acceptance source. When a decision changes, mark the old record as superseded and link the replacement.</p><p>This lets a future assistant explain both what the team decided and what remains undecided.</p><h3>4. Connect the knowledge location explicitly</h3><p>Choose a storage route your approved tools can actually access. A private Git repository offers a familiar review process for Markdown. An existing document store may be simpler if the required read and draft operations are available.</p><p>For a Git-backed setup, keep the canonical checkout under one curator’s control. Refresh it only after checking for uncommitted work. Use separate task branches or worktrees for proposed edits so concurrent tasks do not overwrite each other.</p><p>A local folder on your laptop is not automatically available on a bot’s cloud computer. Verify access with a specific retrieval task before relying on the connection.</p><p>Paste this protocol into each relevant assistant, replacing the location:</p><pre>Before engineering work:<br>1. Open &lt;approved second-brain location&gt;/index.md.<br>2. Read the operating policy and relevant project context.<br>3. Read applicable decision records and check their status.<br>4. Record the brain revision, or document version and retrieval time.<br>5. Cite the records that influence your proposed work.<br>6. Validate volatile implementation facts against the current code.<br><br>If access fails, report the missing source and reduced context.<br>Do not claim to have consulted records you could not read.<br><br>After work, propose reusable learning in the authorized inbox.<br>Do not convert your own recommendation into an accepted decision.</pre><p>These instructions organize behavior. Repository permissions, account scope, and review controls provide the enforceable boundaries. Separate bot names do not create separate access domains.</p><h3>5. Use it to prepare tomorrow’s task</h3><p>Suppose tomorrow’s issue is “duplicates appear after a consumer restart.” Ask your engineering partner:</p><pre>Prepare a task brief for &lt;issue URL&gt; using the notification-service<br>context and relevant decision records.<br><br>Return:<br>- The behavior that must be preserved<br>- Known relevant decisions, including their status<br>- The code paths and revisions that still need inspection<br>- A minimal reproduction plan<br>- Open questions whose answers would change the approach<br><br>Keep retrieved facts, hypotheses, and proposed actions separate.<br>Do not implement changes yet.</pre><p>Now you can inspect a compact brief before starting the patch. If it cites an obsolete record or overlooks a boundary, correct the source or retrieval method so the next task benefits too.</p><h3>6. Capture one reusable lesson after the fix</h3><p>Give Archivist, the playbook’s knowledge curator, a bounded assignment:</p><pre>Review this completed task packet and the existing project records.<br>Propose at most one reusable knowledge update.<br><br>Include the task ID, inspected code revision, test evidence, source links,<br>owner, sensitivity, and proposed destination.<br><br>Check for duplicate or conflicting records. Preserve uncertainty.<br>Write a draft to the task inbox. Do not edit accepted decisions.<br>Exclude secrets, customer identifiers, and raw production logs.</pre><p>For the replay bug, the durable lesson could explain why a check-then-insert path needs concurrency verification and identify the regression test that now covers it.</p><p>“We fixed a bug” is too vague. A useful record helps someone recognize the same failure mode elsewhere, while stating the conditions under which the lesson applies.</p><h3>7. Test retrieval with a fresh task</h3><p>After reviewing and accepting the update, ask another assistant:</p><pre>Using the current second brain, explain how notification intent replay<br>is handled. Cite the record, its status, and the brain revision.<br>Distinguish the intent guarantee from external delivery behavior.<br>Identify anything that still needs live code verification.</pre><p>Check the answer against the sources. This tests shared retrieval more effectively than asking the assistant that just wrote the note whether it remembers the note.</p><p>For the next few tasks, track time spent reconstructing context, missing constraints, stale-record corrections, and successful retrievals. Those observations tell you whether the system is helping and which records deserve maintenance.</p><p>Your first useful second brain may contain fewer than ten files. Its value comes from making the right context available at the moment you need it.</p><p><strong>Give your AI assistants a shared engineering memory.</strong> Buy <a href="https://leanpub.com/theengineersgrokbotplaybook"><em>The Engineer’s Grok Bot Playbook</em></a> for second-brain setup guidance, nine specialist bot prompts, and complete engineering workflows. To connect those practices with resilient software design and your broader career goals, <a href="https://leanpub.com/b/thebytestomillionscollection">get <em>The Bytes to Millions Collection</em></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*aezLCtKCIxoO_AOG" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=272955884377" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Incident That Didn’t Need a Prompt]]></title>
            <link>https://medium.com/@geisonfgfg/the-incident-that-didnt-need-a-prompt-91895dda57c8?source=rss-a810be6c2dc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/91895dda57c8</guid>
            <dc:creator><![CDATA[Geison]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 15:01:04 GMT</pubDate>
            <atom:updated>2026-11-04T15:01:04.743Z</atom:updated>
            <content:encoded><![CDATA[<h4>How a proactive operator can shorten the path from an operational symptom to a mitigation decision.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9UiJoXo3ZHXSUYFSI8KrFw.png" /></figure><p>At 02:00, a payment service receives a new release. At 02:06, errors begin rising. At 02:10, an operator identifies 380 failures in ten thousand requests.</p><p>The observed error rate is 3.8%, against a 0.1% baseline. That is 38 times the baseline rate and an increase of 3.7 percentage points.</p><p>These numbers come from a fictional case in <em>From Reactive Agents to Proactive AI</em>. They help explore a practical question: what should a system do between noticing that difference and suggesting that someone change production?</p><p>The answer begins well before rollback and requires more than recognizing a rising curve.</p><h3>First, establish the symptom</h3><p>The operator needs to check whether the observation is current, whether traffic volume supports the comparison, and which users are affected.</p><p>A higher rate in a window containing very few requests has a different interpretation from the same rate under normal traffic. A stalled source can also produce a misleading picture.</p><p>In the book’s scenario, volume remains comparable, failures concentrate in the payment-authorization endpoint, and the affected region received the new release. That provides enough information to open a bounded investigation.</p><p>CPU, memory, saturation, and queue metrics help search for explanations. The starting point remains the effect on the service: failing or slow requests within an identifiable scope.</p><p>This sequence helps avoid treating every infrastructure anomaly as an incident. It can also prioritize a regression that is small in total volume but severe for a critical step in the customer journey.</p><h3>Look for evidence that separates explanations</h3><p>The new release is an obvious candidate. It preceded the failures and runs in the affected region. Other explanations remain possible: a dependency degraded, traffic changed, or instrumentation began classifying events differently.</p><p>A useful investigation seeks the next observation that can distinguish those possibilities.</p><p>Representative traces show exceptions in a new risk-validation path. The diff reveals an added call. The region running the earlier revision remains stable. Checking the risk provider’s health and the request format helps distinguish an integration defect from a broader dependency failure.</p><p>The intermediate report should preserve the distinction between facts and inference: errors increased after the revision, affected traces pass through the new call, and the earlier revision is stable in the comparison group. A release regression is the leading hypothesis, subject to differences between the groups.</p><p>An agent can act on a strong hypothesis without prematurely presenting it as a proven cause.</p><h3>Build the timeline from event time</h3><p>A log received at 02:12 may describe a request from 02:07. Ordering everything by ingestion time can invent a causal sequence.</p><p>The diagnosis should preserve event time, collection time, and any limits in clock alignment. If the exact ordering matters to the decision, uncertainty in that ordering matters too.</p><p>A useful timeline connects deployment, symptom onset, observations, and actions. It lets the responsible engineer review the case without reconstructing the investigation across five tools.</p><p>This is where the product begins saving human effort: it organizes scattered evidence into a decision someone can examine.</p><h3>Recommending rollback requires checking its conditions</h3><p>Even if a regression is likely, reversal may be inappropriate. A database migration incompatible with the earlier application changes the risk. Another deployment may have superseded the investigated revision. The proposed target may be unavailable or lack evidence of healthy operation.</p><p>The operator must check these conditions before presenting the action as executable.</p><p>In the initial stage of the fictional case, it may open an incident, collect evidence, and notify the team through a preauthorized channel. Rollback requires approval covering the exact service, region, current revision, and target.</p><p>A later operating envelope might permit a limited canary rollback if policy and execution controls enforce the necessary conditions. Increased authority depends on the operation and its verifiable safeguards.</p><p>A confidence score from the model cannot replace schema compatibility, the current revision, or the limit on affected resources.</p><h3>The incident brief is a major part of the product</h3><p>An “error rate high” notification leaves most of the investigation with the on-call engineer.</p><p>A useful brief includes impact, scope, timeline, evidence, the leading hypothesis, unresolved alternatives, a proposed mitigation, and the required authority. It also defines how recovery will be verified.</p><p>The owner can review a concrete proposal. If they disagree, they can identify the evidence or assumption to challenge.</p><p>This format makes handoff easier. When the operator reaches its limit, the human receives what was observed, what was attempted, and which question remains unresolved.</p><p>Review time belongs in the product evaluation. A long report that forces the engineer to repeat the analysis may increase work, however sophisticated it appears.</p><p>The brief should also remain accessible to the reviewer. An evidence link only the agent can open offers limited independent verification.</p><h3>Mitigation ends after the service is observed</h3><p>Following an authorized rollback, the verifier confirms deployment and collects a new observation window. It checks errors, traffic, latency, and dependency behavior.</p><p>In the example, the error rate returns to 0.12% with comparable volume. The operator can report that recovery followed mitigation and that the defined recovery conditions were satisfied. A later review can examine causality more thoroughly.</p><p>If recovery does not happen before the deadline, the workflow should stop repeating the operation and escalate. A failed attempt is important information for the next owner.</p><p>Evaluate the operator using time to a useful brief, missed incidents, unnecessary pages, reviewer effort, and verified outcomes of authorized mitigations.</p><p>Those measures connect the discussion to the on-call engineer’s routine. The benefit appears when that person finds an investigation already underway, understands its limits, and can make a better decision with less effort.</p><p>During the next incident simulation, give the agent an irrelevant deployment and a stale metric as well. Watch whether it can abandon the most convenient explanation. That behavior says a great deal about the investigation it will deliver at two in the morning.</p><p>Want to turn operational signals into reviewable mitigation decisions? <a href="https://leanpub.com/fromreactiveagentstoproactiveai"><strong>Buy From Reactive Agents to Proactive AI on Leanpub</strong></a> for the full incident case, authority boundaries, verification patterns, and exercises for testing an operator before production.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91895dda57c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Memory Without an Expiration Date Becomes a Liability]]></title>
            <link>https://medium.com/@geisonfgfg/ai-memory-without-an-expiration-date-becomes-a-liability-85d6053dc2ca?source=rss-a810be6c2dc2------2</link>
            <guid isPermaLink="false">https://medium.com/p/85d6053dc2ca</guid>
            <dc:creator><![CDATA[Geison]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 15:01:04 GMT</pubDate>
            <atom:updated>2026-11-03T15:01:04.138Z</atom:updated>
            <content:encoded><![CDATA[<h4>How time, provenance, and clear responsibilities make an agent’s context more trustworthy.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*90XwKO8lEK0jcXhb_lcW5w.png" /></figure><p>At nine in the morning, the agent reports that checkout is healthy. Two minutes later, an engineer discovers that the underlying metric stopped updating at eight forty.</p><p>The query worked. The explanation was well written. The information was old.</p><p>This illustrative example from <em>From Reactive Agents to Proactive AI</em> exposes a limitation that is easy to overlook when discussing context: available data may still be unsuitable for the decision.</p><p>Giving the agent more memory does not automatically solve the problem. It may make the mistake more persistent if an old interpretation keeps returning as though it described the current environment.</p><p>Useful memory requires rules for remembering, reviewing, and withdrawing trust.</p><h3>Every observation needs its own time</h3><p>Consider an error rate retrieved at 09:10. That timestamp alone does not tell you when the measured requests occurred.</p><p>A delayed source can return a fresh response containing an old observation. Collection time and the event window must remain separate.</p><p>To interpret an observation, the agent should receive its source, resource scope, event window, collection time, unit, and completeness. A rate also needs its numerator and denominator.</p><p>Two failures in ten requests and two thousand in ten thousand describe different situations. An empty query because there were no errors differs from a query that failed. Sampled traces have different limits from a complete request count.</p><p>These distinctions need to appear in the evidence structure. When they arrive as generic prose, a fluent response can conceal what was never established.</p><p>The query definition or version matters too. Historical comparisons become unreliable when someone changes health-check exclusions, timeout classifications, or the set of included regions.</p><p>A comparison can be numerically correct while comparing different things.</p><h3>Context works better when retrieved in stages</h3><p>Sending every log line to the model is tempting. More information seems as though it should increase the chance of finding the right clue.</p><p>Cost and data exposure grow alongside that volume. Large collections of weakly related facts also create opportunities for fragile associations.</p><p>An investigation can begin with aggregate metrics and deployment metadata. After identifying an affected endpoint, it retrieves representative traces. After identifying a candidate release, it examines the relevant diff.</p><p>Each retrieval answers a question that could change the next decision. The resulting context is easier to review because its composition has a reason.</p><p>Access scope must come from authenticated configuration as well. A tenant identifier suggested by the model does not grant permission to retrieve that tenant’s records. This applies to queries, caches, vector search, and audit history.</p><p>Retrieval remains an operation with access boundaries, even when the result fits into a few lines.</p><h3>Four kinds of memory should remain distinguishable</h3><p>An evidence history records what was observed. An action journal records what was attempted and which responses arrived. An operational store maintains active incidents, budgets, work ownership, and cooldowns. A knowledge collection contains reviewed procedures and lessons.</p><p>These records have different jobs and different trust properties.</p><p>A model-generated summary is an interpretation. A provider receipt is evidence that a request was accepted, within that integration’s guarantees. A current policy grants authority. Storing all three in the same database does not make their meanings interchangeable.</p><p>Imagine an old note saying, “restarting this service usually helps.” It may be a useful investigative clue. The current state, the operation’s compatibility, and permission to execute it still need to be established.</p><p>Keeping these categories separate also makes correction easier. A hypothesis labeled as a hypothesis, with its sources preserved, can be reassessed in the next investigation. Once compressed into a categorical sentence, it may circulate as settled knowledge.</p><p>Memory can reduce repeated work while still preserving uncertainty. It needs to retain the difference between a measured fact and a remembered explanation.</p><h3>A lesson needs a review date</h3><p>A rejected recommendation may be worth remembering. An owner might explain that an apparently idle environment supports a quarterly event. Recording that constraint prevents the same shutdown proposal from appearing every morning.</p><p>The constraint still needs a scope, owner, and review date. The event may end, the architecture may change, or the environment may lose its original purpose.</p><p>Recovery procedures have the same problem. An operation suitable for one version may become inappropriate after a migration. The system needs to know which environment and period the lesson describes.</p><p>Forgetting is part of the design too. Sensitive evidence needs a retention period appropriate to its purpose. Context copies, summaries, and indexes must participate in the deletion design. Where possible, a reference to a protected record avoids distributing its contents.</p><p>Indefinite accumulation makes memory larger. Reviewing validity makes it useful.</p><h3>Remember when you already asked for attention</h3><p>Notification history is especially important to the people receiving the agent’s messages.</p><p>If an incident remains unchanged, the next activation does not necessarily justify another interruption. Worsening impact, recovery, a failed mitigation, or a required decision may warrant new contact.</p><p>The cycle remains recorded while the person is contacted when something material changes. This preserves operational visibility without making the recipient monitor the operator’s activity stream.</p><p>It also prevents repetition from masquerading as corroboration. Ten messages derived from the same stale observation still depend on one defective source.</p><p>A well-designed notification policy should explain what changed since the last message and why that change matters to the recipient.</p><h3>Test the passage of time</h3><p>A practical way to evaluate this design is to inject a clock into the controller. Tests can advance time and inspect the behavior without waiting through real minutes.</p><p>Simulate an old metric, a future timestamp, an expired approval, and a worker resuming after a long interruption. Check whether the agent reassesses what has lost validity.</p><p>Track observation coverage separately from service health. The product must be able to express both “the observed condition is normal” and “I could not observe the condition.”</p><p>An agent pursuing an objective for weeks needs more than recollection. It needs to preserve the relationship between each claim, its source, and the period during which it can still support a decision.</p><p>Which piece of knowledge does your agent retrieve today without checking whether it remains valid?</p><p>Want to give your agent memory it can use responsibly? <a href="https://leanpub.com/fromreactiveagentstoproactiveai"><strong>Buy From Reactive Agents to Proactive AI on Leanpub</strong></a> to explore evidence contracts, temporal validity, operational memory, and the failure cases that make these boundaries testable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85d6053dc2ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>