<?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 AI Automation Blueprint on Medium]]></title>
        <description><![CDATA[Stories by AI Automation Blueprint on Medium]]></description>
        <link>https://medium.com/@admin_19851?source=rss-c477c7a02af0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eNmDAnwVBvAPoaFjfQZjKg.png</url>
            <title>Stories by AI Automation Blueprint on Medium</title>
            <link>https://medium.com/@admin_19851?source=rss-c477c7a02af0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:20:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@admin_19851/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[When is cached data too old for your automation?]]></title>
            <link>https://medium.com/ai-automation-blueprint/when-is-cached-data-too-old-for-your-automation-436e09df7fc7?source=rss-c477c7a02af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/436e09df7fc7</guid>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[AI Automation Blueprint]]></dc:creator>
            <pubDate>Fri, 04 Dec 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-12-04T14:01:02.717Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jKSIL6FLXjGOl_BqLzzc6g.png" /><figcaption>AI-generated illustration for this guide. The person, dashboard and comparison cards are fictional.</figcaption></figure><p>At ten o’clock, a workshop has three seats left. At 10:08 somebody opens the events page. At 10:09 a different person tries to book the last three seats. Both requests ask the same question. Should they get the same answer?</p><p>For this fictional workshop, the events page can show a recently checked estimate. Checkout has to decide whether to make a promise. The difference gives us a way to choose a freshness window we can explain to the person running the class. I used AI assistance to draft and revise this article.</p><h3>Write the sentence your system is about to say</h3><p>“Three seats were available at ten” describes an observation. You can print it an hour later and it can still be true. “Three seats are yours” commits the business to something happening now. Even a very young cache entry cannot reserve a seat. Another buyer could have finished checking out while you were reading it.</p><p>Suppose the events page may reuse a count for ten minutes if it shows when that count was checked. At checkout, ask the reservation system to claim the requested quantity. Use its answer before promising a place. Ten minutes is an illustrative choice for this page. A workshop that usually sells out in seconds might omit the count altogether.</p><h3>Give the observation a birth time</h3><p>Keep the workshop ID, the observed count and the time of the observation together. If the source includes its own observation time, keep that separately from the time your workflow fetched the response. A report assembled at eight and downloaded at ten still contains the morning’s observations.</p><p>Follow the three-seat record. The source observes it at 10:00 and the workflow receives it at 10:01. At 10:08 the observation is eight minutes old. A visitor opening the page at 10:08 must leave its original timestamp alone. If every reader resets the clock, a popular page could keep yesterday’s number looking fresh all morning.</p><h3>Try the minute the rule expires</h3><p>Give a colleague two preview cases. If your rule permits reuse while the age is less than ten minutes, what should the page show at 10:09:59? What about 10:10:00? In the first case, the labeled observation is eligible. In the second, request a refresh. An inclusive comparison in one component and an exclusive one in another would make them disagree at the boundary.</p><p>If the source is an HTTP service, its response can carry its own caching instructions. Check those before you store or reuse it. The ten-minute page rule describes the workshop’s needs. It gives no permission to ignore a restriction from the source. <a href="https://www.rfc-editor.org/rfc/rfc9111.html">HTTP Caching, RFC 9111</a></p><h3>Write the failure message while the source is healthy</h3><p>At 10:11 the refresh times out. What does a visitor actually see? One workable answer is “Check availability at booking.” Remove the number. Keep the class description, start time and booking link. A single unavailable field needn’t turn a useful events page into an error screen.</p><p>Checkout needs a different failure branch. If a reservation request times out, those seats may already have been claimed. Look up the reservation by its request reference before offering to try again. Fetching a fresh seat count cannot tell you whose booking used them.</p><h3>Leave a receipt someone else can read</h3><p>For one page impression, record the source observation time, the decision time, the window and the output. A sample entry might read “10:11 decision, 10:00 count, ten-minute window expired, refresh unavailable, count hidden.” It answers the question a support colleague will actually get. Why did this visitor see a booking link when the previous visitor saw three seats?</p><p>Pick one field in your workflow and write down two things it helps you do. Then name an age at which you would still show the value to a reader but would hesitate to act on it. That hesitation is a good place to draw your first boundary.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=436e09df7fc7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-automation-blueprint/when-is-cached-data-too-old-for-your-automation-436e09df7fc7">When is cached data too old for your automation?</a> was originally published in <a href="https://medium.com/ai-automation-blueprint">AI Automation Blueprint</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to schedule a daily job across daylight saving time]]></title>
            <link>https://medium.com/ai-automation-blueprint/how-to-schedule-a-daily-job-across-daylight-saving-time-be83f1574d1b?source=rss-c477c7a02af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/be83f1574d1b</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[AI Automation Blueprint]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 14:01:03 GMT</pubDate>
            <atom:updated>2026-12-03T14:01:03.904Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A hand aligns a paper calendar beside a brass clock and a blurred laptop scheduling screen." src="https://cdn-images-1.medium.com/max/1024/1*XgqO-DBeKShQXdBQNUjsNA.png" /><figcaption>AI-generated illustration for this guide. The scheduling screen and calendar are illustrative.</figcaption></figure><p>Suppose your Saturday newsletter goes out at 9 a.m. in New York. Its receipt says 14:00 UTC. You copy that hour into a daily timer. On the Sunday the clocks spring forward, the newsletter arrives just as the kitchen clock strikes ten. The timer did exactly what you asked. Where did that extra hour come from?</p><p>There are two quite reasonable instructions hiding in “send daily.” One means wait 24 hours. The other means find tomorrow’s nine o’clock. This walkthrough follows a fictional newsletter with the second requirement, using four dated conversions checked against Windows Eastern time-zone rules. I used AI assistance to draft and revise this article.</p><h3>Write down which clock the reader cares about</h3><p>Imagine a New York editor promising a morning edition at nine. If she moves her laptop to Chicago, the promise to readers stays the same. Save the hour and minute, the days the edition runs, and the region America/New_York. The editor’s device zone belongs to the preview screen. It has no business quietly changing the publication rule.</p><p>Compare that with a sensor that must sample a tank every 24 hours. Its operator might happily accept an 8 a.m. reading one day and a 9 a.m. reading the next. Before you fix either schedule, ask which quantity needs to stay steady. For the newsletter, it’s the number on the reader’s clock.</p><h3>Resolve one local date at a time</h3><p>For the December 3 edition, build an aware datetime in the intended zone. Convert that occurrence to UTC when you pass it to a queue that expects an instant. Here is the small part of a Python implementation worth isolating for review.</p><pre>from datetime import date, datetime, time, timezone<br>from zoneinfo import ZoneInfo</pre><pre>zone = ZoneInfo(&quot;America/New_York&quot;)<br>issue = date(2026, 12, 3)<br>local = datetime.combine(issue, time(9, 0), tzinfo=zone)<br>print(local.astimezone(timezone.utc).isoformat())</pre><p>For this date the expected answer is 2026–12–03T14:00:00+00:00. Tomorrow, advance the issue date and resolve the next nine o’clock in New York. The previous queue receipt can tell you when yesterday’s issue was due. It cannot tell you what your editor promised for tomorrow.</p><h3>Four dates that catch a one-hour drift</h3><p>Use these as preview cases for a nine o’clock New York edition. They cover the evenings on which a fixed UTC timer can look perfectly sensible and the mornings on which it breaks the promise.</p><p>Saturday, March 13, 2027 → 14:00 UTC. Sunday, March 14 → 13:00 UTC.</p><p>Saturday, November 6, 2027 → 13:00 UTC. Sunday, November 7 → 14:00 UTC.</p><p>Read the pairs from the queue’s point of view. The March editions are 23 hours apart. The November editions are 25 hours apart. Both pairs keep the same local publication time. A test that insists on precisely 24 hours between issues would reject both correct schedules.</p><h3>Find the screen where the hour changes</h3><p>If the March 14 preview looks late, follow that single issue through three screens. In the editor, read the saved rule. In the queue, find the dated UTC instant. At the destination, read the time zone printed beside the preview. Keep the issue date visible throughout so you can tell which record you’re looking at.</p><p>If the editor says 09:00 America/New_York and the queue says 14:00 UTC on March 14, investigate the conversion. If the queue says 13:00 UTC and the destination also displays 13:00 on a screen labeled UTC, the instant is correct. Changing the queued hour just to make that screen say nine would introduce the error you came to fix.</p><h3>Give a missing zone an explicit outcome</h3><p>Python’s zoneinfo reads the system time-zone database or the first-party tzdata package. On installations without either source, loading the region can raise ZoneInfoNotFoundError. For a cross-platform deployment, declare the dependency your application needs and check that the actual worker can load the region before it accepts a schedule. <a href="https://docs.python.org/3/library/zoneinfo.html">Python’s zoneinfo documentation</a></p><p>For the newsletter, a useful failure message names the issue date and the unavailable zone and leaves the issue pending. Guessing UTC−5 might get a December issue out on time and leave a mistake waiting until March.</p><p>For your own next preview, hand a colleague the saved rule and one dated queue receipt. Ask them to tell you when a New York reader should see that edition. If they have to guess which clock either number belongs to, you’ve found the first field to fix.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be83f1574d1b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-automation-blueprint/how-to-schedule-a-daily-job-across-daylight-saving-time-be83f1574d1b">How to schedule a daily job across daylight saving time</a> was originally published in <a href="https://medium.com/ai-automation-blueprint">AI Automation Blueprint</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to stop an automated email batch after a send has started]]></title>
            <link>https://medium.com/ai-automation-blueprint/how-to-stop-an-automated-email-batch-after-a-send-has-started-b28e1a1a67ab?source=rss-c477c7a02af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b28e1a1a67ab</guid>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[AI Automation Blueprint]]></dc:creator>
            <pubDate>Wed, 02 Dec 2026 14:01:03 GMT</pubDate>
            <atom:updated>2026-12-02T14:01:03.118Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A fictional three-message batch stops after A is accepted and B loses its connection. C is skipped." src="https://cdn-images-1.medium.com/max/1024/1*N5PXCcKFycVULEsHLOrOow.png" /><figcaption>Original workflow diagram. Times and bookings are fictional.</figcaption></figure><p>The registration link in tomorrow’s workshop reminder points to last year’s form. You spot it just as the mail job starts. You press Stop. Three reminders were in the queue. Which people need a correction?</p><p>Imagine a small workshop with three bookings, A, B and C. We’ll follow one cancellation from the operator’s button to the sender’s records, then decide what to do about each booking. The run and its times are fictional. I used AI assistance to draft and revise this article.</p><h3>Give the Stop button a promise it can keep</h3><p>Write down what a click means before you wire it up. For this sender, the promise is simple: once the worker sees the stop request, it will claim no more bookings. A send already handed to the mail service may still complete. Keep tracking it. Someone looking at the dashboard needs to know whether the wrong link left the building.</p><p>That distinction changes the first message on the screen. “Stop requested at 10:02” is accurate immediately. “Batch stopped” has to wait for the worker to acknowledge the request. Even then, a stopped worker can leave one send unresolved. Microsoft’s description of cooperative cancellation makes the division of responsibility explicit: one component requests cancellation and each listener decides how to respond. <a href="https://learn.microsoft.com/en-us/dotnet/standard/threading/cancellation-in-managed-threads">Microsoft’s guide to cooperative cancellation</a></p><h3>Follow the three bookings through the stop</h3><p>At 10:00 the worker sends A. The mail service accepts the request and returns a receipt. Save that receipt against booking A. It establishes acceptance by the service. Whether the person opened the message is a different question.</p><p>At 10:01 the worker submits B. Its connection drops before a receipt comes back. The outgoing request may have reached the provider. Mark B “outcome unknown.” If your dashboard paints that row red and calls it “failed,” the next shift may reasonably assume it is safe to send again.</p><p>At 10:02 you press Stop. Before claiming C, the worker reads the batch state, sees the request and records that C was skipped. Now there are three different jobs for the operator. A may need a correction. B needs investigation. C still needs its first reminder, with the right link.</p><h3>Close the gap between checking and sending</h3><p>A check at the top of the job protects only its start. A worker can read “running,” spend a minute building a message, then hand it off after someone presses Stop. Put a second check at the point where the worker claims permission to send. For multiple workers, coordinate claims and cancellation through the same durable batch record. If a claim wins that race, show the item as in progress. If cancellation wins, decline the claim.</p><p>There is still a gap between your database and the mail service. A worker could crash just after sending B and just before saving the receipt. Write a stable reference for B before making the call. Use that reference to look up the attempt if the provider offers a searchable activity log. If the provider supports an idempotency key, consult its rules for key lifetime and matching requests. A label you invent in your own database cannot make a provider suppress duplicates. <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">AWS on retrying requests with side effects</a></p><h3>Give the next shift a usable handoff</h3><figure><img alt="A goes to correction review, B is held for lookup, and C can receive its first corrected reminder." src="https://cdn-images-1.medium.com/max/1024/1*41T7njvcVsNFrPzYQ5dMHg.png" /><figcaption>Original decision diagram for the workshop reminder example.</figcaption></figure><p>Imagine the note that reaches the person opening the workshop tomorrow: “Workshop reminders stopped. A accepted, B awaiting provider lookup, C skipped. Correct registration URL verified. Maya owns the follow-up.” They can act on that note without opening three inboxes or reading an entire run log.</p><p>For A, review the correction separately and send it only if appropriate. For B, inspect the provider’s activity using the original reference. If you find acceptance, treat B like A. If the provider can establish that it rejected B before accepting it, B can join C in a new, approved batch. An empty search result may simply mean the activity log is delayed. Leave B with an owner and a time to check again.</p><p>For C, use the corrected template. Keep the original batch closed so restarting a worker cannot wake up the old queue. Give the corrected batch its own reference and an explicit list of eligible bookings. The list should contain C even if B takes another hour to resolve.</p><h3>Rehearse the awkward case before connecting a real sender</h3><p>Use a fake mail service that records each booking it receives. In the first rehearsal, return a receipt for A. For B, record the request and deliberately withhold the response. Request cancellation while B is outstanding. The fake sender’s record should contain A and B. C should appear only in the worker’s skipped list.</p><p>Now restart the worker with the same saved batch. Inspect the fake sender again. If a second B appears, the restart path has mistaken uncertainty for permission to retry. If C appears, the stop request lived only in memory. Change the part that failed and rerun the exercise with the same three bookings.</p><p>The question worth putting next to the Stop button is the one you started with: who needs a correction? A good handoff lets you name A, explain the uncertainty around B, and send C the right link the first time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b28e1a1a67ab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-automation-blueprint/how-to-stop-an-automated-email-batch-after-a-send-has-started-b28e1a1a67ab">How to stop an automated email batch after a send has started</a> was originally published in <a href="https://medium.com/ai-automation-blueprint">AI Automation Blueprint</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Give a workflow a reference to a secret, not the secret itself]]></title>
            <link>https://medium.com/ai-automation-blueprint/give-a-workflow-a-reference-to-a-secret-not-the-secret-itself-48e439f31f77?source=rss-c477c7a02af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/48e439f31f77</guid>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[AI Automation Blueprint]]></dc:creator>
            <pubDate>Tue, 01 Dec 2026 14:01:05 GMT</pubDate>
            <atom:updated>2026-12-01T14:01:05.115Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A man studies a blurred workflow screen beside an open lockbox with a key in its door." src="https://cdn-images-1.medium.com/max/1024/1*Lsm8DlmJqcFzV6BYEw2QBQ.png" /><figcaption>Original AI-generated editorial photograph created for this article; the screen, person, and lockbox are illustrative and contain no real credentials.</figcaption></figure><p>A workflow may need a service token, password, or signing key to do its job. Putting the value directly in a prompt, script, or shared configuration makes it easy to copy into places where it does not belong. Keep the workflow plan separate from the credential it is allowed to use.</p><p>The security guidance is checked against OWASP’s Secrets Management Cheat Sheet; the workflow example is illustrative and is not a platform-specific setup guide. I used AI assistance to draft and revise this article.</p><h3>Put a reference in the plan</h3><p>A fictional workflow can name a secret reference such as `billing/report-reader` while leaving the credential itself in the organization’s approved secret store. The runner obtains the value through its authorized platform integration when the step needs it. The reference is not a secret, but access to the underlying value still needs a clear owner.</p><p>OWASP advises against hardcoding secrets in source and recommends managing their provisioning and lifecycle through an appropriate secrets-management system. The details vary by platform, so use that provider’s current setup instructions rather than assuming one pattern fits every workflow. <a href="https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet">OWASP: Secrets Management Cheat Sheet</a></p><h3>Limit which workflow can read it</h3><p>Give the runner access only to the credential it needs, for the task it performs. If the reference is missing or access is denied, fail with a clear, non-sensitive status and route the issue for review. Do not quietly fall back to a personal credential or place a token in a debug message.</p><p>Separate the non-secret settings — such as a report format or destination name — from secret values. A shared workflow file can then describe how a step runs without carrying the credential itself.</p><h3>Keep the lifecycle visible</h3><p>Record which workflow identity requested the secret, the reference name, and whether access succeeded, while avoiding the secret value in logs. Know who can rotate or revoke the credential and how a workflow owner will update the reference afterward.</p><p>OWASP describes creation, rotation, revocation, and expiration as parts of a secret’s lifecycle. The exact controls depend on the platform and the credential’s purpose, so agree on an owner and review path before enabling an automated connection.</p><h3>Make the failure safe</h3><p>If a secret cannot be retrieved, stop before the external action. Report a status such as “credential unavailable” without exposing configuration details. The person responsible can repair access through the approved channel.</p><p>A workflow should know which credential it may request and what to do when that request fails. It should never need to carry the secret in its own shared instructions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48e439f31f77" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-automation-blueprint/give-a-workflow-a-reference-to-a-secret-not-the-secret-itself-48e439f31f77">Give a workflow a reference to a secret, not the secret itself</a> was originally published in <a href="https://medium.com/ai-automation-blueprint">AI Automation Blueprint</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set a retention rule for automation logs before the first run]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/ai-automation-blueprint/set-a-retention-rule-for-automation-logs-before-the-first-run-ead30401609b?source=rss-c477c7a02af0------2"><img src="https://cdn-images-1.medium.com/max/1536/1*8jcuLTssc1d_c3AyX6lIOQ.png" width="1536"></a></p><p class="medium-feed-snippet">An automation can finish a job and still leave a pile of inputs, exports, temporary copies, and detailed run logs behind. Keeping&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/ai-automation-blueprint/set-a-retention-rule-for-automation-logs-before-the-first-run-ead30401609b?source=rss-c477c7a02af0------2">Continue reading on AI Automation Blueprint »</a></p></div>]]></description>
            <link>https://medium.com/ai-automation-blueprint/set-a-retention-rule-for-automation-logs-before-the-first-run-ead30401609b?source=rss-c477c7a02af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ead30401609b</guid>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[AI Automation Blueprint]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-11-30T14:01:02.343Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Keep an undo record before an automation edits a field]]></title>
            <link>https://medium.com/ai-automation-blueprint/keep-an-undo-record-before-an-automation-edits-a-field-44dbdbeec1fe?source=rss-c477c7a02af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/44dbdbeec1fe</guid>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[AI Automation Blueprint]]></dc:creator>
            <pubDate>Sun, 29 Nov 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-11-29T14:01:02.419Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Three colleagues review a paper change log beside a laptop with a blurred screen." src="https://cdn-images-1.medium.com/max/1024/1*Mxg0_8R50OGrfxPsL7Z4eg.png" /><figcaption>Original AI-generated editorial photograph made for this article; the screen and change log are illustrative, not a real system.</figcaption></figure><p>A workflow can make the change you asked for and still leave you stuck if it changes the wrong record or overwrites a value someone needed. Before an automation writes, decide what information would let a reviewer understand the change and, when the action is reversible, restore the prior value without guessing.</p><p>The sample records are fictional teaching examples, not a tested integration or production recommendation. I used AI assistance to draft and revise this article.</p><h3>Decide whether the action can be undone</h3><p>Start by classifying the proposed action. A field update may be reversible if you still have the prior value and can tell whether anyone changed it afterward. A sent message, deleted account, or external payment may not have a simple undo. Put actions with lasting consequences behind explicit human review instead of describing them as reversible.</p><h3>Save a small before-and-after record</h3><p>For a fictional task tracker, keep the record ID, run ID, field name, old value, proposed value, timestamp, and a short reason. A status change might read: task 184, status “waiting” to “ready,” run 73, reason “approved checklist complete.” The example is made up; choose fields that fit your own system.</p><p>Avoid copying secrets or full personal records into the change log. The point is to keep enough context for a reviewer to identify one edit and explain why it happened.</p><h3>Check before restoring</h3><p>An undo step should not blindly put back the old value. First check whether the current field still matches the value written by the automation. If a person has since changed it, stop and ask for review; restoring an older value could erase their newer decision.</p><p>For a batch, keep one change record per item and make the outcome visible: restored, already unchanged, conflict found, or needs review. A single “rollback complete” message can hide one item that did not return to its earlier state.</p><h3>Give the recovery path an owner</h3><p>Write down who reviews conflicts, where the change log lives, and when old records are removed. If a workflow cannot safely undo an action, say that plainly and record the escalation route before enabling it.</p><p>A useful undo record does not make every action reversible. It makes the boundary clear: what can be restored automatically, what needs a person, and what the workflow must never retry on its own.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44dbdbeec1fe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-automation-blueprint/keep-an-undo-record-before-an-automation-edits-a-field-44dbdbeec1fe">Keep an undo record before an automation edits a field</a> was originally published in <a href="https://medium.com/ai-automation-blueprint">AI Automation Blueprint</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When a webhook arrives twice, let the event ID do the remembering]]></title>
            <link>https://medium.com/ai-automation-blueprint/when-a-webhook-arrives-twice-let-the-event-id-do-the-remembering-8e609fd908ab?source=rss-c477c7a02af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e609fd908ab</guid>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[AI Automation Blueprint]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-11-28T14:01:02.123Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A person studies a laptop event log while holding a paper checklist." src="https://cdn-images-1.medium.com/max/1024/1*z4SNphb7lBjPaml_AwPdfw.png" /><figcaption>Original AI-generated editorial photograph. The screen and checklist are illustrative.</figcaption></figure><p>Imagine a receipt email goes out at 10:02. At 10:03 the same webhook arrives again. Your customer has bought one thing. How many receipts should land in their inbox? The answer is easy until you ask what the worker actually knows about the first send.</p><p>Walk one fictional order through a retry. You need two identifiers and a record that survives a restart. I used AI assistance to draft and revise this article.</p><h3>Identify the delivery and the promise</h3><p>Give the incoming event a name, say evt_A. Give the business action a different name, such as receipt for order 17. When evt_A turns up a second time, the receiver can find the first delivery. If a second event arrives with a different ID, the order number can still lead you back to the receipt. This matters because Stripe describes both repeated deliveries and distinct events concerning the same object. <a href="https://docs.stripe.com/webhooks#handle-duplicate-events">Stripe’s duplicate-event guidance</a></p><p>Choose the business key with care. One receipt per order is a plausible rule for this example. One email per customer would quietly swallow the receipt for their next purchase.</p><h3>Find the dangerous gap</h3><p>Suppose the first worker records evt_A, sends the message, and stops before recording the provider’s reply. The next worker sees a row marked “processing.” That row alone cannot tell you whether the email went out. Sending immediately risks a duplicate. Skipping immediately risks silence.</p><p>If the sender accepts an idempotency key, use the same receipt key on each attempt within its documented retention window. If the sender offers a lookup, reconcile its record with yours. Where neither option exists, mark the outcome unknown and send that one case to review. Creating a fresh key on retry defeats the protection.</p><h3>Give the next worker something to read</h3><p>A small ledger can carry the event ID, action key, state, and provider reference. Enforce uniqueness where workers claim the action so two simultaneous deliveries cannot both win a read-then-insert race. If you acknowledge an event after queuing work, make sure the queue has actually accepted it. <a href="https://docs.stripe.com/webhooks#handle-events-asynchronously">Stripe’s guidance on asynchronous handling</a></p><p>Keep the review record small. The next person needs the reference that locates the receipt, not a copy of a customer’s entire order in a log. <a href="https://cheatsheetseries.owasp.org/cheatsheets/Webhook_Security_Cheat_Sheet.html">OWASP’s webhook guidance</a></p><p>For a dry run, deliver the same sample event twice, then interrupt the worker just after the simulated sender accepts it. Inspect the ledger. Can another person tell which receipt needs checking and why? That second question catches a failure that a simple duplicate-delivery test can miss.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e609fd908ab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-automation-blueprint/when-a-webhook-arrives-twice-let-the-event-id-do-the-remembering-8e609fd908ab">When a webhook arrives twice, let the event ID do the remembering</a> was originally published in <a href="https://medium.com/ai-automation-blueprint">AI Automation Blueprint</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set a concurrency cap before automation launches parallel work]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/ai-automation-blueprint/set-a-concurrency-cap-before-automation-launches-parallel-work-2d33c7674627?source=rss-c477c7a02af0------2"><img src="https://cdn-images-1.medium.com/max/1536/1*WSWGIJKZLoQ49XvFmZZoxg.png" width="1536"></a></p><p class="medium-feed-snippet">Parallel work can shorten a queue, but it also changes how many actions happen at once. If several tasks touch the same shared destination&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/ai-automation-blueprint/set-a-concurrency-cap-before-automation-launches-parallel-work-2d33c7674627?source=rss-c477c7a02af0------2">Continue reading on AI Automation Blueprint »</a></p></div>]]></description>
            <link>https://medium.com/ai-automation-blueprint/set-a-concurrency-cap-before-automation-launches-parallel-work-2d33c7674627?source=rss-c477c7a02af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d33c7674627</guid>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[AI Automation Blueprint]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-11-27T14:01:02.563Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Keep a dry run from reaching the real sender]]></title>
            <link>https://medium.com/ai-automation-blueprint/keep-a-dry-run-from-reaching-the-real-sender-d5db2b37eac9?source=rss-c477c7a02af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5db2b37eac9</guid>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[AI Automation Blueprint]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-11-26T14:01:02.989Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A paper workflow diagram separates a preview lane from an approved action lane." src="https://cdn-images-1.medium.com/max/1024/1*7l3SeT7gAQjGfDGXuuK6xA.png" /><figcaption>Original AI-assisted illustration made for this article.</figcaption></figure><p>A preview is useful only when choosing preview cannot quietly reach the real sender. One small way to make the distinction visible is to branch on the mode before calling the function that performs the external action.</p><p>Disclosure: AI helped draft this article, its example, and original illustration. I checked the fictional preview and live paths locally with a fake sender; this does not connect to a service or prove production isolation.</p><h3>Return a preview as data</h3><p>A dry run can show what would be sent without pretending that anything changed. Keep its result labeled as a preview and return the proposed change for a person to inspect.</p><pre>def preview(change):<br>    return {&quot;mode&quot;: &quot;preview&quot;, &quot;proposed_change&quot;: change}<br></pre><pre>def live(change, sender):<br>    return sender(change)<br></pre><pre>def run(change, mode, sender):<br>    if mode == &quot;preview&quot;:<br>        return preview(change)<br>    if mode == &quot;live&quot;:<br>        return live(change, sender)<br>    raise ValueError(&quot;mode must be &#39;preview&#39; or &#39;live&#39;&quot;)</pre><h3>Put the branch before the action</h3><p>The order matters in this example: preview returns before live is called. Avoid a flow that sends first and then labels the result a dry run. The label should describe what happened, not what the operator hoped would happen.</p><h3>Use a fake sender to check the path</h3><p>A local check can supply a function that only records calls. For preview mode, confirm the result says “preview” and the fake sender has no recorded call. For live mode, confirm the example passes the proposed change to that fake function. These checks explain this small code sample; they do not exercise a real account or network service.</p><h3>Reject unknown modes</h3><p>A typo such as “preveiw” should not fall through to the live path. Raising an error keeps an unrecognized choice from being interpreted as permission to send. A real workflow may also need explicit operator approval and environment safeguards.</p><h3>Keep the claim narrow</h3><p>This example separates two branches in one function. It is not a security boundary: other code could call the sender directly, and a test cannot establish that every production path is safe. Use a preview to make a proposed change easier to review, then keep the actual action and its approval visible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5db2b37eac9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-automation-blueprint/keep-a-dry-run-from-reaching-the-real-sender-d5db2b37eac9">Keep a dry run from reaching the real sender</a> was originally published in <a href="https://medium.com/ai-automation-blueprint">AI Automation Blueprint</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A text value can be valid Python and still be the wrong status]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/ai-automation-blueprint/a-text-value-can-be-valid-python-and-still-be-the-wrong-status-b228375c19fd?source=rss-c477c7a02af0------2"><img src="https://cdn-images-1.medium.com/max/1600/1*yl6bwoAqpUC4-zQ8BdLwyQ.png" width="1600"></a></p><p class="medium-feed-snippet">A task arrives with a status of &#x201C;banana.&#x201D; It is text. It is not blank. It passes those two checks perfectly. Yet a workflow expecting&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/ai-automation-blueprint/a-text-value-can-be-valid-python-and-still-be-the-wrong-status-b228375c19fd?source=rss-c477c7a02af0------2">Continue reading on AI Automation Blueprint »</a></p></div>]]></description>
            <link>https://medium.com/ai-automation-blueprint/a-text-value-can-be-valid-python-and-still-be-the-wrong-status-b228375c19fd?source=rss-c477c7a02af0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b228375c19fd</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[AI Automation Blueprint]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-11-05T14:01:02.450Z</atom:updated>
        </item>
    </channel>
</rss>