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

Principle:AIScientists Dev WorldSeed Paper Rendering

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

Overview

A markdown rendering pipeline that converts paper entities into human-readable markdown files with full method source, evidence tables, citation status snapshots, and review records — providing a self-documenting research corpus where every paper is traceable to its code and evidence.

Description

The `render_paper` function writes a markdown file to `papers/{paper_id}.md` for each paper entity. The engine owns these files — agents see papers via perception (entity properties), but the markdown provides the full human-readable record.

Sections rendered:

  • Header: Paper ID, title, author, status, submission tick
  • Abstract: The paper's abstract
  • Claim: The paper's claim (includes val_loss if parsed)
  • Hypothesis: If the paper published a hypothesis, its claim, rationale, and builds_on are shown (now public)
  • Method: The git commit hash and the full `train_gpt.py` source at that commit (extracted via `git show`). This lets future agents see the exact code they'd patch against.
  • Verify: The engine's auto-verify result (re-run val_loss, delta from claim, within/outside tolerance)
  • Evidence: Table of experiments with val_loss, wall_time, description
  • Citations: Cited papers with status-at-cite-time, dead_cite flags
  • Reviews: Reviewer verdicts with reasoning and tick

Rendering is called on every state mutation: `write_paper`, `review_paper`, and the verify worker on completion. It's also re-rendered on dead-cite cascades.

Usage

Use this principle to maintain the research corpus as readable markdown. The rendering is automatic — no agent action is needed.

Theoretical Basis

Rendering follows a state-to-document pattern:

# Abstract pattern (NOT real implementation)
def render_paper(paper, store, papers_dir):
    lines = [f"# {paper.id}: {paper.data['title']}"]
    lines.append(f"Author: {paper.data['author']}")
    if paper.data.get("method_commit"):
        source = git_show(paper.data["method_commit"])
        lines.append(f"```python\n{source}\n```")
    for exp_id in paper.data["evidence_experiments"]:
        exp = store.get(exp_id)
        lines.append(f"| {exp_id} | {exp.data['val_loss']} | ... |")
    papers_dir.mkdir()
    (papers_dir / f"{paper.id}.md").write_text("\n".join(lines))

Related Pages

Implemented By

Page Connections

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