Воспроизводимая ошибка или проблема безопасности — в закрытый приём заявок. Текст и доказательство видят только автор и администрация; публикации в общей ленте нет.
${supportReportHtml()}
diff --git a/gateway/grok-web-skin.py b/gateway/grok-web-skin.py
index da2dd9ad..6e66b961 100644
--- a/gateway/grok-web-skin.py
+++ b/gateway/grok-web-skin.py
@@ -198,11 +198,11 @@ async def gate_check(api_key):
# A single write transaction serializes main/pm/sol/additional request counters.
RL_TOTAL = {0: 5000, 1: 5000, 2: 10000, 3: 20000, 4: 30000}
RL_PREM = {
- "gpt-6-luna": {0: 200, 1: 500, 2: 1500, 3: 5000, 4: 10000}, # [LIMIT-BOOST2 2510] # [LIMIT-BOOST2 2510] # [LIMIT-BOOST2 2510] # [LUNA-BOOST 2510] daily request caps per rank
- "gpt-6.1-sol": {0: 100, 1: 250, 2: 800, 3: 2000, 4: 5000}, # [LIMIT-BOOST2 2510] # [LIMIT-BOOST2 2510] # [LIMIT-BOOST2 2510]
- "opus": {0: 100, 1: 250, 2: 800, 3: 2000, 4: 5000}, # [LIMIT-BOOST2 2510] # [LIMIT-BOOST2 2510] # [LIMIT-BOOST2 2510]
- "fable": {0: 100, 1: 250, 2: 800, 3: 2000, 4: 5000}, # [LIMIT-BOOST2 2510] # [LIMIT-BOOST2 2510] # [LIMIT-BOOST2 2510]
- "astra": {0: 100, 1: 250, 2: 800, 3: 2000, 4: 5000}, # [LIMIT-BOOST2 2510] # [LIMIT-BOOST2 2510] # [LIMIT-BOOST2 2510]
+ "gpt-6-luna": {0: 200, 1: 500, 2: 1500, 3: 5000, 4: 10000}, # [LIMIT-BOOST2 2510] # [LUNA-BOOST 2510] daily request caps per rank
+ "gpt-6.1-sol": {0: 100, 1: 250, 2: 800, 3: 2000, 4: 5000}, # [LIMIT-BOOST2 2510]
+ "opus": {0: 100, 1: 250, 2: 800, 3: 2000, 4: 5000}, # [LIMIT-BOOST2 2510]
+ "fable": {0: 100, 1: 250, 2: 800, 3: 2000, 4: 5000}, # [LIMIT-BOOST2 2510]
+ "astra": {0: 100, 1: 250, 2: 800, 3: 2000, 4: 5000}, # [LIMIT-BOOST2 2510]
}
RL_NAMES = {0: "Новичок", 1: "Новичок", 2: "Актив", 3: "Профи", 4: "Легенда"}
@@ -1080,7 +1080,7 @@ async def brand_asset(req):
# Provision: new-api user "tg" via admin API, password kept in skin-local store (0600).
# Login: server-side POST /api/user/login, Set-Cookie forwarded to the browser.
TG_BOT_CONFIG = bot_config_path()
-TG_ADMIN_TOKEN_FILE = "/root/.secrets/newapi_admin_token"
+TG_ADMIN_TOKEN_FILE = os.environ.get("IISHKO_ADMIN_TOKEN_FILE", "/root/.secrets/newapi_admin_token")
TG_PROVISION_DB = skin_db_path()
TG_AUTH_MAX_AGE = 900
TG_SID_SECRET_FILE = os.environ.get("TG_SID_SECRET_FILE", "/root/.secrets/iishko_tg_sid_secret")
diff --git a/requirements-dev.txt b/requirements-dev.txt
index 4aa25812..92f06ef5 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -3,4 +3,6 @@
# python -m pytest -q # root suite (see pytest.ini)
# python scripts/selfcheck.py --source-only # no imports, no credentials
-r requirements.txt
-pytest>=8.0
+pytest>=8.0,<10
+# async def test_* in tests/test_admin_ban_targets.py, tests/test_moderation_bridge.py
+pytest-asyncio>=0.23,<2
diff --git a/requirements.txt b/requirements.txt
index c4aaac79..015897d1 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,24 +1,24 @@
# iishko legacy runtime (bot/ + gateway/ + bot/webapp/). Python 3.11+
-# Bounds are the lowest versions this tree is known to work with; do not relax
-# without re-running scripts/selfcheck.py and the root pytest suite.
+# Lower bounds = versions the test suite runs against; upper bounds = next major.
+# Do not relax without re-running scripts/selfcheck.py and the root pytest suite.
# Telegram bot (aiogram 3.x; 4.x is not supported by this code)
-aiogram>=3.0,<4
+aiogram>=3.26,<4
# HTTP client/server: bot, Mini App backend and gateway skin
-aiohttp>=3.9
+aiohttp>=3.14,<4
# aiohttp companions, imported directly by gateway/skin and transparent_api
-multidict>=6.0
-yarl>=1.9
+multidict>=6.7,<7
+yarl>=1.23,<2
# process/self limits in the bot watchdogs
-psutil>=5.9
+psutil>=7.0,<8
# password hashing for account bootstrap paths
-bcrypt>=4.0
+bcrypt>=4.0,<6
# Explicit .env loading by scripts/run.py (never executes shell statements)
python-dotenv>=1.0,<2
# --- optional features (install only if you use them) ---
# Web search in chat replies. Upstream package was renamed
# duckduckgo_search -> ddgs; the bot imports either name.
-ddgs>=9.0
+ddgs>=9.0,<10
# Text extraction from uploaded PDF documents (bot/file_intake.py)
-pypdf>=4.0
+pypdf>=4.0,<7