Why should reading and closing a production record require different permission?

Why should reading and closing a production record require different permission?

If an agent may read a maintenance record, should it also be allowed to close it? A shift handover needs a clear account of outstanding faults. Closing a fault makes a different claim: that someone has checked the work and considers it finished. Both operations might live behind the same integration. Granting access to the integration, however, says little about which of those claims an agent is authorised to make. The meaningful boundary appears when a tool call changes the record.

Imagine a team using an agent to assemble the morning handover. It reads open work orders, gathers notes on interruptions, and lists questions for the next shift. The connection might also offer a way to change a work order’s status. Adding a note that a part is still needed is not equivalent to marking the repair complete. A supervisor may need to confirm the latter on the floor. This is an illustrative workflow, not a claim that the platform ships a maintenance integration or that a particular customer runs one. It helps locate a decision that must remain visible: who can confirm completion, and which call expresses that confirmation?

A tool name does not describe every action

A written instruction might say, “Only an authorised person closes maintenance work.” People can use that sentence to guide their work. An agent can read it too. But prose in a prompt does not automatically intercept a call that updates the record. The earlier article on policy documents and tool calls examined that distinction. Here the question is narrower: once there is a decision point before execution, does it inspect only the name of the tool, or the arguments supplied to it as well?

Accepted ADR-0005 in agentic-organization chooses readable policy Markdown alongside structured rules. The implemented policy_engine.py reads rule blocks from applicable active policies. A rule can match a tool name, argument patterns and certain other conditions, then produce allow, ask or deny. In a specific maintenance installation, a rule could distinguish calls according to a status field, provided the actual tool exposes such a field. That last condition matters. The sample record and its fields in this article are not built-in product entities. An organisation has to inspect its real integration before it can write a meaningful rule.

Two shortcuts look simpler. Leaving the decision entirely in the agent’s instructions makes permission depend on how the model interprets the prompt at that moment. Disabling the integration outright could prevent a useful handover draft as well as a risky status change. Checking the call’s arguments creates room to distinguish reading, annotating and closing, if those differences are observable at the tool boundary. Yet argument matching is not proof that the repair actually happened. The current engine matches patterns; it cannot inspect a machine on the shop floor. A person and an evidence source still have to be assigned to the completion decision.

A rule in observation mode is not a block

There is another distinction between describing a policy and applying it. The engine defaults to dry_run. A clean matching deny or ask is observed and audited in that mode, but it does not stop the call merely because it matched. In enforce, that decision is applied. Fail-closed results caused by a broken rule or an unreadable scope can block even during dry_run. On the backend tool path, policy_gate also blocks when it cannot record the decision in the audit chain. A team cannot therefore conclude that closure is prevented just because a rule was saved. It must check which agent receives the policy, the live mode, the actual call and whether the audit path is working.

Rule order creates a less obvious risk. The implementation uses the last matching rule. A broad permission to update records placed after a narrower closure denial may overturn that denial. Applicable active policies are gathered across company, parent department, department and agent scopes. This supports local distinctions but also makes exceptions worth testing with concrete calls. When no rule matches, the code’s default effect is allow, although it can be configured otherwise. The existence of a rule somewhere in the policy library is not evidence that every write through an integration is covered.

ADR-0005 considered alternatives including prompt-only instructions and a separate general-purpose policy engine. The current path keeps structured rules with the human-readable document. That brings an operational cost: someone must translate the business distinction into call patterns, keep the order understandable and test exceptions. It would be convenient if uploading an existing production manual automatically produced approved rules. ADR-0017 describes that direction, along with human review of proposed rules and checks on output content, but its acceptance note says those parts remain planned. It does not support a claim that the sentence about a supervisor’s confirmation is automatically enforced today. The user guide also lists no interface for setting the policy mode; it currently requires the API.

The same record belongs to different decisions

Production needs to specify which fields a handover may read and who confirms that a fault is resolved. Procurement may link the same interruption to a replacement part, while treating “request recorded” and “order approved” as separate acts. Finance should not confuse an estimated repair cost with a posted payment. HR may have to decide who is permitted to read a person’s name in incident notes. IT must map these distinctions to the tools and parameters that the actual integration exposes. These are questions for each department, not preinstalled policies that the platform automatically applies to all five.

There is a useful way to begin without claiming more automation than exists. Choose one maintenance workflow and list its observable calls. Are reading, adding a note and closing a record separate tools, or operations selected by arguments to one tool? Decide who owns each action before encoding a rule. Test examples that should pass alongside calls that must not pass; in dry_run, look for unexpected allowances as carefully as expected denials. If a clean denial must really block, verify that the relevant agent is in enforce mode. Even then, a successful policy decision only addresses permission at this boundary. It does not establish whether the technician actually fixed the fault.

The need for separate permission to close a record exposes a broader organisational question: which actions can an agent draft, and which ones assert a fact on the organisation’s behalf? agentic-organization puts the tool and argument boundary in ADR-0005; ADR-0017 sketches the still unfinished path from written business policy to reviewed executable rules. Where one connection can both observe and change work, separating those responsibilities is a useful first step.

Verification note: This article was checked against agentic-organization ADR-0005, ADR-0017, backend/services/policy_engine.py, backend/services/agent_runtime.py and the skills and policies guide. The maintenance scenario is illustrative; planned document import and output checks are not presented as shipped features.