Unclassified

Core Spine Agents

The Foundation of the Agent Network

Core Spine Agents are the five system-level agents that form the foundation of IntegrateWise. They work together to coordinate all interactions, manage data, discover capabilities, and route work efficiently.

Key Insight: Without these core agents, the Spine Agent Network cannot function. They are always active and provide the essential infrastructure for all other agents.

The Five Core Agents

1. Twin Agent

Your Digital Representative

The Twin is your permanent digital identity within IntegrateWise. It maintains your context, preferences, knowledge, and work patterns across all interactions.

Key Responsibilities

  • Identity Management - Maintains your digital identity across the system
  • Context Coordination - Assembles and manages context for all your work
  • Agent Orchestration - Coordinates other agents to complete your requests
  • Continuity - Ensures seamless experience across all interactions
  • Personalization - Learns and adapts to your unique needs and patterns

How Twin Works

User Request → Twin Analysis → Agent Selection → Context Assembly → Execution → Result Delivery

Example: When you ask "What's the status of the Acme deal?", Twin:

  1. Understands you're asking about a sales opportunity
  2. Identifies the need for CRM data and previous interactions
  3. Selects appropriate agents (Discovery Agent, CRM connectors)
  4. Assembles context about Acme from Spine Fabric
  5. Coordinates agents to gather and synthesize information
  6. Delivers comprehensive answer with full context

User Experience

  • Single Interface - Talk to Twin, not to individual agents
  • Consistent Context - Twin remembers your preferences and work history
  • Intelligent Delegation - Twin automatically routes work to the right agents
  • Proactive Assistance - Twin suggests relevant actions based on context

2. Schema Agent

The Data Architect

The Schema Agent is the guardian of IntegrateWise's canonical data model, ensuring all entities, events, and contexts conform to defined schemas.

Key Responsibilities

  • Schema Validation - Validates all incoming data against canonical schemas
  • Schema Synthesis - Automatically generates and evolves schemas from data
  • Entity Mapping - Maps between different data models (external → Spine canonical)
  • Event Extraction - Extracts structured events from unstructured data

Supported Entity Types

CategoryExamples
Business EntitiesCustomer, Account, Opportunity, Contact, Lead
Work EntitiesTask, Project, Deal, Ticket, Meeting
CommunicationEmail, Message, Call, Chat
ContentDocument, Note, File, Knowledge Base
FinancialInvoice, Payment, Order, Contract
EventsCreated, Updated, Deleted, Completed

Schema Evolution

The Schema Agent supports:

  • Automatic Schema Inference - Derives schemas from data patterns
  • Schema Versioning - Manages schema evolution over time
  • Conflict Resolution - Handles schema conflicts and merges
  • Custom Schemas - Supports tenant-specific schema extensions

3. Coworker Agent

Your Collaboration Partner

The Coworker Agent works alongside humans on shared tasks, providing intelligent assistance for collaborative work.

Key Responsibilities

  • Task Collaboration - Works with humans on shared tasks and projects
  • Context Sharing - Maintains shared context for team work
  • Handoff Management - Smoothly transitions work between team members
  • Coordination - Helps coordinate multi-person workflows

Collaboration Patterns

  1. Human + Coworker

    Human starts task → Coworker assists → Human reviews → Coworker refines → Task complete
    
  2. Multiple Humans + Coworker

    Team discussion → Coworker captures context → Individual work → Coworker coordinates → Team sync
    
  3. Coworker + Specialized Agents

    Complex task → Coworker decomposes → Subtasks to agents → Coworker aggregates → Final delivery
    

Use Cases

  • Document Creation - Collaborate on documents with AI assistance
  • Project Planning - Plan projects with intelligent suggestions
  • Code Review - Review code with AI-powered analysis
  • Meeting Preparation - Prepare for meetings with comprehensive briefings

4. Discovery Agent

The Information Finder

The Discovery Agent is responsible for finding relevant context, tools, capabilities, and information to support agent operations.

Key Responsibilities

  • Capability Discovery - Finds agents and tools that can perform needed tasks
  • Context Discovery - Identifies relevant information and context for requests
  • Tool Discovery - Discovers available tools and their capabilities
  • Route Optimization - Determines the most efficient path for work execution

Discovery Mechanisms

  1. Capability-Based Discovery

    Request: "Analyze this market"
    Discovery: Finds agents with "market_analysis" capability
    Result: Returns Market Research Agent
    
  2. Context-Based Discovery

    Context: Working on Salesforce opportunity
    Discovery: Finds CRM tools and Sales agents
    Result: Returns Salesforce connector + Lead Agent
    
  3. Pattern-Based Discovery

    Pattern: User frequently asks for customer health scores
    Discovery: Identifies Customer Success agents and metrics
    Result: Returns Account Health Agent + relevant dashboards
    

Discovery Sources

  • Agent Registry - Database of all available agents and their capabilities
  • Tool Registry - Database of all connected tools and their functions
  • Context Index - Index of all context and relationships in Spine Fabric
  • Usage Patterns - Historical patterns of user behavior and preferences

