REC/main_generated library

Classes

REC
Collection of Standard Records
RECBuilder
RECObjectBuilder
Record
Individual record wrapper for any standard type
RecordBuilder
RecordObjectBuilder

Enums

RecordTypeExtended
WIDE RECORD TYPES -- APPEND ONLY, FOREVER. union RecordType holds at most 255 members (a FlatBuffers union tag is one byte). Every later standard gets an ordinal here, from 256, and its records carry it in Record.EXTENDED_TYPE with the record's own FlatBuffer in Record.EXTENDED_VALUE (Record.value stays NONE). Contract: schema/REC/RECORDTYPE_ORDINALS.json (extended_ordinals) Guard: node scripts/checkRecordTypeOrdinals.mjs
RecordTypeTypeId
ORDINAL FREEZE -- APPEND ONLY, FOREVER. A member's position IS its wire value: flatc writes it into the Record.value_type byte of every $REC ever serialized, including the publication trailer of every protected module artifact. Inserting, reordering or removing a member silently re-points every record ever written at the wrong standard. This has already happened three times; inserting $PGM mid-union (c1580d4700, 2026-07-08) moved $PNM 113 -> 114 and broke protected-plugin decryption fleet-wide for three weeks. New standards are APPENDED at the end. A retired standard is deprecated in place, never deleted -- an ordinal is never reused. Contract: schema/REC/RECORDTYPE_ORDINALS.json Guard: node scripts/checkRecordTypeOrdinals.mjs Records written before 2026-07-08 are only decodable via Record.standard, which is the sole discriminator that has never shifted.