Why must a procurement agent's workspace reconcile its state?
Why must a procurement agent’s workspace reconcile its state?
Why might an agent workspace show “running” when the agent is not actually running? The status badge can reflect a database record while the work itself lives in a separate container. When an operation fails between those two places, a single label hides two different accounts of what happened. For a procurement team trying to finish a supplier comparison, the question is not merely whether a server is available. It is whether the work has stopped, whether the files remain, and who can tell which state is real.
Imagine a buyer comparing several bids. The agent has a spreadsheet open in its workspace when someone requests suspension. The controller stops the container, but its reply never reaches the application. The interface may still say “running.” The opposite is also possible: the request leaves the application but never stops the container. If the buyer presses the button again, is that a retry of a completed operation or a new operation against a different state? This is an illustrative situation, not a customer story. Its purpose is to make the cost of an ambiguous transition visible.
A gap between two state records
Accepted ADR-0018 in agentic-organization defines a lifecycle for a server workspace associated with each person. The main application does not get direct access to the container runtime. Instead it calls a separate workspace-controller through a WorkspaceRuntime interface. That separation matters: granting the main API access to the container runtime would make an API compromise much more consequential. But separation also means that changing a database row and changing a container are not one indivisible operation.
The repository contains both the application’s workspace state and a controller endpoint that can report container status. backend/services/workspace_runtime.py includes a client method for querying that status. It also fails closed with a 503 when no runtime has been configured. None of this implies that a background process continuously compares the two accounts and repairs disagreements. Our earlier workspace lifecycle article distinguished disconnecting from suspending. The narrower question here is what to trust when the outcome of a suspension request is uncertain.
ADR-0024 names the unfinished part explicitly. Controller locks are local to a single process, while the database transition spans a call to that process without an operation ID or generation number. The decision is to run one controller process for now. It also calls for per-workspace operation IDs, conditional updates on the database row, and a reconciliation job comparing database state with container state. Those last safeguards remain open in the ADR. A documented decision is not the same thing as a recovery mechanism already running in every installation.
Why not just wait longer?
ADR-0024 records a narrower fix that has been implemented. The helper operation times out before the controller call, and the controller call times out before its backend caller gives up. This reduces one kind of lost-reply problem: a caller abandoning a request while the controller is still working. It cannot prevent a network interruption, a process restart or a later database update from failing. Better timeout ordering reduces uncertainty; it does not reconcile state after uncertainty has happened.
One tempting alternative would be to remove the separate controller and let the API operate the container runtime directly. ADR-0018 rejects that approach because it weakens the security boundary around the host. Another tempting approach is to retry every request that appears to fail. Yet “I did not receive a reply” does not mean “the operation did not occur.” A reliable retry needs to know which workspace, intended transition and version it belongs to. The proposed operation ID and conditional update make those facts identifiable. They should not be mistaken for guarantees already present in the current code.
For a buyer, the practical distinction is easy to miss. A suspended workspace can keep its files on a volume while the computation that was reading them has ended. Under ADR-0018, resuming starts a fresh session on the retained volumes. It does not resurrect the old running process at the exact point where it stopped. “Your spreadsheet is still there” and “your analysis is still running” are different promises. There is another open limit alongside reconciliation: the optional idle-suspension code in backend/services/workspaces.py currently looks at file activity, not whether an agent turn or a scheduled flow is in progress. A long-running analysis could be treated as idle even if its work is not finished.
The same badge has different costs across departments
A production supervisor reading a shift handover needs to know whether the report was actually generated. In procurement, preserving a bid comparison file does not mean the comparison was completed. Finance may have a month-end worksheet on disk without having a validated result. HR needs to think about revoking access when an employee’s workspace is closed. IT must be able to distinguish a database claim from an observation of the container itself when supporting any of these teams. These are possible organisational consequences, not claims that the product ships department-specific workflows for each case.
A sensible first exercise is a small table of failure cases. If the stop request receives no answer, which status does an operator check? If the database says running and the container says stopped, what should the person see? If the request is sent again, how will the team tell an old result from a new attempt? How should the interface explain that files survived while an active process did not? Today it would be misleading to say that the code provides complete automatic answers to these questions. The useful outcome of the exercise is an operating rule for observing transitions and handling disagreements, not just a more polished status badge.
This also changes what “available” ought to mean in a conversation about agent adoption. A team may have a working controller and still need to document who responds to an inconsistent state, who may retry a transition, and what evidence is required before telling a buyer the analysis is complete. When an error crosses an application and a controller, neither a green interface badge nor a timeout message is a substitute for checking the underlying operation. That distinction is particularly important when a bid deadline makes a plausible but incomplete file look like a finished deliverable.
A dependable procurement workspace is more than a container that starts: its interrupted state changes must be detectable. ADR-0018 and ADR-0024 in agentic-organization put the controller boundary and the still-open reconciliation work side by side. If your organisation wants agents to hold real files and ongoing work, a useful question is not simply “is the workspace running?” but “who notices when two systems answer differently?”
Verification note: This article was checked against ADR-0018, ADR-0024, backend/services/workspace_runtime.py, backend/services/workspaces.py and workspace-controller/app.py in the agentic-organization repository. Operation IDs and automatic reconciliation are not presented as implemented features.