Unclassified

IntegrateWise Final UI, Product & Platform Specification

Status: SUPERSEDED PRODUCT-SPEC SNAPSHOT. Despite the original status
below, this file is no longer canonical. L1/L2 labels, permanent Twin surfaces
and any conflicting storage/authentication rules are historical only. Current
authority starts at
docs/architecture/ARCHITECTURE_LOCK.md.

Version: 1.0

Original Status: Canonical Product Definition

Primary Experience: L1 User Workbench

Intelligence Model: Silent, Contextual Twin powered by the Adaptive Spine

Interaction Model: OODA — Observe, Orient, Decide, Act


PART I — PRODUCT & UI SPECIFICATION

1. Product Definition

IntegrateWise is an adaptive Workbench where users perform daily work across connected business systems without repeatedly switching tools or briefing an AI assistant.

The system continuously assembles permitted operational context through the Adaptive Spine. Twin acts as a silent partner that:

  • Understands the user's active work;
  • Identifies meaningful changes;
  • Retrieves related history and evidence;
  • Prepares summaries, drafts, and recommendations;
  • Proposes next actions;
  • Requests approval before consequential execution;
  • Records and synchronizes the outcome.

The user does not need to open a chat interface or manually provide context.

The user works normally. The Spine maintains continuity. Twin prepares the hard work. The user remains in control.


2. Product Promise

When the user opens IntegrateWise, they should immediately understand:

  1. What requires attention?
  2. What changed?
  3. What work is currently active?
  4. What context matters?
  5. What has Twin already prepared?
  6. What decisions or approvals are required?
  7. What happened after an approved action?

The product removes:

  • Repetitive context gathering;
  • Unnecessary tool switching;
  • Manual cross-system updates;
  • Blank-slate AI conversations;
  • Missed follow-ups;
  • Duplicated operational work;
  • Untraceable automation.

3. Product Layers

3.1 L1 — User Workbench

The complete daily operating environment. L1 includes: personalized Home; My Work; Contexts and Context360; Meetings; Knowledge; Approvals; Timeline; persistent Twin assistance; connected-system actions; and notifications/execution outcomes. A user with only L1 must still receive contextual AI assistance. AI Home is not required.

3.2 L2 — AI Home

An optional deeper intelligence surface for: explicit conversation; complex investigation; memory inspection; generated insights; Twin activity; and autonomy/notification configuration. L2 extends L1 but does not complete it. L1 must stand on its own.

3.3 Capability Fabric and Ingress

The connection and capability layer for: provider connectors; connection setup; authentication; provider health; capability discovery; marketplace installation; and authorization/scope management.

3.4 Governance and Operations

The controlled execution layer for: approvals; policy management; audit history; workflow execution; browser automation; synchronization health; failed-action recovery; and administrative operations.


4. Product Principles

4.1 Work first, AI second

The Workbench is the primary interface. AI supports the user's work rather than becoming the work itself.

4.2 Context is assembled automatically

The user should not repeatedly explain which entity is open, which task they are performing, what happened previously, which documents are related, or which tools contain relevant information. The Workbench sends active context references. The Spine supplies authorized continuity.

4.3 Quiet by default

Twin should not comment on every action. It surfaces assistance only when: the user explicitly asks; material risk is detected; an important change occurs; a deadline or commitment is threatened; useful preparation is complete; a decision or approval is required; or an execution succeeds or fails.

4.4 Prepared, not autonomous

Twin may automatically retrieve information, connect evidence, summarize, compare, classify, detect changes, prepare drafts, generate recommendations, and create proposed execution plans. Twin must not exceed the user's or organization's granted authority.

4.5 Evidence before confidence

Recommendations must show why they were generated. Every significant Twin output should support: source inspection, freshness inspection, affected entities, uncertainty disclosure, and proposed-action previews.

4.6 Progressive context

The interface must display reliable operational data before waiting for AI-generated enrichment.

4.7 One surface, connected capabilities

Users should perform relevant, authorized provider operations from the Workbench rather than being redirected to provider applications unnecessarily.


5. Primary Information Architecture

5.1 Global Navigation

The main navigation contains:

  1. Home
  2. My Work
  3. Contexts
  4. Meetings
  5. Knowledge
  6. Approvals
  7. Timeline

Secondary items: Connections, Twin Activity, Settings, Help, and Administration (when authorized).

5.2 Global App Shell

Left Rail

Contains the IntegrateWise logo, workspace selector, primary navigation, pinned contexts, recent contexts, connection-health indicator, and user profile/settings. Supports expanded state, collapsed icon state, keyboard navigation, and responsive drawer behavior.

Top Bar

Contains universal search and command entry, current workspace, contextual breadcrumb, notifications, approval count, Twin status, connection/sync status, and user menu.

Main Canvas

Displays the active product surface.

Right Contextual Panel

Displays current-context summary, Twin observations, related evidence, prepared work, suggested next actions, and quick connected-system actions. The panel is collapsible, resizable on desktop, a drawer on tablet, and a full-screen sheet on mobile.

Bottom Action Sheet

Used only for urgent Twin proposals, approval requests, action previews, execution progress, and recoverable failures. It must not permanently obstruct the user's work.


6. Home

6.1 Purpose

Home answers: What should I know and do now? It is personalized by user role, assignments, active contexts, priorities, connected-system changes, due dates, recent activity, organizational policy, and validated work preferences.

6.2 Home Layout

A. Resume Work

Shows the last active context, active task, last viewed section, unresolved draft, pending approval, and latest relevant change.

  • Primary action: Resume
  • Secondary actions: Open context, Review changes, Dismiss from Home.
B. My Priorities

Ranked list of work requiring attention. Each item includes title, context or entity, priority, due date, source system, reason for ranking, current status, and available actions. Twin may add: "Why this matters", "What changed", or "Prepared next step".

C. What Changed

Shows meaningful operational changes rather than raw activity. Examples: account health declined after multiple unresolved tickets; opportunity stage changed without a corresponding forecast update; project deadline moved; payment failed; or a meeting action item became overdue. Each change card includes: change summary, time, affected context, previous and current state, source, impact, evidence, and suggested response.

D. Prepared by Twin

Contains non-executed preparation: meeting briefs, response drafts, account summaries, follow-up plans, report drafts, issue analyses, and proposed record updates. Each item has: output type, context, creation reason, source count, freshness, confidence or uncertainty indicator, and a review action.

E. Decisions and Approvals

Shows approvals required, approving actor, action impact, affected systems, deadline, risk level, and current execution-plan version.

F. Upcoming

Shows meetings, commitments, deadlines, renewals, milestones, and scheduled workflows.


7. My Work

7.1 Purpose

My Work is the user's unified operational queue across connected systems.

7.2 Views

Today, Upcoming, Assigned to Me, Assigned to Twin, Waiting, Blocked, Completed, and custom saved views.

7.3 Work Item Model

Every work item displays: title, work type, status, priority, owner, due date, associated context, source provider, related dependencies, last meaningful change, Twin preparation state, and available actions.

7.4 Work Item Details

The detail drawer or page contains:

  1. Overview
  2. Description
  3. Current state
  4. Context and relationships
  5. Evidence
  6. Activity
  7. Twin preparation
  8. Provider actions
  9. Execution and sync status

7.5 Unified Actions

Depending on capability and authorization, the user may: update status, change owner, add a note, set a due date, send a message, create a related task, update a provider record, assign preparation to Twin, approve a proposed action, or mark resolved.


8. Contexts and Context360

8.1 Context Definition

A context is a connected operational object around which work occurs (e.g., customer, account, opportunity, project, incident, ticket, product, campaign, employee, candidate, vendor, contract, invoice).

8.2 Contexts Index

The index supports search, filtering, sorting, saved views, role-specific columns, recent contexts, pinned contexts, at-risk contexts, contexts with changes, and contexts requiring decisions. The default prioritizing operational relevance over a static CRM account table.

8.3 Context360 Header

Displays context name, context type, current status, owner, health or risk state, key identifiers, latest meaningful change, freshness, source systems, and primary actions.

8.4 Context360 Tabs

