Skip to main content

Module derived

Module derived 

Source
Expand description

The derived read-model for one corpus snapshot (ADR-099/ADR-103).

Port of services/derived_cache.py build_derived_index: one walk feeds every structure, each a pure function of the sorted-path snapshot, so the whole bundle is content-addressable and the persisted store reproduces a fresh build byte-for-byte (spec/index-contracts.json derived_cache).

Structs§

DerivedIndex
The expensive derived structures for one corpus snapshot.

Constants§

SCHEMA_VERSION
The bundle schema version (derived_cache.SCHEMA_VERSION).

Functions§

build_derived_index
Build the derived structures fresh from one corpus walk (the miss path).
build_derived_index_from_items
Build the derived structures from an already-walked corpus snapshot.