Skip to content

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

docs(security): update module docs for moved pii and catalog ownership

Steven Enamakel6328222b3afe
diff --git a/crates/openhuman-core/src/platform/cost/README.md b/crates/openhuman-core/src/platform/cost/README.md
index 5c3ea4965a..5a48ab2c50 100644
--- a/crates/openhuman-core/src/platform/cost/README.md
+++ b/crates/openhuman-core/src/platform/cost/README.md
@@ -23,7 +23,7 @@ Local API-usage cost tracking for the agent. Records per-call token usage and co
| `crates/openhuman-core/src/platform/cost/rpc.rs` | RPC-facing handlers (`dashboard`, `daily_history`, `summary`) returning `Outcome<Value>`; DTO types; `resolve_tracker` with a cached fallback tracker + error-replay TTL. |
| `crates/openhuman-core/src/platform/cost/schemas.rs` | Controller schemas + `handle_*` JSON-RPC dispatchers; `all_controller_schemas` / `all_registered_controllers`. |
| `crates/openhuman-core/src/platform/cost/tracker_tests.rs` | Sibling test suite for [`tracker.rs`](./tracker.rs) (`#[path]`-included). |
-| `crates/openhuman-core/src/platform/cost/catalog.rs` | Static per-model pricing + context-window catalog (`ModelPrice`, `lookup`, `estimate_cost_usd`, `PRICING_AS_OF`) and the tinyagents model-catalog adapters. |
+| [`catalog.rs`](./catalog.rs) | Product configuration enrichment, source attribution and runtime/local model overlays over the published pricing and windows owned by [TinyAgents registry](../../../../../vendor/tinyagents/crates/tinyagents-registry/src/pricing/mod.rs). The owner exposes `ModelPrice`, `lookup`, `estimate_cost_usd` and `PRICING_AS_OF`; this adapter exposes the default registry and unified model catalog. |
| `crates/openhuman-core/src/platform/cost/route.rs` | `CostRoute` / `route_for_model`: derives from the model id whether a record counts against OpenHuman-managed credits or is BYOK/local (#5016). |
| `crates/openhuman-core/src/platform/cost/scope.rs` | `UsageScope::ambient`: a record's attribution (thread, origin, agent definition, sub-agent task, embedded/SaaS user agent, provider) read from the recording task's turn origin, memory identity and `CoreContext`. |
| `crates/openhuman-core/src/platform/cost/report.rs` | Pure usage reports over ledger records: `build_report` (group by day/week/month/model/provider/route/agent/thread/origin/session_agent; tokens, charged vs estimated cost, cache-hit ratio) and `build_cache_report` (per-call hits, cold calls, uncached premium). |
diff --git a/crates/openhuman-core/src/security/README.md b/crates/openhuman-core/src/security/README.md
index 3a739fec64..ccaa576a90 100644
--- a/crates/openhuman-core/src/security/README.md
+++ b/crates/openhuman-core/src/security/README.md
@@ -173,7 +173,7 @@ decision. See [approval/README.md](approval/README.md).
| [`encryption/`](encryption/README.md) | AES-256-GCM at-rest encryption for memory storage and the encrypt/decrypt RPCs. |
| [`keyring/`](keyring/README.md) | OS keychain backend with an encrypted-file fallback, and the `SecretStore` config-field codec. |
| [`keyring_consent/`](keyring_consent/README.md) | Consent gate for falling back from the OS keychain to local encrypted storage. |
-| [`pii/`](pii/README.md) | Fully local PII and identification-risk scanner. |
+| [TinyMemory API safety](../../../../vendor/tinymemory/crates/tinymemory-api/src/safety/mod.rs) | Owns the local PII and identification-risk detector. OpenHuman supplies privacy policy and enables the `local-safety` feature for its callers. |
| [`prompt_injection/`](prompt_injection/README.md) | Deterministic prompt-injection screening (`Allow`, `Review`, `Block`). |
| [`live_policy.rs`](./live_policy.rs) | Process-global, hot-swappable current `SecurityPolicy` and privacy mode. |
| [`scrub.rs`](./scrub.rs) | Secret and PII scrubbing with the host's policy (`Policy::corroborated`) over TinyMemory's scrubbers. |
@@ -214,9 +214,12 @@ decision. See [approval/README.md](approval/README.md).
helpers are re-exported from `tinychannels_bus::security`.
- `SecretStore` (re-exported from [`keyring/`](./keyring/)): encrypted-on-disk secrets whose
master key lives in keychain-backed storage.
-- The [`egress`](./egress) and [`pii`](./pii) re-exports at the crate root: `enforce_egress`,
- `emit_external_transfer`, `local_only_blocks`, `local_only_tool_block`,
- `EgressDescriptor`, and `scan_pii` with its result types.
+- The [`egress`](./egress) re-exports at the crate root: `enforce_egress`,
+ `emit_external_transfer`, `local_only_blocks`, `local_only_tool_block` and
+ `EgressDescriptor`.
+- `tinymemory_api::safety` owns `scan_pii` and its result types; the security
+ domain no longer re-exports them. Host redaction applies product policy over
+ that detector in [`agent/session_host/stop_summary.rs`](../agent/session_host/stop_summary.rs).
## RPC surface