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)
| Component | Status | Location |
|---|---|---|
| 8-Stage Ingestion Pipeline | β Complete | services/loader/ |
| Normalizer Accelerator | β Complete | services/normalizer/ |
| Spine Schema Registry | β Complete | services/spine/ |
| Context Store | β Complete | Neon PostgreSQL + R2 |
| 200+ Tool Connectors | β Complete | packages/connectors/ |
| Dual-Write System | β Complete | Pipeline Stage 8 |
| MCP Connector | β Complete | services/mcp-connector/ |
L2: Cognitive Brain (Intelligence Layer)
| Component | Status | Location |
|---|---|---|
| Think Engine | β Complete | services/think/ |
| Evidence Fabric | β Complete | services/think/narrative.ts |
| Signal Engine | β Complete | services/think/fusion.ts |
| Govern/Policy Brain | β Complete | services/govern/ |
| Act Engine | β οΈ Partial | services/act/ (needs wiring) |
| Learning Loop | β οΈ Partial | Needs L3βL2 trigger |
L1: Workspace Layer (UI)
| Component | Status | Location |
|---|---|---|
| Figma Make Frontend | β 95% Complete | Desktop folder |
| Marketing Pages | β Just Created | apps/web/(marketing)/ |
| Unified Shell | β οΈ Partial | Needs integration |
| Domain Shells | β οΈ Stubbed | Need wiring |
| RBAC System | β Complete | packages/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
signalstable
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 buildcompletes 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