Who gets the final say over an agent's settings?
Who gets the final say over an agent’s settings?
Why should a project file be able to change the model gateway chosen for every employee? It sounds like a small question about how software reads configuration. In an organisation it is really a question about authority. A procurement colleague may need to describe how offers are compared. That does not give the colleague the authority to reroute model calls or relax tool permissions. Unless those decisions are separated, a perfectly ordinary attempt to customise a workspace can cross a boundary that nobody meant to delegate.
Picture a buyer preparing a comparison of several proposals. They want an agent to understand the structure of the folder and perhaps use a familiar template. The same project may contain a local configuration file. If that file can replace the provider chosen by IT, or silently widen the agent’s permissions, the buyer has been handed more than a preference setting. The difference is not whether the person is trusted. It is whether an organisational rule still holds when a local project asks for something else.
A file does not establish authority on its own
Accepted ADR-0011 in agentic-organization deals with precisely this question for opencode. It records a configuration order that includes remote, global, environment, project and managed settings. On Linux, the managed configuration sits above project and user settings in that order. Placing a company decision only in a project file would therefore be a weak choice. The file might be present and still lose to a different source. The issue is not simply where to keep a JSON document, but who can replace the value the agent actually uses.
The repository contains a concrete delivery path. The backend serves a signed configuration bundle from /.well-known/opencode. In the normal verified path, 3pa run fetches that bundle and the public key, checks the signature, and places the configuration at the sandbox’s managed configuration path. A failed signature prevents that path from starting a session. The backend assembles values including the model gateway, MCP connection, plugin, base instructions and conservative permission defaults. A baked copy remains in the image for offline or verification bypass paths. Having that fallback is useful for development and recovery, but it should not be confused with having verified the current organisation settings for that particular session.
Why not email everyone a new settings file whenever a rule changes? Distribution by hand leaves different laptops with different versions, and makes it hard to tell which rule a session used. The server endpoint allows the configuration to change without reprovisioning the workstation. Why not use only the remote opencode configuration endpoint? In the order recorded by ADR-0011, remote settings sit below local and project settings. Remote delivery alone would not give the organisation’s decision priority. Signing answers a different problem: whether the bundle received by the workstation is the bundle its expected source supplied. The CLI pins a signing key and treats an unexplained key change differently from an advertised rotation.
There is another kind of precedence that is easy to confuse with this one. The technical order in which opencode reads settings is not the same as the authority of the company, a department, a person’s job and their agent’s memory. ADR-0019 describes layered session context in which policy rules outrank departmental and personal guidance. A team may describe the format of its work, but that description should not repeal a policy. This is a design statement about organisational context, not evidence that every proposed workspace and subagent control is fully deployed today. The signed configuration path is a narrower, inspectable implementation slice.
Different work, different decisions
Production might want its shift summaries written in a particular format. Procurement might specify where comparison documents belong. Finance needs payment related data handled under rules that a personal settings file cannot waive. HR has to decide which employee records a particular task should expose. IT needs to know which provider path a session used and whether its configuration was verified. These examples are not a claim that the product ships a finished configuration dashboard for each department. They make the governance distinction visible across ordinary tasks: a local preference and a common organisational boundary do not have the same owner.
It is also worth asking what happens when a rule changes. Suppose finance adds a more restrictive process for preparing payment information. A centrally served configuration can help distribute workstation defaults. It cannot, by itself, decide whether an instruction found in an invoice should be trusted or whether an employee’s business approval is valid. Those are different enforcement questions. If the organisation answers every such question by adding more text to one settings file, it may end up with a convincing description of control but little evidence about what was actually enforced at the point of action.
ADR-0011 is unusually candid about its remaining limits. Environment variables and configuration merging leave a possible bypass surface. The sandbox entrypoint removes most OPENCODE_* overrides before starting opencode, yet the ADR still marks stronger hardening and a runtime assertion of critical plugin settings as unfinished. The CLI also has an explicit option to skip signature verification. ADR-0003 describes local plugin policy enforcement as a soft control against a determined user with their own machine, not a cryptographic guarantee. The gateway and server side audit are separate enforcement layers. Claiming that a managed file makes every execution path impossible to bypass would erase the distinction the design is trying to preserve.
A practical starting point is to write down the owner of each decision before writing more configuration. Which values belong to the company, which to a department, and which can safely follow a person or project? Then test the actual launch path. Try a project override of the gateway or permission defaults and inspect what the running agent received. Test a bad signature and the deliberately unverified path separately. Repeat the test when the underlying client is upgraded, because merging and precedence behaviour can change. These checks say more than a screenshot of a settings page: they show where an organisational choice meets a real execution boundary.
The useful question, then, is not whether employees should be allowed to customise an agent at all. It is which choices can travel with their work without taking company authority along with them. ADR-0011 in agentic-organization puts a signed managed configuration above project settings while openly documenting the remaining bypass work. That balance is relevant to any team trying to give people room to work without pretending that a local configuration file is a complete governance system.
Verification note: The design and its limits were checked against agentic-organization ADR-0011, ADR-0003 and ADR-0019, plus backend/api/well_known.py, backend/services/wellknown_sign.py, packages/cli/src/commands/run.ts, packages/cli/src/utils/wellknown.ts, sandbox/opencode.json and sandbox/entrypoint.sh. Pending environment override hardening is not presented as finished.