Skip to content

chore(release): v4.11.1 - #255

Merged
lyonzin merged 1 commit into
masterfrom
release/v4.11.1
Oct 25, 2026
Merged

lyonzin merged 1 commit into
masterfrom
release/v4.11.1

Conversation

@lyonzin

@lyonzin lyonzin commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

Patch release v4.11.1. The headline fix is P0: on v4.10.0 and v4.11.0, every fresh install and every new data directory, new Docker volumes included, fails at startup with Embedding function conflict … persisted: default (#248, #252). Installs that already hit the error start normally after upgrading.

Version bumps, CHANGELOG promotion and an API-baseline refresh only. No code change versus master.

PR Change
#253 Preflight probe no longer creates the collection with Chroma's default EF; the empty leftover is recreated on upgrade, a collection with data is never dropped (#248, #252)
#254 Windows-safe atomic replaces (retry on WinError 5/32); reindex_documents answers already_running while the index lock is held (#249)
#236 null accepted for optional string tool arguments
#242 Docker image built for linux/amd64 + linux/arm64

Type of change

  • chore — tooling, deps, CI

What changed

  • pyproject.toml — version = "4.11.1"
  • mcp_server/__init__.py — __version__ = "4.11.1"
  • npm/package.json — "version": "4.11.1"; the npm wrapper installs knowledge-rag==4.11.1 from PyPI
  • CHANGELOG.md — ### Unreleased promoted to ### v4.11.1 (2026-10-25) with highlights and credits; the ci(release): publish multi-arch Docker image (amd64 + arm64) #242 Docker change gets an Added entry
  • .github/api-surface-baseline.json — regenerated with check_api_surface.py --snapshot. Purely additive: 8 modules added since the 2026-08-10 snapshot (file_transaction, filesystem, health, logging_config, pdf_support, publication, search_candidates, search_scope), plus Fts5LexicalIndex.clear/count/stop_migration, DocumentParser.iter_files and QueryCache.generation. Nothing removed, so they become protected against silent removal.

Verification

  • python scripts/check_version_sync.py → OK, 4.11.1 across 3 files
  • python scripts/check_api_surface.py --check → OK
  • pytest tests/ → 1275 passed, 1 skipped (Windows 11, Python 3.12, chromadb 1.5.9)
  • Built the wheel (uv build) and checked it: Version: 4.11.1, read-only probe, empty-leftover recreation and replace_with_retry all present.
  • Real startup smoke test, installed like a user (pip install → knowledge-rag init → knowledge-rag) on a fresh KNOWLEDGE_RAG_DIR, stdio with stdin at EOF:
Build Fresh data dir Data dir already broken by 4.11.0
4.11.0 (PyPI) exit 1, RuntimeError: … Embedding function conflict … persisted: default —
4.11.1 (this wheel) exit 0, initial indexing starts exit 0, one [RECOVERY] Recreating empty collection … line, collection now {'type': 'legacy'}; a second start is clean with no recovery

Bypass labels

Attention points for publishing

  • First release with the multi-arch Docker build (ci(release): publish multi-arch Docker image (amd64 + arm64) #242). The arm64 leg runs under QEMU, and every dependency has aarch64 wheels, so nothing should compile, but it is slower. Both platforms share one build-push-action step: if arm64 fails, no 4.11.1 image is pushed, and latest stays on 4.11.0. The PyPI and npm jobs are independent and unaffected.
  • npm: latest is 4.11.0 and was published by release.yml. 4.9.1, 4.9.2 and 4.10.0 are still absent on npm (pre-existing gap, not touched here).

Post-merge (Lyon)

gh release create v4.11.1 --target master --title "v4.11.1 — Fresh-install startup fix and Windows-safe state writes" --generate-notes

release.yml then publishes PyPI (Trusted Publishing), npm and GHCR (4.11.1, 4.11, latest). Then verify that all three channels serve 4.11.1, and that the GHCR manifest lists linux/amd64 and linux/arm64.

RetriggerView in GreptileConfidence Score: 5/5

This release-only PR appears safe to merge.

Summary

Prepares v4.11.1 without changing runtime behavior.

  • The project versions and release notes now identify v4.11.1.
  • The API snapshot now covers more of the public Python code.

No actionable issues found.

Reviews (1) · Last reviewed commit: "chore(release): v4.11.1" · Reviewed by Greptile

Summary by CodeRabbit

  • Bug Fixes
    • Optional category and title arguments for search, document listing, and URL-based additions now accept explicit null.
  • Release
    • Version 4.11.1 is available as a patch release, with no breaking changes or migration steps.
    • Docker images are published for both linux/amd64 and linux/arm64 architectures.

Patch release. Fixes the startup crash on every fresh install and every
new data directory since v4.10.0 (#248, #252), makes state-file writes
robust on Windows and stops reindex_documents from reporting a refused
run as started (#249). Also ships #236 and the multi-arch Docker image
from #242.

- pyproject.toml: 4.11.0 -> 4.11.1
- mcp_server/__init__.py: __version__ -> 4.11.1
- npm/package.json: 4.11.0 -> 4.11.1
- CHANGELOG.md: Unreleased promoted to v4.11.1 with highlights and credits
- .github/api-surface-baseline.json: regenerated with --snapshot. Additive
  only: 8 modules and 5 methods added since the 2026-08-10 snapshot, none
  removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lyonzin lyonzin added skip-perf-gate Bypass performance regression gate (use only for release PRs or measurement-noise regressions) skip-changelog Bypass CHANGELOG entry requirement for PRs that genuinely do not need one labels Oct 25, 2026
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5862ff97-e097-4105-a0e6-34065c0f57f2
Commits

Reviewing files that changed from the base of the PR and between 7a82366 and d67f2cd.

Files selected for processing: 5
  • .github/api-surface-baseline.json
  • CHANGELOG.md
  • mcp_server/__init__.py
  • npm/package.json
  • pyproject.toml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

Walkthrough

This change updates the API-surface baseline with module records and API signatures, adds the v4.11.1 changelog entry, and changes the Python and npm package versions to 4.11.1.

Changes: v4.11.1 Release Records

Layer / File(s) Summary
Supporting module and parser API records
.github/api-surface-baseline.json
The baseline adds API records for file transactions, filesystem, health, logging, PDF support, and publication. It also records DocumentParser.iter_files and the logical_filename parameter for parse_file.
Index and search API records
.github/api-surface-baseline.json
The baseline records FTS5 index methods and parameters, BM25Index.search’s allowed_ids parameter, select_rerank_candidates, and the FolderScope methods.
Orchestration and cache API records
.github/api-surface-baseline.json
The baseline records folder parameters for query and search, the reindex_all force parameter, and query-cache generation and folder-scope APIs.
Release notes and version declarations
CHANGELOG.md, mcp_server/__init__.py, npm/package.json, pyproject.toml
The changelog adds the v4.11.1 release entry. The Python and npm package versions change from 4.11.0 to 4.11.1.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

  • lyonzin/knowledge-rag#254: This change’s API-surface baseline records mcp_server.file_transaction.replace_with_retry, which PR #254 introduced.

Suggested reviewers: vishalhabib99

Merge Risk: Minimal · up to d67f2

The release heading follows the project’s changelog format. No actionable issue remains from this review.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title identifies this as a release chore for version 4.11.1. It matches the primary objective of preparing the v4.11.1 patch release.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (4 skipped: 4 unsupported.)

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lyonzin
lyonzin merged commit ed561c2 into master Oct 25, 2026
39 of 61 checks passed
@lyonzin
lyonzin deleted the release/v4.11.1 branch October 25, 2026 16:50
lyonzin added a commit that referenced this pull request Oct 25, 2026
Patch release. Fixes the startup crash on every fresh install and every
new data directory since v4.10.0 (#248, #252), makes state-file writes
robust on Windows and stops reindex_documents from reporting a refused
run as started (#249). Also ships #236 and the multi-arch Docker image
from #242.

- pyproject.toml: 4.11.0 -> 4.11.1
- mcp_server/__init__.py: __version__ -> 4.11.1
- npm/package.json: 4.11.0 -> 4.11.1
- CHANGELOG.md: Unreleased promoted to v4.11.1 with highlights and credits
- .github/api-surface-baseline.json: regenerated with --snapshot. Additive
  only: 8 modules and 5 methods added since the 2026-08-10 snapshot, none
  removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Bypass CHANGELOG entry requirement for PRs that genuinely do not need one skip-perf-gate Bypass performance regression gate (use only for release PRs or measurement-noise regressions)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant