Skip to content

Release 1.0.0: stability promise, public reference docs, faster matching - #46

Merged
Amet13 merged 4 commits into
mainfrom
claude/relaxed-ramanujan-4sc5w7-v1
Dec 2, 2026
Merged

Amet13 merged 4 commits into
mainfrom
claude/relaxed-ramanujan-4sc5w7-v1

Conversation

@Amet13

@Amet13 Amet13 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Prepares proofback 1.0.0. Merging this to main releases v1.0.0 through the automatic release workflow.

It includes the CI changes from #45, so 1.0.0's changelog covers them. Merge #45 first or skip it; either order works.

1.0 readiness

  • docs/stability.md: what stays compatible across 1.x. It covers the command line and exit codes, command JSON (output schema 2), round files (schema 1, frozen), the locator, the Node package, MCP tool names, Interop v1, release files and config.toml.
  • crates/proofback-model/tests/frozen_schemas.rs pins the SHA-256 of both published schemas, so changing either one fails CI until someone reviews it against the stability page.
  • SECURITY.md now holds the threat model and a supported-versions table (latest 1.x).
  • Not part of 1.0: the real-world corpus (still empty, so accuracy is labelled synthetic) and a Homebrew tap (no account). The install paths are install.sh, install.ps1 and the release archives.

Internal docs removed

  • docs/PLAN.md is deleted, along with its roadmap, audit log and decision log.
  • What users need moved to docs/reference.md: commands, exit codes, the annotation-subtype table, the matching pipeline, files, outputs, performance budgets and accuracy.
  • Every reference to PLAN was updated: README, AGENTS.md, stability, agents guide, fixtures/real/README.md, site/llms.txt (whose changelog link also pointed at a nonexistent master branch), the config.toml header, and code comments citing "plan §N" or decision IDs.
  • The README and subtype table test now checks docs/reference.md.
  • docs/interop.md is untouched because it must stay byte-identical to overfull's copy. It still contains the text references "plan §4.6" and "decision D-01/D-14", which no longer point anywhere. Removing them needs the same edit in overfull's copy.

Performance

Results are identical: two differential tests compare the new code with the code it replaced.

Phase (322-page thesis, 500 notes) Before After Change
SyncTeX parse ~55 ms ~47 ms Node records parsed as bytes with a hand-written integer parser that accepts exactly what str::parse accepts; memchr line splitting; 64 KB buffers
Source normalisation ~17 ms ~9 ms ASCII fast path in character folding
Matching ~42 ms ~31 ms Ukkonen's cut-off in the aligner. Every step costs 0 or 1, so a cell above the cost budget can never produce a hit; each column stops at the last row within budget. 2 to 5x faster on real text

PDFium text extraction (~200 ms) dominates the rest and is outside our code.

Accuracy gates are unchanged:

  • With SyncTeX: 97.8% exact, 0.4% wrong.
  • Text only: 98.7% exact.
  • Ink: same as before.

The perf test passes locally (cold import ~0.3 s, peak memory 143 MB).

Cleanup

  • Removed unused qlen and total_chars and an allow(too_many_arguments).
  • The four corpus test files now share one PDFium loader, proofback_corpus::test_pdfium().

Checks run locally

  • cargo fmt --check
  • cargo clippy --workspace --all-targets
  • PROOFBACK_REQUIRE_PDFIUM=1 cargo test --workspace
  • the perf test
  • cargo xtask schema --check
  • wasm clippy
  • site checks (npm run check)
  • .github/tests
  • cargo xtask release-check 1.0.0

Generated by Claude Code

…docs

- docs/stability.md: the 1.x semver contract; a test pins both published
  JSON schemas.
- SECURITY.md: threat model and supported versions.
- docs/reference.md replaces the internal plan (docs/PLAN.md, its audit
  and decision logs are removed); every reference updated.
- SyncTeX node records parsed as bytes (differential test against the
  str-based parser); aligner stops each column at Ukkonen's cut-off
  (differential test against the full table); ASCII fast path in folding.
  Accuracy unchanged; Rust side of a cold import ~115 ms -> ~85 ms on the
  322-page reference thesis.
- Cleanup: unused parameters, shared PDFium loader in corpus tests.
- Version 1.0.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xj9ekYmyESdZUsW8uWkzgv
…Amet13/proofback into claude/relaxed-ramanujan-4sc5w7-v1

# Conflicts:
#	CHANGELOG.md
@Amet13
Amet13 marked this pull request as ready for review December 2, 2026 00:17
The Windows test job failed with "include/: Refusing to overwrite
archive" when target/pdfium already held an earlier unpack: bsdtar on
Windows mistook the existing files for the archive it was reading, which
sat in the same directory. Download to target/ (as the wasm build
already does) and clear target/pdfium before unpacking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xj9ekYmyESdZUsW8uWkzgv
@Amet13
Amet13 merged commit 071afdc into main Dec 2, 2026
21 checks passed
@Amet13
Amet13 deleted the claude/relaxed-ramanujan-4sc5w7-v1 branch December 2, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants