resolve
resolve
¶
Pure per-sheet resolution of the score's memory: key (spec 03, Behaviour 2-4).
resolve_memory turns a validated :class:MemoryConfig plus a sheet's phase
identity into frozen :class:ResolvedBinding values. It performs no I/O: it
creates no directory, opens no socket and reads no registry. Scope grammar
errors surface as the typed E3 from :func:parse_scope.
memory:absent (None) ->[]: zero gateway, zero sessions.memory:present with no backends -> one synthesizeddefaultbinding (files,local:default, every permission).- otherwise one binding per attachment active in this sheet's phase, in declaration order, matched by the shared technique phase matcher.
The binding is conductor-side data. The musician never sees its principal,
permissions or scope; see :mod:marianne.memory.manifest for what it does see.
Classes¶
SheetPhase
dataclass
¶
A sheet's phase identity: its movement name and/or number (either may be absent).
ResolvedBinding
dataclass
¶
ResolvedBinding(name, attachment_id, system, scope, principal, access, permissions, recall_cap_bytes, provenance, lock_timeout_seconds, trust, run_dir, settings=())
Functions:¶
attachment_id
¶
Deterministic UUIDv5 of name + "\0" + canonical scope (spec 03 Interfaces).