LexHarmoni
LexHarmoni is a stress-test harness for legal drafting — the same discipline software engineers apply when they test code in staging before shipping to production, applied to Indonesian financial services regulations (PO
Core trick
Loads seven regulation texts into one long-context prompt with cached reuse to flag conflicts and terminology drift by article.
Tags
Description
LexHarmoni is a stress-test harness for legal drafting — the same discipline software engineers apply when they test code in staging before shipping to production, applied to Indonesian financial services regulations (POJK and SEOJK, the rule-making instruments of OJK, Indonesia's financial regulator). It detects friction across overlapping regulatory documents — normative conflicts, hierarchical orphans, and terminology drift — that emerge not from negligence, but from sheer accumulation across years of layered rule-making.
Built by a former regulator, the tool uses Claude Opus 4.7 with full-context reasoning over a corpus of seven regulations, active and historical. A 1-hour prompt cache keeps inference cost at roughly $1.70 per warm run, making pre-enactment stress-testing operationally viable — a regulatory body can run dozens of draft revisions per month for the cost of a single staff hour. A dual-stream UI surfaces both findings and the model's reasoning trail, so every claim is auditable against article-level citations.
Validated against a manual baseline, three consecutive runs surfaced the same ground-truth frictions — including a 19-month collection-hours mismatch between two active rules — with zero hallucinated citations. The repository ships under Apache 2.0 with full documentation, including a replication guide for non-engineers.
README excerpt
# LexHarmoni **AI-Powered Regulatory Stress-Testing** *"Test the impact, before it's enacted."* [](LICENSE) [](https://github.com/ziffan/lexharmoni/actions/workflows/ci.yml) [](https://www.anthropic.com/claude) [](https://cerebralvalley.ai/e/built-with-4-7-hackathon)    --- > ## ⚠️ Repositori Diarsipkan / Repository Archived > > ### 🇮🇩 Indonesia > > Repositori ini diarsipkan pada **30 April 2026** sebagai snapshot proyek > hackathon. LexHarmoni v0.1.0 dikembangkan untuk **Cerebral Valley × Anthropic > "Built with Opus 4.7" Hackathon (April 2026)**. > > **Dua tag tersedia untuk reprodusibilitas:** > - [`v0.1.0`](https://github.com/ziffan/lexharmoni/releases/tag/v0.1.0) — state asli submisi hackathon > - [`v0.1.0-final`](https://github.com/ziffan/lexharmoni/releases/tag/v0.1.0-final) — state arsip dengan > improvement post-submisi (CI, security patches, dokumentasi) > > **Status CI terakhir:** ✅ Green pada **2026-04-29** (lihat > [Actions tab](https://git