Unclassified

Three-Profile Execution Matrix

Date: 2026-07-31
Status: Canonical — every action, binding, projection, and execution mapped
Principle: Think in terms of ACTIONS and EXECUTIONS that happen as product, platform, and agent results


The Three Profiles

ProfileWhoPurposeActivation
Dev InternalEngineering teamBuild, test, iteratetenant_id = dev-local
Customer ZeroFounder (you)Run entire businesstenant_id = customer-zero
Product to UsersExternal usersUse the producttenant_id = {tenant} via marketplace

Same codebase. Same services. Split by tenant_id + request origin + JWT audience.


PROFILE 1: Dev Internal

What Happens (Actions)

#ActionWho triggersWhat executesResult
1Start dev serverpnpm devGateway starts on :8787, all services registerLocal environment live
2Seed tenantMigration scriptD1 gets dev-local tenant with all tablesCanonical Spine has data
3Connect dev toolsManual connector setupConnector service registers Notion, GitHub, etc.Infra tools connected
4Run projectionGET /api/v1/workspace/projection/:deptProjection Engine assembles entities → SharedWorkbenchFrontend gets data
5Test AI projectionSchema AI generates projectionsai_entity_projection table gets populatedAI fields appear in UI
6Test OODA loopClick entity → Twin → ApproveTwin proposes → Governance evaluates → Hermes executesFull loop works
7Run testspnpm testVitest across all packages140+ tests pass
8Typecheckpnpm typechecktsc across all packagesZero type errors

Bindings

BindingValuePurpose
DATABASE_URLlocal D1Canonical Spine
CANONICAL_SPINE_DBlocal D1AI projection table
AUTH_SECRETdev-secretAuthentication
IW_API_URLhttp://localhost:8787API endpoint

Projections

ViewWhat rendersData source
All 16 Founder sectionsTables, boards, timelines, canvasesProjection Engine → SharedWorkbench
Entity 360Record detail + AI panelProjection Engine + AI Projection Enricher
Connector TrayAvailable toolsIntegration Manager

Executions

ExecutionPathResult
CRUD on any entityUI → Gateway → Projection Engine → Core SpineEntity created/updated
Twin proposalClick → Active Context Bundle → Twin → ProposalProposal appears in Approvals
Governance evaluationProposal → Governance evaluator → Policy checkApproved/rejected
Hermes executionApproved proposal → Hermes → ProviderAction executed
AI projection refreshSchema AI → ai_entity_projection → Projection EngineAI fields updated

PROFILE 2: Customer Zero (Founder)

What Happens (Actions)

#ActionWho triggersWhat executesResult
1LoginFounder opens workbenchAuth → TenantGate → resolves customer-zeroWorkspace loaded
2View HomeNavigationProjection Engine → all 16 entities → AI projectionsAttention Queue + Today Summary
3View RevenueLens switchProjection Engine → deals, accounts, pipelineRevenue views with AI risk
4Click entityUser clicks dealActive Context Bundle → Entity360 → Twin panelFull context loaded
5Edit entityUser edits dealChanged tuple → capability prepare → governance → HermesDeal updated
6Approve proposalUser approves Twin's actionProposal → Governance → Hermes → ProviderAction executed
7View Company PulseCross-domain viewProjection Engine → all domains → AI synthesisCross-domain signals
8View OKRsObjectives viewProjection Engine → objectives → AI progress riskOKR tracking
9View Decision LogDecisions viewProjection Engine → decisions → AI outcome trackingDecision memory
10Connect toolConnector TrayIntegration Manager → Discovery → ActivationNew tool connected
11View billingAdmin viewBilling service → usage, invoicesBilling dashboard

Bindings

BindingValuePurpose
DATABASE_URLproduction D1Canonical Spine
CANONICAL_SPINE_DBproduction D1AI projection table
AUTH_SECRETproduction secretAuthentication
IW_API_URLhttps://api.integratewise.aiAPI endpoint
All 30 service bindingsGateway wrangler.tomlService mesh

Projections (16 sections × 16 entities = 256 possible views)

