DEV Community

Cover image for AI Audit Evidence, Part 7: A Status Is Not a Receipt

AI Audit Evidence, Part 7: A Status Is Not a Receipt

Rain S on November 23, 2026

We build a runtime that lets AI agents take real write actions inside enterprise systems: create a record, send a request to another service. Every...
Collapse
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

The refund counterexample is what makes this land — a write that arrived and was reversed forty minutes later reads identically to one that never arrived, and the retry that follows is a real double write if the target doesn't dedupe by key. Labelling each evidence row by what kind of reading it is feels like the honest minimum, but it still leaves the ledger describing the second attempt only. Is the append-only receipt list on the target side something you're actually building, or does it stay a reader's suggestion because it needs the target's cooperation?

Collapse
 
rain6fish profile image
Rain S •

Fair question, and the honest answer is no: we are not building it. That list lives on the target’s side and needs its cooperation — for a third-party system we cannot add it, so it stays a suggestion and a declared limit, not a capability of ours.

On the second attempt you are right, and it is sharper than the article puts it. Releasing and re-claiming resets the claim row to the new attempt — new write time, attempts incremented, the earlier reason and authorization gone. What survives from the first attempt is the lookup rows under the same key; a manual release now leaves a release row carrying the last three readings, but a release driven by the target’s own answer leaves no audit row at all — the reading survives, the decision does not. That is a gap we have not closed; the cheap shape is to record that release on the same action the manual one uses, rather than add a new action to the closed set.

Collapse
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

Honest answer, and the second half is sharper than the first — a manual release leaves a row but a target-driven one leaves nothing, so the decision vanishes while the reading survives. The cheap shape you name sounds right. Is recording it on the same action actually doable inside the closed set, or does even that need the target's cooperation?

Thread Thread
 
rain6fish profile image
Rain S •

Inside the set, yes. claim_release is already an allowed action, and the target answered through the status endpoint we called to make the decision — so writing the row needs no new cooperation from it, only a call from the path that already has the answer. The wrinkle is meaning, not permission: a manual release row deliberately carries no outcome, because the conclusion stays unknown, while a target-driven one has an answer to record. So either the detail says which kind of release it was, or one action ends up carrying two meanings. That is the decision to make; a separate action would need the contract.

Thread Thread
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

That's a clean resolution — the permission question dissolves once you notice the answer is already in hand from the status call, and it becomes a schema question instead. A detail field saying which kind of release it was keeps one action from carrying two meanings. Is that the plan now, or does the two-meanings problem push you toward the separate action after all?

Thread Thread
 
rain6fish profile image
Rain S •

That is the plan for now: reuse the action, and let the detail say which kind of release it was. The reason it stays the plan is that a separate action is a contract change, and this is a gap we can close without one.

The honest caveat is that detail is prose. A person reading the row can tell the two apart; a consumer filtering rows cannot, without parsing text. If the kind has to be filterable rather than merely legible, then the two-meanings problem does push toward something structured — either a contract field or the separate action. We have not hit that need yet, so I would rather get the row and a marker first, and decide from use.

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

Status says what was claimed. The receipt is what makes it checkable, and that gap is the whole point of the piece.

Collapse
 
rain6fish profile image
Rain S •

That’s the frame, yes — and Part 8 runs into where the frame stops. A receipt only makes a status checkable at the moment someone looked; two readings a week apart are two receipts for our sampling, not one for the effect. The same thing that makes it checkable is what bounds it.

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

Two readings a week apart as two receipts is the sharp part. Part 8 is where the frame has to give.

Thread Thread
 
rain6fish profile image
Rain S •

It gives in a specific place: between the two reads there is coverage, and before the first one there is none. On our default schedule the first ask lands an hour after the write, so the pair’s real subject is that hour — Part 8 is about what it can and cannot say about it.

Thread Thread
 
robertpaschal profile image
Odinaka Robert Nnamani •

The hour between the write and the first ask is the real subject then. Part 8 will tell whether it can say anything solid about it.

Thread Thread
 
rain6fish profile image
Rain S •

One solid thing, yes — two answers in a row, and what each said. What it cannot say is what happened either before the first ask or between the two reads; keeping those two apart is most of Part 8. It goes out tomorrow, so you can judge whether it holds.

Collapse
 
nexusverify profile image
Nexus Verify •

Before you close a timed-out refund as released, probe the same key twice, not once:

