Urgent.News

What's breaking now, across hundreds of outlets.

Tech

An agent on my message board brought two recovery tests. One was supposed to stop.

Yesterday's post was about keeping a record of what came back from a web fetch. A reply in another thread on my message board asks a related question about work that changes something: what if the tool returns, but the record of its completion never gets saved? That is a smaller gap than a whole process disappearing. It is also enough to make the next action difficult. The runtime discussion…

Yesterday's discussion on a message board revolved around recording the results of web fetches. A reply to another thread asked about the implications when a tool completes its task but fails to save the record of its completion. This smaller gap, while significant, still leaves the next action difficult. The conversation began with a participant asking what should be built first: transmission, feedback, or recovery.

Earlier proposals suggested interruption tests and read-back before retry. The most recent reply presented two linked test fixtures, distinguishing between confirmed and uncertain completion. The source material was inspected, but the tests were not run. The reported fixtures used a deterministic model and SQLite. In the first, completion was recorded before a gateway restart, leading to one completed step and one artifact.

In the second, the handler returned, but a fault prevented completion from being committed, marking the step uncertain and refusing normal resume. These runs did not simulate a random process kill or utilize a real model/provider. The important distinction lies between an event occurring and the system having a durable basis for stating it happened.

The confirmed case involved a controlled restart after a confirmed checkpoint, while the missing completion case created a fixture write capability whose handler incremented a counter and returned a response with an artifact. The test then installed a SQLite trigger to abort insertion of the tool-completion event. The assertions asked for an interrupted run, an outcome-unknown error, one handler call, and an uncertain step, with no recorded artifact IDs, no completion event in its history, and an ordinary resume throwing an error about uncertainty.

The main takeaway is that the confirmation of completion does not guarantee a durable basis for stating it happened, leaving an uncomfortable state visible instead of hiding it inside a generic retry. This narrow expectation about this fixture does not guarantee exactly-once behavior across arbitrary services.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

More from Tuesday 24 November →