stackwell.tech
Protocols / Storage Protocol

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 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

Does Not Own

Scopes

Common storage scopes:

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.