Map safe, write, and yolo permissions
Status: Ready
Article ID: 047
Truth label: Current
Audience: Security reviewer
Reader outcome: Translate Forge permission levels into each CLI's behavior and apply a worker-side maximum that tasks cannot exceed.
Related articles: 042, 045, 065
Target week: 19
Last verified: 2026-09-13
Technical reviewer: Codex source audit
Editorial reviewer: Codex editorial audit
Use one intent scale
Forge defines safe, write, and yolo from least to most authority. Each
adapter converts that intent into its own CLI flags. The names are comparable;
the enforcement mechanisms are not identical.
Claude uses plan, accepted edits, or skipped checks. Codex uses read-only, workspace-write, or sandbox bypass. Antigravity uses plan, sandboxed headless bypass, or bare bypass.
Apply the worker ceiling
The worker has a default permission for tasks that omit one and a maximum permission that no task may exceed. If a task requests more, the worker clamps it and logs the decision. Put the ceiling at host provisioning time, not in a prompt that the agent can reinterpret.
Choose from effects
Use safe for inspection and planning, write for reviewed repository edits, and yolo only when bypassing CLI controls is explicitly accepted. Pair every write-capable task with a narrow path, diff review, and independent check.
Audit the effective level
Inspect the task request, worker default and ceiling, clamp log, adapter argv, and run metadata. The effective level is the resolved value, not merely what the operator requested.
Current limits
Safe is not an operating-system sandbox. Test or verification commands can run repository code, and child processes inherit significant worker authority. Write boundaries differ by CLI. Yolo can affect the wider host and should not be used for untrusted repositories.
Next lesson
Continue with Write a verification command that can run.
Derivative map
- Weekly package: WEEK-19
- Long video: VIDEO-W19-LONG
- Shorts: SHORT-W19-PROBLEM, SHORT-W19-MECHANISM, SHORT-W19-WARNING
- Email: EMAIL-W19
- LinkedIn: LI-W19-A, LI-W19-B
- X: X-W19-A, X-W19-B
- Visual: VISUAL-W19
Review record
- Shared levels, adapter mappings, defaults, ceilings, and clamp behavior checked against current source.
- Child-process, repository-code, CLI-difference, and host-authority limits reviewed.
- Audit follows requested through effective permission.
- Internal links and repository voice reviewed.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13