Skip to content

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

docs(core): correct shutdown hook and encryption README notes

Steven Enamakel3e6d9342880a
diff --git a/crates/openhuman-core/src/core/shutdown.rs b/crates/openhuman-core/src/core/shutdown.rs
index 8890b15427..4b95427a28 100644
--- a/crates/openhuman-core/src/core/shutdown.rs
+++ b/crates/openhuman-core/src/core/shutdown.rs
@@ -42,10 +42,10 @@ where
/// Box a cleanup function without registering it.
///
-/// For a caller that wants to run a hook through [`run_hook_list`] itself —
-/// a test above all, which must not reach into the process-wide registry: in
-/// a test binary that registry holds every other test's hooks, the shared
-/// memory engine's shutdown among them.
+/// For a caller that wants to hold a hook itself — a test above all, which
+/// must not reach into the process-wide registry: in a test binary that
+/// registry holds every other test's hooks, the shared memory engine's
+/// shutdown among them.
pub fn boxed_hook<F, Fut>(hook: F) -> ShutdownHook
where
F: Fn() -> Fut + Send + Sync + 'static,
diff --git a/crates/openhuman-core/src/security/encryption/README.md b/crates/openhuman-core/src/security/encryption/README.md
index 4db37e500f..e92da87f39 100644
--- a/crates/openhuman-core/src/security/encryption/README.md
+++ b/crates/openhuman-core/src/security/encryption/README.md
@@ -7,7 +7,6 @@ AES-256-GCM at-rest crypto for AI memory storage and the encrypt/decrypt RPC sur
- `pub struct EncryptedPayload` (`core.rs:18-26`): `{ ciphertext, nonce, salt }` triple persisted to disk.
- `pub struct EncryptionKey` (`core.rs:29-32`): `[u8; 32]` AES-256 key wrapper.
- `impl EncryptionKey::derive(password: &str, salt: &[u8]) -> Result<Self, String>` (`core.rs:35`): Argon2id with parameters `m=65536, t=3, p=1`.
-- `pub fn get_data_dir() -> Result<PathBuf, String>` (`core.rs`): resolve the encrypted-data directory under the openhuman workspace.
- `pub async fn encrypt_secret(config: &Config, plaintext: &str) -> Result<Outcome<String>, String>` (`ops.rs:6`): RPC handler, delegates to `credentials::rpc::encrypt_secret`.
- `pub async fn decrypt_secret(config: &Config, ciphertext: &str) -> Result<Outcome<String>, String>` (`ops.rs:13`): RPC handler, delegates to `credentials::rpc::decrypt_secret`.
- RPC `encryption.{encrypt_secret, decrypt_secret}`, defined in `schemas.rs` (re-exported via `all_encryption_controller_schemas` / `all_encryption_registered_controllers`).