-
Resolve the run directory relative to the repository root.
-
Confirm that input.md and state/ artifacts exist.
-
Run:
python -m tools.host.project_cli resume <run-dir> --skill co-scientist-pipeline
-
Read state/PIPELINE_STATE.json, state/CURRENT_STAGE.json, and state/HOST_AGENT_HANDOFF.json.
-
Read the CLI JSON result and the run-local dashboard receipt artifacts:
runs/<run_id>/dashboard/LINKS.md
runs/<run_id>/dashboard/LINKS.json
-
If the CLI JSON contains dashboardLinks:
- If
dashboard.status is running, return dashboardLinks.dashboard as the primary dashboard URL and include the deep links.
- If
dashboard.status is starting, immediately run:
python -m tools.host.project_cli dashboard <run-dir>
- Read the refreshed CLI JSON result plus
runs/<run_id>/dashboard/LINKS.md.
- If
runtime.status is now running, return the refreshed links.dashboard URL as the primary dashboard URL and include the deep links.
- If
runtime.status is still starting, tell the user that the dashboard is still booting, point them to runs/<run_id>/dashboard/LINKS.md, and include the retry command:
$co-scientist-dashboard <run-dir>
-
Run the resume validator before continuing:
python -m tools.validation.contract_validation <run-dir> --resume --skill co-scientist-pipeline
-
Resume only incomplete phases. Do not restart completed phases when their artifacts remain valid.
-
Continue from skills/co-scientist-pipeline/SKILL.md and the route recorded in persisted state. If the persisted route returns run_configuration, resume or rerun research-config and validate research_plan/RESEARCH_PLAN.json before any generation work.