Skip to content

Replace 18 empty or editorial-only evidence snippets for LRV 0.3 - #4949

Merged
cmungall merged 2 commits into
mainfrom
curation/lrv-030-snippets
Oct 12, 2026
Merged

cmungall merged 2 commits into
mainfrom
curation/lrv-030-snippets

Conversation

@cmungall

@cmungall cmungall commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

LRV 0.3.0 rejects 18 empty or wholly editorial supporting_text values across 11 reviews. This curation cleanup removes that migration blocker independently of the dependency upgrade in #4947.

  • Replace three placeholders with exact passages from existing cited local research files (Rv0898c, tim10 and WIPF1). Rv0898c now cites a complete InterPro-family description in the OpenScientist report, rather than the BioReason reasoning trace whose functional speculation the review rejects.
  • Remove 15 optional empty/editorial quote fields and ago1's orphaned reference_section_type. Preserve all findings, annotation decisions, reasons and top-level reference entries. The MitoCoP findings retain their committed HTP GOA provenance; the article prose does not name these genes, so no gene-specific quote was invented.
  • Use folded scalars for the replacement quotations, matching surrounding evidence.
  • All 11 original history records now link to the carrying PR, Replace 18 empty or editorial-only evidence snippets for LRV 0.3 #4949. Four additional scaffolded history records preserve the review follow-up sessions without rewriting the original session descriptions. All 15 link to Replace 18 empty or editorial-only evidence snippets for LRV 0.3 #4949.
  • No cached sources, generated research, dependencies, validator rules or skip-prefix policy change. The broader editorial-only snippet audit and quotation-guidance clarification are tracked separately in Audit remaining editorial-only evidence snippets and clarify quotation guidance #4954.

Validation:

  • Initial project validation with ontology terms passed all 11 reviews. On the latest changes, all four edited reviews were rerun: 4 valid, zero errors, 44 advisory warnings. The other seven are unchanged from their passing run. Rv0898c adds one expected advisory warning that its available BioReason trace is no longer cited by an annotation; its unsupported speculation is deliberately not restored as evidence.
  • Actual scripts/run_reference_validator.sh validate data … with LRV 0.3.0, using an external config with trust_cached_entries: true: all 11 reviews, 232 snippets and 87 titles checked, zero issues.
  • Markdown PMID checks for all 11 folders and just validate-history for all 15 records pass.
  • Parsed-data comparison of the review follow-up confirms only the Rv0898c evidence source/quote and ago1 section metadata changed semantically; the tim10/WIPF1 reformatting leaves parsed data identical. The replacement Rv0898c quote is an exact substring of its cited report.

Closes #4948. The separate LRV performance regression documented in #4947 is outside this curation change.

@ai4c-reviewer

ai4c-reviewer Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Claude finished @cmungall's task in 5m 6s —— View job


Review: Replace 18 empty or editorial-only evidence snippets for LRV 0.3

  • Schema validation reasoning checked (supporting_text is recommended, not required)
  • All PMIDs verified as real
  • Supporting text matches publication content (all 3 replacements verified verbatim)
  • GO terms correct and specific (none changed)
  • Review actions well-justified (none changed)
  • Core functions accurately identified (untouched)
  • No over-annotation issues missed
  • Inventory completeness and selection criteria audited
  • History records audited

Verdict

This is a well-scoped, honest curation cleanup. I verified the mechanics independently rather than taking the PR body at face value, and the substance holds up. One 🟡 provenance fix before merge; everything else is 🔵.

What I verified

The 18-field inventory is exact and reproducible. Counting the diff: TEP10 2, Rv0898c 1, ago1 1, tim10 1, GCDH 1, OXCT1 1, SFT2D3 1, SLC25A24 1, WIPF1 1, cebp-2 7, pink-1 1 = 18 (3 replacements + 15 removals), matching the claim.

The selection criterion is principled, which was my main worry. My first read flagged that several wholly-bracketed supporting_text values survive in the same files — genes/ANOGA/TEP10/TEP10-ai-review.yaml:122, genes/worm/cebp-2/cebp-2-ai-review.yaml:423, genes/human/WIPF1/WIPF1-ai-review.yaml:51 — in structurally identical positions to ones that were cleaned, which would mean the blocker was only half-removed. Checking conf/reference_validator_config.yaml:46-48 resolves it: the three survivors each contain a non-alpha character (domain-function, InterPro2GO, WH2), so they match literal_bracket_patterns and are treated as literal text rather than stripped as citation markers. Every cleaned value is either '' or pure alpha+space inside brackets, i.e. stripped to empty. The split is exactly right, not arbitrary.

