Why can a broken policy interrupt an agent's work?
Why can a broken policy interrupt an agent’s work?
Why would a mistake in one policy affect the work an agent is supposed to do? For an IT team, the answer is as much about continuity as it is about security. Picture an agent that classifies maintenance requests and updates the appropriate record. A policy edit is made, and the update tool stops working. The tempting response is to broaden access. But perhaps no permission was removed at all: a rule cannot be parsed, or the decision cannot be recorded. This is an illustrative situation, not a report of a customer outage.
If the team’s only control is a document telling the model to perform authorised actions, this distinction is difficult to see. The model may still draft a plausible response and promise to update the record. Actual execution is a different event. The boundary between readable guidance and a call-time gate was the subject of our earlier article about policy documents. Here the question is what happens when that gate cannot make or retain a dependable decision.
Readable is not the same as executable
ADR-0005 in agentic-organization keeps human-readable policy and structured tool rules in the same Markdown body. It considered leaving policy in the prompt alone and using a separate general-purpose policy engine. Prompt-only guidance cannot reliably stop a particular call if the model interprets its instructions incorrectly. A separate engine is another authoring system to operate. Keeping an explicit rule beside its explanation makes review easier, but does not magically turn every sentence into a testable boundary.
The repository’s policy block contract is precise about what the engine will read. Closed fences marked policy, json or yaml can contain executable rules. A policy fence must yield a list, and each rule has a required shape. An unfinished fence or a malformed rule cannot be treated as harmless explanatory prose. The save API rejects problematic policy content. If problematic content was already stored, the runtime should not silently discard it and proceed as if the rule never existed. IT needs both checks: can colleagues understand the text, and can the service actually apply the executable portion?
The code in backend/services/policy_engine.py resolves the agent’s company, department chain and agent-specific policies, then evaluates the collected rules. Among valid matching rules, the last match wins. That order deserves tests whenever a general permission meets a narrower exception. If resolution fails, the code returns a fail-closed denial rather than inventing permission. Such behaviour has an operational cost. A broken shared policy can delay work for the agents to which it applies. Treat rule edits like production changes, not like a quiet adjustment to a document that nobody needs to test.
An unparseable stored block can deny decisions across its scope; a bad field in one rule may affect only calls reaching that rule. Not every fault stops every tool. A parent department’s policy can also reach its children. Check which agents and calls actually encounter the fault.
The audit write is part of the gate
The backend’s agent_runtime.policy_gate asks the policy engine for a decision before executing a matched skill. It then attempts to put the decision in the audit chain. An engine exception blocks the tool. An audit write failure also blocks it, even in dry_run or off. In this implementation, off skips rule evaluation; it does not make an unaudited tool call acceptable. The relevant backend tests cover an engine exception, a denied call, audit failures in different modes and a healthy call that runs once. This is a concrete boundary in code, not a claim that every activity on an employee’s own machine is controlled.
A clean matched deny or ask has different treatment. The default mode is dry_run, which records such decisions without enforcing them; enforce is needed to stop them. A fail-closed verdict for unresolved policy or malformed input can block in dry_run. These distinctions matter during an incident. “Policy denied this” may mean a deliberate enforcing rule, a rule the service could not read, or a decision that could not be written to the audit chain. Switching modes without identifying which one occurred may hide a symptom while leaving the cause untouched.
Allowing everything during an engine failure would bypass the promised boundary. Stopping everything has a cost too: legitimate work waits. ADR-0005 names wrong rules as an operational burden. ADR-0026 remains proposed, though its backend gate and tests show part of the intended enforcement today. Its wider client design has not thereby shipped.
One fault, several departments
A production group might temporarily return to manual maintenance records if its update tool is blocked. That is an organisational fallback to define, not a feature the product provides. Procurement might still compare quotes while order creation is held up. Finance might read a report but not send an instruction. HR might postpone a personnel record change. IT has to separate these impacts before trying to “fix the agent” by granting more capabilities. It should check the affected tool, the agent’s policy scope, the effective mode, whether the rule parses, and whether an audit decision can be stored.
Not all actions reach the broken rule; not all agents inherit it. A live session does not prove its policy can be resolved. ADR-0038 proposes separate “alive” and “policy ready” reporting, but remains proposed. Do not design an incident procedure around a screen that is not confirmed in your installation.
A practical rollout begins with an inventory of inherited policies. Test both legitimate and disallowed calls. In dry_run, look for unexpected allows before enabling enforce intentionally. Test malformed blocks and audit failure in a controlled environment. Decide who repairs a rule and how work continues meanwhile. A valid denial and an unavailable decision need different remedies.
The reason to make policy executable becomes clearer when the policy itself fails: a decision point is only useful if people know how it behaves under fault. ADR-0005 and the proposed ADR-0026 in agentic-organization provide a useful way to discuss both the tool boundary and its operational cost. Any team putting agents into ordinary work needs to plan not just the rule it wants on a good day, but how to recognise and repair the day that rule cannot be applied.
Verification note: This article was checked against ADR-0005 and ADR-0017, proposed ADR-0026 and ADR-0038, the policy block contract, backend/services/policy_engine.py, backend/services/agent_runtime.py and the backend gate tests. Department scenarios are illustrations; proposed features are not presented as deployed capabilities.