Guard provider arrival-order vocabulary

This commit is contained in:
Meta Vens 2026-07-13 03:04:08 +01:00
commit 15292c08e9
5 changed files with 27 additions and 2 deletions

View file

@ -959,6 +959,11 @@ persisted string values remain byte-for-byte `.../latest`, preserving external
storage compatibility while removing the last ambiguous chronology identifier
from the Rust API.
A source-level invariant now locks both sides: old provider-latest loader/field
names must remain absent, while exactly seven persisted Bifrost `/latest` key
strings must remain. This prevents either semantic regression or accidental
storage-contract churn.
The same inspection found 33 consecutive duplicate `#[cfg(test)]` attributes
on provider constructors/writers and their re-exports. One gate already makes
each item test-only; the second owned nothing. The duplicates are removed.

View file

@ -296,6 +296,8 @@ The Bifrost ledger report also uses `arrival_latest_*` typed fields and
`arrival_latest_bifrost_*`; persisted storage strings retain `/latest`.
The Rust constant identifiers are now `*_ARRIVAL_LATEST_KEY` too; only their
external string values retain the `/latest` storage spelling.
Regression test `bifrost_mirrors_name_arrival_order_without_rewriting_storage_keys`
guards honest Rust vocabulary and the seven stable persisted keys together.
The latest structural count is 32 closure family branches, 744 remaining
substring assertions in the closure region, and 1,284 lines in
@ -306,4 +308,4 @@ next consequence-bearing request and require a named owner.
## Verification baseline
The last completed code pass had 258 library tests passing and all binaries compiling. Re-run focused checks for the next touched surface; use the full library/binary baseline before committing a new architectural cut.
The last completed code pass had 259 library tests passing and all binaries compiling. Re-run focused checks for the next touched surface; use the full library/binary baseline before committing a new architectural cut.