Skip to content

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

docs(agent, channels): add README documentation for learning and runtime modules

Steven Enamakel2e5a0ea118f3
diff --git a/crates/openhuman-core/src/agent/learning/README.md b/crates/openhuman-core/src/agent/learning/README.md
index 87b9558681..91e171392f 100644
--- a/crates/openhuman-core/src/agent/learning/README.md
+++ b/crates/openhuman-core/src/agent/learning/README.md
@@ -31,7 +31,7 @@ The subsystem is organised in phases (issue #566): **Phase 1** the candidate tax
| `user_profile.rs` | `UserProfileHook` post-turn hook; Aho-Corasick DFA over curated preference phrases, stores matches in the `user_profile` category. |
| `prompt_sections.rs` | `LearnedContextSection`, `UserProfileSection`, `MemoryAccessSection` (+ `MEMORY_ACCESS_INSTRUCTION`), `MemoryWriteSection` / `memory_write_instruction`, the memory tool-name constants + `any_tool_offered` (used by the harness to decide whether to inject the memory sections), and the async `load_learned_from_cache` (cache→prompt loader, cap 25). |
| `profile_md_renderer.rs` | `ProfileMdRenderer` — subscribes to `CacheRebuilt`, re-renders 5 managed `PROFILE.md` blocks (style/identity/tooling/vetoes/goals) from Active facets. |
-| `linkedin_enrichment.rs` | Gmail→LinkedIn→Apify enrichment pipeline, `include!`-split into `linkedin_enrichment_part_01.rs` (`run_linkedin_enrichment`, `summarise_profile_with_llm`, `render_profile_markdown`, `scrape_linkedin_profile`) and `linkedin_enrichment_part_02.rs` (guard lookup + `put_profile_document` persistence). |
+| `linkedin_enrichment.rs` + `linkedin_enrichment/` | Gmail→LinkedIn→Apify enrichment pipeline: `linkedin_enrichment.rs` (`run_linkedin_enrichment`), `linkedin_enrichment/gmail_discovery.rs` (`scrape_linkedin_profile`), `linkedin_enrichment/profile_markdown.rs` (`summarise_profile_with_llm`, `render_profile_markdown`), and `linkedin_enrichment/memory_persistence.rs` (guard lookup + `put_profile_document` persistence). |
| `extract/` | Phase 2 producers (`mod.rs` + `signature.rs`, `heuristics.rs`, `summary_facets.rs`). |
| `extract/signature.rs` | Email-signature parser → Identity candidates; subscribes to `DocumentCanonicalized` (email). |
| `extract/heuristics.rs` | `LengthRatioDetector` / `EditWindowDetector` / `CorrectionRepeatDetector` → Style + Veto candidates via `record_turn`. |
diff --git a/crates/openhuman-core/src/channels/runtime/README.md b/crates/openhuman-core/src/channels/runtime/README.md
index fdb9572345..ca84a8f7f3 100644
--- a/crates/openhuman-core/src/channels/runtime/README.md
+++ b/crates/openhuman-core/src/channels/runtime/README.md
@@ -23,7 +23,7 @@ Boots every enabled channel, keeps their listeners alive, and dispatches inbound
| --- | --- |
| `helpers.rs` | Stateless helpers: per-turn context block for non-web channels, deterministic ACK-emoji picker, worker join logging, scoped typing task |
| `routing.rs` | `AgentScoping`, `resolve_target_agent`, `build_visible_tool_set`, `connected_with_fallback` — picks the active agent for the channel and its visible/delegation tool surface from `Config`, `AgentDefinitionRegistry`, and the connected-integrations snapshot |
-| `processor.rs` (+ `processor_part_01.rs..03.rs`) | `RuntimeChannelMessage`, `channel_has_approval_surface`, `try_route_approval_reply`, `process_channel_message`, `process_channel_runtime_message`, `run_message_dispatch_loop` |
+| `processor.rs` (+ `processor/` — `message.rs`, `approval.rs`, `turn.rs`, `dispatch_loop.rs`) | `RuntimeChannelMessage`, `channel_has_approval_surface`, `try_route_approval_reply`, `process_channel_message`, `process_channel_runtime_message`, `run_message_dispatch_loop` |
| `mod.rs` | Declares the three submodules and the `#[cfg(test)]` / `#[cfg(any(test, debug_assertions))]` re-exports the test modules reach through `super::*` |
Two policy points here: `channel_has_approval_surface` is `true` only for `TELEGRAM_APPROVAL_CLIENT_ID`, so other channels still run in the legacy "no chat context, silently allow" state until they get a surface subscriber; and scoping is per channel (`resolve_target_agent(&msg.channel)`), falling back to `AgentScoping::unscoped()` (every registered tool visible) when the registry is not initialised or the target agent is unknown.