Optionalmeta?: Record<string, unknown>Per-entity provenance. Optional so a caller assembling only the
structured branches (tests, partial views) need not synthesize an
empty record; entityToJSON always supplies it.
Optionaloptions: FlattenOptions
Fold an entity's structured branches into its flat attribute record. Structured values overwrite same-key flat attributes — the typed branch is the newer write path, so it wins deterministically.