GroundPlane.Contracts.WorkspaceRef (GroundPlane Contracts v0.1.0)

Copy Markdown View Source

Opaque workspace reference for manifests, proof ledgers, and trace fixtures.

The reference identifies a logical workspace by owner and workspace name only. It does not contain local filesystem paths, tenant policy, domain semantics, higher-layer payloads, or execution details.

Summary

Types

t()

@type t() :: %GroundPlane.Contracts.WorkspaceRef{
  name: String.t(),
  owner: String.t(),
  ref: String.t()
}

Functions

new(attrs)

@spec new(map()) :: {:ok, t()} | {:error, term()}

new(owner, name)

@spec new(String.t(), String.t()) :: {:ok, t()} | {:error, term()}

new!(owner, name)

@spec new!(String.t(), String.t()) :: t()

parse(ref)

@spec parse(String.t()) :: {:ok, t()} | {:error, term()}

to_string(workspace_ref)

@spec to_string(t()) :: String.t()

valid?(value)

@spec valid?(term()) :: boolean()