Skip to main content

SciTeX Live Paper (scitex-live-paper)

SciTeX

The web-readable foundation for live, AI-verifiable research papers.

Full Documentation · uv pip install scitex-live-paper[all]

pypi python docs

tests cov


Problem and Solution

# Problem Solution
1 A PDF is dead — you cannot click a claim, see the code that produced it, re-run it, or check provenance. Live-paper renderer — turns an accepted manuscript bundle into a page where every claim is hash-linked to the executable artefact that produced it.
2 Verification rots — a badge stamped at acceptance says nothing about whether the claims still hold after the code moved on. Live re-verify (M2 shipped) — per-claim and bulk verify endpoints ask the installed evidence provider (any package implementing the evidence-provider contract) about the live project, so the badge tracks a continuous re-review cycle.
3 Claim-model drift — every consumer re-defines Claim slightly differently until nothing interoperates. Deliberately thin consumer — the claim model is owned upstream by the claim registry that produced claims.json; this package reads it, never extends it.

Quick Start

from scitex_live_paper import bundle

loaded = bundle.load("./bundle/")
print(len(loaded.claims), "claims,", loaded.paper_state.stage)
# Render the static site (viewer + claims sidebar + DAG + index)
scitex-live-paper render ./bundle/ --out ./site/

For a runnable walk-through see examples/example_live_paper.py.

The paper-workflow architecture defines application, component, library, and connector ownership across Live Paper, Rich PDF, Clew, Scholar, Writer, Stats, and the related ecosystem packages. Sphinx and the packaged architecture skill use this same source.

For documentation work, install .[docs] and run make -C docs/sphinx html. Refresh the HTML shipped in distributions with make -C docs/sphinx bundle.

Demo

A runnable load-and-summarise demo lives in examples/example_live_paper.py (run every example with examples/00_run_all.sh):

python examples/example_live_paper.py
# bundle: bundle-min
# claims: 3
# manuscript: manuscript.pdf
# paper stage: preprint

Installation

uv pip install "scitex-live-paper[all]"
pip install "scitex-live-paper[all]"
pip install scitex-live-paper           # CLI + library + canonical SDK assets

Recommended: uv pip install scitex-live-paper[all] — uv's Rust resolver handles the SciTeX dep set in 1-3 min where pip's serial backtracker can take 30+ min on the full extras. Plain pip install still works, as shown above.

Extras matrix
Extra Pulls For
django django>=4.2 standalone serve + scitex-hub mount
server django>=4.2 + scitex-sdk[gui] serve via the SDK workspace shell (superset of django)
mcp fastmcp>=2.0 MCP server for agents
docs Sphinx, MyST, and documentation extensions build the architecture and generated CLI reference
test pytest>=8.0 test suite
all everything above the one install line operators need

Table 1. Optional-dependency extras.

live-paper depends on no evidence provider. Without one installed, the M2 api/claim/verify and api/claims/verify endpoints stay reachable but degrade gracefully (every per-claim response carries fallback: true, status: "unassessed" and a clear reason); install any package that implements the evidence-provider contract to get real evidence states.

Working on scitex-live-paper itself? See Dev quickstart — editable install, render the in-tree fixture bundle, bundle-layout contract, and where the Django app pattern is mirrored from.

Architecture

scitex-live-paper is deliberately thin. It is a consumer / rendering layer, not an authority on claims. If a feature requires extending the claim or DAG model, the change belongs upstream in the claim registry that produces claims.json, not here.

flowchart TD
    bundle["accepted manuscript bundle<br/>(LaTeX + claims.json + DAG + figz + provenance)"] --> lp["scitex-live-paper<br/>(thin renderer)"]
    lp --> viewer["viewer (PDF.js)"]
    lp --> claims["claims panel"]
    lp --> dag["DAG nav (mermaid)"]
    lp --> badge["badge (verification status)"]

Figure 1. Bundle in, four surfaces out — the package renders, upstream owns the models.

Concern Owner This package's role
Claim data model, claims.json statuses, DAG the upstream claim registry reads only — never defines, never mutates
Evidence state + minimal evidence graph per claim any evidence provider renders the contract's report (scitex_live_paper.evidence)
Manuscript bundle layout scitex-writer ingests the bundle as-is
Acceptance + re-review verdicts scitex-agentic-journal receives accepted bundle, surfaces badge
Auth / Django app surface scitex-hub mounted on /apps/live-paper/ (M3 shipped)

Table 2. Ownership boundaries — who owns what.

Roadmap

Milestone Status Goal
M1 shipped Read-only static-site renderer for an accepted bundle (CLI)
M2 shipped Live re-verify (api/claim/verify + api/claims/verify + SPA Re-verify button) — see runbook
M3 shipped Django app on scitex-hub at /apps/live-paper/ + standalone SDK GUI app (serve, 0.2.x)
M4 pending Re-review badge fed from scitex-agentic-journal
M5 future Public DOI landing page (sandbox → Zenodo → JaLC)

