Research Code Review Guild Charter
Welcome to the Research Code Review Guild (RCRG), a structured framework designed to elevate code quality in research environments. Whether you're training ML models, processing datasets, simulating experiments, or building analysis pipelines, the RCRG ensures rigorous, reproducible, and collaborative reviews.
Guild Principles:
- Quality First: Prioritize scientific reproducibility, clarity, and robustness.
- Fairness: Rotate reviewers to distribute workload and build cross-team expertise.
- Transparency: All artifacts are public and searchable.
- Incentives: Credit reviewers visibly to foster participation.
- Efficiency: Reviews complete in ≤48 hours; escalate if delayed.
This charter provides plug-and-play tools: checklists, repositories, rotation system, and credit mechanics. Adopt it team-wide via a shared doc (e.g., Google Docs, Notion) or GitHub repo.
1. Standardized Checklists
Use these tiered checklists for every Pull Request (PR) or code submission. Reviewers tick off items in a shared template (e.g., GitHub PR template). Submitters self-check first.
Level 1: Basic Code Hygiene (Mandatory for all code)
Level 2: Testing & Reliability (Mandatory for >50 LOC)
Level 3: Research Reproducibility (Mandatory for experiments/models)
Level 4: Advanced/Optional (For production-bound code)
Review Outcome Template:
Approval: [Approve/Reject/Revise]
Score: __/10 (1=basic, 10=publication-ready)
Strengths: ...
Improvements: ...
Time Spent: __ mins
2. Artifact Repositories
Centralize all review artifacts for auditability, learning, and reuse. Use a monorepo structure in GitHub/GitLab.
Repo Structure (rcrg-artifacts/)
├── checklists/ # Frozen checklist templates (Markdown/YAML)
├── reviews/ # Per-review folders
│ ├── 2024-10-01-model-v1/ # YYYY-MM-DD-slug/
│ │ ├── pr-diff.patch # Git diff
│ │ ├── reviewer-notes.md # Checklist + comments
│ │ ├── submitter-resp.md # Responses
│ │ ├── approved-code.zip # Tagged release
│ │ └── metrics.json # Coverage, perf stats
├── patterns/ # Guild wisdom
│ ├── good-examples/ # Starred snippets (e.g., reproducible-training.py)
│ └── anti-patterns/ # Refactor demos
└── dashboard/ # Live metrics (README.md or Streamlit app)
├── leaderboard.md # Credits/rotation
└── stats.json # Review velocity, avg score
Workflow Integration:
- Submission: Open PR in main project repo → Auto-link to
rcrg-artifacts/reviews/NEW/.
- Tools: GitHub Actions for auto-coverage badges; Zenodo/DOI for immutable releases.
- Search: Tag with
#reproducibility #mlflow #bias-check.
- Backup: Mirror to IPFS or institutional repo for permanence.
Pro Tip: Embed Weights & Biases/MLflow links in artifacts for experiment traces.
3. Reviewer Rotation System
Fair, expertise-aware rotation prevents burnout and silos. Supports 5–50 members.
Core Rules:
- Pool: All guild members (opt-in via
/join in Slack/Discord).
- Capacity: Max 2 active reviews/person/week.
- Expertise Tags: Self-assign (e.g.,
ml, data-eng, viz); auto-match.
- Escalation: Unreviewed >48h → ping senior rotator.
Rotation Algorithm (Implement in Python script or Airtable/Notion)**:
# rotation.py - Run weekly via cron
import random
from collections import deque
from datetime import datetime, timedelta
members = [
{"id": "alice", "tags": ["ml", "repro"], "reviews_last_30d": 3, "streak": 0},
# ...
]
queue = deque(sorted(members, key=lambda m: m["reviews_last_30d"])) # Least loaded first
def assign_review(submission_tags, n_reviewers=2):
candidates = [m for m in queue if any(tag in m["tags"] for tag in submission_tags)]
if not candidates:
candidates = list(queue)
selected = random.sample(candidates[:10], min(n_reviewers, len(candidates))) # Top 10, diverse
for m in selected:
m["reviews_last_30d"] += 1
m["streak"] += 1 if m["streak"] > 0 else 0 # Streak for gamification
queue.rotate(-n_reviewers) # Rotate queue
return selected
Schedule:
| Slot | Mon | Tue | Wed | Thu | Fri |
|---|
| Primary Reviewer | Rotates | Rotates | Rotates | Rotates | Seniors |
| Secondary | Random junior | Expertise match | Cross-team | Volunteer | - |
Dashboard View: Notion table with "Next Up", "Recent Reviews", "Burnout Alerts" (streak>5).
4. Credit & Incentives System
Make reviewing rewarding! Track via rcrg-artifacts/dashboard/leaderboard.md.
Credit Tiers:
Visibility:
- Papers: "Code quality assured by RCRG: [link to artifacts]".
- Profiles: ORCID/GitHub badge: "RCRG Master Reviewer".
- Gamification: Slack bot:
/review-complete auto-posts 🎉 and updates points.
- Bonuses: +2pts for "Exemplary" reviews (>9/10); +1 for mentoring juniors.
Equity Boosts:
- Newbies: Double points first month.
- Underrepresented tags: +0.5pt multiplier.
Getting Started
- Fork this charter to your lab's repo.
- Seed the repo:
git clone && mkdir -p rcrg-artifacts/{checklists,reviews,patterns,dashboard}.
- Onboard: Announce in team chat; run
python rotation.py for first assignments.
- Iterate: Quarterly guild mtg to refine checklists/rotation.
Questions? Ping the Archmage or open a meta-review PR. Let's make research code legendary! 🛡️
Charter v1.0 by Sherlock @ Trailblazer Labs