You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(storage): drop builder prefix fallbacks — settings is the single source
Review finding: build_hash_path/build_object_path carried default prefix
parameters (DEFAULT_HASH_PREFIX/DEFAULT_SCHEMA_PREFIX) duplicating the
defaults that settings already applies. _apply_common_store_defaults runs for
EVERY store spec — built-in and plugin protocols alike — before
get_store_spec returns, so the fallbacks were dead code and a second place
for the default to drift.
The prefixes are now required keyword-only parameters; both constants are
deleted; all production callers index the spec directly (spec['hash_prefix'] /
spec['schema_prefix']) with a loud KeyError, rather than a silent wrong-layout
write, as the failure mode for any spec that bypassed get_store_spec. Direct
builder calls in tests pass the prefix explicitly, which is the honest
contract.
Suites: hash-storage/object/unit 377 passed; gc/npy/chaining green.
0 commit comments