Research stage: pipeline wiring (stage order, label skip, resume) #212

Open
opened 2026-08-16 21:52:15 +00:00 by david · 0 comments
Owner

Wire the research stage into the pipeline:

  • Pipeline integration — insert research into PIPELINE_STAGES between issue-fetch and implement; add the label-skip path (record in skippedStages, reason in the run summary); resume: research completion via the research-summary.json artifact (add a STAGE_ARTIFACTS entry), update the hardcoded stage-order list in determineResumeStageWithGit.
  • Stage modulesrc/research/ mirroring the other stages: wrapper builder, user-prompt builder, RESEARCH_TOOLS allowlist (read, bash, grep, find, ls, web_search, web_fetch), defaults, runResearchStage with injectable seams (runStageFn, git runner, REST clients, version gate, manifest parser, label skip, tool-availability check).
  • No commit-model change — research adds no Pi-Loop-Stage trailer and does not commit to the feature branch; implement and the resume trailer scan are untouched.

Unit tests: pipeline wiring (research in stage order, skip on label, resume from research, default skipped-research result). References: ADR-014, DESIGN.md §3.2/§3.3/§4, AGENTS.md.

Wire the research stage into the pipeline: - **Pipeline integration** — insert `research` into `PIPELINE_STAGES` between `issue-fetch` and `implement`; add the label-skip path (record in `skippedStages`, reason in the run summary); resume: research completion via the `research-summary.json` artifact (add a `STAGE_ARTIFACTS` entry), update the hardcoded stage-order list in `determineResumeStageWithGit`. - **Stage module** — `src/research/` mirroring the other stages: wrapper builder, user-prompt builder, `RESEARCH_TOOLS` allowlist (`read, bash, grep, find, ls, web_search, web_fetch`), defaults, `runResearchStage` with injectable seams (runStageFn, git runner, REST clients, version gate, manifest parser, label skip, tool-availability check). - **No commit-model change** — research adds no `Pi-Loop-Stage` trailer and does not commit to the feature branch; implement and the resume trailer scan are untouched. Unit tests: pipeline wiring (research in stage order, skip on label, resume from research, default skipped-research result). References: ADR-014, DESIGN.md §3.2/§3.3/§4, AGENTS.md.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
david/pi-loop#212
No description provided.