R391 · Harness tips › Harness tips

A coding agent that starts at yes, and the documented default that never fires

Read the original

agent-harnesscoding-agentsharness-tipspermissionsscope-boundariesdocumentation

Source: Day 4 of a 17-day practitioner guide to one open-source coding agent, published 25 Nov 2026. Its body is paywalled; the free portion carries the central claim, which was then checked line by line against the vendor's permissions documentation — including the base policy the documentation prints in full.

The claim, and why it matters more than it sounds

The observation is mundane and the consequence is not. Reviewing a previous working session, the author counts the approval prompts the agent raised while it edited a test file, edited a source file and ran the test suite twice: none. The reason is not that the session was trusted, or that a flag was set. It is that the rules the tool ships begin with a rule that allows everything.

The vendor's own documentation prints that base policy, and every agent — including custom ones — starts from it:

[
  { "action": "*",    "resource": "*",              "effect": "allow" },
  { "action": "read", "resource": "*.env",          "effect": "ask"   },
  { "action": "read", "resource": "*.env.*",        "effect": "ask"   },
  { "action": "read", "resource": "*.env.example",  "effect": "allow" },
]

So on a default install the only thing that prompts is reading a dotenv file. Everything else — editing source, running shell commands, fetching the web, launching subagents — proceeds silently.

This is the part worth correcting in most write-ups of this tool, including careful ones. The same documentation says that when no rule matches, the effect is ask. That sentence is true and almost unreachable: the first base rule matches every action on every resource, so the no-match path never fires until an operator deliberately narrows it. A reader who takes "default is ask" as the safety story has the posture exactly backwards — the tool is permissive by default and the documentation's reassuring sentence describes a fallback that the shipped configuration pre-empts.

The resolution model, stated precisely

Four rules govern what actually happens, and the order of loading matters as much as the order within a file:

  1. Last match wins. The whole list is checked and the final matching entry decides. Broad rule first, exceptions after.

  2. Loading order is fixed: lower-priority configuration first, then global rules appended, then agent rules appended last. Agent rules append to the global array rather than replacing it, so a custom subagent's permissions are its own — not a subset of its parent's.

  3. Saved approvals sit on top. Answering a prompt with "allow always" writes a durable, project-scoped allow rule, and the tool proposes the pattern: shell proposes command prefixes, web fetch proposes the URL's site, skills and subagents propose their ids, and some tools propose *. These never override a configured deny, but they do widen the policy in a file nobody reviews in a pull request.

  4. Policies are the floor nobody can raise. A policy runs after rules and saved approvals, turns allow or ask into deny, and never grants access. Global and console-managed policies override project configuration — the documented mechanism for an organisation to block a command that a repository would otherwise allow.

One approval detail deserves its own line because it is a footgun in long sessions: rejecting a prompt rejects every other pending permission request in that session, not just the one in front of you.

What each shipped agent adds

The per-agent policies are more specific than the usual summary of "the planner can't edit":

AgentAdded to the base policy
buildallows questions
planallows questions; denies edits except files under the plan directory
generaldenies questions and launching subagents
exploredenies everything except shell, reads, globs, grep, web fetch, web search and external directories; asks for dotenv reads
title, summarydeny all actions
compactionkeeps the base policy unchanged

Two things follow. First, the planning agent's write exception is a path, not a vague permission — which is good design and also means the plan directory is the one place a "read-only" planner can still write. Second, explore is the only shipped agent whose policy is written as a deny-by-default list, and it is a subagent; the primary agents are all allow-shaped.

The gap that no rule closes by default

Paths outside the active workspace and its worktree are checked against a separate action before their read or edit rules — and no default rule asks for it, so reads and edits outside the project proceed without a prompt. A planner or reviewer constrained inside the repository is not constrained outside it. Closing this takes an explicit rule; nothing in the shipped policy does it.

The practice the article is actually teaching

Underneath the configuration detail there is a good habit: read the tool result to find out which decision was made. A quiet session is ambiguous — it can mean a rule allowed the work, or that the client had nobody to answer a prompt and the request resolved by itself. The result distinguishes those two, and an operator who never looks cannot tell a permissive policy from an unattended one. For anything running in CI or on a schedule, that distinction is the whole safety argument, and configured denies are the only part that holds without a human present.

Review checklist

Connections

See R391 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.