SectionEntitiesAI FieldsOODA Stage
Home / Role BriefKPI, Signal, Task, DecisionHealth scores, risk assessment, next actionOrient
My WorkTask, Commitment, ApprovalBlocker detection, effort estimation, riskOrient → Decide
Strategic Objective PortfolioStrategic Objective, Initiative, KPI, Company RiskProgress risk, dependency analysis, forecastOrient → Decide → Act
Entity 360Primary entity + relationships + timelineFull AI panel: health, risk, predictions, recommendationsOrient
Pipeline / QueueCompany Risk, Decision, Approval, Department HealthRisk assessment, alternatives, precedentOrient → Decide → Act
TimelineEvent, Conversation, Decision, OutcomePattern recognition, similar eventsOrient
CalendarMeeting, Task, Milestone, RenewalScheduling optimization, conflict detectionOrient
CommunicationsConversation, Message, ContactSentiment analysis, relationship mappingOrient
Documents & KnowledgeDocument, Attachment, Knowledge, EvidenceContent analysis, gap detectionOrient
Signals & RisksSignal, Risk, Metric, ExceptionAnomaly detection, cascade riskOrient → Decide
ApprovalsProposal, Approval, EvidenceRisk assessment, financial impact, alternativesDecide → Act
Planning CanvasGoal, Initiative, Task, Document, DecisionProgress tracking, resource allocationOrient → Decide
Reports & MetricsKPI, Metric, Forecast, SummaryTrend analysis, benchmark comparisonOrient
Automation & PlaybooksWorkflow, Playbook, Capability, ExecutionBottleneck detection, optimizationOrient → Decide
Recent WorkRecently viewed / changed entitiesChange detection, relevance scoringOrient
Twin DetailActive entity + evidence + memory + capabilitiesFull AI context assemblyOrient → Decide → Act

Executions

ExecutionPathResult
Create Strategic ObjectiveForm → Gateway → Projection Engine → Core SpineObjective created, AI projection generated
Update Deal StageKanban drag → capability → governance → Hermes → CRM providerDeal stage updated in CRM
Approve Twin's ActionClick Approve → Governance → Hermes → ProviderAction executed, audit logged
Connect NotionConnector Tray → Integration Manager → OAuth → ActivationNotion connected, entities synced
Generate AI ProjectionSchema AI → tenant context → ai_entity_projectionAI fields populated
Refresh Company PulseCross-domain query → all entities → AI synthesisPulse updated with latest signals
Track OKR ProgressOKR entity → AI progress calculation → forecastProgress risk detected
Log DecisionDecision entity → AI outcome tracking → memory promotionDecision logged with outcomes

PROFILE 3: Product to Users (Marketplace)

Activation Flow

#ActionWho triggersWhat executesResult
1User installs from marketplacePlugin/MCP marketplaceMarketplaceInstallation state machine → initiatedInstallation started
2Host platform detectedSpine ADKHost Discovery → discover connected toolsTools discovered
3Cascade discoverySpine ADKFor each host tool: explore capabilities → connect → importAll 50 tools discovered
4Connector Tray populatedIntegration ManagerDiscovered tools → Connector Tray UIUser sees all tools
5User picks toolUser clicks tool in Connector TrayConfiguration Manager → tool config activatedTool configured
6Activation Manager validatesActivation ManagerConsent → binding → hydration → activeTool activated
7Spine Tunnel establishedPlatform repoTunnel between Operational Spine ↔ Canonical SpineData route established
8Entities flowPipelineConnector → Normalizer → Core Spine → Projection EngineEntities appear in workbench
9AI projections generatedSchema AITenant context → dynamic schema → projectionsAI fields populated
10User sees workbenchFrontendProjection Engine → SharedWorkbench → UIFull workbench live

Marketplace Activation Types

TypeFlowExample
DirectUser picks from Connector Tray → Config Manager → Activation Manager → Spine TunnelUser connects Notion directly
Host-importedHost platform discovery → Spine ADK → Import into Spine Network → Config Manager → ActivationChatGPT has 50 apps → all discovered

Bindings (Channel Repos)

BindingValuePurpose
SPINE_TUNNEL_URLPlatform SDK endpointOnly route to canonical
CANONICAL_SPINE_DB❌ NOT BOUNDChannel repos never access canonical directly
OPERATIONAL_SPINE_DBChannel-specific D1Channel operational state
HOST_PLATFORM_CONFIGPlugin/MCP configHost platform connection

Projections (Channel)

ViewWhat rendersData source
Connector TrayAvailable + discovered toolsIntegration Manager via Spine Tunnel
Activation State MachineOnboarding progressActivation Manager via Spine Tunnel
Channel WorkbenchEntities from host platformOperational Spine + AI projections

Executions (Channel)

