SmolBox.Identity (SmolBox v0.1.0)

Copy Markdown View Source

Opaque machine names for an exclusively managed worker namespace.

Persist the generated name before creation. Names have 100 random bits and do not embed user identifiers. A namespace match identifies candidates for an orphan report, never authorization to delete. Creation evidence and exclusive worker ownership are still required; SmolVM exposes no immutable generation ID.

Summary

Functions

Select only syntactically valid orphan-report candidates; this does not prove ownership.

Functions

candidate?(namespace, name)

@spec candidate?(term(), term()) :: boolean()

Select only syntactically valid orphan-report candidates; this does not prove ownership.

machine_name(namespace)

@spec machine_name(term()) :: {:ok, String.t()} | {:error, SmolBox.Error.t()}