Unclassified

IntegrateWise Integration Plan

Tier C β€” Historical. This document is a point-in-time snapshot preserved for reference. For current architecture, see CANONICAL_PLATFORM_ARCHITECTURE.md.

Post-Surprise Revelation Update

Date: February 26, 2026


🎯 THE REVELATION

Frontend Status: 95% Complete (Figma Make Generated, Rated 5/5 by Claude Opus 4.6)
Backend Status: 90% Complete (L0-L3 Architecture)
Timeline: 2-4 Weeks (was 5-6 months)
Shift: From "Build" to "Integrate"


πŸ“Š Current State Analysis

What EXISTS (Confirmed)

L3: Adaptive Spine (Universal Backend)

ComponentStatusLocation
8-Stage Ingestion Pipelineβœ… Completeservices/loader/
Normalizer Acceleratorβœ… Completeservices/normalizer/
Spine Schema Registryβœ… Completeservices/spine/
Context Storeβœ… CompleteNeon PostgreSQL + R2
200+ Tool Connectorsβœ… Completepackages/connectors/
Dual-Write Systemβœ… CompletePipeline Stage 8
MCP Connectorβœ… Completeservices/mcp-connector/

L2: Cognitive Brain (Intelligence Layer)

ComponentStatusLocation
Think Engineβœ… Completeservices/think/
Evidence Fabricβœ… Completeservices/think/narrative.ts
Signal Engineβœ… Completeservices/think/fusion.ts
Govern/Policy Brainβœ… Completeservices/govern/
Act Engine⚠️ Partialservices/act/ (needs wiring)
Learning Loop⚠️ PartialNeeds L3β†’L2 trigger

L1: Workspace Layer (UI)

ComponentStatusLocation
Figma Make Frontendβœ… 95% CompleteDesktop folder
Marketing Pagesβœ… Just Createdapps/web/(marketing)/
Unified Shell⚠️ PartialNeeds integration
Domain Shells⚠️ StubbedNeed wiring
RBAC Systemβœ… Completepackages/rbac/

πŸ”Œ THE WIRING GAPS (Critical Path)

Gap 1: L3 β†’ L2 Trigger

Problem: After data ingestion, Think Engine isn't auto-triggered
Solution: Add event emitter from pipeline Stage 8 β†’ Think Engine
Files: services/loader/pipeline.ts β†’ services/think/index.ts

Gap 2: L2 β†’ L1 Badges

Problem: Completeness scores don't show in UI
Solution: Wire spine_entity_completeness β†’ Frontend badges
Files: services/spine/ β†’ apps/web/components/ui/badge

Gap 3: Act Engine β†’ UI

Problem: Approved actions don't execute
Solution: Connect Govern approval β†’ Act execution β†’ Tool write-back
Files: services/govern/ β†’ services/act/ β†’ Connectors

Gap 4: Domain Shell Integration

Problem: Personal/CSM/Business shells exist but aren't wired
Solution: Import Figma components β†’ Wire to UnifiedShell
Files: components/domains/*/shell.tsx


πŸš€ 2-4 Week Integration Roadmap

Week 1: Foundation (Days 1-7)

Day 1-2: Environment Setup

  • Copy Figma Make frontend to apps/web/src/figma/
  • Resolve package imports (@integratewise/*)
  • Build packages in correct order

Day 3-4: L3β†’L2 Wiring

  • Add event bus between loader and think
  • Test: Ingest data β†’ See Think Engine process
  • Verify signals appear in signals table

Day 5-7: L2β†’L1 Badges

  • Create completeness API endpoint
  • Wire badges to spine_entity_completeness
  • Test: Entity updates β†’ Badge updates in real-time

Week 2: Domain Integration (Days 8-14)

Day 8-10: Personal Workspace

  • Import Personal shell from Figma
  • Wire to RBAC (personal role)
  • Connect to Spine for data

Day 11-12: CSM Workspace

  • Import CSM shell from Figma
  • Wire account health scoring
  • Connect risk signals to UI

Day 13-14: Business Workspace

  • Import Business shell from Figma
  • Wire pipeline/analytics views
  • Test cross-domain navigation

Week 3: Act/Govern Flow (Days 15-21)

Day 15-17: Approval Flow

  • Wire HITL approval UI
  • Connect Govern policies
  • Test: AI suggests β†’ Human approves β†’ Action executes

Day 18-19: Tool Write-Back

  • Wire Act Engine to connectors
  • Test: Approval β†’ API call to external tool
  • Verify audit trail logging

Day 20-21: Learning Loop

  • Wire approval/rejection feedback
  • Test: System learns from decisions
  • Verify Adjust component updates

Week 4: Polish & Deploy (Days 22-28)

Day 22-24: E2E Testing

  • Full flow: Ingest β†’ Think β†’ Suggest β†’ Approve β†’ Act
  • Performance testing (200ms response target)
  • Mobile responsiveness (PWA)

Day 25-26: Monitoring

  • Add OpenTelemetry tracing
  • Set up alerting
  • Create runbooks

Day 27-28: Production Deploy

  • Deploy to Cloudflare
  • Configure custom domains
  • Go live

πŸ“ File Organization

New Structure

apps/web/src/
β”œβ”€β”€ (marketing)/           # Landing pages (DONE)
β”‚   β”œβ”€β”€ layout.tsx
β”‚   β”œβ”€β”€ pricing/
β”‚   β”œβ”€β”€ security/
β”‚   β”œβ”€β”€ about/
β”‚   └── contact/
β”œβ”€β”€ (app)/                 # App shell (WIP)
β”‚   β”œβ”€β”€ layout.tsx
β”‚   └── personal/          # Figma import
β”œβ”€β”€ figma/                 # Figma Make components
β”‚   β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ pages/
β”‚   └── styles/
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ motion/            # Animation components (DONE)
β”‚   β”œβ”€β”€ shell/             # UnifiedShell
β”‚   └── domains/           # Domain shells
└── lib/
    β”œβ”€β”€ spine/             # Spine client
    └── supabase/          # Auth

πŸ”§ Technical Tasks

Priority 1: Fix Package Resolution

# Build order for packages
1. packages/types
2. packages/lib
3. packages/db
4. packages/rbac
5. packages/connectors
6. packages/accelerators
7. packages/supabase

Priority 2: Fix Import Paths

  • ../../spine/spine-client β†’ @/lib/spine/client
  • @integratewise/connectors β†’ Build first
  • @integratewise/rbac β†’ Build first

Priority 3: Event Bus

// L3 β†’ L2 Event Bus
interface PipelineEvent {
  type: "INGESTION_COMPLETE";
  payload: {
    tenantId: string;
    entityType: string;
    entityId: string;
  };
}

// Emit from pipeline Stage 8
// Listen in Think Engine

βœ… Success Criteria

Week 1 Success

  • pnpm build completes without errors
  • L3β†’L2 events flow correctly
  • Badges update in real-time

Week 2 Success

  • All 3 domain shells render
  • RBAC correctly routes users
  • Data flows from Spine to UI

Week 3 Success

  • HITL approval flow works end-to-end
  • Tool write-back executes correctly
  • Audit trails are complete

Week 4 Success

  • <200ms API response time
  • Zero critical bugs
  • Production deployed

πŸŽ‰ The Outcome

BEFORE: 5-6 months to production
AFTER:  2-4 weeks to production

The game has changed. We're not buildingβ€”we're wiring.

Document created: February 26, 2026
Based on: SURPRISE_REVEALED.md + CHAT_SESSIONS_FEB_7_8_2026.md