release: Themiz — README без ё, блок семьи, проверка графа

This commit is contained in:
public-repo-gate
2026-10-20 16:00:22 +03:00
parent 599f00d41b
commit 86ea1998fe
8 changed files with 378 additions and 347 deletions
+12 -4
View File
@@ -4,7 +4,7 @@ A working system for a Russian court case: source files, a case map, checked cit
[Русский](README.ru.md) · [中文](README.zh.md)
[![License](https://img.shields.io/badge/license-community%201.0-blue.svg)](LICENSE) [![Stars](https://img.shields.io/github/stars/zarubinvibe/themiz?style=flat&color=C9A87A)](https://github.com/zarubinvibe/themiz/stargazers) [![Status](https://img.shields.io/badge/status-in%20development-brightgreen.svg)](https://github.com/zarubinvibe/themiz) [![Olympuz](https://img.shields.io/badge/olympuz-family-B8D6EA.svg)](https://github.com/zarubinvibe/athena#olympuz-family)
[![License](https://img.shields.io/badge/license-community%201.0-blue.svg)](LICENSE) [![Stars](https://img.shields.io/gitea/stars/zarubinvibe/themiz?gitea_url=https%3A%2F%2Fgit.zarubinvibe.com&style=flat&color=C9A87A)](https://git.zarubinvibe.com/zarubinvibe/themiz/stars) [![Status](https://img.shields.io/badge/status-in%20development-brightgreen.svg)](https://git.zarubinvibe.com/zarubinvibe/themiz) [![Olympuz](https://img.shields.io/badge/olympuz-family-B8D6EA.svg)](https://git.zarubinvibe.com/zarubinvibe/athena#olympuz-family)
<p align="center"><img src="docs/assets/pantheon/hero.png" alt="Pantheon illustration of Themiz in white marble beside a classical column, with case papers and review cards" width="100%"></p>
@@ -302,22 +302,30 @@ Read [how the workflow works](docs/HOW-IT-WORKS.ru.md) and the [agent reference]
## Star and contribute
Useful? Give Themiz a star: [https://github.com/zarubinvibe/themiz](https://github.com/zarubinvibe/themiz). It takes a second and it decides whether other people ever find the project.
Useful? Give Themiz a star: [https://git.zarubinvibe.com/zarubinvibe/themiz](https://git.zarubinvibe.com/zarubinvibe/themiz). It takes a second and it decides whether other people ever find the project.
Want to change something? The path is short: fork the repository, create a branch, commit your change, push the branch, then open a Pull Request. Do not push directly to `main`.
Found a problem instead? Open an issue at [https://github.com/zarubinvibe/themiz/issues](https://github.com/zarubinvibe/themiz/issues) and say what you ran and what happened.
Found a problem instead? Open an issue at [https://git.zarubinvibe.com/zarubinvibe/themiz/issues](https://git.zarubinvibe.com/zarubinvibe/themiz/issues) and say what you ran and what happened.
<!-- beginner-readme:end -->
<!-- pantheon-family:start -->
## Olympuz family
Public [Olympuz family projects](https://github.com/zarubinvibe/athena#olympuz-family) are listed below. Each row opens the repository or downloads its source as a ZIP.
Public [Olympuz family projects](https://git.zarubinvibe.com/zarubinvibe/athena#olympuz-family) are listed below. Each row opens the repository or downloads its source as a ZIP.
| Type | Name | What it does | How it helps this house | Source |
|---|---|---|---|---|
| project | Athena | Portable agent OS that restores a complete Claude and Codex setup on a new Mac. | Deploys the agent workspace on a new machine in one run: rules, skills, hooks. | [Repository](https://git.zarubinvibe.com/zarubinvibe/athena) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/athena/archive/main.zip) |
| project | Helioz | 24/7 agent work conveyor with verified completion markers and goal-based overnight decisions. | Runs agent work around the clock and closes every task with a verifiable marker. | [Repository](https://git.zarubinvibe.com/zarubinvibe/helioz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/helioz/archive/main.zip) |
| project | Mnemazine | Local-first memory system that turns raw inputs into verified reusable knowledge. | Turns raw material — screenshots, PDFs, links — into verified knowledge notes. | [Repository](https://git.zarubinvibe.com/zarubinvibe/mnemazine) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/mnemazine/archive/main.zip) |
| project | Themiz | Multi-agent assistant for Russian litigation with local OCR and review by a five-jurist council. | Runs Russian court cases with multiple agents and local storage of case material. | [Repository](https://git.zarubinvibe.com/zarubinvibe/themiz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/themiz/archive/main.zip) |
| project | Zeuz | Factory that turns an idea into a governed multi-agent workflow with gates, observability, and replay. | Builds a multi-agent workflow with rules, gates, observability and replay. | [Repository](https://git.zarubinvibe.com/zarubinvibe/zeuz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/zeuz/archive/main.zip) |
| project | Lynceuz | Collects public web evidence at zero cost and stops with an honest reason when the safe routes end. | Collects evidence from the open web at zero cost and stops honestly at the boundary. | [Repository](https://git.zarubinvibe.com/zarubinvibe/lynceuz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/lynceuz/archive/main.zip) |
| project | Iriz | macOS menu-bar dictation that decodes speech on your own Mac, fixes wrong keyboard layouts, and turns dictation into a ready task for an agent. | Menu-bar dictation on macOS: speech is decoded on your Mac and the keyboard layout fixes itself. | [Repository](https://git.zarubinvibe.com/zarubinvibe/iriz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/iriz/archive/main.zip) |
| project | Mantoz | Puts an idea in front of five hundred people who do not exist, then shows how each group answered. | Puts an idea in front of hundreds of generated people before real ones see it. | [Repository](https://git.zarubinvibe.com/zarubinvibe/mantoz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/mantoz/archive/main.zip) |
| project | Koiz | A single lesson base for every project. Each failure is taken down to its cause, and the cause stays open until a hook, a gate or a test closes it. | Keeps one lesson base for every project and demands a mechanism, not a promise. | [Repository](https://git.zarubinvibe.com/zarubinvibe/koiz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/koiz/archive/main.zip) |
<!-- pantheon-family:end -->
## License
+14 -6
View File
@@ -4,7 +4,7 @@
[English](README.md) · [中文](README.zh.md)
[![License](https://img.shields.io/badge/license-community%201.0-blue.svg)](LICENSE) [![Stars](https://img.shields.io/github/stars/zarubinvibe/themiz?style=flat&color=C9A87A)](https://github.com/zarubinvibe/themiz/stargazers) [![Status](https://img.shields.io/badge/status-in%20development-brightgreen.svg)](https://github.com/zarubinvibe/themiz) [![Olympuz](https://img.shields.io/badge/olympuz-family-B8D6EA.svg)](https://github.com/zarubinvibe/athena#olympuz-family)
[![License](https://img.shields.io/badge/license-community%201.0-blue.svg)](LICENSE) [![Stars](https://img.shields.io/gitea/stars/zarubinvibe/themiz?gitea_url=https%3A%2F%2Fgit.zarubinvibe.com&style=flat&color=C9A87A)](https://git.zarubinvibe.com/zarubinvibe/themiz/stars) [![Status](https://img.shields.io/badge/status-in%20development-brightgreen.svg)](https://git.zarubinvibe.com/zarubinvibe/themiz) [![Olympuz](https://img.shields.io/badge/olympuz-family-B8D6EA.svg)](https://git.zarubinvibe.com/zarubinvibe/athena#olympuz-family)
<p align="center"><img src="docs/assets/pantheon/hero.png" alt="Иллюстрация Pantheon: Themiz из белого мрамора у классической колонны, рядом материалы дела и карточки рецензии" width="100%"></p>
@@ -28,7 +28,7 @@
- [Как это работает](#как-это-работает)
- [Быстрый старт](#быстрый-старт)
**Ещё:**
**Еще:**
- [Простое сравнение](#простое-сравнение)
- [Простые слова](#простые-слова)
@@ -292,7 +292,7 @@ Themiz развивается и рассчитан на работу под к
- Граф права помечен `needs_review`. Часть источников закрыта политикой сайтов (КоАП, закон о банкротстве, часть Пленумов), ГК отложен. Норму перед ссылкой сверяй цитатором.
- Публичный клон содержит код Евномии, но не ее базу. Базу собирает фоновый загрузчик после установки, полноту и свежесть показывает интерфейс. Поставляемый Graphify-граф описывает код проекта, а не корпус.
**Ещё:**
**Еще:**
- Фоновый загрузчик проверяет разрешенные публичные источники независимо от квоты модели и сохраняет последнюю рабочую копию при сбое. Недельное обслуживание использует фактические события сброса Codex для своего цикла, не вводит лимиты в долларах и не управляет тарифами всех поставщиков.
- Локальные OCR, извлечение, расчеты и фоновые загрузки не требуют отдельного платного вызова API модели. Агентный анализ использует аккаунт или подписку выбранного поставщика.
@@ -302,22 +302,30 @@ Themiz развивается и рассчитан на работу под к
## Звезда и вклад
Пригодилось? Поставь Themiz звезду: [https://github.com/zarubinvibe/themiz](https://github.com/zarubinvibe/themiz). Это секунда, а от нее зависит, найдут ли проект другие люди.
Пригодилось? Поставь Themiz звезду: [https://git.zarubinvibe.com/zarubinvibe/themiz](https://git.zarubinvibe.com/zarubinvibe/themiz). Это секунда, а от нее зависит, найдут ли проект другие люди.
Хочешь что-то поправить? Путь короткий: сделай fork, заведи ветку, оформи commit, отправь push и открой Pull Request. Не отправляй push прямо в `main`.
Нашел ошибку? Заведи issue на [https://github.com/zarubinvibe/themiz/issues](https://github.com/zarubinvibe/themiz/issues) и напиши, что запускал и что получилось.
Нашел ошибку? Заведи issue на [https://git.zarubinvibe.com/zarubinvibe/themiz/issues](https://git.zarubinvibe.com/zarubinvibe/themiz/issues) и напиши, что запускал и что получилось.
<!-- beginner-readme:end -->
<!-- pantheon-family:start -->
## Семья Olympuz
Публичные [проекты семьи Olympuz](https://github.com/zarubinvibe/athena#olympuz-family) собраны ниже. Из таблицы можно открыть репозиторий или сразу скачать исходники в ZIP.
Публичные [проекты семьи Olympuz](https://git.zarubinvibe.com/zarubinvibe/athena#olympuz-family) собраны ниже. Из таблицы можно открыть репозиторий или сразу скачать исходники в ZIP.
| Тип | Название | Что внутри | Чем помогает этому дому | Скачать |
|---|---|---|---|---|
| проект | Athena | Переносимая агентная ОС: разворачивает рабочую среду Claude и Codex на новом Mac. | Разворачивает рабочую среду агента на новой машине: правила, скиллы, хуки — за один прогон. | [Репозиторий](https://git.zarubinvibe.com/zarubinvibe/athena) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/athena/archive/main.zip) |
| проект | Helioz | Конвейер работы агентов 24/7 с проверяемыми отметками готовности и ночными решениями по цели владельца. | Гоняет работу агентов круглосуточно и закрывает каждую задачу проверяемой отметкой. | [Репозиторий](https://git.zarubinvibe.com/zarubinvibe/helioz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/helioz/archive/main.zip) |
| проект | Mnemazine | Локальная система памяти: превращает сырье в проверенные знания для повторного использования. | Превращает сырье — скриншоты, PDF, ссылки — в проверенные заметки базы знаний. | [Репозиторий](https://git.zarubinvibe.com/zarubinvibe/mnemazine) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/mnemazine/archive/main.zip) |
| проект | Themiz | Многоагентный помощник по российским судебным делам с локальным OCR и советом из пяти юристов. | Ведет российские судебные дела многоагентно, с локальным хранением материалов. | [Репозиторий](https://git.zarubinvibe.com/zarubinvibe/themiz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/themiz/archive/main.zip) |
| проект | Zeuz | Фабрика многоагентных workflow: собирает систему с правилами, гейтами, наблюдаемостью и replay. | Собирает многоагентный workflow с правилами, воротами, наблюдаемостью и повтором прогона. | [Репозиторий](https://git.zarubinvibe.com/zarubinvibe/zeuz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/zeuz/archive/main.zip) |
| проект | Lynceuz | Собирает доказательства из открытого веба за ноль рублей и честно останавливается, когда безопасные пути кончились. | Собирает доказательства из открытого веба бесплатно и честно останавливается на границе. | [Репозиторий](https://git.zarubinvibe.com/zarubinvibe/lynceuz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/lynceuz/archive/main.zip) |
| проект | Iriz | Диктовка в строке меню macOS: речь разбирается на твоем Маке, раскладка чинится сама, надиктовка превращается в готовое задание для агента. | Диктовка в строке меню macOS: речь разбирается на твоем Маке, раскладка чинится сама. | [Репозиторий](https://git.zarubinvibe.com/zarubinvibe/iriz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/iriz/archive/main.zip) |
| проект | Mantoz | Ставит идею перед пятьюстами людьми, которых не существует, и показывает, как ответила каждая группа. | Ставит идею перед сотнями сгенерированных людей до того, как ее увидят живые. | [Репозиторий](https://git.zarubinvibe.com/zarubinvibe/mantoz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/mantoz/archive/main.zip) |
| проект | Koiz | Одна база уроков на все проекты. Каждый провал доводится до причины, и причина висит открытой, пока ее не закроет хук, ворота или тест. | Держит одну базу уроков на все проекты и требует механизм, а не обещание. | [Репозиторий](https://git.zarubinvibe.com/zarubinvibe/koiz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/koiz/archive/main.zip) |
<!-- pantheon-family:end -->
## Лицензия
+12 -4
View File
@@ -4,7 +4,7 @@
[English](README.md) · [Русский](README.ru.md)
[![License](https://img.shields.io/badge/license-community%201.0-blue.svg)](LICENSE) [![Stars](https://img.shields.io/github/stars/zarubinvibe/themiz?style=flat&color=C9A87A)](https://github.com/zarubinvibe/themiz/stargazers) [![Status](https://img.shields.io/badge/status-in%20development-brightgreen.svg)](https://github.com/zarubinvibe/themiz) [![Olympuz](https://img.shields.io/badge/olympuz-family-B8D6EA.svg)](https://github.com/zarubinvibe/athena#olympuz-family)
[![License](https://img.shields.io/badge/license-community%201.0-blue.svg)](LICENSE) [![Stars](https://img.shields.io/gitea/stars/zarubinvibe/themiz?gitea_url=https%3A%2F%2Fgit.zarubinvibe.com&style=flat&color=C9A87A)](https://git.zarubinvibe.com/zarubinvibe/themiz/stars) [![Status](https://img.shields.io/badge/status-in%20development-brightgreen.svg)](https://git.zarubinvibe.com/zarubinvibe/themiz) [![Olympuz](https://img.shields.io/badge/olympuz-family-B8D6EA.svg)](https://git.zarubinvibe.com/zarubinvibe/athena#olympuz-family)
<p align="center"><img src="docs/assets/pantheon/hero.png" alt="Pantheon 插画:白色大理石的 Themiz 站在古典石柱旁,身边是案卷和复核卡片" width="100%"></p>
@@ -302,22 +302,30 @@ Themiz 仍在开发,由律师掌握最终控制。Codex CLI 与 Claude Code
## 点亮星标与参与
觉得有用?给 Themiz 点亮星标:[https://github.com/zarubinvibe/themiz](https://github.com/zarubinvibe/themiz)。这只要一秒,却决定别人能不能找到这个项目。
觉得有用?给 Themiz 点亮星标:[https://git.zarubinvibe.com/zarubinvibe/themiz](https://git.zarubinvibe.com/zarubinvibe/themiz)。这只要一秒,却决定别人能不能找到这个项目。
想改点什么?流程很短:先 fork 仓库,建一个分支 branch,提交 commit,推送 push,然后开一个 Pull Request。请不要直接向 `main` 推送变更。
发现问题?到 [https://github.com/zarubinvibe/themiz/issues](https://github.com/zarubinvibe/themiz/issues) 开一个 issue,写清楚你运行了什么、发生了什么。
发现问题?到 [https://git.zarubinvibe.com/zarubinvibe/themiz/issues](https://git.zarubinvibe.com/zarubinvibe/themiz/issues) 开一个 issue,写清楚你运行了什么、发生了什么。
<!-- beginner-readme:end -->
<!-- pantheon-family:start -->
## Olympuz 家族
下面列出 [Olympuz 家族](https://github.com/zarubinvibe/athena#olympuz-family) 的公开项目。表格里的每一行都可以打开仓库,或者直接下载源码压缩包。
下面列出 [Olympuz 家族](https://git.zarubinvibe.com/zarubinvibe/athena#olympuz-family) 的公开项目。表格里的每一行都可以打开仓库,或者直接下载源码压缩包。
| 类型 | 名称 | 做什么 | 如何帮到这个项目 | 获取 |
|---|---|---|---|---|
| 项目 | Athena | 可携带的智能体操作系统:在新的 Mac 上重建 Claude 与 Codex 的工作环境。 | 一次运行就在新机器上铺好智能体的工作环境:规则、技能、钩子。 | [仓库](https://git.zarubinvibe.com/zarubinvibe/athena) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/athena/archive/main.zip) |
| 项目 | Helioz | 全天候的智能体工作传送带,带可验证的完成标记和按目标做出的夜间决策。 | 让智能体的工作全天候运转,每个任务都以可验证的标记收尾。 | [仓库](https://git.zarubinvibe.com/zarubinvibe/helioz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/helioz/archive/main.zip) |
| 项目 | Mnemazine | 本地优先的记忆系统:把原始材料变成可复用的、已核验的知识。 | 把截图、PDF、链接这些素材,变成经过核实的知识笔记。 | [仓库](https://git.zarubinvibe.com/zarubinvibe/mnemazine) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/mnemazine/archive/main.zip) |
| 项目 | Themiz | 面向俄罗斯诉讼的多智能体助手,本地识别扫描件,五位法学家组成合议审阅。 | 以多智能体处理俄罗斯法院案件,材料保存在本地。 | [仓库](https://git.zarubinvibe.com/zarubinvibe/themiz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/themiz/archive/main.zip) |
| 项目 | Zeuz | 工作流工厂:把一个想法变成带规则、闸门、可观测性和回放的多智能体系统。 | 搭建带规则、闸门、可观测性和重放的多智能体工作流。 | [仓库](https://git.zarubinvibe.com/zarubinvibe/zeuz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/zeuz/archive/main.zip) |
| 项目 | Lynceuz | 以零成本收集公开网页证据;安全路径走完时,它会给出诚实的理由并停下。 | 零成本从公开网络收集证据,走到边界就诚实地停下。 | [仓库](https://git.zarubinvibe.com/zarubinvibe/lynceuz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/lynceuz/archive/main.zip) |
| 项目 | Iriz | macOS 菜单栏听写:语音在你自己的 Mac 上解码,键盘布局自动纠正,口述可以直接变成给智能体的任务。 | macOS 菜单栏听写:语音在你自己的 Mac 上解码,键盘布局自动纠正。 | [仓库](https://git.zarubinvibe.com/zarubinvibe/iriz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/iriz/archive/main.zip) |
| 项目 | Mantoz | 把一个想法摆到五百个并不存在的人面前,然后告诉你每个群体是怎么答的。 | 在真人看到之前,先把想法摆在几百个生成出来的人面前。 | [仓库](https://git.zarubinvibe.com/zarubinvibe/mantoz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/mantoz/archive/main.zip) |
| 项目 | Koiz | 所有项目共用一份教训库。每次失败都追到原因,原因不被钩子、闸门或测试关掉,就一直挂在那里。 | 为所有项目保存同一份教训库,并且要求机制,而不是承诺。 | [仓库](https://git.zarubinvibe.com/zarubinvibe/koiz) · [ZIP](https://git.zarubinvibe.com/zarubinvibe/koiz/archive/main.zip) |
<!-- pantheon-family:end -->
## 许可证
+2 -2
View File
@@ -1,7 +1,7 @@
# Graph Report - themiz
## Corpus Check
- 357 files · ~3,578,816 words
- 357 files · ~3,579,650 words
- Verdict: corpus is large enough that graph structure adds value.
- Unclassified: 35 file(s) not represented in the graph (top: .css 13, (none) 10, .ttf 6)
@@ -12,7 +12,7 @@
## Graph Freshness
- Built from commit: `357fb4de`
- Built from commit: `a8a15b02`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).
## Community Hubs (Navigation)
+325 -325
View File
File diff suppressed because it is too large Load Diff
+6 -5
View File
@@ -882,17 +882,18 @@ class DocBuilder:
tblpPr.set(qn("w:tblpY"), "-325")
tblPr.insert(0, tblpPr)
# Правая колонка — влево: по ширине длинный суд и «Дело № …» растягивались разрывами (владелец 20.10.2026)
# Строка 0: суд
row0 = table.rows[0]
row0.cells[0].text = ""
c = row0.cells[1]
c.paragraphs[0].clear()
p = c.paragraphs[0]
p.alignment = WD_ALIGN_PARAGRAPH.JUSTIFY
p.alignment = WD_ALIGN_PARAGRAPH.LEFT
_set_font(p.add_run(court_name), 12, bold=True, family=FONT_TITLE)
if court_route:
p2 = c.add_paragraph()
p2.alignment = WD_ALIGN_PARAGRAPH.JUSTIFY
p2.alignment = WD_ALIGN_PARAGRAPH.LEFT
_set_font(p2.add_run(court_route), 12)
# Строки сторон
@@ -914,7 +915,7 @@ class DocBuilder:
first = False
else:
p = rc.add_paragraph()
p.alignment = WD_ALIGN_PARAGRAPH.JUSTIFY
p.alignment = WD_ALIGN_PARAGRAPH.LEFT
_set_font(p.add_run(text), 12, bold=bold)
# Последняя строка: дело
@@ -923,11 +924,11 @@ class DocBuilder:
c = last_row.cells[1]
c.paragraphs[0].clear()
p = c.paragraphs[0]
p.alignment = WD_ALIGN_PARAGRAPH.JUSTIFY
p.alignment = WD_ALIGN_PARAGRAPH.LEFT
_set_font(p.add_run(case_number), 12)
if instance:
p2 = c.add_paragraph()
p2.alignment = WD_ALIGN_PARAGRAPH.JUSTIFY
p2.alignment = WD_ALIGN_PARAGRAPH.LEFT
_set_font(p2.add_run(instance), 12)
self._service_elements.add(table._tbl)
+4
View File
@@ -903,6 +903,10 @@ def doc_klass(text: str, dogovor: bool = False) -> str:
if dogovor:
return "prochee"
units = [u.strip() for u in text.splitlines() if u.strip()]
# обращение к судебному приставу (адресат первой строкой) — не процессуальный документ:
# «В … суд» у него нет и быть не должно (владелец 20.10.2026)
if units and re.match(r"(?i)^(?:начальнику|старшему судебному приставу|судебному приставу)\b", units[0]):
return "prochee"
for unit in units[:20]:
if _SHAPKA_TITLE_RE.match(unit):
title = unit.lstrip("#* ").lower()
+3 -1
View File
@@ -58,6 +58,8 @@ def _clean(text):
_SUD = re.compile(r"(?i)^(?:в|мировому)\s+[^.]{0,160}?\b(?:суд|судье|судью)\b")
# Адресат-пристав (обращение в ОСП, 20.10.2026): шапка той же таблицей, что у суда
_PRISTAV = re.compile(r"(?i)^(?:начальнику|старшему судебному приставу|судебному приставу)\b")
_DELO = re.compile(r"^Дело\s*№")
_NE_LICO = ("цена иска:", "госпошлина:", "государственная пошлина:")
# заголовок процессуального документа — тот же, что у document_guard._SHAPKA_TITLE_RE: с «#» или простой строкой
@@ -83,7 +85,7 @@ def _shapka_tablica(blocks):
first, *rest = block
if delo is not None:
return None # «Дело №» не последний: порядок ячеек разошелся бы с .md
if court is None and not parties and _SUD.match(first) and len(rest) <= 1: # адрес — одна строка, одна ячейка
if court is None and not parties and (_SUD.match(first) or _PRISTAV.match(first)) and len(rest) <= 1: # адрес — одна строка, одна ячейка
court, route = _verh(first), "\n".join(rest) or None
elif _DELO.match(first) and not rest:
delo = first