Skip to content

Roadmap

This roadmap states direction, not commitments. Priorities follow real use cases, and every item must fit the library's scope: scientific papers in, structured and searchable data out. An item that does not fit is declined, however useful it would be elsewhere. To work on an item, comment on its issue or open one. Items marked good first issue suit newcomers.

Each milestone lists its exit criteria. A milestone ships when every criterion holds with the test suite offline and line coverage at 100%.

Current release — v0.7.0

CHANGELOG.md lists every change by release, and MIGRATION.md explains how to upgrade from 0.4 and what 0.5, 0.6, and 0.7 change.

Consumer Requires Runs
udg-catalogue >=0.6.0.dev0,<0.7 on main, with every extra it imports, and its suite passes against core 0.7.0 0.4 in production, including search, discovery, and embeddings
sci-etl-cli >=0.6.0.dev0,<0.7 on master, and its suite passes against core 0.7.0 0.2, in its latest release 0.2.1
Area Shipped
Orchestration AsyncETLPipeline with bounded per-record concurrency, exact total_limit, stall detection, and PipelineAborted carrying partial counts; ETLPipeline as the blocking facade on a background event loop
Contracts ABCs for extractors, relevance filters, entity extractors, LLM clients, exporters, state managers, parsers, embedders, chunkers, vector and text stores, processors, and validators; entity extractors and exporters generic in the entity type
Delivery Exporters receive each record with its entities through open, write, flush, and aclose, and a record is marked processed only once its entities are durable, so a crash can repeat a record but never lose one; AsyncCsvExporter with one row per entity and AsyncJsonlExporter with one line per record, both linear in the number of records
Reliability Graceful shutdown through ShutdownSignal, state flushed however a run ends, atomic writes and OS file locks, Retry-After-aware retries, shared and per-host rate limiters, download and decompression size limits
Resumption Saved listing cursors that advance only past settled pages, result caps reported as truncated with the next run starting from the first page, a quarantine for records that keep failing, schema-versioned state that upgrades files written by 0.4, newest_first runs that pick up new submissions without rescanning, and forget(record_ids) on both bundled state managers, so a run with start_index=0 processes chosen records again
Sources arXiv, PubMed, Semantic Scholar, and OpenAlex extractors; PDF, LaTeX, HTML, DOCX, and JATS XML parsers
LLM OpenAI-compatible chat and embedding clients with token usage and JSON-schema structured output, response caching in memory or SQLite keyed on the entity schema, typed entities validated against a Pydantic model, and AsyncCascadingRelevanceFilter, which lets a cheap relevance filter screen records before an LLM filter sees them
Claims (provisional) sci_etl_core.claims: each extracted value with its paper, its evidence sentence, and the model, prompt, and schema that produced it; claim and rejection stores in memory or SQLite; validators that name the field and rule behind each rejection
Memory and search Vector memory with a fast exact scan, Boolean query language with NEAR, SQLite FTS5 and in-memory text stores, hybrid rank fusion over 500 candidates per leg, range and metadata filters, facets, snippets, discovery graphs, and backfill from vector memory; search whose work follows the candidate pool rather than the corpus: text stores rank before they build snippets (rank, hydrate), count matches up to a cap, and count facets from the matches, with opt-in SQLite cache and memory-map settings (SqliteTuning)
Configuration Pydantic models loaded from YAML, with .env read only on request, SecretStr keys, secret-safe validation errors, from_config builders
Installation A base install that requires only pydantic, with each parser, loader, extractor, and processor behind the extra it needs
Observability Standard logging under the sci_etl_core logger, progress events, and RunMetrics with counts, durations, outcome, and token usage
Project health Offline pytest and Hypothesis suite at 100% line coverage, with branch coverage reported; ruff with the ASYNC, UP, RUF, and PT rule sets, and mypy with stricter flags on the core contracts; CI on Linux, Windows, and macOS for Python 3.11–3.14, PyPI trusted publishing, a documentation site with a generated API reference
Guardrails A committed snapshot of every stable signature, which also covers every name a known consumer uses; the guarantees of AsyncETLPipeline.run numbered in a run-semantics guide, each with a named test; a CI check that every stable name imports from a bare install or from the extra its component needs; the sci-etl-cli and udg-catalogue suites run against every core change and gate every release; nightly smoke tests against each bundled source; a throughput benchmark that runs every exporter through the pipeline; contract suites in sci_etl_core.testing, behind the testing extra, that check third-party extractors, state managers, exporters, and vector stores against the contracts the bundled components pass

Still open:

  • sci-etl-cli and udg-catalogue on the released 0.7.0, requiring a released version with the upper bound <0.8 instead of a development version and running without DeprecationWarning.
  • A live check of how long OpenAlex cursors stay valid.
  • A check of lexical search against its target, at most 200 ms at the 95th percentile over a million records. It moves to v0.8.0, which measures it on a real corpus of that size rather than a synthetic one.

PubMed and Semantic Scholar keep offset paging and report their caps as truncated: E-utilities serves at most 9,999 results even through its history server, and Semantic Scholar's bulk search returns fixed pages of 1,000 papers, which cannot honor page_size.

Path to 1.0

