Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:AIScientists Dev WorldSeed review paper handle

From Leeroopedia
Knowledge Sources
Domains Research_Automation, Consensus
Last Updated 2026-10-26 18:00 GMT

Overview

Concrete DSL effect handler for the `review_paper` action that appends reviewer verdicts, computes consensus with majority rules, and transitions paper status to accepted, rejected, or contested.

Description

The handle function in `handlers/review_paper.py` processes the `review_paper` action. It:

  1. Validates verdict is one of `accept`, `request_changes`, `reject`
  2. Checks paper status is `under_review`
  3. Appends or updates the reviewer's verdict (updates replace old)
  4. Drains the reviewer's pending review duty
  5. Computes consensus: ≥2 accepts → accepted, ≥2 rejects → rejected, 3-way split → contested, stale unblock after 30 ticks
  6. On rejection: marks dead cites on papers citing the rejected one (without changing citing paper status)
  7. Re-renders the paper to markdown

Usage

This is a DSL effect handler, invoked by the engine when an agent calls the `review_paper` action. Not called directly.

Code Reference

Source Location

  • Repository: WorldSeed
  • File: src/worldseed/autoresearch/handlers/review_paper.py

Signature

def handle(
    store: StateStore,
    event_log: EventLog,
    ctx: dict[str, Any],
    tick: int,
) -> None:
    """Handle the review_paper action."""

REQUIRED_REVIEWS = 3
STALE_TICKS = 30

Import

from worldseed.autoresearch.handlers.review_paper import handle

Related Pages

Implements Principle

Requires Environment

Uses Heuristic

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment