Core Tasks
Core tasks are atomic, reusable building blocks for workflows. Each task follows the HO-TP anatomy pattern.Task Anatomy
Every task includes:string
required
Human-readable task name
string
required
Unique task identifier (e.g.,
TSK-020)string
required
Execution mode:
Agent, Script, Manual, Hookstring
required
Who/what executes:
@jarvis, @agent:{id}, @human, @hook:{name}object
required
Required input parameters and types
object
required
Expected output format and location
array
required
Checklist for task completion validation
Available Tasks
extract-dna
Extract cognitive DNA from insights and themes. Task ID:TSK-020
Execution:
- Type: Agent
- Executor:
@jarvis
json
required
Extracted insights from content
array
required
Theme classifications
string
required
Source identifier (e.g., “CG”, “JM”)
array
required
Content chunks for reference
yaml
5-layer DNA structure saved to
agents/persons/{name}/DNA-CONFIG.yamljson
Count of items per DNA layer (L1-L5)
- All 5 DNA layers populated
- Minimum 3 items per layer
- Source citations for each item (
^[chunk_id]) - Valid YAML structure
- Next Task:
trigger-agentwhendna_complete - Data Passed: DNA-CONFIG path, layer_counts
core/tasks/extract-dna.md:1-115
detect-role
Detect job roles and functions mentioned in content. Task ID:TSK-012
Execution:
- Type: Script
- Executor:
@script:role_detector.py
string
required
Content to analyze for role mentions
string
Source identifier for tracking
- Direct (weight: 1.0) - Role name appears explicitly
- Inferred (weight: 0.7) - Activity implies role (e.g., “writing sales copy” → COPYWRITER)
- Emergent (weight: 0.5) - Unknown role detected via generic patterns
array
List of detected roles with detection type, weight, and context
array
Emergent roles not in vocabulary (candidates for agent creation)
array
Roles that crossed threshold for agent creation
- Increments
mention_countinENTITY-REGISTRY.json - Updates
mention_breakdown(direct/inferred/emergent) - Calculates
weighted_score - Logs detection in
detection_history
- Established:
weighted_score >= 10ANDsources >= 2 - Emerging:
weighted_score >= 5ANDsources >= 1
core/tasks/detect-role.md:1-17, core/intelligence/role_detector.py:1-856
normalize-entities
Canonicalize entity names (persons, themes, roles, concepts). Task ID:TSK-008
Execution:
- Type: Script
- Executor:
@script:entity_normalizer.py
string
required
Raw entity name to normalize
string
required
Type:
person, theme, role, conceptstring
Source that mentioned this entity
string
Domain context for boost matching (e.g., “SALES”)
- Exact match on canonical names (score: 1.0)
- Alias match on known aliases (score: 1.0)
- Fuzzy match via difflib (threshold: 0.85)
- Domain boost for same-domain entities (+0.10 bonus)
- Taxonomy check against DOMAINS-TAXONOMY.yaml
- New entity creation if no match found
- Score ≥ 0.95: Auto-merge, add as alias
- Score 0.85-0.94: Add to review queue
- Score < 0.85: Create new entity
string
Canonical entity name
string
Match method:
exact, alias, fuzzy, domain_boost, taxonomy, newnumber
Similarity score (0.0-1.0)
boolean
Whether new entity was created
- Person: Title Case (“Alex Hormozi”)
- Role: UPPER-CASE-WITH-HYPHENS (“SALES-MANAGER”)
- Theme: lowercase-with-hyphens (“processo-vendas”)
- Concept: Title Case (“Farm System”)
core/tasks/normalize-entities.md:1-16, core/intelligence/entity_normalizer.py:1-566
analyze-themes
Detect and classify themes in content. Task ID:TSK-015
Execution:
- Type: Script
- Executor:
@script:theme_analyzer.py
string
required
Content to analyze for themes
string
Source identifier
Detection Logic:
Uses keyword patterns and context analysis:
array
List of theme IDs with confidence scores
array
Themes with secondary relevance
core/tasks/analyze-themes.md:1-17
process-batch
Process multiple files in batch with checkpointing. Task ID:TSK-025
Execution:
- Type: Agent
- Executor:
@jarvis
array
required
List of file paths to process
string
required
Workflow to execute (e.g., “wf-pipeline-full”)
number
Files per checkpoint (default: 1)
- Processes files sequentially
- Creates checkpoint after each file
- Auto-resume on interruption
- Aggregates metrics across batch
object
Total files, success count, errors, processing time
array
List of checkpoint IDs created
core/tasks/process-batch.md:1-25
validate-cascade
Validate post-processing cascade completeness. Task ID:TSK-030
Execution:
- Type: Script
- Executor:
@script:validate_cascade.py
string
required
Source identifier to validate
- Agent Memories Updated - All relevant agents have source in memory
- Dossiers Created - Persons/themes have dossiers
- Knowledge Base Populated - Insights written to correct categories
- Registry Consistency - ENTITY-REGISTRY matches artifacts
- Cross-References Valid - All links resolve correctly
object
Pass/fail status per check with details
array
List of issues with severity (CRITICAL, WARNING, INFO)
core/tasks/validate-cascade.md:1-21
Task Registry
All available tasks are indexed incore/tasks/TASK-REGISTRY.md:
Creating New Tasks
Task Template
Conventions
- IDs: Use
TSK-###format (sequential) - Files: Use
kebab-case.mdincore/tasks/ - Atomicity: One clear responsibility per task
- Idempotency: Safe to re-run without side effects
- Testability: Clear acceptance criteria
See Also
- Workflows - Task orchestration
- Intelligence Layer - Python scripts
- Schemas - Data validation
