Skip to content

docs(openhuman): add per-module READMEs for domain modules#2992

Merged
senamakel merged 1 commit into
tinyhumansai:mainfrom
senamakel:docs/openhuman-module-readmes
May 29, 2026
Merged

docs(openhuman): add per-module READMEs for domain modules#2992
senamakel merged 1 commit into
tinyhumansai:mainfrom
senamakel:docs/openhuman-module-readmes

Conversation

@senamakel

@senamakel senamakel commented May 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Add a detailed README.md to 74 high-level domain modules under src/openhuman/ that previously had none.
  • Each README documents the module's responsibilities, key files, public surface, RPC controllers, agent tools, events, persistence, and real cross-module dependencies (traced from use crate::openhuman:: / use crate::core:: imports).
  • Pre-existing curated READMEs (agent, channels, config, cron, encryption, security, skills, app_state, accessibility, and the memory_* family) are left untouched.
  • Docs-only change: no source code, schemas, or behavior modified.

Problem

  • The src/openhuman/ tree has ~90 domain modules but only ~19 had a README, making it hard for contributors (and agents) to understand a module's purpose, surface, and dependencies without reading all its source.

Solution

  • Generated one README per undocumented module, each grounded strictly in the module's actual source (mod.rs docstring/exports, ops.rs, schemas.rs, store.rs, tools.rs, bus.rs) and its real import graph.
  • Consistent section structure across all files: overview, responsibilities, key-files table, public surface, RPC, agent tools, events, persistence, dependencies, used-by, and gotchas.
  • local_mascots was skipped because its directory is empty (no source to document).

Submission Checklist

If a section does not apply to this change, mark the item as N/A with a one-line reason. Do not delete items.

  • N/A: docs-only change — no code behavior added or modified, no tests applicable.
  • N/A: no changed source lines — diff is entirely new markdown files, not covered by coverage gate.
  • N/A: behaviour-only change — no feature rows affected.
  • N/A: no feature IDs affected by a docs-only change.
  • N/A: no external network dependencies introduced.
  • N/A: does not touch release-cut surfaces.
  • N/A: no associated issue to close.

Impact

  • No runtime/platform impact. Documentation only; affects contributor/agent ergonomics, not the build or binaries.

Related

  • Closes:
  • Follow-up PR(s)/TODOs: regenerate the ~19 pre-existing curated READMEs for structural consistency (optional).

AI Authored PR Metadata (required for Codex/Linear PRs)

Linear Issue

  • Key: N/A
  • URL: N/A

Commit & Branch

  • Branch: docs/openhuman-module-readmes
  • Commit SHA: 3da36f8

Validation Run

  • N/A: docs-only — no format-sensitive files changed.
  • N/A: docs-only — no TypeScript changed.
  • N/A: docs-only — no tests applicable.
  • Rust fmt/check (if changed): passed via pre-push hook (cargo check ran clean; no Rust changed)
  • N/A: no Tauri shell code changed.

Validation Blocked

  • command: N/A
  • error: N/A
  • impact: N/A

Behavior Changes

  • Intended behavior change: none (documentation only)
  • User-visible effect: none

Parity Contract

  • Legacy behavior preserved: N/A (no behavior changed)
  • Guard/fallback/dispatch parity checks: N/A

Duplicate / Superseded PR Handling

  • Duplicate PR(s): none
  • Canonical PR: this PR
  • Resolution: N/A

Summary by CodeRabbit

Release Notes

  • Documentation
    • Added comprehensive module documentation covering system architecture, public APIs, persistence models, and operational behaviors across 60+ domains.

Add detailed README.md to 74 high-level modules under src/openhuman/ that
lacked one. Each README documents the module's responsibilities, key files,
public surface, RPC controllers, agent tools, events, persistence, and
real dependencies traced from `use crate::openhuman::` imports.

Pre-existing curated READMEs (agent, channels, config, cron, encryption,
security, skills, app_state, accessibility, memory_*) are left untouched.
@senamakel senamakel requested a review from a team May 29, 2026 23:05
@coderabbitai

coderabbitai Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

This PR adds comprehensive README documentation for 99 OpenHuman modules, covering infrastructure services, agent systems, integrations, memory persistence, user-facing features, request pipelines, authentication, specialized domains, inference capabilities, and UI bridges. No code logic is modified; all changes are documentation files describing module responsibilities, RPC surfaces, persistence models, dependencies, and behavioral notes.

Changes

Module Documentation Coverage

