Repository navigation
Upgrade LRV to 0.3.1rc1 and remove cache-loader monkeypatch - #4947
Conversation
|
Claude finished @cmungall's task in 6m 56s —— View job Review: Upgrade LRV to 0.3.0 and remove cache-loader monkeypatch
Curation checklist (this is an infrastructure PR — no gene reviews or GOA content changed):
Verdict: request changes — the PR is explicitly a draft and self-declares two merge blockers. I agree with both, and found five additional items. The architectural direction (delete the backport, use the upstream 🔴 CRITICAL1. The excerpt-migration scope looks understated, and the migration list should be generated by the validator, not estimated.
The gap between 18 and 41 is probably explained by Please attach the validator-generated list of failing For the fix itself: 2. The performance regression is the wrong direction for a change whose stated purpose is CI speed. 🟡 IMPORTANT3. The new fixture parametrizes The regression that 4. The subprocess test dropped 5. Lost coverage: valid-but-non-mapping frontmatter. 6. The migration will regrow unless the schema wording changes with it. 🔵 SUGGESTIONS7. Stale version floors — the 8. Curator-visible behaviour change is undocumented. With 9. Config duplicated in three places. 10. The temp-config dance may be unnecessary. 11. Pre-existing test worth re-checking under 0.3.0. 12. Unrelated What I could not verifyNo |
There was a problem hiding this comment.
Infrastructure PR; no curated gene-review content changed. The direction is right (delete the backport, use upstream trust_cached_entries, keep the regression tests as the proof) and the diff is clean. Requesting changes on the two self-declared blockers plus four additional items.
CRITICAL
- Migration scope looks understated. A regex scan of the checked-out corpus finds 41 single-line empty-or-bracket-only excerpts across 18 files (upper bound; regex does not apply literal_bracket_patterns) vs the PR's 18 in 11. The gap is probably conf/reference_validator_config.yaml:51-53 —
[^a-zA-Z\\s]is unanchored, so[InterPro2GO mapping](digit) is kept as a literal while[PANTHER phylogenetic analysis](pure alpha) errors. That inconsistency is worth raising upstream. Please attach the validator-generated failing list to the migration issue. Note supporting_text isrecommended, not required (gene_review.yaml:89-97), so deleting the field is schema-valid — do not invent quotes. - Performance: +57% median on the reference CLI is the wrong direction for a CI-speed change. The profile points at the fix — 9.16s of 16.44s in str.translate suggests ligature normalization runs once per quote rather than once per fetched record; memoizing normalized text per reference upstream should recover most of it.
IMPORTANT
3. tests/test_reference_cache_behavior.py:29-40 parametrizes content_type but never full_text_available, which supporting_text.py:164-177 treats as authoritative and which modern cache records carry exclusively. The case trust_cached_entries exists to prevent (an abstract-only record silently refreshed) is therefore not covered with its authoritative marker.
4. The subprocess test dropped --no-full-text with no replacement network guard; UV_OFFLINE gates uv, not LRV's HTTP, so a regression makes the test slow/flaky instead of failing.
5. Lost coverage for valid-but-non-mapping frontmatter — the invariant this PR headlines. A black-box replacement would restore it against the upstream loader.
6. gene_review.yaml:92-94 invites the fully-bracketed excerpt pattern that now errors; the wording should change alongside the corpus migration or it regrows.
Suggestions (stale >=0.2.1 version floors, undocumented curator-facing behaviour change, config duplicated across two scripts, possible CLI flag instead of the temp-config dance, test_reference_curation_metadata.py's offline claim, unrelated argon2-cffi-bindings lock churn) and the full detail are in the review comment: #4947 (comment)
Not verified: no uv/deps and no network in this runner, so no test suite, no validate-all, and no inspection of LRV 0.3.0's config semantics. Findings 3, 10 and 11 hinge on that.
|
Claude finished @cmungall's task in 5m 50s —— View job Re-review: Upgrade LRV to 0.3.0 and remove cache-loader monkeypatch
Curation checklist (infrastructure PR — no gene-review or GOA content changed on this branch):
Verdict: request changes — but only because the self-declared performance blocker is untouched and the PR is still a draft. ✅ Resolved since the last review
🔴 CRITICAL (unchanged, still blocking)1. The performance regression is untouched. +57% median on the reference CLI (12.79s → 20.03s / 100 genes), against a corpus of ~6,700 reviews validated in one process. Nothing in 🟡 IMPORTANT1. The schema wording this PR adds is now violated by 27 excerpts that survive only by regex accident. This matters because the stated mitigation for regrowth is the wording, and the wording is not what enforces it. A scan of the working tree (post-#4949) finds:
Not blocking — CI is green on all of these today — but the PR's claim that the schema change prevents regrowth is weaker than stated, because the check does not fire for the dominant cases. Two concrete asks: (a) note explicitly in #4954 that the 🔵 SUGGESTIONS2. The network-guard positive control doesn't traverse the path it protects. 3. 4. The five What I could not verifySame runner limitations as before: no |
There was a problem hiding this comment.
Re-review of b18bf80d0. 10 of my 11 prior findings are resolved, cleanly: the full_text_available fixture params, the subprocess network guard (audit-hook sitecustomize via PYTHONPATH, recorded and raising — good design), the black-box non-mapping-frontmatter test, the schema/CLAUDE.md quotation wording with the [4Fe-4S]-is-literal carve-out, the version floors, the curator-facing docs section, the config de-duplication through build_supporting_text_validator (now asserted against the YAML), the test_reference_curation_metadata offline claim, and the uv.lock markers. #4949 is merged into main and into this branch.
Requesting changes on two items.
CRITICAL (unchanged) — the performance regression is untouched. +57% median on the reference CLI (12.79s to 20.03s / 100 genes) across ~6,700 reviews in one process; nothing in this push addresses it and the PR body still lists it as a blocker. The profile still points at the fix (9.16s of 16.44s in str.translate for ligature normalization, which looks per-quote rather than per-fetched-record). Fix upstream, then re-pin.
IMPORTANT — the schema wording this PR adds is violated by 27 excerpts that survive only by regex accident, which matters because the wording is the stated mitigation for regrowth. Post-#4949 the tree still has: 1 empty (genes/ARATH/CHL1/CHL1-ai-review.yaml:175, which escapes the 18 because run_reference_validator.sh:76-80 strips supporting_text from full_text_unavailable entries); and 26 bracket-only across 10 files, split into ~21 under file: prefixes that are warn-only via conf/local_quote_baseline.yaml (confirmed: [WIP contains WH2 domain for actin binding] is not a substring of WIPF1-deep-research-falcon.md, and WIPF1 is baselined at line 2577), plus 5 under GO_REF: (atg2 x3, TEP10, cebp-2). The GO_REF five confirm the unanchored-regex hypothesis from my last review: literal_bracket_patterns: "[^a-zA-Z\\s]" (conf/reference_validator_config.yaml:51) classifies [InterPro2GO mapping] (digit), [IBA annotation inferred from ... phylogenetic analysis] (period) and [This is a curator assessment ... domain-function mapping ...] (hyphen) as literal rather than editorial, so whether a placeholder is an error depends on whether it happens to contain punctuation. Asks: (a) record in #4954 that the file:-baselined and GO_REF:-literal placeholders are not covered by the new check, with the file/line list, so the cleanup is scoped to the real set rather than the 18; (b) anchor the pattern — but in the cleanup PR, since anchoring adds failures and would reintroduce a migration blocker here.
Suggestions (network-guard positive control does not traverse the uv run wrapper it protects, so the line-149 assertion could become vacuous; pytest.raises(AttributeError) pins an upstream implementation detail where the sibling test correctly uses match=; the five cache params assert no differential behaviour) and full detail are in the review comment: #4947 (comment)
Not verified: no uv, no venv and no network in this runner, so no test suite, no validate-all, and no inspection of LRV 0.3.0's ReferenceValidationConfig. All corpus claims are from grep over the checked-out tree plus reading the baseline file and the wrapper script.
|
Claude finished @cmungall's task in 4m 3s —— View job Re-review: Upgrade LRV to 0.3.0 and remove cache-loader monkeypatch
Curation checklist (infrastructure PR — no gene-review or GOA content changed on this branch):
Verdict: request changes — unchanged, and for the same single reason: the self-declared performance blocker. ✅ Resolved by
|
| Prior | Status |
|---|---|
| 🔵 2 positive control doesn't traverse the protected path | Fixed properly. test_subprocess_network_guard_is_active_through_wrapper (tests/test_reference_cache_behavior.py:230-251) now goes through scripts/run_reference_validator.sh → uv run python -m ...reference_cli with an uncached PMID and an empty cache dir, asserting the guard trips (attempted.exists(), and the recorded event is one of socket.connect/socket.getaddrinfo) plus not (cache_dir / "PMID_1.md").exists(). That is exactly the in-circuit control: if uv run ever sanitizes PYTHONPATH so sitecustomize never loads, this test goes red instead of the negative at line 156 going vacuous. |
🔵 3 pytest.raises(AttributeError) pins an upstream detail |
Fixed (:98-105). Now "raises or returns is_valid is False", with the cache-bytes assertion unconditional — the invariant, not the implementation. |
| 🔵 4 cache params assert no differential behaviour | Comment added at :36-37: "these cases check cache preservation, not metadata precedence." Exactly the disclaimer I asked for. |
I also confirmed the dependency claim: pyproject.toml:51 is linkml-reference-validator>=0.3.0,<0.4, uv.lock:2655 resolves 0.3.0 from the PyPI registry, and [tool.uv.sources] (:161-162) contains only the workspace self-reference. No source checkout snuck in, as the PR body states.
🔴 CRITICAL (unchanged, still blocking — correctly self-declared)
1. Released 0.3.0 still carries the slowdown. The refreshed table is worse than my earlier estimate, not better: 8.78s → 21.98s median (+150%) on the same 100-gene sample, against ~6,700 reviews validated in one process. The upstream fix (linkml/linkml-reference-validator#106, normalized-text cache per validator) brings it to 7.90s in an isolated checkout — i.e. faster than 0.2.1, and it confirms the str.translate/normalize_text diagnosis from my first review: the ligature table was being applied per quote rather than per fetched record. Reporting that the cache-only comparison produced identical diagnostics in every round is the right control to have run. Nothing to change here — merge/release #106, raise the floor, re-lock, rerun full validation.
🟡 IMPORTANT
1. Residual placeholder excerpts are unchanged, and I could not confirm the #4954 bookkeeping. My ask from last round was (a) record the out-of-scope set in #4954 and (b) anchor literal_bracket_patterns in the cleanup PR, not here — so no code change was expected on this branch, and none happened. Current tree, for the record (23 total):
- 1 empty —
genes/ARATH/CHL1/CHL1-ai-review.yaml:175,supporting_text: ''withfull_text_unavailable: true. Escapes the new check becausescripts/run_reference_validator.sh:76-80stripssupporting_textfromfull_text_unavailableentries before LRV sees them. Per the wording this PR adds ("Omit this optional field when no source quotation is being asserted",gene_review.yaml:93-95), the key should just be deleted. Fix this → - 22 bracket-only across 9 files —
mouse/Notch1×4,human/ABL1×7,mouse/App×3,mouse/Sox2×3,mouse/Ifi204×2, plusSCHPO/atg2×3,human/WIPF1,ANOGA/TEP10,DICDI/tlcd4b,worm/cebp-2×1 each. Warn-only or skipped viaconf/local_quote_baseline.yaml(file:prefixes) and the unanchoredliteral_bracket_patterns: "[^a-zA-Z\\s]"(GO_REF:, where any digit/hyphen/period makes a placeholder "literal").
Whether this is actually outstanding depends on what is now in #4954 — I could not read the issue (the gh issue view call was declined in this runner). If the inventory and the "not covered by the new check" note are already recorded there, consider this closed; if not, it is the one thing left from my last round besides perf.
2. The new positive control's fixture document is schema-invalid, which makes it depend on LRV not enforcing required slots. test_reference_cache_behavior.py:234 writes {"references": [{"id": "PMID:1", "title": TITLE}]} and passes --target-class GeneReview, but gene_symbol (gene_review.yaml:41) and taxon (:124) are required: true. If LRV loads the data through the LinkML/Pydantic loader before extracting references, the run aborts before any fetch, attempted is never written, and assert attempted.exists() at :249 fails for a reason that has nothing to do with the guard. The sibling test two functions up builds a complete document (id/gene_symbol/taxon, :116-120) — reusing that shape with an uncached PMID costs three lines and removes the coupling.
The failure direction is safe (loud, not silent), and the "Build and test" run for this push will settle whether it passes today — but "passes because upstream happens not to validate required slots" is a dependency on unspecified behaviour in the one test whose job is to be trustworthy. Fix this →
🔵 SUGGESTIONS
3. The loosened except Exception is load-bearing on a pytest implementation detail — worth a comment. At :101-102, except Exception: pass is only safe because the in-file forbid_network (:93-94) calls pytest.fail, which raises _pytest.outcomes.Failed — a BaseException subclass — so a network attempt still propagates rather than being swallowed into the pass. The subprocess guard in tests/conftest.py:137 raises a plain RuntimeError. If anyone ever harmonizes the two on RuntimeError, this test silently stops checking "no fetch" while still passing its cache-bytes assertion. One comment on the except line, or narrowing it to exclude the guard's exception, makes that durable.
4. UV_OFFLINE=1 in the new test is doing less than it looks. Same point as my first review, now applying to the positive control too: it gates uv's package resolution, not LRV's HTTP. The audit hook is the real guard — which is fine and is the design, but the UV_OFFLINE in env.update(...) at :236 may read to a future maintainer as the network protection.
What I could not verify
Same runner limitations as both prior passes: no uv, no .venv, no network, and gh issue view was declined. So no just test, no just validate-all, no reference regression suite, and no inspection of LRV 0.3.0's ReferenceValidationConfig — findings 🟡 2 and 🔵 3 hinge on runtime behaviour I can only reason about from the schema and from pytest's documented exception hierarchy. The corpus inventory in 🟡 1 is grep over the checked-out tree; the full_text_unavailable explanation for CHL1 is inferred from the wrapper's strip pass at run_reference_validator.sh:76-80, not observed from a validator run. CI for this push: "Build and test" in_progress at the time of writing.
· branch ci/upgrade-lrv-030
There was a problem hiding this comment.
Re-review of 8a233e021. All three remaining suggestions from my last pass are resolved, cleanly:
- The network-guard positive control now traverses the path it protects —
test_subprocess_network_guard_is_active_through_wrapper(tests/test_reference_cache_behavior.py:230-251) runsscripts/run_reference_validator.sh->uv run python -m ...reference_cliwith an uncached PMID and an empty cache dir, asserting the guard trips and nothing is written. Ifuv runever sanitizes PYTHONPATH so sitecustomize never loads, this goes red instead of the negative at line 156 going vacuous. That was the point. pytest.raises(AttributeError)is replaced by "raises or returns is_valid is False" (lines 98-105), with the cache-bytes assertion unconditional — the invariant, not the upstream implementation detail.- The cache params now carry the disclaimer that they check cache preservation, not metadata precedence (lines 36-37).
I also confirmed the dependency claim: pyproject.toml:51 is >=0.3.0,<0.4, uv.lock:2655 resolves 0.3.0 from the PyPI registry, and [tool.uv.sources] holds only the workspace self-reference. No source checkout snuck in.
Requesting changes on the self-declared blocker plus two smaller items.
CRITICAL (unchanged, correctly self-declared) — released 0.3.0 still carries the slowdown, and the refreshed numbers are worse than my earlier estimate: 8.78s -> 21.98s median (+150%) on the same 100-gene sample, across ~6,700 reviews in one process. Upstream linkml/linkml-reference-validator#106 brings it to 7.90s in an isolated checkout, i.e. faster than 0.2.1, confirming the str.translate/normalize_text diagnosis (ligature table applied per quote rather than per fetched record). Reporting that the cache-only comparison produced identical diagnostics in every round is the right control. Nothing to change here: merge/release #106, raise the floor, re-lock, rerun full validation.
IMPORTANT 1 — residual placeholder excerpts are unchanged (expected; my ask was for #4954 bookkeeping, not code on this branch), but I could not read #4954 in this runner (gh issue view declined), so I cannot confirm it was recorded. Current tree holds 23: 1 empty at genes/ARATH/CHL1/CHL1-ai-review.yaml:175 (escapes the new check because run_reference_validator.sh:76-80 strips supporting_text from full_text_unavailable entries; per the wording this PR adds, the key should simply be deleted), plus 22 bracket-only across 9 files (mouse/Notch1 x4, human/ABL1 x7, mouse/App x3, mouse/Sox2 x3, mouse/Ifi204 x2, SCHPO/atg2 x3, and one each in human/WIPF1, ANOGA/TEP10, DICDI/tlcd4b, worm/cebp-2) that are warn-only via conf/local_quote_baseline.yaml or skipped via the unanchored literal_bracket_patterns. If the inventory is already in #4954, consider this closed.
IMPORTANT 2 — the new positive control's fixture document is schema-invalid, which couples it to unspecified upstream behaviour. Line 234 writes {"references": [...]} only, but gene_symbol (gene_review.yaml:41) and taxon (:124) are required: true. If LRV loads data through the LinkML loader before extracting references, the run aborts before any fetch and assert attempted.exists() at line 249 fails for a reason unrelated to the guard. The sibling test two functions up already builds a complete document (lines 116-120); reusing that shape with an uncached PMID costs three lines. The failure direction is safe (loud, not silent) and CI for this push will settle whether it passes today, but "passes because upstream happens not to enforce required slots" is a weak footing for the one test whose job is to be trustworthy.
Suggestions (the loosened except Exception at line 101 is safe only because pytest.fail raises a BaseException subclass while the conftest guard raises RuntimeError — worth a comment so a future harmonization doesn't silently neuter it; and UV_OFFLINE in the new test gates uv's resolution, not LRV's HTTP) with full detail in the review comment: #4947 (comment)
Not verified: no uv, no .venv, no network, and gh issue view declined, so no test suite, no validate-all, and no inspection of LRV 0.3.0's ReferenceValidationConfig. Corpus claims are grep over the checked-out tree. "Build and test" was still in progress.
|
Claude finished @cmungall's task in 3m 25s —— View job Re-review: Upgrade LRV to 0.3.0 and remove cache-loader monkeypatch
Curation checklist (infrastructure PR — no gene-review or GOA content changed on this branch):
Verdict: request changes — the push is a two-line dependency bump, and it is genuine progress: the upstream perf fix is now published and consumed rather than living in a source checkout. But it is published as a release candidate, and the control experiment that established "identical diagnostics" was run against a different artifact than the one now pinned. The PR is correctly still a draft. What changed in
|
There was a problem hiding this comment.
Re-review of 32d8fbf35. The push is a two-line dependency bump and it is genuine progress: the upstream perf fix is now published and consumed (pyproject.toml:51 >=0.3.1rc1,<0.4, uv.lock resolving 0.3.1rc1 from PyPI, uploaded ~9 minutes before the push). The floor is correct in the way that matters most — 0.3.0 no longer satisfies it, so the slow build cannot be resolved, and 0.3.1 final will. No source checkout snuck in; [tool.uv.sources] still holds only the workspace self-reference.
Requesting changes on two items, plus the two carryovers.
CRITICAL 1 — the pin is a prerelease, which is not the gate this PR set for itself ("raise the minimum LRV version and lock that release here"). A specifier containing a prerelease opts the package into prerelease resolution, so a future 0.3.2rc1 becomes resolvable for anyone installing without the lockfile. The <0.4 cap is unaffected (PEP 440 forbids <0.4 from matching 0.4.0rc1), so exposure is bounded to 0.3.x prereleases, but it is a standing change to the published floor that outlives the testing purpose. Fine for testing the published artifact, as the commit message says; the floor should become >=0.3.1 and be re-locked before ready.
CRITICAL 2 — there is no measurement, and no diagnostics control, for the artifact now pinned. The body's table covers 0.2.1 (8.78s), 0.3.0 (21.98s), 0.3.0+cache in an isolated checkout (7.90s) and upstream main (6.70s); 0.3.1rc1 is none of them, and the body still states "the dependency remains on released 0.3.0; this PR does not yet contain the measured performance improvement." This is more than bookkeeping because the body is explicit that the cache-only comparison was built to isolate the optimization from newer unreleased matching changes — and the rc is unlikely to be that isolated patch: the wheel grew 175,413 to 198,993 bytes (+13.4%) and the sdist 1,294,426 to 1,342,037, far more than a per-validator memoization. If the rc also carries the matching changes, the "identical diagnostics in every round" control does not cover what is pinned, and matching-behaviour changes are exactly the class that can flip quote validation across 6,773 reviews and shift what conf/local_quote_baseline.yaml must cover. Before ready: add a 0.3.1rc1 timing row measured the same way, and re-run full-corpus reference validation against the rc with a diagnostics diff versus 0.3.0 rather than carrying the cache-only control forward. The size delta is an inference — upstream's changelog between 0.3.0 and 0.3.1rc1 would settle it.
IMPORTANT 3 (carryover) — the positive control's fixture is still schema-invalid at tests/test_reference_cache_behavior.py:234 ({"references": [...]} only, while gene_symbol and taxon are required: true). The sibling at :116-120 already builds the complete shape; reusing it with an uncached PMID costs three lines and removes the dependency on LRV not enforcing required slots before reference extraction. Failure direction is safe, but this is the one test whose job is to be trustworthy. Also unchanged: 23 residual placeholder excerpts (1 empty at genes/ARATH/CHL1/CHL1-ai-review.yaml:175, 22 bracket-only across 9 files) — expected, since my ask was #4954 bookkeeping, which I again could not read in this runner.
Suggestions (the four version floors corrected last push now read >= 0.3.0 against a >= 0.3.1rc1 pin — defensible as feature floors, worth being deliberate about; and confirm uv lock --check was re-run after this bump) with full detail in the review comment: #4947 (comment)
Not verified: no uv, no .venv, no network, gh issue view declined, so no test suite, no validate-all, no inspection of 0.3.1rc1's contents or changelog. "Build and test" for this push was still in progress.
|
Claude finished @cmungall's task in 4m 47s —— View job Re-review: Upgrade LRV to 0.3.1rc1 and remove cache-loader monkeypatch
Curation checklist (infrastructure PR — no gene-review or GOA content changed on this branch):
Verdict: request changes — for exactly one reason now, and it is the one the PR declares itself: the pin is still a release candidate. ✅ Resolved by
|
There was a problem hiding this comment.
Re-review of e8c6df0b4. The push closes my last IMPORTANT, and the PR body closes the other CRITICAL from that pass properly rather than by assertion. Requesting changes for one reason, the one the PR declares itself: the pin is still a release candidate.
Resolved by e8c6df0 — the positive control's fixture is no longer schema-invalid. tests/test_reference_cache_behavior.py:234-239 now carries id, gene_symbol and taxon{id,label}, the three required: true slots reachable from GeneReview (gene_review.yaml:331-348, with gene_symbol at :38 and taxon at :121). The uncached PMID:1 and the empty cache dir are untouched, so the guard assertion at :254 can no longer fail for a reason unrelated to the guard.
Resolved in the body since 32dfb35 (my prior CRITICAL 2) — there is now a measurement and a diagnostics control for the pinned artifact: alternating three runs each on the same 100-gene manifest, 0.3.0 median 43.47s vs 0.3.1rc1 median 25.46s (-41%), byte-identical diagnostics in all three pairs; both medians check out against the listed runs. And the full-corpus run is against the rc rather than carried forward — 6,773 reviews, zero errors, 49 advisory warnings in 28 files, output identical to released 0.3.0 after normalizing worktree roots, .lrv temp suffixes and the timing footer. That is strictly better than what I asked for: it covers whatever else the rc carries beyond the cache change, which was the real worry behind the wheel-size delta, instead of arguing from the changelog. I verified the lock here: uv.lock:2655 resolves 0.3.1rc1 from PyPI with wheel sha256 88ba0eea... matching the body, and [tool.uv.sources] still holds only the workspace self-reference.
CRITICAL (self-declared, still blocking) — pyproject.toml:51 is >=0.3.1rc1,<0.4. The body commits to replacing it with >=0.3.1,<0.4 and refreshing the lock once the final release ships, which is the right plan and needs nothing further here; it is simply why the PR cannot go ready. Keep in view that a specifier containing a prerelease opts this package into prerelease resolution for anyone installing without the lockfile — bounded to 0.3.x by <0.4, but a standing change to the published floor that would outlive the testing purpose.
IMPORTANT — the refreshed table dropped the 0.2.1 row, so 'no net regression against the version being replaced' is no longer demonstrated anywhere in the body. What is shown is rc1 beating the artifact nobody is running. The version this PR upgrades from is 0.2.1, previously 8.78s median on the same sample, against rc1's 25.46s here. I think the busy-machine caveat explains the whole gap and the upgrade is fine — the common 0.3.0 arm moved 21.98s to 43.47s between rounds, so this round runs ~2x slow across the board and 25.46/2 lands near the isolated-checkout 7.90s — but that reconciliation is mine, not the body's, and the only direct evidence for parity-or-better vs 0.2.1 is still the isolated source checkout, not the published artifact. One additional alternating arm with 0.2.1 in the same round puts the actual before/after on one row set, cheaply.
IMPORTANT (carryover, expected) — residual placeholder excerpts unchanged; my ask was #4954 bookkeeping, not code here. The current tree holds 27, slightly more than the 23 I reported last pass (my earlier pattern missed quoted-scalar forms): 1 empty at genes/ARATH/CHL1/CHL1-ai-review.yaml:175, plus 26 bracket-only across 10 files (ABL1 x7, Notch1 x4, Sox2 x3, atg2 x3, App x3, Ifi204 x2, one each in WIPF1:51, TEP10:122, tlcd4b:151, cebp-2:423). The body says #4954 now carries a 37-candidate YAML-node inventory including multiline values plus the wrapper/baseline/literal-pattern exemptions — a superset of that list and exactly the bookkeeping I asked for; gh issue view was declined in this runner, so I take it on the body's word.
Suggestions (the guard records the event name but not the target, so the positive control cannot attribute the attempt it catches — writing f'{event} {args!r}' in tests/conftest.py:141-145 would fix that; relatedly the fixture's new NCBITaxon prefix is absent from skip_prefixes, which should be inert but is a second unskipped CURIE in the one document whose assertion is 'something tried to fetch'; and the four version floors still read >= 0.3.0, defensible as feature floors) with full detail in the review comment: #4947 (comment)
Not verified: no uv, no .venv, no network, gh issue view declined, so no test suite, no validate-all, no inspection of the rc's contents. Corpus counts are grep over the checked-out tree; the required-slot check is read from the schema, not from a validator run. Both runs for this push were in_progress.
|
Claude finished @cmungall's task in 4m 55s —— View job Re-review: Upgrade LRV to 0.3.1rc1 and remove cache-loader monkeypatch
Curation checklist (infrastructure PR — no gene-review or GOA content changed on this branch):
Verdict: request changes. No new commits since 🔴 CRITICAL1. The PR went ready-for-review while its own gate is unsatisfiable: upstream And the pin is unchanged: Worth restating the one standing consequence: a specifier containing a prerelease opts this package into prerelease resolution for anyone installing without the lockfile. Bounded to 🟡 IMPORTANT2. The body materially understates what
#105 is exactly the class of change I flagged two passes ago as able to flip quote validation across the corpus — commits like "Never offer a fragment of a quote as its fuzzy correction", "Count stopwords when deciding a fuzzy match drops part of the quote", "Keep a dropped negation from passing as a near spelling". #101 concerns the format of this repo's ~6,800 committed This is not a blocking correctness objection, because the full-corpus identical-diagnostics run is the right control and it empirically covers all of it — that remains the strongest evidence in this PR. The ask is bookkeeping with teeth: a reviewer deciding whether that control is sufficient needs to know what it is covering. Describing a 57-commit range as "the delimiter fix and the normalized-reference cache" invites the reader to think the control only has to cover a memoization. Please list the five PRs, and note that the identical-diagnostics result is what clears the cache-format and matching changes. Fix this → 3. Residual placeholder excerpts unchanged — expected, since my ask was #4954 bookkeeping rather than code here. Still 1 empty at 🔵 SUGGESTIONS4. I could finally run the exposure analysis for #103/#104, and it is reassuring — but one cache entry is now frozen in a superseded format. Recording it so it isn't rediscovered later:
5. The body omits a real argument in its own favour. #101's "Preserve consumer cache extensions across refreshes" is upstream formalizing precisely what this repo depends on — 6. The guard records the event name but not the target (carryover). 7. The four version floors still read What I verified this pass, and what I did notBetter than previous passes: this runner had |
There was a problem hiding this comment.
Re-review on the draft -> ready-for-review transition. No new commits since e8c6df0b4; what changed is the readiness assertion, and that is the problem. This runner finally had gh and network, so several things I had been inferring are now observed.
Good news first: "Build and test" for e8c6df0b4 is green (run 38292308680, conclusion success). That is the first complete run across my five passes and it retires the "could not verify the suite" caveat I had been carrying.
CRITICAL 1 - the PR went ready-for-review while its own merge gate is unsatisfiable. The body says "keep draft until the final 0.3.1 pin replaces the prerelease" and commits to replacing the floor "once that release is published". Verified against the upstream releases API: the latest release is still v0.3.1rc1 (2026-10-12T18:10:51Z, prerelease=true); v0.3.0 (2026-10-04) is the most recent final. The pin is unchanged - pyproject.toml:51 is >=0.3.1rc1,<0.4, uv.lock:2655 resolves the rc, uv.lock:121 records the rc specifier. Nothing is wrong with the branch; it is exactly the state the body describes. But ready-for-review asserts a gate the ecosystem cannot satisfy yet. Either return to draft until upstream cuts 0.3.1, or state explicitly that merging on the rc is now the accepted decision and drop the "replace before merge" commitment - the current combination reads as the gate having been met. Standing consequence either way: a specifier containing a prerelease opts this package into prerelease resolution for anyone installing without the lockfile, bounded to 0.3.x by <0.4.
IMPORTANT 2 - the body materially understates what 0.3.1rc1 contains, and two of the five upstream PRs in it touch cache format and quote matching. The body says the release "includes both the delimiter fix and the normalized-reference cache from LRV #106". The actual range v0.3.0...v0.3.1rc1 is 57 commits, 28 files, +4055/-208, spanning: #101 a new reference-cache format contract (cache.py +251 new, reference_fetcher.py +232/-142, new docs/reference/cache-format.md, tests/test_cache_validation.py +512); #103 url: HTML pages cached as readable text instead of markup, with a cache-version bump; #104 a new SVGExtractor (+897) for file: SVG references; #105 fuzzy matching and repair changes (fuzzy_text_utils.py +103/-2, matching.py, repairer.py, supporting_text_validator.py +59/-9); and #106 the normalized-reference cache. #105 is exactly the class of change I flagged two passes ago as able to flip quote validation across the corpus - commits include "Never offer a fragment of a quote as its fuzzy correction", "Count stopwords when deciding a fuzzy match drops part of the quote", "Keep a dropped negation from passing as a near spelling". #101 concerns the format of this repo's ~6,800 committed publications/*.md.
This is not a blocking correctness objection: the full-corpus identical-diagnostics run against the rc is the right control and it empirically covers all of it, and it remains the strongest evidence in this PR. The ask is bookkeeping with teeth - a reviewer deciding whether that control is sufficient needs to know what it is covering, and describing a 57-commit range as "the delimiter fix and the normalized-reference cache" invites the reader to think the control only has to cover a memoization. Please list the five PRs and note that the identical-diagnostics result is what clears the cache-format and matching changes.
IMPORTANT 3 (carryover, expected) - residual placeholder excerpts unchanged; my ask was #4954 bookkeeping, not code here. Still 1 empty at genes/ARATH/CHL1/CHL1-ai-review.yaml:175 and 26 bracket-only across 10 files, warn-only via the baseline or skipped via the unanchored literal_bracket_patterns.
Suggestions, including the #103/#104 exposure analysis I could finally run: #104 is inert here (file is in skip_prefixes at conf/reference_validator_config.yaml:36, and there are zero .svg file: references); #103 touches exactly one reference, url:https://www.nature.com/articles/ncb2557 in PIP5K1B, whose cache entry is still pre-#103 raw markup and whose single quote resolves inside a
just warm-references or one doc sentence closes. Also: #101's "Preserve consumer cache extensions across refreshes" is upstream formalizing exactly what this repo depends on for full_text_available, which is a better argument for taking 0.3.1 than the performance number and the body does not make it. Plus the guard recording event but not target, and the four >= 0.3.0 feature floors. Full detail: #4947 (comment)
Verified this pass: upstream release list, the v0.3.0...v0.3.1rc1 range, and the CI conclusion are observed rather than inferred - which settles the wheel-size inference from my fourth pass. Not verified: no uv and no .venv, so I did not run just test or just validate-all myself and am relying on the green Build and test run; gh issue view was declined again, so #4954's inventory is still taken on the body's word.
|
Claude finished @cmungall's task in 4m 59s —— View job Re-review: Upgrade LRV to 0.3.1rc1 and remove cache-loader monkeypatch
Curation checklist (infrastructure PR — no gene-review or GOA content changed on this branch):
Verdict: approve. Every CRITICAL and IMPORTANT from my six prior passes is now closed, two of them by correcting my framing rather than conceding it. ✅ Resolved since
|
There was a problem hiding this comment.
Re-review of 8ed05dd3b plus the updated body. Approving — every CRITICAL and IMPORTANT from my six prior passes is closed, two of them by correcting my framing rather than conceding it. gh api was permitted this pass, so several things I had been taking on the body's word are now observed.
Resolved since e8c6df0:
- The ready-for-review gate (prior CRITICAL) is closed the right way. Upstream re-verified: latest release is still v0.3.1rc1 (2026-10-12T18:10:51Z, prerelease=true), v0.3.0 (2026-10-04) the newest final — so "wait for 0.3.1" remains unsatisfiable. The body now takes the other option explicitly: RC dependencies accepted by the maintainer, waiting for 0.3.1 is not a merge requirement, prerelease-resolution consequence stated and bounded to 0.3.x, final release deferred to a later dependency update. That is a maintainer decision on a disclosed trade, not an unmet gate. Pin verified unchanged: pyproject.toml:51
>=0.3.1rc1,<0.4, uv.lock:121 the specifier, uv.lock:2655 resolving 0.3.1rc1 from PyPI, [tool.uv.sources] still only the workspace self-reference. - The upstream-scope disclosure (prior IMPORTANT) is in, and it corrects my table. #101/#103/#105/#106 are listed with the cache-format and matching changes named, and the full-corpus identical-diagnostics run is identified as what clears them. It also fixes an error in my last review: #104 is the tracking issue, not a PR — confirmed via the API (104 ISSUE, open; 105 PR "Read SVG figures as the text they render (#104, phase 1)", closed). My five-PR table should have been four PRs plus one issue; the body's version is correct.
- The #4954 bookkeeping is verified and better than my ask. The issue carries the 37-candidate YAML-node inventory (28
file:, 8GO_REF:, 1 empty PMID) as a per-location table with cited source and candidate value, all three exemption mechanisms, and the explicit framing that it is a source-content inventory rather than an LRV error list. It also rejects my own suggestion, correctly: anchoring[^a-zA-Z\s]to the first character would stop preserving[Ca2+]. That is right and I had it wrong —[Ca2+]opens with an alpha char, so^[^a-zA-Z\s]would miss it and only^[A-Z]{2,5}$would remain, whichCa2+also fails. Deferring config hardening to a separate PR with notation regression tests is the better plan. - The url: cache note is documented and the escape hatch actually works — I checked the mechanism, not the prose:
urlis not in skip_prefixes (conf/reference_validator_config.yaml:28-48), warm_reference_cache.py:46-49 sets trust_cached_entries = False, and its glob covers PIP5K1B, whose entry is still the pre-#103 form.just warm-referencesexists at project.justfile:1015. - Also closed: #101's consumer-extension durability argument is now made in the body (the better reason to take 0.3.1 than the timing table); the
except Exceptionhazard is documented at test_reference_cache_behavior.py:101; and the dropped 0.2.1 arm is handled by honest disclosure ("not a same-round comparison … does not establish a net speedup over 0.2.1") rather than overclaim.
Three suggestions, none blocking:
- The guard now records the target but does not discriminate on it. conftest.py:143 writes
f'{event} {args!r}'— good — but the check at :257 (target.startswith("(") and target != "()") holds for any recorded attempt, since args is a non-empty tuple for both events by construction. The attribution concern was that the wrapper's ownuv run python -cpreprocessing pass inherits the same hook, so a package-index trip satisfies the positive control. A negative discriminator (pypi.org / astral.sh not in target) turns the record into a check; the positive form would couple to LRV's provider chain. Alsowrite_textoverwrites, so only the last attempt survives — append mode would record the sequence. Cosmetic; the negative assertion plus the no-cache-file assertion carry the weight. - Nothing in pyproject.toml records that the prerelease specifier is deliberate (the nearby comment is about _materialize/#2789). One line above :51 makes the decision durable where
uv lock --upgradewill encounter it. - The four
>= 0.3.0feature floors should stay — and now read deliberate rather than stale, since the new docs paragraph names 0.3.1rc1 specifically for the url:-text change, distinguishing the two versions by what each introduced.
Verification: observed this pass — upstream release list, #104/#105 types, #4954's full inventory, the CI conclusion for e8c6df0, the pin and lock, skip_prefixes and the trust-off path in warm_reference_cache.py, the PIP5K1B cache entry's format, and CHL1:175. Reasoned, not run — the audit-event args shapes in suggestion 1 are from CPython's documented audit events. Still no uv and no .venv, so I did not run just test or just validate-all; for 8ed05dd I rely on the green run for its parent plus the fact that this push touches only docs and two test files. Its own test (3.12) run was in_progress when I finished.
Full detail: #4947 (comment)
Upgrade
linkml-reference-validatorfrom 0.2.1 to the published 0.3.1rc1 and remove the cache-loader monkeypatch. The upgrade includes the upstream delimiter fix and the broader cache, extraction, matching, and performance changes detailed below. Validation preserves reviewed publication text through supportedtrust_cached_entries; explicit warming opts out.RC validation complete; release-candidate dependencies are accepted by the maintainer. Waiting for final 0.3.1 is not a merge requirement. The lock contains the tested PyPI wheel (SHA-256
88ba0eea05d041c30ce5af15b801072685e6fa3886b8816cd973190253568cca), not a source checkout or runtime patch. The minimum is>=0.3.1rc1,<0.4; no other package versions changed. This deliberately permits 0.3.x prereleases for installations without the lockfile; locked installations use the tested 0.3.1rc1 artifact. The final release can be adopted in a subsequent dependency update.Upstream changes covered by this validation
The range from 0.3.0 to 0.3.1rc1 includes:
full_text_availablewithout a local cache-loader patch.url:HTML as readable text instead of markup, with a cache-version bump.The full-corpus identical-diagnostics comparison below covers the published RC with all these changes, including cache-format and matching behavior on the committed evidence. It does not assert that every upstream feature is exercised: LRV skips
file:here (the project validates those separately), and trusted existing URL caches retain their committed representation. The warming guide now explicitly documents how to refresh old URL markup in a separate, reviewed cache change. No publication cache is rewritten by this PR.Published-package performance
Alternating three runs each on the same 100-gene manifest, same data/cache, and same configuration:
The RC is faster in every paired round: 41% lower median elapsed time, with byte-identical diagnostics in all three comparisons. The machine was busy (including a separate 0.3.0 full-corpus run), so absolute times and speedup are noisy and are not a prediction of CI duration. These measure the reference CLI after import, excluding the project shell preprocessor. The direct sample includes existing validation failures; identical diagnostics, not exit zero, establishes the comparison.
This comparison establishes the recovery from the 0.3.0 regression; it is not a same-round comparison against the original 0.2.1 dependency, so it does not establish a net speedup over 0.2.1.
This verifies the published artifact carries the optimization previously demonstrated in isolated source checkouts. Release/tag: https://github.com/linkml/linkml-reference-validator/releases/tag/v0.3.1rc1 (commit
a8451d2c9cd698f10c7bd8dccb5e1089fb5b441f). Upstream CI and review passed before merge.RC validation
uv lock --check: passes; the unrelated cffi marker churn is excluded.DROME/DlversusDROME/dlhistory-path collision seen on 0.3.0; no new test failures.just mypy: passes (257 files). Full Ruff: passes..lrvtemporary suffixes, and the RC timing/exit footer. The real project wrapper exits 0 for both.DROME/DlversusDROME/dl). The RC full-suite result is recorded above.Review follow-up
full_text_available: false/truecache entries as well as legacy abstract/XML/HTML records, delimiter-containing titles, and LF/CRLF bytes.uv run→ project CLI path using an uncached reference. Settrust_cached_entriesexplicitly in the reference-curation metadata fixture.trust_cached_entries; the opt-out is tested.uv lock --checkpasses.Latest review follow-up: RC adoption is explicitly accepted by the maintainer; the former final-release gate has been removed. The subprocess guard now records its destination arguments as well as its event. Issue #4954 was rechecked directly and contains the 37-candidate YAML-node inventory and exemption analysis requested by the reviewer.
Follow-up checks: all 54 reference-cache tests pass; Ruff passes for both modified test files.