peer-review · diff

git:20260111.8eefced to git:20260111.61cfb54

36 added, 58 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
name: peer-review
- description: Orchestrates rigorous peer review with five specialized reviewers (methodology, statistics, impact, provenance, completeness). Manages revision cycles until unanimous acceptance.
+ description: Orchestrates rigorous peer review with three reviewers (methodology+completeness, statistics, impact+provenance). Manages revision cycles until unanimous acceptance.
user-invocable: true
---
# Peer Review Workflow
Execute rigorous peer review of synthesized papers.
- ## The Five Reviewers
+ ## The Three Reviewers
- Spawn five reviewer subagents in parallel. Each has a distinct focus - no overlap.
+ Spawn three reviewer subagents in parallel. Each has expanded focus.
### 1. Methodology Reviewer
- Focus: Methodological rigor
+ Focus: Rigor + Completeness
- Arithmetic consistency (do numbers add up?)
- Mock data detection (np.random without disclosure = REJECT)
- Reproducibility (can someone replicate from description?)
- Honest failure reporting
+ - **All RQs addressed** (check against world_model.json)
+ - **All artifacts used** (no orphaned experiment results)
+ - **PRISMA numbers consistent**
### 2. Statistics Reviewer
Focus: Statistical correctness
- Number verification against source files
- Appropriate statistical tests for data type
- Effect sizes and confidence intervals (not just p-values)
- Multiple testing correction where needed
+ - **Figures reference real data files**
### 3. Impact Reviewer
- Focus: Scientific contribution
+ Focus: Contribution + Provenance
- Scope vs claims honesty
- Failure disclosure (are negative results hidden?)
- Overclaiming detection
- Abstract matches actual results
-
- ### 4. Provenance Reviewer (NEW)
- Focus: Citation integrity
- - Every claim has DOI + exact quote (not paraphrased)
- - Source types match confidence levels (blog ≤ 0.7, article ≤ 1.0)
- - No fabricated or hallucinated citations
- - Quotes are verbatim from source (spot-check 3-5)
- - All DOIs resolve (use `python3 .claude/hooks/validate-doi.py`)
-
- ### 5. Completeness Reviewer (NEW)
- Focus: Deliverable integrity
- - All RQs from world_model.json are addressed in paper
- - All experimental results are incorporated (no orphaned artifacts)
- - Figures reference actual data files that exist
- - PRISMA flow numbers are consistent
- - Evidence reports were actually used (not ignored)
+ - **Every claim has DOI + exact quote**
+ - **Source types match confidence** (blog ≤ 0.7, article ≤ 1.0)
+ - **Spot-check 3-5 quotes are verbatim**
+ - **Run DOI validation**: `python3 .claude/hooks/validate-doi.py`
## Spawning Reviewers
```
- # Spawn all 5 reviewers IN PARALLEL (single message, 5 Task tool calls)
+ # Spawn all 3 reviewers IN PARALLEL (single message, 3 Task tool calls)
- # 1. Methodology reviewer
+ # 1. Methodology reviewer (includes completeness checks)
Task: Spawn reviewer-methodology subagent
- Prompt: "Review paper.tex for methodological rigor. Check arithmetic,
- mock data, reproducibility. Save methodology_review.json with verdict
- and actionable issues."
+ Prompt: "Review paper.tex for methodological rigor AND completeness.
+ Check: arithmetic, mock data, reproducibility.
+ Also verify: all RQs addressed, all artifacts used, PRISMA consistent.
+ Save methodology_review.json with verdict and issues."
# 2. Statistics reviewer
Task: Spawn reviewer-statistics subagent
- Prompt: "Review paper.tex for statistical correctness. Verify every
- number against source files. Save statistics_review.json."
+ Prompt: "Review paper.tex for statistical correctness.
+ Verify numbers match source files, appropriate tests, effect sizes.
+ Check figures reference real data files.
+ Save statistics_review.json with verdict and issues."
- # 3. Impact reviewer
+ # 3. Impact reviewer (includes provenance checks)
Task: Spawn reviewer-impact subagent
- Prompt: "Review paper.tex for honesty and contribution. Check scope
- vs claims, failure disclosure. Save impact_review.json."
-
- # 4. Provenance reviewer
- Task: Spawn general-purpose subagent (no dedicated type yet)
- Prompt: "Review paper.tex for citation integrity. For EVERY claim:
- verify DOI exists, quote is exact (spot-check 5), source_type matches
- confidence. Run: python3 .claude/hooks/validate-doi.py
- Save provenance_review.json with verdict and issues."
-
- # 5. Completeness reviewer
- Task: Spawn general-purpose subagent
- Prompt: "Review paper.tex for completeness. Check:
- 1. All RQs in world_model.json are addressed
- 2. All files in experiments/ are referenced
- 3. Figures cite real data files
- 4. PRISMA numbers are consistent
- Save completeness_review.json with verdict and issues."
+ Prompt: "Review paper.tex for contribution AND provenance.
+ Check: scope vs claims, failures disclosed, no overclaiming.
+ Also verify: every claim has DOI+quote, spot-check 3 quotes verbatim.
+ Run: python3 .claude/hooks/validate-doi.py
+ Save impact_review.json with verdict and issues."
```
## External Validation (Recommended)
Include at least one Codex reviewer:
```bash
codex exec --full-auto -m gpt-5.2-codex -o codex_review.txt \
"Review this paper for scientific validity. Check:
1. Do claims match evidence?
2. Are limitations honest?
3. Any overclaiming?
Paper: $(cat paper.tex)
Output JSON with verdict (ACCEPT/REVISE/REJECT) and issues."
```
## Acceptance Criteria
**NOT majority vote. Unanimous acceptance required.**
- - All FIVE reviewers must give ACCEPT
+ - All THREE reviewers must give ACCEPT
- If ANY reviewer gives REVISE/REJECT → revision cycle
- Codex reviewer has veto power if included
## Revision Cycle
If not unanimous acceptance:
1. **Collect all issues** from reviewer JSONs
2. **Resume synthesizer** using saved agent ID (preserves context)
3. Synthesizer must address EVERY issue:
- **FIX**: Make the change
- **REBUT**: Explain why reviewer is wrong (with evidence)
- **ACKNOWLEDGE**: If can't fix, explain in Limitations
4. Synthesizer creates `revision_response.md`
5. **Resume same reviewers** using saved agent IDs to verify fixes
## Agent ID Tracking (CRITICAL for Resume)
**Every agent returns an agent ID when it completes.** Save these IDs for revision cycles:
```bash
# Store agent IDs in world_model.json or a tracking file
cat > $SESSION_DIR/peer_review/agent_ids.json << 'EOF'
{
"synthesizer": null,
"methodology_reviewer": null,
"statistics_reviewer": null,
- "impact_reviewer": null,
- "provenance_reviewer": null,
- "completeness_reviewer": null
+ "impact_reviewer": null
}
EOF
```
**When spawning, capture the returned agent ID:**
- The Task tool result includes `agent_id` when the agent completes
- Save this ID immediately to the tracking file
- Use it in subsequent revision cycles
**To resume an agent:**
```
Task tool with:
resume: "<saved-agent-id>"
prompt: "Continue from where you left off. Address the following reviewer feedback:
[feedback from review files]
Update the paper and document changes in revision_response.md"
```
**Why resume matters:**
- Fresh agents don't know what they already reviewed
- Resumed agents remember their prior analysis
- This prevents circular feedback ("you already fixed this")
## Convergence Detection
If 3 revision cycles with >70% similarity in issues:
- **Escalate to user** - something is stuck
- Don't keep looping indefinitely
## Review File Locations
```
$SESSION_DIR/peer_review/
- ├── methodology_review.json
- ├── statistics_review.json
- ├── impact_review.json
- ├── provenance_review.json # NEW
- ├── completeness_review.json # NEW
+ ├── methodology_review.json # Rigor + completeness
+ ├── statistics_review.json # Numbers + figures
+ ├── impact_review.json # Contribution + provenance
├── agent_ids.json # For resume tracking
├── codex_review.txt (optional)
├── reviewer_feedback_for_revision.json # Combined for synthesizer
└── revision_response.md # Synthesizer's responses
```
## Issue Format
Each reviewer issue must have:
```json
{
"id": "METH-1",
"severity": "major|minor|critical",
"location": "Section 2.1, line 45",
"issue": "Clear description",
"required_action": "What to do",
"verification": "How to verify fix"
}
```
## Workflow Loop
```
- 1. Spawn 5 reviewers (parallel, single message)
+ 1. Spawn 3 reviewers (parallel, single message)
2. Wait for all reviews (poll for completion)
3. Check verdicts:
- - All 5 ACCEPT? → Done, paper passes
+ - All 3 ACCEPT? → Done, paper passes
- Any REVISE/REJECT? → Revision cycle
4. Revision cycle:
a. Combine feedback for synthesizer
b. Resume synthesizer for revisions (use saved agent ID)
c. Resume reviewers to verify (use saved agent IDs)
d. Go to step 3
5. Max 3 cycles, then escalate
```
**Rigorous review. Actionable feedback. Unanimous acceptance.**