The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(redact): pin test constant instead of calling engine helper
Steven Enamakelfcf237675a73
diff --git a/src/openhuman/memory/direct_engine_refs_tests.rs b/src/openhuman/memory/direct_engine_refs_tests.rsindex f394305c79..69ae79d9b2 100644--- a/src/openhuman/memory/direct_engine_refs_tests.rs+++ b/src/openhuman/memory/direct_engine_refs_tests.rs@@ -352,11 +352,6 @@ const ALLOWED: &[(&str, Verdict, &str)] = &[Verdict::FacadeRevealed,"engine dependency predates this branch; the facade deletion made it visible",),- (- "src/openhuman/memory/guard/audit.rs",- Verdict::FacadeRevealed,- "engine dependency predates this branch; the facade deletion made it visible",- ),("src/openhuman/memory/guard/policy.rs",Verdict::FacadeRevealed,diff --git a/src/openhuman/util/redact.rs b/src/openhuman/util/redact.rsindex e05798fba0..39b19cd56e 100644--- a/src/openhuman/util/redact.rs+++ b/src/openhuman/util/redact.rs@@ -61,15 +61,17 @@ mod tests {assert!(out.chars().all(|c| c.is_ascii_hexdigit()), "{out}");}- /// Pins byte-parity with `tinymemory_core::util::redact::redact`, which this- /// replaced at five call sites. The two are independent going forward, but- /// a silent change on day one would make old and new log lines for the same- /// id fail to match while both looked correct.+ /// Pins byte-parity with the `tinymemory_core::util::redact::redact` this+ /// replaced at five call sites, so old and new log lines for the same id+ /// still match when someone greps across the change.+ ///+ /// The expected value is a **literal**, not a call into the engine helper.+ /// Asserting against the engine would reintroduce exactly the dependency+ /// this module exists to remove — and `memory::direct_engine_refs_tests`+ /// counts inline `#[cfg(test)]` references, so it would also have to be+ /// allowlisted. A pinned constant tests the same property without either.#[test]fn matches_the_engine_helper_it_replaced() {- assert_eq!(- redact("gmail:[email protected]"),- tinymemory_core::util::redact::redact("gmail:[email protected]")- );+ assert_eq!(redact("gmail:[email protected]"), "c3e9777d");}}