{"id":"bitcask-keydir-is-sole-index","text":"The in-memory `keydir` dict is the only index; every live key has exactly one `KeyEntry` pointing to its most recent non-tombstone record on disk.","truth_value":"IN","source":"entries/2026/05/28/hash-index-storage-bitcask.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{"example":"self._index: dict[str, tuple[str, int]] = {}  # key -> (filepath, offset)\n# all reads go through: filepath, offset = self._index[key]"},"explanation":{"steps":[{"node":"bitcask-keydir-is-sole-index","truth_value":"IN","reason":"premise"}]}}