feat(artifacts): add strict BM25 publication - #602
Draft
fishmingyu wants to merge 3 commits into
Draft
Conversation
fishmingyu
force-pushed
the
fix/publication-callback-postvalidation-v2
branch
from
August 12, 2026 00:38
efc6137 to
1f987a5
Compare
Plan and replay exact BM25 generations through retained source and strict workspace authority. Validate staged and published candidates against bounded canonical bytes, reject repository overlap, and preserve existing portable-view compatibility. Verified with 628 focused tests (15 skipped) plus Black, isort, flake8, py_compile, and git diff --check.
Document the short-lived replay plan, the retained-source and two-phase validation boundary, and the remaining provider, context, and M2 profile work.
Assert both low-level replay and high-level normalization invoke provider support exactly once after caller inputs are frozen.
fishmingyu
force-pushed
the
feat/strict-bm25-publication-v2
branch
from
August 12, 2026 00:42
0338ee1 to
e8e9ded
Compare
14 tasks
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
Adds an isolated strict BM25 publication producer on top of #592. It plans exact canonical bytes from one retained source generation and replays them through strict workspace authority without changing the legacy
SourceTrustor native-vector paths.Changes
PlannedBm25Viewplus strict plan, replay, and high-level normalization APIs.Type of Change
Testing
pytest -q test/artifacts/test_portable_views.py test/artifacts/test_strict_bm25_publication.py test/artifacts/test_context_artifact.py test/artifacts/test_runtime.py test/test_workspace_provider.py test/test_captured_directory.py test/test_atomic_directory.py test/test_bounded_json.py test/test_native_index_authorization.py test/test_source_fingerprint.py --tb=short— 628 passed, 15 skippedgit diff --checkChecklist
Stack dependency: #592 is the explicit base. Keep this PR draft until that dependency is merged or the stack is restacked.