Skip to content

Harness tools and permissions

Harness separates what was requested from whether it may run. The daemon records each tool call in the session. The client can show a pending request and record a human decision, but it does not run the tool.

A tool call during a turn is one request. The turn that contains it is not the request, and neither is a job that only holds other jobs. The decision is written on the request. In the code that request is a ToolCallJob, also called an ApprovableJob. Examples include system tools, file mutation, MCP, web search and extract, and agent-related tool calls.

The standard toolkit is the current inventory of built-in tools. Plugin command files are a separate extension surface. A plugin with a command file still cannot bypass daemon authorization or add a driver.

Each tool call gets one of four policy results.

Result Meaning
allow The applicable rule permits it.
deny A soft refusal: the request needs further handling by the permission mode or a human decision. It is not a hard block.
block Hard denial. Neither the permission mode nor a human approval can lift it.
ask No rule decides it, or a rule defers. The policy and mode decide whether it needs human attention.

The permission mode is manual, auto, or yolo. The mode determines how requests with ask or deny are handled. Policy still runs first; a block stays blocked in every mode. The active mode is SessionRoot.currentPolicy. New sessions take their default from project policy when one is set, otherwise from the kernel’s config.json defaultPolicy, and otherwise manual. The mode is not stored as a session key/value setting.

Mode What it does
manual Requests with ask or deny normally wait for a person.
auto Grants, a classifier, or a human decision resolve ask and deny; some requests still need approval.
yolo Requests with ask or deny run without a permission prompt. A block still holds.

In interactive auto mode, a deny normally asks for approval when autoCoverDeny is enabled. Turning that setting off, or granting the request’s tool category, can send the request to the classifier instead. Write requests without a write-category grant still require approval. The approval reference gives the detailed grant and unattended-evaluation rules.

These decisions do not erase the original policy result. A policy allow is already allowed, and mode changes do not bypass platform or tool-specific restrictions.

When a person has to decide, the client writes approved on that request. Approval is not a second request. If a person approves a file read, that path can also join the session read allowlist. Later reads of that path and its descendants may then skip the prompt for the rest of the session. The allowance covers reads only: it is not a write grant, and it does not lift a hard block.

Extra-root access and file operations have more specific rules than this overview. The approval reference is the detailed authority on authorization. Do not assume a path or an operation is approvable until that file says so.

  1. Find the tool call, not just the turn or the transcript line.
  2. Check the policy result: allow, deny, block, or ask.
  3. Use the active mode to resolve ask and deny. It never overrides block.
  4. If the daemon asks, the client records the person’s decision on that request.
  5. Keep a remembered read path separate from write permission.

Paths are relative to the Harness repository root.

  • docs/canon/standard-toolkit.md: standard tool inventory and semantics.
  • docs/canon/grain.md: tool and job geometry, and the durable authorization fields.
  • docs/runtime/approval.md: authorization rules.
  • packages/harness-model/src/session/license.ts: mode handling and soft-denial decisions; exercised by src/session/__tests__/license.test.ts in that package.
  • docs/runtime/README.md: index of the runtime approval and control-effect references.
  • docs/client/operate.md: operator permission modes and approval interaction.
  • docs/plugins/install.md and docs/plugins/commands.md: plugin enablement and command boundaries.
  • docs/canon/proposals.md: the current PEW/Proposal mechanism. A proposal in the Harness docs is a product noun, not a draft. Design work lives in docs/working-proposals/.