The available tabs depend on context type. The canonical tab set includes:

  1. Overview: Operational summary, key metrics, current status, commitments, risks, recent changes, open work, and prepared Twin insights.
  2. Work: All active and historical work associated with the context.
  3. Relationships: Connected people, organizations, projects, tickets, opportunities, contracts, and other entities.
  4. Timeline: Normalized events from connected systems.
  5. Meetings: Upcoming and previous meetings, briefs, notes, decisions, and follow-ups.
  6. Knowledge: Relevant documents, procedures, playbooks, and retrieved knowledge.
  7. Files: Source artifacts with ownership, provider, freshness, and access controls.
  8. Decisions: Proposed decisions, approved decisions, rejected proposals, evidence used, approving actor, and resulting actions.
  9. Systems: Connected provider records, provider identifiers, synchronization state, source freshness, conflicts, failed updates, and available provider capabilities.

8.5 Progressive Loading

Context360 loads in this order: (1) identity and header, (2) key operational state, (3) current work, (4) primary relationships, (5) recent timeline, (6) knowledge and files, and (7) Twin-generated interpretation.

StateTarget Response Time
Prepped contextImmediate perceived display
Warm context200 ms for cached projection
Cold context2–4 seconds with progressive loading
AI enrichmentAsynchronous; never blocks core context

Every cached projection displays freshness metadata when relevant.


9. Meetings

9.1 Meeting List

Views include: Upcoming, Today, Needs Preparation, Follow-up Required, and Past Meetings.

9.2 Meeting Detail

Contains title, participants, linked contexts, calendar source, agenda, previous commitments, open work, recent changes, relevant documents, Twin-prepared brief, notes, decisions, and follow-up actions.

9.3 Silent Preparation

Twin prepares a meeting brief automatically when the meeting is approaching, relevant context exists, the user has access, preparation is permitted, and source freshness is sufficient.

The brief includes purpose, relationship summary, changes since the previous interaction, unresolved commitments, risks, suggested questions, and relevant evidence. The brief must be explicitly labeled as AI-prepared and remain fully editable.


10. Knowledge

10.1 Purpose

Knowledge provides evidence-backed access to organizational information without requiring users to know exactly where every artifact is stored.

10.2 Knowledge Views

Search, Recommended, Recent, Saved, Policies, Playbooks, and Context-linked knowledge.

10.3 Search Results

Each result displays title, source, content type, owner, last updated, access level, related contexts, matching excerpt, and freshness. AI-generated answers must provide explicit citations to source artifacts.


11. Approvals

11.1 Purpose

Approvals provide a single review surface for proposed consequential actions.

11.2 Approval Queue

Filters include: Needs My Approval, Submitted by Me, In Execution, Completed, Rejected, Failed, and Expired.

11.3 Approval Detail

Every approval must show: proposed action, business purpose, initiating user or Twin assignment, affected contexts, affected systems, exact fields or operations, evidence, execution-plan version, risk classification, approval policy, expected outcome, and rollback or recovery availability.

Available decisions: Approve, Reject, Request Changes, Edit and Approve (when policy permits), Delegate Approval, or Cancel. If a proposal changes after approval, the changed version must be approved again when its consequence boundary changes.


12. Timeline

12.1 Purpose

Timeline is the normalized continuity record across user work, provider events, Twin preparation, decisions, and outcomes.

12.2 Event Types

Provider change, user action, Twin observation, prepared output, proposed action, approval, execution, synchronization, promotion, rejection, failure, recovery, and memory update.

12.3 Timeline Event Anatomy

Each event includes: event type, actor, timestamp, affected context, source, description, evidence, before-and-after state (when applicable), and execution or sync status. Raw technical events are grouped into understandable business changes by default.


13. Twin in L1

13.1 Twin States

  • Quiet: No intervention is needed.
  • Observing: Context is being processed without interrupting the workflow.
  • Prepared: Useful work is complete and available.
  • Attention: A meaningful issue requires immediate review.
  • Approval Required: A proposed action needs authorization.
  • Executing: An approved plan is running.
  • Completed: An outcome is available.
  • Blocked: Execution requires user or administrator intervention.

"Observing" should not imply that private or unrestricted user activity is being recorded.

13.2 Twin Panel Sections (Right Panel)

  • Current Context: Active entity, active work, current objective (when known), and recent relevant changes.
  • What Twin Noticed: Only meaningful, high-signal observations.
  • Prepared for You: Summaries, drafts, comparisons, briefs, and recommendations.
  • Suggested Next Step: One primary recommendation, with alternatives when necessary.
  • Evidence: Expandable list of supporting sources.
  • Activity: Current assignments, execution progress, and recent outcomes.

13.3 User Actions

Canonical Twin actions are: Store in Spine, Ask Your Twin, Assign Your Twin, and Approve Twin's Action. Supporting actions include: Dismiss, Save for later, Show evidence, Correct, Reduce similar suggestions, and Report incorrect context.


14. OODA Interaction Model

14.1 Observe — Store in Spine

The user may explicitly store notes, facts, decisions, commitments, evidence, documents, and meeting outcomes. The system captures authorized operational events from connected systems. Not every single event becomes canonical truth.

14.2 Orient — Ask Your Twin

Twin answers using active Workbench context, Spine state, relationships, recent changes, permitted memory, knowledge, provider data, and relevant policies. Questions automatically inherit the active context unless the user explicitly changes scope.

14.3 Decide — Assign Your Twin

The user delegates preparation: investigate an issue, compare alternatives, prepare a meeting, draft a response, produce a report, determine affected work, or create a proposed plan. An assignment produces a reviewable output; it does not automatically grant execution authority.

14.4 Act — Approve Twin's Action

Before approval, the UI displays: what will happen, where it will happen, which records will change, who will be contacted, expected impact, supporting evidence, required authority, and the execution-plan version.

After approval, the UI displays: execution progress, provider responses, partial completion, failure and retry states, synchronization results, and the final outcome.


15. Silent Partner Behavior

15.1 Intervention Levels

  • Level 0 — No Surface: Used for low-value observations and routine context assembly.
  • Level 1 — Passive Indication: A small badge or "Prepared" indicator appears without forcing a panel open.
  • Level 2 — Contextual Card: A non-blocking Twin card appears directly within the current view.
  • Level 3 — Attention Notification: Used for important risks, deadlines, or material changes.
  • Level 4 — Decision Required: A proposal or approval appears in the approval queue and bottom action sheet.
  • Level 5 — Blocking Policy Event: Used only when policy, security, or data integrity explicitly prevents the requested operation.

15.2 Interruption Rules

Twin should interrupt only when at least one condition is met: user impact is material; the action is time-sensitive; confidence and evidence are sufficient; a policy decision is required; the user requested notification; or execution is blocked/failed. Repeated low-value suggestions must be automatically suppressed.


16. Context and Memory Model

  • 16.1 Working Context: Temporary context includes current page, active entity, selected work item, active filter, current meeting, in-progress draft, and recent Workbench actions. Working context expires and is not automatically committed as permanent memory.
  • 16.2 Candidate Memory: Twin may identify potential operational patterns (e.g., preferred report format, recurring meeting preparation, frequently selected action). Candidate memories remain tentative.
  • 16.3 Promoted Memory: A memory becomes durable only through applicable validation, meeting confidence thresholds, user confirmation, organizational policy, retention controls, and source provenance.
  • 16.4 Correction: Users must be able to correct a Twin assumption, remove a memory, change a preference, identify an incorrect relationship, report stale context, or prevent similar suggestions.

17. Connected-System Actions

17.1 Capability Rendering

The Workbench renders actions based on provider capabilities, active context, user authority, organization policy, connection health, required fields, and current provider state. Unavailable actions must clearly explain why they are disabled.

17.2 Execution States

Every action uses the following states:

$$\text{Draft} \longrightarrow \text{Validating} \longrightarrow \text{Approval Required / Authorized} \longrightarrow \text{Queued} \longrightarrow \text{Executing} \longrightarrow \text{Provider Confirmed} \longrightarrow \text{Synchronizing} \longrightarrow \text{Completed}$$

Alternative states: Denied, Cancelled, Partially Completed, Failed, Retry Available, Recovery Required, and Sync Conflict.

17.3 Provider Transparency

Users see exactly which provider is affected, which account or connection is used, what data will be sent, whether the provider confirmed the operation, and whether the Spine has reconciled the result. Technical adapter details remain hidden unless needed for deep troubleshooting.


