Ray's Knowledge Base
Unlock

Genesis detection keys on gtype, not type, or generic files match by mistake

PitfallVerified 2 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

Schema detection matched by key names only, so a generic file with type+run keys was detected as genesis and joins tests failed.

Cause#

The detector used the key type, which other formats also have.

Fix#

The record kind key is gtype, not type. Rejected: value checks on type in detection (still ambiguous), genesis/gid/gt/gkind names.

Evidence#

Genesis reader; renaming the key fixed the false detection.

Also found by searching

  • schema detection matches by key names only so a generic file with type+run keys was detected as genesis
  • the record kind key is gtype not type
  • joins tests failed after the false detection
  • value checks on type in detection still ambiguous