Research Workflow
Use this module when a caller needs an inspectable research plan or tracking
configuration. Execution and evidence are supplied by the caller's actual
project pipeline.
Quick reference
from infrastructure.research import ResearchWorkflow, load_research_workflow_config
workflow = ResearchWorkflow()
print(workflow.describe())
for stage in workflow.all_stages():
print(stage.order, stage.name, stage.gate)
record = workflow.stage("survey").to_dict()
plan = workflow.to_dict()
settings = load_research_workflow_config("projects/templates/template_code_project")
Stage names are scope, survey, hypothesise, experiment, validate,
review and write. Descriptors contain name, label, description, inputs,
outputs, gate, status and order; no computation happens when they are displayed.
Configuration
The library reads optional projects/<qualified-project>/research_workflow.yaml:
enabled: true
active_stage: survey
skip_stages: []
strict: true
Unknown keys and invalid stage names fail. Missing files return tracking defaults.
The separate repository inspection CLI reads research_workflow.enabled from
manuscript/config.yaml and supports these actual arguments:
uv run python scripts/pipeline/stage_10_research_workflow.py \
--project templates/template_code_project --describe
uv run python scripts/pipeline/stage_10_research_workflow.py \
--project templates/template_code_project --stage survey
--describe works without enabling the inspection switch. --stage reports
a descriptor with the switch enabled. These are inspection commands;
actual computations use the canonical execution DAG and domain producers.