Core Tasks
Core tasks are atomic, reusable building blocks for workflows. Each task follows the HO-TP anatomy pattern.Task Anatomy
Every task includes:Human-readable task name
Unique task identifier (e.g.,
TSK-020)Execution mode:
Agent, Script, Manual, HookWho/what executes:
@jarvis, @agent:{id}, @human, @hook:{name}Required input parameters and types
Expected output format and location
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
Extracted insights from content
Theme classifications
Source identifier (e.g., “CG”, “JM”)
Content chunks for reference
5-layer DNA structure saved to
agents/persons/{name}/DNA-CONFIG.yamlCount 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
Content to analyze for role mentions
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
List of detected roles with detection type, weight, and context
Emergent roles not in vocabulary (candidates for agent creation)
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
Raw entity name to normalize
Type:
person, theme, role, conceptSource that mentioned this entity
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
Canonical entity name
Match method:
exact, alias, fuzzy, domain_boost, taxonomy, newSimilarity score (0.0-1.0)
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
Content to analyze for themes
Source identifier
| Code | Theme | Description |
|---|---|---|
| 01 | ESTRUTURA-TIME | Team structure, roles |
| 02 | PROCESSO-VENDAS | Sales process, techniques |
| 03 | CONTRATACAO | Hiring, onboarding |
| 04 | COMISSIONAMENTO | Compensation structures |
| 05 | METRICAS | Performance metrics |
| 06 | FUNIL-APLICACAO | Lead qualification |
| 07 | PRICING | Pricing strategy |
| 08 | FERRAMENTAS | Tools, tech stack |
| 09 | GESTAO | Management practices |
| 10 | CULTURA-GAMIFICACAO | Culture, motivation |
| 99 | SECUNDARIO | Other insights |
List of theme IDs with confidence scores
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
List of file paths to process
Workflow to execute (e.g., “wf-pipeline-full”)
Files per checkpoint (default: 1)
- Processes files sequentially
- Creates checkpoint after each file
- Auto-resume on interruption
- Aggregates metrics across batch
Total files, success count, errors, processing time
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
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
Pass/fail status per check with details
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
