Unclassified

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

DocumentPurposeWhen to Read
INTEGRATEWISE_CANONICAL_ARCHITECTURE.mdMaster architectureAlways start here
ARCHITECTURE_UPDATE_2026-06-09.mdWhat changed todayAfter master doc
INTEGRATEWISE_PRODUCT_ARCHITECTURE.mdLegacy product docFor historical context

Twin Layer

DocumentPurposeWhen to Read
TWIN_AS_COGNITIVE_ORCHESTRATOR.mdTwin Runtime detailsBuilding Twin
TWIN_VOICE_INTERFACE.mdVoice integrationAdding voice
TWIN_BROWSER_EXECUTION.mdBrowser automationAdding browser agent

Memory Layer

DocumentPurposeWhen to Read
MEMORY_GOVERNANCE_DOCTRINE.mdMemory write rulesUnderstanding memory
memory-pipeline-episode.jsonBook of Records episodeExample format
triage-output-schema.tsTypeScript schemaImplementing Triage Bot
owui-skill-manifest.mdSkills documentationWiring OWUI to Twin

Data Layer

DocumentPurposeWhen to Read
ENTITY_BINDING_AND_RELATIONSHIPS.mdSpine architectureUnderstanding entities
MCP_ADK_ROUTING_SPINE_MEMORY_ARCHITECTURE.mdMCP + ADKBuilding integrations

Product Layer

DocumentPurposeWhen to Read
LAYER_OWNERSHIP_AND_TWIN_RUNTIME.mdS/U/V/CZ layersUnderstanding surfaces
FRONTEND_LAYER_MAP.mdFrontend surfacesBuilding UI
CANONICAL_TAXONOMY.mdTerminologyLearning 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)

  1. Episode โ€” Time-bounded chapter
  2. Decision โ€” Explicit choice + rationale
  3. Learning โ€” Takeaway for future work
  4. Commitment โ€” What we agreed to do
  5. Fact โ€” Verifiable institutional fact
  6. 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):

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:

  1. OWUI (Chat) โ€” twin.integratewise.ai
  2. Voice (Speak) โ€” x.ai STT + TTS
  3. API (Programmatic) โ€” twin.dev.integratewise.ai/v1/chat/completions
  4. CLI (Terminal) โ€” iw twin ask "..." (planned)
  5. Email (Async) โ€” twin@integratewise.ai (planned)
  6. Mobile (App) โ€” iOS + Android (planned)

MANY EXECUTION PROVIDERS

Twin proposes, Governance approves, Act dispatches:

  1. APIs โ€” HubSpot, Jira, Salesforce, Gmail, Slack, etc.
  2. Browser Agent โ€” Playwright (VPS) + Puppeteer (CF)
  3. MCP Tools โ€” 20 canonical tools
  4. Workflows โ€” CF Workflows (durable execution)
  5. Human Tasks โ€” Manual workflows (L2 UI)
  6. 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

  1. Read: INTEGRATEWISE_CANONICAL_ARCHITECTURE.md
  2. Read: MCP_ADK_ROUTING_SPINE_MEMORY_ARCHITECTURE.md
  3. Use: ADK REST APIs or TypeScript SDK
  4. Query: Spine entities, Memory, Signals
  5. Build: Custom L1 views

For Developers Extending Twin

  1. Read: TWIN_AS_COGNITIVE_ORCHESTRATOR.md
  2. Read: owui-skill-manifest.md
  3. Create: New MCP tool
  4. Define: Skill YAML (when to use, inputs, outputs)
  5. Test: Via OWUI

For Developers Building Execution Providers

  1. Read: TWIN_BROWSER_EXECUTION.md
  2. Implement: Execution provider (API, browser, MCP, etc.)
  3. Wire: To Act service
  4. Test: Proposal โ†’ Approval โ†’ Execution
  5. Verify: Outcome recorded via Triage Bot

For AI Agents Connecting via MCP

  1. Read: MCP_ADK_ROUTING_SPINE_MEMORY_ARCHITECTURE.md
  2. OAuth: Connect to mcp.integratewise.ai
  3. Discover: 20 canonical tools
  4. Use: SPINE., MEMORY., PROPOSAL., KB. tools
  5. 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

TermDefinition
TwinPersistent cognitive orchestrator (not a chatbot)
SpineCanonical entity graph across all tools
MemoryInstitutional knowledge (Book of Records format)
Triage BotSole memory writer (Book of Records format)
Book of Records6 primitives (episode, decision, learning, commitment, fact, action_item)
MCPModel Context Protocol (20 tools, OAuth 2.0)
ADKApplication Development Kit (REST APIs, SDK, webhooks)
OWUIOpen WebUI (ONE interface to Twin, not the Twin itself)
Voicex.ai STT + TTS (ONE interface to Twin)
Browser AgentPlaywright automation (ONE execution provider)
GovernanceHITL approval gate (proposal โ†’ review โ†’ approve/reject)
ActExecution coordinator (dispatches to providers)
PipelineSole Spine writer (8-stage normalizer)
Entity 360Complete context view for an entity
SignalEntity change event (health drop, stall, anomaly)
ProposalGoverned action (Twin proposes, human approves)

๐Ÿ”— External Resources


๐Ÿ“ž 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.