Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
docs(society): record the built substrate and the M2 backend in the plan and README
rubenluetke10-beep612553689f72
diff --git a/docs/agent-society/MASTERPLAN.md b/docs/agent-society/MASTERPLAN.mdindex f061033511..71e0111fbc 100644--- a/docs/agent-society/MASTERPLAN.md+++ b/docs/agent-society/MASTERPLAN.md@@ -1,7 +1,15 @@# Agent Society — Master Plan-Status: **planning approved for build, not yet started. Nothing ships or gets pushed until the-maintainer says so.** Working codename: `society` (product name TBD, see Open Questions).+Status: **building. Nothing ships or gets pushed until the maintainer says so.** Working+codename: `society`; the section keeps the name "Jarvis Agents" (§10).++Progress (2026-09-01/02): **M1 done** — `jarvis/society/` substrate, `/api/society`, the+headless contract test. **M2 backend done** — the `society` chat surface with per-agent hands+and briefing, canonical chat binding, `society_message_agent` / `society_wiki_note`, the+approvals queue, `[agent:*]` routines. **M2 frontend open** — the section (sidebar | stage |+roster rail), the model card (Specs | 3D | Chat) on `components/society/data.ts`, seed+proposals. **M3 world** is the maintainer's parallel track. M4 (rooms live under the scheduler,+curator, `delegate-to-agent` voice tool) not started.The research behind every claim here lives in [`research/`](research/):[Branch A — product & UI](research/branch-a-product-ui.md) (Hermes Agent, Grok Bot, 3D stack,diff --git a/docs/agent-society/build-plan-m1-m2.md b/docs/agent-society/build-plan-m1-m2.mdindex 72586f5a65..e1d5caa606 100644--- a/docs/agent-society/build-plan-m1-m2.md+++ b/docs/agent-society/build-plan-m1-m2.md@@ -1,5 +1,10 @@# Build Plan — M1 + M2 (recovered draft, revised)+Status 2026-09-02: waves 1–6 and the backend half of wave 9 are landed on `main` (see+`jarvis/society/README.md` for the module map and the commit log for the per-wave commits);+wave 2b (capability catalog + focus) and 6b (ecosystem card) landed with them. Open: wave 7–8+(frontend section, roster rail, card) and the frontend half of wave 9, wave 10 cleanup.+Status: **draft, recovered 2026-09-01** from the kickoff session's design agent — that sessionhit its seat limit the moment this plan arrived, so the maintainer never saw it. It is kept as thewave breakdown for M1 (substrate) and M2 (identity, chat, Agents section UI) and is subordinate todiff --git a/jarvis/society/README.md b/jarvis/society/README.mdindex 49951c3414..49188f0541 100644--- a/jarvis/society/README.md+++ b/jarvis/society/README.md@@ -1,20 +1,43 @@-# jarvis/society — Agent Society backend (scaffold)+# jarvis/society — Agent Society backend-Not built yet. This directory reserves the home for the agent-society substrate planned in-[`docs/agent-society/MASTERPLAN.md`](../../docs/agent-society/MASTERPLAN.md) (§3, §9): the durable-agent roster, the typed append-only society event log ("blackboard"), the dispatch scheduler with-the tier wall and master kill switch, the mission-event bridge, bounded group rooms, the knowledge-curator, and the unattended approvals queue.+The substrate of the agent society (`docs/agent-society/MASTERPLAN.md` §3,+`docs/agent-society/agent-definition.md`). M1 (substrate) and the M2 backend+(canonical chats, approvals, routines) are built; the world (M3), rooms going+live under the scheduler and the voice router tool (M4) are not.-Rules that bind everything landing here (see the master plan and CLAUDE.md):+| Module | Role |+|---|---|+| `events.py` | the typed envelope and every enum that crosses layers (parity-tested against `society_schema.sql` and `src/lib/societyApi.ts`) |+| `failure_reasons.py` | the typed vocabulary every refusal speaks, with retry hints |+| `society_schema.sql` / `store.py` | `data/society.db`: roster, append-only board, rooms, knowledge staging, approvals, meta — persist-before-publish |+| `bus.py` | observer fan-out of stored envelopes; a wedged observer can never block an append |+| `roster.py` | agent records: adopt-before-mint by name, one lead (Jarvis), typed validation, NO chat-session column (`society:<agent_id>` is a pure function) |+| `capabilities.py` | ONE catalog over plugins, CLIs, MCP servers, active skills and core tools; dispatch and app-control tools are never granted |+| `focus.py` | deterministic focus + approval-rule derivation from title/description — no model call |+| `rooms.py` | bounded discussions: 2–6 members, ≤3 rounds, ≤10 messages, silence allowed, restart-safe |+| `scheduler.py` | the only path from an ASSIGN to work: kill switch, tier wall, depth ≤ 2, target, budgets, caps; refusals are VETO envelopes |+| `bridge.py` | mission envelopes → board (attributed to the owning agent, else the lead) |+| `approvals.py` | the unattended ask-queue: require > always-allow > tier vs ceiling; expiry parks, never drops |+| `routines.py` | per-agent routines as tagged Automations tasks |+| `surface.py` | the `society` chat surface: per-session hands (grant/focus/deny), the briefing, the ecosystem card |+| `agent_tools.py` | `society_message_agent` (one typed envelope to ONE teammate) and `society_wiki_note` (writes only under `society/<agent>/`) |+| `chat_binding.py` | roster row → canonical `agent_chat` session; delivers board envelopes as framed turns |+| `runtime.py` | the lazily built singleton wiring all of it; `current_runtime()` for the surface |-- No module in this package initializes on the boot critical path (AP-26); everything is lazy.-- All writes to the society board go through `ToolExecutor.execute()`-gated actions (AP-3);- the scheduler — trusted Python, not an LLM — is the only component that turns `ASSIGN` events+REST: `jarvis/ui/web/society_routes.py` (`/api/society/…`, dynamic CLI `jarvis api society …`).+Contract test: `tests/contract/test_society_substrate.py`. Unit tests: `tests/unit/society/`.++Rules that bind everything here (see CLAUDE.md):++- Nothing initializes on the boot critical path (AP-26): the runtime is built on the first+ REST call or chat binding.+- All writes to the board go through `ToolExecutor.execute()`-gated actions (AP-3); the+ scheduler — trusted Python, not an LLM — is the only component that turns `ASSIGN` eventsinto worker spawns, and no spawn tool ever enters an agent tool set (AP-5/AP-14).-- `society.db` follows the `missions_schema.sql` conventions: WAL, persist-before-publish,- append-only events carrying `trace_id`.-- Enums crossing Python ↔ SQL ↔ Pydantic ↔ TS ↔ UI (`tier`, `state`, `msg_type`) use the- five-layer pattern plus a parity test (AP-4).-- Hard no-harm rule: no capability in this package may message, probe, or act on non-consenting- external parties at scale; the anti-harm blacklist class is part of M1, not an afterthought.+- Enums crossing Python ↔ SQL ↔ Pydantic ↔ TS ↔ UI use the five-layer pattern plus a parity+ test (AP-4): add a member in `events.py` first, then follow the parity test.+- Hard no-harm rule: no capability in this package may message, probe, or act on+ non-consenting external parties at scale.++Frontend seam: `src/components/society/data.ts` swaps its sample roster for+`GET /api/society/agents` (rows are `SocietyAgentRow` in `src/lib/societyApi.ts`, snake_case).