Research Pipeline
A multi-phase, multi-agent research pipeline for Hermes. Decomposes research into specialized phases with integrity gates between them. Inspired by ARS (Academic Research Skills) architecture — adapted for Hermes's kanban/foreman multi-agent system.
Core principle: Decompose research into phases. Each phase has a specialized agent. Integrity is enforced structurally between phases, not hoped for.
When This Skill Activates
- User asks to research a topic deeply (not just a quick search)
- User wants to write a research paper, report, or literature review
- User asks to verify claims, citations, or sources
- User wants a systematic review or evidence synthesis
- User says "do research on X" and expects more than a web search
Pipeline Modes
| Mode | When to use | Depth | Est. cost |
|---|---|---|---|
quick |
Quick overview, 500-1500 words | Shallow | ~$0.50 |
full |
Comprehensive report, 3000-8000 words | Deep | ~$2-4 |
fact-check |
Verify specific claims | Targeted | ~$0.30 |
socratic |
No clear research question yet | Guided dialogue | ~$1-2 |
systematic |
PRISMA-style systematic review | Deepest | ~$4-8 |
Default: full when the user has a clear topic. socratic when they don't.
Pipeline Phases
Phase 1: SCOPING
Agent: Research Question Architect Deliverable: Research Question Brief
- Decompose the topic into domain, key concepts, relationships
- Generate 3-5 candidate research questions
- Score each using FINER framework (see below)
- Define scope boundaries (IN/OUT/ASSUMPTIONS)
- Decompose into 2-3 sub-questions
Gate: User confirms RQ brief before proceeding.
FINER Framework (Research Question Quality)
Score each question 1-5 on:
| Criterion | Weak (1) | Strong (5) |
|---|---|---|
| Feasible | Cannot be answered with available methods | Clearly answerable with identified methods |
| Interesting | Trivial or well-established | Addresses a genuine puzzle |
| Novel | Duplicates existing work | Offers new perspective |
| Ethical | Significant concerns | No issues; benefits outweigh risks |
| Relevant | No significance | Informs policy, practice, or theory |
Minimum: Average ≥ 3.0, no criterion below 2.
Phase 2: RESEARCH
Agent: Research Team (3 subagents) Deliverable: Annotated Bibliography + Synthesis Report
Three parallel subagents:
- Bibliography Agent — Systematic literature search using
web_search,arxivskill, and academic APIs - Source Verification Agent — Grade every source on evidence hierarchy. Detect predatory journals.
- Synthesis Agent — Integrate sources, resolve contradictions, identify gaps
Subagent delegation pattern:
delegate_task(tasks=[
{"goal": "Find and annotate 10-15 sources on [topic]", "role": "leaf"},
{"goal": "Verify source quality for [bibliography]", "role": "leaf"},
{"goal": "Synthesize findings into a coherent narrative", "role": "leaf"}
])
Gate: Annotated bibliography reviewed before writing.
Phase 3: INTEGRITY CHECK
Purpose: Machine-verified checkpoint between research and writing. Pattern: 7-mode failure checklist.
| Mode | What it checks |
|---|---|
| M1 | Fabricated references (WebSearch every single one) |
| M2 | Incorrect citations (author, year, title match) |
| M3 | Misrepresented claims (source says what we claim?) |
| M4 | Missing citations (claims without sources) |
| M5 | Predatory journal sources |
| M6 | Outdated sources (superseded by newer work) |
| M7 | Logical fallacies in synthesis |
Rule: Every reference must be WebSearch-verified. No "difficult to verify" verdicts. VERIFIED or NOT_FOUND.
Gate: All 7 modes must PASS. User acknowledges before proceeding.
Phase 4: WRITING
Agent: Writer Agent Deliverable: Draft document
- Follow the outline approved in Phase 1
- Use only verified sources from Phase 2
- Apply IRON RULE markers for any claim without direct citation
- Include citation format (APA 7.0 default)
Phase 5: REVIEW
Agent: Review Team (3 subagents) Deliverable: Review Reports + Editorial Decision
Three independent reviewers working WITHOUT cross-referencing:
- Domain Expert — Literature coverage, theoretical contribution
- Methodology Reviewer — Research design, evidence quality, reproducibility
- Devil's Advocate — Core argument challenges, logical fallacy detection, strongest counter-arguments
Critical: Reviewers never see each other's reports. Prevents groupthink.
An Editorial Synthesizer then:
- Resolves disagreements mechanically
- Produces Accept / Minor Revision / Major Revision / Reject decision
- Generates a Revision Roadmap
Gate: User reviews editorial decision.
Phase 6: REVISE
Agent: Writer Agent (revision mode) Deliverable: Revised Draft + Point-by-Point Response
- Address every item in the Revision Roadmap
- Track what changed (delta report)
- Max 2 revision rounds. Unresolved items → "Acknowledged Limitations"
Phase 7: FINAL INTEGRITY
Purpose: Zero-tolerance re-verification after revision. Pattern: Re-run all 7 modes from Phase 3 on the revised draft. Rule: Must PASS with zero issues. No skip permitted.
Phase 8: FINALIZE
Deliverable: Publication-ready output
- Format as requested (MD, DOCX, PDF via Pandoc/LaTeX)
- Include AI disclosure statement
- Include process summary
Anti-Hallucination Protocol
Source Verification (Mandatory for Every Reference)
For each reference:
1. WebSearch: "[author] [title] [year]"
2. Verify: title, authors, year, journal/conference, DOI
3. Verdict: VERIFIED | NOT_FOUND | MISMATCH
4. NOT_FOUND = suspected fabrication → remove or flag
Never trust AI memory for citations. Always verify via external search.
Citation Hallucination Taxonomy
| Type | Freq. | Detection |
|---|---|---|
| Total Fabrication | ~28% | WebSearch title + author |
| Plausible Author | ~23% | Verify author's publication list |
| Incomplete | ~19% | Flag missing DOI + volume + pages |
| Partial Mashup | ~18% | Cross-verify all metadata against ONE source |
| Subtle Distortion | ~12% | Compare each field individually |
Claim Verification
Every factual claim in the output must:
- Have a cited source
- The source must be VERIFIED (Phase 3)
- The claim must accurately represent the source
Claims without citations get IRON RULE markers: [CLAIM WITHOUT CITATION]
Temporal Verification
Catch time-related errors in drafts:
- Future-as-past arithmetic — Dates that couldn't have existed when claim was made
- Anachronistic citations — Citing a 2026 paper for a 2020 phenomenon
- Deictic time-bombs — "Currently" and "recently" that will be wrong when read later
- Causal inversions — "X enabled Y" when Y preceded X
Simple implementation: Regex scan for deictic phrases (currently, now, at present, recently, the latest) and flag them for review.
Devil's Advocate Pattern
A dedicated agent that runs at multiple phases. Its job:
- Challenge core arguments — What's the strongest counter-argument?
- Detect logical fallacies — Ad hominem, straw man, false dichotomy, appeal to authority
- Identify confirmation bias — Are we only finding evidence that supports our thesis?
- Stress-test conclusions — What would change our mind?
This is NOT optional. It's a structural requirement. Every research output goes through the Devil's Advocate.
Session State (Material Passport Pattern)
For long research sessions that may span multiple context windows:
After each phase, save key artifacts to
fabric_write:- Research question brief
- Annotated bibliography
- Integrity gate verdicts
- Editorial decisions
- Revision history
Use
mnemosyne_rememberfor durable facts:- Research topic and scope
- Key findings and conclusions
- Sources verified/not verified
- Revision decisions made
On session resume,
fabric_recall+mnemosyne_recallto reconstruct state.
Implementation Notes
Cost Optimization
- Use cheaper models (MiMo, Qwen3) for research phases (broad search, synthesis)
- Use stronger models only for final review and integrity gates
- The pipeline structure itself reduces cost by preventing rework
quickmode skips Phase 5 (review) entirelyfact-checkmode runs only Phases 2-3
Delegation Pattern
Use delegate_task for parallel work within phases:
- Phase 2: 3 parallel subagents (bibliography, verification, synthesis)
- Phase 5: 3 parallel subagents (domain, methodology, devil's advocate)
Use sequential execution for phase transitions with gates between them.
Integration with Existing Skills
- arxiv — For paper search in Phase 2
- llm-wiki — Store research findings as wiki pages
- open-source-research — For GitHub/code-related research
- research-paper-writing — For ML-specific paper writing (NeurIPS/ICML)
- obsidian — Store notes in Obsidian vault
Pitfalls
- Don't skip integrity gates — They exist because "being careful" isn't enough. Machine verification catches what human diligence misses.
- Don't let reviewers cross-reference — Independent review produces better feedback than collaborative review.
- Don't trust AI memory for citations — Always WebSearch. Even GPT-4o has 56% citation error rate.
- Don't use "currently" or "recently" — These are temporal time-bombs. Use specific dates.
- Don't exceed 2 revision rounds — Diminishing returns. Acknowledge limitations and move on.
- Don't run full pipeline for quick questions — Use
quickorfact-checkmode. Full pipeline is for serious research. - Don't parallelize phase transitions — Each phase depends on the previous phase's output. Gates must pass before proceeding.