From 15292c08e9379ff2aafa87397b3a15c3b7834a5d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 13 Jul 2026 03:04:08 +0100 Subject: [PATCH] Guard provider arrival-order vocabulary --- epiphany-core/src/cultmesh_integration.rs | 18 ++++++++++++++++++ ...onceptual-substitution-audit-2026-07-12.md | 5 +++++ notes/fresh-workspace-handoff.md | 4 +++- state/ledgers.msgpack | Bin 466206 -> 466508 bytes state/map.yaml | 2 +- 5 files changed, 27 insertions(+), 2 deletions(-) diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index fb8e2739..3d1d0f45 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -10268,4 +10268,22 @@ mod tests { ); Ok(()) } + + #[test] + fn bifrost_mirrors_name_arrival_order_without_rewriting_storage_keys() { + let source = include_str!("cultmesh_integration.rs"); + let old_loader = ["load_", "latest_epiphany_cultmesh_bifrost_"].concat(); + let old_field = ["pub ", "latest_bifrost_"].concat(); + assert!(!source.contains(&old_loader)); + assert!(!source.contains(&old_field)); + assert_eq!( + source + .lines() + .filter(|line| { + line.contains("\"gamecult-local/bifrost/") && line.contains("/latest\"") + }) + .count(), + 7 + ); + } } diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index 1494f12d..ce74be6b 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -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. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index cd03bc00..da9c1743 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -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. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 1809f0a1fe1d19aa95b41a08b95101f67dc7089b..8ce7b3e76303628b3401b5f3aee8d3c55927a6e2 100644 GIT binary patch delta 311 zcmY+8ze>YU6vmsVDYOsZzX}JO1ht_mVm2Lo0w+-}x6Mhtc#~Vty-DrV!9koQWD|V? z1qVS~T%3FhU%?0P1YI0{9L~S*`|e&lpKqO~MX$9Tg}cWejpoYQ^Qw2@d8b#Ue_i?> zQ`Z@0mYHLMm(p+EELD$RLA$ke6!xO9{=R*fUzj%b;}~P;tAvboB2`3&tjJ`FLK3M$ zYGEiw5@Y4gOzs5Xn3Pl5P*`V34pE%r#71Cr3?njy;^Pf19a;z4Nbb6cLSELI7Sf#O zgsD^+$o`4N%z?~ez)LxBdIA;;%wU9Mm35r#;5Qj`|0LNAtRwdSr?m-(W{_Kc;0z{N Rhu+R!_5K|!SNc9^{{YRtZ;${0 delta 60 zcmX@JM`qqGnGKSRT!vQ0CQ-*2*rk7OR%R?@WQ=K^%G5rUi4llFG&2yh05K~Nvu&Ts I#NH_d09ND@eE