All three replacement quotes are verbatim substrings and on-point:

File Source Status
tim10-ai-review.yaml:154 tim10-deep-research-falcon.md:149 ✅ exact; directly supports the IMS-localization MODIFY to GO:0005758
WIPF1-ai-review.yaml:929 WIPF1-deep-research-falcon.md:171 ✅ exact; the Blood 2017 patient-lymphocyte sentence supports the immunological-synapse NEW
Rv0898c-ai-review.yaml:103 Rv0898c-deep-research-bioreason-sft.md:12 ✅ exact (see 🔵 below)

The MitoCoP removals are the correct call, and I checked rather than assumed. publications/PMID_34800366.md (522 KB, 653 lines) is article prose only — grep -i for gcdh|oxct|slc25a24 and for the UniProt accessions returns nothing. There is no gene-specific sentence to quote, so dropping the empty field while keeping the finding statement and reference_review is right. Inventing a generic "high-confidence mitochondrial proteome" quote to support a gene-naming statement would have been the wrong fix, and the PR explicitly declines to do that. 👍

History sections are accurate per file — TEP10/ago1/GCDH/OXCT1/SLC25A24 → references; Rv0898c/tim10/SFT2D3/WIPF1/pink-1 → existing_annotations; cebp-2 → both. That matches the diff exactly.

Findings

🟡 IMPORTANT — all 11 history records link the wrong PR

Every new record has:

links:
  prs:
  - https://github.com/ai4curation/ai-gene-review/pull/4947

4947 is the dependency-upgrade PR this change is explicitly separate from; the PR carrying these edits is 4949. The precedent (history/genes/RHOCA/xdhA/2026-10-02T074700Z-claude-code-a379a3.yaml:14-18) puts the carrying PR in links.prs. Records are append-only once merged, so this cross-link becomes permanently misleading provenance — and anyone bisecting the LRV migration later will land on the wrong PR. The details prose already explains the 4947 relationship, so adding 4949 (or replacing 4947 with it) loses nothing. One line × 11 files. Fix this →

🔵 SUGGESTION — genes/SCHPO/ago1/ago1-ai-review.yaml:982: dangling reference_section_type

Removing supporting_text: '' leaves reference_section_type: OTHER on a finding with no quote. That slot describes which section the quote came from, so with the quote gone it carries no information. Harmless, but it is now orphaned metadata.

🔵 SUGGESTION — the Rv0898c quote is a fragment of a reasoning trace the review rejects

Rv0898c-ai-review.yaml:103 quotes the BioReason SFT Thinking Trace, while the same block's reason (line 92-94) states the trace's claims "are entirely unsupported." The quoted fragment itself is fine — it is the IPR020311 domain-architecture fact, which does support "Uncharacterised protein family" — but citing a model's own deliberation as supported_by for an ND retention is thin provenance when the summary (line 86-88) already appeals directly to the InterPro entry. An InterPro-anchored quote, or a third excerpt from the already-cited openscientist.md, would be stronger. Also, the quote begins mid-sentence in lowercase; the repo convention for that is a leading ....

🔵 SUGGESTION — follow-up sweep + document the real rule

The three surviving editorial-only quotes noted above pass only by the accident of containing a digit or hyphen. They are not blockers today, but they are the same curation anti-pattern, and a future literal_bracket_patterns tweak would turn them into errors. Repo-wide there are ~25 more (genes/human/ABL1, genes/mouse/Notch1, genes/mouse/App, genes/mouse/Sox2, genes/mouse/Ifi204, genes/SCHPO/atg2, genes/DICDI/tlcd4b). Relatedly, src/ai_gene_review/schema/gene_review.yaml:92-94 still reads "If editorialization is necessary, put this in square brackets (this is not checked)" with a fully-bracketed-looking example — which is exactly the instruction that produced these 18 fields. Worth tightening to say a supporting_text must contain verbatim source text, with brackets only for interpolation inside a real quote. Fix this →

🔵 SUGGESTION — formatting consistency

The three new quotes are single long double-quoted lines (up to ~150 chars) while the surrounding evidence uses folded block scalars (>-), e.g. tim10-ai-review.yaml:146-152 immediately above the new line 154. Cosmetic only.

