Create the provenance module now, migrate existing features in a separate plan
DecisionVerified 5 Oct 2026Holds project: dftracer-utils
Decision. The context, the choice, why, and the options that were turned down.
Context#
Built-in extensions, the aggregation tier, the rollup, view and lookup caches, the JIT cache and the shard set each have private "is this still valid" code: three separate params_hash functions, hand-built path+size+mtime strings, and a SHA-256 in the JIT file name.
Decision#
Create the provenance module now. Moving the existing features onto it (deleting that code and calling the shared module) is deferred to a separate plan. The user accepts this as long as the later migration stays easy.
Why#
The migration rewrites working, tested code and changes stored keys, so existing indexes and caches go stale once.
Rejected options#
- Migrating all features in the same change.
Also found by searching
- when do existing caches move onto the provenance module
- why are params_hash functions and JIT cache SHA-256 not migrated yet
- provenance module migration of aggregation rollup view lookup caches