18. Key End-to-End Workflows

  • 18.1 Resume Daily Work: User opens Home $\rightarrow$ Home restores the previous active context $\rightarrow$ Spine supplies current state and changes $\rightarrow$ Twin silently compares new state with the previous session $\rightarrow$ Home shows Resume Work and changes $\rightarrow$ User resumes without manual briefing.
  • 18.2 Context Risk Detected: Connected-system event enters the Observe Pipeline $\rightarrow$ Spine links it to the appropriate context $\rightarrow$ Orient Pipeline evaluates related work and history $\rightarrow$ Twin identifies a material risk $\rightarrow$ A contextual card appears in Context360 $\rightarrow$ User reviews evidence, and Twin prepares recommended next steps.
  • 18.3 Draft and Send Follow-Up: Twin detects an unresolved commitment $\rightarrow$ Twin prepares a follow-up draft $\rightarrow$ Workbench shows the draft non-intrusively $\rightarrow$ User reviews and edits $\rightarrow$ System displays recipients and provider $\rightarrow$ User approves sending $\rightarrow$ Hermes dispatches the authorized plan $\rightarrow$ Outcome is logged in Timeline.
  • 18.4 Meeting Preparation: Calendar event is observed $\rightarrow$ Participants are linked to Spine contexts $\rightarrow$ Recent updates are assembled $\rightarrow$ Twin prepares a brief $\rightarrow$ User opens meeting and reviews brief $\rightarrow$ Post-meeting decisions and follow-ups are proposed for validation.
  • 18.5 Cross-System Update: User changes operational state in the Workbench $\rightarrow$ Capability Fabric resolves required provider operations $\rightarrow$ Governance checks authority $\rightarrow$ UI previews material changes $\rightarrow$ User approves $\rightarrow$ Adapters execute $\rightarrow$ Sync Engine reconciles state $\rightarrow$ Context360 refreshes and logs complete outcome.

19. UI Component Specification

19.1 Work Card

  • Required fields: title, context, status, priority, due date, source, last change, and primary action.
  • Optional fields: owner, blocker, Twin-prepared indicator, risk, and provider health.

19.2 Change Card

  • Required fields: description, affected context, previous and current state, time, source, and impact level.
  • Actions: Review, Open Context, Ask Twin, and Dismiss.

19.3 Twin Insight Card

  • Required fields: concise insight, reason surfaced, evidence count, freshness, confidence or uncertainty indicator, and recommended action.
  • Actions: Review Evidence, Ask Twin, Assign Follow-up, Dismiss, and Correct.

19.4 Proposal Card

  • Required fields: proposed outcome, exact action, affected systems, risk, approval requirement, and execution-plan version.
  • Actions: Review, Approve, Edit, and Reject.

19.5 Source Indicator

Displays provider icon, provider name, last synchronized time, freshness state, and warning state.

19.6 Status Vocabulary

Use clear, human-friendly language: Ready, Preparing, Needs Review, Approval Required, In Progress, Completed, Blocked, Failed, Out of Sync, and Stale. Avoid exposing internal pipeline stage IDs or technical class names in standard user views.


20. Visual Design Direction

  • 20.1 Character: The interface must feel calm, operational, trustworthy, precise, and information-dense without becoming crowded. It must appear intelligent without seeming autonomously rogue.

  • 20.2 Color Semantics:

  • Neutral: Standard context and inactive state

  • Blue: Information and active selection

  • Green: Successful completion and healthy state

  • Amber: Attention and uncertainty

  • Red: Failure, high risk, or policy denial

  • Violet: Twin-prepared intelligence

  • Rule: Color must never be the only status indicator.

  • 20.3 Twin Visual Treatment: Twin content uses a subtle violet accent but remains visually integrated with the Workbench framework. Avoid excessive glowing effects, animated AI avatars, constant typing indicators, or intrusive assistant pop-ups.

  • 20.4 Density: Standardizes on Comfortable and Compact layouts. Operational users must be able to process high-density work queues cleanly and efficiently.


21. Responsive Behavior

  • Desktop: Persistent left navigation, full main canvas, optional persistent Twin panel, and multi-column Context360 layout.
  • Tablet: Collapsible navigation rail, single- or dual-column canvas, and Twin surfaced as a right drawer.
  • Mobile: Bottom or drawer navigation, single-column cards, Twin as a full-screen sheet. Approval actions are fixed near the viewport bottom. No critical interactions can rely exclusively on hover states. Prioritizes quick reviews, updates, and notifications.

22. Accessibility Requirements

The product must achieve full compliance with WCAG 2.2 AA, supporting keyboard-only operation, visible focus indicators, screen-reader labels, explicit semantic landmarks, sufficient contrast ratios, and reduced-motion preferences. Twin recommendations must always be visually and programmatically distinguishable from verified operational facts.


23. Empty, Loading, and Failure States

  • Empty State: Explains exactly why the surface is empty, whether a system connection is missing, what the user can do next, or whether Twin is currently compiling context.
  • Loading State: Uses progressive skeletons for the context header, work cards, timeline, and relationships. Do not block the main canvas while Twin generates background enrichment.
  • Stale State: Displays the last updated timestamp, affected provider system, a manual refresh trigger, and whether the cached state remains safe to use.
  • Failure State: Explicitly displays what failed, what completed, whether external state was altered, whether retry is safe, and the required user or administrator resolution action. Generic "Something went wrong" messages are entirely prohibited.

24. Notifications

  • Notification Categories: Assignment, Meaningful Change, Prepared by Twin, Approval Required, Execution Completed, Execution Failed, Sync Conflict, Connection Issue, Policy or Security Event.
  • Delivery Policy: Users can configure notifications across in-app feeds, email digests, Slack, or Microsoft Teams. Low-value Twin observations must be bundled into summaries rather than delivered individually.

25. Governance and Trust Requirements

Every single consequential action must explicitly log: the identified actor, applicable authority scope, policy validation result, affected context, exact provider operations, execution-plan version, approval record, provider outcome, synchronization result, and a tamper-proof audit event. The UI must cleanly distinguish between observed data, inferred interpretation, AI recommendations, approved decisions, and the canonical Spine state.


26. Product Analytics

Product value is measured through clear operational efficiency metrics: reduction in provider-app tab switching, time to resume daily work, context-gathering duration, percentage of meetings auto-prepared, proposal acceptance/edit rates, approval turnaround velocity, and task completion time. Do not optimize for raw AI chat message count.


27. Core Acceptance Criteria

The L1 product is complete when:

  1. A user can start the day without manually briefing Twin.
  2. Home restores relevant work and surfaces meaningful changes.
  3. Active context is automatically inherited by Twin.
  4. Context360 progressively displays multi-source operational state.
  5. Twin can prepare useful work without interrupting unnecessarily.
  6. Every significant insight can show supporting evidence.
  7. Users can act across connected providers from the Workbench.
  8. Consequential actions are previewed and governed.
  9. Approved actions show execution and synchronization status.
  10. Users can correct context, assumptions, and proposed memories.
  11. AI enrichment never blocks core operational content.
  12. L1 remains fully useful without opening AI Home.
  13. The user can distinguish AI suggestions from canonical facts.
  14. Provider failures and partial outcomes are clearly represented.
  15. Every execution is traceable from proposal to final outcome.

28. Final Experience Statement

IntegrateWise L1 is an adaptive daily Workbench with a silent AI partner. The user works normally across connected business contexts. The Adaptive Spine assembles permitted context and continuity in the background. Twin observes structured operational signals, understands what changed, prepares useful details, and proposes next actions. It remains quiet until assistance is relevant, and it never acts beyond granted authority. The user decides; IntegrateWise executes, synchronizes, and remembers the governed outcome.
Canonical product line: Your work is already in context. The hard lifting is prepared. You stay in control.


PART II — CANONICAL PLATFORM SPECIFICATION

29. Canonical Platform Definition

IntegrateWise is Operational Continuity Infrastructure with Governed Intelligence.

The platform connects enterprise systems, tools, AI providers, APIs, MCP runtimes, files, inboxes, and databases into a Common Connected Surface; creates and maintains canonical operational continuity through the Adaptive Spine; composes department- and role-aware Workbenches; provides a context-ready Tandem Twin; resolves work through Capability Fabric; governs authority and consequence; coordinates authorized execution through Hermes; reconciles state through Sync Engine; and promotes validated outcomes through the Continuity Pipeline.

Canonical Doctrine: Truth you own. AI you rent. Approval in between.