5. Triage Agent

The Work Router

The Triage Agent is responsible for routing requests, tasks, and work to the appropriate agents, systems, or humans based on priority, capability, and context.

Key Responsibilities

  • Request Prioritization - Determines urgency and importance of incoming requests
  • Agent Selection - Routes work to the most appropriate agent
  • Load Balancing - Distributes work across available agents
  • Exception Handling - Manages edge cases and error conditions
  • Queue Management - Maintains work queues and processing order

Triage Decision Factors

FactorDescriptionExample
UrgencyTime sensitivity of the request"ASAP" vs "When convenient"
ImportanceBusiness impact of the requestCustomer escalation vs routine task
ComplexityHow complex the task isMulti-step workflow vs simple query
CapabilitiesWhat capabilities are neededRequires CRM access + analysis
ContextCurrent user contextWorking on specific customer or project
AvailabilityWhich agents are availableAgent load and readiness
DependenciesWhat the task depends onWaiting for other tasks to complete

Triage Workflow

1. Request Received → Analyze request type and context
2. Priority Assessment → Determine urgency and importance
3. Capability Matching → Find agents with required capabilities
4. Availability Check → Verify agent availability
5. Route Decision → Select optimal agent or workflow
6. Handoff → Transfer work with full context
7. Monitor → Track execution and handle exceptions

Agent Relationships

How Core Agents Work Together

┌─────────────────────────────────────────────────────────────┐
│                    CORE AGENT COLLABORATION                     │
├─────────────────────────────────────────────────────────────┤
│                                                                  │
│  ┌──────────────┐    ┌──────────────┐    ┌──────────────┐   │
│  │    TWIN      │    │  DISCOVERY   │    │   SCHEMA     │   │
│  │  (Orchestrator)│   │   (Finder)   │    │   (Architect) │   │
│  └──────┬───────┘    └──────┬───────┘    └──────┬───────┘   │
│         │                   │                   │          │
│         │    ┌──────────────▼──────────────┐    │          │
│         │    │           WORK REQUEST         │    │          │
│         │    │    ┌─────────────────────────┐│    │          │
│         │    │    │  What needs to be done?    ││    │          │
│         │    │    │  What capabilities needed?││    │          │
│         │    │    └─────────────────────────┘│    │          │
│         │    └──────────────┬──────────────┘    │          │
│         │                   │                   │          │
│         ▼                   ▼                   ▼          │
│  ┌──────────────┐    ┌──────────────┐    ┌──────────────┐   │
│  │  COWORKER    │    │   TRIAGE     │    │   Validates  │   │
│  │  (Collaborator)│   │   (Router)   │    │   Data &     │   │
│  └──────────────┘    └──────────────┘    │   Schemas     │   │
│                                           └──────────────┘   │
│                                                                  │
│  ┌─────────────────────────────────────────────────────────┐ │
│  │                    EXECUTION FLOW                            │ │
│  │                                                             │ │
│  │  Twin → Discovery → Triage → Specialized Agent → Execution │ │
│  │         ↓        ↓              ↓                         │ │
│  │      Context   Capabilities    Priority                   │ │
│  └─────────────────────────────────────────────────────────┘ │
│                                                                  │
└─────────────────────────────────────────────────────────────┘

Example: Multi-Agent Collaboration

User Request: "Prepare a comprehensive report on our Q2 sales performance"

  1. Twin receives request, understands intent
  2. Discovery finds relevant agents (Data Analysis, Report Generation, Sales Context)
  3. Schema validates data structures for sales metrics
  4. Triage prioritizes and routes to Report Generation Agent
  5. Coworker assists with data gathering and formatting
  6. Specialized Agents execute their parts (data analysis, chart generation, etc.)
  7. Twin aggregates results and delivers final report

Technical Details

Agent Architecture

All Core Agents share a common architecture:

┌─────────────────────────────────────────────────────────────┐
│                    CORE AGENT STRUCTURE                      │
├─────────────────────────────────────────────────────────────┤
│                                                                  │
│  ┌─────────────────────────────────────────────────────────┐ │
│  │                    CONTROL LAYER                         │ │
│  │  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐    │ │
│  │  │  Intent     │  │  Context    │  │  Governance │    │ │
│  │  │  Parser     │  │  Manager   │  │  Engine     │    │ │
│  │  └─────────────┘  └─────────────┘  └─────────────┘    │ │
│  └─────────────────────────────────────────────────────────┘ │
│                                                                  │
│  ┌─────────────────────────────────────────────────────────┐ │
│  │                    EXECUTION LAYER                        │ │
│  │  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐    │ │
│  │  │  Task      │  │  Handoff   │  │  Monitor    │    │ │
│  │  │  Executor  │  │  Manager   │  │  Engine     │    │ │
│  │  └─────────────┘  └─────────────┘  └─────────────┘    │ │
│  └─────────────────────────────────────────────────────────┘ │
│                                                                  │
│  ┌─────────────────────────────────────────────────────────┐ │
│  │                    INTEGRATION LAYER                       │ │
│  │  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐    │ │
│  │  │  Spine     │  │  MCP       │  │  Other     │    │ │
│  │  │  Fabric    │  │  Pool      │  │  Agents    │    │ │
│  │  └─────────────┘  └─────────────┘  └─────────────┘    │ │
│  └─────────────────────────────────────────────────────────┘ │
│                                                                  │
└─────────────────────────────────────────────────────────────┘

