An agent’s authority is what its available tools and identities can actually do. Asking it to “only inspect the project” states your intention; it does not by itself remove its ability to edit files or contact a service. A permission system can place a decision point between a proposed tool action and execution.
A product may let you allow an action without a prompt, ask for approval, or deny it. The exact choices, defaults, scope and rule order depend on the product. An approval might cover one call, a session, a matching pattern, or longer. Read the prompt and current documentation rather than assuming “allow” means “allow once.”
Read the whole request
Imagine asking for a summary of changes to a small library. The agent requests permission to run a test script. The script name sounds harmless, but a script is a program: it can write files, install packages, contact a network or use credentials. Check what will run, where it runs, which files and accounts it can reach, and whether its effects fit the task. If you cannot tell, decline and ask for an explanation or inspect the script. Approval is permission to act, not evidence the action is safe.
A sensible starting policy for this task could allow ordinary reads of a non-sensitive working copy, ask before edits and execution, and deny access to unrelated secrets and production services. This is a design example, not a ready-made configuration. A read can also be sensitive, and a test can have external effects. Adjust to the actual environment.
Rules are not all equivalent
A pattern matching a tool name or command may not cover other routes to the same effect. For example, blocking one shell command does not necessarily block a plugin that runs code itself. A delegated agent may have different permissions, and permission to invoke it is not necessarily a limit on its own tools. A rule permitting a skill to load may only permit loading instructions; those instructions can then request other actions under separate rules.
Use the narrowest practical grant and review changes to it. If rules overlap, verify which one wins and whether a user-initiated action follows the same policy as an agent-initiated one. Test the policy with harmless resources in a disposable environment; a displayed setting alone does not prove every route is covered.