Superseded

IntegrateWise — Final Product Architecture & System Spec

Version: 1.0.0
Status: SUPERSEDED — historical July 27 synthesis
Date: July 27, 2026

Do not implement from this file. It contains superseded D1-truth, Triage
writer, Flow D and public naming claims. Current authority is
INTEGRATEWISE_ARCHITECTURE.md v2.2 and
SPEC_AMENDMENTS_v1.md.


1. What IntegrateWise Is

One workspace. One trust boundary. One Integration Manager. Everything else is a projection.

IntegrateWise is a Continuity Platform — not a dashboard, connector catalogue, AI chatbot, automation engine, memory provider, or CRM replacement.

Core doctrines:

  • Truth you own. AI you rent. Approval in between.
  • Normalize once. Render anywhere.
  • Models change. Memory does not.

2. Canonical Naming

ConceptResponsibility
IntegrateWiseContinuity Platform
Adaptive Spine / Digital MemoryCanonical operational truth, context, lineage, relationships, governed memory
User WorkbenchHuman-facing role/department/context-aware projection over the Spine
TwinUser-facing cognitive orchestrator — reads, reasons, explains, proposes
Co-workerOperational role of the Twin — investigates, prepares, executes, verifies
Triage BotIntake classifier and governed canonical memory writer
GovernancePolicy evaluation, approval, authority, audit
Capability FabricDiscovers and resolves executable capabilities and adapters
HermesInternal execution/orchestration runtime — NOT a second AI brain
Continuity FabricPersistent schedules, events, retries, monitoring, reconciliation, closure
Continuity BridgeMCP/OAuth/API transport between external AI and IntegrateWise
IW-Spine-NetworkExternal marketplace connector — user's entry point to IntegrateWise
IW Spine ToolsSemantic MCP/API tool surface exposed through IW-Spine-Network
One Auth-to-EcosystemIdentity, tenant, consent, scope bootstrap
Integration ManagerExternal systems, connections, OAuth, webhooks, sync, connector health
MCP PoolCustomer Zero infrastructure only — not mandatory for tenants
Connector MarketplaceIn-product discovery and activation of source systems

3. V1 Infrastructure

Cloudflare-first product plane.

StoreRole
D1Operational Spine, canonical active state
KVHot context, cache, short-lived runtime state
Durable ObjectsSession state, Twin working context, agent checkpoints, continuity coordination
R2Raw payloads, files, evidence, archives
VectorizeSemantic retrieval index
QueuesAsynchronous pipelines
AI GatewayModel/provider access
Neon FortressHistory, audit replication, recovery, analytics (outside hot path)

4. Complete System Flow

User / External AI / Tool Marketplace / Workbench
                    ↓
        IW-Spine-Network / Bridge
                    ↓
         One Auth-to-Ecosystem
                    ↓
        Tenant + Workspace Resolution
                    ↓
           Integration Manager
                    ↓
    Connector / MCP / API / Webhook Fabric
                    ↓
                  LOAD
                    ↓
    CLASSIFY → NORMALIZE → RESOLVE → VALIDATE
                    ↓
            POLICY EVALUATION
                    ↓
           CANONICAL SPINE WRITE
                    ↓
       Entity 360 ←→ Memory / Knowledge
                    ↓
          Projection Engine
                    ↓
         Workbench / Twin Context
                    ↓
          Twin THINK / PROPOSE
                    ↓
         Governance / APPROVE
                    ↓
         Capability Resolver
                    ↓
      Hermes / Execution Runtime
                    ↓
         Source-System Action
                    ↓
       Verify and Reconcile
                    ↓
      Update Spine → Learn → Continue

Frozen runtime sequence: Enter → Authenticate → Resolve → Connect → Ingress → Load → Normalize → Store → Project → Think → Approve → Act → Repeat/Reconcile


5. Model Architecture (Model & Provider Agnostic)

5.1 Model Pool

AliasPurposeDefault
iw-fastClassification, extraction, routing, TriageGemini 3.5 Flash-Lite
iw-thinkTwin reasoning, planning, proposalsGemini 3.6 Flash
iw-deepComplex reasoning, governance-sensitiveGPT-5 Pro / Claude Opus 4.1
iw-local-fastPrivate/edge, fallbackGLM-4.7-Flash
iw-local-reasonLocal reasoning, restricted egressgpt-oss-120b
iw-embedKnowledge indexing, semantic searchQwen3-Embedding-0.6B
iw-rerankEvidence ordering, memory rankingBGE Reranker
iw-liveRealtime dialogue (deploy later)Gemini 3.1 Flash Live

Rule: Aliases are the contract. Providers are pluggable. No agent, worker, or frontend references a provider name.

5.2 Canonical Routing Policy

Deterministic sufficient? → No model
Classification/extraction? → iw-fast
Normal reasoning/planning? → iw-think
Complex/consequential? → iw-deep + Governance
Sensitive data? → iw-local-reason

6. Five Agentic Runtimes

6.1 Twin Runtime

Role: Cognitive orchestrator.

Observe → Orient → Reason → Explain → Plan → Propose → Monitor → Follow up

