Implementation:AIScientists Dev WorldSeed review paper handle
Appearance
| 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:
- Validates verdict is one of `accept`, `request_changes`, `reject`
- Checks paper status is `under_review`
- Appends or updates the reviewer's verdict (updates replace old)
- Drains the reviewer's pending review duty
- Computes consensus: ≥2 accepts → accepted, ≥2 rejects → rejected, 3-way split → contested, stale unblock after 30 ticks
- On rejection: marks dead cites on papers citing the rejected one (without changing citing paper status)
- 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