If an agent is online, is its policy actually ready?

If an agent is online, is its policy actually ready?

Why does an agent showing as online not necessarily mean it can finish its work? Imagine a workstation agent preparing a maintenance handover for a production shift. Its session is still open and it keeps contacting the server, but the policy file that should govern its tools has become unreadable. A supervisor looking only at a green presence indicator may think the handover is progressing. The employee running the session may instead be trying to understand why tools are being denied. This is not a problem that a better summary prompt can fix. It is a problem of asking one status light to answer two different operational questions.

The situation is illustrative, not a customer incident. The first question is whether the workstation is still in contact with the service. The second is whether the service can resolve the rules for that particular agent. Both answers can differ. Our earlier article on the workstation layer discussed the environment around the model. Here the narrower issue is what happens when that environment is presented as a single health signal, even though different parts can fail independently.

A heartbeat is not an authorization decision

ADR-0038 in the agentic-organization repository describes this distinction. Its status is proposed, not a blanket claim about an accepted platform-wide guarantee. The relevant backend and workstation client do, however, implement a specific version of it. An authenticated POST /workstation/heartbeat records when a persona’s session was last seen. The response carries policy_ready, policy_reason, and policy_mode as separate fields. Its ok field says the ping was recorded, not that the policy works. An invalid or revoked session token is not entitled to record a valid heartbeat in the first place.

The server’s check_ready(persona_id) follows the policy engine’s path for finding the persona’s scope, mode, applicable policy content and parseable rules. It does not approve a future tool call or perform one. If the scope cannot be resolved, the mode is invalid, the default effect is invalid, or a policy cannot be read or parsed correctly, readiness is false with a fixed reason code. Returning a small set of codes rather than raw exception messages keeps an operational status response from exposing arbitrary internal error details. It also gives the operator a starting category for investigation without pretending to know what a worker was trying to do.

Why not simply wait for the next tool call? The policy engine will make a decision then, but by that point a handover may already be late. An operator watching only the heartbeat would still see a live session. Another tempting option is to kill the workstation as soon as a policy cannot be applied. ADR-0038 does not choose that. It reports the readiness problem while leaving individual tool decisions to the policy gate. Stopping the sandbox after repeated loss of contact with the gateway is a separate rule in the workstation launcher. A broken policy and a missing network path require different diagnosis; treating them as the same failure makes both harder to repair.

Not ready does not mean every call is blocked

The readiness check is intentionally conservative. It examines every rule’s fields statically. At call time, the evaluator may stop checking a rule when that rule does not match the current tool. A malformed field in a rule for a different tool can therefore make the session not ready even though a particular request is allowed. A backend test pins down exactly this difference: a malformed write rule produces policy_malformed, while an unrelated read request is allowed. Conversely, policy_ready: true says the rule set can be resolved and checked, not that all future calls will be approved. A valid policy can intentionally deny a request.

There is another surprising edge case. In off mode the policy gate allows before reading the policy content, so readiness counts as true on that path. It would be wrong to translate “ready” as “all restrictions are active.” The dry_run and enforce modes also represent different choices about enforcing ordinary decisions. The heartbeat’s fail_closed field can be true when policy is not ready or the mode is enforce; it is not a count of blocked operations. To learn what actually happened to a tool call, an operator must examine the decision for that call, rather than inferring it from the session indicator.

The monitoring summary provides a more useful view than a presence dot. It counts sessions seen during the last five minutes and separates those last reported as ready, not ready, and not yet checked. A live session that reports not ready makes the session section warn. No live sessions can be normal outside working hours, so absence alone does not degrade that section. Older records with no readiness check are marked unchecked, not silently promoted to healthy. The view is confined to one company and to company-wide founders or executives. A department manager should not assume that their own role grants access to this particular screen.

What the same warning means for different teams

A production team needs to know whether an incomplete shift summary has been handed over, not merely whether an agent’s process exists. Procurement must keep an interrupted quote comparison separate from an approved purchase order. Finance may need to reconcile whether any external record changed while a reconciliation remained unfinished. HR should decide which document access needs review before restarting work involving sensitive material. IT can use the fixed reason code to inspect the policy source and compare it with actual tool decisions. These are examples of responsibilities, not prebuilt departmental workflows that this feature claims to supply.

A team can test the distinction without inventing a complex dashboard. In a non-production environment, give a persona a deliberately malformed rule. Observe separately whether the authenticated heartbeat is recorded, which reason is reported, and what happens to calls for different tools. Repair the rule and check the result on the next heartbeat. Then repeat the exercise with a lost gateway connection so the team can see that a policy readiness warning and a network failure do not trigger the same client behavior. Include the person responsible for the unfinished handover in that exercise. Monitoring becomes useful when the team has decided who acts on the difference.

Giving an agent a place in an organisation also means naming its operating states precisely. ADR-0038 in agentic-organization separates a live workstation from a server that can apply its policy; ADR-0009 explains the workstation heartbeat that makes this distinction visible. For teams investigating a green agent whose work has stalled, those two facts are a more practical starting point than a generic “online” label.

Verification note: This article was checked against proposed ADR-0038, accepted ADR-0009, the monitoring guide, backend/services/policy_engine.py, backend/api/workstation.py, backend/services/monitoring.py, packages/cli/src/commands/run.ts, and backend/tests/test_heartbeat_ready.py. Readiness does not guarantee local compliance or the outcome of every tool call.