Current

IntegrateWise Canonical Reference

Status: FROZEN — August 11, 2026
Source: Merged from Auth Ecosystem, UI/Workbench Design, Universal Tenant Spine Schema, and repo excavation


I. The Model in One Breath

1. Category definition

The Self-Organizing Workspace is a collaborative environment where humans and AI continuously structure work, context, and capabilities around evolving goals.

2. The precise statement

IntegrateWise is a Continuity Platform delivered through a self-organizing User Workbench.

Platform underneath. Product in front. Promise first.

Marketing order: Promise → Product → Outcome → Platform proof. Never lead with the platform, MCP fabric, or a catalogue of agents.

3. The product promise

Frozen.
Nothing is forgotten. Context follows the work. The workspace organizes itself. The user remains in control.


II. The Five Layers

1. OneAuth — entry to the ecosystem

Host-controlled auth, not an IntegrateWise login. The host owns identity and the real provider connections; IntegrateWise never copies credentials.

Resolves: identity, tenant, workspace, roles, entitlements, host session, policies.
Connectors arrive as governed projections of connections the host already owns.

Frozen rule: OneAuth establishes trusted entry; connector projections expose permitted capabilities of host-owned connections.

2. Product Package — the capability kernel

Turns authorized connections into usable workspace capability.

Discovery + Capability Resolver + Spine Cache + ADK + Orchestrator
+ Business Context + Loader + Normalizer + MCP Connector + Tool Capability

Flow: discover → load → normalize → cache → resolve → execute.
Customers never buy this directly — they experience its output through the Workbench.
In the repo this is packages/* (reusable contracts).

3. Spine — connected business backbone

Key correction: The Spine is logical, not physical. Spine ≠ D1.

Spine = entities + relationships + identity resolution + provenance
      + freshness + business context + continuity
  • Canonical Spine (Neon): what is durably known — entities, versions, provenance, policies, historical state, reconciled outcomes.
  • Operational Spine (D1): what's needed to work now — active records, current KPIs, signals, runtime context.
  • Spine Cache (KV): fast context for workbench consumption.
  • Evidence (R2): blobs, attachments, source artifacts.
  • Retrieval (Vectorize/AI Search): semantic search over Spine-connected material.
  • Context (Durable Objects): interaction/session/runtime context.

Memory ≠ Spine. Business Context ≠ Spine. Both connect through the Spine but are distinct.

4. Product — the User Workbench

The one product customers use. A self-organizing workspace of:

  • Tables (structured truth)
  • Views (role-routed lenses)
  • Docs (narrative)

Unified by the Twin — invoked on a specific item, not idling in a sidebar.

Operating loop: Understand → Propose → Govern → Execute → Reconcile → Learn.

In the repo this is apps/web; all department subdomains are projections into web, not separate apps.

5. Platform Backend — the runtime

Operates the Package capabilities at scale.

Package Runtime + Services + AI Gateway + Agents + Memory
+ Pipelines + Governance + Execution + Observability

Agents live here, underneath the Twin and Workbench — internal participants, not the headline product.

Split rule: Product Package defines reusable capability (packages/); Platform Backend runs it (services/).


III. The Universal Tenant Spine

1. Eight Spine domains

DomainCore tablesOwned by
Identitytenants, users, teams, roles, permissions, policiesPlatform Admin
Entitycustomers, contacts, accounts, projects, products, vendorsAll (scoped)
Worktasks, work_items, queues, approvals, assignments, SLAsAll (scoped)
Communicationemail_threads, calendar_events, meetings, chat_threads, callsAll (scoped)
Knowledgedocuments, notes, knowledge_base, learning_artifactsAll (scoped)
Memoryuser/work/org/conversation/agent memoryPlatform (HITL)
Capabilityconnectors, mcp_tools, apis, ai_models, automations, pipelinesIntegration Mgr
Governanceapproval_records, audit_log, security_events, policiesPlatform Admin

2. Six storage layers

LayerTechPurpose
1Postgres / D1Structured operational truth. SSOT anchor.
2Redis / KVHot state, sub-100ms. Working memory, not truth.
3R2 / ObjectBlobs linked by reference. Never queried directly.
4ConversationalRaw channel events. Classify → Extract → Promote.
5Vectorize / pgvectorSemantic intelligence. Cosine + BM25 + RRF.
6Agent MemoryDurable per-scope state. HITL-gated writes.

3. The universal write path

No exceptions. No role writes directly to the database. No workbench component reads directly from one.

  • Channel event: Conversational Store → 8-stage pipeline → D1 canonical write → KV invalidation → re-embed → Twin memory proposal.
  • Twin proposal: Governance creates pending approval → user approves → D1 write tagged origin: twin, confidence: 0.xx, approved_by. Provenance is immutable.

IV. The Workbench & Platform UI

1. The doctrine

Not a dashboard — an operational workbench. A dashboard is passive; you act on data directly without leaving the surface.

One layout grammar, many surfaces: "Normalize once, render anywhere."

2. The five-zone shell

ZonePurpose
Zone 1 — HeaderName, Continuity Score, last sync, two cascading filters (time + owner)
Zone 2 — Pulse BarFour live KPI cards from Gateway projection; click to filter
Zone 3 — Work SurfaceTable / Board / Calendar; inline capability buttons on every row
Zone 4 — OODA Action BarFixed bottom — Observe, Orient, Decide (n pending), Act
Zone 5 — Twin Panel300px right rail; signals feed, pending proposals, prompt chips, Ask Twin

3. Sidebar — three questions

  1. What do I work on? → My Work (Home, Inbox, Tasks, My Queue, Approvals, Notifications)
  2. Where am I working? → Workspaces (12 department views, role-routed)
  3. How is the platform configured? → Platform + Administration

4. Design system — Forest Paper

TokenValueUse
Background#F4F0E8Warm white paper
Sidebar#0C0C0CCanvas black
Active accent#2D5A3DForest green
Signals / gold#B8943FOpportunity, warning
Risk / urgent#E8693AEmber
HeadingsDM Serif DisplayTitles
BodyInstrument SansUI, labels
NumbersIBM Plex MonoAll numbers & timestamps

V. The Frozen Rules

  1. Subdomains never carry tenant identity. Hostname = requested projection; OneAuth session = tenant authority.
  2. Two subdomain classes only: internal-only (platform, founder, ops, book-of-records, brandstore) and shared internal+external departmental.
  3. Spine is logical. Neon/D1/KV/R2/Vectorize are substrates, not the Spine itself.
  4. No surface owns a database. Every read goes through the Projection Platform API; every write is governed.
  5. No AI write lands without HITL approval. Provenance is immutable.
  6. OneAuth never copies provider credentials. The host owns the connection; IntegrateWise receives governed projections.
  7. Agents sit under the Twin, not as the headline product. Market the promise, not the platform.

VI. App Surfaces

AppCanonical functionExposure
apps/webUser Workbench (all department subdomains)Internal + external
apps/one-accessOneAuth (ecosystem entry)Internal + external
apps/platformPlatform Control BoardInternal only
apps/marketingPublic websitePublic
apps/docsDocumentationPublic
apps/mobileMobile Workbench clientInternal + external
apps/desktopDesktop Workbench clientInternal + external

Everything else is a module, capability, service, projection, or route.


VII. Repo Boundary

TreeCanonical meaning
apps/Experience + control surfaces (target: 7)
packages/Product Package — reusable contracts/capabilities
services/Platform Backend — Workers, pipelines, agents, execution
storage/runtimePhysical Spine substrates: Neon + D1 + KV + R2 + Vectorize + DO
SpineLogical connected backbone — spans substrates, not a folder, not one DB