docs: truth-up architecture.md + 3 new domain pages + Linux/Arch caveats in localized READMEs
Summary
- Fix stale QuickJS /
rquickjsskill-runtime references throughoutgitbooks/developing/architecture.md— the runtime was removed andsrc/openhuman/skills/is metadata-only perCLAUDE.md, but multiple diagrams, tables, and prose sections still described it as active. - Also correct two related factual bugs in the same file: "Yarn workspace" → "pnpm workspace" (root
package.jsondeclares[email protected]); rewrite the row referring to a top-levelskills/directory (does not exist) to point at the realsrc/openhuman/skills/and describe what it actually is now. - Add three contributor-audience architecture pages under
gitbooks/developing/architecture/formemory_tree,mcp_registry, andsecurity— currently-thin gitbook areas where the source-sideREADME.md/mod.rsrustdoc is rich but no public page exists. Linked fromgitbooks/SUMMARY.md. - Backfill the Linux Wayland warning + AUR pointer block (present in
README.mdsince #2463) intoREADME.zh-CN.md,README.ja-JP.md,README.ko.md,README.de.md. English content under<!-- TODO: translate (xx) -->markers — native-speaker translation follow-up invited.
Problem
The architecture book diverged from the code on three load-bearing points:
- Stale runtime model.
CLAUDE.mdis explicit: "Skills runtime removed: the QuickJS /rquickjsruntime that previously executed skill packages is gone.src/openhuman/skills/is now a metadata-only domain." Yetgitbooks/developing/architecture.mdstill describes a QuickJS runtime engine, per-skill 64 MB sandbox limits, "QuickJS Skill Instance executes tool" in the MCP flow diagram, and the same in the end-to-end data flow. New contributors get an inaccurate mental model on day one. - Stale build-tool reference. "Yarn workspace
openhuman-app" in the repo-layout table, butpackage.jsondeclares[email protected]and CI runspnpm install --frozen-lockfile. - Stale path reference. The layout table mentions a top-level
skills/directory; it does not exist.
Three active and substantial domains (memory_tree, mcp_registry, security) have no gitbook architecture page despite being among the most-touched in recent weeks (#2556, #2559) and despite each having a rich internal-audience README.md / mod.rs rustdoc that's invisible to the public gitbook.
The Linux Wayland warning + AUR pointer (README.md lines 73–75) was only added to the English README; localized READMEs never received the backfill — a German / Korean / Japanese / Chinese reader running the install command on Arch + Wayland hits an unexplained crash with no caveat in their language.
Solution
gitbooks/developing/architecture.md — purged QuickJS references from the high-level architecture diagram, the performance table, the MCP flow diagram, the security architecture diagram + bullet, and the end-to-end data flow. Where a replacement was needed (e.g. "Sandboxed QuickJS per skill (64 MB)"), used what the code actually does today: tool execution gated by SecurityPolicy + a host-selected sandbox backend from src/openhuman/security/ (Docker / Bubblewrap / Firejail / Landlock / Noop). Three intentional "QuickJS was removed" historical references retained (clearly marked as such) to make the migration explicit. Fixed "Yarn workspace" → "pnpm workspace" and rewrote the stale skills/ row to point at src/openhuman/skills/ and describe what it actually is now (metadata-only).
Three new architecture pages — followed the existing agent-harness.md / frontend.md / tauri-shell.md convention: YAML frontmatter with description: (multi-line >-) + icon: (FontAwesome name), H1 with the source path in backticks, ASCII diagram of how the domain plugs into the wider system, layout table sourced from the existing README.md / mod.rs, "Calls into" / "Called by" / "Tests" / "Related" sections. Each page describes only what the code currently does — no aspirational claims. Tables Prettier-aligned to match the existing style.
Localized READMEs — inserted the Linux/Arch block right after the install bash code-block (matching the structural position in README.md), wrapped in <!-- TODO: translate (xx) --> / <!-- /TODO --> markers so native speakers know exactly what needs translation in a follow-up PR.
Submission Checklist
Summary by CodeRabbit
- Documentation
- Added Linux installation caveats to translated READMEs (German, Japanese, Korean, Chinese) with Wayland compatibility notes and AUR package guidance.
- Updated architecture documentation reflecting changes to tool execution and system design.
- Added new documentation pages for Memory Tree, MCP Registry, and Security components.
This PR adds translated installation documentation for Linux systems and substantially updates OpenHuman's architecture documentation to reflect a runtime refactor moving from in-process QuickJS skill execution to a metadata-only skills model with native Rust tool execution and Node-backed helpers, along with three new comprehensive architecture pages documenting the MCP Registry, Memory Tree, and Security modules. Documentation Updates 🎯 2 (Simple) | ⏱️ ~12 minutes 🐰 Four README tongues now speak of Wayland's plight,
While architecture docs shine new and bright—
From QuickJS dreams to Rust's efficient way,
Three module tales our humble PR convey. ✨ ✏️ Tip: You can configure your own custom pre-merge checks in the settings.📝 Walkthrough
Walkthrough
Changes
Layer / File(s)
Summary
Installation caveats in translated READMEs
README.de.md, README.ja-JP.md, README.ko.md, README.zh-CN.mdLinux-specific installation notes documenting AppImage crashes under Wayland, Arch Linux
sharun: Interpreter not found! issues, and AUR installation guidance for openhuman-bin are added consistently across all four language variant README files with TODO markers for translation sync.
Architecture overview refactoring
gitbooks/developing/architecture.md, gitbooks/SUMMARY.mdMain architecture documentation is refactored to describe the shift from in-process QuickJS skill runtime to metadata-only skills with native Rust tool execution and Node-backed helpers via
runtime_node. Repository layout, runtime diagrams, frontend↔core communication, performance characterization, MCP protocol flow (mcp:toolCall routed by tool_name to unified Tool Registry), security sandbox model (runtime-selected backends: Docker/bubblewrap/firejail/Landlock/Noop), and end-to-end data flow are all updated. GitBook navigation is updated to link the three new architecture pages.
MCP Registry architecture documentation
gitbooks/developing/architecture/mcp-registry.mdNew page documents the dynamic user-facing MCP client registry (
src/openhuman/mcp_registry/), covering module purpose, system flow from Smithery browsing through SQLite persistence to subprocess spawning, transport model (local stdio JSON-RPC), boot-time error handling, internal layout, public exports, integration points, test locations, and related references.
Memory Tree architecture documentation
gitbooks/developing/architecture/memory-tree.mdNew page documents the kind-agnostic Memory Tree generic engine (
src/openhuman/memory_tree/), defining responsibilities, key invariants (no kind branching, no persistence, no policy), module layout by subcomponent (tree, summarisation, retrieval, scoring), write/read flow mechanics with bucket sealing and hotness-ordered retrieval, controller registry re-exports, and related references.
Security architecture documentation
gitbooks/developing/architecture/security.mdNew page documents the security trust boundary module (
src/openhuman/security/), enumerating public surface (policy, autonomy/risk classification, sandbox abstraction, secret store, audit logging, pairing guard, log redaction), sandbox backend selection strategy, autonomy ladder semantics, module/file layout, inter-module call relationships, and test coverage references.Possibly Related PRs
Suggested Labels
documentation, architectureSuggested Reviewers
Poem
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name
Status
Explanation
Description Check
✅ Passed
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
✅ Passed
The title accurately summarizes the three main categories of changes: architecture documentation updates, three new domain pages, and Linux/Arch caveats in localized READMEs.
Docstring Coverage
✅ Passed
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check
✅ Passed
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
✅ Passed
Check skipped because no linked issues were found for this pull request.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.