May: Answer, summarize, correlate, identify risks, draft, plan, recommend, propose, delegate, surface memory, follow up.

May NOT: Approve own actions, execute directly, mutate Spine, promote memory, store credentials, own truth.

Model routing: Normal → iw-think, Simple prep → iw-fast, Complex → iw-deep, Sensitive → iw-local-reason.

6.2 Triage Agent

Role: Sole governed cognitive and memory promotion path.

Conversation / Agent output / Document / Execution outcome
  → Triage
  → Fact / decision / commitment / proposal / knowledge / noise
  → Evidence + confidence
  → Governance
  → Promote / reject / retain

Model routing: Default iw-fast, Escalate iw-think for ambiguity/high value.

6.3 Auto-Tuner

Role: Adaptive workspace optimization.

Observes: Entities opened, views used, fields edited/ignored, Twin requests, blocked work.

Proposes: Navigation prioritization, field visibility, view ordering, grouping, contextual pages, capability placement, personal layouts.

Authority levels:

  • Ambient ranking → automatic
  • Personal preference → automatic with undo
  • Shared workspace change → user/team confirmation
  • Structural change → Governance approval
  • Schema/policy change → never direct

6.4 Connector/Schema Discovery Agent

Role: Schema and capability discovery during installation.

Discover → Recommend → Test → Human/governed approval → Publish mapping version → Replay

6.5 Verification/Reconciliation Agent

Role: Post-execution verification.

Approved intent → Provider action → Re-ingestion → Comparison → Verification → Reconciliation → Closure

7. Deterministic Services (No Models)

ServiceRole
Gateway / TenantGateDeterministic runtime
LoaderDeterministic writer
NormalizerDeterministic transformation pipeline
Identity ResolutionDeterministic-first with assisted review
Projection EngineDeterministic composer
Capability ResolverDeterministic registry + policy resolver
Governance EngineDeterministic policy + authority engine
HermesExecution coordinator
Sync EngineDeterministic convergence runtime
Continuity FabricDurable state machine + scheduler
Event Bus / QueuesInfrastructure
Model RouterIntelligence infrastructure

Key boundary: Hermes is NOT an AI agent. Projection Engine does NOT reason creatively.


8. Memory Architecture

8.1 Memory Types

TypePurpose
ConversationalRaw AI/human conversational continuity
WorkingShort-lived active session/task context
PersonalUser-private approved preferences/patterns
OrganizationalApproved shared facts, decisions, practices
EntityAccumulated meaning per entity
DecisionDecisions, rationale, authority, outcome
SignalHistorical signals, responses, outcomes
AgentAgent checkpoints, outcomes, learning
KnowledgeDocuments, runbooks, policies, references

8.2 Memory Lifecycle

Raw Conversation / Event
  → Memory Intake
  → Classification
  → Candidate Memory
  → Evidence Linking
  → Review
  → Promotion
  → Personal / Organizational / Entity Memory
  → Indexing
  → Contextual Read
  → Outcome Observation
  → Future Candidate

Rule: Nothing becomes organizational memory immediately. Triage Bot is the canonical memory writer.


9. Data Flows

Flow A — Structured Operational Truth

Connector → Loader → Ingestion Queue → Normalizer → Identity Resolution
  → Policy Evaluation → Spine Writer → Entity 360 → Signal Engine
  → Twin Trigger → Proposal → Governance → Capability Execution
  → Source Write-back → Re-ingestion → Reconciliation

Flow B — Context and Knowledge

Context Source → Loader → Raw Payload Preservation → Parse and Classify
  → Structured Metadata to Spine → Context Extraction → Knowledge Store
  → Chunking + Embedding → Entity Linking → Entity360 Context

Flow C — AI, Chat and Cognitive Output

AI Output / Chat → Conversational Buffer → Brainstorming Layer
  → Memory Intake Queue → Triage Bot → Classification
  → Candidate Memory/Knowledge/Proposal → Evidence + Confidence
  → Governance / Human Review → Personal/Organizational Memory
  → Re-index + Re-project

Rule: AI content never writes directly to the operational Spine.

Flow D — External AI and Tool Access

External AI / Tool / Agent
  → IW-Spine-Network / Continuity Bridge
  → One Auth-to-Ecosystem
  → Tenant + Workspace Resolution
  → IW Spine Tools (semantic surface)
  → Context Package Assembly
  → Twin / Capability Fabric
  → Governance / Approval
  → Capability Execution
  → Outcome Verification
  → Reconciliation
  → Memory Update (via Triage)

Rule: External AI never accesses raw Spine. Only semantic tools and governed context packages.


10. Governance

10.1 Authority Doctrine

AI proposes. Human decides. The platform executes only after human approval.

10.2 Approval Lifecycle

Draft → Proposed → Awaiting Human Review → Approved/Rejected/Modified/Deferred
  → Executing → Outcome Received → Verification Required → Verified
  → Reconciled → Closed

10.3 Governance Decisions

  • Read-only allowed
  • Auto-approved low-risk
  • Human approval required
  • Additional evidence required
  • Step-up authentication required
  • Rejected
  • Blocked by policy

11. Platform Plane Components

Identity and Tenancy

