Lab Notes

Research Framework

The Research Agent's structured multi-phase pipeline — core components, mission flow, search adapters, and current limitations.

Purpose

The Research Framework is the structured pipeline that governs how the Research Agent executes missions. It defines how a task is received, how research phases are executed in dependency order, how intermediate data is stored, and how a final report is produced.

This page documents the Research Agent's concrete pipeline on top of OpenClaw. The OpenClaw framework provides the general mission runtime and artifact model; this research framework defines the domain-specific phases used for structured information gathering and report generation.

Status: Implemented (pipeline, phase DAG, artifact store, and final report generation operational)

Core components

ComponentResponsibility
Task LayerReceives task definitions from the file-based queue
Mission RunnerCreates the run directory, manages lifecycle, orchestrates phases
Phase DAGDefines execution order and dependencies between phases
Search AdaptersInterface to external search and media sources
Artifact StoreStores typed intermediate outputs per mission run
State StoreTracks mission progress, phase status, and errors
Final ReportAggregates all artifacts into final_report.md

Mission flow

A research mission proceeds as follows:

  1. A task definition is written to the task queue directory as a JSON file.
  2. The Mission Runner detects the task and creates an isolated run directory.
  3. Phases execute in the order defined by the Phase DAG, respecting dependencies.
  4. Each phase reads from prior artifacts and writes its output to the run directory.
  5. The final phase (F6) aggregates all available artifacts into final_report.md.
  6. The state file is updated to reflect completion or any errors.

Phase DAG overview

Loading diagram…
Research Agent mission DAG — blue nodes execute in parallel after F1

F2, F4, and Y1 are independent of each other and can be treated as a parallel group after candidates are produced. See Research Mission DAG for full details.

Artifacts produced

Each mission run produces the following files:

FileContents
task.jsonOriginal task definition
candidates.jsonDiscovered candidate items
reviews.jsonlReview and analysis entries per candidate
price_analysis.jsonPricing and availability data
youtube_transcripts.jsonVideo transcript content
synthesis.jsonDeep synthesis output (optional)
final_report.mdAggregated Markdown report
state.jsonMission progress and error tracking

See Research Artifacts for the full lifecycle description.

Search adapters

The current implementation includes adapters for:

  • Web search (external search API)
  • Media platform queries (streaming catalog integration)
  • YouTube transcript extraction

Additional adapters for other research domains are planned.

A current limitation

The framework currently handles structured research well within its designed domains (discovery, reviews, pricing, transcripts). Support for broader research domains — academic papers, technical documentation, structured databases — is planned but not yet implemented.

→ OpenClaw Framework Overview — the runtime model this pipeline runs on top of
→ Research Mission DAG — detailed phase dependency graph → Research Artifacts — artifact files and lifecycle → Research Agent — agent overview