Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ the JSON schema is versioned separately (`schema_version` in round files).

## Unreleased

## 0.3.0 (2026-12-01)

### Breaking changes

- Command JSON (`--json` and MCP results) is now output schema 2, versioned apart
Expand Down Expand Up @@ -84,6 +86,8 @@ the JSON schema is versioned separately (`schema_version` in round files).

### Documentation

- README: badges (CI, website, fuzzing, release, licence, Rust version), quick links,
a feature summary, a table of contents, and the long reference tables folded away.
- README: tables of supported inputs and of what happens to each PDF annotation
subtype; how to get the SyncTeX file without a local build and on Overleaf.
- Plan: the actual corpus, a scope rule (no new product surface before v1.0) and
Expand Down
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exclude = ["fuzz"]
default-members = ["crates/*"]

[workspace.package]
version = "0.2.0"
version = "0.3.0"
edition = "2024"
rust-version = "1.92"
license = "MIT OR Apache-2.0"
Expand Down
115 changes: 80 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,52 @@
# proofback

**Every margin note, back in your source.**
<h1 align="center">proofback</h1>

<p align="center"><strong>Every margin note, back in your source.</strong></p>

<p align="center">
<a href="https://github.com/Amet13/proofback/actions/workflows/rust.yml"><img alt="Rust CI" src="https://github.com/Amet13/proofback/actions/workflows/rust.yml/badge.svg?branch=main"></a>
<a href="https://github.com/Amet13/proofback/actions/workflows/pages.yml"><img alt="Website" src="https://github.com/Amet13/proofback/actions/workflows/pages.yml/badge.svg?branch=main"></a>
<a href="https://github.com/Amet13/proofback/actions/workflows/fuzz.yml"><img alt="Fuzz" src="https://github.com/Amet13/proofback/actions/workflows/fuzz.yml/badge.svg?branch=main"></a>
<a href="https://github.com/Amet13/proofback/releases/latest"><img alt="Latest release" src="https://img.shields.io/github/v/release/Amet13/proofback?sort=semver"></a>
<a href="#license"><img alt="License: MIT or Apache-2.0" src="https://img.shields.io/badge/license-MIT%20or%20Apache--2.0-blue"></a>
<a href="#install"><img alt="Rust 1.92 or later" src="https://img.shields.io/badge/rust-1.92%2B-orange"></a>
</p>

<p align="center">
<a href="https://amet13.github.io/proofback/">Website</a> ·
<a href="https://amet13.github.io/proofback/app/">Browser app</a> ·
<a href="CHANGELOG.md">Changelog</a> ·
<a href="docs/PLAN.md">Design notes</a> ·
<a href="docs/agents.md">For agents</a>
</p>

Your supervisor sent the PDF back with forty-seven marks on chapter 3. proofback
reads them and tells you, for each one, the file, line and characters in your LaTeX
source it refers to. It keeps a record of what you changed and what you didn't (and
why), and writes your replies back into the reviewer's own PDF or a response letter.

Website and browser app: <https://amet13.github.io/proofback/>. Changes in each release:
[`CHANGELOG.md`](CHANGELOG.md). Design notes and decision log: [`docs/PLAN.md`](docs/PLAN.md).
- **Precise.** SyncTeX plus a TeX-aware aligner finds the exact characters; when
proofback is not sure it says "line" or "page only" instead of guessing.
- **Tracked.** The record lives in `.proofback/` next to your sources and follows
them into the next draft with `sync`.
- **Two-way.** Replies go back into the reviewer's PDF (`answer`) or a response
letter (`letter`); edits come out as a patch you can `git apply`.
- **Any input.** Annotated PDFs (LaTeX or Typst), notes from an email, Word documents,
and handwritten marks from a tablet.
- **Agent-ready.** `--json` everywhere, an MCP server, and reviewer text always marked
as untrusted.
- **Private.** The core makes no network calls; the browser app never uploads a file.

## Contents

