Skip to content

Release cleanup: output schema 2 (#25, #26), changelog and plan results - #36

Merged
Amet13 merged 1 commit into
mainfrom
claude/relaxed-ramanujan-4sc5w7
Dec 1, 2026
Merged

Amet13 merged 1 commit into
mainfrom
claude/relaxed-ramanujan-4sc5w7

Conversation

@Amet13

@Amet13 Amet13 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Final cleanup before the release. It closes the two remaining open issues: #25 and #26.

Output schema 2 (#25, #26)

schema_version in command JSON had doubled as the round-file version, and bumping round files would make every stored .proofback/rounds/*.json unreadable. So command output now has its own version, OUTPUT_SCHEMA_VERSION = 2, and round files stay at 1 with no migration. docs/interop.md §5 and PLAN §7 say so.

  • Schema v2: drop the flat location fields from item rows #26: item rows (import, list, show, resolve --json, MCP list_items and get_item) carry their location only in location; the flat file, line, column, end_line and page fields are gone.
    • The VS Code extension lifts location into its row model and still accepts flat fields from older CLIs. Wrongly typed fields are ignored. A new test covers both.
    • The GitHub Action (post_review.py) reads location and falls back to the flat fields. Tests cover schema 2 and schema 1.
    • The agent kit's rule 2 now points at location.
  • Schema v2: doctor --json as an object and exit code 1 for failed checks #25: doctor --json prints {tool, version, schema_version, checks: [...]}. doctor exits 1 when a check fails (it was 3) and 3 only when the --pdf file cannot be read. A new e2e test, doctor_json_and_exit_codes, checks both.
  • docs/interop.md §6 marks P4, P5 and P6 as fixed.

Release housekeeping

Checks (local, Rust 1.100 like CI)

  • cargo fmt --all --check passes. cargo clippy --workspace --all-targets --locked gives no warnings at all.
  • PROOFBACK_REQUIRE_PDFIUM=1 cargo test --workspace --locked passes.
  • cargo xtask schema --check passes: v1.json is unchanged, because only command output changed.
  • cd tools && npm run check passes.
  • cd integrations/vscode && npm test passes (5 tests).
  • python3 -m unittest in packaging/action passes (3 tests).
  • Not run locally: the Node package tests, which need the WebAssembly engine build. CI runs them. They exercise importReview (round files, unchanged) and locate (separate result shape), so this PR does not affect them.
  • main was fully green before this branch, including perf, fuzz smoke, msrv and wasm. There are no open Dependabot alerts. Code-scanning alerts are not readable with this session's token, so please glance at the Security tab.

Generated by Claude Code

- Command JSON gets its own schema_version (2); round files stay at 1, so
  stored reviews need no migration.
- Item rows carry their location only in the location object (#26). The
  VS Code extension and the GitHub Action read both shapes.
- doctor --json is one object with the Interop fields and a checks array;
  doctor exits 1 for a failed check and 3 only for an unreadable --pdf (#25).
- CHANGELOG Unreleased regrouped for the release (breaking changes first,
  security fixes listed); PLAN 21.1 gains the ink, locator and current
  performance numbers; README shows the locator and the ink row.

Closes #25
Closes #26

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xj9ekYmyESdZUsW8uWkzgv
@Amet13
Amet13 marked this pull request as ready for review December 1, 2026 13:11
@Amet13
Amet13 merged commit 597acaf into main Dec 1, 2026
21 checks passed
@Amet13
Amet13 deleted the claude/relaxed-ramanujan-4sc5w7 branch December 1, 2026 13:11
@Amet13 Amet13 mentioned this pull request Dec 1, 2026
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