Unclassified
IntegrateWise Repository Layer Mapping (REPOSITIONMAP)
Tier C β Historical. This document is a point-in-time snapshot preserved for reference. For current architecture, see CANONICAL_PLATFORM_ARCHITECTURE.md.
This file maps the active codebase directories to the 9 logical architecture layers. To maintain codebase integrity and comply with the AGENTS.md safety protocol, physical directories are kept in their canonical locations, and this schema serves as the authoritative map.
πΊοΈ Layer Mapping Schema
{
"project": "integratewise-live",
"version": "3.8.0",
"layers": {
"auth": {
"description": "Authentication, JWT verification, and credential handling",
"paths": ["services/gateway/src/auth.ts", "services/tenants/"]
},
"ingress": {
"description": "Webhook receivers, delta monitors, and file event listeners",
"paths": ["services/webhook-ingress/", "services/folder-watcher/", "services/connector-sync/"]
},
"userworkbench": {
"description": "Dashboard interface workbench and read projections",
"paths": ["apps/web/", "services/gateway/src/workspace-spine.ts"]
},
"intelligent_layer": {
"description": "Cognitive reasoning engines, AI gateway, and sandbox agents",
"paths": ["services/intelligence/"]
},
"twin_workbench": {
"description": "Stateful user twin conversational runtime and sessions",
"paths": ["services/iw-agent-runtime/"]
},
"memory": {
"description": "KB ingestion, semantic D1 chunks, and Vectorize indexes",
"paths": ["services/knowledge/", "/Users/nirmal/.iw-memory/"]
},
"notification": {
"description": "Governance approvals, workflows, and billing escalations",
"paths": ["services/workflow/", "services/billing/", "services/intelligence/src/handoff/"]
},
"spine": {
"description": "Canonical database partitions and normalization pipeline",
"paths": ["services/pipeline/"]
},
"backend": {
"description": "Shared configurations, connectors, and admin utilities",
"paths": ["packages/types/", "packages/connectors/", "services/admin/"]
}
}
}
π Physical Directory Structure
integratewise-live/
βββ apps/
β βββ web/ <-- [userworkbench] React/Next.js Workbench UI
β βββ web-frontend-reference/ <-- Reference Layout Components
βββ services/
β βββ gateway/ <-- [auth] JWT resolution & D1 projections
β βββ webhook-ingress/ <-- [ingress] Webhook membrane
β βββ folder-watcher/ <-- [ingress] DO file monitor
β βββ connector-sync/ <-- [ingress] Delta pollers
β βββ intelligence/ <-- [intelligent_layer] Cognitive Think/Act/Govern agents
β βββ iw-agent-runtime/ <-- [twin_workbench] Stateful TwinAgent DO
β βββ knowledge/ <-- [memory] KB indexing (D1/R2/Vectorize)
β βββ workflow/ <-- [notification] Workflow scheduler
β βββ billing/ <-- [notification] Stripe subscriptions
β βββ pipeline/ <-- [spine] Stage 1-8 Normalizer
βββ packages/
βββ types/ <-- [backend] Shared schemas
βββ connectors/ <-- [backend] Connector integrations