Returns the fork record for the given entity ID, or undefined.
Returns all fork records in this namespace.
Removes and returns the fork record for the given entity ID. Throws if not found.
Returns a serializable snapshot of all records.
Validates every record against the namespace's schema.
StaticfromRestores a namespace from a previously captured snapshot.
Optionalschema: TSchema
A keyed collection of fork records for a single entity type. Each record maps a forked entity back to its origin via
entityId → forkId. Records are schema-validated on mutation; invalid state throws InvariantViolationError.