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: 3 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ LaTeX project, see `docs/agents.md`.)
- `fixtures/` LaTeX projects with built PDFs and SyncTeX files (`fixtures/generate.py`,
`cargo xtask fixtures`).
- `site/` static website; `tools/` checks for it.
- `docs/PLAN.md` the plan and decision log. Keep it in sync with behaviour changes.
- `docs/reference.md` commands, matching, files, performance and accuracy;
`docs/stability.md` the 1.x interface promise. Keep both in sync with behaviour
changes.

## Commands

Expand Down
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,46 @@ the JSON schema is versioned separately (`schema_version` in round files).

## Unreleased

## 1.0.0 (2026-12-02)

### Stable from 1.0

- proofback follows Semantic Versioning for the interfaces listed in
`docs/stability.md`: the command line and exit codes, command JSON (output schema
2), round files (schema 1, frozen for all of 1.x), the locator, the Node package,
the MCP tools, Interop v1, the release files and `.proofback/config.toml`. A test
pins both published JSON schemas.
- `SECURITY.md` now holds the threat model and says which versions get security
fixes: the latest 1.x release.
- The real-world accuracy set (`fixtures/real/`) is still empty; accuracy figures
come from the synthetic corpus and are labelled that way. A Homebrew tap is not
planned for now: install with `install.sh`, `install.ps1` or a release archive.

### Faster

- SyncTeX files are parsed about 15% faster: node records are read as bytes instead
of through UTF-8 strings.
- Matching a marked phrase is 2 to 5 times faster on real text: the aligner stops
each column once no cheaper match is possible. Results are identical; a test
compares the new aligner with the old one on random input.
- Normalising sources is about twice as fast for ASCII text.
- On the 322-page reference thesis, the Rust side of a cold import (SyncTeX,
sources and matching) takes about 85 ms instead of 115 ms; the rest is PDFium.

### Documentation

- `docs/reference.md` replaces the internal plan: commands, exit codes, what
`import` does with each annotation type, how a mark finds its source, the files in
`.proofback/`, performance budgets and accuracy. The plan, its audit log and its
decision log are gone.
- `site/llms.txt` links the reference and the stability page, and its changelog link
points at `main`.

### Cleanup

- Removed unused parameters and variables in the matcher and the DOCX importer, and
shared one PDFium loader between the corpus tests.

### Continuous integration

- CI runs only the jobs a commit needs: a documentation-only commit runs none of the
Expand Down
33 changes: 17 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.3.0"
version = "1.0.0"
edition = "2024"
rust-version = "1.92"
license = "MIT OR Apache-2.0"
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<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/reference.md">Reference</a> ·
<a href="docs/agents.md">For agents</a>
</p>

Expand Down Expand Up @@ -180,7 +180,7 @@ Many queries go as JSON Lines on `--stdin`; the Node package has the same `locat

## Accuracy

Measured in CI on every pull request (details in [`docs/PLAN.md`](docs/PLAN.md#21-implementation-notes)):
Measured in CI on every pull request on generated test annotations; no real-world PDFs have been donated yet (details in [`docs/reference.md`](docs/reference.md#accuracy)):

| Input | Exact range | Wrong anchor |
|---|---|---|
Expand Down Expand Up @@ -237,7 +237,9 @@ PROOFBACK_REQUIRE_PDFIUM=1 cargo test --workspace # tests and accuracy gates
cd tools && npm ci && npx playwright install chromium && npm run check # website
```

Rules for changes (accuracy gates, untrusted input, no telemetry) are in
What 1.0 keeps stable (commands, exit codes, JSON, schemas, Node API, MCP tools) is in
[`docs/stability.md`](docs/stability.md). 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).

Expand Down
27 changes: 24 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,30 @@ relevant), and the impact you expect. You should get a first reply within 7 days
- The `proofback` CLI, MCP server, GitHub Action, browser app and npm package.
- The website at <https://amet13.github.io/proofback/>.

The threat model and the mitigations proofback commits to are in
[`docs/PLAN.md` §10](docs/PLAN.md#10-security-and-privacy-d-16).
## Threat model

proofback reads files written by other people (PDFs, DOCX, notes) and can write to
your source. These are the threats it is built against and the mitigations it commits
to. There is no telemetry anywhere in the project.

| Threat | Mitigation |
|---|---|
| Malicious PDF exploiting the PDF parser | pdfium is fuzzed upstream and pinned to a recent Chromium branch; proofback updates it on every Chromium security release. In the browser it runs inside the WebAssembly sandbox. Native imports parse the PDF in a child process with memory and time limits. proofback's own parsers are fuzzed with `cargo-fuzz` in CI. |
| Decompression bombs (`.synctex.gz`, DOCX zip, PDF streams) | Hard limits on decompressed size, entry count, page count and annotation count, all configurable. |
| XML attacks in DOCX | `quick-xml` with no DTD or external entity resolution. |
| Path traversal (SyncTeX paths, `\input`, zip entries, `--at` checkouts) | Every path is canonicalised and must stay inside the project root; symlinks leaving the root are refused. |
| Unwanted writes | Only `apply`, `inline` and `resolve` write. `apply` checks the anchored text is unchanged and never writes outside the root. `--dry-run` everywhere. |
| Prompt injection through reviewer comments | Reviewer text is marked untrusted in JSON and MCP output; the agent kit tells agents to treat it as data; proofback exposes no tool that runs commands. |
| Leaking source to an AI provider | `suggest` is off by default, needs per-project consent, shows the payload, and reads API keys from an environment variable named in the config, never from committed files. |
| Reviewer identity in blind review | `--anonymize-authors` on import; `answer` and `letter` strip PDF metadata (author, creator tool, local paths). |
| GitHub Action abuse | Runs on `pull_request` with a read-only token by default; posting comments uses a separate `workflow_run` job; all third-party actions pinned by commit SHA; least-privilege `permissions`. |
| Supply chain | `cargo-deny` (licences, advisories, sources) in CI, Dependabot, release artefacts with SHA-256 checksums and signed build provenance (GitHub attestations), npm provenance, pinned pdfium binaries with checksums. |
| Website | No third-party requests (fonts self-hosted), Content Security Policy, no cookies or analytics. |

## Supported versions

Before 1.0, only the latest release receives security fixes.
| Version | Security fixes |
|---|---|
| Latest 1.x release | Yes |
| Older 1.x releases | No: update to the latest 1.x, which keeps every interface in [`docs/stability.md`](docs/stability.md) |
| 0.x | No |
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.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" }
proofback-model = { version = "1.0.0", path = "../proofback-model" }
proofback-pdf = { version = "1.0.0", path = "../proofback-pdf" }
proofback-synctex = { version = "1.0.0", path = "../proofback-synctex" }
proofback-tex = { version = "1.0.0", path = "../proofback-tex" }

[lints]
workspace = true
Loading