Skip to content

Mvp/round 16 - #142

Merged
Yasou13 merged 19 commits into
mainfrom
mvp/round-16
Nov 5, 2026
Merged

Yasou13 merged 19 commits into
mainfrom
mvp/round-16

Conversation

@Yasou13

@Yasou13 Yasou13 commented Nov 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

…egal_rules

Rewrite citation regexes with linear-time bounded patterns to prevent catastrophic backtracking on multi-article enumerations. Remove gold-set phrases and per-text exceptions. Add substring guards and fast paths. Bump RULES_VERSION to tr-legal-rules-2. Add performance regression tests.
Copilot AI balanced review requested due to automatic review settings November 5, 2026 18:53

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.

The Python 3.11 and 3.13 coverage jobs pass the 82% coverage floor but fail
strict 200 ms extraction/citation assertions while tracing those calls.
Pause coverage only for the wall-clock tests using pytest-cov's no_cover
marker. All tests still execute in the same mandatory CI jobs with their
original inputs, assertions and 200 ms limits; functional and structural
tests remain instrumented. Production code and coverage thresholds are unchanged.
Strict citation latency checks still failed after pausing coverage, with CI
timeouts inside the allocation of one empty list per input character.
Allocate offset buckets lazily while retaining the same linear sweep and
match order. A sparse 32 KB input now peaks near 298 KB instead of 2.15 MB
and triggers no collections in the controlled allocation probe (previously six).

Add an isolated allocation regression that fails on the eager implementation.
All complete ordered citation fields match on 30,000 seeded inputs with both
default and scoped resolvers. Keep the original 200 ms latency limits.
@Yasou13
Yasou13 merged commit 333ae60 into main Nov 5, 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