swactor/crates/simulation/tests/surface_locked.rs
Zachery Aaron Shores-Chmielewski 1f8a67231c feat(sim): rebuild around discrete-event engine
Replaces the generic SimNode/gossip/dashboard framework with a virtual-time
discrete-event engine (priority queue ordered by time/node/fiber/seq), a TOML spec
parser, bundle writer, replay, divergence detector, lint, and postproc, plus the
parity-bar test harness with fixtures and xtask parity-lock tooling. Rewrites
transport identity/crypto and adds the SPEC/TESTING_SPEC/OBSERVABILITY/NORTH_STAR docs.


Signed-off-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com>
2026-05-21 23:48:02 +04:00

17 lines
632 B
Rust

//! The runtime trait surface is fingerprinted; the lock value lives
//! in `surface.lock`. Live ≠ locked is a hard fail. Updating the
//! surface and the lock together is a single commit.
#[test]
fn live_fingerprint_matches_locked() {
let live = simulation::runtime::surface_fingerprint();
let locked = include_str!("../surface.lock").trim();
assert_eq!(
live, locked,
"runtime surface fingerprint drifted.\n\
live = {live}\n\
locked = {locked}\n\
If the trait surface change is intentional, update \
crates/simulation/surface.lock in the same commit."
);
}