workspace-write grants the Session workspace and temp areas. No public extraWritableRoots or cache-resource key exists.Model intent, not arbitrary paths.
One cache id and one sandbox-visible mount.
Session, workspace, profile, or deployment.
Version, OS, architecture, and artifact kind.
Quota, expiry, locks, quarantine, and cleanup.
Do not grant a whole home subtree.
Retain integrity and immutable identity.
Separate from downloaded content.
Never share as cache.
CARGO_HOME is not just downloads.Whole toolchain homes can contain executable bins, credentials, mutable indexes, and configuration. Grant only a dedicated single-purpose directory.
Prove every enforcement dialect.
Bind visibility and mount flags.
Rights and kernel ABI.
Canonical subpath filters.
SID grant and cleanup.
Acceptance gates.
- Cache write succeeds.
- Parent write fails.
- Symlink swap fails.
- Read-only stays read-only.
- Concurrent writes are atomic.
- Corruption is quarantined.
Primary evidence.
Keep the complete capability design.
The canonical guide covers package-manager contents, trust scopes, path admission, TOCTOU, five runners, operational options, and twelve gates.
Read the full guideStar on GitHub