From 093e0f6f732cf778e8a53e1113ce4134928f006b Mon Sep 17 00:00:00 2001 From: Nyan404 Date: Tue, 25 Aug 2026 04:01:45 +0300 Subject: [PATCH] docs: refresh Belki project map --- MEMORY.md | 3 +++ project_mind_map.md | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/MEMORY.md b/MEMORY.md index 8c67d31..6ffa717 100644 --- a/MEMORY.md +++ b/MEMORY.md @@ -43,6 +43,9 @@ - 2026-08-25: password-only admin login has an in-process five-attempt/15-minute per-source limit; it complements but does not replace an edge rate limit. - 2026-08-25: free-text parsing normalizes common punctuation, spaced IDs, ID markers and close role-label typos. Do not add generic Russian NER solely for CatWar nicknames: ID and role context are the more reliable authority. - 2026-08-25: public reports cap coaching at 50 kittens and inspections at 100 resource rows, 100000 inspections and 100000 units per resource; enforce the limits in the shared domain rather than only in one transport. +- 2026-08-25: free-form input also accepts Russian written dates and month abbreviations, normalizing them to `ДД.ММ`; report dates are then calendar-validated in the domain before storage. +- 2026-08-25: application validation limits text, rows, per-row feather amounts, and attachments across web and VK. Persisted media/review links require HTTPS, and a profile link is accepted only for a VK host. +- 2026-08-25: authenticated admin refresh WebSockets use a separate pool of eight slots so they cannot consume the bounded general HTTP worker pool. History sorting normalizes old string IDs with current numeric IDs. # 2026-08-16 — несколько котят в прокачке `CoachingSession.extra_kittens` теперь влияет на баллы сопровождающего через количество подопечных: 1-й ×1, 2-й ×1,5, каждый последующий ×1,15 (коэффициенты перемножаются), вместо сложения полной прибыли. Базовый коэффициент самостоятельности основного котёнка сохраняется. Веб-форма отправляет список `extra_kittens`; VK принимает `доп. котята: ...` в pipe-команде. diff --git a/project_mind_map.md b/project_mind_map.md index a6eac47..196cf86 100644 --- a/project_mind_map.md +++ b/project_mind_map.md @@ -24,10 +24,15 @@ mindmap PNG JPEG WebP JSON 20 MiB image 15 MiB + Application validation + bounded text rows and amounts + HTTPS media and review links + VK profile link allowlist Admin API password session history applications + refresh WebSocket pool 8 web/calculator.html Reports Goal calculator @@ -42,6 +47,7 @@ mindmap Natural one-line parser Mentor and student labels Flexible punctuation and ID normalization + Written Russian dates Attachment mirroring Applications dialog Data @@ -75,6 +81,7 @@ mindmap bounded JSON bounded worker pool validated web attachments + bounded application payload Admin HttpOnly SameSite session password comparison @@ -107,6 +114,7 @@ flowchart LR - Изменение доменной формулы проверяется в `tests/test_belki.py` и `tests/test_api.py`. - Диалоги, команды и естественный ввод проверяются в `tests/test_vk_conversation.py`. - Границы image-host и HTTP-предохранители проверяются в `tests/test_image_host.py`. +- Заявки, экспортная очередь и уведомления проверяются в `tests/test_applications.py`; совместимость сортировки истории — в `tests/test_history.py`. - Перед CI используйте Python 3.12 в Docker: `docker run --rm -v "$PWD:/work" -w /work python:3.12-slim sh -lc 'python -m compileall -q app tests && python -m unittest discover -s tests -q'`. ## Ограничения развёртывания