Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(memory): retire the contacts gate's engine test and its allowlist entries

Shanu6c8448a9570f
diff --git a/.github/workflows/ci-lite.yml b/.github/workflows/ci-lite.yml
index bd66f9d113..a6f5707131 100644
--- a/.github/workflows/ci-lite.yml
+++ b/.github/workflows/ci-lite.yml
@@ -675,8 +675,6 @@ jobs:
openhuman/flows/mod.rs
openhuman/mcp/server/resources.rs
openhuman/mcp/server/tools/mod.rs
- openhuman/memory/people/mod.rs
- openhuman/memory/people/mod_contacts_gate_tests_tests.rs
openhuman/platform/socket/event_handlers.rs
openhuman/platform/socket/ops.rs
openhuman/skills/mod.rs
diff --git a/Cargo.toml b/Cargo.toml
index c6de01cb84..0de05c26a1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1059,9 +1059,15 @@ runtime-node = []
#
# That is the exact soft-failure shape as `voice` (#4901) and
# `tokenjuice-treesitter` (#4918): a gate that is not forwarded does not fail
-# the build, it just quietly does nothing. Hence the forward below, and
-# `contacts_feature_reaches_the_engine_reader` in `memory/people/mod.rs`, which
-# fails if this is ever flattened back into local `dep:` entries.
+# the build, it just quietly does nothing.
+#
+# The guard that used to catch it here, `contacts_feature_reaches_the_engine_
+# reader`, is gone with the engine (openhuman#6161) and could not have been
+# kept: it linked `tinycortex` from `#[cfg(test)]` to call the reader directly,
+# which proves nothing about this crate's forwarding once this crate does not
+# depend on the crate being forwarded to. The forward it guarded had already
+# moved into the module's own manifest, which is where the equivalent
+# assertion now belongs.
# Nothing host-side is gated on `contacts` any more — its whole job was
# forwarding into the engine so tinycortex's macOS CNContactStore reader
# compiled. That reader now lives in the `tinymemory` module, whose own
diff --git a/src/openhuman/memory/people/mod.rs b/src/openhuman/memory/people/mod.rs
index 7e9afb353e..a5ab8f9a4c 100644
--- a/src/openhuman/memory/people/mod.rs
+++ b/src/openhuman/memory/people/mod.rs
@@ -20,15 +20,23 @@
//! compatibility surface; it is a dependency edge that keeps the engine crate
//! named in production for the benefit of no call site.
//!
-//! **The `contacts` gate outlives it, and deliberately.** `address_book`'s
-//! macOS reader is `#[cfg(all(target_os = "macos", feature = "contacts"))]`
-//! *inside the engine*, and this crate's `contacts` feature has to forward
-//! there or the reader is compiled out while `refresh_address_book` reports
-//! success having seeded nothing — the exact bug the gate was written for. So
-//! `mod_contacts_gate_tests_tests.rs` still names the engine crate, from
-//! `#[cfg(test)]`, and asserts the forward end to end. A test reference does
-//! not link the crate into the shipped binary; that is the whole distinction
-//! this change is drawn along.
+//! **The `contacts` gate name outlives the forwarding it used to do.** The
+//! macOS `CNContactStore` reader is `#[cfg(all(target_os = "macos", feature =
+//! "contacts"))]` *inside the engine*, and this crate's `contacts` feature once
+//! had to forward there or the reader was compiled out while
+//! `refresh_address_book` reported success having seeded nothing. That reader
+//! now lives in the `tinymemory` module, whose own manifest enables
+//! `tinycortex/contacts`, and `refresh_address_book` reaches it through
+//! `MemoryPeople::seed_from_address_book` over the bus — so `contacts = []`
+//! here is correct rather than broken, and the name is kept only because the
+//! Feature Forwarding Gate asserts the product list and the shell's list are
+//! equal.
+//!
+//! `mod_contacts_gate_tests_tests.rs` asserted the old forward by naming the
+//! engine crate from `#[cfg(test)]`. It went with the engine
+//! (openhuman#6161), and its subject had already moved to the module before
+//! that: a test that links `tinycortex` directly proves nothing about what
+//! this crate forwards once this crate no longer depends on it.
pub mod rpc;
pub mod schemas;
@@ -42,7 +50,3 @@ pub use schemas::{
#[cfg(test)]
mod schemas_tests;
-
-#[cfg(test)]
-#[path = "mod_contacts_gate_tests_tests.rs"]
-mod contacts_gate_tests;
diff --git a/src/openhuman/memory/people/mod_contacts_gate_tests_tests.rs b/src/openhuman/memory/people/mod_contacts_gate_tests_tests.rs
deleted file mode 100644
index 8b13789179..0000000000
--- a/src/openhuman/memory/people/mod_contacts_gate_tests_tests.rs
+++ /dev/null
@@ -1 +0,0 @@
-