Unclassified

IntegrateWise Universal Tenant Spine Schema v1

Authoritative schema source · reconciled with Book of Record v1.1

AUTHORITATIVE SCHEMA SOURCE — reconciled 2026-07-28

This page remains the authoritative Universal Tenant Spine Schema source. Its interpretation is constrained by the current Book of Record: the Base Spine is mandatory and stable; tenant, domain and provider models are additive; provenance, tenant scope and reconciliation are required.

For V0 runtime, Cloudflare D1 is the tenant Spine system of record. Frontend and AI clients access Spine data only through versioned Platform query and projection contracts.


Core Principle

One Spine. One schema. Every role, department, and industry is a projection over the same core. The mandatory Base Spine remains stable; additive extensions and schema versions evolve through governance. Only what each user sees changes — based on Role × Industry × Department.

The governing principle: The Spine holds the truth. The Projection shapes what each user sees. The schema variation lives entirely in the projection layer — not in the data layer.


Spine as Multi-Store Fabric

LayerStorePurpose
L1PostgreSQL / D1Structured operational truth. The SSOT anchor.
L2Redis / KVHot state. Sub-100ms. Working memory. Not truth.
L3R2 / Object StorageBlobs linked by reference. Never queried directly.
L4Conversational StoreRaw channel events. Classify → Extract → Promote.
L5Vectorize / pgvectorSemantic intelligence. Hybrid cosine + BM25 + RRF.
L6Agent Memory (Durable Objects)Durable per-scope state. HITL-gated writes.

Shared Tenant Spine Domains

DomainCore TablesOwned By
Identity Spinetenants, users, teams, roles, permissions, policiesPlatform Admin
Entity Spinecustomers, contacts, accounts, projects, products, assets, vendors, employeesAll roles (scoped)
Work Spinetasks, work_items, queues, approvals, assignments, escalations, slasAll roles (scoped)
Communication Spineemail_threads, calendar_events, meetings, chat_threads, callsAll roles (scoped)
Knowledge Spinedocuments, notes, knowledge_base, brainstorm_sessions, learning_artifactsAll roles (scoped)
Memory Spineuser_memory, work_memory, org_memory, conversation_memory, agent_memoryPlatform (HITL-gated)
Capability Spineconnectors, mcp_tools, apis, ai_models, automations, pipelinesIntegration Manager
Governance Spineapproval_records, audit_log, security_events, compliance_records, policiesPlatform Admin
Platform Spinebilling_records, deployments, api_keys, observability_events, admin_actionsPlatform Admin

12 Department Projections

Each department is a governed projection over the shared Spine. See individual schema files for complete table definitions, 6-layer maps, KV patterns, R2 paths, conversational store documents, vector collections, agent memory scopes, workbench zone maps, and write paths.

DepartmentSpine Domains UsedSchema File
Account SuccessEntity + Work + Communication + Knowledge + Memorydocs/spine/account-success.md
SalesEntity + Work + Communication + Knowledgedocs/spine/sales.md
MarketingEntity + Communication + Knowledge + Workdocs/spine/marketing.md
Revenue OperationsEntity + Work + Governancedocs/spine/revops.md
FinanceEntity + Work + Governance + Platformdocs/spine/finance.md
Operations / Business OpsWork + Entity + Governancedocs/spine/operations.md
Product & EngineeringWork + Capability + Knowledge + Governancedocs/spine/product-engineering.md
Support & ServiceEntity + Work + Communication + Knowledgedocs/spine/support.md
IT & SecurityIdentity + Entity + Work + Governancedocs/spine/it-security.md
HR & People OpsIdentity + Entity + Work + Knowledgedocs/spine/hr-people.md
Legal & ComplianceEntity + Work + Governance + Knowledgedocs/spine/legal-compliance.md
Founder / Executive OpsAll domains (read-only aggregate)docs/spine/founder-executive.md

Industry Extensions

The mandatory Base Spine remains stable across industries; governed industry extensions are additive.

IndustryEntity ExtensionsSignal Extensions
SaaSsubscription, mrr, churn_risk, expansion_signalusage_drop, renewal_risk, expansion_ready
Aerospace Manufacturingprogram, satellite, subsystem, assembly_step, test_resultmilestone_slip, quality_hold, supplier_delay
Healthcarepatient, provider, appointment, claim, compliance_recordmissed_appointment, billing_error, compliance_flag
Professional Servicesengagement, deliverable, timesheet, invoice, retainerscope_creep, budget_overrun, delivery_risk
Logisticsshipment, route, carrier, warehouse, manifestdelay_risk, customs_hold, capacity_alert

Write Paths

Channel Event (any source)

-> Conversational Store (append)
-> 8-Stage Pipeline: Ingest -> Parse -> Classify -> Extract -> Enrich -> Route -> Govern -> Promote
-> D1 canonical write (role-scoped tables)
-> KV/cache invalidation (affected keys)
-> Vector re-embedding (affected collections)
-> Twin memory update proposal (if memory-worthy)

User Action (workbench)

-> Governance check
-> Projection Platform API write
-> Webhook / ADK write-back to source system
-> KV/cache invalidation
-> Signal Platform: evaluate if action resolves a signal

Twin Proposal (AI-generated)

-> Governance Platform: create pending approval record
-> Workbench: render approval card to user
-> User approves -> D1 canonical write with approved_by + approval_id
-> User rejects -> audit log write, no Spine write
-> Provenance preserved forever: origin, confidence, approved_by, approved_at

Governance Rules

  1. No workbench component may read directly from a database. All reads go through the Projection Platform API.
  2. No AI-proposed write lands in the Spine without HITL approval.
  3. Provenance is immutable. A Twin-proposed entry that passes approval arrives tagged origin: twin, confidence: 0.xx. It does not become native truth.
  4. Every operational table carries the Universal Record Envelope: id, tenant_id, workspace_id, status, version, origin, confidence, source_connection_id, provenance, metadata, created_by, updated_by, created_at, updated_at, archived_at.

Canonical Implementation Companion

See docs/SPINE_SCHEMA_V1_ALL_DEPARTMENTS.md for:

  • Shared record envelope
  • Twelve department projections with complete table definitions
  • Platform projections
  • Customer Zero seed manifest
  • Projection API contract
  • Work-Bench wiring rules
  • Acceptance criteria

Customer Zero

Tenant: tnt_integratewise_customer_zero
Primary workspace: wsp_integratewise_ops
Industry: b2b_saas_continuity_platform
Governance posture: approval_first

13 workspaces, 10 users, 12 roles, 12-20 connectors, 25 accounts, 60 contacts, 20 leads, 12 deals, 20 projects, 80 tasks, 40 threads, 50 documents, 30 signals, 12 proposals, 8 pending approvals, 30 memory items, 10 deployments, 5 incidents, 100 audit events.