Implementation:AIScientists Dev WorldSeed render paper
| Knowledge Sources | |
|---|---|
| Domains | Documentation, Research_Automation |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
Concrete paper-to-markdown renderer that converts paper entities into self-documenting markdown files with full method source, evidence tables, citation snapshots, and review records.
Description
The render_paper function writes `papers/{paper_id}.md` from a paper entity. It includes:
- Header with title, author, status, submission tick
- Abstract, claim, and hypothesis snapshot (if published)
- Method section with git commit and full `train_gpt.py` source at that commit
- Verify result (engine auto-rerun val_loss and delta)
- Evidence table (experiments with val_loss, wall_time, description)
- Citations with status-at-cite-time and dead_cite flags
- Reviews with reviewer verdicts and reasoning
Rendering is called on every paper state mutation: `write_paper`, `review_paper`, verify completion, and dead-cite cascades.
Usage
Import this function to render papers to markdown. Called automatically by the autoresearch handlers.
Code Reference
Source Location
- Repository: WorldSeed
- File: src/worldseed/autoresearch/paper_renderer.py
Signature
def render_paper(paper: Entity, store: StateStore, papers_dir: Path) -> Path:
"""Write papers/{paper.id}.md from the paper entity. Returns the path."""
Import
from worldseed.autoresearch.paper_renderer import render_paper
Usage Examples
from worldseed.autoresearch.paper_renderer import render_paper
from worldseed.autoresearch.paths import papers_dir
path = render_paper(paper_entity, store, papers_dir())
print(f"Rendered to {path}")