30. Platform Invariants

  1. Adaptive Spine owns canonical operational truth.
  2. No model owns canonical truth.
  3. No agent writes directly to Spine.
  4. Product code never imports provider SDKs directly.
  5. No external provider owns an IntegrateWise architectural boundary.
  6. Deployment configuration selects implementations; application architecture does not.
  7. Configuration Manager governs platform behavior.
  8. Integration Manager governs external connectivity.
  9. Secrets Provider resolves secret material.
  10. API Connectors connect systems.
  11. MCP connects tools and protocol capabilities.
  12. AI Connectors connect intelligence.
  13. API Wrappers create governed capabilities.
  14. Activation Bridge and Continuity Bridge are separate contracts.
  15. Creamy Load creates initial continuity.
  16. Delta Load maintains continuity.
  17. Streaming Load processes supported continuous event change.
  18. Common Connected Surface is logical, not a datastore.
  19. Spine is a canonical context and continuity network, not an ESB.
  20. User Workbench is the compositional operating hub of every department.
  21. Twin is always context-ready, not always inferencing.
  22. Twin reasons, retrieves, prepares, drafts, recommends, and proposes.
  23. Twin cannot independently execute consequential mutations.
  24. Twin never receives a direct Act button.
  25. Capability Fabric resolves how work can be performed.
  26. Governance determines whether and under whose authority work may proceed.
  27. Confidence never grants authority.
  28. Plan Builder creates the immutable/versioned ExecutionPlan.
  29. Approve Twin's Action approves an ExecutionPlan, not an AI message.
  30. Hermes coordinates authorized execution.
  31. Runtime adapters execute.
  32. Execution mode and synchronization mode are independent.
  33. Sync Engine reconciles provider state.
  34. Provider success is not automatically canonical truth.
  35. Promotion Evaluator decides whether resulting state becomes Spine truth.
  36. Every completed OODA loop should improve continuity for the next loop.
  37. Platform planes define responsibility.
  38. Contracts define boundaries.
  39. Runtime characteristics define deployment units.
  40. OODA defines operational phase, not microservices.

31. Configuration Manager

Configuration Manager answers: How should the platform behave for this deployment, tenant, workspace, role, and policy context?

It owns runtime configuration, provider bindings, tenant configuration, Workbench composition rules, feature policy, Twin policy, memory policy, retention policy, and policy references. It never owns OAuth tokens, API keys, database passwords, or provider credentials.

Effective Configuration Precedence:

$$\text{Platform Default} \longrightarrow \text{Deployment Profile} \longrightarrow \text{Environment Profile} \longrightarrow \text{Tenant Configuration} \longrightarrow \text{Tenant Policy} \longrightarrow \text{Runtime Feature Policy} \longrightarrow \text{Effective Configuration}$$

Field-level override authority is mandatory. Mandatory audit, governance bypass restrictions, tenant isolation, encryption floors, and platform safety policy cannot be weakened by tenant configuration.

CompiledTenantConfig includes identity configuration; state bindings; Spine, memory, session, audit, knowledge, execution and sync bindings; cache; blob; vector/search/reranker; queue/event bus; coordination; AI runtime/gateway/routing/provider/model/embedding policy; secrets; observability; features; departments; domains; roles; Workbench composition; context types; field visibility and precedence; capabilities; Twin policy; memory policy; governance references; approval policy; notifications; and retention. Recompilation is triggered by authorized configuration mutation, deployment-profile change, tenant-policy change, provider-binding change, feature-policy change, or schema/version migration.


32. Swappable Provider Architecture

IntegrateWise enforces a strict abstraction layer between the application core and external third-party services. To guarantee that external vendors never dictate system architecture, the platform implements a decoupled, configuration-driven resolution pipeline:

$$\text{Plane} \longrightarrow \text{Contract} \longrightarrow \text{Configuration Binding} \longrightarrow \text{Provider Registry} \longrightarrow \text{Adapter} \longrightarrow \text{Provider}$$

IntegrateWise defines contracts. Configuration Manager compiles effective bindings. Provider Fabric resolves adapters. Providers execute or persist. Product code never imports D1, KV, R2, Vectorize, OpenAI, Anthropic, Supabase, Redis, Descope, Stripe, or another provider SDK directly. Only adapters may import provider SDKs, isolating vendor logic completely behind abstract contracts.

32.1 The Core Resolution Pipeline

Every external interaction passes through six discrete architectural stages to resolve execution boundaries without direct dependency injection:

StageResponsibilityGovernance Enforcement
1. PlaneDefines the operational layer initiating the request (e.g., Capability Fabric, Governance, Integration Manager).Validates tenant-level plane access boundaries.
2. ContractThe strictly typed interface (TypeScript/Go) declaring the required capability, inputs, and expected output format.Hard-coded schema structural verification; cannot be altered by downstream configurations.
3. Configuration BindingThe runtime directive fetched from the CompiledTenantConfig mapping the contract to a specific provider ID based on tenant context.Asserts that the requested binding conforms to organization safety and compliance rules.
4. Provider RegistryThe system directory tracking active, authenticated adapters, their lifecycle state, and health signatures.Verifies credential validity via the Secrets Provider before routing.
5. AdapterThe isolated, deterministic translation layer converting IntegrateWise domain models into provider-native schemas.Enforces strict outbound data sanitization and removes proprietary internal metadata.
6. ProviderThe external endpoint (API, Model, Database, or Protocol Runtime) executing the localized operation.Bound by downstream API rate-limits and token constraints.

32.2 Contract Foundations & Zero-SDK Leakage

To prevent architectural drift and vendor lock-in, the application layer is structurally isolated from vendor code.

  • Dependency Isolation: All system operations must interact via abstract, internal domain interfaces. Product code is explicitly forbidden from introducing direct vendor dependencies.
  • The Adapter Boundary: Provider SDKs are quarantined inside their specific adapter module. If an external provider updates its SDK or introduces breaking API structural shifts, modifications are strictly bound to that single adapter; the core platform remains untouched.
  • Data Normalization: External payloads are mapped immediately to canonical IntegrateWise schemas upon ingress, and internal entities are translated to provider formats only at the edge of egress.

32.3 The Adapter Registry & Lifecycle Management

The Adapter Registry acts as the central coordinator for all discovered, initialized, and running adapters, controlled exclusively by the Integration Manager.

  • Dynamic Discovery: On application startup or configuration compilation, the registry scans active adapters and validates their contract compliance via structural typing checks.
  • Hot-Swapping Operations: The registry supports live configuration reloads. If a model provider or enterprise system suffers an outage, the registry redirects inbound requests to a designated fallback adapter within 50 ms, bypassing any need to restart runtime services.
  • Lifecycle Management: Adapters navigate through four primary runtime states: Uninitialized $\rightarrow$ Authenticating $\rightarrow$ Active $\rightarrow$ Degraded/Failed. A degraded state automatically trips circuit breakers, isolating failures and protecting the User Workbench canvas from cascading degradation.

32.4 Boundary Definition: API Connectors

API Connectors govern structured, traditional data exchanges (REST, GraphQL, gRPC) between the platform and core business systems.

  • Ingress Execution: API Connectors feed data into the Observe Pipeline using three explicit operations:

  • Creamy Load: Bulk initialization of historical context records.

  • Delta Load: Polling-based retrieval of state updates within a defined time window.

  • Streaming Load: Webhook-driven, real-time ingestion of transactional events.

  • Egress Limitations: API Connectors cannot execute write mutations on external systems autonomously. They must receive a validated, signed ExecutionPlan compiled by the Plan Builder and authorized by user sign-off or explicit policy bypass.

  • State Translation: Connectors cleanly manage external cursor pagination, rate-limiting headers, and retry back-offs, presenting a unified asynchronous stream back to the core platform.

32.5 Boundary Definition: MCP (Model Context Protocol) Connectors

MCP Connectors implement an open standard for securely exposing local tools, system resources, and prompt templates to intelligence components without establishing hard-coded point-to-point connections.

  • Schema Exposure: The MCP Connector discovers tool schemas exposed by local runtimes (e.g., safe filesystem accessors, browser automation scripts, isolated terminal runners) and marshals them into a standard format that the Twin can safely evaluate.
  • The Isolation Boundary: The Twin sees the capabilities exposed by the MCP Connector as tools it can call, but it cannot invoke them directly. The Twin must generate an isolated tool-call request payload.
  • Interception & Execution: The MCP Connector intercepts the model's tool-call request and routes it directly to the Governance plane. The tool is executed within an isolated sandbox environment only after checking user permissions, validating token payloads, and confirming explicit authorization.

32.6 Boundary Definition: AI Connectors

