Skip to main content

Module scope

Module scope 

Expand description

The scope grammar — the canonical identity of an import source (SSoT: Organization — Scope Grammar).

How a local folder, camera roll, or watched directory on each platform maps to a remote album is a formal contract, not per-client improvisation. A Scope names the source; its scope_id is a domain-separated canonical-CBOR hash, so two devices of the same platform looking at the same source compute the same id with no coordination protocol.

The scope_overrides / source_kind_defaults mapping table these ids key is deferred post-v1 with the library-settings document; v1 carries the scope on the import so the destination is explainable, and the override rows plug in later without changing this grammar (see resolve_default_album).

Structs§

Scope
The canonical identity of an import source.

Enums§

SourceKind
What kind of source an import came from (closed enum; the wire value is the lowercase snake-case name, and a new kind is an additive protocol change).

Constants§

IMPORT_SCOPE_V1
Domain-separation label for Scope::scope_id (versioned; a construction change bumps the suffix, exactly as for the device-cohort hash).