release: Евномия, новая версия, линейка юристов
This commit is contained in:
@@ -42,7 +42,17 @@ A working system for a Russian court case: source files, a case map, checked cit
|
||||
|
||||
Themiz is a workspace for lawyers handling disputes under Russian law. It keeps each matter in its own folder, reads local files, assembles the facts, searches approved sources, and carries a draft through review. You can run the same project with Codex CLI or Claude Code.
|
||||
|
||||
The public repository contains the engine, agents, tests, and safe templates. It does not contain a ready-made legal corpus or anyone's case files. You choose the sources, permissions, and model provider before using it with client material.
|
||||
The public repository holds the engine, agents, tests, safe templates and the Eunomia code. It ships no legal database and no one else's cases. Before you touch client material, you choose the sources, permissions and model provider.
|
||||
|
||||
### Eunomia: the legal library on your computer
|
||||
|
||||
<p align="center"><img src="docs/assets/pantheon/eunomia-library.png" alt="Pantheon marble scene: Eunomia, eyes open, sets a codex on a shelf of identical codices while blindfolded Themis reads at the table and a blue thread from outside stops at the window sill" width="100%"></p>
|
||||
|
||||
Eunomia is the local legal library of Themiz. It holds the Russian codes, Supreme Court plenary rulings and reviews, dated editions of acts, and case law. On the author's working machine on 19.10.2026: 18 codes, 435 plenary rulings, 13 reviews, 868 edition files and 235,620 court decisions.
|
||||
|
||||
The texts come from public sources: consultant.ru, sudact.ru and vsrf.ru. A background loader checks them every five minutes at low priority and without a model. A new edition is stored next to the old one, never on top of it. Case law refreshes hourly, the legal graph after each batch.
|
||||
|
||||
Open the library with `python3 scripts/eunomia.py`, then go to http://127.0.0.1:18765/.
|
||||
|
||||
## Why it helps
|
||||
|
||||
@@ -50,15 +60,54 @@ Case work gets buried under small, expensive chores: reading another scan, recon
|
||||
|
||||
It is built for Russian litigation. Its document contracts, statutory calculations, court terminology, and source routes follow Russian procedure; they are not a general legal system for every jurisdiction.
|
||||
|
||||
### Why the library stays local
|
||||
|
||||
<p align="center"><img src="docs/assets/pantheon/eunomia-editions.png" alt="Pantheon marble scene: three editions of one codex sealed in gold on an archive table, a cabinet of drawers behind, a blue thread from outside stopping at the table edge" width="100%"></p>
|
||||
|
||||
- **Quotes stay exact.** A model reading an article from the web can paraphrase it wrongly; that happened with Article 683 of the Civil Code on a live case. The citation tool reads the file and checks its hash. It also saves 100–300 thousand tokens per run that reading articles online would burn.
|
||||
- **No article means "not found".** The citation tool never goes online and never swaps in a similar rule.
|
||||
- **Works offline.** If a source is down, the last good copy stays in place. A partial download never replaces it.
|
||||
- **The case stays home.** Requests to sources carry no keys, client material or case text.
|
||||
- **Edition on a date.** `cite.py --on DD.MM.YYYY` returns the rule as it read on that day.
|
||||
|
||||
The repository holds only the Eunomia code. The loader builds the acts and case law on the lawyer's machine after install.
|
||||
|
||||
## The main advantage
|
||||
|
||||
**Main advantage:** a claim can keep its trail back to the file, source, and review status.
|
||||
|
||||
**Why this is better:** Code handles supported calculations such as statutory interest, procedural dates, court fees, and amounts in words. The citation tool reads from the corpus available on your disk, checks its checksum, and warns when freshness is missing or needs review. A model does not get to turn a paraphrase into a verified article.
|
||||
|
||||
### How this version beats the 27.09.2026 one
|
||||
|
||||
<p align="center"><img src="docs/assets/pantheon/new-version.png" alt="Pantheon marble diptych: on the left a winding corridor with a queue of figures and stacked papers, on the right Themis carries the case folder through one straight gate" width="100%"></p>
|
||||
|
||||
587 commits since 27.09.2026. The main ones:
|
||||
|
||||
#### How a run goes
|
||||
|
||||
- **One entry point.** Before: a JavaScript conductor and a 4,711-line guard. Now: `themiz-next/run.py` and eight phases in separate modules.
|
||||
- **Speed.** Before: FAST took 212.6 minutes, FULL 150–220. Now: in the 07.10.2026 pilot FAST took 11.7 minutes, FULL 19.3.
|
||||
- **Code writes the files.** Before: agents wrote case files themselves. Now: agents read and answer in JSON, and code writes the files.
|
||||
- **Run board.** Progress goes to an event log and a page that refreshes every three seconds.
|
||||
|
||||
#### How a document is checked
|
||||
|
||||
- **Review in parts.** Before: one reviewer read the whole document. Now: Koni hands parts to blind readers, signs the verdict and rechecks only the changes.
|
||||
- **Code catches distortions.** Before review, code compares a paraphrase with the corpus text, a claim with its legal basis, and a near-verbatim quote with the original.
|
||||
- **Library and tools.** Rules come in the edition valid on a date, the Tax Code is complete, the form registry holds 388 entries, court details come from sudrf.ru.
|
||||
|
||||
## How it works
|
||||
|
||||
The seven stages below are a working order, not seven mandatory swarms. A narrow matter with no more than six text or already recognised files can use the FAST route. A complex matter, disputed reading, or a large scan bundle uses FULL readers and reconciliation. The Pantheon scenes illustrate that order; they are not screenshots of the interface.
|
||||
The seven scenes below show the working order. The run itself goes through `themiz-next/run.py` in eight phases: intake, case map, research, position, draft, Koni review, assembly, attachments. That is not eight mandatory swarms. A narrow question with up to six text or already recognised files fits FAST. A hard dispute, an ambiguous reading or a big stack of scans needs FULL with separate readers and reconciliation. The Pantheon scenes are illustrations, not interface screenshots.
|
||||
|
||||
### The lawyer lineup in Claude Code
|
||||
|
||||
<p align="center"><img src="docs/assets/pantheon/lineup.png" alt="Pantheon marble scene: a frieze of seven jurist medallions above a writing slab, check marks on the finished ones, a gold ring on the middle one, blindfolded Themis seated at the desk" width="100%"></p>
|
||||
|
||||
While a run is going, a strip with lawyer portraits sits above the Claude Code input, one per stage. The one working now has a pulsing ring; finished stages show ✓ or ✕. Next to them: the stage name, the role and the time. The strip refreshes every three seconds and keeps a finished run for 20 minutes.
|
||||
|
||||
The mod lives in `plugins/femida-lineup/`. Claude Code finds it through `.claude-plugin/marketplace.json`, and the project's `.claude/settings.json` already turns it on.
|
||||
|
||||
<!-- workflow-diagram:start -->
|
||||
|
||||
@@ -240,11 +289,12 @@ Themiz is in development and is designed for work under a lawyer's control. Code
|
||||
- Apple Vision recognition for scans and images works on macOS only. Text formats use Python tools, but the complete Windows and Linux setup has not been verified.
|
||||
- DOCX, text PDF, PPTX, and XLSX conversion passed isolated cold-install checks. Legacy XLS has a configured reader but did not receive the same synthetic conversion check.
|
||||
- Legal research and corpus refresh depend on external sources. An unavailable source remains unavailable; it is not replaced with a model guess.
|
||||
- The public clone starts with the engine and templates, not a populated legal corpus. After local data is present, Themiz can build a separate legal graph with source and freshness markers. The bundled Graphify files describe the codebase, not your legal corpus.
|
||||
- The background loader checks approved public sources independently of model subscription quotas. It keeps the last known good local copy when a refresh fails. Weekly maintenance uses factual Codex reset events for its own cycle and does not impose USD caps or manage every provider's plan.
|
||||
- The legal graph is marked `needs_review`. Some sources are blocked by site policy (the Administrative Offences Code, the bankruptcy law, part of the plenary rulings), and the Civil Code is deferred. Check a rule with the citation tool before you rely on it.
|
||||
- The public clone holds the Eunomia code, not its database. The background loader builds the database after install, and the interface shows how complete and fresh it is. The bundled Graphify graph describes the project code, not your corpus.
|
||||
|
||||
**Also:**
|
||||
|
||||
- The background loader checks approved public sources independently of model subscription quotas. It keeps the last known good local copy when a refresh fails. Weekly maintenance uses factual Codex reset events for its own cycle and does not impose USD caps or manage every provider's plan.
|
||||
- Local OCR, extraction, calculations, and background downloads do not require a paid model API call. Agent analysis still uses the account or subscription of the model provider you choose.
|
||||
- A separate reviewer and a green workflow status do not make a document court-ready. You verify the facts and law, decide whether to file, sign the document, and remain responsible for the case.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user