# lapagayo/axiom architecture

> Architecture diagram of the GitHub repository lapagayo/axiom, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lapagayo/axiom
- Repository: https://github.com/lapagayo/axiom

## Overview

Axiom is a goal-driven engineering control plane: a user supplies a Mission, which becomes a versioned plan and dependency-aware Task graph; specialized Agents work in isolated worktrees, submissions are independently verified, and approved changes are integrated with evidence and human governance. It reuses Orca’s Execution Kernel for terminal, Git, worktree, Agent-session, and remote execution. The graph preserves that documented workflow alongside sampled review and search capabilities. Several core control-plane implementations were not among the excerpts, so their links rely on the README rather than inspected call sites.

Main entry points: [`src/main/runtime/rpc/methods/orchestration-structured-worker-session.ts`](https://github.com/lapagayo/axiom/blob/main/src/main/runtime/rpc/methods/orchestration-structured-worker-session.ts) (Specialized Agents), [`src`](https://github.com/lapagayo/axiom/tree/main/src) (Mission Goal), [`src/main/runtime/orchestration`](https://github.com/lapagayo/axiom/tree/main/src/main/runtime/orchestration) (Agent Coordination), [`src/shared/orchestration-worker-output.ts`](https://github.com/lapagayo/axiom/blob/main/src/shared/orchestration-worker-output.ts) (Agent Submissions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Mission Planning"]
  node_mission["Mission Goal"]
  node_plan["Versioned Plan"]
  node_tasks["Task Graph"]
end

subgraph group_execution["Agent Execution"]
  node_coordinator["Agent Coordination"]
  node_agents["Specialized Agents"]
  node_worktrees["Isolated Worktrees"]
end

subgraph group_assurance["Verification &amp; Integration"]
  node_submission["Agent Submissions"]
  node_verification["Independent Verification"]
  node_governance["Human Governance"]
  node_integration["Approved Integration"]
end

subgraph group_kernel["Execution Kernel &amp; Clients"]
  node_kernel["Execution Kernel"]
  node_terminal_git["Terminal &amp; Git"]
  node_mobile_review["Mobile Diff Review"]
  node_review_queue["Review Queue"]
  node_search["Session Search"]
  node_search_db[("Search Database<br/>[sync-database.ts]")]
end

node_user(("User"))

node_user -->|"sets goal"| node_mission
node_mission -->|"generates plan"| node_plan
node_plan -->|"forms graph"| node_tasks
node_tasks -->|"coordinates work"| node_coordinator
node_coordinator -->|"dispatches agents"| node_agents
node_agents -->|"works in isolation"| node_worktrees
node_agents -->|"submits work"| node_submission
node_submission -->|"verifies independently"| node_verification
node_verification -->|"presents evidence"| node_governance
node_governance -->|"approves changes"| node_integration
node_integration -->|"uses execution services"| node_kernel
node_kernel -->|"provides execution"| node_terminal_git
node_mobile_review -->|"builds queue"| node_review_queue
node_search -->|"queries database"| node_search_db

click node_mission "https://github.com/lapagayo/axiom/tree/main/src"
click node_plan "https://github.com/lapagayo/axiom/tree/main/src"
click node_tasks "https://github.com/lapagayo/axiom/tree/main/src"
click node_coordinator "https://github.com/lapagayo/axiom/tree/main/src/main/runtime/orchestration"
click node_agents "https://github.com/lapagayo/axiom/blob/main/src/main/runtime/rpc/methods/orchestration-structured-worker-session.ts"
click node_worktrees "https://github.com/lapagayo/axiom/tree/main/src/main"
click node_submission "https://github.com/lapagayo/axiom/blob/main/src/shared/orchestration-worker-output.ts"
click node_verification "https://github.com/lapagayo/axiom/tree/main/src"
click node_governance "https://github.com/lapagayo/axiom/tree/main/src"
click node_integration "https://github.com/lapagayo/axiom/tree/main/src"
click node_kernel "https://github.com/lapagayo/axiom/tree/main/src/main"
click node_terminal_git "https://github.com/lapagayo/axiom/tree/main/src/main"
click node_mobile_review "https://github.com/lapagayo/axiom/blob/main/mobile/src/session/use-mobile-diff-review-controller.ts"
click node_review_queue "https://github.com/lapagayo/axiom/blob/main/mobile/src/session/mobile-diff-review-queue.ts"
click node_search "https://github.com/lapagayo/axiom/blob/main/src/main/ai-vault-search/session-search-engine.ts"
click node_search_db "https://github.com/lapagayo/axiom/blob/main/src/main/sqlite/sync-database.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mission,node_plan,node_tasks,node_user toneBlue
class node_coordinator,node_agents,node_worktrees toneAmber
class node_submission,node_verification,node_governance,node_integration toneMint
class node_kernel,node_terminal_git,node_mobile_review,node_review_queue,node_search,node_search_db toneRose
```

## Components

### Mission Planning

- [Mission Goal](https://github.com/lapagayo/axiom/tree/main/src): `src`
- [Versioned Plan](https://github.com/lapagayo/axiom/tree/main/src): `src`
- [Task Graph](https://github.com/lapagayo/axiom/tree/main/src): `src`

### Agent Execution

- [Agent Coordination](https://github.com/lapagayo/axiom/tree/main/src/main/runtime/orchestration): `src/main/runtime/orchestration`
- [Specialized Agents](https://github.com/lapagayo/axiom/blob/main/src/main/runtime/rpc/methods/orchestration-structured-worker-session.ts): `src/main/runtime/rpc/methods/orchestration-structured-worker-session.ts`
- [Isolated Worktrees](https://github.com/lapagayo/axiom/tree/main/src/main): `src/main`

### Verification & Integration

- [Agent Submissions](https://github.com/lapagayo/axiom/blob/main/src/shared/orchestration-worker-output.ts): `src/shared/orchestration-worker-output.ts`
- [Independent Verification](https://github.com/lapagayo/axiom/tree/main/src): `src`
- [Human Governance](https://github.com/lapagayo/axiom/tree/main/src): `src`
- [Approved Integration](https://github.com/lapagayo/axiom/tree/main/src): `src`

### Execution Kernel & Clients

- [Execution Kernel](https://github.com/lapagayo/axiom/tree/main/src/main): `src/main`
- [Terminal & Git](https://github.com/lapagayo/axiom/tree/main/src/main): `src/main`
- [Mobile Diff Review](https://github.com/lapagayo/axiom/blob/main/mobile/src/session/use-mobile-diff-review-controller.ts): `mobile/src/session/use-mobile-diff-review-controller.ts`
- [Review Queue](https://github.com/lapagayo/axiom/blob/main/mobile/src/session/mobile-diff-review-queue.ts): `mobile/src/session/mobile-diff-review-queue.ts`
- [Session Search](https://github.com/lapagayo/axiom/blob/main/src/main/ai-vault-search/session-search-engine.ts): `src/main/ai-vault-search/session-search-engine.ts`
- [Search Database](https://github.com/lapagayo/axiom/blob/main/src/main/sqlite/sync-database.ts): `src/main/sqlite/sync-database.ts`

### Other components

- **User**

## Connections

- User → Mission Goal: sets goal
- Mission Goal → Versioned Plan: generates plan
- Versioned Plan → Task Graph: forms graph
- Task Graph → Agent Coordination: coordinates work (evidence: `src/main/runtime/rpc/methods/orchestration-structured-worker-session.ts`)
- Agent Coordination → Specialized Agents: dispatches agents (evidence: `src/main/runtime/rpc/methods/orchestration-structured-worker-session.ts`)
- Specialized Agents → Isolated Worktrees: works in isolation (evidence: `src/main/runtime/rpc/methods/orchestration-structured-worker-session.ts`)
- Specialized Agents → Agent Submissions: submits work
- Agent Submissions → Independent Verification: verifies independently
- Independent Verification → Human Governance: presents evidence
- Human Governance → Approved Integration: approves changes
- Approved Integration → Execution Kernel: uses execution services (evidence: `src/main/ai-vault-search/session-search-engine.ts`)
- Execution Kernel → Terminal & Git: provides execution
- Mobile Diff Review → Review Queue: builds queue (evidence: `mobile/src/session/use-mobile-diff-review-controller.ts`)
- Session Search → Search Database: queries database (evidence: `src/main/ai-vault-search/session-search-engine.ts`)