Table 3. Milestone roadmap.

Issues for M1 are filed in this repo — see open issues.

3 Interfaces

Python API (primary)
from scitex_live_paper import BundleContext, BundleSource, PaperState, bundle

loaded = bundle.load("./bundle/")
CLI

scitex-live-paper render ./bundle/ --out ./site/ emits the static site; scitex-live-paper serve ./bundle/ boots the standalone SDK GUI app pinned to a bundle (requires the [server] extra); python -m scitex_live_paper works too. Agent-facing surfaces: scitex-live-paper mcp (FastMCP tools projecting the Python API, [mcp] extra) and the scitex.livepaper.renderers entry-point group + conformance kit for external figure/snippet/claim-graph adapters — see consumer guide.

Django app

Mounted under scitex-hub at /apps/live-paper/ (M3 shipped): SPA shell + <path:endpoint> API dispatcher backed by the HANDLERS registry. Host apps inject per-request bundle resolution via scitex_live_paper.mount(resolver=...). The same engine also runs standalone: scitex-live-paper serve ./bundle/ boots the SDK workspace shell (scitex_sdk.app.embed.run_standalone) for local use, demo, and testability.

The same mount serves paper.html, graph.html?claim_id=…, review.json, review.txt, and the installed page assets. Supply evidence-report.json (the neutral evidence-report contract) in the bundle directory, or pass a trusted BundleContext(evidence_report=report, resource_root=authorized_root, …). The resource root defaults to the bundle directory. Paths in the report never grant access outside that root; symlinks and non-regular files are refused. Page, graph and asset links retain the request's project and working-directory selectors, and every request still passes through the host resolver. These read routes consume a snapshot without running an evidence provider or changing manuscript values. A viewer with a report offers Read manuscript with evidence.

Django settings SCITEX_LIVE_PAPER_MAX_REPORT_BYTES (default 16 MiB) and SCITEX_LIVE_PAPER_MAX_TEXT_BYTES (default 4 MiB across manuscript files) bound the request's reads. Secure descriptor-relative reads require POSIX support; an unavailable capability returns 503. Missing, refused, invalid and oversized resources return 404, 403, 400 and 413 respectively.

Environment Variables

Variable Set by Read by Purpose
SCITEX_LIVE_PAPER_BUNDLE serve CLI / operator bundle cache bundle path pinned for the process
SCITEX_LIVE_PAPER_EVIDENCE_PROVIDER operator re-verify endpoints entry-point name of the evidence provider (default: the single installed one)
SCITEX_LIVE_PAPER_EVIDENCE_ROOT operator re-verify endpoints project root handed to the provider (default: the bundle root)

Table 4. Environment variables referenced by this package.

Part of SciTeX

scitex-live-paper is part of SciTeX.

Upstream dependencies (this package consumes them; it does not define their models): the claim registry that produces claims.json (claim model, DAG), any evidence provider (evidence states, via the contract), scitex-writer (bundle layout + Django viewer pattern), scitex-hub (Django host, auth), scitex-sdk (shared AppHeader assets and App/UI contracts). Producer: scitex-agentic-journal (accepted bundle + re-review verdicts).

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.


License

AGPL-3.0-only. See LICENSE.


SciTeX

The public rich PDF provider composes the SDK PDF primitive through generic document, overlay, comment, event and mutation ports. The native viewer consumes that provider through its bundle adapter.

Metadata

Release files for scitex-live-paper 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scitex-live-paper 0.5.3
File Size Uploaded Provenance Actions
scitex_live_paper-0.5.3.tar.gz 12.5 MB With provenance Details for scitex_live_paper-0.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scitex-live-paper 0.5.3
File Interpreter ABI Platform Actions
scitex_live_paper-0.5.3-py3-none-any.whl Python 3 none any Details for scitex_live_paper-0.5.3-py3-none-any.whl

Total release size: 24.5 MB

Release files / scitex_live_paper-0.5.3.tar.gz

Download URL scitex_live_paper-0.5.3.tar.gz
Size 12.5 MB
Tags Source
SHA-256 checksum
How to use checksums
e8d90c6812089824ebaea162ab9cd5e9e25ee53290454e5c6f53aae9d8a09a9d
BLAKE2b-256 checksum
How to use checksums
ecac60d1c4b6db00b604f40b6ec5524124dbdbef81f00d50c7daedb38d60c620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / scitex_live_paper-0.5.3-py3-none-any.whl

Download URL scitex_live_paper-0.5.3-py3-none-any.whl
Size 11.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4d04deebac12ef362a6647b19fa29ffa7f8173e429237a71a6223894a1ee2e1c
BLAKE2b-256 checksum
How to use checksums
eb67786381e08e1fb6f879a5696bad42f75bab03c0c47a3b991ad981e190ff35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for scitex-live-paper 0.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scitex_live_paper-0.5.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page