Skip to content

Prepare 0.9.2: Wave 4 speed-ups, uv tool setup, demo UX, version bump, and dependency updates - #285

Merged
thesanogoeffect merged 7 commits into
mainfrom
claude/project-thread-7ypk3b
Nov 27, 2026
Merged

thesanogoeffect merged 7 commits into
mainfrom
claude/project-thread-7ypk3b

Conversation

@thesanogoeffect

@thesanogoeffect thesanogoeffect commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Prepares main (3b7753a9) for the 0.9.2 release, folding in cleared Wave 4 speed-ups, uv tool CLI ergonomics, web demo Fast/Full mode toggle + first-paper download notice, and dependency/security updates.

What changes

  • Version bump (0.9.2): pyproject.toml, uv.lock, and CITATION.cff (date-released: 2026-11-24).
  • Release notes (CHANGELOG.md): folds every [Unreleased] entry (#283, #284, #286, #287, #288, #289, #290), Wave 4, uv tool setup/docs, web demo updates, and the dependency/security refresh into ## [0.9.2] - 2026-11-24.
  • Wave 4 speed-ups (perf/wave4):
    • LAYOUT_TEXT_LAYER_DPI=100 in text-layer mode when figure exports and consensus OCR are off, plus direct RGB PDFium rendering (rev_byteorder=True).
    • ORT CPU arena enabled with per-run shrinkage (ML_ONNX_CPU_ARENA=true, ML_ONNX_CPU_ARENA_SHRINK=true) + StatementTagger routed through create_session() (auto CUDA EP, ML_STATEMENT_TAGGER_DEVICE, GPU OOM split & CPU fallback); updated docs/guides/model-runtime.md.
    • NuExtract references_parse start_index trailer tagged nuextract_role="document" for prefix caching.
    • Opt-in PIPELINE_HTML_PARSER=lxml (default "html5lib") with direct lxml.html table walker (no_network=True).
  • uv tool install support & CLI docs:
    • bibr setup detects PyPI uv tool installs (uv-receipt.toml) and installs extras via uv tool install --python <ver> 'bibr[...]' while merging existing extras (and prints a concise PATH hint when bibr is not on PATH).
    • README.md, docs/index.md, Installation, Quickstart, and Troubleshooting now lead with uv tool install --python 3.12 bibr for CLI use, keeping uv add bibr / pip for Python projects.
  • Web demo (bibr demo) UX:
    • Adds an in-page Extraction mode toggle (Fast vs. Full) when an LLM is configured (unless started with --fast), atomically swapping the pipeline without restarting the demo.
    • Adds an upfront first-paper notice banner (plus terminal startup banner line when models are uncached and download-aware progress-bar note) warning that the first paper takes longer due to model downloads and loading, hiding automatically once warm.
  • Python dependency refresh (pyproject.toml, uv.lock):
    • Adds transitive CVE floors for dnspython>=2.9.2 (CVE-2026-128089 / GHSA-vvf4-9x63-8xvv) and virtualenv>=21.14.13 (CVE-2026-115586 / GHSA-cx6f-vjhg-g3cc).
    • Refreshes 78 non-major locked packages to releases at least 7 days old (cutoff 2026-11-17, matching renovate.json5), with no recorded cutoff in uv.lock.
    • Intentionally held: vllm 0.32.0, torch 2.13.0, torchvision 0.28.0, triton 3.7.1, transformers 5.17.0, onnxruntime-gpu 1.26.0 (CUDA 12), ruff 0.15.22, mlx-audio/mlx-vlm 0.x, and major bumps (huggingface-hub 2.x, google-genai 3.x, openai 3.x, python-dateutil 4.x, cachetools 8.x, multidict 7.x, pymdown-extensions 13.x, watchdog 7.x, websockets 17.x).
  • Dependency-audit exceptions (ci/vulnerability-exceptions.toml): renews PYSEC-2026-3447 and GHSA-xmj3-9gf7-h52w through 2026-12-08 (vllm 0.34.0, checked 2026-11-24, still pins setuptools<81.0.0).
  • Docker & GitHub Actions updates: folds #278 (Dockerfile.serve nvidia/cuda:13.5.0-runtime-ubuntu22.04) and #279 (SonarSource/sonarqube-scan-action v8.5.0, docker/login-action digest). (#162 zizmor 1.32.0 left separate because its new self-repository $/... rule touches ci.yml, release.yml, and tests/ci/test_workflow_contracts.py.)

Local checks run

  • uv lock --check, scripts/ci/audit_dependencies.py (0 other vulnerabilities), scripts/check_public_tree.py (1,309 files, 0 violations)
  • ruff check . & ruff format --check ., strict core mypy (2.4.1), actionlint & zizmor
  • mkdocs build --strict & pytest tests/test_docs_sync.py
  • uv build, scripts/check_dist_contents.py (0 violations), twine check --strict dist/* (PASSED)
  • Demo + docs + CI suites with real Gradio 6.32.0: 300 passed, 0 failed (plus 4,174 Wave 4/pipeline/input/structure/statement-tagger tests, 617 setup/docs/CI/ONNX/Wave 4 tests, and full 18,982-test core suite passed)

Next steps

  1. Wait for CI / required and Maintenance (macos-15, windows-latest, audit) to pass on this PR.
  2. Merge to main and rehearse release.yml on main.
  3. Push annotated tag v0.9.2 on the verified main commit.

- pyproject.toml, uv.lock and CITATION.cff: version 0.9.2.
- CHANGELOG.md: the [Unreleased] entries from #283 and #284 become
  [0.9.2] - 2026-11-19, with an introduction naming what they bring.
- CITATION.cff date-released matches the heading.
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.83333% with 68 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.14%. Comparing base (3b7753a) to head (aee4224).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #285      +/-   ##
==========================================
- Coverage   91.17%   91.14%   -0.04%     
==========================================
  Files         344      344              
  Lines       73240    73647     +407     
  Branches    13581    13667      +86     
==========================================
+ Hits        66777    67125     +348     
- Misses       4005     4041      +36     
- Partials     2458     2481      +23     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Merges main (#286, #287, #288, #289) into the 0.9.2 release branch. Their
[Unreleased] entries join the 0.9.2 section, which is dated 2026-11-20, and
the introduction now covers the GPU speed-ups and the Sonnet fix.
…ions

- Fold #290 (Waves 1-3 output-preserving speed-ups) into the [0.9.2] - 2026-11-24
  release notes and update CITATION.cff date-released to match.
- Add transitive CVE floors in pyproject.toml for dnspython>=2.9.2
  (CVE-2026-128089 / GHSA-vvf4-9x63-8xvv) and virtualenv>=21.14.13
  (CVE-2026-115586 / GHSA-cx6f-vjhg-g3cc).
- Refresh uv.lock across 78 non-major packages to releases at least a week old
  (as of 2026-11-17), holding pinned/major packages (torch 2.13.0, torchvision
  0.28.0, triton 3.7.1, transformers 5.17.0, onnxruntime-gpu 1.26.0, ruff
  0.15.22, mlx-audio/mlx-vlm 0.x, and major bumps for huggingface-hub,
  google-genai, openai, python-dateutil, cachetools, multidict,
  pymdown-extensions, watchdog, websockets).
- Renew PYSEC-2026-3447 and GHSA-xmj3-9gf7-h52w in
  ci/vulnerability-exceptions.toml through 2026-12-08 (vllm 0.34.0 still pins
  setuptools<81.0.0).
- Fold Dependabot updates from #278 (Dockerfile.serve nvidia/cuda 13.5.0) and
  #279 (SonarSource/sonarqube-scan-action v8.5.0 and docker/login-action digest).
@thesanogoeffect
thesanogoeffect marked this pull request as ready for review November 24, 2026 14:03
@thesanogoeffect thesanogoeffect changed the title Prepare 0.9.2: bump the version and write its release notes Prepare 0.9.2: bump version, release notes, and dependency updates Nov 24, 2026
… CUDA, NuExtract prefix, and opt-in lxml parser

- 4A: LayoutOptions.text_layer_dpi (default 100, LAYOUT_TEXT_LAYER_DPI) in
  text-layer mode when figure exports and consensus OCR are off, plus direct
  RGB PDFium rendering (rev_byteorder=True).
- 4B: ORT CPU memory arena enabled with per-run shrinkage by default
  (ML_ONNX_CPU_ARENA=true, ML_ONNX_CPU_ARENA_SHRINK=true) and StatementTagger
  routed through create_session() with CUDA EP, ML_STATEMENT_TAGGER_DEVICE,
  GPU OOM splitting, and CPU fallback; update docs/guides/model-runtime.md.
- 4C: Tag NuExtract references_parse start_index trailer as
  nuextract_role='document' for prefix caching.
- 4D: Opt-in PipelineOptions.html_parser='lxml' (PIPELINE_HTML_PARSER) with
  direct lxml.html table walker (no_network=True).
…imary CLI path

- Detect PyPI uv tool environments via uv-receipt.toml in bibr setup,
  installing extras with `uv tool install --python <ver> 'bibr[...]'` while
  preserving previously installed extras and version specifiers (falling back
  to `uv pip install --python` for local/git or `--with` receipts).
- Print a concise PATH hint at the end of `bibr setup` only when `bibr` is
  not on PATH (`uv tool update-shell` in a uv tool env, or `uv run` /
  `uv tool install --python 3.12 bibr` in a project env).
- Update README, docs/index.md, Installation, Quickstart, and Troubleshooting
  to lead with `uv tool install --python 3.12 bibr` for CLI users while
  keeping `uv add bibr` / pip for Python projects.
- Fold Wave 4 and uv tool updates into the 0.9.2 section of CHANGELOG.md.
@thesanogoeffect thesanogoeffect changed the title Prepare 0.9.2: bump version, release notes, and dependency updates Prepare 0.9.2: Wave 4 speed-ups, uv tool setup, version bump, and dependency updates Nov 24, 2026
…d notice

- Add an in-page Extraction mode radio toggle (Fast vs. Full) in bibr demo:
  - Interactive when an LLM is configured (unless started with --fast),
    atomically replacing the pipeline via _switch_demo_mode and closing the
    old one while keeping status, settings, and first-run notice in sync.
  - Non-interactive with a clear hint when no LLM is configured or when
    locked with --fast (and dynamically updates when switching --presets).
- Add an upfront first-paper notice banner on the demo page (and in the
  startup terminal banner when models are uncached) backed by
  dry_run.pending_downloads(), warning that the first paper takes longer due
  to model downloads and loading, and hiding automatically once warm.
- Update _GradioProgress to distinguish cold download+load from warm-cache
  load on the first paper.
- Document in docs/guides/demo.md and CHANGELOG.md [0.9.2] with unit tests.
@thesanogoeffect thesanogoeffect changed the title Prepare 0.9.2: Wave 4 speed-ups, uv tool setup, version bump, and dependency updates Prepare 0.9.2: Wave 4 speed-ups, uv tool setup, demo UX, version bump, and dependency updates Nov 24, 2026
@thesanogoeffect
thesanogoeffect merged commit 4bfeebc into main Nov 27, 2026
42 of 57 checks passed
@thesanogoeffect
thesanogoeffect deleted the claude/project-thread-7ypk3b branch November 27, 2026 19:42
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.

1 participant