- [Why this exists](#why-this-exists)
- [Install](#install)
- [Usage](#usage)
- [Supported inputs](#supported-inputs)
- [More inputs and the locator](#more-inputs-and-the-locator)
- [Accuracy](#accuracy)
- [Development](#development)
- [Related: overfull](#related-overfull)
- [License](#license)

## Why this exists

Expand All @@ -33,23 +71,30 @@ Windows (PowerShell):
irm https://github.com/Amet13/proofback/releases/latest/download/install.ps1 | iex
```

No install at all: open the [browser app](https://amet13.github.io/proofback/app/),
which runs on your machine.

<details>
<summary>From source, VS Code, Node, and PDFium</summary>

From source (Rust 1.92 or later):

```bash
cargo install --git https://github.com/Amet13/proofback proofback-cli
```

Positioned PDF text needs PDFium; the release bundles it. Without it, proofback falls
back to the text stored in the annotations. No install at all: open the
[browser app](https://amet13.github.io/proofback/app/), which runs on your machine.

Each [release](https://github.com/Amet13/proofback/releases/latest) also carries the
VS Code extension (`proofback-vscode.vsix`) and a Node package:

```bash
npm install https://github.com/Amet13/proofback/releases/latest/download/proofback-node.tgz
```

Positioned PDF text needs PDFium; the release bundles it. Without it, proofback falls
back to the text stored in the annotations.

</details>

## Usage

```bash
Expand All @@ -65,15 +110,10 @@ proofback resolve pb_3xq1fd --status discuss --reply "Chosen by 5-fold CV, see 3
proofback answer -o review-ch3-answered.pdf
```

SyncTeX narrows each mark to a few lines and a TeX-aware aligner finds the
characters. When proofback isn't sure, it says "line" or "page only" instead of
guessing; a confident wrong answer is the one thing it is built to avoid.

The record lives in `.proofback/` next to your sources, so it is versioned with them,
and `sync` carries every item into the next draft. Each command takes `--json`; the
schema is published, and an MCP server lets a coding agent work through the list with
you. Reviewer text reaches the agent marked as untrusted. The core makes no network
calls, and the browser app reads your files without uploading them.
The record lives in `.proofback/` next to your sources, so it is versioned with them;
round files follow a [published schema](https://amet13.github.io/proofback/schema/v1.json).
Each command takes `--json`, and `proofback mcp` lets a coding agent work through the
list with you.

## Supported inputs

Expand All @@ -84,13 +124,16 @@ calls, and the browser app reads your files without uploading them.
| Word document | Hidden anchors from `proofback docx export` | Exact for exported files; text only for other DOCX files |
| Typst project | The Typst compiler's glyph to source spans | Exact range |

## What happens to each PDF annotation
### What happens to each PDF annotation

`proofback import` turns every reviewer mark into an item, and never drops one
without saying so: each skipped subtype gets a summary line with its count (and a
`skipped` array in `--json`). `proofback doctor --pdf review.pdf` lists the subtypes a
PDF contains.

<details>
<summary>Every annotation subtype and its result</summary>

| Subtype | Result | Kind and location |
|---|---|---|
| `Highlight` | item | `highlight`, or `comment` / `question` with a note; exact range |
Expand All @@ -114,7 +157,9 @@ PDF contains.
| Others (`Screen`, `PrinterMark`, `TrapNet`, `3D`, `RichMedia`) | skipped | counted in the import summary |
| `Popup` | not counted | the window of another annotation's note, read with it |

## More inputs
</details>

## More inputs and the locator

```bash
proofback import notes-from-email.txt # "p. 12, para 2: unclear"
Expand All @@ -135,9 +180,12 @@ proofback locate --pdf main.pdf --synctex main.synctex.gz --page 3 --rect 72,640

Many queries go as JSON Lines on `--stdin`; the Node package has the same `locate`.

Agents: `proofback mcp` runs an MCP server on stdio; see [`docs/agents.md`](docs/agents.md)
and the agent kit in [`integrations/`](integrations/). Pull requests: see
[`docs/github-action.md`](docs/github-action.md). VS Code: [`integrations/vscode`](integrations/vscode).
| Where | What |
|---|---|
| Coding agents | `proofback mcp` (MCP server on stdio), [`docs/agents.md`](docs/agents.md), the agent kit in [`integrations/`](integrations/) |
| Pull requests | GitHub Action: [`docs/github-action.md`](docs/github-action.md) |
| Editor | VS Code extension: [`integrations/vscode`](integrations/vscode) |
| Node | `require('proofback')`: [`npm/README.md`](npm/README.md) |

## Accuracy

Expand Down Expand Up @@ -180,7 +228,7 @@ short marks still get exact positions. To get the file:
Without the file, `proofback import` runs in text-only mode and says so, and
`proofback doctor` prints this advice.

## Repository layout
## Development

```
crates/ Rust workspace: core, CLI, MCP server, WebAssembly bindings
Expand All @@ -189,23 +237,20 @@ site/ website and browser app, static
npm/ npm package
integrations/ agent kit, VS Code extension
packaging/ installers, Homebrew formula, GitHub Action helper
docs/ plan, agent guide, GitHub Action guide
docs/ plan, agent guide, GitHub Action guide, interop spec
```

Develop:

```bash
cargo xtask pdfium
PROOFBACK_REQUIRE_PDFIUM=1 cargo test --workspace
cargo xtask pdfium # once: pinned PDFium for tests
PROOFBACK_REQUIRE_PDFIUM=1 cargo test --workspace # tests and accuracy gates
cd tools && npm ci && npx playwright install chromium && npm run check # website
```

Check the website locally:

```bash
cd tools && npm ci && npx playwright install chromium && npm run check
```
Rules for changes (accuracy gates, untrusted input, no telemetry) are in
[`AGENTS.md`](AGENTS.md); releases are automatic ([`docs/releasing.md`](docs/releasing.md)).
Security reports: [`SECURITY.md`](SECURITY.md).

## Related
## Related: overfull

[overfull](https://github.com/Amet13/overfull) checks a paper **before** you submit
it. proofback starts **after** someone has read it. Together they close the loop:
Expand Down
8 changes: 4 additions & 4 deletions crates/proofback-anchor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ homepage.workspace = true
publish.workspace = true

[dependencies]
proofback-model = { version = "0.2.0", path = "../proofback-model" }
proofback-pdf = { version = "0.2.0", path = "../proofback-pdf" }
proofback-synctex = { version = "0.2.0", path = "../proofback-synctex" }
proofback-tex = { version = "0.2.0", path = "../proofback-tex" }
proofback-model = { version = "0.3.0", path = "../proofback-model" }
proofback-pdf = { version = "0.3.0", path = "../proofback-pdf" }
proofback-synctex = { version = "0.3.0", path = "../proofback-synctex" }
proofback-tex = { version = "0.3.0", path = "../proofback-tex" }

[lints]
workspace = true
Loading
Loading