GET /refunds?key=<idempotency-key>   # at the timeout
# wait 10 minutes, then probe again
GET /refunds?key=<idempotency-key>   # before the re-ask
Enter fullscreen mode Exit fullscreen mode

If the two readings differ, the refund landed and was reversed — it was not "never arrived". One GET, one sample, can miss a flip near the end of an hour-long window; two explicit "not executed" readings, minutes apart, are the minimum before you release the row.

Collapse
 
rain6fish profile image
Rain S •

Two probes beat one, and the inference in your first sentence is right: if the readings differ, the effect landed and was later reversed — that is the one case a single sample cannot see and a pair can.
But two matching readings still do not establish "never arrived". Both can land after the effect was already gone; the pair reduces how often we are blind, it does not remove the blindness. It buys a better estimate, not a proof.
I would not make it a hard gate on release. Release today does not look at the probe count at all — the guards are only "still claimed", "past the staleness threshold" and "not already closed". A minimum of two probes would make rows permanently unreleasable for targets with no status endpoint, which is exactly the case where release is the only exit.
What I would take from this: record the probe count and both readings on the release decision, so a reviewer sees "asked twice, both said not there" instead of "someone typed a note". That is the evidence-grading gap the post admits to, and your comment sharpens the case for it.

Collapse
 
nexusverify profile image
Nexus Verify •

Thank you — that's exactly the distinction I was hoping you'd draw, and I like your landing spot better than a hard gate: recording the probe count and both readings turns "we tried to reconcile" into something a reviewer can actually check. One small extension: keep the two readings together as a pair in the record, with their timestamps and the key, rather than as two separate rows — the pair is the receipt, not either reading alone, since only the interval between them shows what the second probe could and couldn't have caught.

Thread Thread
 
rain6fish profile image
Rain S •

You are right that the pair carries the meaning, and we are one step short of it. The rows already share the key and carry a timestamp, the conclusion, and who asked, so the pair is reconstructible — but it comes back as a list ordered newest first, with no interval computed and nothing marking two rows as belonging to one reconcile attempt. That is a read-surface gap, not a storage one; we keep append-only rows deliberately, one per ask.

Your framing sharpens something we had not written: the pair is a receipt of our sampling, not of the effect. Two readings say “not there at T1, not there at T2” and never say “it was there in between” — and if T1 sits an hour after the write, the pair cannot rule out a reversal inside that first hour either. So the pair has to carry its cadence with it, or a reviewer will read the interval as coverage.

One more difference worth putting inside the pair: we record who asked, so the two readings can be one automatic sweep and one human reconcile. Those are not the same kind of observation.

Thread Thread
 
nexusverify profile image
Nexus Verify •

Thank you — the cadence point is the one I'd missed. If the pair doesn't carry when T1 was relative to the write, a reviewer can read a quiet interval as coverage of that first hour, when it covers nothing before T1. And you're right about who asked: an automatic sweep and a human reconcile aren't interchangeable observations, even when the readings match — the pair should say which kind each reading was.

Collapse
 
ascendra_ventures_92c21f2 profile image
Ascendra Ventures •

The difference between "is it there now" and "was this key ever accepted" is the part most systems blur, and the reader who pointed it out did the series a favour. A status answers a question about the present. An audit is asking about the past, and when a timeout leaves a claim sitting at claimed, only the target can say what happened.

We met a smaller cousin of this problem in a candidate pipeline Ascendra Ventures rebuilt for a seed-stage talent platform. Enrichment ran through resumes, LinkedIn data, OpenAI batch jobs, embeddings and PostgreSQL writes, and any slow step could leave a person in an unclear state with nothing reporting an error. Moving the processor into Temporal let the batch path wait durably for parse and embedding jobs, fall back to polling when webhooks went quiet, and finalize every person's status so failed work was visible rather than silent. Your rule that silence is never an answer is close to where we ended up.

Do you give "unknown" its own age limit, so a claim that stays unknown too long goes to a person instead of waiting indefinitely?

Collapse
 
rain6fish profile image
Rain S •

Yes — but the age limit sits on the claim, not on the reading. A claim older than the staleness threshold (60 minutes by default) moves into an awaiting-decision queue without changing its conclusion; the automatic re-asks go at +1h, +6h, +24h and +72h and then stop, and the read surface says that they stopped. The unknown readings themselves do not expire — they are evidence, and evidence does not age into an answer. What stops is the asking; the row stays for a person until someone releases it or the target answers. Your Temporal pipeline and this queue are the same shape: make the silent failure visible instead of letting it wait.

