Storage Protocol
The implementation-independent contract. Generated from the canonical spec
protocols/specs/storage.md as of 2026-05-13 (4362897). Implemented by
Drive.
Storage providers protect user-owned durable data.
Identity
- Provider id: stable lowercase identifier such as
drive,dropbox, ors3. - Resource ref:
storage:{provider_id}:{provider_resource_ref}. - App data namespace:
app://{app_id}/{path}.
Provider resource refs are opaque except to the provider that owns them. The
drive provider currently uses normalized absolute paths such as
storage:drive:/Client.
Runtime source handling should resolve through storage provider connectors, not product-name branches in app code. The Drive connector owns legacy path normalization and hydration compatibility. Unknown storage providers should be accepted as opaque external resources until a real connector is registered.
Owns
- personal files, folders, and tables
- portable app data
- optimistic concurrency and versioning
- storage access enforcement
- user-readable exports
Does Not Own
- model calls
- raw external provider credentials
- approval decisions
- agent routing
- marketplace commerce
- runtime orchestration
Scopes
Common storage scopes:
storage:nonestorage:source_readstorage:source_read_proposestorage:own_artifacts
The resource ref names what storage object is in scope. The scope names what an app or agent may do with that resource.
Compatibility
Legacy Drive-specific fields such as source_path, source_drive_enabled, and
allowed_source_paths may be emitted for old clients. New protocol records
should use source_provider_id, source_ref, and resource_refs.