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
chore: files changed crates/openhuman-core/src/mcp/registry/README.md,crates/openhuman-core/src/secu
Steven Enamakeldedb8bd6f6b9
diff --git a/crates/openhuman-core/src/mcp/registry/README.md b/crates/openhuman-core/src/mcp/registry/README.mdindex 6cc2103851..42a39b4fbb 100644--- a/crates/openhuman-core/src/mcp/registry/README.md+++ b/crates/openhuman-core/src/mcp/registry/README.md@@ -84,12 +84,12 @@ background; the status poll reports the outcome.What stayed host-side inside these handlers, on purpose:-- **Events**, `tinymcp` reports outcomes in its return values and publishes+- **Events**: `tinymcp` reports outcomes in its return values and publishesnothing; the handlers turn those into `DomainEvent`s because the vocabularyis this application's.-- **The prompt-injection scan**, `tools_safe_for_agent` filters remote tool+- **The prompt-injection scan**: `tools_safe_for_agent` filters remote tooldefinitions before they reach the agent.-- **The document**, `tinymcp` has no notion of `mcp.json`; the shape, the+- **The document**: `tinymcp` has no notion of `mcp.json`; the shape, therefusals and the reconciliation are this application's.## Reconnect-supervisor eventsdiff --git a/crates/openhuman-core/src/security/pii/README.md b/crates/openhuman-core/src/security/pii/README.mdindex 05f8751d94..00f339c6d5 100644--- a/crates/openhuman-core/src/security/pii/README.md+++ b/crates/openhuman-core/src/security/pii/README.md@@ -1,21 +1,21 @@# piiLocal PII / identification-risk detector (privacy epic #4256, slice S5).-Detects when a prompt or document may contain patient / legal / financial /-family or other identifiable information and reports a risk **level**, a-numeric **score**, and the matched **categories**, so upstream gates can-decide whether content is safe to send off-device.+Detects when a prompt or document may contain patient, legal, financial,+family, or other identifiable information and reports a risk level, a+numeric score, and the matched categories, so upstream gates can decide+whether content is safe to send off-device.## Guarantees-- **Fully local.** `scan()` is pure pattern + keyword matching over the input- string — no network call, no async, no external model. Importing this+- Fully local. `scan()` is pure pattern and keyword matching over the input+ string: no network call, no async, no external model. Importing thismodule pulls in nothing beyond `regex`.-- **Recall over precision.** A missed flag means sensitive data leaves the+- Recall over precision. A missed flag means sensitive data leaves themachine unnoticed, so the detector is tuned to over-flag rather thanunder-flag.-- **Never reports raw matched text.** The result type carries only categories- and counts, never the matched substrings — the result itself must not+- Never reports raw matched text. The result type carries only categories+ and counts, never the matched substrings, so the result itself cannotbecome a new PII sink.## Key files@@ -23,31 +23,31 @@ decide whether content is safe to send off-device.| File | Purpose || --- | --- || `types.rs` | `RiskLevel`, `PiiCategory` (with per-category `weight()` and `is_strong_identifier()`), `CategoryHit`, `PiiScanResult` |-| `detector.rs` | `scan()` — walks the compiled rule set, tallies matches, folds into a `PiiScanResult` |-| `rules.rs` | Compiled rule table: pattern rules (regex + optional structural validator, e.g. Luhn for cards) and keyword rules (word-boundaried term alternations for topical categories) |+| `detector.rs` | `scan()`, which walks the compiled rule set, tallies matches, and folds the result into a `PiiScanResult` |+| `rules.rs` | Compiled rule table: pattern rules (regex plus an optional structural validator, for example Luhn for cards) and keyword rules (word-boundaried term alternations for topical categories) |## Public surface-- `scan(content: &str) -> PiiScanResult` — the only entry point.-- `PiiCategory` — structured identifiers (`Email`, `PhoneNumber`, `NationalId`,+- `scan(content: &str) -> PiiScanResult`: the only entry point.+- `PiiCategory`: structured identifiers (`Email`, `PhoneNumber`, `NationalId`,`CreditCard`, `BankAccount`, `IpAddress`, `PostalAddress`) and topicalcontext (`DateOfBirth`, `Passport`, `Medical`, `Legal`, `Financial`,`Family`).-- `RiskLevel` — `None < Low < Medium < High`; `is_sensitive()` is `true` for+- `RiskLevel`: `None < Low < Medium < High`; `is_sensitive()` is `true` foranything above `None`.-- `PiiScanResult { level, score, categories, hits }` — `is_sensitive()` /+- `PiiScanResult { level, score, categories, hits }`: `is_sensitive()` and`has_category()` helpers.## Scoring model (`detector::scan`)- Each distinct category contributes its `PiiCategory::weight()` once.-- Each additional co-occurring category adds a flat `CO_OCCURRENCE_BONUS` (5)- — multiple distinct categories in one blob look more like a real record than- any single one alone.-- A "strong identifier" (`NationalId`, `CreditCard`, `Passport`,+- Each additional co-occurring category adds a flat `CO_OCCURRENCE_BONUS`+ (5), since multiple distinct categories in one blob look more like a real+ record than any single one alone.+- A strong identifier (`NationalId`, `CreditCard`, `Passport`,`BankAccount`) forces `RiskLevel::High` regardless of the numeric score.-- The raw score otherwise maps to level via fixed thresholds: `0` → `None`,- `1..=19` → `Low`, `20..=44` → `Medium`, `45+` → `High`.+- The raw score otherwise maps to a level via fixed thresholds: `0` to+ `None`, `1..=19` to `Low`, `20..=44` to `Medium`, `45+` to `High`.## Used by@@ -55,8 +55,8 @@ decide whether content is safe to send off-device.`CategoryHit`, `PiiCategory`, `PiiScanResult`, `RiskLevel`.- `crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs` documents`security::pii::scan` as the detection primitive for a future `Redacted`- screening outcome; as of this writing it is referenced but not yet wired- in — screening only ever passes or blocks (see the `TODO(phase4)` in+ screening outcome. As of this writing it is referenced but not yet wired+ in; screening only ever passes or blocks (see the `TODO(phase4)` in`screen_input`).- Cross-links [`../egress/README.md`](../egress/README.md):`EgressDescriptor::risk_level` / `risk_categories`