# My PR got merged into Mike — OSS Legal AI Platform 🎉

> Source: <https://dev.to/diya730/my-pr-got-merged-into-mike-oss-legal-ai-platform-273i>
> Published: 2026-09-22 19:34:51+00:00

PR #466 — `fix(citations): enforce document order for [[PAGE_BREAK]] segments`

**Repo:** open-legal-products/mike — 4.3k ⭐, open-source legal AI 

platform for document review, drafting, and legal research.

Built with Next.js, Express, Supabase, and Cloudflare R2.

**The bug I fixed:**

Citations were verified segment by segment with no position check.

So `B[[PAGE_BREAK]]A` earned `verified: true` even when A preceded 

B in the document — wrong order, wrong result.

I enforced document order across `[[PAGE_BREAK]]` segments in 

`verifyQuoteAgainstSource`.

Wrong citation order = wrong legal research. That matters.

→ [PR #466](https://github.com/open-legal-products/mike/pull/466)
