Repository navigation
Round 17: harden legal retrieval and document admission for 0.9.2 - #143
Merged
Merged
Conversation
Give threaded I/O a positive scheduling window between scoring slices. Keep public health to backend and rebuild probes while preserving full integrity and ownership diagnostics by default. Ranking expressions and results are unchanged.
Replace store-derived regex with a normalized first-word index and fixed suffix grammar. Keep exact matches, bound graph scheduling, and preserve source-linked rule outcomes. Validate cold 3000-name health and paired search results.
Retain the current plan during brief queue pressure and give document requests their remaining SDK deadline. Preserve persistent 503, resume, authorization and revision conflict behavior.
…n issues Update package, client, MCP, compose, OpenAPI and documentation version strings to 0.9.2, regenerate uv.lock, and document Round 16-17 behavioral changes, request-path stall security fixes, and known issues in CHANGELOG.
Align item types with mesa_storage/legal_rules.py and docs/configuration.md: citation, decision_ref, date, amount, duration, outcome.
Collect cyclic garbage before each parser timing window so earlier integration-test weakref cleanup cannot consume the parser budget. Keep automatic collection enabled, the 200 ms assertions and the timeout alarms unchanged.
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.
CPU-bound legal retrieval and large-document retries could stall health requests. This change bounds caller-text processing, yields during scoring and graph traversal, indexes stored law names, and waits for queue capacity without repeating document chunk planning. Disabling legal rules now suppresses search-time legal processing and result overlays while preserving stored data. Existing V4 HTTP contracts remain compatible.
Updates package and documentation versions to 0.9.2 and records behavior, security fixes, and known limitations in CHANGELOG.md.
Parser timing tests collect prior-test cyclic garbage before starting each measurement. Earlier CI failures fired timeout alarms during unrelated weakref cleanup. Automatic collection remains enabled during measured calls; the 200 ms assertions and timeout alarms are unchanged. Deliberately slow positive controls are still rejected.
Validation on final head ff356a1:
Known limitations include approximately 11.6 seconds for the measured heavy search and approximately seven minutes for full readiness of a 5 MB document with graph enabled. This package release retains the documented production qualification NO-GO.