Repository navigation
Conversation
The API now checks a reference no sentence cites against its page, and looks up a reference with no URL or DOI in the registry. The docstrings said the metadata fields are "set for a DOI only", and the CLI printed a "Reference details differ" finding with nothing under it when the API listed no differences (the page at the address is another work). - Docstrings: ReviewCitationCheck, ReviewCitationRecord, ReviewCitation, ReviewCitationIssue, ReviewMoreCitation, ReviewSummary.citations_found. - CLI: a metadata finding with no differences prints the page's title. No model field changed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
lenzhq
approved these changes
Nov 21, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
The API's citation check now covers two more kinds of reference: one that no sentence of the draft cites (compared with the page at its own address), and one with no URL or DOI (looked up in the registry by its authors, year and title). The SDK already parses those rows; its wording did not describe them.
ReviewCitationChecksaiddoi_registered,metadata,metadata_differencesandregisteredare "set for a DOI only". It now says when else they are set, and that a page-based mismatch has nometadata_differencesand noregistered, with the page's title inpage_title.ReviewCitationRecord,ReviewCitation,ReviewCitationIssue,ReviewMoreCitationandReviewSummary.citations_foundsay thatcited_urlanddoican both beNone.lenz reviewprinted "Reference details differ" with nothing under it when the API listed no differences. It now prints the page's title under "The page at this address is titled:". A finding with listed differences prints "Your reference says ...; the record says ..." as before.No model field, method or exit code changed.
Tests
tests/test_cli_review.py::test_a_reference_whose_page_is_another_work_shows_the_pages_title.pytest,ruff check,ruff format --check,mypy src.Not done
Post-deploy actions and prod testing
lenz reviewwith--max-citationson a draft whose reference list has an entry nothing cites, and read the row.🤖 Generated with Claude Code