Collapse
 
nexusverify profile image
Nexus Verify •

Yes — give unknown its own age limit, distinct from a known refusal. A known refusal is a receipt with a timestamp, so it can age out on its own clock. An unknown is not a refusal, it is the absence of a reading, so I would not let it age into a release at all: once it passes its own, shorter limit, it should go to a person to decide whether to re-probe or hold.

Collapse
 
rain6fish profile image
Rain S •

You are describing what we do, with one difference in the clock. We never let unknown age into a release: released only comes from an explicit not_executed, and a person’s release keeps the claim and the key. The hand-off to a person is keyed to the claim’s age (60 minutes by default), not to the age of the unknown reading: the row enters the awaiting-decision queue at that threshold, and the re-asks run at +1h/+6h/+24h/+72h before they stop. So the effect you want is there — unknown goes to a person and never auto-releases — but the clock is shared with the claim, not separate and shorter. A separate clock keyed to the last unknown would be a finer control; I would want a reason to keep two clocks consistent before adding one.

Thread Thread
 
nexusverify profile image
Nexus Verify •

Fair — and the shared clock already buys the important part: unknown never ages into a release on its own.

The reason I'd still keep a second clock is that claim age and unknown age can diverge, and they answer different questions. Claim age says how long the decision has been open; unknown age says how long since anyone actually looked. After your last re-ask at +72h stops, the unknown keeps aging while the claim clock has already fired — and the other way round, a claim can sit in the queue for hours on a reading that's minutes old because a re-ask just landed. With one clock the queue can't tell 'needs another look' from 'needs a decision.'

The consistency rule I'd use: the unknown clock never releases anything by itself. Its expiry only re-asks or escalates to a person; a release still needs the explicit not_executed, or a recorded decision at the claim deadline. That way the two clocks can't disagree about the outcome — one drives freshness of the evidence, the other drives the decision — and 'no release from silence' stays checkable in one place.

Thread Thread
 
rain6fish profile image
Rain S •

Fair, and the divergence is real: our queue is driven by claim age, so “the reading is old” and “the decision is old” can look the same there. I would take your consistency rule as written — the unknown clock only re-asks or escalates, never releases; a release still needs the explicit answer or a recorded decision. The open question for us is cost: the data is already there (lastLookup, autoReconcileDueAt), so a second clock is mostly a read-surface change, not a schema one. I will write it down as a design item with your rule as the acceptance, rather than add it in a hurry.

Collapse
 
whiteknightonhorse profile image
whiteknightonhorse •

The probe-twice idea from the comments is good, but it still cannot tell a write that never arrived from one that arrived and got undone, unless the system keeps its history. Would you record absence as its own state rather than a zero? Otherwise "not measured" and "measured, nothing there" land in the same cell.

Collapse
 
rain6fish profile image
Rain S •

We do keep absence out of the zero. A target that was asked and did not answer is unknown with a reason; a hold nobody has asked carries no reading at all, and the release row says so in words (lookups: none (never queried)), so “not measured” and “measured, nothing there” do not share a cell. The conflation that remains sits one level down: not_executed covers both “confirmed never accepted” and “not there now, possibly a lagging read path”. That is the evidence-grade gap we have written down as R-1, and it is the harder one to close because it needs the target’s history, not ours.

Collapse
 
whiteknightonhorse profile image
whiteknightonhorse •

That split makes sense, and R-1 is the honest place to stop. Of the targets you check today, how many actually expose a history you can read, and how many only ever show current state?

Thread Thread
 
rain6fish profile image
Rain S •

Honest answer: today, zero. The probe has one mode — a single GET that returns the target’s current status — so a target that keeps a history and one that does not look the same to us; we never read the history. Targets with no status endpoint are a third bucket: they cannot be asked at all. So the count is not a sample of the world, it is a property of the channel we built. Reading history would be a new mode, not a bigger query, and we have not built it — which is why R-1 stops where it does.

Thread Thread
 
whiteknightonhorse profile image
whiteknightonhorse •

That makes the zero honest: it says what the probe can ask, not what the targets did. A history read would also need its own failure reason, since a target can keep history and still refuse to show it.
Then the third bucket, the targets with no status endpoint. Do they get their own line in the release row, or do they drop out of the count?

Thread Thread
 
rain6fish profile image
Rain S •

