SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

atom.snapshot

BETA

Short name: snapshot

Version: 1.0.0

Sandbox-only primitive that clones an existing atom into the current sandbox session. Used by the verb editor's Test Run panel so a preview verb can mutate a copy of real (PRD) data without touching the original. The clone is owned by the caller, stamped with the sandbox marker, and carries the source atom id and version for diff display.

Back to primitive library

Inputs

KeyTypeRequiredDescription
sourceAtomIdobjectIdtrueAtom to clone into the sandbox.

Outputs

KeyTypeRequiredDescription
atomobjectfalseCreated sandbox clone: { id, version, lexemeIds, data, isPublic, sandbox }.
sourceobjectfalseReference to the cloned source: { id, version } captured at snapshot time.