Skip to content

Round 17: harden legal retrieval and document admission for 0.9.2 - #143

Merged
Yasou13 merged 7 commits into
mainfrom
mvp/round-17
Nov 6, 2026
Merged

Yasou13 merged 7 commits into
mainfrom
mvp/round-17

Conversation

@Yasou13

@Yasou13 Yasou13 commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

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:

  • Full R17-release-ci local gate passed: 2,037 tests and 10 separate MCP tests; lock, dependency sync, lint, typing, and layer checks passed.
  • 61 focused tests passed with coverage; timeout positive controls passed.
  • MESA CI passed: https://github.com/Yasou13/MESA/actions/runs/42263092102
  • External release gates passed: https://github.com/Yasou13/MESA/actions/runs/42263092189
  • Same-store ordered retrieval comparisons passed for 191 queries in the round evidence; models-on A100 measurements are recorded in phase reports.
  • Wheel and sdist builds passed Twine strict metadata/rendering checks and package-content/private-file exclusion checks.

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.

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.
Copilot AI balanced review requested due to automatic review settings November 6, 2026 16:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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.
@Yasou13
Yasou13 merged commit 8cd2cfe into main Nov 6, 2026
24 checks passed
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.

2 participants