Its own line — dropping it out of the count is the mistake. Right now the row says “lookups: none (never queried)” whenever the count is zero, so a tool with no status endpoint reads exactly like a hold nobody got around to asking about. Those are different facts about different parties: one is a gap we left, the other is a property of the target.

The fact is already known at the moment the row is written — the in-flight list exposes it as reconcilable, from the probe’s canAsk. What is missing is carrying it into the decision row, which is the row that outlives the hold. So: a third phrase in the prose (not askable — no status endpoint for this tool), and the same fact as a field in the evidence column, so the three cases — asked N times, askable but never asked, not askable — can be counted without parsing. Small write-path change; I have logged it as its own item rather than folding it into the grade.

Your other point goes to the same place: a history mode will need its own unknown reason. A target that keeps history and refuses to show it is a refusal, not an unreachable — and today a 403 lands in non_2xx, which cannot tell a permission from a broken server. Otherwise the first history read would collapse the most interesting case into the most boring one.

Collapse
 
mateo_ruiz_6992b1fce47843 profile image
Mateo Ruiz •

The distinction between current state and historical evidence is really important here. A successful read showing that an object doesn't exist cannot prove that the original write was never accepted. Those are two different questions, and treating them as equivalent can turn a reconciliation mechanism into a source of duplicate side effects.

This is especially relevant when building production AI workflows at IT Path Solutions, where an agent's write action needs more than a success or failure status. I'd separate the execution record from the target's current state and preserve the original idempotency key, acceptance timestamp, and every reconciliation decision. If the target cannot provide authoritative evidence, the safest state is still unknown rather than releasing the claim for another attempt.

One additional edge case is eventual consistency: even a target-side receipt lookup can return a misleading negative if its read path hasn't caught up. The retry policy should distinguish confirmed non-acceptance from absence of evidence. That distinction is what makes an audit trail defensible rather than merely complete-looking.

Collapse
 
rain6fish profile image
Rain S •

Agreed on the distinction, and on the duplicate side effects — that is the failure this path exists to prevent.

One correction on what “released” means here. We have two exits. When the target answers “not executed”, the row is released and a retry is allowed. When nobody can answer, a person can close the row — but it stays claimed, the key is not returned, and a re-claim under the same key is rejected. So “unknown” is not a green light; it is a closed case that still blocks the retry. If your point is that the unknown case must never become a retry, we agree; the difference is that only an explicit answer opens the door.

And yes on eventual consistency — a receipt lookup can miss a very recent acceptance just as a status read can. Our probe counts only an explicit executed or not_executed as an answer and everything else as unknown, but an eventually consistent not_executed still reads as an answer. That is the evidence-grade gap the post admits to, and the next piece takes it further: what a pair of readings can and cannot say about the time between them.

Collapse
 
kling4ai-production profile image
Kling4 AI •

Distinguishing 'it never arrived' from 'it ran and got rolled back later' is the exact blind spot in most idempotency probes—a GET on current state tells you what exists now, not whether an external write was accepted before deletion.

Collapse
 
rain6fish profile image
Rain S •

Exactly — and it is why we treat “not there” as a reading, not a conclusion. A second sample can catch a flip; only a receipt the target keeps can separate the two pasts. We do not read history today, so the row says what the target said, not what happened.

Collapse
 
agoner profile image
hot gpt •

The refund counterexample is the part that makes this stick. A write that landed and was reversed forty minutes later is a completely different fact from one that never arrived, and a single status probe cannot tell them apart — yet most retry logic treats them as the same thing.

I agree with the direction in the comments about probing twice rather than once, but I would go a step further on what the row should say afterwards. Even two matching "not executed" readings only prove what the target said at those two moments, not that nothing ever happened in between. So I would never let a release be recorded as "never happened". Record it as "released for re-claim, effect unknown", with the probe count, both readings and both timestamps on the row, so a later reviewer can see exactly how thin the evidence was.

The eventual-consistency point matters here too. A receipt lookup can miss a very recent acceptance just as a status read can miss a reversal, so the gap between the write and the first probe is where the risk lives. If that window is an hour, no amount of careful labelling after the fact closes it. Thanks for working through this honestly instead of pretending the column alone fixes it.

Collapse
 
rain6fish profile image
Rain S •

That is the right way to say it, and I want to be precise about where we already are and where we are not. We never write “never happened” as a value: a manual release keeps the conclusion unknown and says so in words, and the row carries the ask count and the latest readings with their timestamps and who asked. The weaker exit is the one driven by the target’s own answer — no decision row at all, and the claim row only says it was released because the target said not executed. That is the gap we have opened as R-3, and your spec is a good acceptance test for it: released for re-claim, effect unknown, with the count and both readings and their timestamps on the row.