Notes on scope (not objections)

  • The LRV 0.3.0 green run used an external config adding trust_cached_entries: true; the committed conf/reference_validator_config.yaml is unchanged. Since that config also lists GO_REF and file under skip_prefixes, none of the touched quotes are snippet-checked under the committed config either way — so this PR is safe under both old and new validators, and the policy question stays in Upgrade LRV to 0.3.1rc1 and remove cache-loader monkeypatch #4947. Clearly stated in the PR body; no action here.
  • No GO terms, actions, reasons, findings, reference identifiers, cached sources or generated research files were altered. The GO-annotation content of all 11 reviews is byte-identical apart from the 18 inventoried fields.
  • I could not execute just validate / validate-history in this sandbox (uv and just are not on PATH and shell access is restricted), so I audited schema cardinality, YAML structure and quote literalness by inspection instead of re-running the suites. supporting_text is recommended: true (gene_review.yaml:97), not required, so the 15 removals produce advisory warnings only — consistent with the reported "zero errors, 52 advisory warnings."

Requesting changes for the 🟡 history-link item only; the curation itself is sound and well-documented.
· branch curation/lrv-030-snippets

@ai4c-reviewer ai4c-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed with the aigr-pr-review skill. The curation is sound: the 18-field inventory is exact (3 replacements + 15 removals), all three replacement quotes are verbatim substrings of their cited local research files and on-point for the annotations they support, and the MitoCoP removals are correct — publications/PMID_34800366.md contains no mention of GCDH, OXCT1 or SLC25A24, so there was no quote to use and none was invented. The split between cleaned and surviving bracketed values is principled, matching conf/reference_validator_config.yaml literal_bracket_patterns rather than being arbitrary. No GO terms, actions, reasons or reference identifiers changed.

One IMPORTANT fix requested: all 11 new history records set links.prs to pull/4947 (the separate dependency upgrade) rather than the PR carrying these edits, 4949. History records are append-only after merge, so this becomes permanently misleading provenance; the repo precedent puts the carrying PR there. One line per record.

Remaining items are suggestions only: a dangling reference_section_type left on ago1 line 982, the Rv0898c quote being a fragment of a reasoning trace the review itself rejects, a follow-up sweep for ~25 residual editorial-only quotes elsewhere, and tightening the schema's supporting_text description that produced this pattern.

Full detail in the review comment on the PR.

@ai4c-reviewer

ai4c-reviewer Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Claude finished @cmungall's task in 3m 1s —— View job


Review: Replace 18 empty or editorial-only evidence snippets for LRV 0.3 — re-review after sync

  • Re-read the diff after commit 1c93a8c
  • Verified the 🟡 history-link fix (PR 4947 → 4949)
  • Re-checked all three replacement quotes are verbatim
  • Checked the four new history records
  • Confirmed no GO-annotation content drifted
  • Verdict posted

Verdict

All four items from my previous review are addressed, including the 🟡 blocker. Approving.

The 🟡 is fixed

All 11 original history records now carry the carrying PR:

links:
  prs:
  - https://github.com/ai4curation/ai-gene-review/pull/4949

I confirmed each of the 11 as a one-line 4947 → 4949 change in git show 1c93a8ca1, with the details prose still correctly describing the relationship to the separate dependency upgrade in #4947. No record's target.slug/target.path was touched, and nothing here is merged yet, so the append-only rule is not in play.

Suggestions addressed

Previous 🔵 Resolution Checked
Rv0898c quote was a fragment of a rejected reasoning trace Replaced with a complete sentence from the already-cited OpenScientist report ✅
Dangling reference_section_type on ago1 Removed; finding is now statement-only ✅
Quote formatting inconsistent with surrounding >- scalars tim10 and WIPF1 reformatted as folded scalars ✅
Repo-wide sweep + schema supporting_text wording Not done — correctly deferred, out of scope for this blocker removal —

Rv0898c (Rv0898c-ai-review.yaml:102-105) — the new quote is an exact single-line match at Rv0898c-hypotheses/fold-discovery-duf2630/openscientist.md:267, verified against the folded form (the two source lines join with one space):

InterPro entry IPR020311 describes DUF2630 as "proteins with no known function," encompassing 1,778 protein members across 2,119 exclusively bacterial taxa.

This is a much better fit than the previous fragment: it is a complete sentence, it comes from a report the review endorses rather than a trace it rejects, it drops the mid-sentence-lowercase problem, and the fact it carries (an uncharacterised InterPro family with no GO mappings) is exactly what the ND retention rests on. Straight quotes inside a >- scalar are literal, so no escaping issue.

The two reformats are parse-identical. I re-grepped the folded forms against their sources, not just the pre-change strings: tim10-deep-research-falcon.md and WIPF1-deep-research-falcon.md each return exactly one occurrence, including the en-dash in front–rear. Folding across the WIPF1 line break reproduces immune synapse assembly correctly.

ago1 (ago1-ai-review.yaml:978-981) is now a clean statement-only finding on GO_REF:0000033. reference_section_type is recommended: true (gene_review.yaml:285), not required, so its removal is advisory-only.

History coverage for commit 2 is complete — four review files changed, four new records, one each (Rv0898c -659161, ago1 -e9363a, tim10 -e991f3, WIPF1 -d1eacd). Each has a session id matching its filename, the correct sections, and details that name the superseded record. Same shape as the validated precedent records.

No annotation drift. Commit 2 touches only the four quote fields plus the history records. No GO term, action, reason, summary, finding statement or reference identifier changed anywhere in the PR beyond the 18 inventoried fields.

Two minor notes (no action needed)

  • Rv0898c-ai-review.yaml:92-94 — the reason still characterizes the BioReason SFT trace ("speculated about protein binding and CoA biosynthesis but these claims are entirely unsupported"), but with the swap, Rv0898c-deep-research-bioreason-sft.md is no longer cited anywhere in the review. The claim is still traceable to the folder's own Rv0898c-sft-predictions.yaml and Rv0898c-bioreason-sft-review.md sidecars, so this is a stylistic loose end rather than an unsupported assertion — and it is the right trade against citing a trace as supported_by.
  • supported_by at Rv0898c-ai-review.yaml:102/106/109 now has three entries sharing one reference_id with distinct quotes. That is normal and the file is declared at line 69.

Tooling caveat

As before, I could not execute just validate / just validate-history — uv and just are not on PATH in this sandbox and shell access is restricted to a narrow command set. I verified quote literalness with grep against the actual source files, YAML structure and history-record shape by reading them, and schema cardinality from gene_review.yaml. The PR's reported validation results (11 valid, zero errors, 52 advisory warnings; LRV 0.3.0 at 232 snippets / 87 titles with zero issues) are consistent with everything I could check directly, but CI remains the authority on the suite runs.


The curation was sound on the first pass and the follow-up resolves the one provenance defect plus all three stylistic suggestions. Approving.
· branch curation/lrv-030-snippets

@ai4c-reviewer ai4c-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed after commit 1c93a8c with the aigr-pr-review skill. The IMPORTANT item from the previous review is fixed: all 11 history records now set links.prs to pull/4949 (the carrying PR), with the details prose still correctly describing the separate dependency upgrade in #4947. No record's target.slug/target.path was altered.

All three earlier suggestions are also resolved. The Rv0898c quote now cites a complete sentence from the already-endorsed OpenScientist report instead of a fragment of the reasoning trace the review rejects — verified as an exact single-line match at openscientist.md:267, and a materially better evidence choice for the ND retention. The dangling reference_section_type on ago1 is gone, leaving a clean statement-only finding (the slot is recommended, not required). The tim10 and WIPF1 quotes were reformatted as folded scalars and are parse-identical; I re-grepped the folded forms against their source files and each matches exactly once, en-dash included.

History coverage for the follow-up commit is complete: four review files changed, four new records, session ids matching filenames, correct sections, and details naming the superseded record. No GO term, action, reason, summary, finding statement or reference identifier changed anywhere in the PR beyond the 18 inventoried quote fields.

Two minor notes, no action needed: the Rv0898c reason still characterizes the BioReason SFT trace that is no longer cited in the review (traceable to the folder's sft-predictions and bioreason-sft-review sidecars), and three supported_by entries now share one reference_id with distinct quotes, which is fine.

Caveat: I could not execute just validate or just validate-history in this sandbox (uv and just are not on PATH, shell access restricted), so I verified quote literalness by grep against the sources and structure/cardinality by inspection. CI remains the authority on the suite runs.

Full detail in the review comment on the PR.

@cmungall
cmungall added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit 00d0f98 Oct 12, 2026
5 checks passed
cmungall pushed a commit that referenced this pull request Oct 12, 2026
Conflicts were limited to 11 gene reviews whose empty LRV 0.3 evidence
snippets were fixed twice: by 4b68790 on this branch and by #4949 on
main. Take main's merged version of each and drop 4b68790's history
records, which describe the superseded edits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SfBE3uVPNyHBBofmRvNakd
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.

Replace 18 empty or editorial-only evidence snippets rejected by LRV 0.3.0

1 participant