Capability Matrix

CapabilityTwinSchemaCoworkerDiscoveryTriage
Context Assembly✅❌✅✅✅
Task Execution✅❌✅❌✅
Data Validation❌✅❌❌❌
Capability Discovery❌❌❌✅❌
Work Routing✅❌❌✅✅
Collaboration✅❌✅❌❌
Handoff Management✅❌✅❌✅

Configuration

Core Agent Settings

All Core Agents are always active and cannot be disabled. However, you can configure their behavior:

# Twin Configuration
  twin:
    personality: "professional"  # professional, friendly, technical
    learning_rate: 0.8          # How quickly Twin learns from interactions
    context_retention: 365       # Days of context to retain
    
# Schema Agent Configuration
  schema_agent:
    auto_evolve: true           # Automatically evolve schemas
    strict_mode: false           # Strict validation vs lenient
    
# Coworker Configuration
  coworker:
    collaboration_mode: "active"  # active, passive, disabled
    task_timeout: 3600           # Seconds before task timeout
    
# Discovery Configuration
  discovery:
    search_depth: 3             # How deep to search for capabilities
    cache_ttl: 300              # Cache time-to-live in seconds
    
# Triage Configuration
  triage:
    priority_thresholds:        # Custom priority thresholds
      urgent: 0.9
      high: 0.7
      normal: 0.5
      low: 0.3

Monitoring

Core Agent Metrics

AgentMetricsDescription
TwinRequests ProcessedTotal user requests handled
Context AssembledContext packages created
Agent CoordinatedNumber of agents coordinated
SchemaSchemas ValidatedData validation operations
Schemas EvolvedAutomatic schema updates
Mappings PerformedEntity mapping operations
CoworkerTasks CollaboratedShared tasks completed
Handoffs ManagedWork transitions handled
DiscoveryCapabilities FoundSuccessful capability discoveries
Tools DiscoveredTool discovery operations
TriageRequests RoutedWork routing operations
Priority DecisionsPriority assessments made

Health Checks

All Core Agents include:

  • Heartbeat - Regular health signals
  • Performance Metrics - Response times and throughput
  • Error Tracking - Error rates and types
  • Resource Usage - CPU, memory, and network usage

Troubleshooting

Common Issues

IssueCauseSolution
Slow response timesHigh agent loadCheck load balancing, scale resources
Context missingIncomplete dataVerify integrations, check permissions
Wrong agent selectedDiscovery misconfigurationReview capability definitions, retrain discovery
Work not routedTriage rules incorrectUpdate priority thresholds, verify agent availability

Debug Mode

Enable debug mode for detailed logging:

# Enable debug for specific agent
integratewise agent debug twin --level verbose

# View agent logs
integratewise agent logs twin --tail 100

# Check agent health
integratewise agent health --all

Best Practices

For Administrators

  1. Monitor Core Agents - Keep an eye on core agent health and performance
  2. Review Discovery Index - Regularly update capability and tool registries
  3. Tune Triage Rules - Adjust priority thresholds based on your organization's needs
  4. Backup Schema - Regularly backup your schema definitions

For Developers

  1. Use Discovery API - Leverage Discovery Agent to find capabilities programmatically
  2. Register Capabilities - Ensure all new agents and tools are properly registered
  3. Follow Schema - Always validate data against canonical schemas
  4. Handle Handoffs - Design agents to properly receive and pass context

For Users

  1. Provide Feedback - Help Twin learn your preferences
  2. Be Specific - Clear requests help agents work better
  3. Review Context - Check the context Twin assembles for accuracy
  4. Use Approvals - Configure approval workflows for sensitive actions

Roadmap

Core Agent Enhancements

  • Twin - Improved personalization and learning algorithms
  • Schema - Enhanced schema inference and conflict resolution
  • Coworker - Better multi-human collaboration support
  • Discovery - Advanced capability matching and ranking
  • Triage - Predictive routing and load optimization

Support

Documentation

Community


Quick Reference

Core Agent Summary

AgentNicknamePrimary RoleAlways Active
Twin"The Boss"Orchestration✅ Yes
Schema"The Librarian"Data Architecture✅ Yes
Coworker"The Sidekick"Collaboration✅ Yes
Discovery"The Scout"Information Finding✅ Yes
Triage"The Traffic Cop"Work Routing✅ Yes

Key Concepts

  • Twin-Centric - All interactions go through Twin
  • Context-First - Context flows with every request
  • Handoff - Work transfer between agents with full context
  • Governed - All actions have proper permissions and audit

Next Steps

  1. Understand the full Agent Network
  2. Explore Domain Agents
  3. Learn about Network Effect
  4. Try Core Agents in action