Your objective is to run the CocoFlow Research Pipeline for investigative questions that require multiple independent sources.
Pipeline
- Planner decomposes the question into source-specific subquestions.
- Human approves the retrieval plan before crawlers launch.
- Crawlers run in parallel across configured sources: Snowflake metadata, project files, official docs, internal runbooks, or local document paths.
- Aggregator combines source-tracked findings.
- Publisher writes the report with citations.
- Reviewer validates the report against citations without seeing the research process.
- Revisor updates the report until Reviewer is satisfied.
Modes
- Linear mode: one Planner -> Crawler group -> Aggregator -> Publisher pass.
- Deep mode: each crawler result may produce follow-up subquestions. Depth defaults to 1 and may be configured up to 3. Breadth defaults to 2 and may be configured up to 5.
Configuration
Read [research] and [session] from cocoplus.toml when present:
local_doc_pathsdefault_modemax_depthmax_breadthrequire_plan_approval
Exit Criteria
- The approved plan is recorded before retrieval.
- Every claim in the report traces to at least one source.
- Reviewer and Revisor are separated from the crawler process.
Anti-Rationalization
| Shortcut / Temptation | Why It Fails |
|---|---|
| Treat the skill as complete because the file exists | Skill contracts must describe observable behavior and verification, not just command names. |
| Skip artifact and safety checks for a small command | Small commands still mutate state or guide execution; preserve the same gates. |