Every public contract has now had its last planned break before 1.0. The run contract (extractor, state, constructor) broke in 0.5.0 and the data contract (entities, exporter, logging, dependencies) in 0.6.0; every later release is additive, apart from the hybrid-search default that v0.7.0 raised. Each breaking change has a MIGRATION.md entry.

From 0.6.0 on, a deprecated name keeps working for at least two minor releases before it is removed. A release is tagged only when the test suites of sci-etl-cli and udg-catalogue pass against the release commit; the release workflow runs both and refuses to publish otherwise.

v0.8.0 — Scalable vector memory

No breaking change and no new deprecation; the new names are provisional.

  • Vector index. The SQLite vector store answers queries from an index it can rebuild from the database at any time: an exact scan by default, binary codes with exact re-ranking, or HNSW through an optional ann extra that installs faiss-cpu.
  • Concurrent searches. Several searches on one store run in parallel instead of waiting for one connection.

The target is a hybrid query over a million records in under 300 ms at the 95th percentile on a laptop, measured on a real corpus of that size. Lexical search is measured on the same corpus against its own target: at most 200 ms at the 95th percentile.

v1.0.0 — Stabilization

1.0.0 guarantees three tiers: stable names follow Semantic Versioning, provisional names may change in a minor release with a changelog entry, and private names may change at any time. Every name a known consumer imports is stable. The release candidate is tagged once one full minor has shipped with no breaking change, the public-surface snapshot and run-semantics tests gate every change, and files written by 0.6.0, 0.7.0, and 0.8.0 open in it.

Later

These items wait on a consumer that needs them, or on a measurement.

  • Knowledge synthesis (sci-etl-kg). Unit normalization, consolidation of repeated measurements, and pooled effect sizes built on the 0.6.0 claims, in a separate package that builds on 1.0.0. Until the start rule below holds, this work stays in udg-catalogue, because a layer built from one catalog would bake in that catalog's assumptions. The core never imports sci-etl-kg, so no outcome below affects core users.
    • Second catalog. Once 1.0.0 is out and a second consumer that builds a catalog needs unit normalization or consolidation, sci-etl-kg 0.1 starts with those two features only, built on stable names.
    • No second catalog. If no second catalog exists by September 2027, sci-etl-kg moves to Not planned until one appears.
    • Six months idle. If sci-etl-kg goes six months without a release, or its upkeep delays a core release, its last 0.x release is frozen, marked unmaintained, and archived.
    • Contradiction detection. Contradiction detection and causal graphs stay out of every release plan; notebooks and research branches are the limit.
  • Vector memory beyond RAM. Compressed vector codes, re-ranked from a memory-mapped file, for corpora whose vectors do not fit in memory. Starts once such a corpus exists.
  • Columnar export. A Parquet sink for post-processed tables, behind an optional extra.
  • Single-pass PDF parsing. PdfPlumberParser.extract_text opens every PDF twice, once for text and once for tables. Read both in one pass.
  • Citation edges. An edge source for co-citation and bibliographic coupling, built on the reference lists AsyncOpenAlexExtractor stores under metadata["references"].
  • Substring and CJK matching. An optional trigram text index, which roughly doubles index size.
  • Discovery interface. An interactive search and graph view on the sci_etl_core.discovery read-model, built outside this repository as a sci-etl-cli subcommand or a separate application.

Exploratory

  • Native provider clients. Local servers such as vLLM, llama.cpp, and Ollama already work through the OpenAI-compatible client. A native client is worth adding only for a provider without an OpenAI-compatible endpoint, or one whose structured-output support that endpoint lacks.

Not planned

These were considered and withdrawn; some appeared on earlier roadmaps.

  • Blocking orchestration contracts. The asynchronous API is the supported one. Blocking leaf components, such as parsers and pandas processors, stay blocking; the blocking extractor, state, exporter, LLM, relevance, and entity contracts, their adapters, and the fixes to the bridge beneath them are withdrawn in favor of their asynchronous counterparts.

  • Config-driven assembly in the library. sci-etl-cli already builds a complete pipeline from one YAML file. The library supplies from_config builders; declarative assembly stays in the CLI, so the core carries no component registry.

  • Streaming pipeline mode. on_event already reports every record as it finishes. Yielding records ahead of page settlement would conflict with the rule that the saved offset advances only past fully settled pages.
  • Processor checkpoints. Processor chains are in-memory pandas transformations of an exported table, which is already the durable checkpoint; rerunning the chain is cheaper than persisting each step.
  • Distributed execution. State managers rely on local file locks and a single SQLite writer. Sharding a corpus across independent runs, each with its own state, covers large corpora without a distributed runtime.
  • Renaming sci-etl-core or sci_etl_core. The distribution and import names stay as they are. A rename would need a bridge release and a migration in every consumer, and would change nothing about what the library does.
  • A sci-etl meta-package. sci-etl-cli already depends on the core with the extras it needs, so a meta-package would only add a release to every release.
  • Republishing sci-etl-cli as sci-etl. The CLI already ships on PyPI as sci-etl-cli and installs the sci-etl command. A new distribution name would be another rename, with its own bridge release.

Have a use case the roadmap does not cover? Open a feature request.