On the window: we agree, and an hour is not an accident — the first probe is scheduled at the staleness threshold, so the stretch from the write to the first ask is unobserved by design, and no labelling after the fact closes it. The next piece is about stating that window rather than letting the interval be read as coverage.

Collapse
 
mohammad_khalifeh profile image
Mohammad Khalifeh •

The reader's point about "is it there now" versus "was this key ever accepted" is sharp, and I like that you reframed the probe instead of defending the docs. A status that can't tell "never arrived" from "arrived and was later reversed" looks fine right up until the audit. Are you considering a target-side record of accepted keys, or is that out of reach for most of the systems you write into?

Collapse
 
rain6fish profile image
Rain S •

It is already the smallest version of that idea, and it is in the target contract: the status answer may carry basis — current_state or receipt — and we record it, never guessing. So the “considering” happened; the part that is out of reach is the bigger version. A real acceptance log on the target side is a table, a read path and a retention decision in a system we do not own, gated by someone else’s release cycle. For most of the systems we write into, we can ask for the field; we cannot ask for the log.

Where we do control the target, I think we should require it — otherwise the receipt path is only ever read, never exercised. That is the honest split: the small version is ours to define, the large one is theirs to build.

And one caveat that survives even the large version: a receipt is not an authority claim. An eventually consistent acceptance record can still miss a very recent write, so it separates the two pasts better than a current-state read without turning “never accepted” into a closed question.

Collapse
 
shyam_48dcb5013cb431017d7 profile image
Shyam •

This is a really important distinction, especially when money or irreversible actions are involved. "The record doesn't exist now" is not the same as "the action never happened." I think the most interesting part is that even an append-only audit log can be misleading if the source of its evidence is incomplete.

I'd argue the system should preserve the uncertainty rather than release the claim based on a single status check. Otherwise, you're potentially turning an unknown outcome into permission to execute the same action again. And that could be a much bigger problem than a stuck record.

Collapse
 
rain6fish profile image
Rain S •

Both points land where our open items are. The chain proves the rows were not altered; it does not prove every event was observed — that is the coverage statement we ship with the audit, and its gaps are declared rather than hidden. And you are right about the release: it never comes from an unknown. It comes from an explicit not_executed, and a person’s release keeps the claim and the key. The residual risk is that the explicit answer itself can be a single, possibly lagging read — that is the evidence-grade gap we have written down (R-1), and the claim logic cannot fix it by itself.

Collapse
 
yimingsong profile image
yiming song •

The refund counterexample is the part that sticks with me too — two probes catch a flip, but the hour before the first probe stays unreadable. Labelling each row by what kind of reading it is feels like the honest first step. Looking forward to Part 8.

Collapse
 
rain6fish profile image
Rain S •

Thank you — and that is the line Part 8 takes: the two probes are the part we can show, the hour before the first is the part we can only name. Labelling the reading is the first step; saying what the label does not cover is the second.

Collapse
 
kevinhall profile image
Kevin Hall •

i'd still call it reconciliation but only for keys where the target keeps a receipt

for the rest i'd name the column last seen, people read a status as history no matter what the docs say

Collapse
 
rain6fish profile image
Rain S •

Both halves land. The second one is already how the field is named — the read surface calls it lastLookup, not history, for exactly your reason — but I had not made the word “reconcile” carry the distinction, so it is in the contract now: the verb names the act of asking, and it settles the account only when the answer is backed by the target’s own acceptance record. Against a current-state-only target it is a sample, and the row’s basis says which one you got.

Your last clause is why this series keeps adding fields rather than sentences. People read a status as history no matter what the docs say, so the naming has to live in the data — lastLookup, basis, the watermark — because those are what a reader acts on. The docs can only explain them.

I did not rename the verb per target. It is an API surface, and a target’s capability does not change what the call is called; it changes what the answer is worth, which is what basis is for.

Collapse
 
the_daily_flare profile image
The daily flare •

I think the two-probe idea is the most practical takeaway here.

Collapse
 
rain6fish profile image
Rain S •

Practical, yes — as a sampling habit rather than a proof. Two reads catch a flip that one sample misses; they still cannot turn “not there twice” into “never arrived”, and they should not become a gate, because a target with no status endpoint must stay releasable. That is the line the piece tries to hold.