ModelWorkspace

Immutable exact-id workspace produced from a finite or provider-collected source set. Construction admits and freezes every supplied source; prepare resolves only the requested entry's transitive closure.

snapshotRevision is sanitized provenance captured from a collection provider. It is null for finite fromSources workspaces and never contributes to a prepared-model fingerprint.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val modelIds: List<String>
Link copied to clipboard
val snapshotRevision: String?

Functions

Link copied to clipboard
fun expand(entryModelId: String): String

Expand one transitive closure into compact self-contained DM-JSON without invoking the internal model loader. Interpreter-specific evaluability checks therefore belong to prepare, not this conversion boundary.

Link copied to clipboard
fun prepare(entryModelId: String): PreparedModel

Prepare one transitive closure. Each call performs a fresh deterministic assembly and creates a new owner domain; this finite workspace deliberately holds no hidden preparation cache.

Link copied to clipboard
fun tryExpand(entryModelId: String): ModelExpansionResult

Return either the expanded DM-JSON or the same typed preparation error thrown by expand.

Link copied to clipboard
fun tryPrepare(entryModelId: String): ModelPreparationResult

Return either a new prepared owner domain or the same typed preparation error thrown by prepare.