Primitive
atom.assignLexeme
BETAShort 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 libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| atomId | objectId | true | Atom that the lexeme will be assigned to. |
| lexemeId | objectId | true | Lexeme to assign. Caller must have read access. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| assigned | boolean | false | True if the lexeme was newly assigned, false if it was already present. |
| atom | object | false | Updated atom summary: { id, version, lexemeIds, data }. |
| dataDriftReport | object | false | Optional non-blocking lexeme/data drift diagnostics for unknown fields, missing required fields, type mismatches, and validator warnings. |