Files
collective-memory-repo/shared/long-term/decisions/openclawd-infra-baseline.md
2026-03-18 00:12:20 +08:00

51 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# OpenClaw Infra Baseline (Imported)
- imported_from: `/Users/lingyuzeng/openclawd/vaults/memory/infra.md`
- imported_at_utc: `2026-03-10T07:53:38Z`
- note: migrated from openclawd/vaults to collective-memory-repo.
---
# memory/infra.md
## OpenClaw Cluster Baseline (2026-03-18)
- **mac-5 = brain**Control Plane / Gateway / Orchestrator唯一 Gateway
- **mac-6 = hands**Execution Plane / General Compute Worker
- **mac-7 = eyes**Verification Plane / Browser Automation Worker
- **mac-8 已下线**,不再参与当前集群调度
## Role Semantics
- `mac-5` 负责控制、编排、入口收敛、记忆系统主入口与全局调度。
- `mac-6` 负责执行、算力、构建、脚本、CLI agent、批处理等通用工作负载。
- `mac-7` 负责浏览器自动化、页面验证、验收检查,也可承接辅助执行任务,但主身份保持 browser-first。
## Access & Ingress
- Unified ingress via Caddy HTTPS/WSS.
- Known endpoints in docs/notes:
- `https://mac5.hs.jmsu.top:8443`
- `wss://mac5.hs.jmsu.top:8443`
- runtime summary may use `bot.jmsu.top:443` (confirm active deployment before operations)
## Node Lifecycle
`openclaw node run/install -> Pending -> openclaw devices approve <request-id> -> Online -> openclaw nodes run ...`
## Operating Rules
1. Never run Gateway on mac-6/mac-7.
2. Remote commands must go through `openclaw nodes run`.
3. Keep node allowlist/approvals least-privileged by role.
4. For failures, check: unauthorized / pairing required / origin not allowed / trusted proxy / approval required.
## Memory Gateway Design (qmd-memory-gateway)
- Consistency model: query-time sync (`fetch -> workspace sync -> qmd update/embed -> query`).
- Workspace isolation by branch/profile, with per-workspace lock.
- Keep a **single gateway on mac-5** as default topology to avoid multi-writer index drift.
- Consider per-machine gateway only if:
- cross-machine latency becomes a bottleneck, and
- each machine can own an isolated branch/workspace and independent qmd cache/index.