Layer / File(s) Summary
Core Infrastructure & Daemon Services
src/openhuman/service/README.md, src/openhuman/startup/README.md, src/openhuman/socket/README.md, src/openhuman/health/README.md, src/openhuman/connectivity/README.md
Service lifecycle management (install/uninstall/start/stop), startup migration orchestration, Socket.IO client connection lifecycle, in-process health registry, and connectivity diagnostics are documented with RPC surface, persistence model, and operational notes.
Agent Management & Tool System
src/openhuman/agent_experience/README.md, src/openhuman/agent_tool_policy/README.md, src/openhuman/tools/README.md, src/openhuman/tool_registry/README.md, src/openhuman/tool_timeout/README.md
Agent experience capture/retrieval/injection, tool policy enforcement with session snapshots, unified tool registry aggregation, and execution timeout policies are documented with responsibility boundaries and integration points.
Managed Runtime Environments
src/openhuman/runtime_node/README.md, src/openhuman/runtime_python/README.md, src/openhuman/javascript/README.md
Managed Node.js and Python toolchain resolution, installation, and process spawning are documented with caching/persistence behavior and system vs managed selection rules.
Third-Party Integrations & API Proxies
src/openhuman/composio/README.md, src/openhuman/integrations/README.md, src/openhuman/mcp_client/README.md, src/openhuman/mcp_server/README.md, src/openhuman/mcp_registry/README.md, src/openhuman/billing/README.md, src/openhuman/team/README.md, src/openhuman/referral/README.md
Backend proxy adapters for Composio (direct/proxied modes), billing/team/referral services, plus MCP transport and registry layers are documented with OAuth flows, error classification, and routing modes.
Memory Systems & Data Persistence
src/openhuman/memory_sources/README.md, src/openhuman/vault/README.md, src/openhuman/whatsapp_data/README.md, src/openhuman/context/README.md, src/openhuman/learning/README.md
Memory source registry, vault directory mirroring, WhatsApp data ingestion, context assembly/reduction, and agent self-learning phases are documented with persistence strategies and cross-module dependencies.
User-Facing Features & Intelligence
src/openhuman/voice/README.md, src/openhuman/autocomplete/README.md, src/openhuman/screen_intelligence/README.md, src/openhuman/text_input/README.md, src/openhuman/overlay/README.md
Voice I/O (STT/TTS), system-wide autocomplete, screen/OCR intelligence, text field insertion, and overlay attention messages are documented with provider dispatch, OS-specific behavior, and RPC surfaces.
Request Processing & Task Pipeline
src/openhuman/approval/README.md, src/openhuman/threads/README.md, src/openhuman/todos/README.md, src/openhuman/task_sources/README.md, src/openhuman/webhooks/README.md
Approval gate workflows, thread/message lifecycle, task board CRUD, task source polling/triage, and webhook routing are documented with event flow, persistence model, and behavioral constraints.
Workspace Management & Authentication
src/openhuman/workspace/README.md, src/openhuman/credentials/README.md, src/openhuman/cost/README.md, src/openhuman/notifications/README.md, src/openhuman/migration/README.md, src/openhuman/migrations/README.md
Workspace bootstrap, credential profile/OAuth handling, cost tracking/budget enforcement, integration notifications, and legacy/schema migrations are documented with encryption/keychain details and idempotency semantics.
Specialized Domains
src/openhuman/meet/README.md, src/openhuman/meet_agent/README.md, src/openhuman/audio_toolkit/README.md, src/openhuman/redirect_links/README.md, src/openhuman/devices/README.md, src/openhuman/cwd_jail/README.md
Google Meet validation/joining, per-call session management with STT/TTS, email audio synthesis, URL redirection shortening, device pairing/tunneling, and filesystem jailing are documented with protocol details and platform-specific notes.
Advanced Inference & Intelligence
src/openhuman/codegraph/README.md, src/openhuman/tokenjuice/README.md, src/openhuman/prompt_injection/README.md, src/openhuman/routing/README.md, src/openhuman/subconscious/README.md
Code retrieval indexing/search, tool output compaction, prompt injection screening, intelligent model routing, and background reflection loops are documented with scoring algorithms, rule loading, and LLM evaluation semantics.
UI Integration & Webview Bridges
src/openhuman/webview_apis/README.md, src/openhuman/webview_accounts/README.md, src/openhuman/webview_notifications/README.md, src/openhuman/provider_surfaces/README.md
Webview API client loopback, Chromium cookie login detection, notification event payloads, and provider event response queueing are documented with wire contracts and deduplication semantics.
Diagnostics, Admin, & Developer Support
src/openhuman/doctor/README.md, src/openhuman/dashboard/README.md, src/openhuman/health/README.md, src/openhuman/update/README.md, src/openhuman/test_support/README.md
Synchronous health probing, per-model health dashboard, in-process health registry, self-updating binaries, and test-mode reset/introspection RPCs are documented with blocking/async boundaries and mutation-policy gating.
Infrastructure Utilities & Configuration
src/openhuman/tls/README.md, src/openhuman/embeddings/README.md, src/openhuman/keyring/README.md, src/openhuman/http_host/README.md, src/openhuman/artifacts/README.md
TLS backend selection, embedding provider factories/rate limiting, OS keychain/encryption-JSON secret storage, static file serving, and artifact metadata persistence are documented with platform-specific behavior and legacy migration paths.
Desktop App & Orchestration
src/openhuman/desktop_companion/README.md, src/openhuman/devices/README.md, src/openhuman/wallet/README.md
Desktop companion session state machine (STT→screen→LLM→TTS), device tunnel pairing/crypto, and wallet onboarding/quote execution are documented with turn pipeline stages and atomic state transitions.
Inference Service & Model Routing
src/openhuman/inference/README.md, src/openhuman/routing/README.md
Unified inference operations (chat/vision/embeddings/sentiment), local/remote routing with health probing, OpenAI-compatible /v1 endpoints, and provider reliability wrapping are documented with task classification and fallback strategies.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • tinyhumansai/openhuman#1966: Earlier http_host/README.md documentation addition that directly corresponds to this PR's comprehensive module documentation expansion.

Suggested reviewers

  • oxoxDev
  • graycyrus

🐰 A warren of wisdom, documented with care,
Ninety-nine modules laid perfectly bare,
Responsibilities mapped from root to leaf,
READMEs complete—the author's relief! 📚✨

@senamakel senamakel merged commit 5e7a456 into tinyhumansai:main May 29, 2026
27 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant