Phase 1: foundation, bug-fix upstream, source router (deepXIV + biomed)#1
Merged
Conversation
…ource_ids registered
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.
Summary
Phase 1 of the OpenRevise unification per docs/plans/2026-05-01-openrevise-unification-design.md:
1A — Foundation restructure:
pyproject.toml(Apache-2.0, name=openrevise, optional extras for preprint/biomed/mcp)scripts/→src/openrevise/{artifacts,gates,sources,revise,pipeline}/with corrected imports andparents[3]repo-root resolutionpermissions: contents: read1B — Bug-fix upstream from private revise:
housekeeping --dry-runno longer mutates the run-index (twoupsert_run_recordsites guarded; regression tests for both COLD_ARCHIVED and EXPIRED_NONKEY_PURGED branches)revise_docxreports a friendly stderr error instead of rawKeyErrorwhen the input DOCX is missingword/document.xmlorword/footnotes.xmlrun_revise_pipeline.pyand_v2.py);--authordefault flipped Codex→OpenRevise across all pipeline scripts;meta.notesfield added to patch-spec template (neutral text)1C — Source router + preprint stack:
SourceRouterwithsource_typedispatch andBackendNotRegisteredexceptionPreprintRouterwith priority-ordered engines and graceful fallback (DeepXiv-SDK primary → native arXiv via feedparser fallback → soft-degrade to empty)pubmed.py,europepmc.py,pmc.pyclients using NCBI E-utilities and Europe PMC REST (replaces metadata-only registry tags)default_router()factory wires preprint + biomed (withliteraturesource_type alias for legacy registry compat);config/source_registry.yamlextended with arxiv/medrxiv/biorxiv source_idsTest plan
pytest -qgreen locally (17 tests including 5 new TDD regression tests)pip install -e ".[dev]"succeeds in fresh venvPANOVA fixturepositive control verified during Task 5 cycle)test)Out of scope (separate plan)
check_label_value_consistency.pyretains opioid-anchored regex (with leak-guard allow-list TODO marker pointing at design step 7)🤖 Generated with Claude Code