AI Connectors establish a unified gateway over large language models, embedding systems, and semantic rerankers. They completely decouple inference mechanics from the Orient phase.

  • Unified Format Interface: AI Connectors accept an internal, standard conversation and system directive state, abstracting away vendor-specific formatting quirks (such as Anthropic's block syntax vs. OpenAI's role schemas).
  • Token & Cost Optimization: Every outbound request through an AI Connector is injected with structural constraints (such as max tokens, temperature clamp, and stop sequences) defined by the CompiledTenantConfig. The connector streams responses back via server-sent events (SSE) while updating real-time cost meters.
  • Fallback & Deterministic Failover: When an external LLM fails, throws a 429 Rate Limit, or hits a content safety block, the AI Connector evaluates the configured tenant routing profile. It gracefully degrades execution down a deterministic cascade path (e.g., switching from a premium frontier model to an enterprise-grade self-hosted alternative) while dispatching an operational warning to the user's top-bar status indicator.

32.7 API Wrapper Boundary

The API Wrapper boundary encapsulates legacy, custom, or un-architected downstream API endpoints, converting non-standard transactional patterns into schema-compliant capabilities that adhere to internal IntegrateWise contracts.

  • Structural Contract Enforcement: Wrappers explicitly declare their inputs and outputs using strict JSON Schema declarations. Any underlying changes to vendor data models are caught, isolated, and normalized at this boundary before touching the application core.
  • Idempotency Insertion: For downstream APIs lacking native idempotency guarantees, the API Wrapper dynamically injects unique transaction tokens ($K_{idem}$) tracking states via the State Substrate to prevent duplicate writes during execution retries.
  • Payload Sanitation: Outbound requests are stripped of user PII or system metadata unless explicitly white-listed by the Governance plane. Inbound payloads are pruned of extraneous properties, retaining only fields mapped to canonical contexts.

32.8 ProviderBinding

A ProviderBinding is the runtime resolution model that binds an abstract platform contract to a concrete adapter instance based on the evaluation of the CompiledTenantConfig.

Configuration Manager ──> CompiledTenantConfig ──> ProviderBinding ──> Provider Registry ──> Adapter

  • Resolution Logic: At thread initialization, the execution context requests a capability. The platform checks the CompiledTenantConfig for the active tenant, workspace, and user role to extract the exact ProviderBinding key.
  • Context Immutability: Once a ProviderBinding is resolved for a specific transaction or event lifecycle step, it is frozen. Mid-flight configuration changes cannot alter the binding definition for an active execution path.
  • Binding Overrides: System administrators can define conditional fallback bindings directly within the configuration layer to routing traffic based on performance metrics, compliance restrictions, or regional localization laws.

32.9 Provider Registry Ownership Correction

To maintain strict boundaries under the frozen platform architecture, the Integration Manager is explicitly decoupled from total system fabric governance. It possesses no operational visibility into storage, cache, or internal system adapters. The ownership matrix is structured as follows:

Provider Fabric
├── StateProviderRegistry (SpineStore, Cache, Blob, Transaction Logs)
├── AIProviderRegistry (LLMs, Embeddings, Semantic Rerankers)
├── ConnectionProviderRegistry (API Connectors, MCP Servers, External Wrappers)
├── IdentityProviderRegistry (Authentication, Directories, Role Providers)
├── MessagingProviderRegistry (Slack, Teams, SMTP Channels)
├── ObservabilityProviderRegistry (Metrics, Distributed Tracing, Logs)
└── CommerceProviderRegistry (Billing, Marketplace Licensing)

Configuration Manager ──> CompiledTenantConfig ──> Provider Binding ──> Relevant Provider Registry ──> Adapter ──> Provider

  • Integration Manager Limits: The Integration Manager interacts exclusively with the ConnectionProviderRegistry to coordinate connection lifecycles (such as OAuth handshakes and token refreshes), handle MCP registration patterns, and manage API Wrapper declarations. It is completely blind to internal state engines, identity systems, and observability fabrics.
  • Registry Isolation: Each registry inside the Provider Fabric operates as a isolated, self-contained domain. Registries pull safe access parameters from the Secrets Provider and match incoming ProviderBinding directives against active compiled adapters without cross-domain leakage.

32.10 Adapter Capability Negotiation

Adapters dynamically declare their runtime features, resource limitations, and supported schemas to their respective registries using an asynchronous negotiation protocol during boot or hot-reload sequences.

  • Feature Flags: An adapter must export a strongly typed feature capability matrix specifying which primitive mutations it natively supports (e.g., SupportsBatchWrites: true, SupportsOptimisticLocking: false).
  • Schema Validation: If a connected provider modifies its native structure, the adapter negotiates supported protocol variants with the registry. If structural mutations violate minimum platform contract constraints, the registry flags the adapter as Degraded.
  • Rate Limit Profiling: Adapters declare hard capacity floors and window dynamics to prevent token exhaustion, allowing the platform's throttling infrastructure to cushion outbound queues before dispatching commands.

32.11 Config Version Pinning

To prevent schema corruption or asynchronous execution drift within active OODA loops, all configurations compiled by the Configuration Manager are assigned an immutable, monotonic version identifier.

  • Transactional Anchoring: When an ExecutionPlan is generated during the Decide phase, it pins the exact version hash of the CompiledTenantConfig.
  • Zero Mid-Flight Drift: If a tenant administrator updates access policies, credential sets, or provider configurations mid-execution, the running saga processes its steps using its pinned version state. The updated configuration applies only to OODA loops initiated post-commit.
  • Compaction & Purging: Historical configuration versions are retained in the State Substrate for audit trails and rollback workflows, adhering strictly to the time horizons defined by retention policies.

32.12 Provider Failover and Migration

The platform manages provider failovers deterministically through declarative routing matrices rather than relying on heuristic runtime guesses.

  • Failover Cascades: When an adapter reports a Failed state or trips a circuit breaker, the registry references the tenant's failover cascade sequence (e.g., Primary LLM $\rightarrow$ Secondary LLM $\rightarrow$ Local Sandbox Model).
  • Migration Mechanics: Data migration pathways between providers (such as moving from an external database instance to an on-premise target) use a dual-write runtime adapter strategy. The platform streams mutations to both targets simultaneously while executing background reconciliation via the Sync Engine.
  • Data Integrity Checks: The transition to a fallback provider requires verification from the governance plane. If the safety score of the fallback provider falls below the current context requirement, the action is escalated to a Level 5 Blocking Policy Event.

32.13 Tenant Isolation and Residency

Data segregation and compliance boundaries are enforced programmatically at the Provider Fabric layer, ensuring total partition integrity across multi-tenant environments.

  • Cryptographic Partitioning: Tenant data fields residing within shared physical databases are encrypted using distinct data-encryption keys (DEKs) managed by the Secrets Provider. Keys are fetched just-in-time and exist exclusively within volatile process memory.
  • Residency Routing: The Configuration Manager maps workspace identities to fixed regional availability zones. Adapters violating location constraints (e.g., passing data through an LLM endpoint outside the European Union for a GDPR-bound tenant) are structurally blocked during the binding phase.
  • No Shared State: No two tenants share raw execution loops, in-memory caches, or untrusted MCP execution blocks. Cross-tenant references are strictly impossible due to hard-coded workspace scopes in every data layer query.

32.14 Secrets Resolution

Credentials, secret strings, API keys, and private certificates are resolved just-in-time, preventing sensitive data exposure within configuration structures.

  • Token Tokenization: The CompiledTenantConfig stores only abstract reference URIs pointing to the Secrets Provider.
  • Just-in-Time Injection: Adapters receive structural secrets at the absolute edge of network transmission. The decrypted key materials are never written to disk, never emitted to log aggregators, and are immediately cleared from runtime memory buffers upon request completion.
  • Automated Rotation: When the Secrets Provider rotates a downstream token, it dispatches an invalidation signal to the relevant provider registry. The system flushes active connections and silently re-authenticates using the new secret material without interrupting user experiences.

32.15 Provider Health and Degradation

Provider health states are tracked using active synthetic heartbeats and passive operational telemetry tracking.

  • The Degradation Metric: Health status is evaluated across a spectrum of operational variables:

$$\text{Health Score} = f(\text{Latency}, \text{Error Rate}, \text{Saturation})$$

If the rolling error rate over a 60-second window exceeds a configured threshold, the registry shifts the provider's status from Active to Degraded.

  • Passive Interception: Every outbound request measures downstream response codes. If a provider begins emitting 503 Service Unavailable or 429 Too Many Requests, circuit breakers trip automatically, switching the interface to a cached read-only or fallback mode.
  • Workbench Feedback: When a provider degrades, the top-bar status indicator lights up amber. Active work cards tied to that specific provider display explicit warnings detailing which operations are temporarily limited.

32.16 Swappable-Layer Invariants