Identity, Tenant, Workspace, Membership, RBAC, Consent, Session Policy

Configuration

Configuration Manager, Provider Management, Feature Flags, Schema Registry, Canonical Ontology

Integration

Integration Manager, Connector Registry, MCP Registry, Webhook Manager, Sync Manager, Connection Health, Secret References

Data

Loader, Normalizer, Entity Resolution, Spine Writer, Adaptive Spine, Entity360, Projection Engine, Search, Fortress Replication

Memory and Knowledge

Conversational Intake, Triage Bot, Memory Promotion, Organizational Memory, Personal Memory, Agent Memory, Knowledge Platform, Vector Indexing

Intelligence

Twin, Context Assembler, Signal Engine, AI Gateway, Model Router, Provider Adapters, Skills and Agents

Control and Execution

Governance, Approval Service, Capability Fabric, Continuity Fabric, Hermes Runtime, Workflow Engine, Scheduler, Notifications, Reconciliation

Platform Operations

Audit, Observability, Usage and Cost, Billing, Admin APIs, Deployment Controls, Recovery, Support Operations


12. Product Plane

Owns: Marketing, Signup, Onboarding, Activation Hub, Connector Marketplace, Workbench, Founder Ops, Twin Interaction, Knowledge/Memory surfaces, Promotion Queue, Approval Centre, Integration Status, Platform-admin projections.

Does NOT own: Provider SDKs, Canonical database access, Raw secrets, Direct connector execution, Independent governance logic, Independent AI routing logic.


13. Acceptance Checklist

Activation

  • Marketplace user installs IW-Spine-Network
  • One Auth establishes tenant/workspace
  • Existing marketplace authorization reused
  • User connects one real source
  • Creamy Load produces useful context
  • Workbench displays value before deep hydration

Ingestion

  • Full/Delta/Webhook ingestion works
  • Duplicates do not duplicate canonical entities
  • Identity resolution works
  • Unresolved records enter quarantine

Schema Change

  • Drift detected
  • Unsafe writes pause/degrade
  • Mapping proposal reviewed
  • Approved version published
  • Quarantined records replay

Twin

  • Answers from authorized context
  • Evidence and confidence displayed
  • Different model can continue from same context
  • Cannot directly write to Spine

Memory

  • AI chat enters Brainstorming/Intake
  • Triage classification works
  • Candidate memory shows evidence
  • Approval promotes, rejection prevents
  • Promoted memory retrievable with scope
  • Origin and lineage visible

Governance

  • Proposal effects visible
  • Correct approval policy applied
  • Approval token scoped and expiring
  • Unauthorized actor cannot approve
  • Revoked authority blocks execution

Execution

  • Capability Resolver selects healthy adapter
  • Hermes executes idempotently
  • Native source IDs captured
  • Failure retries safely
  • Permanent failure enters dead-letter

Reconciliation

  • Source outcome verified
  • Outcome re-ingested
  • Spine reflects verified state
  • Projection refreshes
  • Audit agrees with source and Spine

Security

  • Cross-tenant reads fail
  • Raw credentials never reach frontend or AI
  • Revoked connectors disable scheduled work
  • Audit records available

14. Prohibited Directions

  1. Do not redesign platform for every new connector
  2. Do not publish internal subsystems as separate marketplace products
  3. Do not turn Hermes into user-facing Twin
  4. Do not let Twin execute directly
  5. Do not let AI output directly mutate Spine
  6. Do not treat every chat message as organizational memory
  7. Do not let Workbench store independent truth
  8. Do not expose raw database/infrastructure publicly
  9. Do not require re-authorization when delegation exists
  10. Do not enable write-back by default
  11. Do not put raw credentials in schemas/MCP/capability definitions
  12. Do not make Schema AI part of deterministic hot path
  13. Do not treat Vectorize/KV/DOs as truth stores
  14. Do not expose Customer Zero MCP Pool as mandatory tenant concept
  15. Do not wait for complete hydration before showing value
  16. Do not expand architecture before Customer Zero demonstrates complete path

15. Final Definition

One Auth-to-Ecosystem
+ Integration Manager
+ Connector and MCP Fabric
+ AI Loader
+ Normalizer
+ Adaptive Spine
+ Digital Memory
+ Knowledge Platform
+ Entity360 and Projection Engine
+ Signal and Intelligence Engine
+ Twin
+ Triage Bot
+ Governance
+ Capability Fabric
+ Hermes Execution Runtime
+ Continuity Fabric
+ IW-Spine-Network
+ IW Spine Tools
+ Adaptive User Workbench
+ Activation Hub
+ Platform Operations

Operating loop:

Connect once → Load reality → Normalize into shared truth
→ Preserve context and memory → Project right work to each user
→ Let Twin reason with evidence → Let Governance decide authority
→ Let Capability Fabric resolve execution → Let Hermes perform approved work
→ Verify source outcome → Reconcile Spine → Learn through governed memory
→ Continue until loop is closed

One Auth establishes the ecosystem relationship. Digital Memory preserves context. Twin reasons. Governance authorizes. Capability Fabric executes. Continuity Fabric keeps work alive until source, Spine, and audit record are reconciled.