IntegrateWise Architecture 2.0 โ Documentation Guide
Version: 2.0
Date: 2026-06-09
Status: Canonical
๐ฏ Start Here
If you're new or returning after a break, read these in order:
1. The System Statement (30 seconds)
One Twin = Persistent cognitive orchestrator
One Spine = Operational truth substrate
One Memory = Institutional knowledge
One Governance Layer = HITL approval gate
One Bridge = MCP + ADK communication layer
Many Interfaces = OWUI, Voice, API, CLI, Email, Mobile
Many Execution Providers = APIs, Browser, MCP, Workflows, Human
Infinite Capabilities = Business outcomes
2. Master Architecture (15 minutes)
๐ docs/tech/INTEGRATEWISE_CANONICAL_ARCHITECTURE.md
This is THE definitive architecture document. Read this first.
3. Architecture Update (5 minutes)
๐ docs/ARCHITECTURE_UPDATE_2026-06-09.md
What changed today, why it matters, what's next.
๐ Core Architecture Documents
Foundation Layer
| Document | Purpose | When to Read |
|---|---|---|
INTEGRATEWISE_CANONICAL_ARCHITECTURE.md | Master architecture | Always start here |
ARCHITECTURE_UPDATE_2026-06-09.md | What changed today | After master doc |
INTEGRATEWISE_PRODUCT_ARCHITECTURE.md | Legacy product doc | For historical context |
Twin Layer
| Document | Purpose | When to Read |
|---|---|---|
TWIN_AS_COGNITIVE_ORCHESTRATOR.md | Twin Runtime details | Building Twin |
TWIN_VOICE_INTERFACE.md | Voice integration | Adding voice |
TWIN_BROWSER_EXECUTION.md | Browser automation | Adding browser agent |
Memory Layer
| Document | Purpose | When to Read |
|---|---|---|
MEMORY_GOVERNANCE_DOCTRINE.md | Memory write rules | Understanding memory |
memory-pipeline-episode.json | Book of Records episode | Example format |
triage-output-schema.ts | TypeScript schema | Implementing Triage Bot |
owui-skill-manifest.md | Skills documentation | Wiring OWUI to Twin |
Data Layer
| Document | Purpose | When to Read |
|---|---|---|
ENTITY_BINDING_AND_RELATIONSHIPS.md | Spine architecture | Understanding entities |
MCP_ADK_ROUTING_SPINE_MEMORY_ARCHITECTURE.md | MCP + ADK | Building integrations |
Product Layer
| Document | Purpose | When to Read |
|---|---|---|
LAYER_OWNERSHIP_AND_TWIN_RUNTIME.md | S/U/V/CZ layers | Understanding surfaces |
FRONTEND_LAYER_MAP.md | Frontend surfaces | Building UI |
CANONICAL_TAXONOMY.md | Terminology | Learning the language |
๐ Key Concepts
ONE TWIN
The Twin is NOT:
- โ A chatbot
- โ A UI (OWUI)
- โ A model (Grok-4.3)
- โ A profile (Hermes/Think/Fast)
The Twin IS:
- โ Persistent cognitive orchestrator
- โ Always-on (every 5 minutes, 24/7)
- โ Observes system state
- โ Reasons via OpenRouter Agents
- โ Proposes governed actions
- โ Coordinates execution
- โ Monitors outcomes
- โ Learns via Triage Bot
Location:
- VPS (dev):
twin-runtime.operations.integratewise.ai - CF Worker (prod):
services/twin-orchestrator/
ONE SPINE
What: Canonical entity graph across all tools
Entities:
- Person, Account, Deal, Task, Ticket, Invoice, Project, Email, Event, Document
Relationships:
- works_at, owns, assigned_to, related_to, reports_to, manages, created_by
Signals:
- Entity changes (health drop, stall, status change)
- Weak signals (anomalies, patterns, predictions)
Writer: Pipeline service (SOLE writer)
Readers: MCP tools, Twin, ADK
The Moat: 30+ connectors normalized into one graph
ONE MEMORY
Format: Book of Records (6 primitives)
- Episode โ Time-bounded chapter
- Decision โ Explicit choice + rationale
- Learning โ Takeaway for future work
- Commitment โ What we agreed to do
- Fact โ Verifiable institutional fact
- Action Item โ What needs addressing
Writer: Triage Bot ONLY (no direct writes)
Storage:
- Conversational Memory (staging book, 90 days TTL)
- Org Memory (promoted, permanent)
- Personal Memory (user-scoped, 90 days TTL)
Flow:
AI Worker โ AI Worker โ Triage Bot โ Conversational Memory
โ
โโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโ
โ โ โ
Search Index Governance Queue Promotion Queue
(auto) (review) (review)
โ
Org Memory
(approved)
ONE GOVERNANCE LAYER
Flow:
Twin โ Propose
โ
Governance Queue (proposal created)
โ
Human Reviews (L2 UI)
โ
Approve or Reject
โ (if approved)
Act Service โ Execute
โ
Triage Bot โ Record outcome
Rules:
- Read operations: No approval
- Write operations: Always approval
- High-risk actions: Require justification
- Browser automation: Requires step review
ONE BRIDGE
MCP (Model Context Protocol):
- 20 canonical tools
- OAuth 2.0 (RS256 JWT)
- Server: https://mcp.integratewise.ai
ADK (Application Development Kit):
- REST APIs (gateway.integratewise.ai)
- TypeScript SDK (@integratewise/sdk)
- React hooks (@integratewise/react)
- Webhooks (webhook-ingress)
MANY INTERFACES
All interfaces reach the same Twin Runtime:
- OWUI (Chat) โ twin.integratewise.ai
- Voice (Speak) โ x.ai STT + TTS
- API (Programmatic) โ twin.dev.integratewise.ai/v1/chat/completions
- CLI (Terminal) โ iw twin ask "..." (planned)
- Email (Async) โ twin@integratewise.ai (planned)
- Mobile (App) โ iOS + Android (planned)
MANY EXECUTION PROVIDERS
Twin proposes, Governance approves, Act dispatches:
- APIs โ HubSpot, Jira, Salesforce, Gmail, Slack, etc.
- Browser Agent โ Playwright (VPS) + Puppeteer (CF)
- MCP Tools โ 20 canonical tools
- Workflows โ CF Workflows (durable execution)
- Human Tasks โ Manual workflows (L2 UI)
- Webhooks โ Outbound notifications
๐๏ธ Implementation Status
โ Deployed (Production)
- Spine (entity resolution, relationships, signals)
- Pipeline (sole Spine writer)
- MCP OAuth 2.0 (20 tools)
- Governance (proposals, HITL, audit)
- Act (execution coordination)
- Memory tables (org, conversational, personal)
- OWUI (chat + voice)
- Intelligence worker
๐ง Designed (Ready for Implementation)
- Twin Runtime (VPS deployment planned)
- Triage Bot (schema complete)
- Browser Agent (VPS deployment planned)
- Skills (YAML manifests created)
๐ Planned (Next Phase)
- Twin Runtime โ CF Worker migration
- CLI interface
- Email interface
- Mobile app
- TTL job (memory aging)
- Publication worker
๐ Quick Start Guides
For Developers Building Custom Surfaces
- Read:
INTEGRATEWISE_CANONICAL_ARCHITECTURE.md - Read:
MCP_ADK_ROUTING_SPINE_MEMORY_ARCHITECTURE.md - Use: ADK REST APIs or TypeScript SDK
- Query: Spine entities, Memory, Signals
- Build: Custom L1 views
For Developers Extending Twin
- Read:
TWIN_AS_COGNITIVE_ORCHESTRATOR.md - Read:
owui-skill-manifest.md - Create: New MCP tool
- Define: Skill YAML (when to use, inputs, outputs)
- Test: Via OWUI
For Developers Building Execution Providers
- Read:
TWIN_BROWSER_EXECUTION.md - Implement: Execution provider (API, browser, MCP, etc.)
- Wire: To Act service
- Test: Proposal โ Approval โ Execution
- Verify: Outcome recorded via Triage Bot
For AI Agents Connecting via MCP
- Read:
MCP_ADK_ROUTING_SPINE_MEMORY_ARCHITECTURE.md - OAuth: Connect to mcp.integratewise.ai
- Discover: 20 canonical tools
- Use: SPINE., MEMORY., PROPOSAL., KB. tools
- Respect: Governance (propose, don't execute)
๐ Learning Path
Week 1: Understand the System
- Day 1: Read
INTEGRATEWISE_CANONICAL_ARCHITECTURE.md - Day 2: Read
ARCHITECTURE_UPDATE_2026-06-09.md - Day 3: Read
TWIN_AS_COGNITIVE_ORCHESTRATOR.md - Day 4: Read
MEMORY_GOVERNANCE_DOCTRINE.md - Day 5: Read
ENTITY_BINDING_AND_RELATIONSHIPS.md
Week 2: Build Something
- Day 1-2: Query Spine via MCP tools
- Day 3-4: Build custom L1 view
- Day 5: Create proposal workflow
Week 3: Extend the Twin
- Day 1-2: Create new MCP tool
- Day 3-4: Define skill YAML
- Day 5: Test via OWUI
๐ Glossary
| Term | Definition |
|---|---|
| Twin | Persistent cognitive orchestrator (not a chatbot) |
| Spine | Canonical entity graph across all tools |
| Memory | Institutional knowledge (Book of Records format) |
| Triage Bot | Sole memory writer (Book of Records format) |
| Book of Records | 6 primitives (episode, decision, learning, commitment, fact, action_item) |
| MCP | Model Context Protocol (20 tools, OAuth 2.0) |
| ADK | Application Development Kit (REST APIs, SDK, webhooks) |
| OWUI | Open WebUI (ONE interface to Twin, not the Twin itself) |
| Voice | x.ai STT + TTS (ONE interface to Twin) |
| Browser Agent | Playwright automation (ONE execution provider) |
| Governance | HITL approval gate (proposal โ review โ approve/reject) |
| Act | Execution coordinator (dispatches to providers) |
| Pipeline | Sole Spine writer (8-stage normalizer) |
| Entity 360 | Complete context view for an entity |
| Signal | Entity change event (health drop, stall, anomaly) |
| Proposal | Governed action (Twin proposes, human approves) |
๐ External Resources
- Live System: https://twin.operations.integratewise.ai
- MCP Server: https://mcp.integratewise.ai
- API Gateway: https://gateway.integratewise.ai
- Docs: https://docs.integratewise.ai
๐ Getting Help
For Architecture Questions
Read: INTEGRATEWISE_CANONICAL_ARCHITECTURE.md first
For Memory Questions
Read: MEMORY_GOVERNANCE_DOCTRINE.md
For Twin Questions
Read: TWIN_AS_COGNITIVE_ORCHESTRATOR.md
For Implementation Questions
Read: ARCHITECTURE_UPDATE_2026-06-09.md (what's ready, what's planned)
โ Before You Start Building
Checklist:
- Read
INTEGRATEWISE_CANONICAL_ARCHITECTURE.md - Understand: One Twin, One Spine, One Memory, One Governance, One Bridge
- Know: Many Interfaces, Many Execution Providers, Infinite Capabilities
- Understand: Twin โ OWUI โ Voice โ Browser Agent
- Understand: Memory writes via Triage Bot ONLY
- Understand: Proposals require HITL approval
- Know where to find: MCP tools, ADK APIs, TypeScript SDK
- Know the hierarchy: Canonical Architecture โ Domain Docs โ Implementation Guides
Last Updated: 2026-06-09
Version: 2.0
Status: Canonical
This is IntegrateWise 2.0.
One Twin. One Spine. One Memory. One Governance. One Bridge.
Many Interfaces. Many Execution Providers. Infinite Capabilities.