SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

atom.assignLexeme

BETA

Short name: assignLexeme

Version: 1.0.0

System primitive that assigns one lexeme to an existing atom. Idempotent: already-assigned lexemes are no-ops.

Back to primitive library

Inputs

KeyTypeRequiredDescription
atomIdobjectIdtrueAtom that the lexeme will be assigned to.
lexemeIdobjectIdtrueLexeme to assign. Caller must have read access.

Outputs

KeyTypeRequiredDescription
assignedbooleanfalseTrue if the lexeme was newly assigned, false if it was already present.
atomobjectfalseUpdated atom summary: { id, version, lexemeIds, data }.
dataDriftReportobjectfalseOptional non-blocking lexeme/data drift diagnostics for unknown fields, missing required fields, type mismatches, and validator warnings.