Unclassified

IntegrateWise Platform Architecture

Status: SUPERSEDED PLATFORM SYNTHESIS. Retained for provenance. Current authority is
INTEGRATEWISE_ARCHITECTURE.md v2.2; Platform is a
control/observation/configuration surface and never a second projection or execution authority.

Executive Summary

IntegrateWise is an operational continuity workspace. It brings context from the systems a company already uses into a governed, role-aware product experience. The platform does not replace every system of record; it creates a coherent operational layer across them.

The system is built around one non-negotiable separation:

Product owns experience. Platform owns capability. Providers are configurable execution substrates.

This keeps user-facing workflows independent of infrastructure vendors, AI vendors, and execution transport. Product surfaces call stable Platform contracts. Provider adapters implement those contracts. Deployment configuration determines which adapters are active.

The Three Planes

flowchart TB
  Product["Product Plane\nLanding · Auth · Onboarding · Workbench · Governance · Twin"]
  Platform["IntegrateWise Platform\n15 stable capability domains"]
  Providers["Provider Plane\nAuth · DB · Cache · Queue · Storage · Vector · AI · MCP · OAuth · Billing · Analytics"]
  Product -->|"Platform SDK / API"| Platform
  Platform -->|"Provider contracts"| Providers

Boundary rules

  • Product code consumes Platform capabilities and never selects providers.
  • Platform domains own contracts, canonical state boundaries, policy, and resolution.
  • Provider adapters are the only layer that imports vendor SDKs or bindings.
  • Deployment configuration selects infrastructure. Application architecture does not.

The 15 Platform Domains

#DomainPlatform responsibility
01IdentityAuthentication contract, sessions, users, organizations, RBAC, and service identity.
02TenancyTenant lifecycle, isolation, memberships, environments, and tenant context.
03ConfigurationRuntime, provider, tenant, feature-policy, and secrets-reference configuration.
04SpineCanonical entities, identifiers, state ownership, entity graph, and canonical writes.
05MemoryUser, work, and organization memory; retrieval; promotion; compaction; lifecycle.
06ContinuityContext bundles, hydration, workspace transitions, and operational history.
07IntegrationConnector catalog, connection lifecycle, OAuth abstraction, sync, and ingestion.
08CapabilityCapability registry, tools, actions, permissions, and provider-backed capabilities.
09AIAI runtime, models, providers, gateway, routing, embeddings, and reranking.
10GovernancePolicy, evidence, approvals, HITL, audit, and AI/action permission boundaries.
11ExecutionJobs, workflows, queues, orchestration, retries, schedules, and event execution.
12CommunicationEmail, notifications, webhooks, delivery channels, and templates.
13CommercialPlans, entitlements, metering, usage, and billing abstraction.
14OperationsObservability, audit logs, health, analytics, telemetry, and admin operations.
15DeveloperSDKs, API contracts, MCP exposure, webhooks, CLI, schemas, and extensions.

Domains are stable even when underlying providers change.

Provider Independence

Every infrastructure concern is expressed through a Platform contract and implemented by one or more adapters. A product surface asks for capability, not a vendor.

ConcernPlatform contractExample interchangeable adapters
Canonical stateSpineStoreSupabase, Postgres, D1
AuthenticationAuthProviderDescope, Clerk, Supabase Auth, custom OIDC
CacheCacheProviderCloudflare KV, Upstash, Redis, memory
AI inferenceAIProviderOpenAI, Anthropic, Google, OpenRouter, Azure, Bedrock, local inference
AI transportAIGatewayDirect, Cloudflare AI Gateway, OpenRouter, LiteLLM, internal Hermes
Operational integrationsConnector / OAuth contractsNango, MCP, direct OAuth, custom connectors

AI decision chain

Twin requests intelligence by intent. Hermes orchestrates execution. Governance determines permission. The model router selects the capability and model. The gateway selects transport. The provider performs inference.

flowchart LR
  Twin[Twin request] --> Hermes[Hermes runtime]
  Hermes --> Policy[Governance policy]
  Policy --> Router[Model router]
  Router --> Gateway[AI gateway]
  Gateway --> Provider[Configured AI provider]
  Provider --> Result[Governed result]

No model owns truth or workflow state. No product surface needs to know a model name or AI vendor.

Canonical State and Governance

Spine is canonical truth. Models, connectors, agents, and workflows do not write directly to canonical state. Writes cross governed state boundaries so that policy, evidence, approvals, execution, and audit stay available.

Every governed proposal can communicate:

  • what is proposed and why;
  • the actor, entity, capability, and evidence involved;
  • policy outcome, risk level, and required approval;
  • execution status and audit reference.

This turns governance into a legible product experience rather than a hidden confirmation step.

Integration and Configuration Are Different Authorities

QuestionIntegration ManagerConfiguration Manager
Primary authorityWhat external systems are connected?How should the platform behave?
OwnsConnector registry, connections, OAuth lifecycle, sync, health, capabilitiesRuntime, tenant, provider, feature-policy, and secrets-reference configuration
OutputConnected capabilityEffective configuration
CredentialsManages references and connection bindingNever owns credentials

The Integration Manager reaches external systems. The Configuration Manager resolves active adapters and runtime behavior. Neither authority replaces the Platform contract.

Product/Platform Delivery Contract

The Live product builds against the same Platform contract in all environments.

Page → Surface → Hook / Query → Platform Client → Platform API
  • The frontend never imports provider SDKs.
  • UI components do not branch on mock versus remote mode.
  • Mock APIs reproduce real contracts, status codes, pagination, errors, and state transitions.
  • A UI view model may adapt data for presentation but does not become state authority.

The canonical API namespace starts with /api/platform/v1 and is partitioned by the 15 domains. This allows a working product to use mocks while Platform services mature behind the same surface.

Admin Boundary

Admin experience belongs to Live. Admin authority belongs to Platform.

The Live product provides operator-facing administration screens. The Platform provides governed APIs for tenant operations, provider configuration, model routing, connector administration, health, entitlements, audit, and operational controls.

Architecture Laws

  1. Product owns experience. Platform owns capability.
  2. Platform contracts are canonical; providers are replaceable.
  3. Provider SDKs do not cross into product code or domain services outside their adapters.
  4. No model, agent, connector, or workflow writes directly to Spine.
  5. Deployment configuration selects infrastructure; application architecture does not.

What This Enables

  • A coherent product can evolve while back-end providers change.
  • AI can be governed by policy, data sensitivity, cost, latency, and capability needs.
  • Connected-tool data can become operational context rather than isolated events.
  • The same product surface works with mock APIs today and a live Platform runtime tomorrow.
  • Teams can add providers and connectors without redesigning user workflows.