Spine Schema
The canonical data model for Spine Fabric — what is stored, how it is organized, and the rules that govern every record.
Spine Schema defines the canonical data model for all operational truth in SpineWorkspace. Every entity, relationship, event, decision, piece of evidence, work item, and memory entry follows this schema.
The schema is not a single database table. It is a multi-store fabric where each layer owns a specific class of truth.
Governing Rules
- One Spine per tenant. Role, department, and industry alter projection scope — not storage ownership.
- No direct UI database reads. The Workbench reads projected shapes through the Projection Platform API.
- All writes preserve provenance. Every mutation records actor, origin, evidence, confidence, timestamps, and source connection.
- AI proposes; humans decide. Cognitive output enters a proposal/approval path before operational promotion.
- Connect once, available everywhere. Connector ownership is tenant-scoped, not frontend-scoped.
Multi-Store Fabric
The Spine is a 6-layer fabric:
| Layer | Store | What It Owns | Access Pattern |
|---|---|---|---|
| L1 | PostgreSQL / Neon / D1 | Structured operational truth — entities, relationships, tasks, approvals, signals | SQL via Projection Platform |
| L2 | Redis / KV | Hot state — projection caches, SLA countdowns, queue positions, session context | Key-value, sub-100ms |
| L3 | R2 / Object Storage | Attachments — documents, recordings, exports, images | Signed URLs, streaming |
| L4 | Conversational Store | Ingested channels — email threads, chat transcripts, call recordings | Append-only, Pipeline-processed |
| L5 | Vectorize / pgvector | Semantic embeddings — similarity, knowledge retrieval, signal detection | Vector search, RRF scoring |
| L6 | Durable Objects | Agent memory — session state, user preferences, workspace context | Per-keyed hot state, snapshot to D1 |
Rule: No department reads directly from any store. All reads go through the Projection Platform API.
Universal Record Envelope
Every operational table carries this minimum contract:
id text primary key,
tenant_id text not null,
workspace_id text,
status text not null,
version integer not null default 1,
origin text not null,
confidence numeric(5,4),
source_connection_id text,
provenance jsonb not null default '[]',
metadata jsonb not default '{}',
created_by text,
updated_by text,
created_at timestamptz not null,
updated_at timestamptz not null,
archived_at timestamptz
All tenant queries require tenant_id. Sensitive projections additionally require workspace, role, permission, and policy checks.
Core Entity Types
Identity and Tenancy
tenants— organization, plan, industry, region, schema versionworkspaces— tenant workspace with department, industry, projection manifestusers— identity with department, manager, timezone, localeteams— team with department and ownerroles— role with scope and governance posturepermissions— permission key, resource, action, risk levelmemberships— user-workspace-role bindings
Entity and Relationship Truth
entities— canonical entity anchor with type, name, external keys, attributes, lifecyclerelationships— typed, weighted, time-bounded entity connectionsentity_versions— append-only snapshotstimeline_events— append-only operational history with event type, subject, payload, evidenceevidence— source citations, hashes, document spans, connector references
Work, Governance, and Signals
tasks— title, assignee, priority, due date, entity, completion statework_items— generalized operational item with type, queue, SLA, payloadqueues— routing policy and ownerassignments— work-item-to-assignee bindingsapprovals— proposal, capability, risk level, approver chain, decisionproposals— type, subject, recommended action, reasoning, confidence, evidencesignals— kind, priority, score, detection, resolution statepolicies— approval, retention, write-back, data visibility, capability policies
Communications and Knowledge
communication_threads— channel, participants, linked entitiesmessages— sender, recipients, body, classificationcalendar_events,meetings,calls— temporal coordinationdocuments,document_chunks— storage references and semantic embeddingsknowledge_articles— reviewed organizational knowledge
Memory and Continuity
memory_items— scope (user|work|org|agent|development|conversation), type, content, importancememory_proposals— proposed promotion with classification, confidence, approval statecontinuity_contexts— effective role, workspace, active entities, goals, recent evidence
Capability and Integration
connectors— provider, category, auth type, supported objectsconnections— tenant-owned installation with health and sync statecapabilities— key, plane, inputs, outputs, governance policycapability_invocations— request, authorization, execution, result, rollback, audit
Department Pattern
Every department defines:
- Structured operational tables
- Hot-state keys and projection caches
- Attachment/object namespaces
- Conversational ingestion classes
- Semantic/vector collections
- User, work, and organization memory scopes
The Workbench shell is constant across departments: Header, Pulse Bar, Main Work Surface, Action/Governance Bar, and contextual Twin surface.
Storage Ownership (Canonical)
From the canonical ontology, storage is divided into four tiers:
| Tier | What It Owns | Authority |
|---|---|---|
| Spine Fabric | Canonical entities, relationships, Work, events, decisions, evidence, memory, continuity | System of record |
| Memory | Episodic, semantic, operational, user, work, org, agent, development, conversation scoped | Informs truth; memory is not truth |
| Fortress | Audit, execution ledger, signed proposals, incident reconstruction | Append-only, tamper-evident |
| Ephemeral | Session scratchpads, agent working state, transient caches | Disposable, no authority |
Rule: Memory informs truth. Memory is not truth. Triage classifies. Governance decides. The Pipeline promotes. Spine owns organizational memory.
Related
- Canonical Ontology §39-40 — storage ownership
- Projection Contract — how schema is projected
- Organizational Memory — memory authority