The Provider Fabric is bound by a set of unalterable architectural constraints designed to prevent structural corruption:

  • No product code may introduce a direct import of any external vendor SDK.
  • All data exiting an adapter must map directly to an internal, platform-owned contract schema.
  • Adapters must remain completely stateless; they are forbidden from persisting transient data outside of designated system engines.
  • A provider failure must never cause an application container to crash or leak memory across parallel tenant threads.

33. Integration Manager and Four Connection Paths

The Integration Manager governs external connection lifecycles, authenticates boundary nodes, and configures the ConnectionProviderRegistry. It manages connectivity across four strict paths:

                  ┌─────────────── Integration Manager ──────────────┐
                  │                                                  │
                  ▼                                                  ▼
        ┌──────────────────┐                               ┌──────────────────┐
        │  Path 1: REST/GQL│                               │ Path 2: Webhooks │
        └─────────┬────────┘                               └────────┬─────────┘
                  │                                                 │
                  ▼                                                 ▼
        ┌──────────────────┐                               ┌──────────────────┐
        │  Path 3: MCP     │                               │ Path 4: DB/Queue │
        └──────────────────┘                               └──────────────────┘

Path 1: REST/GraphQL (Synchronous Outbound)

Used for structured, target-driven data retrieval and governed system mutations. This path manages cursor-based pagination, rate limits, and authentication challenges natively within the adapter layer.

Path 2: Webhooks (Asynchronous Inbound)

Ingresses external real-time events straight into the Observe Pipeline. The Integration Manager terminates incoming webhooks at an edge gateway, verifies cryptographic signatures, correlates payloads to known tenant workspaces, and enqueues normalized events into the ingestion bus.

Path 3: MCP (Model Context Protocol - Dynamic Tools)

Establishes bi-directional communication channels with trusted local or remote service containers. The Integration Manager discovers tool schemas over stdin/stdout or transport abstractions, allowing the platform to translate model intents into secure, sandboxed tool executions.

Path 4: Native Databases and Message Queues (Direct Ingress/Egress)

Establishes secure data tunnels to high-throughput enterprise backends (e.g., PostgreSQL replicas, Kafka topics). This path supports high-volume batch loading patterns without introducing REST payload overhead.


34. Activation Bridge

The Activation Bridge translates stateless, incoming tenant authorization states and credentials into active, initialized system connection contexts within the workspace.

  • Context Initialization: When a user activates a system capability, the bridge fetches OAuth token matrices or authorization parameters, passing them through validation layers to guarantee scope configuration alignment.
  • Isolation Handshake: The bridge issues context-bound session identifiers, binding the specific adapter initialization routine to a single tenant thread.
  • Separation of Concerns: The Activation Bridge acts exclusively as an onboarding gate. Once the connection state is verified and cataloged inside the ConnectionProviderRegistry, the bridge disconnects, transferring runtime tracking to downstream operational engines.

35. Load Planner and Data Pipeline

The Load Planner orchestrates data synchronization without saturating external endpoints or introducing processing bottlenecks into the platform core.

External Provider ──> Load Planner ──> [Creamy | Delta | Streaming] ──> Data Pipeline ──> Spine

  • Creamy Load (Bulk Historical Realignment): Executed during workspace activation or entity onboarding. It schedules large, chunked extractions of historical records, utilizing database cursors to build a foundational context graph.
  • Delta Load (Time-Window Polling): Runs on automated intervals (e.g., every 5 minutes). It scans for updated records using mutation timestamps, ensuring cached data layers catch up with downstream changes.
  • Streaming Load (Event-Driven Ingestion): Processes near-instantaneous state updates via webhooks. It prioritizes low-latency ingestion for highly critical, volatile business fields.
  • The Ingestion Pipeline: All three patterns funnel raw structures into a unified parsing network. Payloads are checked for schema compliance, filtered for privacy controls, and prepared for integration into the core network.

36. Adaptive Spine and Spine Network

The Adaptive Spine is a high-performance, logical context network that acts as the primary repository for multi-source enterprise continuity.

Context Object (Customer) ──(Relationship)──> Context Object (Invoice)
        │                                             │
  [Unified ID]                                  [Unified ID]
        │                                             │
  ┌─────┴─────────────────── State Substrate ─────────┴─────┐
  │  Historical Projections  │  Real-Time Event Streams     │
  └─────────────────────────────────────────────────────────┘

  • Context & Relationship Graphs: The Spine maps diverse data entities (e.g., matching a Salesforce Opportunity to a Jira Ticket and a Stripe Invoice) into a singular, unified context record. Entities are stored as graph nodes linked by operational dependencies.
  • Multi-Node Context Replication: In high-availability deployment profiles, the Spine replicates core graph topologies across regional clusters. State synchronization uses raft-consensus mechanics to guarantee data write consistency.
  • Logical, Non-ESB Nature: The Spine is not an Enterprise Service Bus (ESB) that passes transient messages between external applications. It is an active persistence network that maintains a unified, operational representation of enterprise realities.

37. State Substrate

The State Substrate provides the physical, multi-tenant persistence layer supporting the logical architecture of the Adaptive Spine.

  • Storage Engines: Implemented via decoupled engines optimized for distinct access patterns: relational tables for transactional audit histories, graph databases for contextual relationship tracking, and key-value layers for quick caching.
  • Multi-Tenant Schema Enforcement: Every table row, document, and graph edge contains a composite, cryptographically validated primary key containing the TenantID and WorkspaceID. High-level query abstractions inject these constraints automatically, making manual partition isolation errors mathematically impossible.
  • Snapshotting & Time Travel: The substrate saves historical snapshots of context configurations. This architecture allows the platform to restore and inspect the exact data state of any given context at any specific historical timestamp.

38. Memory Fabric

The Memory Fabric controls the retention, classification, and progressive promotion of user and model interactions across three strict tiers.

Interaction ──> Tier 1: Working Context (Volatile, Expires)
                     │
                     ▼
                Tier 2: Candidate Memory (Pattern Detection, Tentative)
                     │
                     ▼
                Tier 3: Promoted Memory (Durable, Policy-Validated)

Tier 1: Working Context (Volatile Session Space)

Tracks local variables, active navigation paths, user hover signals, and current interface field values. Working context expires automatically upon session termination and is never committed to long-term storage.

Tier 2: Candidate Memory (Heuristic Pattern Spaces)

Analyzes repeating operational flows. If a user repeatedly structures a specific report or executes a consistent follow-up sequence, the system logs this pattern as a tentative candidate memory structure.

Tier 3: Promoted Memory (Durable Truth)

A candidate memory shifts to a durable state only after passing confidence score thresholds, receiving explicit user validation, or clearing strict organizational compliance rules. Promoted memory permanently guides Twin reasoning pathways.


39. Embeddings and Retrieval Fabric

The Embeddings and Retrieval Fabric powers semantic discovery and contextual injection across the platform.

  • Vectorization Mechanics: Incoming data fragments, unstructured documents, and timeline events are transformed into vector spaces using the active embedding model configured in the AIProviderRegistry.
  • Hybrid Search Topologies: Search queries combine dense semantic vectors with classic BM25 keyword matching scores, optimizing accuracy across unstructured concepts and precise identifiers alike.
  • Reranking Architecture: Raw search results pass through an isolated semantic reranking layer before prompt construction. This step enforces strict contextual relevance, stripping out non-essential fragments to prevent token bloat and eliminate model attention dispersion.

40. Workbench Composition

The Workbench Composition engine constructs the visual user interface dynamically from abstract metadata models, bypassing the need for static, hard-coded layouts.

  • Composition Resolution: When a user navigates to the L1 environment, the engine resolves UI configuration blocks through a strict processing path:

$$\text{Role Matrix} + \text{Active Context Type} + \text{Capability Set} \longrightarrow \text{Layout Profile}$$

  • Dynamic Canvas Rendering: Layout profiles dictate exactly which cards, action bars, tabs, and panels render on screen. If a tenant loses access to an external system, the layout automatically prunes corresponding interface elements without requiring redeployments.
  • State Preservation: The UI retains tab selections and viewport layouts locally. When a user shifts contexts, the workspace caches state, allowing smooth restoration when resuming tasks.

41. Context Observer and Twin Trigger Policy

The Context Observer continuously monitors user operations, system modifications, and environmental events to orchestrate Twin activity profiles.

  • Signal Capture Matrix: The observer aggregates interaction events across five discrete system dimensions:
Signal DimensionIngress SourceProcessing PathwayVolatility Profile
User MutationUI Form Inputs, Field ChangesActive Working ContextHigh — Volatile until save
System EventWebhooks, Streaming LoadsObserve Pipeline IngressLow — Permanent log insertion
Temporal TriggerCron Clocks, SLA DeadlinesLoad Planner SchedulingCritical — Triggers background alerts
Knowledge FluxDocument Uploads, Policy ShiftsVector Fabric IndexingStatic — Updates semantic spaces
Governance SignPolicy Revocations, Role ShiftsConfiguration InvalidationInstant — Structural re-evaluation
  • Twin Trigger Evaluation: Incoming signals are evaluated against the active Twin Trigger Policy. If a modification matches an escalation criteria (e.g., an opportunity value falls below a specific threshold while open tickets are unresolved), it trips an execution flag, elevating the Twin intervention level.
  • Suppression Control: To enforce the Quiet by default principle, repetitive or low-signal triggers are automatically grouped and throttled by a token-bucket algorithm, protecting the user from interaction fatigue.

42. Canonical Context Contracts

All operational entities traversing the Adaptive Spine must conform to strictly typed, versioned Canonical Context Contracts defined via schema compilation tools.

{
  "$schema": "https://schema.integratewise.com/v1/context.account.json",
  "type": "object",
  "properties": {
    "contextId": { "type": "string", "format": "uuid" },
    "tenantId": { "type": "string" },
    "entityType": { "type": "string", "enum": ["account"] },
    "canonicalTruth": {
      "type": "object",
      "properties": {
        "name": { "type": "string" },
        "healthScore": { "type": "integer", "minimum": 0, "maximum": 100 }
      },
      "required": ["name", "healthScore"]
    },
    "providerMappings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "providerId": { "type": "string" },
          "externalId": { "type": "string" },
          "lastSyncTimestamp": { "type": "string", "format": "date-time" }
        }
      }
    }
  },
  "required": ["contextId", "tenantId", "entityType", "canonicalTruth", "providerMappings"]
}

Contracts strictly enforce type definitions, validation constraints, and serialization schemas, ensuring data consistency as information migrates across external adapters, internal storage domains, and the user-facing canvas.


43. Capability Fabric

The Capability Fabric maps available external service endpoints and native code features into actionable, high-level structural declarations inside the Workbench.

  • Capability Introspection: The fabric reads capability parameters exposed by active adapters in the ConnectionProviderRegistry. It determines exactly what analytical transformations or transactional mutations can be performed based on current system conditions.
  • Unified API Abstraction: It transforms diverse downstream operational models into standardized business intents (e.g., converting a unique Salesforce SOAP request structure into a generic platform action: ExecuteRecordUpdate).
  • Availability Resolution: If a downstream target changes status to offline or an active connection loses write privileges, the fabric updates its internal state table, causing the UI layer to disable corresponding action buttons instantly.

44. Unified Governance

Unified Governance serves as the centralized gatekeeper for all actions, auditing security parameters, role boundaries, and transactional risk scales before execution.

  • Dual-Engine Access Controls: Policy execution processes requests through a continuous validation sequence:

$$\text{Role Matrix (RBAC)} \times \text{Context Attributes (ABAC)} \longrightarrow \text{Permission Status}$$

Both conditions must resolve to an authorized state to clear execution boundaries.

  • Risk Categorization Matrix: Proposed actions are assigned an objective risk score based on blast radius, resource costs, and systemic irreversibility:
Risk ProfileConsequence MetricsAuthorization ProtocolSafety Guardrail
Low RiskLocalized read operations, text draftsAutomated ExecutionOptional source inspection
Medium RiskSingle-record CRM edits, status flipsPolicy Bypass or Light ReviewBasic validation checks
High RiskBulk mutations, payment dispatchesExplicit Multi-Actor ApprovalHard-coded field limits
Critical RiskGlobal configuration or policy resetsCryptographic Sign-Off RequiredRollback snapshot enforcement
  • Immutable Policy Storage: Governance rules are stored as compiled configurations within the Configuration Manager. They cannot be modified, overridden, or deactivated by model outputs or agent workflows.

45. Plan Builder and ExecutionPlan

The Plan Builder converts abstract user or Twin intents into an immutable, versioned ExecutionPlan structure.

User/Twin Intent ──> Plan Builder ──> [Governance Check] ──> Immutable ExecutionPlan

  • Compilation Pipeline: The builder receives an operational directive, maps the requested mutations to required adapter capabilities, checks role authorization states, and constructs an explicit execution sequence.

  • The ExecutionPlan Schema: Plans are compiled as structured objects containing detailed step dependencies:

  • PlanVersion: Monotonic layout hash tracking execution configurations.

  • SagaSequence: Array of operations containing target provider IDs, specific adapter endpoints, and payload structures.

  • CompensationSteps: Alternative actions to run if a downstream provider fails mid-execution.

  • Immutability Lock: Once an ExecutionPlan is generated, it is cryptographically hashed. Any attempt to modify payload parameters post-generation invalidates the signature, causing Hermes to reject execution during processing.


46. Hermes

Hermes coordinates distributed transaction sagas across external provider systems based on signed ExecutionPlan structures.

  • The Saga Orchestration Pattern: Hermes executes tasks sequentially or in parallel based on plan dependencies. It tracks execution outcomes within a highly resilient transaction log inside the State Substrate.
  • State Management: Hermes transitions tasks through strict operational boundaries: Queued $\rightarrow$ Executing $\rightarrow$ Provider Confirmed.
  • Distributed Failure Recovery: If a downstream provider system throws an unrecoverable exception, Hermes stops forward execution, activates the plan's compensation sequence, and reverses partial writes to prevent enterprise data fragmentation.

47. Runtime Adapters and Execution

Runtime Adapters act as the low-level compute environments that execute the commands dispatched by Hermes.

  • Sandbox Security Boundaries: External tool executions, untrusted script blocks, and MCP-driven tasks run within isolated container processes. These sandboxes possess no raw network visibility and cannot access systemic environment variables unless explicitly permitted by configuration rules.
  • Payload Serialization: The adapter layer marshals internal engine models into target API specifications, managing specific wire protocol details (such as REST over HTTPS or custom gRPC streaming channels) cleanly.
  • Error Translation Mapping: Low-level connection errors, timeout drops, and vendor-specific error codes (e.g., ERR_CODE_5129) are caught and mapped into clear, platform-standard status definitions before propagation.

48. Sync Engine

The Sync Engine handles bidirectional reconciliation between the internal State Substrate and connected external providers.

       ┌─────────── Sync Engine ───────────┐
       │                                   │
       ▼                                   ▼
┌──────────────┐                   ┌──────────────┐
│StateSubstrate│                   │Ext. Providers│
└──────┬───────┘                   └──────┬───────┘
       │                                   │
       └───────── Reconciliation ──────────┘

  • Conflict Resolution Matrix: When data drift is detected between local caches and external endpoints, the engine evaluates conflict resolution hierarchies:

$$\text{System Preference} \times \text{Freshness Timestamp} \longrightarrow \text{Authoritative State}$$

  • Optimistic Locking Guardrails: Write operations use monotonic version tokens ($V_{mono}$). If an external system record updates between the Decide and Act phases, the engine flags a collision, blocks data overwrite, and initiates a localized Delta Load to refresh the view.
  • Reconciliation Queues: Deviations are logged into reconciliation streams. Minor updates are merged automatically; major data discrepancies freeze the local entity card and trigger an explicit Sync Conflict notification.

49. Outcome and Promotion

The Outcome and Promotion module evaluates completed execution loops to determine if resulting states qualify for integration into the authoritative operational truth.

  • Validation Pipelines: Once Hermes confirms an operation, the promotion evaluator checks data integrity:

  • Provider Confirmation Verification: Validates the receipt signature from the external endpoint.

  • Policy Alignment Review: Ensures the final mutation state does not violate workspace rules.

  • Promotion to Spine: If validation checks clear, the entity's state changes inside the graph database layer. The updated configuration becomes part of the canonical data view, pushing live updates out to connected L1 User Workbench interfaces.


50. Continuity Pipeline

The Continuity Pipeline enforces continuous state integrity across all platform operations, managing processing flows through four explicit architectural loops:

                  ┌────────────── Continuity Pipeline ─────────────┐
                  │                                                │
                  ▼                                                ▼
        ┌──────────────────┐                             ┌──────────────────┐
        │  Observe Loop    │                             │  Orient Loop     │
        └─────────┬────────┘                             └────────┬─────────┘
                  │                                                │
                  ▼                                                ▼
        ┌──────────────────┐                             ┌──────────────────┐
        │  Decide Loop     │                             │  Act Loop        │
        └──────────────────┘                             └──────────────────┘