ExecutionPathResult
Plugin activationPlugin marketplace → Plugin repo → Spine Tunnel → CanonicalPlugin entities in canonical
MCP activationMCP marketplace → MCP repo → Spine Tunnel → CanonicalMCP tools in canonical
Host discoverySpine ADK → host API → discover tools → importTools added to Connector Tray
Tool activationUser picks → Config Manager → Activation Manager → Spine TunnelTool data flows through tunnel
AI projectionSchema AI → tenant context → projection tableAI fields for channel entities
Memory promotionChannel memory → Spine Tunnel → Canonical memoryInstitutional memory preserved

The Complete Flow (All Profiles)

┌─────────────────────────────────────────────────────────────────┐
│ USER ACTION                                                      │
│ "I want to see my revenue pipeline"                              │
└──────────────────────┬──────────────────────────────────────────┘
                       │
┌──────────────────────▼──────────────────────────────────────────┐
│ FRONTEND                                                         │
│ WorkbenchApp → context lens "Revenue" → entity types ["deal"]    │
│ Calls: platform.getEntities({ department: "revenue" })           │
└──────────────────────┬──────────────────────────────────────────┘
                       │
┌──────────────────────▼──────────────────────────────────────────┐
│ PLATFORM FACADE (lib/platform/index.ts)                         │
│ SpinePlatform.getEntities() → fetches from Gateway               │
└──────────────────────┬──────────────────────────────────────────┘
                       │
┌──────────────────────▼──────────────────────────────────────────┐
│ GATEWAY (services/gateway/src/index.ts)                          │
│ Route: /api/v1/workspace/projection/revenue                      │
│ TenantGate: resolves tenant_id from JWT                         │
│ Forwards to: Projection Engine                                   │
└──────────────────────┬──────────────────────────────────────────┘
                       │
┌──────────────────────▼──────────────────────────────────────────┐
│ PROJECTION ENGINE (packages/projection-engine/)                  │
│                                                                  │
│ 1. ASSEMBLE — Get deals from Core Spine (D1)                    │
│ 2. RESOLVE — Build relationship graph                           │
│ 2.5 AI PROJECTION — Fetch AI fields from ai_entity_projection   │
│ 3. ENRICH — Knowledge, Signals, Capabilities (parallel)         │
│ 4. READINESS — Department operational readiness                 │
│ 5. ACTIONS — Derive available actions                           │
│ 6. TIMELINE — Build entity timeline                             │
│ 7. MEMORY — Assemble memory                                     │
│ 8. TWIN CONTEXT — Compose Twin-facing projection                │
│                                                                  │
│ Output: SharedWorkbench {                                        │
│   entities: Map<string, SpineEntity[]>,  ← canonical + AI       │
│   relationships, signals, capabilities, governance,              │
│   actions, twinContext, readiness, provenance                    │
│ }                                                                │
└──────────────────────┬──────────────────────────────────────────┘
                       │
┌──────────────────────▼──────────────────────────────────────────┐
│ FRONTEND RENDERS                                                 │
│                                                                  │
│ EntityCollection (tables, boards, timelines)                     │
│   → each entity has: canonical fields + ai fields               │
│   → AI fields show: health_score, risk_assessment,              │
│     next_best_action, predicted_outcome                         │
│                                                                  │
│ EntityDetail (360 view)                                          │
│   → full entity + AI panel + timeline + evidence                │
│                                                                  │
│ Twin Panel (click-triggered)                                     │
│   → AI summary, recommendations, alternatives                   │
└─────────────────────────────────────────────────────────────────┘

The Three Execution Paths

Path 1: Dev Internal → Customer Zero

Dev builds → Dev tests → Dev seeds data → Founder logs in →
Founder sees workbench → Founder edits → AI projections generated →
Founder approves Twin's action → Action executed → Results visible

Path 2: Customer Zero → Product to Users

Founder validates → Product ships → User installs from marketplace →
Host platform detected → Cascade discovery → Tools imported →
User picks tool → Config Manager activates → Spine Tunnel routes →
Entities flow → AI projections generated → Workbench live

Path 3: Agent Execution

Twin proposes → Governance evaluates → Policy check →
Hermes coordinates → Provider executes → Outcome reconciled →
Spine updated → AI projection refreshed → UI shows result

What Each Profile Produces

ProfileProducesConsumes
Dev InternalWorking code, passing tests, type-safe packagesDev tools, local D1, mock data
Customer ZeroReal business decisions, institutional memory, operational continuityReal tools (Notion, GitHub, HubSpot), real data
Product to UsersMarketplace installations, channel activations, user workbenchesHost platform APIs, marketplace catalogs

The Rule

Every action has a binding. Every binding has a projection. Every projection has an execution. Every execution has a result. Every result feeds back into the system.

No orphan actions. No dead bindings. No unused projections. No silent executions. No invisible results.