1. The Observe Loop

Ingresses telemetry data, polling outputs, and webhook events into the platform. This loop filters incoming noise, enforces data privacy parameters, and logs structured updates directly into the State Substrate.

2. The Orient Loop

Processes active graph networks, matches incoming signals against the Memory Fabric, and evaluates context definitions. It runs semantic discovery structures and presents a fully prepared context layer to downstream components.

3. The Decide Loop

Translates active context states and user directions into structured proposals. This loop manages policy validation runs and uses the Plan Builder to construct a fully auditable execution roadmap.

4. The Act Loop

Dispatches the finalized plan to Hermes, tracks processing states across downstream adapters, monitors transaction outcomes, resolves data collisions via the Sync Engine, and promotes validated results back to the Adaptive Spine.


51. Canonical Contract Chain

The Canonical Contract Chain guarantees structural type safety from the lowest database storage layers up to the user-facing interface components.

State Substrate Schema ──> Graph Definition ──> API Contract ──> UI Card State

  • Compilation Graph: Every context configuration type maps to a singular, authoritative source specification. Build pipelines automatically compile these definitions into language-specific structures (TypeScript types for the L1 UI layer, Go/Rust structures for backend engines).
  • Breaking-Change Interception: Any structural deviation introduced into an adapter layer triggers a compilation failure during CI/CD checks, preventing corrupted or unaligned payload transformations from deploying to live clusters.

52. Complete End-to-End Runtime

The complete execution lifecycle of a single operational transaction traverses the four phases of the OODA infrastructure:

Phase 1: Observe

  1. An external ticketing system dispatches a webhook indicating that an enterprise account's support status has shifted to critical.
  2. The Integration Manager edge gateway terminates the request, validates the cryptographic signature, and passes the payload to the ingestion line.
  3. The Load Planner identifies the message as an event-driven Streaming Load and inserts the normalized transaction into the ingestion stream.
  4. The Observe Pipeline routes the event to the Adaptive Spine, updating the ticket state inside the State Substrate.

Phase 2: Orient

  1. The Context Observer catches the state shift and matches it against active Twin Trigger Policies.
  2. The platform initiates a graph traversal query across the Spine, extracting related customer context parameters, pending invoices, open projects, and recent interaction items.
  3. The Embeddings and Retrieval Fabric generates vectors for the ticket payload and runs a hybrid semantic search across the Knowledge Fabric, pulling relevant customer support playbooks.
  4. The Memory Fabric injects stored tenant communication templates into the active session context.
  5. The Twin compiles the multi-source data, logs a localized context insight card, and structures a personalized email response draft inside the user’s right panel canvas.

Phase 3: Decide

  1. The user logs into the L1 Workbench Home surface and activates the pending alert card.
  2. The Workbench requests layout configuration parameters from the Workbench Composition engine, instantly rendering the comprehensive Context360 workspace layout on screen.
  3. The user reviews the Twin-prepared email response draft, alters a parameter within the text container, and hits Approve Action.
  4. The Plan Builder intercepts the user's intent and compiles an immutable ExecutionPlan detailing the precise API route requirements, message strings, and a fallback compensation routing block.
  5. The plan is passed through the Unified Governance engine. The policy engine evaluates user permissions against active RBAC/ABAC models, calculates the operation's risk footprint, and cryptographically signs the execution plan.

Phase 4: Act

  1. Hermes receives the authorized ExecutionPlan and records the initial state parameters into the distributed transaction log.
  2. Hermes routes the payload down to the specific messaging adapter registered inside the ConnectionProviderRegistry.
  3. The adapter extracts connection credentials just-in-time from the Secrets Provider and transmits the message via the target vendor's API.
  4. The external system confirms transmission success. The adapter processes the response, translates vendor metadata into a standardized platform structure, and returns the result to Hermes.
  5. The Sync Engine reconciles local data states, ensuring version synchronization alignment ($V_{mono}$).
  6. The Outcome and Promotion evaluator runs data validation checks, confirms transaction integrity, and commits the state change to the Adaptive Spine.
  7. The L1 Workbench UI refreshes to display a Completed confirmation banner, and the complete transaction history is permanently written to the user’s operational Timeline.

53. Service and Deployment Doctrine

IntegrateWise isolates compute capabilities from deployment environments, ensuring the platform runs reliably across diverse infrastructure layouts.

[Edge Runtime Nodes] ──(Shared Contract)──> [Core Container Clusters]

  • Runtime Independence: Core engine blocks are packaged as immutable, containerized images. Deployment manifests determine whether capabilities deploy inside a unified, single-instance container cluster or map to isolated microservice instances.
  • Edge Routing Mechanics: Light read tasks, context projection updates, and UI layout streaming run on edge computing nodes geographically close to users, maximizing responsiveness.
  • State Isolation Protocols: Distributed clusters partition database layers by tenant keys. Scale actions add localized processing nodes without introducing cross-tenant data interdependencies.

54. Canonical Package Direction

The platform code repository organizes modules using a strict monorepo architecture, preventing dependency drift and enforcing clear separation of concerns across service layers:

integratewise-root/
├── apps/
│   ├── l1-workbench/          # User interface web application
│   └── platform-core/         # Core orchestration service container
├── pkg/
│   ├── adaptive-spine/        # Logical graph structures and truth routing
│   ├── capability-fabric/     # Capability translation and abstract actions
│   ├── governance/            # Policy calculation and security checks
│   └── provider-fabric/       # Abstract contracts and registries
└── providers/
    ├── ai/                    # Anthropic, OpenAI, Local LLM adapters
    ├── connection/            # Salesforce, Jira, MCP server adapters
    └── state/                 # PostgreSQL, Redis, Vector db adapters

  • The Import Barrier Rule: Core logic sub-packages (/pkg) are strictly prohibited from importing code blocks residing within the /providers domain. Storage and API dependencies are injected into engines at boot using abstract, structural contracts.

55. Cross-Cutting Infrastructure

  • Distributed Tracing: Every execution thread is assigned a unique CorrelationID at the edge boundary. This identifier is injected into all internal messages, asynchronous event steps, and adapter payloads, allowing full request tracing within system observability dashboards.
  • Token Throttling Engines: Outbound request traffic passes through rate-limiting gateways managed by the ConnectionProviderRegistry. These systems track downstream quota limits, automatically buffering or delaying execution threads to protect endpoints from saturation.
  • Structured System Auditing: Structural mutations, policy changes, and approval actions are formatted into canonical log structures and streamed to tamper-resistant storage networks, fulfilling corporate compliance requirements.

56. Canonical Acceptance Criteria

A platform build is validated for production deployment only when it passes five system benchmarks:

  1. Isolation Verification: Automated tests must verify that multi-tenant isolation layers block cross-workspace access attempts, dropping compromised requests instantly.
  2. Deterministic Failover: Under simulated provider drops, registries must redirect traffic to designated secondary targets within 50 ms without generating thread exceptions.
  3. Data Freshness Alignment: Progressive loading pipelines must project warm context states to user screens within 200 ms of request initialization.
  4. Contract Structural Match: Outbound mutation payloads must match the explicit JSON Schema specifications declared by downstream contracts.
  5. Zero Token Contamination: System logging tools must verify that secret credentials, keys, and PII elements never escape adapter memory domains.

57. Canonical Specification Suite

This document establishes the primary baseline for the platform's architecture. Additional deep technical directives are detailed across auxiliary design profiles:

  • Design Profile: Spine Architecture & Graph Topologies
  • Design Profile: Hermes Saga Orchestration Protocols
  • Design Profile: Unified Governance & Policy Execution Schema
  • Design Profile: L1 User Workbench Design Patterns & Component Tokens

58. Final Canonical Experience Statement

IntegrateWise combines distributed execution architecture with context-aware governance. By separating operational data layers from raw model inference, the platform provides users with an intelligent digital workspace that eliminates context gaps and avoids tool-switching fatigue. The Adaptive Spine serves as an authoritative source of operational continuity, ensuring internal data fields reflect actual enterprise realities. Operating under the strict OODA model, the platform maintains silent situational awareness, structures useful drafts, maps systemic risks, and runs complex multi-system transactions under direct human control. Decisions remain entirely in the hands of the user; IntegrateWise coordinates, secures, balances, and records the governed outcome.
Canonical Doctrine: Truth you own. AI you rent. Approval in between.