From 064421e6eedd481057c24f29097ef033b580a73c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 07:57:54 +0300 Subject: [PATCH 01/12] feat: persist messenger data and sessions in PostgreSQL --- .dockerignore | 13 + .env.example | 1 + .gitignore | 3 + .python-version | 1 + Dockerfile | 22 + Makefile | 22 + PLAN.md | 40 ++ compose.yaml | 92 ++++ migrations/001_core.sql | 36 ++ pyproject.toml | 23 + scripts/bootstrap.py | 47 ++ scripts/restart.sh | 5 + src/__init__.py | 0 src/__main__.py | 44 ++ src/api.py | 295 +++++++++++ src/cache.py | 66 +++ src/cursor.py | 64 +++ src/database.py | 69 +++ src/domain.py | 44 ++ src/errors.py | 16 + src/logging_config.py | 17 + src/migrate.py | 51 ++ src/password.py | 36 ++ src/repository.py | 201 +++++++ src/schemas.py | 51 ++ src/service.py | 157 ++++++ src/settings.py | 37 ++ student-tests/conftest.py | 95 ++++ student-tests/test_api.py | 402 ++++++++++++++ uv.lock | 1058 +++++++++++++++++++++++++++++++++++++ 30 files changed, 3008 insertions(+) create mode 100644 .python-version create mode 100644 Dockerfile create mode 100644 PLAN.md create mode 100644 compose.yaml create mode 100644 migrations/001_core.sql create mode 100644 pyproject.toml create mode 100644 scripts/bootstrap.py create mode 100755 scripts/restart.sh create mode 100644 src/__init__.py create mode 100644 src/__main__.py create mode 100644 src/api.py create mode 100644 src/cache.py create mode 100644 src/cursor.py create mode 100644 src/database.py create mode 100644 src/domain.py create mode 100644 src/errors.py create mode 100644 src/logging_config.py create mode 100644 src/migrate.py create mode 100644 src/password.py create mode 100644 src/repository.py create mode 100644 src/schemas.py create mode 100644 src/service.py create mode 100644 src/settings.py create mode 100644 student-tests/conftest.py create mode 100644 student-tests/test_api.py create mode 100644 uv.lock diff --git a/.dockerignore b/.dockerignore index bc16e556..163b0987 100644 --- a/.dockerignore +++ b/.dockerignore @@ -18,3 +18,16 @@ __pycache__ node_modules evidence .DS_Store +**/__pycache__ +**/*.py[cod] +.work +.pytest_cache +.ruff_cache +tests +student-tests +research +scripts +contracts +*.md +Makefile +compose.yaml diff --git a/.env.example b/.env.example index 714c8076..53c07de1 100644 --- a/.env.example +++ b/.env.example @@ -3,6 +3,7 @@ APP_HOST=0.0.0.0 APP_PORT=8080 APP_ENV=lab +PUBLIC_PORT=8082 SESSION_TTL_SECONDS=3600 # Choose credentials locally. File paths contain no secret values. DATABASE_URL_FILE=/run/secrets/database_url diff --git a/.gitignore b/.gitignore index b5a71896..d2e767d6 100644 --- a/.gitignore +++ b/.gitignore @@ -28,5 +28,8 @@ coverage/ .DS_Store .idea/ .vscode/ +.pytest_cache/ +.ruff_cache/ +.work/ # Keep small, sanitized evidence summaries in evidence/ under version control. # Inspect git diff --cached: ignore rules are not a secret scanner. diff --git a/.python-version b/.python-version new file mode 100644 index 00000000..a128d5c0 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.14.7 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..1bc495b1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM ghcr.io/astral-sh/uv:0.13.7@sha256:96f40d3904aad8d0bd010539001d36c8e2188b981e1334471a90c4a1d93bb490 AS uv +FROM python:3.14.7-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d AS builder +COPY --from=uv /uv /usr/local/bin/uv +WORKDIR /app +ENV UV_PYTHON_DOWNLOADS=never UV_LINK_MODE=copy +COPY pyproject.toml uv.lock ./ +RUN uv sync --locked --no-dev --no-install-project + +FROM python:3.14.7-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d AS runtime +ARG VCS_REF=unknown +LABEL org.opencontainers.image.revision=$VCS_REF +WORKDIR /app +ENV PATH="/app/.venv/bin:$PATH" PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 APP_HOST=0.0.0.0 APP_PORT=8080 +RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app +COPY --from=builder /app/.venv /app/.venv +COPY src /app/src +COPY migrations /app/migrations +USER 10001:10001 +EXPOSE 8080 +HEALTHCHECK --interval=10s --timeout=2s --start-period=10s --start-interval=1s --retries=3 CMD ["python", "-c", "import os,urllib.request; urllib.request.urlopen('http://127.0.0.1:'+os.getenv('APP_PORT','8080')+'/health/ready',timeout=1).read()"] +STOPSIGNAL SIGTERM +CMD ["python", "-m", "src"] diff --git a/Makefile b/Makefile index 9ecb223e..2a1e3f42 100644 --- a/Makefile +++ b/Makefile @@ -24,3 +24,25 @@ load: test-persistence: @test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable restart hook"; exit 2) $(PYTHON) tests/resilience.py --mode persistence --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS) + +UV ?= uv +IMAGE ?= mtusi-messenger:lab2 + +.PHONY: bootstrap up down lint test-student image verify research +bootstrap: + $(PYTHON) scripts/bootstrap.py +up: bootstrap + VCS_REF=$$(git rev-parse HEAD) docker compose up -d --build --wait +down: + docker compose down +image: + docker build --build-arg VCS_REF=$$(git rev-parse HEAD) -t "$(IMAGE)" . +lint: + $(UV) run --locked ruff format src student-tests research scripts/bootstrap.py scripts/verify_*.py + $(UV) run --locked ruff check src student-tests research scripts/bootstrap.py scripts/verify_*.py +test-student: + BASE_URL="$(BASE_URL)" $(UV) run --locked pytest student-tests +verify: + $(UV) run --locked python -m scripts.verify_lifecycle --output evidence/lifecycle.json +research: + $(UV) run --locked python -m research.query_plan --output evidence/query-plan.json diff --git a/PLAN.md b/PLAN.md new file mode 100644 index 00000000..ac473c2a --- /dev/null +++ b/PLAN.md @@ -0,0 +1,40 @@ +# ЛР2 на 5 — план и гипотеза + +Автор: Маслов, БВТ2301. Исходная ветка: master. +Перенесена только собственная реализация ЛР1, без её .git/contracts/tests. + +## Архитектура до реализации запросов + +API → сервисы → PostgreSQL repository, ограниченный sync pool. +Блокирующие сервисные операции выполняются в threadpool, не в event loop. +PostgreSQL — источник истины для users/chats/members/messages/sessions. +Valkey — disposable cache неизменяемого User, TTL30s; сессия/expiry/отзыв +всегда проверяются PostgreSQL. Отказ cache обходится; отказ PG даёт 503. + +Таблицы: users(id PK, username UNIQUE, display_name, password_hash, time); +chats(id PK,title,time); members(chat,user PK/FK,position UNIQUE); +messages(id PK,chat,sender,text,time) с FK(chat,sender)→members; +sessions(token_digest PK,user FK,expires_at). +Индекс истории(chat_id,created_at,id), индекс members(user_id,chat_id). +UserDTO не содержит password_hash; raw session token никогда не хранится. + +Транзакции: регистрация — одна INSERT с UNIQUE; чат+участники — одна; +сообщение — одна INSERT с FK; сессия и logout — отдельные durable записи. +Миграции версионируются SQL+checksum и блокируются advisory lock. +Не изменять применённые миграции. Compose запускает migrate перед API. + +## Проверки и трек 2 + +Smoke, persistence с тем же Bearer, регистрационная гонка/rollback, +expiry2s на отдельном API, logout и неверный пароль, остановка cache/PG, +повторный migrate и bootstrap. Независимый clean clone и bundle. + +Исследование на отдельной БД: >=100k сообщений в неравномерных чатах; +EXPLAIN ANALYZE BUFFERS после ANALYZE/прогрева, сравнение chat_id-only +и составного keyset-индекса, стоимость записи, WAL/размер индекса. +Backup pg_dump → новая БД pg_restore → count и выбранные полные строки. + +Гипотеза до измерения: составной индекс уменьшает чтение середины +большого чата, но увеличивает размер/стоимость записи; величина неизвестна. +Дамп — snapshot, записи после snapshot без WAL архива могут потеряться. +Не выдавать SQL timings за HTTP latency и локальный backup за HA. diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 00000000..90ff7c24 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,92 @@ +name: mtusi-lab2-maslov +services: + postgres: + image: postgres:18.3 + environment: + POSTGRES_USER: messenger + POSTGRES_DB: messenger + POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password + PGDATA: /var/lib/postgresql/data/pgdata + secrets: [postgres_password] + volumes: + - postgres_data:/var/lib/postgresql + healthcheck: + test: [CMD-SHELL, 'pg_isready -U messenger -d messenger'] + interval: 2s + timeout: 2s + retries: 20 + cpus: 1 + mem_limit: 512m + memswap_limit: 512m + cache: + image: valkey/valkey:8.1.3 + command: [valkey-server, /run/secrets/valkey.conf] + secrets: + - cache_password + - source: valkey_config + target: valkey.conf + healthcheck: + test: [CMD-SHELL, 'REDISCLI_AUTH="$$(cat /run/secrets/cache_password)" valkey-cli ping'] + interval: 2s + timeout: 2s + retries: 20 + cpus: 0.25 + mem_limit: 128m + memswap_limit: 128m + migrate: + image: ${API_IMAGE:-mtusi-messenger:lab2} + build: + context: . + args: + VCS_REF: ${VCS_REF:-unknown} + command: [python, -m, src.migrate] + environment: + DATABASE_URL_FILE: /run/secrets/database_url + secrets: [database_url] + depends_on: + postgres: {condition: service_healthy} + cpus: 0.5 + mem_limit: 256m + read_only: true + api: + image: ${API_IMAGE:-mtusi-messenger:lab2} + build: + context: . + args: + VCS_REF: ${VCS_REF:-unknown} + ports: + - "127.0.0.1:${PUBLIC_PORT:-8082}:8080" + environment: + APP_HOST: 0.0.0.0 + APP_PORT: 8080 + DATABASE_URL_FILE: /run/secrets/database_url + CACHE_URL_FILE: /run/secrets/cache_url + SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-3600} + DB_POOL_SIZE: ${DB_POOL_SIZE:-10} + secrets: [database_url, cache_url] + depends_on: + migrate: {condition: service_completed_successfully} + cache: {condition: service_healthy} + cpus: 1 + mem_limit: 512m + memswap_limit: 512m + pids_limit: 128 + read_only: true + tmpfs: [/tmp:rw,noexec,nosuid,size=16m] + cap_drop: [ALL] + security_opt: [no-new-privileges:true] + stop_grace_period: 10s +secrets: + postgres_password: + file: ./secrets/postgres_password + database_url: + file: ./secrets/database_url + cache_password: + file: ./secrets/cache_password + cache_url: + file: ./secrets/cache_url + valkey_config: + file: ./secrets/valkey.conf + name: valkey.conf +volumes: + postgres_data: diff --git a/migrations/001_core.sql b/migrations/001_core.sql new file mode 100644 index 00000000..f1c3acf1 --- /dev/null +++ b/migrations/001_core.sql @@ -0,0 +1,36 @@ +CREATE TABLE users ( + id uuid PRIMARY KEY, + username text NOT NULL UNIQUE CHECK (username ~ '^[a-z0-9_]{3,32}$'), + display_name text NOT NULL CHECK (char_length(display_name) BETWEEN 1 AND 100), + password_hash text NOT NULL, + created_at timestamptz NOT NULL +); +CREATE TABLE chats ( + id uuid PRIMARY KEY, + title text NOT NULL CHECK (char_length(title) BETWEEN 1 AND 100), + created_at timestamptz NOT NULL +); +CREATE TABLE members ( + chat_id uuid NOT NULL REFERENCES chats(id), + user_id uuid NOT NULL REFERENCES users(id), + position integer NOT NULL CHECK (position BETWEEN 0 AND 99), + PRIMARY KEY (chat_id, user_id), + UNIQUE (chat_id, position) +); +CREATE INDEX members_user_chat_idx ON members(user_id,chat_id); +CREATE TABLE messages ( + id uuid PRIMARY KEY, + chat_id uuid NOT NULL REFERENCES chats(id), + sender_id uuid NOT NULL, + text text NOT NULL CHECK (char_length(text) BETWEEN 1 AND 4000), + created_at timestamptz NOT NULL, + FOREIGN KEY (chat_id, sender_id) REFERENCES members(chat_id,user_id) +); +CREATE INDEX messages_history_idx ON messages(chat_id,created_at,id); +CREATE TABLE sessions ( + token_digest bytea PRIMARY KEY CHECK (octet_length(token_digest)=32), + user_id uuid NOT NULL REFERENCES users(id), + created_at timestamptz NOT NULL, + expires_at timestamptz NOT NULL CHECK (expires_at > created_at) +); +CREATE INDEX sessions_expiry_idx ON sessions(expires_at); diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..aadeac6c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,23 @@ +[project] +name = "mtusi-messenger-lab2" +version = "1.0.0" +requires-python = ">=3.14,<3.15" +dependencies = [ + "fastapi==0.143.3", "pydantic==2.14.1", "uvicorn==0.54.0", + "psycopg[binary,pool]==3.3.6", "argon2-cffi>=25,<26", "redis==8.1.0", +] + +[dependency-groups] +dev = ["pytest>=8,<10", "httpx>=0.28,<1", "ruff>=0.14,<1", "openapi-spec-validator==0.7.2", "psutil>=7,<8", "matplotlib>=3.10,<4"] + +[tool.ruff] +line-length = 79 +target-version = "py314" +include = ["src/**/*.py", "student-tests/**/*.py", "research/**/*.py", "scripts/verify_*.py"] + +[tool.ruff.lint] +select = ["E", "F", "I", "B", "UP"] + +[tool.pytest.ini_options] +testpaths = ["student-tests"] +addopts = "-ra" diff --git a/scripts/bootstrap.py b/scripts/bootstrap.py new file mode 100644 index 00000000..ab2d29b4 --- /dev/null +++ b/scripts/bootstrap.py @@ -0,0 +1,47 @@ +"""Создаёт только отсутствующие локальные файлы; секреты не печатает.""" + +import os +import secrets +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] + + +def create(path, value): + try: + fd = os.open(path, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o644) + except FileExistsError: + return + with os.fdopen(fd, "w") as stream: + stream.write(value + "\n") + + +def main(): + directory = ROOT / "secrets" + directory.mkdir(mode=0o700, exist_ok=True) + pg = directory / "postgres_password" + cache = directory / "cache_password" + create(pg, secrets.token_urlsafe(32)) + create(cache, secrets.token_urlsafe(32)) + create( + directory / "database_url", + "postgresql://messenger:" + + pg.read_text().strip() + + "@postgres:5432/messenger", + ) + create( + directory / "cache_url", + "redis://:" + cache.read_text().strip() + "@cache:6379/0", + ) + create( + directory / "valkey.conf", + "bind 0.0.0.0\nprotected-mode yes\nport 6379\nmaxmemory 64mb\n" + 'maxmemory-policy allkeys-lru\nsave ""\nappendonly no\nrequirepass ' + + cache.read_text().strip(), + ) + create(ROOT / ".env", (ROOT / ".env.example").read_text().rstrip()) + print("Local configuration ready; existing files preserved") + + +if __name__ == "__main__": + main() diff --git a/scripts/restart.sh b/scripts/restart.sh new file mode 100755 index 00000000..3b2d0153 --- /dev/null +++ b/scripts/restart.sh @@ -0,0 +1,5 @@ +#!/bin/sh +set -eu +cd "$(dirname "$0")/.." +docker compose restart api postgres cache >/dev/null +docker compose up -d --no-recreate --wait >/dev/null diff --git a/src/__init__.py b/src/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/src/__main__.py b/src/__main__.py new file mode 100644 index 00000000..20228f97 --- /dev/null +++ b/src/__main__.py @@ -0,0 +1,44 @@ +import json +import logging +import os +import signal +import sys + + +def early_stop(signum, _frame): + print( + json.dumps({"event": "stopped_before_startup", "signal": signum}), + flush=True, + ) + sys.exit(0) + + +signal.signal(signal.SIGTERM, early_stop) +signal.signal(signal.SIGINT, early_stop) + +import uvicorn # noqa: E402 + +from src.logging_config import JsonFormatter # noqa: E402 + + +def main() -> None: + host = os.environ.get("APP_HOST", "127.0.0.1") + port = int(os.environ.get("APP_PORT", "8080")) + if not 1 <= port <= 65535: + raise ValueError("APP_PORT must be between 1 and 65535") + handler = logging.StreamHandler(sys.stdout) + handler.setFormatter(JsonFormatter()) + logging.basicConfig(level=logging.INFO, handlers=[handler], force=True) + uvicorn.run( + "src.api:app", + host=host, + port=port, + workers=1, + access_log=False, + timeout_graceful_shutdown=5, + log_config=None, + ) + + +if __name__ == "__main__": + main() diff --git a/src/api.py b/src/api.py new file mode 100644 index 00000000..04b002ff --- /dev/null +++ b/src/api.py @@ -0,0 +1,295 @@ +import json +import logging +import time +from collections.abc import AsyncIterator +from contextlib import asynccontextmanager +from datetime import datetime +from functools import partial +from uuid import UUID, uuid4 + +from anyio import to_thread +from fastapi import FastAPI, Request +from fastapi.encoders import jsonable_encoder +from pydantic import ValidationError +from starlette.exceptions import HTTPException +from starlette.responses import JSONResponse, Response + +from src.cache import UserCache +from src.cursor import parse_uuid +from src.database import Database +from src.domain import timestamp +from src.errors import DomainError, invalid +from src.password import Passwords +from src.repository import PostgresRepository +from src.schemas import CreateChat, CreateMessage, CreateUser, Input +from src.service import MessengerService +from src.settings import Settings + +logger = logging.getLogger("messenger") + + +def response(data: object, *, status: int = 200) -> JSONResponse: + return JSONResponse( + jsonable_encoder( + data, custom_encoder={datetime: timestamp, UUID: str} + ), + status_code=status, + ) + + +async def body(request: Request, model: type[Input]) -> Input: + try: + data = await request.body() + return model.model_validate( + json.loads( + data, + parse_constant=lambda _: (_ for _ in ()).throw(ValueError()), + ) + ) + except ValueError, ValidationError, UnicodeError, RecursionError: + raise invalid() from None + + +def pagination(request: Request) -> tuple[int, str | None]: + limits = request.query_params.getlist("limit") + cursors = request.query_params.getlist("cursor") + if len(limits) > 1 or len(cursors) > 1: + raise invalid() + raw = limits[0] if limits else "50" + if not raw.isascii() or not raw.isdecimal() or len(raw) > 3: + raise invalid() + limit = int(raw) + if not 1 <= limit <= 100: + raise invalid() + return limit, cursors[0] if cursors else None + + +def service(request: Request) -> MessengerService: + return request.app.state.service + + +async def run_io(function, **kwargs): + return await to_thread.run_sync(partial(function, **kwargs)) + + +async def actor(request: Request): + return await run_io( + service(request).identify, value=request.headers.get("authorization") + ) + + +@asynccontextmanager +async def lifespan(app: FastAPI) -> AsyncIterator[None]: + settings = Settings.load() + database = Database(url=settings.database_url, size=settings.pool_size) + cache = UserCache(url=settings.cache_url) + try: + await run_io(database.open) + passwords = await run_io(Passwords) + app.state.database = database + app.state.service = MessengerService( + repository=PostgresRepository(database=database, cache=cache), + passwords=passwords, + session_ttl=settings.session_ttl, + ) + app.state.ready = True + yield + finally: + app.state.ready = False + await run_io(cache.close) + await run_io(database.close) + + +app = FastAPI( + lifespan=lifespan, docs_url=None, redoc_url=None, openapi_url=None +) + + +@app.middleware("http") +async def request_context(request: Request, call_next): + request_id = str(uuid4()) + request.state.request_id = request_id + started = time.perf_counter() + try: + result = await call_next(request) + except Exception: + logger.error( + json.dumps({"event": "internal_error", "request_id": request_id}) + ) + result = response( + { + "error": { + "code": "internal_error", + "message": "Internal error", + "request_id": request_id, + } + }, + status=500, + ) + result.headers["X-Request-Id"] = request_id + route = request.scope.get("route") + logger.info( + json.dumps( + { + "event": "request", + "request_id": request_id, + "method": request.method, + "route": getattr(route, "path", "unmatched"), + "status": result.status_code, + "elapsed_ms": round((time.perf_counter() - started) * 1000, 3), + } + ) + ) + return result + + +@app.exception_handler(DomainError) +async def domain_error(request: Request, error: DomainError): + result = response( + { + "error": { + "code": error.code, + "message": error.message, + "request_id": request.state.request_id, + } + }, + status=error.status, + ) + result.headers.update(error.headers) + return result + + +@app.exception_handler(HTTPException) +async def http_error(request: Request, error: HTTPException): + code = "not_found" if error.status_code == 404 else "invalid_request" + return response( + { + "error": { + "code": code, + "message": "Resource not found" + if error.status_code == 404 + else "Invalid request", + "request_id": request.state.request_id, + } + }, + status=error.status_code, + ) + + +@app.get("/health/live") +async def live(): + return response({"status": "ok"}) + + +@app.get("/health/ready") +async def ready(): + if not getattr(app.state, "ready", False): + raise DomainError(503, "unavailable", "Not ready") + await run_io(app.state.database.ping) + return response({"status": "ok"}) + + +@app.post("/api/v1/users") +async def register(request: Request): + data = await body(request, CreateUser) + return response( + await run_io(service(request).register, **data.model_dump()), + status=201, + ) + + +@app.get("/api/v1/users/me") +async def current(request: Request): + return response(await actor(request)) + + +@app.post("/api/v1/chats") +async def create_chat(request: Request): + user = await actor(request) + data = await body(request, CreateChat) + return response( + await run_io( + service(request).create_chat, actor_id=user.id, **data.model_dump() + ), + status=201, + ) + + +@app.get("/api/v1/chats") +async def list_chats(request: Request): + user = await actor(request) + limit, cursor = pagination(request) + return response( + await run_io( + service(request).chats, + actor_id=user.id, + limit=limit, + cursor=cursor, + ) + ) + + +@app.get("/api/v1/chats/{chat_id}") +async def get_chat(request: Request, chat_id: str): + user = await actor(request) + return response( + await run_io( + service(request).get_chat, + actor_id=user.id, + chat_id=parse_uuid(chat_id), + ) + ) + + +@app.post("/api/v1/chats/{chat_id}/messages") +async def send(request: Request, chat_id: str): + user = await actor(request) + cid = parse_uuid(chat_id) + await run_io(service(request).get_chat, actor_id=user.id, chat_id=cid) + data = await body(request, CreateMessage) + return response( + await run_io( + service(request).send, + actor_id=user.id, + chat_id=cid, + **data.model_dump(), + ), + status=201, + ) + + +@app.get("/api/v1/chats/{chat_id}/messages") +async def history(request: Request, chat_id: str): + user = await actor(request) + cid = parse_uuid(chat_id) + await run_io(service(request).get_chat, actor_id=user.id, chat_id=cid) + limit, cursor = pagination(request) + return response( + await run_io( + service(request).history, + actor_id=user.id, + chat_id=cid, + limit=limit, + cursor=cursor, + ) + ) + + +@app.post("/api/v1/auth/sessions") +async def login(request: Request): + return response( + await run_io( + service(request).login, + authorization=request.headers.get("authorization"), + ), + status=201, + ) + + +@app.delete("/api/v1/auth/sessions/current") +async def logout(request: Request): + await run_io( + service(request).logout, + authorization=request.headers.get("authorization"), + ) + return Response(status_code=204) diff --git a/src/cache.py b/src/cache.py new file mode 100644 index 00000000..adbea82b --- /dev/null +++ b/src/cache.py @@ -0,0 +1,66 @@ +import json +import threading +import time +from datetime import datetime +from uuid import UUID + +import redis +from redis.backoff import NoBackoff +from redis.retry import Retry + +from src.domain import User, timestamp + + +class UserCache: + def __init__(self, *, url: str): + self.client = redis.Redis.from_url( + url, + socket_connect_timeout=0.15, + socket_timeout=0.15, + max_connections=16, + retry=Retry(NoBackoff(), 0), + decode_responses=True, + ) + self.disabled_until = 0.0 + self.lock = threading.Lock() + + def close(self): + self.client.close() + + def _command(self, function, *args, **kwargs): + if time.monotonic() < self.disabled_until: + return None + try: + return function(*args, **kwargs) + except redis.RedisError, OSError: + with self.lock: + self.disabled_until = time.monotonic() + 5 + return None + + def get(self, *, user_id: UUID) -> User | None: + raw = self._command(self.client.get, "user:" + str(user_id)) + if raw is None: + return None + try: + row = json.loads(raw) + if UUID(row["id"]) != user_id: + return None + return User( + user_id, + row["username"], + row["display_name"], + datetime.fromisoformat(row["created_at"]), + ) + except ValueError, TypeError, KeyError: + return None + + def put(self, *, user: User): + raw = json.dumps( + { + "id": str(user.id), + "username": user.username, + "display_name": user.display_name, + "created_at": timestamp(user.created_at), + } + ) + self._command(self.client.set, "user:" + str(user.id), raw, ex=30) diff --git a/src/cursor.py b/src/cursor.py new file mode 100644 index 00000000..9d9c3c9c --- /dev/null +++ b/src/cursor.py @@ -0,0 +1,64 @@ +import base64 +import binascii +import json +import re +from datetime import datetime +from uuid import UUID + +from src.domain import Key, timestamp +from src.errors import invalid + + +def parse_uuid(value: str) -> UUID: + if not isinstance(value, str) or not re.fullmatch( + r"[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}", value + ): + raise invalid() + return UUID(value) + + +def encode_cursor(*, scope: str, key: Key) -> str: + payload = { + "v": 1, + "scope": scope, + "at": timestamp(key[0]), + "id": str(key[1]), + } + return ( + base64.urlsafe_b64encode( + json.dumps(payload, separators=(",", ":")).encode() + ) + .decode() + .rstrip("=") + ) + + +def decode_cursor(*, value: str | None, scope: str) -> Key | None: + if value is None: + return None + try: + if ( + not value + or len(value) > 2048 + or not re.fullmatch(r"[A-Za-z0-9_-]+", value) + ): + raise ValueError + data = json.loads( + base64.b64decode( + value + "=" * (-len(value) % 4), altchars=b"-_", validate=True + ) + ) + if ( + not isinstance(data, dict) + or type(data.get("v")) is not int + or data["v"] != 1 + or data.get("scope") != scope + or not isinstance(data.get("at"), str) + ): + raise ValueError + at = datetime.fromisoformat(data["at"]) + if at.tzinfo is None or timestamp(at) != data["at"]: + raise ValueError + return at, parse_uuid(data["id"]) + except ValueError, TypeError, KeyError, binascii.Error, RecursionError: + raise invalid() from None diff --git a/src/database.py b/src/database.py new file mode 100644 index 00000000..130b5238 --- /dev/null +++ b/src/database.py @@ -0,0 +1,69 @@ +import time +from contextlib import contextmanager + +import psycopg +from psycopg.rows import dict_row +from psycopg_pool import ConnectionPool, PoolTimeout + +from src.errors import DomainError + + +class DeadlineConnection(psycopg.Connection): + """Клиентский срок действует и при замороженном PostgreSQL.""" + + def wait(self, gen, interval=0.1, timeout=None): + deadline = getattr(self, "request_deadline", None) + remaining = ( + max(0.001, deadline - time.monotonic()) if deadline else 3.0 + ) + bound = min(remaining, timeout) if timeout is not None else remaining + try: + return super().wait(gen, interval=interval, timeout=bound) + except psycopg.OperationalError: + self.close() + raise + + +class Database: + def __init__(self, *, url: str, size: int): + self.pool = ConnectionPool( + url, + connection_class=DeadlineConnection, + kwargs={ + "autocommit": True, + "row_factory": dict_row, + "connect_timeout": 2, + "options": ( + "-c statement_timeout=2500 -c lock_timeout=1000 " + "-c idle_in_transaction_session_timeout=6000" + ), + }, + min_size=1, + max_size=size, + timeout=1, + open=False, + ) + + def open(self): + self.pool.open(wait=True, timeout=10) + + def close(self): + self.pool.close(timeout=2) + + @contextmanager + def connection(self): + try: + with self.pool.connection(timeout=1) as conn: + conn.request_deadline = time.monotonic() + 4 + try: + yield conn + finally: + conn.request_deadline = None + except psycopg.OperationalError, psycopg.InterfaceError, PoolTimeout: + raise DomainError( + 503, "unavailable", "Database unavailable" + ) from None + + def ping(self): + with self.connection() as conn: + conn.execute("SELECT 1").fetchone() diff --git a/src/domain.py b/src/domain.py new file mode 100644 index 00000000..cf9abb97 --- /dev/null +++ b/src/domain.py @@ -0,0 +1,44 @@ +from dataclasses import dataclass +from datetime import UTC, datetime +from uuid import UUID + + +def utcnow() -> datetime: + return datetime.now(UTC) + + +def timestamp(value: datetime) -> str: + return value.isoformat(timespec="microseconds").replace("+00:00", "Z") + + +@dataclass(frozen=True, slots=True) +class User: + id: UUID + username: str + display_name: str + created_at: datetime + + +@dataclass(frozen=True, slots=True) +class Chat: + id: UUID + title: str + member_ids: tuple[UUID, ...] + created_at: datetime + + +@dataclass(frozen=True, slots=True) +class Message: + id: UUID + chat_id: UUID + sender_id: UUID + text: str + created_at: datetime + + +type Record = User | Chat | Message +type Key = tuple[datetime, UUID] + + +def order_key(record: Record) -> Key: + return record.created_at, record.id diff --git a/src/errors.py b/src/errors.py new file mode 100644 index 00000000..693b2ccf --- /dev/null +++ b/src/errors.py @@ -0,0 +1,16 @@ +class DomainError(Exception): + def __init__( + self, status: int, code: str, message: str, headers=None + ) -> None: + self.status = status + self.code = code + self.message = message + self.headers = headers or {} + + +def invalid() -> DomainError: + return DomainError(400, "invalid_request", "Invalid request") + + +def not_found() -> DomainError: + return DomainError(404, "not_found", "Resource not found") diff --git a/src/logging_config.py b/src/logging_config.py new file mode 100644 index 00000000..e89db63a --- /dev/null +++ b/src/logging_config.py @@ -0,0 +1,17 @@ +import json +import logging +from datetime import UTC, datetime + + +class JsonFormatter(logging.Formatter): + def format(self, record: logging.LogRecord) -> str: + message = record.getMessage() + try: + event = json.loads(message) + if not isinstance(event, dict): + event = {"event": message} + except ValueError: + event = {"event": message} + event["timestamp"] = datetime.now(UTC).isoformat() + event["level"] = record.levelname.lower() + return json.dumps(event, ensure_ascii=False) diff --git a/src/migrate.py b/src/migrate.py new file mode 100644 index 00000000..30363ba6 --- /dev/null +++ b/src/migrate.py @@ -0,0 +1,51 @@ +import hashlib +import json +from pathlib import Path + +import psycopg + +from src.settings import secret + + +def main(): + with psycopg.connect( + secret("DATABASE_URL"), autocommit=True, connect_timeout=3 + ) as conn: + conn.execute("SELECT pg_advisory_lock(2301002)") + try: + conn.execute( + "CREATE TABLE IF NOT EXISTS schema_migrations " + "(name text PRIMARY KEY, checksum text NOT NULL, " + "applied_at timestamptz NOT NULL DEFAULT now())" + ) + for path in sorted(Path("migrations").glob("*.sql")): + content = path.read_bytes() + checksum = hashlib.sha256(content).hexdigest() + row = conn.execute( + "SELECT checksum FROM schema_migrations WHERE name=%s", + (path.name,), + ).fetchone() + if row: + if row[0] != checksum: + raise RuntimeError( + "Applied migration checksum mismatch" + ) + continue + with conn.transaction(): + conn.execute(content.decode()) + conn.execute( + "INSERT INTO schema_migrations(name,checksum) " + "VALUES(%s,%s)", + (path.name, checksum), + ) + print( + json.dumps( + {"event": "migration_applied", "name": path.name} + ) + ) + finally: + conn.execute("SELECT pg_advisory_unlock(2301002)") + + +if __name__ == "__main__": + main() diff --git a/src/password.py b/src/password.py new file mode 100644 index 00000000..bce8bd29 --- /dev/null +++ b/src/password.py @@ -0,0 +1,36 @@ +import threading + +from argon2 import PasswordHasher +from argon2.exceptions import InvalidHashError, VerificationError +from argon2.low_level import Type + +from src.errors import DomainError + + +class Passwords: + def __init__(self): + self.hasher = PasswordHasher( + time_cost=3, memory_cost=65536, parallelism=4, type=Type.ID + ) + self.slots = threading.BoundedSemaphore(2) + self.dummy = self.hasher.hash("Synthetic-dummy-password-not-for-login") + + def _run(self, function, *args): + if not self.slots.acquire(timeout=5): + raise DomainError(503, "unavailable", "Authentication busy") + try: + return function(*args) + finally: + self.slots.release() + + def hash(self, *, password: str) -> str: + return self._run(self.hasher.hash, password) + + def verify(self, *, password: str, encoded: str | None) -> bool: + try: + return ( + self._run(self.hasher.verify, encoded or self.dummy, password) + and encoded is not None + ) + except VerificationError, InvalidHashError: + return False diff --git a/src/repository.py b/src/repository.py new file mode 100644 index 00000000..f08f17d4 --- /dev/null +++ b/src/repository.py @@ -0,0 +1,201 @@ +from uuid import UUID + +from psycopg.errors import ForeignKeyViolation, UniqueViolation + +from src.cache import UserCache +from src.database import Database +from src.domain import Chat, Key, Message, User +from src.errors import DomainError, invalid, not_found + +USER_COLUMNS = "id, username, display_name, created_at" + + +def user_dto(row) -> User: + return User( + row["id"], row["username"], row["display_name"], row["created_at"] + ) + + +def chat_dto(row) -> Chat: + return Chat( + row["id"], row["title"], tuple(row["member_ids"]), row["created_at"] + ) + + +def message_dto(row) -> Message: + return Message( + row["id"], + row["chat_id"], + row["sender_id"], + row["text"], + row["created_at"], + ) + + +class PostgresRepository: + def __init__(self, *, database: Database, cache: UserCache): + self.database = database + self.cache = cache + + def add_user(self, *, user: User, password_hash: str) -> User: + try: + with self.database.connection() as conn: + conn.execute( + "INSERT INTO users(id,username,display_name," + "password_hash,created_at) VALUES(%s,%s,%s,%s,%s)", + ( + user.id, + user.username, + user.display_name, + password_hash, + user.created_at, + ), + ) + except UniqueViolation: + raise DomainError( + 409, "conflict", "Username already exists" + ) from None + return user + + def get_user(self, *, user_id: UUID) -> User | None: + cached = self.cache.get(user_id=user_id) + if cached is not None: + return cached + with self.database.connection() as conn: + row = conn.execute( + "SELECT " + USER_COLUMNS + " FROM users WHERE id=%s", + (user_id,), + ).fetchone() + if row is None: + return None + user = user_dto(row) + self.cache.put(user=user) + return user + + def credentials(self, *, username: str): + with self.database.connection() as conn: + row = conn.execute( + "SELECT " + + USER_COLUMNS + + ", password_hash FROM users WHERE username=%s", + (username,), + ).fetchone() + if row is None: + return None, None + return user_dto(row), row["password_hash"] + + def add_session( + self, *, digest: bytes, user_id: UUID, created_at, expires_at + ): + with self.database.connection() as conn: + conn.execute( + "INSERT INTO sessions(token_digest,user_id,created_at," + "expires_at) VALUES(%s,%s,%s,%s)", + (digest, user_id, created_at, expires_at), + ) + + def session_user(self, *, digest: bytes) -> UUID | None: + with self.database.connection() as conn: + row = conn.execute( + "SELECT user_id FROM sessions WHERE token_digest=%s " + "AND expires_at>clock_timestamp()", + (digest,), + ).fetchone() + return row["user_id"] if row else None + + def delete_session(self, *, digest: bytes): + with self.database.connection() as conn: + conn.execute( + "DELETE FROM sessions WHERE token_digest=%s", (digest,) + ) + + def add_chat(self, *, chat: Chat, actor_id: UUID) -> Chat: + members = chat.member_ids + if actor_id not in members or len(set(members)) != len(members): + raise invalid() + try: + with self.database.connection() as conn, conn.transaction(): + conn.execute( + "INSERT INTO chats(id,title,created_at) VALUES(%s,%s,%s)", + (chat.id, chat.title, chat.created_at), + ) + with conn.cursor() as cursor: + cursor.executemany( + "INSERT INTO members(chat_id,user_id,position) " + "VALUES(%s,%s,%s)", + [ + (chat.id, user_id, position) + for position, user_id in enumerate(members) + ], + ) + except ForeignKeyViolation: + raise invalid() from None + return chat + + def get_chat(self, *, chat_id: UUID, actor_id: UUID) -> Chat: + with self.database.connection() as conn: + row = conn.execute( + "SELECT c.id,c.title,c.created_at," + "array_agg(m.user_id ORDER BY m.position) member_ids " + "FROM chats c JOIN members m ON m.chat_id=c.id " + "WHERE c.id=%s AND EXISTS(SELECT 1 FROM members own " + "WHERE own.chat_id=c.id AND own.user_id=%s) GROUP BY c.id", + (chat_id, actor_id), + ).fetchone() + if row is None: + raise not_found() + return chat_dto(row) + + def add_message(self, *, message: Message) -> Message: + try: + with self.database.connection() as conn: + conn.execute( + "INSERT INTO messages(id,chat_id,sender_id,text,created_at) " + "VALUES(%s,%s,%s,%s,%s)", + ( + message.id, + message.chat_id, + message.sender_id, + message.text, + message.created_at, + ), + ) + except ForeignKeyViolation: + raise not_found() from None + return message + + def list_chats( + self, *, actor_id: UUID, after: Key | None, limit: int + ) -> list[Chat]: + condition = "AND (c.created_at,c.id)>(%s,%s)" if after else "" + parameters = ( + [actor_id, *after, limit + 1] if after else [actor_id, limit + 1] + ) + with self.database.connection() as conn: + rows = conn.execute( + "SELECT c.id,c.title,c.created_at,ARRAY(SELECT user_id " + "FROM members WHERE chat_id=c.id ORDER BY position) member_ids " + "FROM chats c JOIN members own ON own.chat_id=c.id " + "WHERE own.user_id=%s " + + condition + + " ORDER BY c.created_at,c.id LIMIT %s", + parameters, + ).fetchall() + return [chat_dto(row) for row in rows] + + def list_messages( + self, *, chat_id: UUID, actor_id: UUID, after: Key | None, limit: int + ) -> list[Message]: + condition = "AND (created_at,id)>(%s,%s)" if after else "" + parameters = ( + [chat_id, *after, limit + 1] if after else [chat_id, limit + 1] + ) + with self.database.connection() as conn: + rows = conn.execute( + "SELECT id,chat_id,sender_id,text,created_at FROM messages " + "WHERE chat_id=%s " + + condition + + " ORDER BY created_at,id LIMIT %s", + parameters, + ).fetchall() + return [message_dto(row) for row in rows] diff --git a/src/schemas.py b/src/schemas.py new file mode 100644 index 00000000..cacd6430 --- /dev/null +++ b/src/schemas.py @@ -0,0 +1,51 @@ +import re +from typing import Annotated +from uuid import UUID + +from pydantic import ( + BaseModel, + BeforeValidator, + ConfigDict, + Field, + StrictStr, + field_validator, +) + +from src.cursor import parse_uuid + +UuidIn = Annotated[UUID, BeforeValidator(parse_uuid)] + + +class Input(BaseModel): + model_config = ConfigDict(extra="forbid") + + @field_validator("*", mode="after") + @classmethod + def nonblank(cls, value: object) -> object: + if isinstance(value, str) and ( + not value.strip() or any(0xD800 <= ord(c) <= 0xDFFF for c in value) + ): + raise ValueError("Invalid text") + return value + + +class CreateUser(Input): + username: StrictStr + display_name: StrictStr = Field(min_length=1, max_length=100) + password: StrictStr = Field(min_length=12, max_length=128) + + @field_validator("username") + @classmethod + def username_format(cls, value: str) -> str: + if not re.fullmatch(r"[a-z0-9_]{3,32}", value): + raise ValueError("Invalid username") + return value + + +class CreateChat(Input): + title: StrictStr = Field(min_length=1, max_length=100) + member_ids: list[UuidIn] = Field(min_length=1, max_length=100, strict=True) + + +class CreateMessage(Input): + text: StrictStr = Field(min_length=1, max_length=4000) diff --git a/src/service.py b/src/service.py new file mode 100644 index 00000000..ef5e9513 --- /dev/null +++ b/src/service.py @@ -0,0 +1,157 @@ +import base64 +import hashlib +import re +import secrets +from datetime import timedelta +from uuid import UUID, uuid4 + +from src.cursor import decode_cursor, encode_cursor +from src.domain import Chat, Message, Record, User, order_key, utcnow +from src.errors import DomainError +from src.password import Passwords +from src.repository import PostgresRepository + + +def page(*, rows: list[Record], limit: int, scope: str) -> dict: + items = rows[:limit] + cursor = ( + encode_cursor(scope=scope, key=order_key(items[-1])) + if len(rows) > limit + else None + ) + return {"items": items, "next_cursor": cursor} + + +def unauthorized(*, basic=False): + challenge = ( + 'Basic realm="messenger", charset="UTF-8"' + if basic + else 'Bearer realm="messenger"' + ) + return DomainError( + 401, + "unauthorized", + "Authentication required", + {"WWW-Authenticate": challenge}, + ) + + +def bearer(value): + if not value: + raise unauthorized() + scheme, _, token = value.partition(" ") + if scheme.lower() != "bearer" or not re.fullmatch( + r"[A-Za-z0-9_-]{32,256}", token + ): + raise unauthorized() + return token + + +def token_digest(value): + return hashlib.sha256(value.encode()).digest() + + +class MessengerService: + def __init__( + self, + *, + repository: PostgresRepository, + passwords: Passwords, + session_ttl: int, + ) -> None: + self.repository = repository + self.passwords = passwords + self.session_ttl = session_ttl + + def identify(self, *, value: str | None) -> User: + token = bearer(value) + user_id = self.repository.session_user(digest=token_digest(token)) + user = self.repository.get_user(user_id=user_id) if user_id else None + if user is None: + raise unauthorized() + return user + + def register( + self, *, username: str, display_name: str, password: str + ) -> User: + encoded = self.passwords.hash(password=password) + return self.repository.add_user( + user=User(uuid4(), username, display_name, utcnow()), + password_hash=encoded, + ) + + def login(self, *, authorization: str | None): + try: + scheme, _, encoded = (authorization or "").partition(" ") + if scheme.lower() != "basic": + raise ValueError + plain = base64.b64decode(encoded, validate=True).decode("utf-8") + username, separator, password = plain.partition(":") + if ( + not separator + or not re.fullmatch(r"[a-z0-9_]{3,32}", username) + or not 12 <= len(password) <= 128 + or not password.strip() + ): + raise ValueError + except ValueError, UnicodeError: + raise unauthorized(basic=True) from None + user, password_hash = self.repository.credentials(username=username) + if not self.passwords.verify(password=password, encoded=password_hash): + raise unauthorized(basic=True) + now = utcnow() + expires = now + timedelta(seconds=self.session_ttl) + token = secrets.token_urlsafe(32) + self.repository.add_session( + digest=token_digest(token), + user_id=user.id, + created_at=now, + expires_at=expires, + ) + return { + "token": token, + "token_type": "Bearer", + "expires_at": expires, + "user": user, + } + + def logout(self, *, authorization: str | None): + self.identify(value=authorization) + self.repository.delete_session( + digest=token_digest(bearer(authorization)) + ) + + def create_chat( + self, *, actor_id: UUID, title: str, member_ids: list[UUID] + ) -> Chat: + return self.repository.add_chat( + chat=Chat(uuid4(), title, tuple(member_ids), utcnow()), + actor_id=actor_id, + ) + + def get_chat(self, *, actor_id: UUID, chat_id: UUID) -> Chat: + return self.repository.get_chat(actor_id=actor_id, chat_id=chat_id) + + def send(self, *, actor_id: UUID, chat_id: UUID, text: str) -> Message: + return self.repository.add_message( + message=Message(uuid4(), chat_id, actor_id, text, utcnow()) + ) + + def chats(self, *, actor_id: UUID, limit: int, cursor: str | None) -> dict: + scope = f"chats:{actor_id}" + after = decode_cursor(value=cursor, scope=scope) + rows = self.repository.list_chats( + actor_id=actor_id, after=after, limit=limit + ) + return page(rows=rows, limit=limit, scope=scope) + + def history( + self, *, actor_id: UUID, chat_id: UUID, limit: int, cursor: str | None + ) -> dict: + self.get_chat(actor_id=actor_id, chat_id=chat_id) + scope = f"messages:{chat_id}" + after = decode_cursor(value=cursor, scope=scope) + rows = self.repository.list_messages( + actor_id=actor_id, chat_id=chat_id, after=after, limit=limit + ) + return page(rows=rows, limit=limit, scope=scope) diff --git a/src/settings.py b/src/settings.py new file mode 100644 index 00000000..01ff9bfb --- /dev/null +++ b/src/settings.py @@ -0,0 +1,37 @@ +import os +from dataclasses import dataclass, field +from pathlib import Path + + +def secret(name: str) -> str: + file = os.environ.get(name + "_FILE") + if file: + return Path(file).read_text().strip() + value = os.environ.get(name) + if not value: + raise ValueError("Missing required secret setting: " + name) + return value + + +def integer(name: str, default: int, low: int, high: int) -> int: + value = int(os.environ.get(name, str(default))) + if not low <= value <= high: + raise ValueError("Invalid setting: " + name) + return value + + +@dataclass(frozen=True) +class Settings: + database_url: str = field(repr=False) + cache_url: str = field(repr=False) + session_ttl: int = 3600 + pool_size: int = 10 + + @classmethod + def load(cls): + return cls( + secret("DATABASE_URL"), + secret("CACHE_URL"), + integer("SESSION_TTL_SECONDS", 3600, 1, 86400), + integer("DB_POOL_SIZE", 10, 1, 32), + ) diff --git a/student-tests/conftest.py b/student-tests/conftest.py new file mode 100644 index 00000000..64d1b17e --- /dev/null +++ b/student-tests/conftest.py @@ -0,0 +1,95 @@ +import json +import os +from pathlib import Path +from uuid import uuid4 + +import httpx +import pytest +from jsonschema import Draft202012Validator, FormatChecker + +CONTRACT = json.loads( + (Path(__file__).parents[1] / "contracts/openapi.json").read_text() +) +BASE_URL = os.environ.get("BASE_URL", "http://127.0.0.1:8080") + + +def check(result: httpx.Response, status: int, schema: str) -> dict: + assert result.status_code == status, result.text + assert result.headers["x-request-id"] + assert result.headers["content-type"].startswith("application/json") + payload = result.json() + spec = {"$ref": f"#/components/schemas/{schema}", **CONTRACT} + Draft202012Validator(spec, format_checker=FormatChecker()).validate( + payload + ) + if schema == "Error": + assert payload["error"]["request_id"] == result.headers["x-request-id"] + assert ( + payload["error"]["code"] + == { + 400: "invalid_request", + 401: "unauthorized", + 404: "not_found", + 409: "conflict", + 500: "internal_error", + }[status] + ) + return payload + + +def register(client: httpx.Client, **overrides) -> dict: + data = {"username": "u_" + uuid4().hex[:24], "display_name": "Алиса 🌍"} + data.update(overrides) + return check(client.post("/api/v1/users", json=data), 201, "User") + + +@pytest.fixture +def client(): + with httpx.Client( + base_url=BASE_URL, timeout=15, trust_env=False + ) as client: + yield client + + +@pytest.fixture +def actors(client): + return register(client), register(client), register(client) + + +@pytest.fixture +def chat(client, actors): + alice, bob, _ = actors + return check( + client.post( + "/api/v1/chats", + headers={"X-User-Id": alice["id"]}, + json={"title": "Учёба 🌍", "member_ids": [alice["id"], bob["id"]]}, + ), + 201, + "Chat", + ) + + +def headers(actor: dict) -> dict: + return {"X-User-Id": actor["id"]} + + +def history(client, actor, chat_id, limit=7): + found, cursor = [], None + while True: + params = {"limit": limit} + if cursor: + params["cursor"] = cursor + page = check( + client.get( + f"/api/v1/chats/{chat_id}/messages", + headers=headers(actor), + params=params, + ), + 200, + "MessagePage", + ) + found.extend(page["items"]) + cursor = page["next_cursor"] + if cursor is None: + return found diff --git a/student-tests/test_api.py b/student-tests/test_api.py new file mode 100644 index 00000000..6551b293 --- /dev/null +++ b/student-tests/test_api.py @@ -0,0 +1,402 @@ +import base64 +import json +import threading +from concurrent.futures import ThreadPoolExecutor +from uuid import UUID, uuid4 + +import httpx +import pytest +from conftest import BASE_URL, check, headers, history, register + + +@pytest.mark.parametrize("path", ["/health/live", "/health/ready"]) +def test_health(client, path): + assert check(client.get(path), 200, "Health") == {"status": "ok"} + + +@pytest.mark.parametrize( + "value", [None, "not-a-uuid", str(uuid4()), uuid4().hex] +) +def test_identification(client, value): + check( + client.get( + "/api/v1/users/me", headers={"X-User-Id": value} if value else {} + ), + 401, + "Error", + ) + + +def test_identity(client, actors): + assert ( + check( + client.get("/api/v1/users/me", headers=headers(actors[0])), + 200, + "User", + ) + == actors[0] + ) + + +@pytest.mark.parametrize( + "data", + [ + {}, + [], + None, + {"username": "ABC", "display_name": "A"}, + {"username": "abc\n", "display_name": "A"}, + {"username": 123, "display_name": "A"}, + {"username": "abc", "display_name": " "}, + {"username": "abc", "display_name": "x" * 101}, + {"username": "abc", "display_name": "A", "extra": True}, + {"username": "abc", "display_name": "\ud800"}, + ], +) +def test_invalid_user(client, data): + check(client.post("/api/v1/users", content=json.dumps(data)), 400, "Error") + + +@pytest.mark.parametrize( + "raw", [b"{", b"NaN", b'{"username":"abc", "display_name":NaN}', b"\xff"] +) +def test_malformed_json(client, raw): + check(client.post("/api/v1/users", content=raw), 400, "Error") + + +def test_auth_before_json(client): + check(client.post("/api/v1/chats", content=b"{"), 401, "Error") + + +def test_duplicate_username(client, actors): + check( + client.post( + "/api/v1/users", + json={"username": actors[0]["username"], "display_name": "B"}, + ), + 409, + "Error", + ) + + +def test_unicode_codepoints(client, actors, chat): + user = register(client, display_name="🌍" * 100) + assert user["display_name"] == "🌍" * 100 + text = "🌍" * 4000 + result = check( + client.post( + f"/api/v1/chats/{chat['id']}/messages", + headers=headers(actors[0]), + json={"text": text}, + ), + 201, + "Message", + ) + assert result["text"] == text + assert result["sender_id"] == actors[0]["id"] + + +@pytest.mark.parametrize( + "method,suffix,body", + [ + ("GET", "", None), + ("GET", "/messages", None), + ("POST", "/messages", {"text": "hello"}), + ], +) +def test_acl(client, actors, chat, method, suffix, body): + outsider = headers(actors[2]) + actual = check( + client.request( + method, + f"/api/v1/chats/{chat['id']}{suffix}", + headers=outsider, + json=body, + ), + 404, + "Error", + ) + missing = check( + client.request( + method, + f"/api/v1/chats/{uuid4()}{suffix}", + headers=outsider, + json=body, + ), + 404, + "Error", + ) + assert actual["error"]["message"] == missing["error"]["message"] + + +@pytest.mark.parametrize("value", ["", " \t\n", 42, True, None, "a" * 4001]) +def test_bad_message(client, actors, chat, value): + check( + client.post( + f"/api/v1/chats/{chat['id']}/messages", + headers=headers(actors[0]), + json={"text": value}, + ), + 400, + "Error", + ) + + +def test_sender_not_client_controlled(client, actors, chat): + check( + client.post( + f"/api/v1/chats/{chat['id']}/messages", + headers=headers(actors[0]), + json={"text": "Hi", "sender_id": actors[1]["id"]}, + ), + 400, + "Error", + ) + + +@pytest.mark.parametrize( + "case", + [ + "duplicate", + "unknown", + "no_caller", + "empty", + "wrong_type", + "bad_uuid", + "too_many", + "blank_title", + ], +) +def test_invalid_chat(client, actors, case): + a, b, _ = actors + members = { + "duplicate": [a["id"], a["id"]], + "unknown": [a["id"], str(uuid4())], + "no_caller": [b["id"]], + "empty": [], + "wrong_type": a["id"], + "bad_uuid": ["broken"], + "too_many": [str(uuid4()) for _ in range(101)], + "blank_title": [a["id"]], + }[case] + check( + client.post( + "/api/v1/chats", + headers=headers(a), + json={ + "title": " " if case == "blank_title" else "Title", + "member_ids": members, + }, + ), + 400, + "Error", + ) + + +@pytest.mark.parametrize( + "limit", ["0", "101", "-1", "1.5", "true", "1e1", "", "12"] +) +def test_bad_limit(client, actors, chat, limit): + check( + client.get( + f"/api/v1/chats/{chat['id']}/messages", + headers=headers(actors[0]), + params={"limit": limit}, + ), + 400, + "Error", + ) + + +@pytest.mark.parametrize( + "cursor", ["", "broken", "W10", "e30", "*", "x" * 2049] +) +def test_bad_cursor(client, actors, chat, cursor): + check( + client.get( + f"/api/v1/chats/{chat['id']}/messages", + headers=headers(actors[0]), + params={"cursor": cursor}, + ), + 400, + "Error", + ) + + +def test_pagination(client, actors, chat): + a, b, outsider = actors + sent = [] + path = f"/api/v1/chats/{chat['id']}/messages" + for i in range(23): + sent.append( + check( + client.post( + path, + headers=headers(a if i % 2 else b), + json={"text": f"Msg {i}"}, + ), + 201, + "Message", + ) + ) + got = history(client, a, chat["id"]) + assert got == sorted( + sent, key=lambda m: (m["created_at"], UUID(m["id"]).int) + ) + first = check( + client.get(path, headers=headers(a), params={"limit": 1}), + 200, + "MessagePage", + ) + second = check( + client.get( + path, + headers=headers(b), + params={"limit": 22, "cursor": first["next_cursor"]}, + ), + 200, + "MessagePage", + ) + assert second["items"] == got[1:] + assert second["next_cursor"] is None + chats = check( + client.get("/api/v1/chats", headers=headers(outsider)), 200, "ChatPage" + ) + assert chats["items"] == [] + other = check( + client.post( + "/api/v1/chats", + headers=headers(a), + json={"title": "Other", "member_ids": [a["id"]]}, + ), + 201, + "Chat", + ) + check( + client.get( + f"/api/v1/chats/{other['id']}/messages", + headers=headers(a), + params={"cursor": first["next_cursor"]}, + ), + 400, + "Error", + ) + # Валидный base64/JSON с неверным типом ключа тоже даёт 400. + data = json.loads( + base64.urlsafe_b64decode( + first["next_cursor"] + "=" * (-len(first["next_cursor"]) % 4) + ) + ) + data["at"] = 17 + forged = ( + base64.urlsafe_b64encode(json.dumps(data).encode()) + .decode() + .rstrip("=") + ) + check( + client.get(path, headers=headers(a), params={"cursor": forged}), + 400, + "Error", + ) + + +def test_chat_pagination_scope(client, actors): + a, b, _ = actors + created = [] + for i in range(4): + created.append( + check( + client.post( + "/api/v1/chats", + headers=headers(a), + json={"title": str(i), "member_ids": [a["id"], b["id"]]}, + ), + 201, + "Chat", + ) + ) + page = check( + client.get("/api/v1/chats", headers=headers(a), params={"limit": 2}), + 200, + "ChatPage", + ) + assert page["items"] == created[:2] + last = check( + client.get( + "/api/v1/chats", + headers=headers(a), + params={"limit": 2, "cursor": page["next_cursor"]}, + ), + 200, + "ChatPage", + ) + assert last["items"] == created[2:] + assert last["next_cursor"] is None + check( + client.get( + "/api/v1/chats", + headers=headers(b), + params={"cursor": page["next_cursor"]}, + ), + 400, + "Error", + ) + + +def test_concurrent_messages(client, actors, chat): + barrier = threading.Barrier(10) + a = actors[0] + path = f"/api/v1/chats/{chat['id']}/messages" + + def worker(i): + with httpx.Client( + base_url=BASE_URL, timeout=15, trust_env=False + ) as conn: + barrier.wait(timeout=15) + return [ + check( + conn.post( + path, headers=headers(a), json={"text": f"{i}:{j}"} + ), + 201, + "Message", + )["id"] + for j in range(10) + ] + + with ThreadPoolExecutor(max_workers=10) as pool: + ids = [item for batch in pool.map(worker, range(10)) for item in batch] + rows = history(client, a, chat["id"]) + assert len(rows) == len(ids) == len(set(ids)) == 100 + assert set(ids) == {row["id"] for row in rows} + assert len({row["text"] for row in rows}) == 100 + + +def test_registration_race(client): + username = "race_" + uuid4().hex[:20] + barrier = threading.Barrier(10) + + def worker(_): + with httpx.Client( + base_url=BASE_URL, timeout=15, trust_env=False + ) as conn: + barrier.wait(timeout=15) + result = conn.post( + "/api/v1/users", + json={"username": username, "display_name": "Test"}, + ) + check( + result, + result.status_code, + "User" if result.status_code == 201 else "Error", + ) + return result.status_code + + with ThreadPoolExecutor(max_workers=10) as pool: + statuses = list(pool.map(worker, range(10))) + assert statuses.count(201) == 1 + assert statuses.count(409) == 9 + + +def test_unknown_path(client): + check(client.get("/does-not-exist"), 404, "Error") diff --git a/uv.lock b/uv.lock new file mode 100644 index 00000000..03f7a467 --- /dev/null +++ b/uv.lock @@ -0,0 +1,1058 @@ +version = 1 +revision = 5 +requires-python = "==3.14.*" + +[[package]] +name = "annotated-doc" +version = "0.0.5" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5a/8e/38aa427ed5402449e226975b649c5dc73ccadfefeb95e6aecb8f8ea4b6b6/annotated_doc-0.0.5.tar.gz", hash = "sha256:c7e58ce09192557605d8bbd92836d7e1d520ac9580096042c0bfd197efacf1bb", size = 10758, upload-time = "2026-07-28T13:50:58.129Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", hash = "sha256:117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", size = 5302, upload-time = "2026-07-28T13:50:57.239Z" }, +] + +[[package]] +name = "annotated-types" +version = "0.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5f/56/a8120250d128bed162cd73c76d45f6ef9991f3e068f62a8ee060afa3104a/annotated_types-0.8.0.tar.gz", hash = "sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7", size = 15893, upload-time = "2026-07-23T20:16:13.995Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/99/91/8acff4f5e50511b911bbccb72b8628a49c68ce14148cd9f6431094859a90/annotated_types-0.8.0-py3-none-any.whl", hash = "sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0", size = 13427, upload-time = "2026-07-23T20:16:12.938Z" }, +] + +[[package]] +name = "anyio" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "idna" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a1/98/7e457a3b014976887a050561955c0b76e1e7e2d6e27b78ecef2ef80518f2/anyio-4.16.0.tar.gz", hash = "sha256:59bb03251907983d1603d27c3087ddb1e93299ea2163adcdba37899a4fb12ffb", size = 310971, upload-time = "2026-11-01T11:20:07.282Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a9/16/7757fb84c819accc7d7e9af5291b261e4abb8627ee040f99e7d35ef2457a/anyio-4.16.0-py3-none-any.whl", hash = "sha256:c66ae634e0b8228396b801741beb3294326d4b6102f7bba4041c0dfb58c29026", size = 134521, upload-time = "2026-11-01T11:20:05.59Z" }, +] + +[[package]] +name = "argon2-cffi" +version = "25.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "argon2-cffi-bindings" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0e/89/ce5af8a7d472a67cc819d5d998aa8c82c5d860608c4db9f46f1162d7dab9/argon2_cffi-25.1.0.tar.gz", hash = "sha256:694ae5cc8a42f4c4e2bf2ca0e64e51e23a040c6a517a85074683d3959e1346c1", size = 45706, upload-time = "2025-06-03T06:55:32.073Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4f/d3/a8b22fa575b297cd6e3e3b0155c7e25db170edf1c74783d6a31a2490b8d9/argon2_cffi-25.1.0-py3-none-any.whl", hash = "sha256:fdc8b074db390fccb6eb4a3604ae7231f219aa669a2652e0f20e16ba513d5741", size = 14657, upload-time = "2025-06-03T06:55:30.804Z" }, +] + +[[package]] +name = "argon2-cffi-bindings" +version = "26.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "cffi" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0b/43/bb8b6e8708d49a5ab36781333af092d9f483b198a2710d01281204640055/argon2_cffi_bindings-26.1.0.tar.gz", hash = "sha256:63505c71542a44b68b1e38060450fb006404170da375feb31af153e7f9c6205d", size = 1790807, upload-time = "2026-08-20T07:44:22.492Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e7/d2/0ae991f1b2181e5be49007c574710a800ad36c2978683addb3e67c474e55/argon2_cffi_bindings-26.1.0-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:21ca0396fe5ec995dd54431c32698189666f9224810acfa752e50d2bd94d9df2", size = 25521, upload-time = "2026-08-20T07:32:43.019Z" }, + { url = "https://files.pythonhosted.org/packages/7e/e4/ad91d8297638aa2258aad4501c306aca99480dfe76ccd638173fa3702db9/argon2_cffi_bindings-26.1.0-cp310-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:78de2d65e0b9ea7ce9d1b1c3e87297b2d7305a02c266ee2a2d6910daddd7ee69", size = 27177, upload-time = "2026-08-20T07:32:44.158Z" }, + { url = "https://files.pythonhosted.org/packages/6f/86/5363df11b86d02cf3662208e7406496327649cc90eb365bf6f4e8a54a41f/argon2_cffi_bindings-26.1.0-cp310-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:27f1821903e2ceadcb88ec2b45ef190897b7682449c772f4d9b53e42c520cf29", size = 26597, upload-time = "2026-08-20T07:32:45.172Z" }, + { url = "https://files.pythonhosted.org/packages/f4/b5/a14dcc592652347dad23ee93b278a4da5d2a25c9ed3ebd10d68eea823a4f/argon2_cffi_bindings-26.1.0-cp310-abi3-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d88e5f7e60f28ae0b0cc6b2f16c43e87cd642a196a86f85e0d8bb6fe016fc16d", size = 27403, upload-time = "2026-08-20T07:32:46.13Z" }, + { url = "https://files.pythonhosted.org/packages/b3/81/b4a20d4902af7f796390bf9245ff83c5217dfa7367efa1d14986956c482b/argon2_cffi_bindings-26.1.0-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:34b7d9c24a4165a2c61cc8ae11d44d48c9ce2830fb536cb7914e11fdd9962728", size = 27132, upload-time = "2026-08-20T07:32:47.13Z" }, + { url = "https://files.pythonhosted.org/packages/7e/1b/c8de358af07b1c490e0fcb863ef98e46ddb486e45567aca5a60bd68d9daa/argon2_cffi_bindings-26.1.0-cp310-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:224865cbbcb7a2bd1356741dff12b0134df726b6d44bb7b500df8e303cbd9e81", size = 27588, upload-time = "2026-08-20T07:32:48.087Z" }, + { url = "https://files.pythonhosted.org/packages/48/2f/7ee62a6e79f9309f9d9982d301b22a00010adb580c05c8109b94d7b33de0/argon2_cffi_bindings-26.1.0-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:ffff613aaa9ce6236766e2fc6dc560bb5abde7a2e2416e3db1f9ae395a2b4dd4", size = 26785, upload-time = "2026-08-20T07:32:48.977Z" }, + { url = "https://files.pythonhosted.org/packages/e9/10/960d0ee93d4897741bcaf4799c697dae2d81499f66fd1ed042a7dd54c1f4/argon2_cffi_bindings-26.1.0-cp310-abi3-win32.whl", hash = "sha256:a86c069c91a747a2c4e5c51473590aeb48172fff9b2130d23729a42d98665ecb", size = 23898, upload-time = "2026-08-20T07:32:50.114Z" }, + { url = "https://files.pythonhosted.org/packages/6d/3a/0cc14a05810e6add9bce5e87693334baa2222de5f647fa31781885b6573f/argon2_cffi_bindings-26.1.0-cp310-abi3-win_amd64.whl", hash = "sha256:2c36ff87b5dfaa477d0bd51e9d7f6abdae7c8955d2983c97419085d842154b3e", size = 25730, upload-time = "2026-08-20T07:32:51.091Z" }, + { url = "https://files.pythonhosted.org/packages/4e/db/d83cf2af140547f0b9cdaece05b2dc2dcbf991be4667331d073eff771435/argon2_cffi_bindings-26.1.0-cp310-abi3-win_arm64.whl", hash = "sha256:f9c4420a7a864fe1b86ce35befc95b8e39fb852493b81cf798671ddc265de638", size = 24478, upload-time = "2026-08-20T07:32:52.111Z" }, + { url = "https://files.pythonhosted.org/packages/76/38/de696045960f5b846d428c0fb6c130ed3da87aac2af209b05c193815404c/argon2_cffi_bindings-26.1.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:db0fcd827ca61622a01b220aadfbece01939acf53888f2cb98cd93e9b1e2c97e", size = 15449, upload-time = "2026-08-20T07:32:54.075Z" }, + { url = "https://files.pythonhosted.org/packages/91/0a/c25af768f6b75a5a71e31207f87c540656b2808c015260444a22763221ad/argon2_cffi_bindings-26.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:28524438cd3e723f25412f63d4fd516ff5bae9ae5aa56acbe2a1404398a0cf31", size = 25683, upload-time = "2026-08-20T07:32:55.05Z" }, + { url = "https://files.pythonhosted.org/packages/a8/7e/be212c751ab0bcea7f646615f933bf262e8e50b3f7bef32f861d0a2d066b/argon2_cffi_bindings-26.1.0-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ac82fc756a446b6ccd7139ce70efa9d8bbe541e7ad579a12dcb52764b7175c5f", size = 27311, upload-time = "2026-08-20T07:32:56.166Z" }, + { url = "https://files.pythonhosted.org/packages/a6/ee/f84b28e4afd13d3cac36c1d8fa8c239d2dc2c51cd978d02ee5d5ad98d9bb/argon2_cffi_bindings-26.1.0-cp314-cp314t-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6a4e68eed961a8de6928d1c17ff3dc2a547e0e923c17f8f1cd79fb7bc9502f98", size = 26771, upload-time = "2026-08-20T07:32:57.206Z" }, + { url = "https://files.pythonhosted.org/packages/21/c3/95c07a023691ecd529da9cb6a8f0779e13ebc1bdfaa86d145fdc1c6e7e79/argon2_cffi_bindings-26.1.0-cp314-cp314t-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:151dfaad9de753f4af2a7854e707e4784f2acc434340ade64239c5b104b2d605", size = 27568, upload-time = "2026-08-20T07:32:58.361Z" }, + { url = "https://files.pythonhosted.org/packages/e6/31/3a18e31406d8694b4d6a31573c3e572fff6bed318bb744453eb653766d22/argon2_cffi_bindings-26.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:061a6919145bbf282ebf1f9c59d3135d4833c25313c8595c0d68cf7712ddfce2", size = 27280, upload-time = "2026-08-20T07:32:59.343Z" }, + { url = "https://files.pythonhosted.org/packages/0b/39/d4be4577e178b2397aa5b5575c8a309bf0da2afe05fe0c72c8f398662d63/argon2_cffi_bindings-26.1.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:62ff20cd130c956c7c9144d5fe35228f98b51c579b2439e988b27ef93e16c02a", size = 27776, upload-time = "2026-08-20T07:33:00.325Z" }, + { url = "https://files.pythonhosted.org/packages/71/47/78f4dd96f7411339f723b96fe24039c1bd5835102b8a5ba71ac4ec712ac7/argon2_cffi_bindings-26.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:19423e5d7ac1cc354baab59eaabf18db2ec04ef6593b5abe5a34f323c4a8f87a", size = 26932, upload-time = "2026-08-20T07:33:01.272Z" }, + { url = "https://files.pythonhosted.org/packages/3b/cd/96bfd37434cc0a848a9066c291d84b28846c4c9ea289ed9866b1164d622b/argon2_cffi_bindings-26.1.0-cp314-cp314t-win32.whl", hash = "sha256:4f84cdd868978d7b7350a566c254042d44216d9e37f241f3a6d3b1dfebeede35", size = 24878, upload-time = "2026-08-20T07:33:02.189Z" }, + { url = "https://files.pythonhosted.org/packages/f1/42/d8b6810abd9b1bd2f47ebbccf460da59c9f32e94888bea4f7b137d998797/argon2_cffi_bindings-26.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:2b741888c93147444fdfc851abd81cc207f37f7f7da42062a00deb3888e57da8", size = 26656, upload-time = "2026-08-20T07:33:03.222Z" }, + { url = "https://files.pythonhosted.org/packages/a9/d1/095d95eaf2ed1d9f77268cf3291bde148c6cd56121f8db2c74c1ba618a0e/argon2_cffi_bindings-26.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:6ab674f668d5962a3a4136ae0812519b0f1586874263723a32181d60d64137e1", size = 25378, upload-time = "2026-08-20T07:33:04.332Z" }, +] + +[[package]] +name = "attrs" +version = "26.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1d26985/attrs-26.1.0.tar.gz", hash = "sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", size = 952055, upload-time = "2026-03-19T14:22:25.026Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/64/b4/17d4b0b2a2dc85a6df63d1157e028ed19f90d4cd97c36717afef2bc2f395/attrs-26.1.0-py3-none-any.whl", hash = "sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309", size = 67548, upload-time = "2026-03-19T14:22:23.645Z" }, +] + +[[package]] +name = "certifi" +version = "2026.10.23" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fd/11/b524cbd9bbdaca58608e4cf4053fd463417549e1959fa8d3aa18319f9555/certifi-2026.10.23.tar.gz", hash = "sha256:a9895e6e2758b371e0545e321a3a8fd1fcfd9829ada8824a936dfb16aaaf36cd", size = 136225, upload-time = "2026-10-23T11:36:16.478Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/32/d1/a3652fe2c19134d0d15922177821d863cbd7e842d53a21bbe7e8e3a1b5ac/certifi-2026.10.23-py3-none-any.whl", hash = "sha256:e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1", size = 135082, upload-time = "2026-10-23T11:36:14.763Z" }, +] + +[[package]] +name = "cffi" +version = "2.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pycparser", marker = "implementation_name != 'PyPy'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9e/ef/008a1939e372c06329a3fce4279c02f328488f3526744906eeec3da7ad5f/cffi-2.1.1.tar.gz", hash = "sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be", size = 530807, upload-time = "2026-08-03T21:21:18.939Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d3/7b/d6bbf82b8b96e7391438898c42f5bd96dd02030fd5b64937d248220003e2/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c", size = 194064, upload-time = "2026-08-03T21:20:17.148Z" }, + { url = "https://files.pythonhosted.org/packages/94/e6/bcc91b283be94735e268487a054004f0aa19947b6348fa367db53230abc8/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb", size = 196720, upload-time = "2026-08-03T21:20:18.268Z" }, + { url = "https://files.pythonhosted.org/packages/d9/99/c4b0c17cacdc9c3b8f280026286a9826d6a208c0f047591a3c3ce99b91fd/cffi-2.1.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54", size = 184964, upload-time = "2026-08-03T21:20:19.708Z" }, + { url = "https://files.pythonhosted.org/packages/b3/a9/9db617d05d7367c1ad0ab00b3aa6e6f9281edd689b4ee9ea0e5a84e89c97/cffi-2.1.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72", size = 184962, upload-time = "2026-08-03T21:20:20.833Z" }, + { url = "https://files.pythonhosted.org/packages/67/b8/b42132ca113dc567d37684437b46ca1dafc885902b02a110a02d5b511857/cffi-2.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1", size = 222328, upload-time = "2026-08-03T21:20:22.118Z" }, + { url = "https://files.pythonhosted.org/packages/80/10/c5c0cbf0a657aecf59ef511409734230bf556f05a0d6c9eed7aa5c0a0166/cffi-2.1.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062", size = 209985, upload-time = "2026-08-03T21:20:23.401Z" }, + { url = "https://files.pythonhosted.org/packages/d5/6c/bfa0b87b03b9238148beca990292843c9396ba069b54496596594173de7b/cffi-2.1.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03", size = 208530, upload-time = "2026-08-03T21:20:24.628Z" }, + { url = "https://files.pythonhosted.org/packages/e9/02/4e7d553a7ac4b4238b38b3c1b80d486e9d4436f8d2acbf87a0997fe3f402/cffi-2.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96", size = 221525, upload-time = "2026-08-03T21:20:25.758Z" }, + { url = "https://files.pythonhosted.org/packages/82/1d/a4aaf9babd75acb4d5f223bff71533bee748dd770a382619a798960ee9ba/cffi-2.1.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527", size = 225053, upload-time = "2026-08-03T21:20:26.985Z" }, + { url = "https://files.pythonhosted.org/packages/81/10/5dc0e7bdd18e22107054288283380fc97a06ae3f1656a106908d666a3c88/cffi-2.1.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13", size = 223213, upload-time = "2026-08-03T21:20:28.277Z" }, + { url = "https://files.pythonhosted.org/packages/0b/e9/d0061c364cde06ee43168a0d076ac1da512cbc380d44767b844ba34fe2b6/cffi-2.1.1-cp314-cp314-win32.whl", hash = "sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c", size = 177682, upload-time = "2026-08-03T21:20:44.288Z" }, + { url = "https://files.pythonhosted.org/packages/a7/06/1c3e01e3ba14c39f6d10bfbac52753b7e22259e38088e5cfe1d704918690/cffi-2.1.1-cp314-cp314-win_amd64.whl", hash = "sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48", size = 187949, upload-time = "2026-08-03T21:20:45.623Z" }, + { url = "https://files.pythonhosted.org/packages/87/5b/da4e39efe18eeb89cf580ea9cfc66b6a7c3eadb808fc0cc1d3a295cb5a5d/cffi-2.1.1-cp314-cp314-win_arm64.whl", hash = "sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836", size = 182947, upload-time = "2026-08-03T21:20:46.955Z" }, + { url = "https://files.pythonhosted.org/packages/23/59/40338bf421c5accea1d45158170c87006ef1cd371b05c077e76476949728/cffi-2.1.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3", size = 188504, upload-time = "2026-08-03T21:20:29.495Z" }, + { url = "https://files.pythonhosted.org/packages/7d/47/5ecf1023850036e674c77ec4de86182d309ae344e39e7cba984b7df5d647/cffi-2.1.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2", size = 188259, upload-time = "2026-08-03T21:20:31.291Z" }, + { url = "https://files.pythonhosted.org/packages/2a/9c/92934c3bea9f785b23eba304538c0b4d37a2a96d2431eb3a1bc87a11aa19/cffi-2.1.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94", size = 223864, upload-time = "2026-08-03T21:20:32.571Z" }, + { url = "https://files.pythonhosted.org/packages/4d/45/ba4c93527bc38616a8bd36488acb69a2212d60486794f0c1f318949bbb76/cffi-2.1.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc", size = 211538, upload-time = "2026-08-03T21:20:33.808Z" }, + { url = "https://files.pythonhosted.org/packages/80/e9/b6ef565e452acb932fb0cb5443f44a78efbd1233e566f02b5a83855e9115/cffi-2.1.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29", size = 210688, upload-time = "2026-08-03T21:20:34.974Z" }, + { url = "https://files.pythonhosted.org/packages/9a/95/eff5f0cee78d2eabc7eebffec40d3fc1876b5f3c95582e018bb4b99601f2/cffi-2.1.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676", size = 223803, upload-time = "2026-08-03T21:20:36.564Z" }, + { url = "https://files.pythonhosted.org/packages/fa/01/579d39fb8bef00a335a23d83757b44feb24cd6345a2c451b64cb67b9c362/cffi-2.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e", size = 226763, upload-time = "2026-08-03T21:20:37.816Z" }, + { url = "https://files.pythonhosted.org/packages/8d/b0/0b44f47c60b01b57b6e2bbd92343f13a85a1d93bc46ccf6e47e244acd99c/cffi-2.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f", size = 225688, upload-time = "2026-08-03T21:20:38.959Z" }, + { url = "https://files.pythonhosted.org/packages/eb/d2/3b7176cb570a1d3e27faf67b72f591af508036e0d8b2be2ef9af9e8c84bb/cffi-2.1.1-cp314-cp314t-win32.whl", hash = "sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4", size = 182868, upload-time = "2026-08-03T21:20:40.388Z" }, + { url = "https://files.pythonhosted.org/packages/56/78/31f00c1bcd97c9bbf55f1bfdf5bc809a5de8887473e90bb9960dca825e80/cffi-2.1.1-cp314-cp314t-win_amd64.whl", hash = "sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e", size = 194104, upload-time = "2026-08-03T21:20:41.725Z" }, + { url = "https://files.pythonhosted.org/packages/7b/1b/58496f2ed0a35de575250c02a43ab3cc2c04d494a88fed31c1cabc0fd176/cffi-2.1.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5", size = 186402, upload-time = "2026-08-03T21:20:43.042Z" }, +] + +[[package]] +name = "charset-normalizer" +version = "3.5.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/33/1c/f41d4e74c28ab327ff3acd36053f7ea506c55872d7a90b0fa71aa3ab0c89/charset_normalizer-3.5.2.tar.gz", hash = "sha256:39de2a259fc954455c57274dc94c79d5842774e1247a016aff30bc0efed0f4ef", size = 172659, upload-time = "2026-09-30T04:39:23.398Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/ca/7aa91362a2f77ac8e9e28a9b902a74f7d0e11a851ef0d27a74308da8cd90/charset_normalizer-3.5.2-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:1afb975bd5d68d5ce9f6b6d44fdf2f7e34b895a35e95708a7a91b20a3b51d187", size = 226010, upload-time = "2026-09-30T04:36:27.669Z" }, + { url = "https://files.pythonhosted.org/packages/a8/cf/ac8878d0322cf88a1aad4c7b147db32ca0bd806eb0060957b2e31486dbe6/charset_normalizer-3.5.2-cp314-cp314-android_24_x86_64.whl", hash = "sha256:bbbfc8e28816f19d7c0f1816664980c0a9875d01b27cdf8eedddb639d9e108ad", size = 239266, upload-time = "2026-09-30T04:36:29.434Z" }, + { url = "https://files.pythonhosted.org/packages/c9/6d/9a08d7e0b29b7208e2c6c01dc56c8e0520e7c7beadbbfb024b58fd69c8a5/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7967d08cf06dee78443b874f98c98036f624f3a4e73e11f9f64f5be4d25393cf", size = 206783, upload-time = "2026-09-30T04:36:30.872Z" }, + { url = "https://files.pythonhosted.org/packages/82/44/b0aa350280e6ff5a5492d17cf10460dd39d5ee848f872f7ba2df10607f60/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:4c2b5031f63e331e3839b40aed2dd6f191e9c07edbde303e7876846ea1946995", size = 210449, upload-time = "2026-09-30T04:36:32.625Z" }, + { url = "https://files.pythonhosted.org/packages/7c/8a/40db9aa9f5907bb0e6f8b6d64064bf8852fb33d4b813ff9414911df7647c/charset_normalizer-3.5.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fcff63213e8e6e47770541a4607175404f47cbb3ebea7b6058cc82d524a0e424", size = 367815, upload-time = "2026-09-30T04:36:34.197Z" }, + { url = "https://files.pythonhosted.org/packages/7f/72/9c5e7707b57c8ddfa9ddf7b0b1d009d7fbab9e9e887d5b721060f37e307d/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8d86d6fc60743dc916eb79e2eb1ec4818e21e427731543af40a3021851174a13", size = 247095, upload-time = "2026-09-30T04:36:35.803Z" }, + { url = "https://files.pythonhosted.org/packages/83/09/71e453691e927de4ddf792770cfaab3f49d494e222f66ea5e404bbd5e39c/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7a881931aa470808df94a8c380eed2bbbc76cd9dc622310f99665658c821eb6d", size = 233942, upload-time = "2026-09-30T04:36:37.407Z" }, + { url = "https://files.pythonhosted.org/packages/9f/86/85c84e4da8b27dd409577d9437926ff581c5f9d3c66038dc68c1a526de51/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8024d00c3faf3fc0c16e07a69f4405e8eac7cc0ab15f65fe6cf43827c4cf72b4", size = 273762, upload-time = "2026-09-30T04:36:38.904Z" }, + { url = "https://files.pythonhosted.org/packages/92/08/564955a4b5f2ccb410ab480bbe8c6a18063ff27f2d35458731c4a5335df9/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4d48f2d08b9de5864e2c8744d4461b862fb149a18274abc8b698c45975573438", size = 269514, upload-time = "2026-09-30T04:36:40.469Z" }, + { url = "https://files.pythonhosted.org/packages/18/24/bad3ac4271589df29cf5ce2f5ae490518a5739358052bd0d61209e6fea54/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:34276fd796040bf0993ab33a369aa572e6979c7aab225a88893667ad8eac8f7a", size = 255056, upload-time = "2026-09-30T04:36:42.02Z" }, + { url = "https://files.pythonhosted.org/packages/d6/3e/350d89ad49916b86554d6f5f2d03ec1152148f87e5ff735106c6a03b1a36/charset_normalizer-3.5.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0521c5665880b33d603717defa76c094048900010897909952397feb3039da56", size = 251311, upload-time = "2026-09-30T04:36:43.577Z" }, + { url = "https://files.pythonhosted.org/packages/56/5b/4970a2d154df502e133402906dd04e3ae7cada7b3011283c88d0479a2585/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:eff0ac9dbe711a4aee69bf04a83896aa9b85f19641264053a9f6d48573abb7dd", size = 250190, upload-time = "2026-09-30T04:36:45.185Z" }, + { url = "https://files.pythonhosted.org/packages/88/8c/f1a91bddc8fb47c2889e29ea7ea49a194eb0d9868675d786806519c00d76/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:1503bccbeb36d5527790c3930327704c39af22de3112f1b1666a9f3ce15ee204", size = 237098, upload-time = "2026-09-30T04:36:46.689Z" }, + { url = "https://files.pythonhosted.org/packages/24/0e/bb5dace3cc7e79068425386a6589c19b5a2ab5fefc2a46abea6919683332/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:52aa6992700996af31f375de0c6bacd402b0097fe40b53c426b9f51a90ebabc7", size = 274228, upload-time = "2026-09-30T04:36:48.31Z" }, + { url = "https://files.pythonhosted.org/packages/9d/79/b849ad523017ea9f5a45581bbebed91439e0cf42fd2860a6f64e358eb5a6/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:e09a3942ecbdee5cce73ea9d42da82b81b72ac1bf031ce069b93b5adf4eac8cd", size = 252401, upload-time = "2026-09-30T04:36:50.091Z" }, + { url = "https://files.pythonhosted.org/packages/89/8c/75469d690cf47200bce8f6cad7655724fc23148e147abfc5ce78b5f65863/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:c7c9ab723cde841fefb34efbad91e87f00a674b1fe1cd0784fde742bf2c154dc", size = 271846, upload-time = "2026-09-30T04:36:51.719Z" }, + { url = "https://files.pythonhosted.org/packages/26/cd/6d52d3c7437cdcf2e310ce9f28f282e733d4ef60ed19105d1819c356255f/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ddc7dacc8ece3a182e7f15cb862d1fd616b46d076cb1ae9dd232b2c38b655874", size = 258151, upload-time = "2026-09-30T04:36:53.234Z" }, + { url = "https://files.pythonhosted.org/packages/f7/4c/070b38bdb5f49a70199fce923ec0726a49536a63ab262abbfcaaf351110b/charset_normalizer-3.5.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:ee43c17b173d46a3212baa6ead3ae258eeabdae48c263a01ccf0218c366dd655", size = 143570, upload-time = "2026-09-30T04:36:54.816Z" }, + { url = "https://files.pythonhosted.org/packages/81/84/9ebfc8ed6c8c4fcd8e726ff6bf220cc8deb3966e31dce9be8dd8aa017e64/charset_normalizer-3.5.2-cp314-cp314-win32.whl", hash = "sha256:4f87960d57feabfb618e4e0af6e7371645fa26a277860739d6e5d6e0012c92f0", size = 186412, upload-time = "2026-09-30T04:36:56.643Z" }, + { url = "https://files.pythonhosted.org/packages/d1/78/5ed86f743d4bc350db307e7636419a0a5ee1d91806d30c7f667bd5c80dae/charset_normalizer-3.5.2-cp314-cp314-win_amd64.whl", hash = "sha256:e4e81e09c1578b8df602e3db08b0b3ea0a6947ad612f52bf8dc5ea8d47691f0c", size = 210965, upload-time = "2026-09-30T04:36:58.205Z" }, + { url = "https://files.pythonhosted.org/packages/53/94/a3a7698e9b1a395e1eb99ccd9a324be9347973bff4e72db2a06496d7cd27/charset_normalizer-3.5.2-cp314-cp314-win_arm64.whl", hash = "sha256:80d02b6f04e92601a081dd97b23d3128033098bff5d35d392ddcc0476ea11253", size = 200406, upload-time = "2026-09-30T04:36:59.764Z" }, + { url = "https://files.pythonhosted.org/packages/c1/48/c5dd00d5ef7791f02666de250a5bb6071e29b7e133cf4b835800b6d3bc27/charset_normalizer-3.5.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:dca9ab98072a5a54ebacebdc45f53e645336b320c667410b061be1ca588ae709", size = 396871, upload-time = "2026-09-30T04:37:01.543Z" }, + { url = "https://files.pythonhosted.org/packages/12/c8/8379554b42e8368161d898476686947a0fdbd3e8865170d7909dcabfdee8/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f0aa869112ef88429ae17820d99c3dd9504c9e9c671d3c246f3d7442cb051084", size = 249711, upload-time = "2026-09-30T04:37:03.111Z" }, + { url = "https://files.pythonhosted.org/packages/4a/eb/2ddb1035d17320caa9f41682935123a9a250277b261c3efc86b2d2a21343/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c0afc6800ba57ccc350374c5bd6150419915d95ce93cdbab2d783d75eaf30ecb", size = 231146, upload-time = "2026-09-30T04:37:04.721Z" }, + { url = "https://files.pythonhosted.org/packages/4a/24/2ecb4bde104322cd7859d6594fcfa74649f8d90b3221c9feecbef149875b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7dcd882da75ef9adf94903b1e3b9419e8aa8fb4c7396822b834b9ef7fb96954f", size = 271552, upload-time = "2026-09-30T04:37:06.295Z" }, + { url = "https://files.pythonhosted.org/packages/3f/98/9d5f6ebc3aee9fef5d30b4aff11fb2ab7a1222b4064f8ef2c7c87cde217a/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2e06a3a98f916dd41d27f3105e02e7a40181c98c94b9158733d03a6f80506c09", size = 269810, upload-time = "2026-09-30T04:37:07.905Z" }, + { url = "https://files.pythonhosted.org/packages/09/e1/a3b06a10461b1b7628853c934c644e03bc28e42767116afb52f19a56519b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bd128f206a7752ae1f2ab6c61bf8a24ba28913a10df8b14c2637b973ff97a80", size = 259845, upload-time = "2026-09-30T04:37:09.554Z" }, + { url = "https://files.pythonhosted.org/packages/fd/d3/6f561f74a296cf27d61775a1dc665ad13f3bff6a798810ca05907f37a7c4/charset_normalizer-3.5.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c8f3d67aeaf55f017982b73683f0e7342ba2f6635a78f69ce89ebb26aa411e5c", size = 252825, upload-time = "2026-09-30T04:37:11.274Z" }, + { url = "https://files.pythonhosted.org/packages/26/9f/69e13ca3b18f43e0eafcd34c04a45b732ae22a43b54a5fc9e119103356eb/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:fe9753dfee015c570d73df76f899f18444d41388bffcde097deba51c4fadbb9f", size = 252659, upload-time = "2026-09-30T04:37:12.941Z" }, + { url = "https://files.pythonhosted.org/packages/73/a9/ace29806a0dae18939919c76ba526472d83214afa101105fabff2cf30625/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:92888bb3187c5ba50500b00b3b310c9f2c651709d28036077680cb5255450a03", size = 238819, upload-time = "2026-09-30T04:37:14.659Z" }, + { url = "https://files.pythonhosted.org/packages/f8/c1/6116d52a2e3311ec80f21f5fb5e17b27405f10b9608af8f6e69516841a1b/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:d008d90a7f2471519aef0c90dfbe73b3e6e4d5e66ac48e19154c17e89e98b604", size = 272973, upload-time = "2026-09-30T04:37:16.346Z" }, + { url = "https://files.pythonhosted.org/packages/19/aa/9955c7e93bba10a9c7e8f7a5031b7ced66f3a1883a55c00712b8d5850ff3/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:31f3930700408d211f13378ccbe1c40845d8da54bd0681fac3a9b5aae81c7aa8", size = 253692, upload-time = "2026-09-30T04:37:18.212Z" }, + { url = "https://files.pythonhosted.org/packages/bb/33/2a6ae7fdc1b10cb581cef91addd8cdfc5f40d50abb5702309369d5834579/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:2a925889534b3748302dae5dead07cc13480de1dac3aea80a941b729b471ef93", size = 268757, upload-time = "2026-09-30T04:37:19.877Z" }, + { url = "https://files.pythonhosted.org/packages/a2/22/80992720a0282cd39bba1db35868e6b9c22f41281160143a836544bc1d8a/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f5ec61164adcec446f8969a3358ec3f9b26bbda3b9213e5586d219afa8df2915", size = 262220, upload-time = "2026-09-30T04:37:21.583Z" }, + { url = "https://files.pythonhosted.org/packages/92/9f/181fd07e1bffea1d95cd80c84ac537354f50699c22cfc4d3c02b6fc16208/charset_normalizer-3.5.2-cp314-cp314t-win32.whl", hash = "sha256:598a11a2c7ebaa5334bf698bf29568c9c390abac6a154d8170fedecd1cea38c5", size = 197797, upload-time = "2026-09-30T04:37:23.235Z" }, + { url = "https://files.pythonhosted.org/packages/49/1c/25d8415ec1c4f2f41f1680435e4c87cfb378ff2f677d950946f2a45d0632/charset_normalizer-3.5.2-cp314-cp314t-win_amd64.whl", hash = "sha256:7fdde2c9fd9e3eca40631e024664cf2584272cc8f96308cbe5fdfc930f51d8bc", size = 222765, upload-time = "2026-09-30T04:37:24.891Z" }, + { url = "https://files.pythonhosted.org/packages/3e/b4/46b48f013dadfc0d0d33b375438e31bdf5a989dc68389c6bf627054d4df9/charset_normalizer-3.5.2-cp314-cp314t-win_arm64.whl", hash = "sha256:d1befeed746d247c81127bb14de9dc3d30edb6e5976d34f83f86ed262b1d9105", size = 210985, upload-time = "2026-09-30T04:37:26.634Z" }, + { url = "https://files.pythonhosted.org/packages/8c/ab/176fbfd5b64939c55d652366aa5b9ef1d767af207a3aa6ebeb0d226c484d/charset_normalizer-3.5.2-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:4275811936e2f06feff5e598fb42a1b7ae852da8e39605211892b56b81a34efd", size = 331815, upload-time = "2026-09-30T04:38:26.216Z" }, + { url = "https://files.pythonhosted.org/packages/7e/84/371eac6b30bdbcbf2d632a1a01809103459216fcaae61b8b8d922c1bfb8a/charset_normalizer-3.5.2-cp37-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1c50fe28bbc2ced33386f298650d91218076c05420e6cbd790b913adc41659e7", size = 253276, upload-time = "2026-09-30T04:38:28.032Z" }, + { url = "https://files.pythonhosted.org/packages/43/6f/c4fbae58febff71709c51bc7e18fdfa55341dc382704740f9f0cbf03817b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d19fbd981a488e22cd04883659ca6b08f50b5974f9fd7c95655ef6a043e5893f", size = 241239, upload-time = "2026-09-30T04:38:29.732Z" }, + { url = "https://files.pythonhosted.org/packages/61/71/458c3f42164a07d0c5210798e9e704b39e540a6793b05aba67f3a35243a9/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0fed1d06615f022ee3b13caf5e8b180cfea32bb2c5aded8a9d44277afc040f93", size = 231121, upload-time = "2026-09-30T04:38:31.462Z" }, + { url = "https://files.pythonhosted.org/packages/09/54/ab9e89367076f6331bb6c65c4bf14a5361fa5191cb6561bf534f18504e1b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:838dcc90063569a0448120554591a1d6c4a4ffe11babf048908793154ab86ade", size = 260350, upload-time = "2026-09-30T04:38:33.239Z" }, + { url = "https://files.pythonhosted.org/packages/7c/c1/061431ecc688d9d76602502cb57cc01e691e682c18f1beb45f9673b5bbd2/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2ce45c6627b22c47e390bc91a41c3d13032192e699fa0bea96e9671b373d69b0", size = 255430, upload-time = "2026-09-30T04:38:34.865Z" }, + { url = "https://files.pythonhosted.org/packages/8d/1f/20c8949f0676f7ab811abdeb7f4d7f1cbc6e61ff20bef08b44edeb092bc8/charset_normalizer-3.5.2-cp37-abi3-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0774bf9bf620249fee3e0b8b9fd3065de213be30f3aa94ce2494b3b638949e26", size = 250612, upload-time = "2026-09-30T04:38:36.649Z" }, + { url = "https://files.pythonhosted.org/packages/2b/9e/46f2fa4c431fc98c4ae76a8cb5bdca54e0341e3cfc3fcfd8e82740250818/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1db38f4c5496827c1a501846d64d14c3b80c7e6714e406cd7dc36a9899fa1011", size = 242083, upload-time = "2026-09-30T04:38:38.26Z" }, + { url = "https://files.pythonhosted.org/packages/bd/39/559be29a0c0f086e0bba6922babd38916cc5e0b58ced4de13ee01ea05508/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:304d8e4d493af723536393eee0c689eb7813f4a474c8b479dee63f1fdd98f621", size = 232738, upload-time = "2026-09-30T04:38:39.81Z" }, + { url = "https://files.pythonhosted.org/packages/ff/6c/387b0e4f756a282831c1d9fc6aeb6c51ca4507ca202767c8de15ce9b12e2/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:9b7f416ff0978e2f2249330527f0ad6fa02f4932e6199692d3b52da2048c19e4", size = 260703, upload-time = "2026-09-30T04:38:41.346Z" }, + { url = "https://files.pythonhosted.org/packages/96/92/1fdf015f09ef449f50d3ac4b67c90887c9c318b727daa95cc4f866e6521d/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:01077390b03f7988f11d700a2194e69b119741a86b1a638b1db88891e3eced8e", size = 247622, upload-time = "2026-09-30T04:38:42.937Z" }, + { url = "https://files.pythonhosted.org/packages/dc/3c/8e7b8a5671ad5d433669fb2a76f1a0164df2d9b1718b0206bc2a16d840cc/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_s390x.whl", hash = "sha256:7e841fb9010836c992c9f12fcbd43a831de93a5f726fc1ccd8ca1d0268c5014c", size = 257500, upload-time = "2026-09-30T04:38:44.604Z" }, + { url = "https://files.pythonhosted.org/packages/b4/f0/45b579df5cabc1d5d53ea1cc35e8437d3ca768c0acccc7041517cb6fbb32/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9cae88599c7219005d879f98e5ed53341e9a122af585e1091200358a3003d2a0", size = 255100, upload-time = "2026-09-30T04:38:46.289Z" }, + { url = "https://files.pythonhosted.org/packages/31/68/fdec18a343f5fb3f310588dd478b09ac4799e0b187dbade3a8cd776f03ef/charset_normalizer-3.5.2-cp37-abi3-win32.whl", hash = "sha256:01b0c0d2262a9e28e8484a278c7e1b5d650e3ac8cf2683d2967e25899f208bdf", size = 174499, upload-time = "2026-09-30T04:38:47.999Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8a/b618149cc5207943a0242068d7a27897f56a62947b5a039085f2a22029f8/charset_normalizer-3.5.2-cp37-abi3-win_amd64.whl", hash = "sha256:9f56f72050826f63dcee7a7f55b0a77168cb3bfc553fd405e7f8f9ece75a4036", size = 200092, upload-time = "2026-09-30T04:38:49.707Z" }, + { url = "https://files.pythonhosted.org/packages/03/cf/4c66866fa9e2b1c78e3c911516d1de497a677b7ac60f1eceda74ce777ca3/charset_normalizer-3.5.2-cp37-abi3-win_arm64.whl", hash = "sha256:40ab6bffa02ae10a0581e6c198be7d2d8ca5c2a0c64e4ed3465d766df457573e", size = 294363, upload-time = "2026-09-30T04:38:51.312Z" }, + { url = "https://files.pythonhosted.org/packages/fc/ad/d07d7862a62ffa6d79d68074d14823243dd235a77c45262acbf6adeb28bf/charset_normalizer-3.5.2-py3-none-any.whl", hash = "sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685", size = 68872, upload-time = "2026-09-30T04:39:21.828Z" }, +] + +[[package]] +name = "click" +version = "8.5.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/45/37/edbf1b0707709013c0cf2e8317e03d97ed29bf4cac709fe328904ae92a38/click-8.5.1.tar.gz", hash = "sha256:9bbfada76703fd1d784b83eea012e3e8c6a001a876543ef104fa56aaaeb072b4", size = 399151, upload-time = "2026-11-06T17:37:01.021Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/31/7d/164b7ffc8624fe9efb4221bf9af485d5c1e41b9ae118045d2b6dc5457d8b/click-8.5.1-py3-none-any.whl", hash = "sha256:8bb5376d2006950386f8c6427613334a2acadc5f559cb80e638d00b4df957e37", size = 126163, upload-time = "2026-11-06T17:36:59.287Z" }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, +] + +[[package]] +name = "contourpy" +version = "1.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "numpy" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/83/5a/a55177dd22553a277388e8a1b3220e92de91bacb28356cdc73caa240121d/contourpy-1.4.0.tar.gz", hash = "sha256:20156f5a1ac4f8ce02656e39a61e82164a3d359796dc8026f75b062783d500e1", size = 13323726, upload-time = "2026-09-11T19:05:05.808Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/75/b0/b548628c8dddf6e5e0a981b7fa8e4c008024df09c7d17c6a9e271edfa0b3/contourpy-1.4.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a3e67bc1a6a4618a1dac7c3053a9ffece5ddfa2046b2670b342cf430bb0b87d1", size = 297354, upload-time = "2026-09-11T19:03:35.017Z" }, + { url = "https://files.pythonhosted.org/packages/04/5a/513484208742f65af2648c519f0b7ab034616e183c4403538024c136a1ab/contourpy-1.4.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:072a702e2e178f4fcf96f04775d0c059e4c917925abf0d3208ebb6865df3c23d", size = 283729, upload-time = "2026-09-11T19:03:36.818Z" }, + { url = "https://files.pythonhosted.org/packages/35/da/5a6562febc994b2c4bf9d01e57a50458ef8a2051bb3e7b35a00333e0fc26/contourpy-1.4.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:404dbcd9233513dfd1323b66ea593fef90e899f658f6b8a9ed8e93bd0ca669db", size = 357819, upload-time = "2026-09-11T19:03:39.058Z" }, + { url = "https://files.pythonhosted.org/packages/6d/99/7b358ce888aaa426f755daa096c99c59d17c352037344e836f20e5d3b957/contourpy-1.4.0-cp314-cp314-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:61624f6722480aa7e168fd746164e7bfdf48f8ccb6542f1613741200dc37e2b1", size = 407795, upload-time = "2026-09-11T19:03:41.293Z" }, + { url = "https://files.pythonhosted.org/packages/be/02/34d7548adf08c60967435d79d7a90882eacc84f5093435287974c7e99943/contourpy-1.4.0-cp314-cp314-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2e741a39dfc96babe1722561e81351aeec104526c57dbe91c167c1db606c2d55", size = 408552, upload-time = "2026-09-11T19:03:42.728Z" }, + { url = "https://files.pythonhosted.org/packages/cf/8c/9677dad226e5aaac5b823d5b09d881ebc32ff1648af417597649841e516c/contourpy-1.4.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e439ab450c93455feb0218532ded3e946ec7a9b5f459069f122cfa44b89229f6", size = 384850, upload-time = "2026-09-11T19:03:44.402Z" }, + { url = "https://files.pythonhosted.org/packages/08/f5/e3fbeaa489c223629fbb434737cb3de4ecaca9cae4825e77b92490f640f8/contourpy-1.4.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:417be048f7e122cefbe2a34c51a1f2b0410f8eb35796f794d45475ddb7872d9d", size = 1357601, upload-time = "2026-09-11T19:03:46.746Z" }, + { url = "https://files.pythonhosted.org/packages/88/be/55fec293d342c222ed58a5d4056df4362e192af2e59527a3d5d822de8828/contourpy-1.4.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:43d80072a32299bf945de0a6dd4e034ea0162e832261de2e07a274a5adbba9c9", size = 1427340, upload-time = "2026-09-11T19:03:48.745Z" }, + { url = "https://files.pythonhosted.org/packages/86/40/0faabf453edf59b0e3633381d7ca72c3414fb9b72b5cbb08b06ed792d3e5/contourpy-1.4.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:fa1b787362a3856e63dd2b89449f6c384d55ee1beb8f94f4bcc871b40f02462c", size = 118355, upload-time = "2026-09-11T19:03:50.047Z" }, + { url = "https://files.pythonhosted.org/packages/38/0c/7ea75aa3559ae8a6805015e15a19c92b6480752ecc92526361e5776e88c5/contourpy-1.4.0-cp314-cp314-win32.whl", hash = "sha256:738c44fa71735a617f36da58e32810512407d283d5d1bb5b1cecb00d7eeba7cf", size = 356977, upload-time = "2026-09-11T19:04:11.401Z" }, + { url = "https://files.pythonhosted.org/packages/15/41/3df8cc14bb572c8b447f9dfbc876703f0f2f2896058285b5c87a1d4a638d/contourpy-1.4.0-cp314-cp314-win_amd64.whl", hash = "sha256:181bea01bc742734ae672fa00c717d855dd35e1f029536406538c52e7b0cd73d", size = 240101, upload-time = "2026-09-11T19:04:12.772Z" }, + { url = "https://files.pythonhosted.org/packages/66/01/ee6830a5aa4565662a345172f6f35eeeed625d20f1c9d4ecd35318fe4ade/contourpy-1.4.0-cp314-cp314-win_arm64.whl", hash = "sha256:64039341e2d8804f1a13bda8c69083eab935167bbd7e856cf096241f17d5bd45", size = 576359, upload-time = "2026-09-11T19:04:14.983Z" }, + { url = "https://files.pythonhosted.org/packages/51/af/49ee9c9cf012699e505c1b63c531cc99f19df50f205173092c4d541e3ec7/contourpy-1.4.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:ef47fef9a912c77e3d84b014f701e5a9340f25703e9ed3bcebe37f91fb69dc49", size = 313601, upload-time = "2026-09-11T19:03:51.452Z" }, + { url = "https://files.pythonhosted.org/packages/ad/59/ce411ab2be0f805038626d8f4ca9ce563487ff51ff6c363e7512271564ed/contourpy-1.4.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:96019f059bcb3774acc0104be3360a57b36d33eaaa2e1d7f77c800ca8e07618b", size = 302812, upload-time = "2026-09-11T19:03:53.022Z" }, + { url = "https://files.pythonhosted.org/packages/95/b0/390915f9af14c1e2d3b2a9ad99d85b98df4352346a51e368cbb825f813c3/contourpy-1.4.0-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ddf5a2596d716fd3793434844caf31abc7a40b1e8718431420c89858268fb909", size = 348996, upload-time = "2026-09-11T19:03:54.594Z" }, + { url = "https://files.pythonhosted.org/packages/c7/85/e0952576d54322f3e9983b1e049a7a31f42ce82c5c29d01821e6dd3780d7/contourpy-1.4.0-cp314-cp314t-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:dd59df9e2fb0aff8bd7fd1adb9f349b7c835245a9d0f18c2f2deeb537190f2b1", size = 400272, upload-time = "2026-09-11T19:03:56.822Z" }, + { url = "https://files.pythonhosted.org/packages/d6/7d/f13543a5e1598e4a4ad01d9d5e2d65f9c09c37660616429913d606c5977d/contourpy-1.4.0-cp314-cp314t-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b7794ea07cab575633daad8d6e963b662053391022294d3aacc1d9ba9ef54114", size = 412895, upload-time = "2026-09-11T19:03:58.487Z" }, + { url = "https://files.pythonhosted.org/packages/c5/a8/6e5eaff53507dfd2dfc428240eecda32453067277d4b3e7ca71210b2d611/contourpy-1.4.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a1c8a74744fa746eeaa12f0f9ed7f8b4add9d8f1b14d95e3b5e133675eac888f", size = 377060, upload-time = "2026-09-11T19:04:00.122Z" }, + { url = "https://files.pythonhosted.org/packages/16/a3/d00e44d35511b3cead5bd794ee672d4eecf30d9de4ceac57a49d6204064f/contourpy-1.4.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:107ec46f7aa1664266d69b1181aadc953d58d39f7d8d648fa5b795d4a060b0de", size = 1345688, upload-time = "2026-09-11T19:04:02.705Z" }, + { url = "https://files.pythonhosted.org/packages/1e/01/1e533b0cae32c8edd63fe40435ec3b29345dab87321afcd28722d7f957d1/contourpy-1.4.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5a4c89c7f38a0d7a94356d74e3391073c4325c4d47ad2fd065c3fe7dbae16c0c", size = 1416140, upload-time = "2026-09-11T19:04:04.77Z" }, + { url = "https://files.pythonhosted.org/packages/6d/0c/4ee66759f00d6a5d6909782f14f441d639fa18a4a43142e334351efc47f8/contourpy-1.4.0-cp314-cp314t-win32.whl", hash = "sha256:912c6afaa106e2f74ba22b30416b77ef7eb94e3bdc5a4df51ab147845dba9b6d", size = 371982, upload-time = "2026-09-11T19:04:06.233Z" }, + { url = "https://files.pythonhosted.org/packages/e6/ac/b3e5324138c3e3741f526663f4f265f4f69dfdf26415a39428940864a5f6/contourpy-1.4.0-cp314-cp314t-win_amd64.whl", hash = "sha256:ef9440f6f8506246269a82734f5ff9e2e4c5e775b3996fc883cc491c5257eca6", size = 262907, upload-time = "2026-09-11T19:04:07.882Z" }, + { url = "https://files.pythonhosted.org/packages/19/37/c9aa45e47819dc15a38fc5c81a2fb987fde55e9d3b991fbde514e3b6b5f5/contourpy-1.4.0-cp314-cp314t-win_arm64.whl", hash = "sha256:fc9feef8f1f001c5b87decadc67c4a5d1eebb62ca39c4763d1237ff62cf2b707", size = 587071, upload-time = "2026-09-11T19:04:09.898Z" }, +] + +[[package]] +name = "cycler" +version = "0.12.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a9/95/a3dbbb5028f35eafb79008e7522a75244477d2838f38cbb722248dabc2a8/cycler-0.12.1.tar.gz", hash = "sha256:88bb128f02ba341da8ef447245a9e138fae777f6a23943da4540077d3601eb1c", size = 7615, upload-time = "2023-10-07T05:32:18.335Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl", hash = "sha256:85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30", size = 8321, upload-time = "2023-10-07T05:32:16.783Z" }, +] + +[[package]] +name = "fastapi" +version = "0.143.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "annotated-doc" }, + { name = "opentelemetry-api" }, + { name = "pydantic" }, + { name = "starlette" }, + { name = "typing-extensions" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/38/d5/b0aeb0b303650ac87b0411de4aaf3f901b06042dcc3fb00f30b97b7ff585/fastapi-0.143.3.tar.gz", hash = "sha256:b9ab567ee57afb4454004ce04c889f8f0160ac47946b99795887cd6e88484848", size = 469834, upload-time = "2026-10-16T14:14:13.31Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2c/1a/03d246befcf307219bb2161c97d8c5d314f84125bf7dd245730a28589828/fastapi-0.143.3-py3-none-any.whl", hash = "sha256:75e8bd68e2f52f77d29b2879749c257d64de2d85282d25270caf2bfccce5efe5", size = 144849, upload-time = "2026-10-16T14:14:11.763Z" }, +] + +[[package]] +name = "fonttools" +version = "4.68.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0c/b5/672312ae80ce8b8eb9779c56052a24c8f36652aa7293a1a420553bcf03e5/fonttools-4.68.0.tar.gz", hash = "sha256:73294e233070f71e2b3653b6bd8564af676d57f26d075761fb06d1ab2e4a7a5d", size = 3848583, upload-time = "2026-10-27T16:30:26.451Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1a/70/ee6655887166a111d0c4d7ca61f03c90b141cdc6f70c85138fd0b8bfa2e3/fonttools-4.68.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:b2ee7b9c1a5e1d637073c39b0978956febad7e862a1269719f527934c65535a4", size = 3145377, upload-time = "2026-10-27T16:29:03.757Z" }, + { url = "https://files.pythonhosted.org/packages/d6/37/66e7ab417660cb2c65889eb5ad8d80cc5a7cb2c09dd1becdbe6d56bac4fe/fonttools-4.68.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:9d80813ae74b969ef2166a3040b591826e80ecd879bdeab7f13f4e8eaf08b345", size = 2634889, upload-time = "2026-10-27T16:29:05.651Z" }, + { url = "https://files.pythonhosted.org/packages/0c/ad/da985167af1988b82112cf133e826cf075cecb28d120778589265cb3125d/fonttools-4.68.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a6837def5de49772b82683dadd836df214def04b307cb98d0e7723d49e7e15bb", size = 5420416, upload-time = "2026-10-27T16:29:07.502Z" }, + { url = "https://files.pythonhosted.org/packages/b7/67/e9f2eb2aed41d4ed251a3c6f66e104685f0a03d8ded7ed87f1f0fc63898c/fonttools-4.68.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cbb63b26d33acc3eb61f544c22a0cadbe01682fc064b266bb0e33fa66cea853f", size = 5363969, upload-time = "2026-10-27T16:29:10.172Z" }, + { url = "https://files.pythonhosted.org/packages/e6/06/c4510ac6b43b374b1b707b99fdd0ba1d4059d2fb516584a412c0396fedef/fonttools-4.68.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:81ea963d4390bb9e79f91a905310d91ac7ff7675d8e1c0cfc0f1712521c41a43", size = 5362373, upload-time = "2026-10-27T16:29:12.298Z" }, + { url = "https://files.pythonhosted.org/packages/e0/ef/ea0bf283a30a88a84a47078ff39f7bdefa0346a8bd7737439fd33084031f/fonttools-4.68.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:3b9b87645bcdbfc3f30240e2758a37bbef4fdd0f708683b2bfceb60975d63e59", size = 5495553, upload-time = "2026-10-27T16:29:14.614Z" }, + { url = "https://files.pythonhosted.org/packages/95/c0/d493f8c8974859e57920ce193ffbe277423da7eebccbb9241bc31e1b5f1d/fonttools-4.68.0-cp314-cp314-win32.whl", hash = "sha256:39913c1f576af86c69519dc351302332561ee62b39fed04dcfa8019d9c2d129f", size = 2484057, upload-time = "2026-10-27T16:29:16.45Z" }, + { url = "https://files.pythonhosted.org/packages/96/41/c9ca629ffe1b883c1422540a8a11a4ea09616366ab585ab4ee9833f2cd75/fonttools-4.68.0-cp314-cp314-win_amd64.whl", hash = "sha256:1782f2cf952eb262c4126b1f57b5f0e027e71bf2b632350a033dec526f448428", size = 2536130, upload-time = "2026-10-27T16:29:18.399Z" }, + { url = "https://files.pythonhosted.org/packages/17/40/f6264c988076393db3e0b00d6d0ea2a53ce40d445e8a196be241d16d362c/fonttools-4.68.0-cp314-cp314-win_arm64.whl", hash = "sha256:f0b39924698a85bee107184a3c2ee9ae27248144977160534f7d558831db50cf", size = 2508386, upload-time = "2026-10-27T16:29:20.318Z" }, + { url = "https://files.pythonhosted.org/packages/c5/d8/a4d710362f3f23aecc16015eeed1d602187189af7f63a63546233ad2fa73/fonttools-4.68.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:956230858b7a7bb9f5e0971ae07dc64b6155307304acd8c62aedca30e6aae874", size = 3219047, upload-time = "2026-10-27T16:29:22.337Z" }, + { url = "https://files.pythonhosted.org/packages/4d/4d/0d516a1d3d34e84c56237ba1d8dfed8575c350b0e8d39aa30b518d089daf/fonttools-4.68.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:b637d82a488116da2869afbddccfd93ca14e3c47b404c8ec5a9bad9d4381b08c", size = 2668060, upload-time = "2026-10-27T16:29:24.536Z" }, + { url = "https://files.pythonhosted.org/packages/4d/40/56893c685cb1ee7d7ee30d0ac94adf92020787cf5a8e15c2e4e6944f0bec/fonttools-4.68.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:419bf78474adaa6fb320a06822f4f941b19345d598a9de379d6e2f0e4d819df6", size = 5593080, upload-time = "2026-10-27T16:29:26.51Z" }, + { url = "https://files.pythonhosted.org/packages/41/b6/bc0bbad6f1aef22519c4e731c6dc8655e92c6f7204277ec36502ea7e76cd/fonttools-4.68.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fe80d05dd85e6ac58d0cd4fa10ddb96252a6f1046ee0fd00cd1d48f0c25921ac", size = 5399669, upload-time = "2026-10-27T16:29:28.969Z" }, + { url = "https://files.pythonhosted.org/packages/c1/b4/4404a91dc699dd430732d366996cef6d8c8f61c758b5e544a76903db580a/fonttools-4.68.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:cea1969b9bfe230cb3fd66f1c66da5a63a9a917d9cd25a0839524d3d1a88b40e", size = 5460446, upload-time = "2026-10-27T16:29:31.15Z" }, + { url = "https://files.pythonhosted.org/packages/56/09/66876a0d1a01f7c16eb9f7c8ebcf064ebbd6b249f837691cb5a35780316a/fonttools-4.68.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:fde43b9785c7f105aa563b6b5481edabea4ab6be7d9ef14ff4d76225950923e8", size = 5495792, upload-time = "2026-10-27T16:29:33.455Z" }, + { url = "https://files.pythonhosted.org/packages/15/7d/1d702dc628e6f5b0d63be906025afc5e5b487cee48128943bb0a71d2bcb3/fonttools-4.68.0-cp314-cp314t-win32.whl", hash = "sha256:a325e6d7f96f20b3004658c5ed17ccfce5b66277b43ccd883035c61be6945275", size = 2517805, upload-time = "2026-10-27T16:29:36.929Z" }, + { url = "https://files.pythonhosted.org/packages/f3/42/8fa0741e08ae16be66a0d2e6d67f918fa0f2961bad70ccef84f9af0767cc/fonttools-4.68.0-cp314-cp314t-win_amd64.whl", hash = "sha256:e80ac66627a01698675ce6e98d90ea9817d1e06644129ec8b0093f66ff1cbeac", size = 2567666, upload-time = "2026-10-27T16:29:40.081Z" }, + { url = "https://files.pythonhosted.org/packages/13/2f/b73cf496570e8d2c66a6099f825505283ef8e944bd588e0b63036d6b2412/fonttools-4.68.0-cp314-cp314t-win_arm64.whl", hash = "sha256:83bd3d558c15f4e1d87b8f3fcfb337c2bce63c7e5c05212abc8fdcf15e216c54", size = 2532338, upload-time = "2026-10-27T16:29:42.073Z" }, + { url = "https://files.pythonhosted.org/packages/35/74/4ea331ecc65ba05a58b1e4e8ccd604c8a15565f876dfbf93fc2a2ea2e22b/fonttools-4.68.0-py3-none-any.whl", hash = "sha256:d76f8fdcb6936f5e1045a0c9dd721a4bf11112e60d1e243bfa1d39f06a8b3104", size = 1248357, upload-time = "2026-10-27T16:30:24.389Z" }, +] + +[[package]] +name = "h11" +version = "0.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, +] + +[[package]] +name = "httpcore" +version = "1.0.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" }, +] + +[[package]] +name = "httpx" +version = "0.28.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "certifi" }, + { name = "httpcore" }, + { name = "idna" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" }, +] + +[[package]] +name = "idna" +version = "3.20" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" }, +] + +[[package]] +name = "iniconfig" +version = "2.3.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" }, +] + +[[package]] +name = "jsonschema" +version = "4.26.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "jsonschema-specifications" }, + { name = "referencing" }, + { name = "rpds-py" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b3/fc/e067678238fa451312d4c62bf6e6cf5ec56375422aee02f9cb5f909b3047/jsonschema-4.26.0.tar.gz", hash = "sha256:0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326", size = 366583, upload-time = "2026-01-07T13:41:07.246Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/69/90/f63fb5873511e014207a475e2bb4e8b2e570d655b00ac19a9a0ca0a385ee/jsonschema-4.26.0-py3-none-any.whl", hash = "sha256:d489f15263b8d200f8387e64b4c3a75f06629559fb73deb8fdfb525f2dab50ce", size = 90630, upload-time = "2026-01-07T13:41:05.306Z" }, +] + +[[package]] +name = "jsonschema-path" +version = "0.3.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pathable" }, + { name = "pyyaml" }, + { name = "referencing" }, + { name = "requests" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/6e/45/41ebc679c2a4fced6a722f624c18d658dee42612b83ea24c1caf7c0eb3a8/jsonschema_path-0.3.4.tar.gz", hash = "sha256:8365356039f16cc65fddffafda5f58766e34bebab7d6d105616ab52bc4297001", size = 11159, upload-time = "2025-01-24T14:33:16.547Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/cb/58/3485da8cb93d2f393bce453adeef16896751f14ba3e2024bc21dc9597646/jsonschema_path-0.3.4-py3-none-any.whl", hash = "sha256:f502191fdc2b22050f9a81c9237be9d27145b9001c55842bece5e94e382e52f8", size = 14810, upload-time = "2025-01-24T14:33:14.652Z" }, +] + +[[package]] +name = "jsonschema-specifications" +version = "2025.9.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "referencing" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/19/74/a633ee74eb36c44aa6d1095e7cc5569bebf04342ee146178e2d36600708b/jsonschema_specifications-2025.9.1.tar.gz", hash = "sha256:b540987f239e745613c7a9176f3edb72b832a4ac465cf02712288397832b5e8d", size = 32855, upload-time = "2025-09-08T01:34:59.186Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/41/45/1a4ed80516f02155c51f51e8cedb3c1902296743db0bbc66608a0db2814f/jsonschema_specifications-2025.9.1-py3-none-any.whl", hash = "sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe", size = 18437, upload-time = "2025-09-08T01:34:57.871Z" }, +] + +[[package]] +name = "kiwisolver" +version = "1.5.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ba/07/bd78e6a8fae171ea041ef5bba3ed21a003522fa088834b069b1909981f30/kiwisolver-1.5.1.tar.gz", hash = "sha256:f1303ef2eec81262a4b708c3e858afe58d7c75ad91c1c05266eda7673369859a", size = 104395, upload-time = "2026-08-28T10:28:27.153Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/dd/87/2d5dfad0daf17dcc18d98c48ed2332fc3f051cf599e60be6182a30dd4cf1/kiwisolver-1.5.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:0324cd2567259b7a095f6cf18a52b0ffc6f3de9e69528ff1bc0e7a37bd43ff1a", size = 62337, upload-time = "2026-08-28T10:26:18.778Z" }, + { url = "https://files.pythonhosted.org/packages/08/c8/83e1624f15d6262b470dbcc80b09979fd4d5b2ea3ddfc6b6e3327e235726/kiwisolver-1.5.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:74ea337e0ec3f6f342a36a4f1b5cd94dd9affddcd28ba9aae2905af932ee8c6b", size = 64513, upload-time = "2026-08-28T10:26:19.909Z" }, + { url = "https://files.pythonhosted.org/packages/c9/2d/827ec30eb07f528c08d8459ffb318ae91a56d793ee8acbea8b491f0ff906/kiwisolver-1.5.1-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:ee9df1f0d77b9c6e94f4ac0fec533fbddd5ea3a327807f18d7b069ae019ded80", size = 66287, upload-time = "2026-08-28T10:26:21.078Z" }, + { url = "https://files.pythonhosted.org/packages/53/11/5c43a562529dad8def4b81e5e1877c612a7e0298105a5939b3b409d2079c/kiwisolver-1.5.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fc271a6f0a2126958f4090e5507b9da5848927dae331f8f763bd4aa642b3d2cd", size = 123940, upload-time = "2026-08-28T10:26:22.475Z" }, + { url = "https://files.pythonhosted.org/packages/64/db/9bd6c505c95128c258a55236bfbb3a7a3fb6023f863316b6d7d9f3c69052/kiwisolver-1.5.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:9b3092d8992a1d69b7a59c3e39f35e1b9be327a17f68a7c35fc17329e337d6f2", size = 66493, upload-time = "2026-08-28T10:26:23.743Z" }, + { url = "https://files.pythonhosted.org/packages/e1/f4/b3007a3ed5c9be73f81161140684cf7d9bdb9c4b632f5f484d2a1c713fb9/kiwisolver-1.5.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c2306e8bb53601979fcb3fa09cc65e031876d9ae01eff2fcbcd7a84ef94d5bc1", size = 64720, upload-time = "2026-08-28T10:26:24.95Z" }, + { url = "https://files.pythonhosted.org/packages/a1/13/08188f0cafa3a800403e4ff62b9aad4e7a17f9c4c7e080dc8f18c64794cf/kiwisolver-1.5.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:18a0cfb124546a4c2e6087c5f3029c7f44b37c85b142e0ced71f73a7599ac208", size = 1475867, upload-time = "2026-08-28T10:26:26.393Z" }, + { url = "https://files.pythonhosted.org/packages/8a/3e/053bdc3c9abdb8f2606225eda398adca25c0c91ab90add8222a69db65ee0/kiwisolver-1.5.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:34ec467940442c9943016fb2d4c81d1ba84351eeca2f1a78f8bc87f1ba0d414c", size = 1282865, upload-time = "2026-08-28T10:26:28.118Z" }, + { url = "https://files.pythonhosted.org/packages/5e/64/a44c341b36b610588cc2f1e89b3cae072a3119aa8be578e90987cd640751/kiwisolver-1.5.1-cp314-cp314-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a83ee7107df13abe42a54a6654670eef9bb39425cf2e27f65e0007465e1286ab", size = 1300865, upload-time = "2026-08-28T10:26:30.125Z" }, + { url = "https://files.pythonhosted.org/packages/60/5e/7e7d716dca38c714478b741257a5b4a321d9932b8d851551a136dcaf3984/kiwisolver-1.5.1-cp314-cp314-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bebb89489b279b2f5661bbbb2abcc87bcd4a46607bb4a5c966f04f1db6b8df9a", size = 1348071, upload-time = "2026-08-28T10:26:31.829Z" }, + { url = "https://files.pythonhosted.org/packages/10/1a/2b98fdda8bf45b7be317e48ed12393d44334394d315c74b81f4a14c0e31b/kiwisolver-1.5.1-cp314-cp314-manylinux_2_39_riscv64.whl", hash = "sha256:509735237ae0d849e8a843551d423d2500d2e0a9ac1611a145658b29c0fb9f85", size = 992191, upload-time = "2026-08-28T10:26:33.544Z" }, + { url = "https://files.pythonhosted.org/packages/b6/55/d893f5ede0e50f9e3fcf01f6015f42ec7d9cd221e26772701fe4a98745f9/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:824c3d763a05ea9e9003610145186b0e9848c7584a5575c79bac5a8e7cd80bad", size = 2233854, upload-time = "2026-08-28T10:26:35.282Z" }, + { url = "https://files.pythonhosted.org/packages/b1/82/f85f6279555a6ee1639fef7bfe83adb037a03e11a6fc9eaa54b8d0380339/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:1fff05e239575b1481b6ed1a782f6fad616efbf1f0b1f44e6e85c4dfe426e483", size = 2330621, upload-time = "2026-08-28T10:26:36.9Z" }, + { url = "https://files.pythonhosted.org/packages/56/31/e11aea078f66fc2fffcc179d38ca90d9da97652a241b64519169742ba46a/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0627b9bceb9c3cdcf12b8a18655eedfed2692b038df27423383c120d0b7dc2d6", size = 1982848, upload-time = "2026-08-28T10:26:39.01Z" }, + { url = "https://files.pythonhosted.org/packages/af/ea/2956b63bf5140ca46aa2c2818e6aa03e2d5754dd2fa41db1c6b28922940c/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:8a708a47ade1fe19e8371d5da076bac0dd4b0a5a7985ad6c637f7f7e361b6baa", size = 2494850, upload-time = "2026-08-28T10:26:40.837Z" }, + { url = "https://files.pythonhosted.org/packages/11/d1/3829542258d8b3fc0898d221e7ef0e2c83eca0d348709bb8dbe54f3d4005/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:007a5553dfc4f4e8d184f588a0200e2cd4b63a59cc8796df3c39909e679dc7a0", size = 2298067, upload-time = "2026-08-28T10:26:42.803Z" }, + { url = "https://files.pythonhosted.org/packages/4e/0e/49522e1ab5788cbaf63a26fbd3b851f9028616828c961b8a31b35cb96df8/kiwisolver-1.5.1-cp314-cp314-win_amd64.whl", hash = "sha256:f4167e87b397f273dc2356fcf1eaf50a6bac51e6105f45103ef7129c8efb0255", size = 72282, upload-time = "2026-08-28T10:26:44.268Z" }, + { url = "https://files.pythonhosted.org/packages/f5/b6/22e7ca5315d363e6f81c9f37c9472e12e7b298731e77c0428e6a911a2c39/kiwisolver-1.5.1-cp314-cp314-win_arm64.whl", hash = "sha256:5c490db2168a508088f59140dd392556a54b8bd1048fc6383c8baff13c359673", size = 69855, upload-time = "2026-08-28T10:26:45.725Z" }, + { url = "https://files.pythonhosted.org/packages/30/8c/03a9cfbe871964c8758a816eb03ac96c806da2795a9a7cd9bf9648bfb594/kiwisolver-1.5.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:4d4ca09bf13cff792b1884f64b98ee6c2467930d632233be25c56b442d99f10e", size = 126289, upload-time = "2026-08-28T10:26:47.023Z" }, + { url = "https://files.pythonhosted.org/packages/f2/e3/14ce3041ca79dff9c9d884ca00c7bf32374e76028a865a9ecd99b4f5a517/kiwisolver-1.5.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:44b8faef94f1857e77fa0238f3390ff1ac51d2ea20a487e2e452a59fd2b5f5ca", size = 67709, upload-time = "2026-08-28T10:26:48.268Z" }, + { url = "https://files.pythonhosted.org/packages/af/c4/45030471a66ec8ef042e9f96ffe1d522c9ab12da180186a0898966fc1385/kiwisolver-1.5.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2ae70bc59790d2af72a3f76f24b272403e135070340281108b447cb77ea70819", size = 65909, upload-time = "2026-08-28T10:26:49.523Z" }, + { url = "https://files.pythonhosted.org/packages/42/73/17dce073a6ae259bb32cf9d686c4079d2e538868bc45967462bf33df914a/kiwisolver-1.5.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:43844c1a7ad6d723d5b5b4c4fc7f5bd399c40e288120d16257c7c9e8765c6e85", size = 1584907, upload-time = "2026-08-28T10:26:50.933Z" }, + { url = "https://files.pythonhosted.org/packages/8c/84/ae3c75909f507283cbfcc7e916c7e822579ef962020b97e6882b27b4478f/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:22d5e5aaad6be121f2515765e3b1c444352cb8eb4c86510801db8f2e50757316", size = 1392474, upload-time = "2026-08-28T10:26:52.638Z" }, + { url = "https://files.pythonhosted.org/packages/34/31/8bcc83caad5bce8fa4577152389848bf6bc110e51e573a2b4e7c2aa34c89/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3fa5855898f6d3d01b72ccd48a2d65cbdee301251603fefe34e2025bddba219c", size = 1405246, upload-time = "2026-08-28T10:26:54.248Z" }, + { url = "https://files.pythonhosted.org/packages/55/72/220345537d790cf4ae54f8acfff4b5cc2468e0702a384d651cf7a771c63e/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d66a64dd5dec136040ec2ae94aa026a912ee60fdd45bc28d3db30037fd809e88", size = 1456099, upload-time = "2026-08-28T10:26:56.042Z" }, + { url = "https://files.pythonhosted.org/packages/cd/10/3725fd2398f66d18c34b4e0f81a8d03764cd4f4f089f58a527f0b4428086/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_39_riscv64.whl", hash = "sha256:9e51c119992ea8820706871c30a4642ec76de20ae82f9b50b9a45517d8e9f810", size = 1073695, upload-time = "2026-08-28T10:26:57.658Z" }, + { url = "https://files.pythonhosted.org/packages/86/cb/28d6e09e66b93e4588b2e6b7d84d020ccefea09e2f4de788510a07efeab7/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:70ed9a45c7484d2b30cdacf60d220f494a1763b9fec1ad03285c6553fa0889f2", size = 2335355, upload-time = "2026-08-28T10:26:59.202Z" }, + { url = "https://files.pythonhosted.org/packages/6a/b3/a0f31d5e4e40af7dc97c36b8a74fdd3a36cf3c8bbd098da9a23466ff6a94/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:98b208a7cc42c803445ef551d6753cc42a5ea13e9cab1ee66cd8b9cb70195330", size = 2426524, upload-time = "2026-08-28T10:27:01.181Z" }, + { url = "https://files.pythonhosted.org/packages/2f/c9/728f63bd58c72cafdc79fc306abeeac7391bec03b757a48dadeb30906521/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:c6834b92dd2428e2dd85ef3d85f723d3c12f20aaf43a2ddd4f944ca25d833408", size = 2063430, upload-time = "2026-08-28T10:27:03.06Z" }, + { url = "https://files.pythonhosted.org/packages/84/df/ce188b96f92f9a2c958231da140768918cba53c9713dc887b82f85462118/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:5d142e352eb13facc7dd047489aebdff6ba78576c239f1ea04931979caaf0567", size = 2597513, upload-time = "2026-08-28T10:27:05.072Z" }, + { url = "https://files.pythonhosted.org/packages/69/d6/76947c8203768968382e5bd74d9cc95654746703a61ea53015f2c74a2e06/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f9b1c4900736e489a812c529100de4b8fb617d4db075e931e213c57424b83d9b", size = 2394488, upload-time = "2026-08-28T10:27:07.423Z" }, + { url = "https://files.pythonhosted.org/packages/e4/d4/14b21e4eb203c4d15425e8b6a2c625a320b4a1f2f7557eead63ffc30ffb7/kiwisolver-1.5.1-cp314-cp314t-win_amd64.whl", hash = "sha256:5978c3340f16a35c30f8ab2fa7bcf559973c55f1a5ef6970e1f621acf3c4db13", size = 75404, upload-time = "2026-08-28T10:27:08.892Z" }, + { url = "https://files.pythonhosted.org/packages/cb/f5/53157899fc7f45f76421b77b99eb1639dd0f83f26ff9d76300c96bb4a3b0/kiwisolver-1.5.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ca307d6c259e5c98d3cb9ade55342b47a6839762caf2536f3d7b46ee660cc82e", size = 72946, upload-time = "2026-08-28T10:27:10.944Z" }, +] + +[[package]] +name = "lazy-object-proxy" +version = "1.13.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d4/8e/f26b09778fcb26261fdeb4cc2b011975292316529bff9b541a5a02acb976/lazy_object_proxy-1.13.0.tar.gz", hash = "sha256:ce34046cb021d69c72d05ddb83821ecfd4d2d0a5d43a93c5cd01c9e34779cf14", size = 45649, upload-time = "2026-10-17T16:38:01.975Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d0/0b/410ea9a56ad59421d8969535099560f0bad7162d483869e1c07ff5880f35/lazy_object_proxy-1.13.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:62612150e2b67d1cb26c2201d020773e9bab9c596d783d55ada42885a695f749", size = 26856, upload-time = "2026-10-17T16:37:48.864Z" }, + { url = "https://files.pythonhosted.org/packages/8c/97/79ab37585905cf6841134806e73ace576d61a87c4eee333be4622161b23f/lazy_object_proxy-1.13.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:ad7630266b5775463f2a1806165c1d9dff07780cf1bba3c53f311e1d026e8921", size = 70985, upload-time = "2026-10-20T01:05:49.274Z" }, + { url = "https://files.pythonhosted.org/packages/18/2e/66bbb45f20aab9e81139e2bf9fea1a29850b5af769cbf7f181221ce062dc/lazy_object_proxy-1.13.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:73f05b09e37b0eb0ca7d6e80e2b0689c49bedac8c5d69667c1ebb9f02a4ed5c7", size = 70984, upload-time = "2026-10-20T01:05:50.548Z" }, + { url = "https://files.pythonhosted.org/packages/74/e0/63dc39750c7b266e9e25022962eba32ba80e4f17fdcd674fc4ad4143fd90/lazy_object_proxy-1.13.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:91a725d3c64dfe13d365cf78c469c2a8f95884859379aeca89cb8d2ed291649a", size = 65689, upload-time = "2026-10-20T01:05:51.765Z" }, + { url = "https://files.pythonhosted.org/packages/e7/6c/b94a8779eec1331477557ca3ea4742860d59dc9bcd4dcf21bcef3cd8c4f2/lazy_object_proxy-1.13.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:e28a75d33378141927c08f3eb291cc98d0a22776670ae330f8347f898cd3b175", size = 69492, upload-time = "2026-10-20T01:05:53.116Z" }, + { url = "https://files.pythonhosted.org/packages/60/99/6c3ff4a32f15e807ffb868c47de136ebd4be31e7320af42b699dc43a7495/lazy_object_proxy-1.13.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:a785fe44b61fcbffc0e264fe6b735a909e0b5ef922f0e976e281bbe8477fb47a", size = 65019, upload-time = "2026-10-20T01:05:54.462Z" }, + { url = "https://files.pythonhosted.org/packages/c4/1a/447ff40629a11f879f194e839d59e5a026dd26f4d0eb8672de858644be85/lazy_object_proxy-1.13.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e321425f76451885c93083ecec0850b64de0f83bb94c113e930e8a0a630e45ab", size = 70334, upload-time = "2026-10-20T01:05:55.619Z" }, + { url = "https://files.pythonhosted.org/packages/70/52/2ca84fb914b17d4b02193cbf8b6ba9344b36459944a19711d3da1d14b03d/lazy_object_proxy-1.13.0-cp314-cp314-win_amd64.whl", hash = "sha256:0e52094b7fff1f26f4e227b88be3f350817078e4bb79b4c80846fca0d15efae4", size = 26122, upload-time = "2026-10-17T16:37:53.02Z" }, + { url = "https://files.pythonhosted.org/packages/84/c7/ebbeb84639e84fbf6f07a48373f76fe048d23fbcfd4557509b48f35d284d/lazy_object_proxy-1.13.0-cp314-cp314-win_arm64.whl", hash = "sha256:b2dd1c37d64cf9f3f4a2072971639408989b0803a3b7f05e75c1fe28d1a93c1f", size = 24746, upload-time = "2026-10-17T16:37:53.954Z" }, + { url = "https://files.pythonhosted.org/packages/38/ac/8ff35cc4d1316e056144edfb816dbff9b5db9ccd7e98c69f6b602c11bc29/lazy_object_proxy-1.13.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:348370676ea6d9ed08f9b74545c37e5be4cf009c45b9d50c6aff476fb7fcc7ec", size = 27524, upload-time = "2026-10-17T16:37:49.825Z" }, + { url = "https://files.pythonhosted.org/packages/14/c5/8afe34ead41fdd48a207c4535192a4e931c56c791d5f0a57c0abd4558c1c/lazy_object_proxy-1.13.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:dee2fb3326cd81384d2b752c3f6888d7ed9eba2cdbf0583097b5168b8bb4a703", size = 80523, upload-time = "2026-10-20T01:05:57.129Z" }, + { url = "https://files.pythonhosted.org/packages/38/fd/0e68a385daaf141b1b1d943b132b8a9887bd53abb88886dab286cca9b62e/lazy_object_proxy-1.13.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2b4c446cbc8e411b116c9ee9b475cb664b8bc5c3d912bcbf1bab5c785fc69a02", size = 82823, upload-time = "2026-10-20T01:05:58.56Z" }, + { url = "https://files.pythonhosted.org/packages/91/ce/648e09f90dc59cb6007d9093c2cc17d72e2d93c06553828037126205ea7c/lazy_object_proxy-1.13.0-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1e671e0e9f2793759f382a69a3853c8742474bc011865ed3595187340ac5956d", size = 74655, upload-time = "2026-10-20T01:05:59.717Z" }, + { url = "https://files.pythonhosted.org/packages/10/4d/811442390862dbf85e00520ecb0cb58c7dbdf824dc563ad933729f9e20f3/lazy_object_proxy-1.13.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:a0155084a5dc8ce3e1a3d6e3f2fb4d84d5fc09e66ed84dc0e5f8a2697d421ea0", size = 80848, upload-time = "2026-10-20T01:06:00.884Z" }, + { url = "https://files.pythonhosted.org/packages/24/4e/c30ea3678b50a7ed7774760fbde917106cbb860edb88cc31a17a8385b3d4/lazy_object_proxy-1.13.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:2d07e0bde2738922a7117fccc1a82514aefbc9c07ee8ff0bb84a1c606dbb5ac8", size = 74127, upload-time = "2026-10-20T01:06:01.949Z" }, + { url = "https://files.pythonhosted.org/packages/19/d0/862f0f96b031dab7faa036679e2076bbd6a18ea06e34fb1400fca65b03f0/lazy_object_proxy-1.13.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:da9f1b8780678af93c4ddba46826166c53a25d8d71133fc818542bf7b481e033", size = 79497, upload-time = "2026-10-20T01:06:03.122Z" }, + { url = "https://files.pythonhosted.org/packages/d5/50/20454483d8f95a11710b951518f86aaaaaae9195982fe27c12eeed130660/lazy_object_proxy-1.13.0-cp314-cp314t-win_amd64.whl", hash = "sha256:f21b4711e6744d46a4672497ca2db390cbdb03241d9b1654bbf38dbbc4db2a5e", size = 26670, upload-time = "2026-10-17T16:37:50.977Z" }, + { url = "https://files.pythonhosted.org/packages/4a/df/c1ff843fd9c4978d9a50ef2bceda3897d71645d4127ec1413aa15204cb64/lazy_object_proxy-1.13.0-cp314-cp314t-win_arm64.whl", hash = "sha256:de295ae25e5c1fd712088547f251c4b2976d2f60df28057b6c416e771a99842b", size = 25297, upload-time = "2026-10-17T16:37:52.088Z" }, +] + +[[package]] +name = "matplotlib" +version = "3.11.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "contourpy" }, + { name = "cycler" }, + { name = "fonttools" }, + { name = "kiwisolver" }, + { name = "numpy" }, + { name = "packaging" }, + { name = "pillow" }, + { name = "pyparsing" }, + { name = "python-dateutil" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e7/c8/9aa712a0afb882649424dd8de8ad9aa6235e796e84c6052e8f6dc1598d0d/matplotlib-3.11.2.tar.gz", hash = "sha256:cec596316640f2b394b8f0daa0ea61a8eae82d017b620b9f202befb972a59ea4", size = 32660610, upload-time = "2026-09-11T19:05:31.214Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/b4/4facdb700bc236e4c676495ca3798d8134ab8668cbfe0f6b2e9ebf962a38/matplotlib-3.11.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:c9721f81275499da1feeb36a2cf8192ea086283b3bd16b7dc4c9d7aedb7396d6", size = 9478976, upload-time = "2026-09-11T19:04:00.12Z" }, + { url = "https://files.pythonhosted.org/packages/4c/a0/bba05f0a25bfeb0475c2f2a87958b31103aa6b7a5386017afb1a96212825/matplotlib-3.11.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1a3040b209f3968b4e84161df7b174f07a9fad33b0f2d7e48ea3bbd3075e2863", size = 9307932, upload-time = "2026-09-11T19:04:02.976Z" }, + { url = "https://files.pythonhosted.org/packages/d4/42/81d5cba4bb39b41b0998efc880e129f2d7cdb94256ca49678fdcd9c21be5/matplotlib-3.11.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf3fe71fbfb8ec0e310e0bc8537c3405a01f38f25f9394ed2135e6202fed542b", size = 10674370, upload-time = "2026-09-11T19:04:06.912Z" }, + { url = "https://files.pythonhosted.org/packages/29/5e/52f56f93d5b20815ee0ae352f7a38eff25580edb180b4fa7df87cfeba68f/matplotlib-3.11.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8c8255de28f986d935a64c9ca71c0ec2d2f41d355691f5ea684725dc91413f71", size = 10954597, upload-time = "2026-09-11T19:04:09.948Z" }, + { url = "https://files.pythonhosted.org/packages/6e/ae/f8918a1b564db49c53cd603eb3c8748c5767e4ce0fb2cf1d7c38653e4c5d/matplotlib-3.11.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:a8756cc73d9af9a7fe0deb54ea2e75ef73b01d9e575877e72acad5458e660943", size = 10812583, upload-time = "2026-09-11T19:04:12.887Z" }, + { url = "https://files.pythonhosted.org/packages/ea/61/4315ef0d63937fe56f451887b4a0be3b8e8b22cf1d92a8d157caac54570d/matplotlib-3.11.2-cp314-cp314-win_amd64.whl", hash = "sha256:ecea603dd2fbf8242fd31a305a8b12a4ece2de28096870c65fdd0d1e35b8d9a6", size = 9505972, upload-time = "2026-09-11T19:04:15.788Z" }, + { url = "https://files.pythonhosted.org/packages/d5/00/02398b0a1a62ef73d9af0a957fe1773363eec9a6ca7e433c72ae2790fbce/matplotlib-3.11.2-cp314-cp314-win_arm64.whl", hash = "sha256:01dc8eaaab5a9fce9ff615eca82345728f289e4715b186ee10c6d85272fc26bb", size = 9184534, upload-time = "2026-09-11T19:04:18.691Z" }, + { url = "https://files.pythonhosted.org/packages/ec/c5/1e6ca10baa7e04f113c37856aadb4adc3dbb1c55fc7da6dc830bba1292d7/matplotlib-3.11.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:79a258f58253dfa025af80a9e9bb228d75fced007f0e93ae7423fefbde81a74d", size = 9526415, upload-time = "2026-09-11T19:04:21.39Z" }, + { url = "https://files.pythonhosted.org/packages/e0/93/7561727af07ccc84747953c6a33eee3981cc436d04f465032e707ca0e429/matplotlib-3.11.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c0b83f044ce10a98027b105b3931548719a6e8c7ef986b4362651e0b5367c8dc", size = 9361064, upload-time = "2026-09-11T19:04:24.107Z" }, + { url = "https://files.pythonhosted.org/packages/c1/40/ce270ef2a6794d94a409fe28b8dabedffc07c07f9e5dbb89e0f605bd157d/matplotlib-3.11.2-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e43b188f0a5b75447bcc197728258166aa64365770ed1caa36595a5e1ca4bbba", size = 10684626, upload-time = "2026-09-11T19:04:27.201Z" }, + { url = "https://files.pythonhosted.org/packages/45/46/396e0307dbf1c1f2d0a3654caa6dbc780dd5379f5f11257369cf8d21d9fe/matplotlib-3.11.2-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d3304eb5a59442a8867f6920d484591c0fa09ffc29e9260be2feec3351e25869", size = 10960602, upload-time = "2026-09-11T19:04:30.254Z" }, + { url = "https://files.pythonhosted.org/packages/1c/97/4defb84695477340aa88b27c9482cc1ca4de11f36f66b6c8c0ddd685def1/matplotlib-3.11.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:02329432ae5c6af87cf208ee575b701d698bdf0b1a3bb28cc6d53c36e967e575", size = 10822603, upload-time = "2026-09-11T19:04:32.964Z" }, + { url = "https://files.pythonhosted.org/packages/7d/e7/eab54551c1ec6b72dcd678a078b6c6da8d4c85ec1ff0016e81fe52866304/matplotlib-3.11.2-cp314-cp314t-win_amd64.whl", hash = "sha256:f2ac30cf5eb5dff1b584627ae0b0e1186551a4f69ae3c75073911da497a29170", size = 9551206, upload-time = "2026-09-11T19:04:35.811Z" }, + { url = "https://files.pythonhosted.org/packages/4e/0e/04698032cb4d8fb1e30d8ffec5ded20f6f582b03c8c58b2385c95245f158/matplotlib-3.11.2-cp314-cp314t-win_arm64.whl", hash = "sha256:cf41ecd1b0c0b6f7177ed965a54c2afbe888715c7cf6054dc12d53bc1494002c", size = 9234977, upload-time = "2026-09-11T19:04:38.972Z" }, +] + +[[package]] +name = "mtusi-messenger-lab2" +version = "1.0.0" +source = { virtual = "." } +dependencies = [ + { name = "argon2-cffi" }, + { name = "fastapi" }, + { name = "psycopg", extra = ["binary", "pool"] }, + { name = "pydantic" }, + { name = "redis" }, + { name = "uvicorn" }, +] + +[package.dev-dependencies] +dev = [ + { name = "httpx" }, + { name = "matplotlib" }, + { name = "openapi-spec-validator" }, + { name = "psutil" }, + { name = "pytest" }, + { name = "ruff" }, +] + +[package.metadata] +requires-dist = [ + { name = "argon2-cffi", specifier = ">=25,<26" }, + { name = "fastapi", specifier = "==0.143.3" }, + { name = "psycopg", extras = ["binary", "pool"], specifier = "==3.3.6" }, + { name = "pydantic", specifier = "==2.14.1" }, + { name = "redis", specifier = "==8.1.0" }, + { name = "uvicorn", specifier = "==0.54.0" }, +] + +[package.metadata.requires-dev] +dev = [ + { name = "httpx", specifier = ">=0.28,<1" }, + { name = "matplotlib", specifier = ">=3.10,<4" }, + { name = "openapi-spec-validator", specifier = "==0.7.2" }, + { name = "psutil", specifier = ">=7,<8" }, + { name = "pytest", specifier = ">=8,<10" }, + { name = "ruff", specifier = ">=0.14,<1" }, +] + +[[package]] +name = "numpy" +version = "2.5.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/95/b0/c7453d0b6e2073c3264468b106ee1563750cecc910965e67357e3698c83e/numpy-2.5.4.tar.gz", hash = "sha256:9a94cf751c9ad8ebaa835bcd3d40dacf8534ad086b88c38029b65123c7999d2a", size = 20866315, upload-time = "2026-10-10T20:05:31.422Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/99/ba/005cb5edd580d2f84d7ca3206b92dc17d4388e56e6f87ffe8f2762f83139/numpy-2.5.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:c668b2f0d651605b58892644b0e302c7157f7159544227758c896982ef384b18", size = 17005499, upload-time = "2026-10-10T20:03:37.961Z" }, + { url = "https://files.pythonhosted.org/packages/f3/49/fee7587c33ee35f7977f9051d7f2023d4e7246d62710c80f20c2361ea232/numpy-2.5.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ffa6ce09a1c6a08e9667dd9c97aa0b14184e8d18f2a14b78b2a2328c9147f076", size = 12019666, upload-time = "2026-10-10T20:03:40.606Z" }, + { url = "https://files.pythonhosted.org/packages/d5/b2/c6ce165acffceb15a82c07b9cc77d391f86b3f379ba62911908ae5d34b91/numpy-2.5.4-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:956555e0603a4d38019ae6925711cb9dc43195c076a928accf7ea5d50bddfe53", size = 5455617, upload-time = "2026-10-10T20:03:43.138Z" }, + { url = "https://files.pythonhosted.org/packages/77/7f/dd85ce260a669a89be06842cf355d7353a33e6cfbc590fb8ebb947d88dc9/numpy-2.5.4-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:2c2c4afffdeb7920e445028dd71eb932cac3e704792e964bc2a232426d4f1255", size = 6791932, upload-time = "2026-10-10T20:03:44.874Z" }, + { url = "https://files.pythonhosted.org/packages/63/d6/34b0a2b0741386a63025a65a2c09caaaaaad6d0ca95b66cd65c30dd7fcb5/numpy-2.5.4-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4054173604cd8658796053f1f3bc0befb68ec1c0762c57fdad61e199256a8617", size = 15710899, upload-time = "2026-10-10T20:03:46.839Z" }, + { url = "https://files.pythonhosted.org/packages/16/d5/928078d2b28f26829b138b4a6c3980045022fb409f570657a224ae60ef4e/numpy-2.5.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d549420b8858885cea8838a727842249218b9c1da24dd517e25c9c7a948310a3", size = 16721710, upload-time = "2026-10-10T20:03:49.489Z" }, + { url = "https://files.pythonhosted.org/packages/f9/cf/673fd1b8f4cd78eb6320e87ec4c90ac19c095644259e3749853a405c70f4/numpy-2.5.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:823874a507a84af050493b622affde94b6f7c3a0dc22cb2801381bc03b871c00", size = 17066182, upload-time = "2026-10-10T20:03:52.25Z" }, + { url = "https://files.pythonhosted.org/packages/f3/92/a77b5061b1b3e2643928c37976d79ee173e1b171ed158b7a3c61056b41bc/numpy-2.5.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:4e263278bfb5ee6409db8aedbc4cc32973b1b82bc1e8d3c668551d04d83a7e37", size = 18480315, upload-time = "2026-10-10T20:03:55.39Z" }, + { url = "https://files.pythonhosted.org/packages/bb/1d/1486ef3d3fb2279fd93c4c43c1bbbf1ca389a19816696684409f71babaab/numpy-2.5.4-cp314-cp314-win32.whl", hash = "sha256:cfd73180400042a7c532d30c5e287bdd03c59ff9ee1b4c0316af0539e29dfe23", size = 6185739, upload-time = "2026-10-10T20:03:58.186Z" }, + { url = "https://files.pythonhosted.org/packages/52/9a/e1e512ebc948d5b9dd33b08736760f0ebbed2848fd4eda1f553088a6dcee/numpy-2.5.4-cp314-cp314-win_amd64.whl", hash = "sha256:2ca144f15135b6212a5c47b1e2aeca6e412f102f95a2d5d88d8aec77eb255de3", size = 12703552, upload-time = "2026-10-10T20:04:00.28Z" }, + { url = "https://files.pythonhosted.org/packages/2c/05/de709a982d7bbcd688a3fad71f002e9ff80c2db39e03ee726609b610f1d1/numpy-2.5.4-cp314-cp314-win_arm64.whl", hash = "sha256:468397ba3c64427474706e5c9123fe266395496714dc684294eac75cd4930d1e", size = 10803901, upload-time = "2026-10-10T20:04:02.659Z" }, + { url = "https://files.pythonhosted.org/packages/13/34/083570ada3bb2a30fbe5d77c8c6fef9141144a15d33e6f793a67e9749ab8/numpy-2.5.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1ef3aa6d7e29bb13677323114280b05acc57607fa2300e66432d665d5418a162", size = 12138695, upload-time = "2026-10-10T20:04:05.012Z" }, + { url = "https://files.pythonhosted.org/packages/94/06/1f9c24db48eef0c2d1207e3b11fffb0478e39dfd8c1e1be7476936885eed/numpy-2.5.4-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:98b053943e5a0474ec0da309d2cb9d3f18ea57f8a2067c2ab7b5f763d1068380", size = 5574615, upload-time = "2026-10-10T20:04:07.316Z" }, + { url = "https://files.pythonhosted.org/packages/da/0f/593fba2e1560e949123bc7d2fc48b5893d56e58cd4bd5a273d2fbf60b220/numpy-2.5.4-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:b64a85f40e154983960a4167d4c1d57a50c7f109b3d3264a3a984154e90a8454", size = 6889383, upload-time = "2026-10-10T20:04:09.918Z" }, + { url = "https://files.pythonhosted.org/packages/eb/9f/b799dfdce4e05e80ed4bc815c71ff343a11533b2c0ffc221cae8538cda63/numpy-2.5.4-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a813ed7719bf45463c51779e6a98d0385fe905e48447526938a4b8337333d551", size = 15753763, upload-time = "2026-10-10T20:04:12.278Z" }, + { url = "https://files.pythonhosted.org/packages/34/88/16c5f12f86f5ad2817c4d103205131fc6c8acb3d1878af05a1a4f23ec859/numpy-2.5.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c9b80cdf5cedba0e90d93fa5f9a333c4d65bd545cd669b71bb97ce2b703c9d73", size = 16757212, upload-time = "2026-10-10T20:04:14.799Z" }, + { url = "https://files.pythonhosted.org/packages/ff/4f/a1fe40e18a898e6a5089f4f0d891f0a493eb0574d5b34458f0fbe5aa3e5c/numpy-2.5.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:2199ed071f460487c8db2c0e5c0b564494190edb4772fe80f9aad88b2604def5", size = 17116471, upload-time = "2026-10-10T20:04:17.58Z" }, + { url = "https://files.pythonhosted.org/packages/aa/46/e923a11c78e65c1722e7aaad817c06bd591324174b9d28ce5d31eee4d432/numpy-2.5.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:64f9c9878c1938476365e11ccfb6b770f3b9e5f045ccddc514235041e6959365", size = 18524063, upload-time = "2026-10-10T20:04:20.365Z" }, + { url = "https://files.pythonhosted.org/packages/5a/fa/84ab064514440c1f64a1b21088f2c82756defdd05e07c75ab233899565b2/numpy-2.5.4-cp314-cp314t-win32.whl", hash = "sha256:64d1c8ac28a4077cf987e0a71a7a0ef7e2df70722f07f0baa42dbb7eb6938647", size = 6340926, upload-time = "2026-10-10T20:04:22.865Z" }, + { url = "https://files.pythonhosted.org/packages/7e/7e/6cd886876f435b10685db9b9f7eeb70356f99e052116f4e5f11c5792c714/numpy-2.5.4-cp314-cp314t-win_amd64.whl", hash = "sha256:067374eb538c34c745436365cf7b0112595c1d326f21ce4ff340f61230239fbb", size = 12901584, upload-time = "2026-10-10T20:04:24.99Z" }, + { url = "https://files.pythonhosted.org/packages/38/1b/3c1684f6a06f7307f2335fca6e486cb162847fb97e91d65f8eb5cabad213/numpy-2.5.4-cp314-cp314t-win_arm64.whl", hash = "sha256:e94aef2c639da4a960ad0db8e06471208d8589974953d78b61d345b4eb99e394", size = 10891152, upload-time = "2026-10-10T20:04:27.52Z" }, +] + +[[package]] +name = "openapi-schema-validator" +version = "0.6.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "jsonschema" }, + { name = "jsonschema-specifications" }, + { name = "rfc3339-validator" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/8b/f3/5507ad3325169347cd8ced61c232ff3df70e2b250c49f0fe140edb4973c6/openapi_schema_validator-0.6.3.tar.gz", hash = "sha256:f37bace4fc2a5d96692f4f8b31dc0f8d7400fd04f3a937798eaf880d425de6ee", size = 11550, upload-time = "2025-01-10T18:08:22.268Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/21/c6/ad0fba32775ae749016829dace42ed80f4407b171da41313d1a3a5f102e4/openapi_schema_validator-0.6.3-py3-none-any.whl", hash = "sha256:f3b9870f4e556b5a62a1c39da72a6b4b16f3ad9c73dc80084b1b11e74ba148a3", size = 8755, upload-time = "2025-01-10T18:08:19.758Z" }, +] + +[[package]] +name = "openapi-spec-validator" +version = "0.7.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "jsonschema" }, + { name = "jsonschema-path" }, + { name = "lazy-object-proxy" }, + { name = "openapi-schema-validator" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/82/af/fe2d7618d6eae6fb3a82766a44ed87cd8d6d82b4564ed1c7cfb0f6378e91/openapi_spec_validator-0.7.2.tar.gz", hash = "sha256:cc029309b5c5dbc7859df0372d55e9d1ff43e96d678b9ba087f7c56fc586f734", size = 36855, upload-time = "2025-06-07T14:48:56.299Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/27/dd/b3fd642260cb17532f66cc1e8250f3507d1e580483e209dc1e9d13bd980d/openapi_spec_validator-0.7.2-py3-none-any.whl", hash = "sha256:4bbdc0894ec85f1d1bea1d6d9c8b2c3c8d7ccaa13577ef40da9c006c9fd0eb60", size = 39713, upload-time = "2025-06-07T14:48:54.077Z" }, +] + +[[package]] +name = "opentelemetry-api" +version = "1.45.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/19/14/cf3a6b6448849656e1e5f4e2101f3988dc6789724050096aba1bc5ccf592/opentelemetry_api-1.45.2.tar.gz", hash = "sha256:d7b0008e21e5fd61cbe7a7f34ca3b6905a78ab677d9bc395e299359c75cda6b4", size = 73277, upload-time = "2026-10-29T17:29:37.888Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a9/2d/610db864d7513158cebb8f36cc88e67e73bd6c7aa1905ef18d89e1281c81/opentelemetry_api-1.45.2-py3-none-any.whl", hash = "sha256:2cbd737377e710ee740d261c94e93fa0f08e6d037c18f17513cc0a2d94479a34", size = 60335, upload-time = "2026-10-29T17:29:06.955Z" }, +] + +[[package]] +name = "packaging" +version = "26.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" }, +] + +[[package]] +name = "pathable" +version = "0.4.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/67/93/8f2c2075b180c12c1e9f6a09d1a985bc2036906b13dff1d8917e395f2048/pathable-0.4.4.tar.gz", hash = "sha256:6905a3cd17804edfac7875b5f6c9142a218c7caef78693c2dbbbfbac186d88b2", size = 8124, upload-time = "2025-01-10T18:43:13.247Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7d/eb/b6260b31b1a96386c0a880edebe26f89669098acea8e0318bff6adb378fd/pathable-0.4.4-py3-none-any.whl", hash = "sha256:5ae9e94793b6ef5a4cbe0a7ce9dbbefc1eec38df253763fd0aeeacf2762dbbc2", size = 9592, upload-time = "2025-01-10T18:43:11.88Z" }, +] + +[[package]] +name = "pillow" +version = "13.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ce/a4/9cc30690a394a8305e8be4c9036aa16d0dfddadd09079860b582f562496d/pillow-13.0.0.tar.gz", hash = "sha256:cdcd1ba258178f7356d74170c9a81ba4eab6a5d55748bc402a5a2a6fe6be3510", size = 47058631, upload-time = "2026-10-16T22:18:09.718Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8e/45/fbad9c7f5e2f1745c373a434d46072bc84eddfefaa28b852425ac957fda6/pillow-13.0.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:44629d4498c9cb6b2051806155f22141df0d8a929c56134b166655232dfb2f8c", size = 4190721, upload-time = "2026-10-16T22:16:27.524Z" }, + { url = "https://files.pythonhosted.org/packages/a2/bf/2074902a259a90692c5dbf132885d21671644cbbd3f690047516243a55db/pillow-13.0.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:bf97ba1b5542050e9b0c74e632323b6d8136cc99d64e193abebee22fe6013c76", size = 4290236, upload-time = "2026-10-16T22:16:29.562Z" }, + { url = "https://files.pythonhosted.org/packages/ff/a5/3d1bb93b8ea38d15d21356c1b8e9f50971ac592aaa248f7fb71739094c0e/pillow-13.0.0-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:aa694c49787040943570d61c9b8fc01271bd2a2cfdd55f0d896f8aecdce1a981", size = 3723093, upload-time = "2026-10-16T22:16:31.249Z" }, + { url = "https://files.pythonhosted.org/packages/84/a1/be060135d85187b25fa8b2573786c0e45c62ae27527fff5257675eb97f4a/pillow-13.0.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:49c12af515073e9bf511e4ef736743bf70d531a643668722279314b937742ba4", size = 5572253, upload-time = "2026-10-16T22:16:33.103Z" }, + { url = "https://files.pythonhosted.org/packages/b5/f4/0bf6f1ac9ba7ee2ffe9914aeb410a1035a0c1a3c42f122388d7fc950bc4b/pillow-13.0.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d9b0a2bee3f3e03e9f29057aedb807dbf1e1d96ee1b9d0f422d9db6c8583271d", size = 4852269, upload-time = "2026-10-16T22:16:35.102Z" }, + { url = "https://files.pythonhosted.org/packages/83/16/b603274617b3e6728da3a0133d4fba1ea8d7fbe0c4ea5fef9cbffa398b8b/pillow-13.0.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5933fcea5a5ba64c686f55c886a115cbfd92f2900460784a1e79909fdbafd7b6", size = 6516058, upload-time = "2026-10-16T22:16:37.228Z" }, + { url = "https://files.pythonhosted.org/packages/1d/f2/1371707ce438ba9a43f9d24089828494ec6f9396e28cd7903aa704dd6306/pillow-13.0.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e91c2b1cbeae768c98752e67e717e283d68dae45717b41f2d91eaee648e37b7d", size = 7142574, upload-time = "2026-10-16T22:16:39.172Z" }, + { url = "https://files.pythonhosted.org/packages/b9/a9/62cf68587f910bc87c5951bcb6e9430c7643a65076adf5f18b4bf350e2bd/pillow-13.0.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7f6299e494e46253d40c34653cac369412f44ca53b5f85d848d3f95b1ed0546c", size = 6614295, upload-time = "2026-10-16T22:16:41.117Z" }, + { url = "https://files.pythonhosted.org/packages/6c/c9/9e9b48178649730299be0bafbf5f810a5b6977538f5a92d47e4ba5f5d608/pillow-13.0.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f9bd7d260d986f3553518c5d723544346fa48031f8aef3265d786aeb59845bc0", size = 7224841, upload-time = "2026-10-16T22:16:43.118Z" }, + { url = "https://files.pythonhosted.org/packages/8f/48/c44e91384b1b6c072a714a63d00608acc16a6a968735e478e4be4384e5ac/pillow-13.0.0-cp314-cp314-win32.whl", hash = "sha256:2e31c4e68cffd7b1f116127626813b82fcba19edf6b940a7b0c266d6484d0055", size = 6508694, upload-time = "2026-10-16T22:16:45.883Z" }, + { url = "https://files.pythonhosted.org/packages/50/e2/7ad17747517e4c813dca78257d6bb593466f8231baf1384bc98d92745edb/pillow-13.0.0-cp314-cp314-win_amd64.whl", hash = "sha256:f7cbb7a64e7ec664775195e4f81923bc8a93d9451b963f844e59118f63147a7a", size = 7281830, upload-time = "2026-10-16T22:16:47.725Z" }, + { url = "https://files.pythonhosted.org/packages/41/9f/e5b51f2ce8ef4563215334035403ce61a244f93a2e65c24a940131618f87/pillow-13.0.0-cp314-cp314-win_arm64.whl", hash = "sha256:a6aaa7871aebca081eb5c45f83e845bbd9712ae99fa9286dbfdcee835e63f4b4", size = 2695468, upload-time = "2026-10-16T22:16:49.515Z" }, + { url = "https://files.pythonhosted.org/packages/97/73/a53502f731f6c84805a4ce87a8881e86d07a65aee64728b900d112dc703e/pillow-13.0.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7b999816b5850a35ada08443e6e03945f1f6488144a83afe2d37b240a552aafa", size = 5578196, upload-time = "2026-10-16T22:16:51.291Z" }, + { url = "https://files.pythonhosted.org/packages/21/50/7e949959a56b5559c78ef172b70fc6025706acb289f3f648a15329e4fa6f/pillow-13.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:67871a13cf47275201553b536c025da777f997fa562a19eb798af4ad4b97c18f", size = 4857276, upload-time = "2026-10-16T22:16:53.399Z" }, + { url = "https://files.pythonhosted.org/packages/c9/52/43ded0ac08e77e39d17bd6d894162572201b5e8fdc4a022b14c55a1960a4/pillow-13.0.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e8ca8f69b7c77fa96dad99f8638c1fc4f1c0bed4acaa1baf7a3c31bdb80a0ab1", size = 6607008, upload-time = "2026-10-16T22:16:55.525Z" }, + { url = "https://files.pythonhosted.org/packages/0d/2e/4a57ed216d5bf877387cba4d44c02aa87abe51ad2e06404aa6b597c4da39/pillow-13.0.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bce6a29c3898191f4c9998e4d4e8f69790caeabde46e54da4bc235ce5bde683", size = 7224281, upload-time = "2026-10-16T22:16:57.738Z" }, + { url = "https://files.pythonhosted.org/packages/5c/3d/2929b248e135752d63aaeabf53f6de797e905b7b6263f9c1e2adade20aba/pillow-13.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:816752a5ef76a80484c8c441c85593b7ea9304f6231fc5776ad1fbff7e773058", size = 6695600, upload-time = "2026-10-16T22:16:59.842Z" }, + { url = "https://files.pythonhosted.org/packages/bc/33/fb0da992cf084ed1ee6ee05e96b6191e35c351eb707ca2df874feb24ce47/pillow-13.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5bdb38ba220b61b4ec31dd1046dea6b016d3c6850a23f43ed8b58332b2fc668e", size = 7300589, upload-time = "2026-10-16T22:17:01.686Z" }, + { url = "https://files.pythonhosted.org/packages/bb/af/c30dd9ef6a3dce84ecb1b2393cac629047a32e66279056c6cb46c3ffd65c/pillow-13.0.0-cp314-cp314t-win32.whl", hash = "sha256:06903aac074d00c988e77a1fc435286dc498506d4ca8d6f69df9babddf4ecc15", size = 6517204, upload-time = "2026-10-16T22:17:03.722Z" }, + { url = "https://files.pythonhosted.org/packages/85/d5/ef3a8ae7609c8ab26570abf18194882534b480d245a9148b895a2262c004/pillow-13.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:9a635068d9793c7f0d929f39f18b58f1bd86c236e8e7b64167b86af9232ebca0", size = 7286695, upload-time = "2026-10-16T22:17:05.543Z" }, + { url = "https://files.pythonhosted.org/packages/84/3c/0861db0c69a03689ebe3e7599d35668a414deb5aaafd8255215e4e62e3d3/pillow-13.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0d1a9cf7bc6917538b20f8d06b9ab2147e542f68849e96fc58eb66bdf6acc692", size = 2698098, upload-time = "2026-10-16T22:17:07.674Z" }, +] + +[[package]] +name = "pluggy" +version = "1.7.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/bf/db/7fc19e6f2dc92a966727031389fc2e08b558f0f25eb7403c1119ad4713cd/pluggy-1.7.0.tar.gz", hash = "sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8", size = 123304, upload-time = "2026-10-15T09:50:58.343Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" }, +] + +[[package]] +name = "psutil" +version = "7.2.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/aa/c6/d1ddf4abb55e93cebc4f2ed8b5d6dbad109ecb8d63748dd2b20ab5e57ebe/psutil-7.2.2.tar.gz", hash = "sha256:0746f5f8d406af344fd547f1c8daa5f5c33dbc293bb8d6a16d80b4bb88f59372", size = 493740, upload-time = "2026-01-28T18:14:54.428Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/81/69/ef179ab5ca24f32acc1dac0c247fd6a13b501fd5534dbae0e05a1c48b66d/psutil-7.2.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:eed63d3b4d62449571547b60578c5b2c4bcccc5387148db46e0c2313dad0ee00", size = 130664, upload-time = "2026-01-28T18:15:09.469Z" }, + { url = "https://files.pythonhosted.org/packages/7b/64/665248b557a236d3fa9efc378d60d95ef56dd0a490c2cd37dafc7660d4a9/psutil-7.2.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7b6d09433a10592ce39b13d7be5a54fbac1d1228ed29abc880fb23df7cb694c9", size = 131087, upload-time = "2026-01-28T18:15:11.724Z" }, + { url = "https://files.pythonhosted.org/packages/d5/2e/e6782744700d6759ebce3043dcfa661fb61e2fb752b91cdeae9af12c2178/psutil-7.2.2-cp314-cp314t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1fa4ecf83bcdf6e6c8f4449aff98eefb5d0604bf88cb883d7da3d8d2d909546a", size = 182383, upload-time = "2026-01-28T18:15:13.445Z" }, + { url = "https://files.pythonhosted.org/packages/57/49/0a41cefd10cb7505cdc04dab3eacf24c0c2cb158a998b8c7b1d27ee2c1f5/psutil-7.2.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e452c464a02e7dc7822a05d25db4cde564444a67e58539a00f929c51eddda0cf", size = 185210, upload-time = "2026-01-28T18:15:16.002Z" }, + { url = "https://files.pythonhosted.org/packages/dd/2c/ff9bfb544f283ba5f83ba725a3c5fec6d6b10b8f27ac1dc641c473dc390d/psutil-7.2.2-cp314-cp314t-win_amd64.whl", hash = "sha256:c7663d4e37f13e884d13994247449e9f8f574bc4655d509c3b95e9ec9e2b9dc1", size = 141228, upload-time = "2026-01-28T18:15:18.385Z" }, + { url = "https://files.pythonhosted.org/packages/f2/fc/f8d9c31db14fcec13748d373e668bc3bed94d9077dbc17fb0eebc073233c/psutil-7.2.2-cp314-cp314t-win_arm64.whl", hash = "sha256:11fe5a4f613759764e79c65cf11ebdf26e33d6dd34336f8a337aa2996d71c841", size = 136284, upload-time = "2026-01-28T18:15:19.912Z" }, + { url = "https://files.pythonhosted.org/packages/e7/36/5ee6e05c9bd427237b11b3937ad82bb8ad2752d72c6969314590dd0c2f6e/psutil-7.2.2-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:ed0cace939114f62738d808fdcecd4c869222507e266e574799e9c0faa17d486", size = 129090, upload-time = "2026-01-28T18:15:22.168Z" }, + { url = "https://files.pythonhosted.org/packages/80/c4/f5af4c1ca8c1eeb2e92ccca14ce8effdeec651d5ab6053c589b074eda6e1/psutil-7.2.2-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:1a7b04c10f32cc88ab39cbf606e117fd74721c831c98a27dc04578deb0c16979", size = 129859, upload-time = "2026-01-28T18:15:23.795Z" }, + { url = "https://files.pythonhosted.org/packages/b5/70/5d8df3b09e25bce090399cf48e452d25c935ab72dad19406c77f4e828045/psutil-7.2.2-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:076a2d2f923fd4821644f5ba89f059523da90dc9014e85f8e45a5774ca5bc6f9", size = 155560, upload-time = "2026-01-28T18:15:25.976Z" }, + { url = "https://files.pythonhosted.org/packages/63/65/37648c0c158dc222aba51c089eb3bdfa238e621674dc42d48706e639204f/psutil-7.2.2-cp36-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b0726cecd84f9474419d67252add4ac0cd9811b04d61123054b9fb6f57df6e9e", size = 156997, upload-time = "2026-01-28T18:15:27.794Z" }, + { url = "https://files.pythonhosted.org/packages/8e/13/125093eadae863ce03c6ffdbae9929430d116a246ef69866dad94da3bfbc/psutil-7.2.2-cp36-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:fd04ef36b4a6d599bbdb225dd1d3f51e00105f6d48a28f006da7f9822f2606d8", size = 148972, upload-time = "2026-01-28T18:15:29.342Z" }, + { url = "https://files.pythonhosted.org/packages/04/78/0acd37ca84ce3ddffaa92ef0f571e073faa6d8ff1f0559ab1272188ea2be/psutil-7.2.2-cp36-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b58fabe35e80b264a4e3bb23e6b96f9e45a3df7fb7eed419ac0e5947c61e47cc", size = 148266, upload-time = "2026-01-28T18:15:31.597Z" }, + { url = "https://files.pythonhosted.org/packages/b4/90/e2159492b5426be0c1fef7acba807a03511f97c5f86b3caeda6ad92351a7/psutil-7.2.2-cp37-abi3-win_amd64.whl", hash = "sha256:eb7e81434c8d223ec4a219b5fc1c47d0417b12be7ea866e24fb5ad6e84b3d988", size = 137737, upload-time = "2026-01-28T18:15:33.849Z" }, + { url = "https://files.pythonhosted.org/packages/8c/c7/7bb2e321574b10df20cbde462a94e2b71d05f9bbda251ef27d104668306a/psutil-7.2.2-cp37-abi3-win_arm64.whl", hash = "sha256:8c233660f575a5a89e6d4cb65d9f938126312bca76d8fe087b947b3a1aaac9ee", size = 134617, upload-time = "2026-01-28T18:15:36.514Z" }, +] + +[[package]] +name = "psycopg" +version = "3.3.6" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "tzdata", marker = "sys_platform == 'win32'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/76/26/3ea4ca5eaea1c0debcdf7ee7c1613fbe721dc27a03c461c0817ffd8a0601/psycopg-3.3.6.tar.gz", hash = "sha256:c081f2250df751a943036e42db6df4571c66cd0aabe8291a7a506512b12007d2", size = 168171, upload-time = "2026-09-18T13:22:55.152Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4e/de/748bd7609c71cae5d737f0ba9192f19329f70180ecda8fff3cac02c5abe3/psycopg-3.3.6-py3-none-any.whl", hash = "sha256:a1db9f7148b06a28606767efaca51fa6f9398c5c0a3810519be69d7000bdb631", size = 215490, upload-time = "2026-09-18T13:15:29.374Z" }, +] + +[package.optional-dependencies] +binary = [ + { name = "psycopg-binary", marker = "implementation_name != 'pypy'" }, +] +pool = [ + { name = "psycopg-pool" }, +] + +[[package]] +name = "psycopg-binary" +version = "3.3.6" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6d/b9/60711317c284a442511644ea7185b56ebe627606d6741e732cd16108c47b/psycopg_binary-3.3.6-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:b3f75dee0f9afafabe4edc52c4842f1e1878ed2069bd05b22d6fe961e97e4dba", size = 4720512, upload-time = "2026-09-18T13:20:29.278Z" }, + { url = "https://files.pythonhosted.org/packages/63/da/28befc84454cbc6374550de7746f591f8fe1b6165c1fce249652cc8291c4/psycopg_binary-3.3.6-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:5927b7ba63153cd8e9862987290a2b783a5c590daf2a4ef981700cc3569166d4", size = 4782318, upload-time = "2026-09-18T13:20:35.401Z" }, + { url = "https://files.pythonhosted.org/packages/a4/8a/0d21c2c833cdc0d4244c77e858e0ed37fa2abec2623be4fd686f617109ce/psycopg_binary-3.3.6-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:0bf08b749cc144f33b44a91b78e3f71c60eb07963746a0df5a100b36ce3d7475", size = 5567460, upload-time = "2026-09-18T13:20:41.902Z" }, + { url = "https://files.pythonhosted.org/packages/49/6d/7692d0d4e656b6cc9868d8acc2e3b42f17a0db4a625400a6d093cb0533a1/psycopg_binary-3.3.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:31cd942c23f613276b81a6e6598cefa12960058b0f46e1e874b540c793f6aca5", size = 5246902, upload-time = "2026-09-18T13:20:47.661Z" }, + { url = "https://files.pythonhosted.org/packages/d4/c1/b8a1f18fb1b7558a17f57f7cb3fc8bc93189feea2958925950b3acb15743/psycopg_binary-3.3.6-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4690cf67738f0e0e49a32aeec99bf0e4595cc2b4f1af984a4345394b1dcff91a", size = 6847192, upload-time = "2026-09-18T13:20:56.874Z" }, + { url = "https://files.pythonhosted.org/packages/a5/76/404f33519167c65cca88ec4998776f1dbebccc301ee977f0e62c47fb0826/psycopg_binary-3.3.6-cp314-cp314-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ad1c785e784cfd87e8436c6b7702f2d321fc39601bbaf29bc63a41a867091638", size = 5079573, upload-time = "2026-09-18T13:21:04.155Z" }, + { url = "https://files.pythonhosted.org/packages/f0/d9/79e8fbc8f37262a415f3550f0bcc5f98037442bf3d12ef6cbae2056655ae/psycopg_binary-3.3.6-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:79a2a1c3449f6c3409427078ed1cec10de79f3023cb5f2504f0597d350ad46c7", size = 4613633, upload-time = "2026-09-18T13:21:10.664Z" }, + { url = "https://files.pythonhosted.org/packages/d4/47/96225db74be7d2ce04b3a58678b53cda610225055edf5faa775c9f501d8b/psycopg_binary-3.3.6-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:86147cb5d140341c3363fb5bacce31f8d5543902a46699d3c536b101bbceaf9e", size = 4293375, upload-time = "2026-09-18T13:21:16.027Z" }, + { url = "https://files.pythonhosted.org/packages/2a/d2/18e9c779a5efd565250329adaf529ecc2b8b2ed5be5cb0f6ccee208cbfd9/psycopg_binary-3.3.6-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:7308c93cf0b19bbaf8e6ff0a6ad50d3c442385739245fe15a8d593bf841734a6", size = 4019883, upload-time = "2026-09-18T13:21:21.587Z" }, + { url = "https://files.pythonhosted.org/packages/ef/28/0cc654afc6c2cda982767f5679d3646b30b1ec86545bdaa9402202d6776c/psycopg_binary-3.3.6-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:05a83ac9fd52b9bca7cb5ab04b3691163170bd16f53defa27216ea3aa07ee781", size = 4332607, upload-time = "2026-09-18T13:21:27.63Z" }, + { url = "https://files.pythonhosted.org/packages/f1/3e/0a753a74fbd7aef120f286c016e09d3cc3f1daf7688f4a145d27281260b2/psycopg_binary-3.3.6-cp314-cp314-win_amd64.whl", hash = "sha256:1fbd30e537dab22cafdf080608f10148fe2a5f3a61294ddb5113caac8a623840", size = 3755671, upload-time = "2026-09-18T13:21:33.855Z" }, +] + +[[package]] +name = "psycopg-pool" +version = "3.3.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/74/5e/c0664b968b102ff68b811d999c728546c48d5c1eec03e3bbaf88c0cb4472/psycopg_pool-3.3.3.tar.gz", hash = "sha256:df87b5d9d0ad7db37f6cdad4fa8ce113d250f5997f6db38e9a99192fb67f9e1d", size = 32006, upload-time = "2026-09-22T15:53:24.947Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/5d/b4/452c6607a0f479465cd8a9b0d9956919fcb150050c1f83f9f11e6b8ee8dc/psycopg_pool-3.3.3-py3-none-any.whl", hash = "sha256:9b9cd6a4fcec47a410f7e82d408540e7f77b478509e91b44c1a5457a13e5ff37", size = 40304, upload-time = "2026-09-22T15:53:23.712Z" }, +] + +[[package]] +name = "pycparser" +version = "3.12" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cb/27/eeb9f307bf07060f3d9f9aa0fb8c15b01bdfded0a941e4b2719c7f94cacd/pycparser-3.12.tar.gz", hash = "sha256:f03387877eab82ce01bbdfd0ba7252ee55a90b1c708d5129e2ce915475cf1db6", size = 158785, upload-time = "2026-10-22T13:40:03.56Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b6/ae/315bbeee126a769cbde43cf4908acb4b40408d8bf8bbf334dd7368d8dadf/pycparser-3.12-py3-none-any.whl", hash = "sha256:a076f3f489b39b43ed13563a1dafe42447445bec2e294154ec5c57fcdda4c85e", size = 62600, upload-time = "2026-10-22T13:40:02.021Z" }, +] + +[[package]] +name = "pydantic" +version = "2.14.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "annotated-types" }, + { name = "pydantic-core" }, + { name = "typing-extensions" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/7c/0b/8e10b2e693af8ec54346a14caf36221334775975a747c9ceaa3f8371d96d/pydantic-2.14.1.tar.gz", hash = "sha256:94f478203dd03404682a1ada216965651dd74b1d2d5ffd62e00e0837caab5c26", size = 900362, upload-time = "2026-10-11T18:37:55.396Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/35/ea/a56b9fe5066f3537b7882f77e9c5dfb26d8c2eefdaed9b5fc73d57b4dc22/pydantic-2.14.1-py3-none-any.whl", hash = "sha256:9195d967ec791692a04438115466764fb8b9a27b31f14a760437694f40d6b454", size = 488106, upload-time = "2026-10-11T18:37:53.437Z" }, +] + +[[package]] +name = "pydantic-core" +version = "2.50.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a6/24/af4ec4be49fbc810f35b0bdcacc3d433b56bbfa469fd3bfd4ae116cd9bf1/pydantic_core-2.50.1.tar.gz", hash = "sha256:e50d7b94baac6c7d09927fa5ca5800a0c7ee5015c7fcff65beb3a1931b5a6e09", size = 513515, upload-time = "2026-10-11T18:35:44.82Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/33/28b96e81677153715e3eafb9f26663a80841e859fde282a380359b0d3fa1/pydantic_core-2.50.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:1cf41f1ae3fa155cf167a72689ad044bcc1e3c97e064123677149bdfb5dafc4a", size = 2224428, upload-time = "2026-10-11T18:33:07.153Z" }, + { url = "https://files.pythonhosted.org/packages/94/40/15c06410c9b7b8da5805d27b64e09bd3f900e986728106db2689dbc51513/pydantic_core-2.50.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4df197990c15b5a37c5a277d131d9f2c67de6133f2e5dafd80d9bba4b99f46f9", size = 2023740, upload-time = "2026-10-11T18:33:08.763Z" }, + { url = "https://files.pythonhosted.org/packages/a1/4e/5eb629f6efc2a27e421d789dd4bfacbb5f6d09c80c28b13d1e87d73163d5/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0036473f5583e6a60e50b8b21651511564277a3f05cc5dab8cf579f552cd5f6c", size = 2049435, upload-time = "2026-10-11T18:33:10.366Z" }, + { url = "https://files.pythonhosted.org/packages/ba/8e/f195aebec49ad12318876ac2368c197a7939f5d52f8e156d2238ef8a4588/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:992c3514ec891fa7858099183e4d64e6bd5a5d4ff452fae29df22faa77a006bb", size = 2172975, upload-time = "2026-10-11T18:33:12.368Z" }, + { url = "https://files.pythonhosted.org/packages/e0/f5/7ad9fb83010cd5ea0948409db105676ed779c4e709e2d3d89b9fe2558794/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:739dc730e6be3bd5ec2f4ab5cfc7eb047cc45fc1497b3bafec74ff2ed07df597", size = 2364197, upload-time = "2026-10-11T18:33:14.244Z" }, + { url = "https://files.pythonhosted.org/packages/ca/fb/bf0aab3e78301d202b82a0322ec968cd703b11fc0623fde9a28708936f62/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:32fad3a91e51b6d2039c572db04a5a873260b399f6bd62c3552671fa7a4a2899", size = 2444259, upload-time = "2026-10-11T18:33:15.79Z" }, + { url = "https://files.pythonhosted.org/packages/45/35/38f6d6564fae57d9b12e5676dfa947e0e7d5c46dbeaa7eb3352261d6d299/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42b54c2c90ad348b5e3a85e03e715d572c1fde357ef104cdfe3b03b697a404ea", size = 2159857, upload-time = "2026-10-11T18:33:17.51Z" }, + { url = "https://files.pythonhosted.org/packages/65/a0/fb0a3ca10f139dcf765b2d312d10cf0f65c57c59993229d00ad12b14ceff/pydantic_core-2.50.1-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:2df1ff41884de2bc4b307bafd7c40a691094fad2ff8e767e5b45a319257bcf4e", size = 2233954, upload-time = "2026-10-11T18:33:19.591Z" }, + { url = "https://files.pythonhosted.org/packages/8c/6a/e63842252702aa4ec6e6b7178ca85e541a77459076592c23ebe2d9840b33/pydantic_core-2.50.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe90228920fd8ff2be62622b6bb8a2b11acd65046d50c6b130614b5879605a20", size = 2243876, upload-time = "2026-10-11T18:33:21.393Z" }, + { url = "https://files.pythonhosted.org/packages/39/25/5991cf8318b37e0dfab47b87541619a1df8501a793cba0d978846cba37a7/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:844b869f118e22a41a091bdcedda8a71bc1b0f62c38d1a0c3211cece47e1d8fc", size = 2277908, upload-time = "2026-10-11T18:33:23.324Z" }, + { url = "https://files.pythonhosted.org/packages/a7/3e/3ee8baaa6cc25a6961c69168cf9ff0f002d56f4e0d541ad6724c18fb61f3/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:2eb75304506894a281d346220a4f7481a1b8729577c5ed2a05395991966a8396", size = 2449285, upload-time = "2026-10-11T18:33:24.942Z" }, + { url = "https://files.pythonhosted.org/packages/c0/c7/acbec6deac13fe697a80c275a9b6661db62c4d323bac8a47347b1f39c7cd/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:6b20a4bffabdad0db2927ac034ae3b8a681b1f7a0182f3e60b479ad2fde21ebb", size = 2479013, upload-time = "2026-10-11T18:33:26.925Z" }, + { url = "https://files.pythonhosted.org/packages/10/08/21a3f237b264389f6219d053ee78fc1b5c2fd402c1b1cb2b6cb8b85f9834/pydantic_core-2.50.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:99ba9bc2b8062ea0c326a990f7f00e6530c23579de66dd246e72c4cafef950a5", size = 1484400, upload-time = "2026-10-11T18:33:28.693Z" }, + { url = "https://files.pythonhosted.org/packages/09/ce/077a6d262d12ef09108377ac0717f029f420d773ace63cafd6143af75568/pydantic_core-2.50.1-cp314-cp314-win32.whl", hash = "sha256:cf356f70551d40374eaffb1aa63f1eb6d2006681cbd7a9faea173ce0f4dd7cd2", size = 2103222, upload-time = "2026-10-11T18:33:30.326Z" }, + { url = "https://files.pythonhosted.org/packages/14/4c/350a2415209c43d670eb71d3c040f332c04a30583d39e311b05c7ac15762/pydantic_core-2.50.1-cp314-cp314-win_amd64.whl", hash = "sha256:d32f3acc081cc3923386d88f422cde8892335e95f034e0104bb4cf9310d9915f", size = 2171586, upload-time = "2026-10-11T18:33:32.139Z" }, + { url = "https://files.pythonhosted.org/packages/bf/92/9bea6ca96580a0902fed366f064f0829e404f41889b34543279a1162b888/pydantic_core-2.50.1-cp314-cp314-win_arm64.whl", hash = "sha256:bed5163e03b98bc1fa2eb05d74c63d9c5c95d8ed6254985481640fbf5e237dea", size = 2155773, upload-time = "2026-10-11T18:33:33.896Z" }, + { url = "https://files.pythonhosted.org/packages/86/8c/f121f073cf32bdd5cba7e6230b1ce0ac845b0cf43e44dd597d95af272db2/pydantic_core-2.50.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:9572c1369e9c9da2d64a7b7992c786d90ff295abc93964cfe3125e4290768070", size = 2234017, upload-time = "2026-10-11T18:33:35.588Z" }, + { url = "https://files.pythonhosted.org/packages/a4/69/2bb2bcd6146cffe98d760a46c42ae71efd5151d9b2f9c9bf6619a3b32083/pydantic_core-2.50.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2005207aafe1231315718bf6ed5d064a7300fb4772754af35ee72fc68159492e", size = 2001016, upload-time = "2026-10-11T18:33:37.57Z" }, + { url = "https://files.pythonhosted.org/packages/20/b3/fbf854c7d07ec114260c26e9e2071a4381740f9ae09641dbfcbdf2a18c45/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:64f6047f62a6c5ae08d0a6afb035667aa2d97c3d20d69762e034c5ea144d92a5", size = 2023015, upload-time = "2026-10-11T18:33:39.433Z" }, + { url = "https://files.pythonhosted.org/packages/65/20/6de55b2f92cdb614b745c6e9ced639fc4fd7e1e77604825a88bdece6fcbd/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1ef800dd7d85bcdadf4c3076e4c94e43939493558a3b69a1ea830c706d4617bb", size = 2192543, upload-time = "2026-10-11T18:33:41.381Z" }, + { url = "https://files.pythonhosted.org/packages/0c/d9/19e91c94bd5c405945ce2f15526808aea37e162c253160de8ed7bf70b406/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b0135bcdcaa0f23573f286e4cb5e0fd2962700964ed13df085b85f2b97aeab9e", size = 2388704, upload-time = "2026-10-11T18:33:43.167Z" }, + { url = "https://files.pythonhosted.org/packages/b6/bc/2e24c8415eae1a25ee5a5484946a917123bad2e9d01689a759236928175a/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0b3a6f334c6a2345ca15318ff894502a90012536404b37c844a976c76c846e0b", size = 2464118, upload-time = "2026-10-11T18:33:44.856Z" }, + { url = "https://files.pythonhosted.org/packages/bd/1f/945b8053cb061c64e102bcaf7bfb9ed740c0bd4349f9bb978a7d4ddff4ab/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:06e01fbbfdb9be777b316a71b6c49efaf4a08b615d0a98d678cda3023f79d019", size = 2150142, upload-time = "2026-10-11T18:33:46.661Z" }, + { url = "https://files.pythonhosted.org/packages/2b/78/96a3e50bf0d64aaae781107eb9335b7529d05a85793ed6e7241c4cd1d931/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:a29a061fec0b4e2d714f277e70a3a18125ecff803f2fea6eade2f2e53711d112", size = 2245577, upload-time = "2026-10-11T18:33:48.574Z" }, + { url = "https://files.pythonhosted.org/packages/7a/5d/a6038a0322232758a6ebfa709f4ca14a60bf5b93940cd0b345056a557da4/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f5187624823423e1d1b82b1072ac41dc837389e18d3d0572cc19bbee46cd550a", size = 2263728, upload-time = "2026-10-11T18:33:50.527Z" }, + { url = "https://files.pythonhosted.org/packages/0d/4b/76ded3333a457a9344c4f2d63f2d82d0101654b05178fa4ddfe7d3627674/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3e46a9eb0a0901dd6275e6b06ac3a464885ef350ec4121fe486869de8053e4bb", size = 2293630, upload-time = "2026-10-11T18:33:52.362Z" }, + { url = "https://files.pythonhosted.org/packages/a9/00/9eca378335c9c1b72bc779bf6e4c2a82ce784f14ec48a0e87102c9870e05/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:756d669f04e62ec4148ecfe22be6a4484d9b1181a6ef32e205ebfd200540858b", size = 2468048, upload-time = "2026-10-11T18:33:54.118Z" }, + { url = "https://files.pythonhosted.org/packages/35/ca/e3832e9cf93651251de43c8c5c029ed680a3c1a0a1b17ee26c81bed08cbd/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:c516cc5367ca3448995d42cb994bf3f4c9002d2a7c22eac9622551269ad1b807", size = 2512159, upload-time = "2026-10-11T18:33:55.99Z" }, + { url = "https://files.pythonhosted.org/packages/4b/f2/773469b5a10a39116a2cb17edaf6d722f017dd8da07161b371465311c542/pydantic_core-2.50.1-cp314-cp314t-win32.whl", hash = "sha256:9d1bed94af6a63835461f3cf7502058eb166c58c4778e11d0f433cfb1bd69e19", size = 2098406, upload-time = "2026-10-11T18:33:58.043Z" }, + { url = "https://files.pythonhosted.org/packages/ee/42/0bb74f8f25204b259b11ab7c12dc7f180893b6bd706118b385147fb6efd5/pydantic_core-2.50.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c8dce1f1e0e5358b682a6ad3fa5e31b31d4560997b8e61417e9217c8d60f8a0c", size = 2148481, upload-time = "2026-10-11T18:33:59.913Z" }, + { url = "https://files.pythonhosted.org/packages/47/0d/d801646c9679a4e630e15cf521d4108b93854b42a6e6e02391bd4c6b1095/pydantic_core-2.50.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ceff0acc940be2715bd6ad17b24c0e5304abf44f6efd0f81ee8499e640f9dc86", size = 2174972, upload-time = "2026-10-11T18:34:01.875Z" }, +] + +[[package]] +name = "pygments" +version = "2.21.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" }, +] + +[[package]] +name = "pyparsing" +version = "3.3.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e4/11/b213bebff182584360cb8d17c72c1677fec5c5c228de439e63bcf8ab1c8f/pyparsing-3.3.3.tar.gz", hash = "sha256:928ae7e20211f3b6f3915a72f06a0cfd29ab9d24279dd6346b6b1a7146397d36", size = 1050487, upload-time = "2026-09-20T20:59:05.609Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/38/bb/d215ee7c73b61497b28a5503f9f53523f294fcc936762b7caf90e0c1c2b5/pyparsing-3.3.3-py3-none-any.whl", hash = "sha256:ece8c00a69cf01b45d0b1dedabb469c90d8caf996d4fda40f147627a122849a4", size = 126420, upload-time = "2026-09-20T20:59:04.025Z" }, +] + +[[package]] +name = "pytest" +version = "9.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "sys_platform == 'win32'" }, + { name = "iniconfig" }, + { name = "packaging" }, + { name = "pluggy" }, + { name = "pygments" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/79/42/bb4641652e58dedeac2ec51abc1f8cae4fee4ec63899a0999016229a0f2a/pytest-9.2.0.tar.gz", hash = "sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b", size = 1797555, upload-time = "2026-10-27T21:30:20.728Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/39/1f5d8c8877a0fa327db959c19341d4be61660de1ab6b7391f9eb805bcd67/pytest-9.2.0-py3-none-any.whl", hash = "sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588", size = 411776, upload-time = "2026-10-27T21:30:19.131Z" }, +] + +[[package]] +name = "python-dateutil" +version = "4.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "tzdata" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/18/39/b3927f3616f6223832f9b760e4208e8a7c7e1dea2b4d9ad7d32a5d214c3a/python_dateutil-4.0.0.tar.gz", hash = "sha256:d7295ff14fdc0f92f662100bfb6c551d160ca090f2939f1ec5b9794265c03f06", size = 250419, upload-time = "2026-11-01T07:02:42.426Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2f/a9/52b89563d154433d79b51ed1eb4842bf7334cb2696891a7fe135618853d7/python_dateutil-4.0.0-py3-none-any.whl", hash = "sha256:a5e246f79eb80475e691bf93862cead98decd8a498cf53ba0516fcdc0f50dc1c", size = 92853, upload-time = "2026-11-01T07:02:40.797Z" }, +] + +[[package]] +name = "pyyaml" +version = "6.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" }, + { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" }, + { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" }, + { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" }, + { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" }, + { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" }, + { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" }, + { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" }, + { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" }, + { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" }, + { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" }, + { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" }, + { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" }, + { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" }, + { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" }, + { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" }, + { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" }, +] + +[[package]] +name = "redis" +version = "8.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a8/99/604f0b666d4c616d891cf77ebb9db6bb21601344c051aebf1b72b9ff915f/redis-8.1.0.tar.gz", hash = "sha256:6e1a19beef9225c83efd689c7e6b7da2d5215b1f42cd13b7fc3714d0a09c7b25", size = 5254356, upload-time = "2026-07-30T08:51:00.269Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/66/9d/c5731f6e3608663d4d3656fd8d3aecee8b509c3082818f5a13eae925baea/redis-8.1.0-py3-none-any.whl", hash = "sha256:a4fe1aac3d3b3cc791d4b3d5931c5a956045dc951ee74d1c913ee3ac4d2ee9fb", size = 560618, upload-time = "2026-07-30T08:50:58.497Z" }, +] + +[[package]] +name = "referencing" +version = "0.36.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "attrs" }, + { name = "rpds-py" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/2f/db/98b5c277be99dd18bfd91dd04e1b759cad18d1a338188c936e92f921c7e2/referencing-0.36.2.tar.gz", hash = "sha256:df2e89862cd09deabbdba16944cc3f10feb6b3e6f18e902f7cc25609a34775aa", size = 74744, upload-time = "2025-01-25T08:48:16.138Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c1/b1/3baf80dc6d2b7bc27a95a67752d0208e410351e3feb4eb78de5f77454d8d/referencing-0.36.2-py3-none-any.whl", hash = "sha256:e8699adbbf8b5c7de96d8ffa0eb5c158b3beafce084968e2ea8bb08c6794dcd0", size = 26775, upload-time = "2025-01-25T08:48:14.241Z" }, +] + +[[package]] +name = "requests" +version = "2.34.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "charset-normalizer" }, + { name = "idna" }, + { name = "urllib3" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ac/c3/e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf/requests-2.34.2.tar.gz", hash = "sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed", size = 142856, upload-time = "2026-05-14T19:25:27.735Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl", hash = "sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0", size = 73075, upload-time = "2026-05-14T19:25:26.443Z" }, +] + +[[package]] +name = "rfc3339-validator" +version = "0.1.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "six" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/28/ea/a9387748e2d111c3c2b275ba970b735e04e15cdb1eb30693b6b5708c4dbd/rfc3339_validator-0.1.4.tar.gz", hash = "sha256:138a2abdf93304ad60530167e51d2dfb9549521a836871b88d7f4695d0022f6b", size = 5513, upload-time = "2021-05-12T16:37:54.178Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7b/44/4e421b96b67b2daff264473f7465db72fbdf36a07e05494f50300cc7b0c6/rfc3339_validator-0.1.4-py2.py3-none-any.whl", hash = "sha256:24f6ec1eda14ef823da9e36ec7113124b39c04d50a4d3d3a3c2859577e7791fa", size = 3490, upload-time = "2021-05-12T16:37:52.536Z" }, +] + +[[package]] +name = "rpds-py" +version = "2026.9.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/42/68/3bd46b8a5e01d3c2ebdf9c5e9497912e3fe0cde02bac21a7130ca866e403/rpds_py-2026.9.1.tar.gz", hash = "sha256:4793ef7f78268b124b73fa933440f01d258bbae01de9fa53e9080c9ab0425a12", size = 63948, upload-time = "2026-10-04T16:32:36.469Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8a/f2/67b94be1532767803415c1c5a1fd88ea487643d74a673cec1ba140af77bb/rpds_py-2026.9.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:c9d1aca01f49170fdcf5c92761b1fafe97f554b721ca4570c5949fff778f0d4b", size = 347178, upload-time = "2026-10-04T16:30:00.865Z" }, + { url = "https://files.pythonhosted.org/packages/04/37/b751de2b59b0197a1d92a5dd491de88e8a5e928c2e6562581974f1e85263/rpds_py-2026.9.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3f0e9ac28fc067d4d34b88ae43c48e9489455c97fee9633d851f7eeed5a05d35", size = 341878, upload-time = "2026-10-04T16:30:02.564Z" }, + { url = "https://files.pythonhosted.org/packages/72/e2/5873bc4643c250db9e05d48dc0c93763d4aa68bc3b81164cb1af3b45b284/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:07deecbfce94c78473018bc7d10b337cc651d12df87a1eb2cb3e4024bc9c33d0", size = 373963, upload-time = "2026-10-04T16:30:04.026Z" }, + { url = "https://files.pythonhosted.org/packages/51/03/5acf7632158247f3f6386ff0af3a1ee48167d575037e8d0920594b76d92b/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:821b2755db9194409254012f429c56643416fb96ef9be090be82ec8826b7f477", size = 377975, upload-time = "2026-10-04T16:30:05.555Z" }, + { url = "https://files.pythonhosted.org/packages/e6/00/63fda451b8bffa5808fc8bb311ee7c073b340974b09f273c7b2a145d3d62/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3c91c210ae7645626c608400e3519b4a642f837cce09ca830db3beb2e9f274d4", size = 490347, upload-time = "2026-10-04T16:30:07.156Z" }, + { url = "https://files.pythonhosted.org/packages/a1/ae/c093ffd070ba0fb02f76c565d06fecc65ad6e4afdbae78f7031076d3cdac/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:54ac2158a6f96cfbabff0b2eedaf94b90c5ec7ca8317fcadc61e1c2b2e0ff6ef", size = 392962, upload-time = "2026-10-04T16:30:08.77Z" }, + { url = "https://files.pythonhosted.org/packages/22/9d/d08a1128ab199b2f0cf25bfeb0639bd05119fff4b7c47bec24ef9a8ec23f/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eac2f5dbafd585dfe31f86a23ebf0d3ba480a9d49ebc87947267b5608d4ea0cd", size = 371623, upload-time = "2026-10-04T16:30:10.501Z" }, + { url = "https://files.pythonhosted.org/packages/53/c7/4758ddcbb75609414bbccfcb11d612436f9b3ee821bd2f33f0f1604ee648/rpds_py-2026.9.1-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:8aa5dda18d39b6143eb24809d158f9252c88f402749b6f1b62a506cc7d96cc35", size = 376997, upload-time = "2026-10-04T16:30:12.124Z" }, + { url = "https://files.pythonhosted.org/packages/87/e4/947bd7f608ff60faf46dc9d389c3dffd0e3d767d78a0be19978448ef0ce7/rpds_py-2026.9.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5c90e7fa02e8f5de0d10c17595c568ada48c5302e749462c0ea1a4c362111a86", size = 400169, upload-time = "2026-10-04T16:30:13.804Z" }, + { url = "https://files.pythonhosted.org/packages/4b/35/fe93e020a0543b5670472c18d7e6af3197c08da571240ce1965c84f85c0f/rpds_py-2026.9.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:e6d198bad4e49dd6732fbd636e2fc5c082f45c8cad0b4acb756b00c82c76072e", size = 551615, upload-time = "2026-10-04T16:30:15.332Z" }, + { url = "https://files.pythonhosted.org/packages/0d/4f/5d2a0136bb03b2a56a39dc6ff92d58a6e3e53a2e17079238b86228882f16/rpds_py-2026.9.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:96beca19ec79de272e8668585380ff9092c47077c1d7a1e098e00bbd921f4785", size = 614655, upload-time = "2026-10-04T16:30:16.92Z" }, + { url = "https://files.pythonhosted.org/packages/09/1c/3f1025aaf70d9bf7272cc41f8b64ee76b48bf01726248138430e16f23b38/rpds_py-2026.9.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:a5cf77eb04f20b720be95265a3e00eb2a14814074255cc27069c551b2db53118", size = 579602, upload-time = "2026-10-04T16:30:18.555Z" }, + { url = "https://files.pythonhosted.org/packages/53/0d/5c72e6204f76610608706da32b6b7e11ef7e10317558a7bb15a122e008dc/rpds_py-2026.9.1-cp314-cp314-win32.whl", hash = "sha256:a03d57b86d2a51d0a66c92177e2be154ad015f357791d306e714569999cdb4cc", size = 206315, upload-time = "2026-10-04T16:30:20.05Z" }, + { url = "https://files.pythonhosted.org/packages/a4/0b/489d48abbcc7d70cf3fbf662d9d22abf1f4650761c0a9ae05260800800d3/rpds_py-2026.9.1-cp314-cp314-win_amd64.whl", hash = "sha256:837c6b305e26fe0f75b15c92cf3b2ba29e0ae19dc40b1c557b026cb426347d0c", size = 222852, upload-time = "2026-10-04T16:30:21.604Z" }, + { url = "https://files.pythonhosted.org/packages/91/16/bbb05a7e6a10cf79ba639be7f799d770ee15f64175cc61d081b218dd402a/rpds_py-2026.9.1-cp314-cp314-win_arm64.whl", hash = "sha256:fce4b85234a0cbad67bf8e6e1201ee815d172c9aebad75f25645bc4d834f8e31", size = 218709, upload-time = "2026-10-04T16:30:23.036Z" }, + { url = "https://files.pythonhosted.org/packages/22/ac/ac507a0a4ec478ca470440a09583db4be5259ba7670aeba0620822f1e57a/rpds_py-2026.9.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:3a72c11530d71abfb66c8d7696a2f86c43e63fca8b948f1a784ac490f4ec688e", size = 349596, upload-time = "2026-10-04T16:30:24.558Z" }, + { url = "https://files.pythonhosted.org/packages/e9/f2/817a46b658d5070f477f722c298ee9a24525b0e4017347964146ef5fdd0e/rpds_py-2026.9.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:068c37bba854ec2fe42f7365c640af11dd9895890ccbf2df5070d0c059bd7f96", size = 343114, upload-time = "2026-10-04T16:30:26.048Z" }, + { url = "https://files.pythonhosted.org/packages/6c/42/6ade976b13ac1b4cb3bf2eb603f1be2fe74df19a29988d4c2b386be59d6f/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7fca4eb6df565e2a928f1c7dad92d27db8f9df0f449e76423ed5d7e713ed445", size = 374197, upload-time = "2026-10-04T16:30:27.699Z" }, + { url = "https://files.pythonhosted.org/packages/d9/70/77cdf1d3f1a07faabe936016ae623aec7981f73108a8fe7a203ed2e21998/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c933c6678c6f116ff8af47a4c6db0868b8ace74af0343016c0ef00f00272ea69", size = 378025, upload-time = "2026-10-04T16:30:29.451Z" }, + { url = "https://files.pythonhosted.org/packages/3f/6b/18a44a3beaa9b7931acb04af7bd9539836477c630a794452d4826d6185d4/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:028ad274ea951dac64491b5d1e65712a4aeabfdbdb9fccf797b57bd899b0c495", size = 491969, upload-time = "2026-10-04T16:30:30.995Z" }, + { url = "https://files.pythonhosted.org/packages/73/27/fb39cfd6bddaf741b024f813890374578ff8ac1f1adc473659c048b03b05/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:740d0a99cf9de0b17a3943388e9294a59becf75e7c43421f387bd3c7a9901f7c", size = 393905, upload-time = "2026-10-04T16:30:32.628Z" }, + { url = "https://files.pythonhosted.org/packages/ed/71/0fa7bb77b57af0d710273964180d11b503f62b8a5c358eb2d8c3f62feff6/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0da298fb372dc192610a4b9ecbc68a0cd8b675bbbd1fc519d01b41cfd658333e", size = 374569, upload-time = "2026-10-04T16:30:34.257Z" }, + { url = "https://files.pythonhosted.org/packages/54/22/f41cfac269af3b449513ef1bc3d7f32fde52abbbd2d01c7e76b47743acd9/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:eb61be926bb81567c1f48bdc8aa22b9855048dc2efd53871f9f7e6e9a5632346", size = 377482, upload-time = "2026-10-04T16:30:35.997Z" }, + { url = "https://files.pythonhosted.org/packages/b4/fc/312b49006e7f8f9ca5f96647577b8aa6f3df30519c46bd448f5c425af0b2/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:42e75466f83cd43f6026c81eab74246efb2bdadafb307b85700632d06c68f299", size = 400040, upload-time = "2026-10-04T16:30:37.76Z" }, + { url = "https://files.pythonhosted.org/packages/cf/a6/18cca7a878dc7fa95165a83343fd4d7b65643fd22e54e47340a451121d5c/rpds_py-2026.9.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:617f59cde379b4f648a09797b7f683d04b90a46344cddab85639da5aff0f5531", size = 551849, upload-time = "2026-10-04T16:30:39.443Z" }, + { url = "https://files.pythonhosted.org/packages/e4/6d/1f5685e20f39604691bdc3c05aaa6b8bd2f954e9e996477adf2376768e33/rpds_py-2026.9.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:3edae8c5ddfdb6985d49ae9d150516e5076888879022f91a26c2de9276ce0bdb", size = 614842, upload-time = "2026-10-04T16:30:41.231Z" }, + { url = "https://files.pythonhosted.org/packages/c6/25/98652109fd9f7e10268dd4571aa52b81987001b806f37ef1a18260de714a/rpds_py-2026.9.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:0f045bb053c9057720d72c56dffe30dffdc05997b2897a827b9325f0ab6623fa", size = 582606, upload-time = "2026-10-04T16:30:43.345Z" }, + { url = "https://files.pythonhosted.org/packages/19/03/11ca09099bab5f53373a80a334c424ec917c13d050760a59499d2af5171e/rpds_py-2026.9.1-cp314-cp314t-win32.whl", hash = "sha256:bf35d0568abda97233239ce32896d3ad53fccc537832c104e30c94aa5fb93569", size = 203341, upload-time = "2026-10-04T16:30:44.954Z" }, + { url = "https://files.pythonhosted.org/packages/6f/8a/88909e3ffd9f47f5b58211473875d8c3c09079f0058c46fb72c55a702a26/rpds_py-2026.9.1-cp314-cp314t-win_amd64.whl", hash = "sha256:1e8d4d79d828299bf44a55db22a9388ab967b49d17132c88eab0f4360b48da8e", size = 222843, upload-time = "2026-10-04T16:30:46.486Z" }, +] + +[[package]] +name = "ruff" +version = "0.17.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/84/0e/3d154514b5bad104f7e1c13169c2d09aa9959fccdc06eb47610ccdfa83ed/ruff-0.17.4.tar.gz", hash = "sha256:f32d178b50e826e00f6c6c1be3f56333068acb9b67fe167143527fa9b81e890d", size = 5357750, upload-time = "2026-11-05T18:52:17.638Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e0/61/c83c78bbb6108f6c6270a106cf12b54175f4f42da088b9bb880f18e31289/ruff-0.17.4-py3-none-linux_armv6l.whl", hash = "sha256:2b08c4ff98dc234f4a3871a3105353b922fa875ea1073ca31001eb8c06bb4d89", size = 10252195, upload-time = "2026-11-05T18:51:36.594Z" }, + { url = "https://files.pythonhosted.org/packages/0a/12/dd158708378866e8b53e145a465dbc51a7cccb9fa197a74d67eaedde7234/ruff-0.17.4-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:13e781c3c5f663e7fba737eaaeb70dd943dd55171daf316afb25cd5268cfe0c7", size = 10266044, upload-time = "2026-11-05T18:51:39.502Z" }, + { url = "https://files.pythonhosted.org/packages/28/32/89a94a8eb11fd505a381ae6f04e190d038d9958695209dc1786ce5cfcda3/ruff-0.17.4-py3-none-macosx_11_0_arm64.whl", hash = "sha256:7ed2f416349944f908f9574215994602242b0836844eba48eec61473033afca0", size = 9432227, upload-time = "2026-11-05T18:51:41.968Z" }, + { url = "https://files.pythonhosted.org/packages/58/de/a392dc38b215798ae72e639d228b7f6c02d826a95d1c0ad7c4c0ee49ef5b/ruff-0.17.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8ea6e0017c785f7282092b11e46338e4ebed1b9e575ebf2e55a8a1eda968241a", size = 10136900, upload-time = "2026-11-05T18:51:44.562Z" }, + { url = "https://files.pythonhosted.org/packages/b7/8f/a880f60f42005f6ffdf58f77af34c7ee327000b5607f48a2f6a69d8b242c/ruff-0.17.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7e061dcc0933c7031a616ac8d66ac540309b2aa21ab558101a8f53e9ac7a1185", size = 10051245, upload-time = "2026-11-05T18:51:46.7Z" }, + { url = "https://files.pythonhosted.org/packages/09/55/98844264108af7d5ec27ca3a9cd5a989094ca657a14599c4b69a537a0e9a/ruff-0.17.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f99e95a1515161138be3cbd1b06c06e739d8feb38ade35564556999fffc3686e", size = 10704341, upload-time = "2026-11-05T18:51:49.228Z" }, + { url = "https://files.pythonhosted.org/packages/28/a2/5edf97659c3ac7c73f978003bd314936f671037fdac6b978e9de3e4b2b65/ruff-0.17.4-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5f28cf0dd37cb172fa5a8d2e92e6ada3a9dbd0609f094ed24039929eef0b7524", size = 11394465, upload-time = "2026-11-05T18:51:51.534Z" }, + { url = "https://files.pythonhosted.org/packages/f2/8f/51371ae856b2bef4d15a044a574695fbc0f6ae63aafa42a2a22428070fb6/ruff-0.17.4-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6b21c771b296888e8a35c6f48555f4b44e4483f61675d6ed51810a5203469ce6", size = 10988262, upload-time = "2026-11-05T18:51:53.91Z" }, + { url = "https://files.pythonhosted.org/packages/af/1b/62874f14c7873f27c7887d2b1ea41de990e14ba9518801ffe8eacb5d51a6/ruff-0.17.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2cd025509b2e15721b426fc70fd946d71f43b3db3b08e946dfec2d696d911690", size = 10572829, upload-time = "2026-11-05T18:51:56.129Z" }, + { url = "https://files.pythonhosted.org/packages/98/30/860b9dae67432b16b88558a9cb2d3194825fa62838f8b9cc49f5d9022095/ruff-0.17.4-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:49b77f7b3921669466882a4881168801bdb06ec2cd83fb936049016cf5fdece1", size = 10617545, upload-time = "2026-11-05T18:51:58.172Z" }, + { url = "https://files.pythonhosted.org/packages/0f/08/781a4b41a1c83fd6e30fea610d6502a6f94e49cf94693fd37bdcbc6bfe11/ruff-0.17.4-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:e3b84eb74f260d1c2dbd236fd9d4c011d4fdd0a52bdf8aea57a10e3a1b71fca5", size = 10111955, upload-time = "2026-11-05T18:52:00.59Z" }, + { url = "https://files.pythonhosted.org/packages/3c/e9/94b1c7b677120f30839254518924f73a8157e9bcfa200edcd5796fecdb99/ruff-0.17.4-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:20e43d7a08e712e33067ba887e6574546c79bd4831596ce8f16803ac7ff9ad90", size = 10058355, upload-time = "2026-11-05T18:52:03.61Z" }, + { url = "https://files.pythonhosted.org/packages/27/5f/a825910b9f309336dc33cb8c0774126662c1d2f765699b3e0a1bd538d01f/ruff-0.17.4-py3-none-musllinux_1_2_i686.whl", hash = "sha256:0d1f4848fd2ec0499be4046db9b7dfcc952666885f00233cc7033515282556a8", size = 10415932, upload-time = "2026-11-05T18:52:06.264Z" }, + { url = "https://files.pythonhosted.org/packages/8b/b8/0796468423413ea4df1a6e2442ae26cf49b8f7dda0eecf246e0d5d0dde54/ruff-0.17.4-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:6007e7f3a0e55b0fbdb947af69cf24c21b4928df6be8ef3e767c69b5ccccf496", size = 10826033, upload-time = "2026-11-05T18:52:08.675Z" }, + { url = "https://files.pythonhosted.org/packages/b9/ab/d8e407669ffe5014429baf780c2df47e001968a6e4c17f615e2e7b13a9ba/ruff-0.17.4-py3-none-win32.whl", hash = "sha256:3971a78cba76298b284c8321e6d40d93045ed348bec5c369d85099efc97fb7cf", size = 9931993, upload-time = "2026-11-05T18:52:11.169Z" }, + { url = "https://files.pythonhosted.org/packages/bd/15/42af8a72d8946e3c9efd2bbf6641e462b6832783b0d043d63ef5b280ba7f/ruff-0.17.4-py3-none-win_amd64.whl", hash = "sha256:67c5a894fc054cf41f75f7afa24815de5a74329d97634126c2a1015740ff4e8c", size = 10292922, upload-time = "2026-11-05T18:52:13.436Z" }, + { url = "https://files.pythonhosted.org/packages/68/9e/f1dbffcfb8ff25dadbc21f87a8b73c3848abe4abada9d4b08ccef8bec40c/ruff-0.17.4-py3-none-win_arm64.whl", hash = "sha256:181ae38a9a8fb94925bf7d0794327b48d7fd7f4b50cfd84c0e999cc09ef8d131", size = 9889396, upload-time = "2026-11-05T18:52:15.549Z" }, +] + +[[package]] +name = "six" +version = "1.17.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, +] + +[[package]] +name = "starlette" +version = "1.10.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/48/bb/3d8757f21e9a53d9035c9eb039a777047139a16bfdbedfc7a58241c3d914/starlette-1.10.0.tar.gz", hash = "sha256:b8399098d4c1e3522734f7235dc79b1fc967f96cf139c81e0fa30479e0685f9b", size = 2734356, upload-time = "2026-10-24T15:04:12.342Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/88/2e/947cfe02def9371c07cd5bf5b6b61c829e9aecb9904db02a66cfafbc1eec/starlette-1.10.0-py3-none-any.whl", hash = "sha256:478c0ab3b4ced6e82719849c118fa406f0278a3499c1a898cd15cd31bdc38ce4", size = 80571, upload-time = "2026-10-24T15:04:10.371Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" }, +] + +[[package]] +name = "typing-inspection" +version = "0.4.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ff/50/0195198eb1d75bab716bb0a813abea4cc394bfa17a92a189f021a34859af/typing_inspection-0.4.5.tar.gz", hash = "sha256:7f16c411e7930dc79596d42ab44672a3fe5f60eb34b781a1647e7872363120c7", size = 81194, upload-time = "2026-11-04T14:13:23.774Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/de/0c/ea2544850a7c135e15033a5c7a8e7211136184b7ae63e2239d557c2b3019/typing_inspection-0.4.5-py3-none-any.whl", hash = "sha256:bc210535442b39e1bf2805e0c7a17dfd6a4ace760c84c7f7d16245d23a6b1c39", size = 14874, upload-time = "2026-11-04T14:13:22.616Z" }, +] + +[[package]] +name = "tzdata" +version = "2026.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/7a/29/6a1391d31cd00ff9e927215a224a880e1e84e826b64ba80a499e51c074d8/tzdata-2026.6.tar.gz", hash = "sha256:85d2cd9c09f81f0bb29db27759fc83af4f1e620efb814f8c5bf8b4cc4feece6d", size = 201017, upload-time = "2026-10-28T09:57:09.137Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0a/66/9a06c2227fedfd4919f0eaaa8b94377d9730882a7e4f95823c9a331ab5e1/tzdata-2026.6-py2.py3-none-any.whl", hash = "sha256:0a10eec6e13ef16b627fabed9a5f2ba61a62b1c67f327305f4e7e412a70b4aec", size = 348210, upload-time = "2026-10-28T09:57:07.276Z" }, +] + +[[package]] +name = "urllib3" +version = "2.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e3/05/b17359e1cefb4f909b5e40b1b90a496d987258916dbbf88e842c729f510e/urllib3-2.8.0.tar.gz", hash = "sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63", size = 458972, upload-time = "2026-09-15T19:29:36.253Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/92/9d/c4e665119135114480843e7ab388fa94d8480650450e6f8e26b70d323a4c/urllib3-2.8.0-py3-none-any.whl", hash = "sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3", size = 135717, upload-time = "2026-09-15T19:29:34.577Z" }, +] + +[[package]] +name = "uvicorn" +version = "0.54.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/da/34/30e9280707135d2cfc589dfff3cb796bd07a3aeb1a3e415ba09dd89d7bb4/uvicorn-0.54.0.tar.gz", hash = "sha256:a2e33cbfaa0306f8e6b0c13e0cb89d7d7a2da3e62b90c66e18c33d9807b28620", size = 112283, upload-time = "2026-09-25T06:52:37.601Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/38/0c/b54a4fdd7f90a3af8b02ebc9ce6712c2c208b7926a2f7bad95c33ebbe943/uvicorn-0.54.0-py3-none-any.whl", hash = "sha256:505bdb0f318731d45f1f712071fc781a8981f6847a31c902c9f5e652d4f67faf", size = 87427, upload-time = "2026-09-25T06:52:35.829Z" }, +] -- 2.54.0 From 2f0a8672be67af9e62d2693c3df9bd683fcdae57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 07:59:56 +0300 Subject: [PATCH 02/12] test: adapt HTTP checks to persistent Bearer sessions --- Makefile | 2 +- compose.yaml | 7 +- src/repository.py | 6 +- student-tests/conftest.py | 26 ++++++-- student-tests/test_api.py | 16 ++++- student-tests/test_sessions.py | 114 +++++++++++++++++++++++++++++++++ 6 files changed, 155 insertions(+), 16 deletions(-) create mode 100644 student-tests/test_sessions.py diff --git a/Makefile b/Makefile index 2a1e3f42..ac0a35cf 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PYTHON ?= python3 -BASE_URL ?= http://localhost:8080 +BASE_URL ?= http://127.0.0.1:8082 CA_FILE ?= ACTION_SCRIPT ?= TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",) diff --git a/compose.yaml b/compose.yaml index 90ff7c24..cff40ee6 100644 --- a/compose.yaml +++ b/compose.yaml @@ -35,10 +35,7 @@ services: memswap_limit: 128m migrate: image: ${API_IMAGE:-mtusi-messenger:lab2} - build: - context: . - args: - VCS_REF: ${VCS_REF:-unknown} + pull_policy: never command: [python, -m, src.migrate] environment: DATABASE_URL_FILE: /run/secrets/database_url @@ -72,7 +69,7 @@ services: memswap_limit: 512m pids_limit: 128 read_only: true - tmpfs: [/tmp:rw,noexec,nosuid,size=16m] + tmpfs: ["/tmp:rw,noexec,nosuid,size=16m"] cap_drop: [ALL] security_opt: [no-new-privileges:true] stop_grace_period: 10s diff --git a/src/repository.py b/src/repository.py index f08f17d4..632353c2 100644 --- a/src/repository.py +++ b/src/repository.py @@ -150,7 +150,8 @@ class PostgresRepository: try: with self.database.connection() as conn: conn.execute( - "INSERT INTO messages(id,chat_id,sender_id,text,created_at) " + "INSERT INTO messages(id,chat_id,sender_id," + "text,created_at) " "VALUES(%s,%s,%s,%s,%s)", ( message.id, @@ -174,7 +175,8 @@ class PostgresRepository: with self.database.connection() as conn: rows = conn.execute( "SELECT c.id,c.title,c.created_at,ARRAY(SELECT user_id " - "FROM members WHERE chat_id=c.id ORDER BY position) member_ids " + "FROM members WHERE chat_id=c.id " + "ORDER BY position) member_ids " "FROM chats c JOIN members own ON own.chat_id=c.id " "WHERE own.user_id=%s " + condition diff --git a/student-tests/conftest.py b/student-tests/conftest.py index 64d1b17e..2b26ba1f 100644 --- a/student-tests/conftest.py +++ b/student-tests/conftest.py @@ -10,7 +10,9 @@ from jsonschema import Draft202012Validator, FormatChecker CONTRACT = json.loads( (Path(__file__).parents[1] / "contracts/openapi.json").read_text() ) -BASE_URL = os.environ.get("BASE_URL", "http://127.0.0.1:8080") +BASE_URL = os.environ.get("BASE_URL", "http://127.0.0.1:8082") +PASSWORD = "Synthetic-Password-🌍-123" +TOKENS = {} def check(result: httpx.Response, status: int, schema: str) -> dict: @@ -38,9 +40,23 @@ def check(result: httpx.Response, status: int, schema: str) -> dict: def register(client: httpx.Client, **overrides) -> dict: - data = {"username": "u_" + uuid4().hex[:24], "display_name": "Алиса 🌍"} + data = { + "username": "u_" + uuid4().hex[:24], + "display_name": "Алиса 🌍", + "password": PASSWORD, + } data.update(overrides) - return check(client.post("/api/v1/users", json=data), 201, "User") + user = check(client.post("/api/v1/users", json=data), 201, "User") + session = check( + client.post( + "/api/v1/auth/sessions", + auth=httpx.BasicAuth(data["username"], data["password"]), + ), + 201, + "Session", + ) + TOKENS[user["id"]] = session["token"] + return user @pytest.fixture @@ -62,7 +78,7 @@ def chat(client, actors): return check( client.post( "/api/v1/chats", - headers={"X-User-Id": alice["id"]}, + headers=headers(alice), json={"title": "Учёба 🌍", "member_ids": [alice["id"], bob["id"]]}, ), 201, @@ -71,7 +87,7 @@ def chat(client, actors): def headers(actor: dict) -> dict: - return {"X-User-Id": actor["id"]} + return {"Authorization": "Bearer " + TOKENS[actor["id"]]} def history(client, actor, chat_id, limit=7): diff --git a/student-tests/test_api.py b/student-tests/test_api.py index 6551b293..964c1425 100644 --- a/student-tests/test_api.py +++ b/student-tests/test_api.py @@ -6,7 +6,7 @@ from uuid import UUID, uuid4 import httpx import pytest -from conftest import BASE_URL, check, headers, history, register +from conftest import BASE_URL, PASSWORD, check, headers, history, register @pytest.mark.parametrize("path", ["/health/live", "/health/ready"]) @@ -54,6 +54,8 @@ def test_identity(client, actors): ], ) def test_invalid_user(client, data): + if isinstance(data, dict): + data = {"password": PASSWORD, **data} check(client.post("/api/v1/users", content=json.dumps(data)), 400, "Error") @@ -72,7 +74,11 @@ def test_duplicate_username(client, actors): check( client.post( "/api/v1/users", - json={"username": actors[0]["username"], "display_name": "B"}, + json={ + "username": actors[0]["username"], + "display_name": "B", + "password": PASSWORD, + }, ), 409, "Error", @@ -383,7 +389,11 @@ def test_registration_race(client): barrier.wait(timeout=15) result = conn.post( "/api/v1/users", - json={"username": username, "display_name": "Test"}, + json={ + "username": username, + "display_name": "Test", + "password": PASSWORD, + }, ) check( result, diff --git a/student-tests/test_sessions.py b/student-tests/test_sessions.py new file mode 100644 index 00000000..78a5ce4d --- /dev/null +++ b/student-tests/test_sessions.py @@ -0,0 +1,114 @@ +from uuid import uuid4 + +import httpx +import pytest +from conftest import PASSWORD, TOKENS, check, headers, register + + +@pytest.mark.parametrize( + "password", ["", "x" * 11, "x" * 129, " " * 12, 42, True, None] +) +def test_password_validation(client, password): + check( + client.post( + "/api/v1/users", + json={ + "username": "pwd_" + uuid4().hex[:20], + "display_name": "Test", + "password": password, + }, + ), + 400, + "Error", + ) + + +def test_full_utf8_password(client): + password = "🌍" * 127 + ":" + user = register(client, password=password) + assert ( + check( + client.get("/api/v1/users/me", headers=headers(user)), 200, "User" + ) + == user + ) + + +@pytest.mark.parametrize( + "authorization", [None, "Basic broken", "Bearer unknown", "Basic /w=="] +) +def test_bad_basic(client, authorization): + result = client.post( + "/api/v1/auth/sessions", + headers={"Authorization": authorization} if authorization else {}, + ) + check(result, 401, "Error") + assert ( + result.headers["www-authenticate"] + == 'Basic realm="messenger", charset="UTF-8"' + ) + + +def test_wrong_password_and_unknown_user(client): + user = register(client) + for username in [user["username"], "missing_" + uuid4().hex[:20]]: + result = client.post( + "/api/v1/auth/sessions", + auth=httpx.BasicAuth(username, PASSWORD + "wrong"), + ) + data = check(result, 401, "Error") + assert data["error"]["message"] == "Authentication required" + + +def test_logout_is_not_revived_by_cache(client): + user = register(client) + auth = headers(user) + check(client.get("/api/v1/users/me", headers=auth), 200, "User") + result = client.delete("/api/v1/auth/sessions/current", headers=auth) + assert result.status_code == 204 and result.content == b"" + assert result.headers["x-request-id"] + check(client.get("/api/v1/users/me", headers=auth), 401, "Error") + check( + client.delete("/api/v1/auth/sessions/current", headers=auth), + 401, + "Error", + ) + + +def test_only_current_session_revoked(client): + user = register(client) + another = check( + client.post( + "/api/v1/auth/sessions", + auth=httpx.BasicAuth(user["username"], PASSWORD), + ), + 201, + "Session", + ) + assert another["token"] != TOKENS[user["id"]] + assert len(another["token"]) >= 32 + assert ( + client.delete( + "/api/v1/auth/sessions/current", headers=headers(user) + ).status_code + == 204 + ) + result = client.get( + "/api/v1/users/me", + headers={"Authorization": "Bearer " + another["token"]}, + ) + assert check(result, 200, "User") == user + + +def test_bearer_source_and_ignored_user_header(client, actors): + alice, bob, _ = actors + auth = {**headers(alice), "X-User-Id": bob["id"]} + assert ( + check(client.get("/api/v1/users/me", headers=auth), 200, "User")["id"] + == alice["id"] + ) + result = client.get( + "/api/v1/users/me", auth=httpx.BasicAuth(alice["username"], PASSWORD) + ) + check(result, 401, "Error") + assert result.headers["www-authenticate"] == 'Bearer realm="messenger"' -- 2.54.0 From 5fb1f19de15552321d2c9f5449e088e6452a7189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 08:05:15 +0300 Subject: [PATCH 03/12] test: verify persistent sessions, dependency failures and rollback --- Makefile | 4 +- evidence/http-tests.json | 8 + pyproject.toml | 3 + research/__init__.py | 0 scripts/stand.py | 137 +++++++++++++++++ scripts/verify_lifecycle.py | 289 ++++++++++++++++++++++++++++++++++++ 6 files changed, 439 insertions(+), 2 deletions(-) create mode 100644 evidence/http-tests.json create mode 100644 research/__init__.py create mode 100644 scripts/stand.py create mode 100644 scripts/verify_lifecycle.py diff --git a/Makefile b/Makefile index ac0a35cf..e50192c1 100644 --- a/Makefile +++ b/Makefile @@ -38,8 +38,8 @@ down: image: docker build --build-arg VCS_REF=$$(git rev-parse HEAD) -t "$(IMAGE)" . lint: - $(UV) run --locked ruff format src student-tests research scripts/bootstrap.py scripts/verify_*.py - $(UV) run --locked ruff check src student-tests research scripts/bootstrap.py scripts/verify_*.py + $(UV) run --locked ruff format src student-tests research scripts/bootstrap.py scripts/stand.py scripts/verify_*.py + $(UV) run --locked ruff check src student-tests research scripts/bootstrap.py scripts/stand.py scripts/verify_*.py test-student: BASE_URL="$(BASE_URL)" $(UV) run --locked pytest student-tests verify: diff --git a/evidence/http-tests.json b/evidence/http-tests.json new file mode 100644 index 00000000..9a487dbc --- /dev/null +++ b/evidence/http-tests.json @@ -0,0 +1,8 @@ +{ + "date": "2026-11-07", + "source_commit": "2f0a867", + "public_smoke": "PASS: lab2 public API scenario", + "student_tests": {"passed": 77, "seconds": 91.82}, + "command": "NO_PROXY=localhost,127.0.0.1 make test; pytest student-tests -q -x", + "note": "HTTP checks against real PostgreSQL/Valkey/API Compose stack; credentials remain in memory." +} diff --git a/pyproject.toml b/pyproject.toml index aadeac6c..92167123 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,9 @@ include = ["src/**/*.py", "student-tests/**/*.py", "research/**/*.py", "scripts/ [tool.ruff.lint] select = ["E", "F", "I", "B", "UP"] +[tool.ruff.per-file-target-version] +"scripts/*.py" = "py39" + [tool.pytest.ini_options] testpaths = ["student-tests"] addopts = "-ra" diff --git a/research/__init__.py b/research/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/scripts/stand.py b/scripts/stand.py new file mode 100644 index 00000000..7957248b --- /dev/null +++ b/scripts/stand.py @@ -0,0 +1,137 @@ +import json +import os +import subprocess +import time +from pathlib import Path +from uuid import uuid4 + +import httpx + +ROOT = Path(__file__).resolve().parents[1] +BASE = os.environ.get("BASE_URL", "http://127.0.0.1:8082") + + +def command(args, *, input=None): + result = subprocess.run( + args, cwd=ROOT, input=input, capture_output=True, text=True + ) + if result.returncode: + raise RuntimeError( + "Command failed: " + + args[0] + + "; " + + result.stderr.replace(str(ROOT), "") + ) + return result.stdout.strip() + + +def compose(*args): + return command(["docker", "compose", *args]) + + +def sql(query, *, database="messenger"): + return compose( + "exec", + "-T", + "postgres", + "psql", + "-U", + "messenger", + "-d", + database, + "-A", + "-t", + "-v", + "ON_ERROR_STOP=1", + "-c", + query, + ) + + +def cache(command_name, *args): + script = ( + 'export REDISCLI_AUTH="$(cat /run/secrets/cache_password)"; ' + 'exec valkey-cli "$@"' + ) + return compose( + "exec", "-T", "cache", "sh", "-c", script, "sh", command_name, *args + ) + + +def ready(base=BASE, *, timeout=30): + end = time.monotonic() + timeout + with httpx.Client(base_url=base, trust_env=False, timeout=6) as client: + while time.monotonic() < end: + try: + if client.get("/health/ready").status_code == 200: + return + except httpx.HTTPError: + pass + time.sleep(0.2) + raise TimeoutError("API readiness") + + +def actor(client): + username = "verify_" + uuid4().hex[:20] + password = "Synthetic-" + uuid4().hex + ":🌍" + result = client.post( + "/api/v1/users", + json={ + "username": username, + "display_name": "Synthetic", + "password": password, + }, + ) + assert result.status_code == 201 + user = result.json() + session = client.post( + "/api/v1/auth/sessions", auth=httpx.BasicAuth(username, password) + ) + assert session.status_code == 201 + return user, password, session.json() + + +def auth(session): + return {"Authorization": "Bearer " + session["token"]} + + +def extra_api(*, ttl=3600, pool_size=1): + name = "mtusi-lab2-test-" + uuid4().hex[:10] + compose( + "run", + "-d", + "--no-deps", + "--name", + name, + "-e", + "SESSION_TTL_SECONDS=" + str(ttl), + "-e", + "DB_POOL_SIZE=" + str(pool_size), + "-p", + "127.0.0.1::8080", + "api", + ) + try: + info = json.loads(command(["docker", "inspect", name]))[0] + base = ( + "http://127.0.0.1:" + + info["NetworkSettings"]["Ports"]["8080/tcp"][0]["HostPort"] + ) + ready(base) + return name, base + except Exception: + command(["docker", "rm", "-f", name]) + raise + + +def instances(): + data = {} + for role in ["api", "postgres", "cache"]: + cid = compose("ps", "-q", role) + info = json.loads(command(["docker", "inspect", cid]))[0] + data[role] = { + "container": cid[:12], + "pid": info["State"]["Pid"], + "started_at": info["State"]["StartedAt"], + } + return data diff --git a/scripts/verify_lifecycle.py b/scripts/verify_lifecycle.py new file mode 100644 index 00000000..3aca62f8 --- /dev/null +++ b/scripts/verify_lifecycle.py @@ -0,0 +1,289 @@ +import argparse +import hashlib +import json +import time +from datetime import UTC, datetime +from pathlib import Path +from uuid import uuid4 + +import httpx + +from scripts.stand import ( + BASE, + ROOT, + actor, + auth, + cache, + command, + compose, + extra_api, + instances, + ready, + sql, +) + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("--output", required=True) + args = parser.parse_args() + output = Path(args.output) + if output.exists(): + raise SystemExit("Choose new output path") + receipt = { + "date": datetime.now(UTC).isoformat(), + "commit": command(["git", "rev-parse", "HEAD"]), + "command": "python -m scripts.verify_lifecycle", + } + ready() + source_hashes = { + p.name: hashlib.sha256(p.read_bytes()).hexdigest() + for p in (ROOT / "src").glob("*.py") + } + installed_hashes = json.loads( + compose( + "exec", + "-T", + "api", + "python", + "-c", + "import hashlib,json;from pathlib import Path;" + "print(json.dumps({p.name:hashlib.sha256(p.read_bytes()).hexdigest() " + "for p in Path('/app/src').glob('*.py')}))", + ) + ) + assert source_hashes == installed_hashes + receipt["runtime_source_hashes_match"] = True + api_info = json.loads( + command(["docker", "inspect", compose("ps", "-q", "api")]) + )[0] + receipt["image_revision"] = api_info["Config"]["Labels"][ + "org.opencontainers.image.revision" + ] + with httpx.Client(base_url=BASE, trust_env=False, timeout=15) as client: + user, password, session = actor(client) + headers = auth(session) + chat = client.post( + "/api/v1/chats", + headers=headers, + json={"title": "Lifecycle", "member_ids": [user["id"]]}, + ).json() + path = "/api/v1/chats/" + chat["id"] + "/messages" + message = client.post( + path, headers=headers, json={"text": "Synthetic retained message"} + ) + assert message.status_code == 201 + message_id = message.json()["id"] + before = instances() + started = time.perf_counter() + command(["sh", "scripts/restart.sh"]) + ready() + after = instances() + for role in before: + assert before[role]["started_at"] != after[role]["started_at"] + assert ( + client.get(path, headers=headers).json()["items"][0]["id"] + == message_id + ) + receipt["persistence"] = { + "same_token": True, + "same_message": True, + "before": before, + "after": after, + "seconds": time.perf_counter() - started, + } + migration_count = sql("SELECT count(*) FROM schema_migrations") + compose("run", "--rm", "--no-deps", "migrate") + assert sql("SELECT count(*) FROM schema_migrations") == migration_count + receipt["migration_repeat"] = "PASS" + files_before = { + p.name: hashlib.sha256(p.read_bytes()).hexdigest() + for p in (ROOT / "secrets").iterdir() + } + command(["python3", "scripts/bootstrap.py"]) + assert files_before == { + p.name: hashlib.sha256(p.read_bytes()).hexdigest() + for p in (ROOT / "secrets").iterdir() + } + receipt["bootstrap_preserves_secrets"] = True + dump = compose( + "exec", + "-T", + "postgres", + "pg_dump", + "-U", + "messenger", + "--data-only", + "messenger", + ) + assert password not in dump and session["token"] not in dump + del dump + privacy = json.loads( + sql( + "SELECT json_build_object('argon2id'," + "password_hash LIKE '$argon2id$%','digest_bytes'," + "(SELECT min(octet_length(token_digest)) FROM sessions " + "WHERE user_id=users.id)) FROM users WHERE id='" + + user["id"] + + "'" + ) + ) + assert privacy == {"argon2id": True, "digest_bytes": 32} + receipt["credential_storage"] = { + **privacy, + "raw_password_and_token_absent_in_dump": True, + } + cache("FLUSHDB") + assert ( + client.get("/api/v1/users/me", headers=headers).status_code == 200 + ) + info_before = cache("INFO", "stats") + for _ in range(20): + assert ( + client.get("/api/v1/users/me", headers=headers).status_code + == 200 + ) + info_after = cache("INFO", "stats") + + def hits(value): + return int( + next( + line.split(":")[1] + for line in value.splitlines() + if line.startswith("keyspace_hits:") + ) + ) + + assert hits(info_after) - hits(info_before) >= 20 + receipt["cache_hits"] = hits(info_after) - hits(info_before) + compose("stop", "cache") + try: + started = time.perf_counter() + assert ( + client.get("/api/v1/users/me", headers=headers).status_code + == 200 + ) + receipt["cache_stopped"] = { + "status": 200, + "seconds": time.perf_counter() - started, + } + finally: + compose("up", "-d", "--no-recreate", "--wait", "cache") + cache("FLUSHDB") + assert ( + client.get(path, headers=headers).json()["items"][0]["id"] + == message_id + ) + receipt["cache_flush_preserves_truth"] = True + for mode in ["pause", "stop"]: + compose(mode, "postgres") + try: + started = time.perf_counter() + result = client.get("/api/v1/users/me", headers=headers) + elapsed = time.perf_counter() - started + assert result.status_code == 503 and elapsed < 6 + assert result.json()["error"]["code"] == "unavailable" + assert ( + result.headers["x-request-id"] + == result.json()["error"]["request_id"] + ) + assert client.get("/health/live").status_code == 200 + receipt["postgres_" + mode] = { + "status": result.status_code, + "seconds": elapsed, + "cached_identity_not_trusted": True, + } + finally: + if mode == "pause": + compose("unpause", "postgres") + else: + compose("up", "-d", "--no-recreate", "--wait", "postgres") + ready(timeout=45) + assert ( + client.get(path, headers=headers).json()["items"][0]["id"] + == message_id + ) + # Отказ посередине вставки участников откатывает весь чат. + outsider, _, _ = actor(client) + title = "rollback_" + uuid4().hex + function = "rollback_" + uuid4().hex[:8] + sql( + "CREATE FUNCTION " + + function + + "() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN " + + "IF NEW.user_id='" + + outsider["id"] + + "'::uuid THEN RAISE EXCEPTION 'synthetic member failure'; " + + "END IF; RETURN NEW; END $$; CREATE TRIGGER " + + function + + " BEFORE INSERT ON members FOR EACH ROW EXECUTE FUNCTION " + + function + + "()" + ) + try: + result = client.post( + "/api/v1/chats", + headers=headers, + json={ + "title": title, + "member_ids": [user["id"], outsider["id"]], + }, + ) + assert result.status_code == 500 + assert ( + sql("SELECT count(*) FROM chats WHERE title='" + title + "'") + == "0" + ) + receipt["chat_transaction_rollback"] = { + "injected_failure_status": 500, + "remaining_chat_rows": 0, + } + finally: + sql( + "DROP TRIGGER " + + function + + " ON members; DROP FUNCTION " + + function + + "()" + ) + # Короткий TTL — на отдельном API; обычный smoke сохраняет TTL3600. + name, base = extra_api(ttl=2) + try: + with httpx.Client( + base_url=base, trust_env=False, timeout=15 + ) as short: + _, _, expiring = actor(short) + assert ( + short.get( + "/api/v1/users/me", headers=auth(expiring) + ).status_code + == 200 + ) + time.sleep(2.2) + assert ( + short.get( + "/api/v1/users/me", headers=auth(expiring) + ).status_code + == 401 + ) + receipt["expiry"] = {"ttl_seconds": 2, "status_after_expiry": 401} + finally: + command(["docker", "rm", "-f", name]) + assert ( + client.delete( + "/api/v1/auth/sessions/current", headers=headers + ).status_code + == 204 + ) + assert ( + client.get("/api/v1/users/me", headers=headers).status_code == 401 + ) + receipt["logout_after_cache_hit"] = "PASS" + receipt["result"] = "PASS" + output.parent.mkdir(parents=True, exist_ok=True) + output.write_text(json.dumps(receipt, ensure_ascii=False, indent=2) + "\n") + print(json.dumps(receipt, ensure_ascii=False, indent=2)) + + +if __name__ == "__main__": + main() -- 2.54.0 From 195d4abfce088eebae83687beda55d34a293bd08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 08:08:40 +0300 Subject: [PATCH 04/12] test: record durable sessions and bounded dependency failures --- evidence/lifecycle.json | 79 +++++++++++++++++++++++++++++++++++++ scripts/verify_lifecycle.py | 3 +- 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 evidence/lifecycle.json diff --git a/evidence/lifecycle.json b/evidence/lifecycle.json new file mode 100644 index 00000000..4b387f6b --- /dev/null +++ b/evidence/lifecycle.json @@ -0,0 +1,79 @@ +{ + "date": "2026-11-07T05:05:22.285580+00:00", + "commit": "5fb1f19de15552321d2c9f5449e088e6452a7189", + "command": "python -m scripts.verify_lifecycle", + "runtime_source_hashes_match": true, + "image_revision": "2f0a8672be67af9e62d2693c3df9bd683fcdae57", + "persistence": { + "same_token": true, + "same_message": true, + "before": { + "api": { + "container": "2b25734b0954", + "pid": 1409, + "started_at": "2026-11-07T05:00:09.733545264Z" + }, + "postgres": { + "container": "29e277263007", + "pid": 1109, + "started_at": "2026-11-07T05:00:04.997609011Z" + }, + "cache": { + "container": "9f6a93f4f941", + "pid": 1041, + "started_at": "2026-11-07T05:00:04.881758678Z" + } + }, + "after": { + "api": { + "container": "2b25734b0954", + "pid": 21469, + "started_at": "2026-11-07T05:05:24.139344714Z" + }, + "postgres": { + "container": "29e277263007", + "pid": 21288, + "started_at": "2026-11-07T05:05:23.819680089Z" + }, + "cache": { + "container": "9f6a93f4f941", + "pid": 21329, + "started_at": "2026-11-07T05:05:23.858910756Z" + } + }, + "seconds": 5.230442958010826 + }, + "migration_repeat": "PASS", + "bootstrap_preserves_secrets": true, + "credential_storage": { + "argon2id": true, + "digest_bytes": 32, + "raw_password_and_token_absent_in_dump": true + }, + "cache_hits": 20, + "cache_stopped": { + "status": 200, + "seconds": 0.11006329099473078 + }, + "cache_flush_preserves_truth": true, + "postgres_pause": { + "status": 503, + "seconds": 4.011241999993217, + "cached_identity_not_trusted": true + }, + "postgres_stop": { + "status": 503, + "seconds": 0.003582208009902388, + "cached_identity_not_trusted": true + }, + "chat_transaction_rollback": { + "injected_failure_status": 500, + "remaining_chat_rows": 0 + }, + "expiry": { + "ttl_seconds": 2, + "status_after_expiry": 401 + }, + "logout_after_cache_hit": "PASS", + "result": "PASS" +} diff --git a/scripts/verify_lifecycle.py b/scripts/verify_lifecycle.py index 3aca62f8..be509c3d 100644 --- a/scripts/verify_lifecycle.py +++ b/scripts/verify_lifecycle.py @@ -48,7 +48,8 @@ def main(): "python", "-c", "import hashlib,json;from pathlib import Path;" - "print(json.dumps({p.name:hashlib.sha256(p.read_bytes()).hexdigest() " + "print(json.dumps({p.name:" + "hashlib.sha256(p.read_bytes()).hexdigest() " "for p in Path('/app/src').glob('*.py')}))", ) ) -- 2.54.0 From d978b8ff4d32f5d5d8f230bf1b48047e8a6490a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 08:12:09 +0300 Subject: [PATCH 05/12] research: compare keyset indexes and restore an isolated database --- evidence/public-persistence.txt | 8 + research/query_plan.py | 442 ++++++++++++++++++++++++++++++++ 2 files changed, 450 insertions(+) create mode 100644 evidence/public-persistence.txt create mode 100644 research/query_plan.py diff --git a/evidence/public-persistence.txt b/evidence/public-persistence.txt new file mode 100644 index 00000000..c8b8303c --- /dev/null +++ b/evidence/public-persistence.txt @@ -0,0 +1,8 @@ +Date: 2026-11-07 +Runtime source: 2f0a8672be67af9e62d2693c3df9bd683fcdae57 +Command: make test-persistence ACTION_SCRIPT=scripts/restart.sh + +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. + +Actual API/PostgreSQL/Valkey restart evidence: lifecycle.json diff --git a/research/query_plan.py b/research/query_plan.py new file mode 100644 index 00000000..2066f3af --- /dev/null +++ b/research/query_plan.py @@ -0,0 +1,442 @@ +"""Изолированная БД: планы, цена записи, backup/restore без рабочих данных.""" + +import argparse +import hashlib +import json +import resource +import time +from datetime import UTC, datetime, timedelta +from pathlib import Path +from uuid import UUID, uuid4, uuid5 + +import psycopg +from psycopg import sql +from psycopg.conninfo import make_conninfo + +from src.settings import secret + +NAMESPACE = UUID("2e52c91b-b28f-4990-988c-7e8e15c9f131") +USER = uuid5(NAMESPACE, "research-user") +ORIGIN = datetime(2026, 1, 1, tzinfo=UTC) +SIZES = [90_000, 10_000, 1000, 100, 10] + + +def connect(database): + return psycopg.connect( + make_conninfo(secret("DATABASE_URL"), dbname=database), + autocommit=True, + connect_timeout=3, + prepare_threshold=None, + options="-c statement_timeout=60000 -c timezone=UTC", + ) + + +def safe_database(name): + import re + + if not re.fullmatch(r"(?:research|restored)_[a-f0-9]{12}", name): + raise ValueError("Refusing database outside research scope") + + +def snapshot(conn): + counts = {} + for table in [ + "users", + "chats", + "members", + "messages", + "sessions", + "schema_migrations", + ]: + counts[table] = conn.execute( + sql.SQL("SELECT count(*) FROM {}").format(sql.Identifier(table)) + ).fetchone()[0] + checksum = hashlib.sha256() + with conn.transaction(), conn.cursor(name="snapshot_messages") as cursor: + cursor.execute( + "SELECT id,chat_id,sender_id,text,created_at " + "FROM messages ORDER BY id" + ) + for row in cursor: + checksum.update( + json.dumps( + [str(value) for value in row], separators=(",", ":") + ).encode() + ) + checksum.update(b"\n") + selected = [] + for index, size in enumerate(SIZES): + chat = uuid5(NAMESPACE, "chat:" + str(index)) + for offset in [0, size // 2, size - 1]: + row = conn.execute( + "SELECT id,chat_id,sender_id,text,created_at " + "FROM messages WHERE chat_id=%s " + "ORDER BY created_at,id OFFSET %s LIMIT 1", + (chat, offset), + ).fetchone() + selected.append([str(value) for value in row]) + return { + "counts": counts, + "messages_sha256": checksum.hexdigest(), + "selected_messages": selected, + } + + +def inside_plan(database): + safe_database(database) + with connect("messenger") as admin: + admin.execute( + sql.SQL("CREATE DATABASE {}").format(sql.Identifier(database)) + ) + with connect(database) as conn: + migration = Path("migrations/001_core.sql").read_bytes() + conn.execute(migration.decode()) + conn.execute( + "CREATE TABLE schema_migrations (name text PRIMARY KEY, " + "checksum text NOT NULL, " + "applied_at timestamptz NOT NULL DEFAULT now())" + ) + conn.execute( + "INSERT INTO schema_migrations(name,checksum) VALUES(%s,%s)", + ("001_core.sql", hashlib.sha256(migration).hexdigest()), + ) + conn.execute( + "INSERT INTO users VALUES(%s,%s,%s,%s,%s)", + (USER, "research_user", "Synthetic", "not-a-login", ORIGIN), + ) + cursors = [] + for index, size in enumerate(SIZES): + chat = uuid5(NAMESPACE, "chat:" + str(index)) + conn.execute( + "INSERT INTO chats VALUES(%s,%s,%s)", + (chat, "Research " + str(index), ORIGIN), + ) + conn.execute("INSERT INTO members VALUES(%s,%s,0)", (chat, USER)) + conn.execute( + "INSERT INTO messages SELECT " + "md5(%s || ':' || n::text)::uuid,%s,%s," + "rpad('message ' || n,80,'x'),%s + n*interval '1 microsecond' " + "FROM generate_series(1,%s) n", + (str(chat), chat, USER, ORIGIN, size), + ) + for position, offset in [ + ("head", 0), + ("middle", size // 2), + ("tail", max(0, size - 52)), + ]: + row = conn.execute( + "SELECT created_at,id FROM messages WHERE chat_id=%s " + "ORDER BY created_at,id OFFSET %s LIMIT 1", + (chat, offset), + ).fetchone() + cursors.append((size, position, chat, row[0], row[1])) + assert ( + conn.execute("SELECT count(*) FROM messages").fetchone()[0] + >= 100_000 + ) + query = ( + "SELECT id,chat_id,sender_id,text,created_at FROM messages " + "WHERE chat_id=%s AND (created_at,id)>(%s,%s) " + "ORDER BY created_at,id LIMIT 51" + ) + reads, writes, indexes = [], [], [] + for repeat, order in enumerate( + [ + ["chat_only", "keyset"], + ["keyset", "chat_only"], + ["chat_only", "keyset"], + ], + 1, + ): + for variant in order: + conn.execute("DROP INDEX IF EXISTS messages_history_idx") + conn.execute("DROP INDEX IF EXISTS messages_chat_only_idx") + if variant == "chat_only": + conn.execute( + "CREATE INDEX messages_chat_only_idx " + "ON messages(chat_id)" + ) + index_name = "messages_chat_only_idx" + else: + conn.execute( + "CREATE INDEX messages_history_idx " + "ON messages(chat_id,created_at,id)" + ) + index_name = "messages_history_idx" + conn.execute("VACUUM (ANALYZE) messages") + index_bytes = conn.execute( + "SELECT pg_relation_size(%s)", (index_name,) + ).fetchone()[0] + indexes.append( + { + "repeat": repeat, + "variant": variant, + "bytes": index_bytes, + } + ) + for size, position, chat, at, mid in cursors: + parameters = (chat, at, mid) + conn.execute(query, parameters).fetchall() + plan = conn.execute( + "EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON) " + query, + parameters, + ).fetchone()[0][0] + reads.append( + { + "repeat": repeat, + "variant": variant, + "chat_messages": size, + "position": position, + "execution_ms": plan["Execution Time"], + "planning_ms": plan["Planning Time"], + "shared_hits": plan["Plan"].get( + "Shared Hit Blocks", 0 + ), + "shared_reads": plan["Plan"].get( + "Shared Read Blocks", 0 + ), + "plan": plan, + } + ) + # Окно записи включает COMMIT; cleanup за границей окна. + batch = "write:" + uuid4().hex + chat = uuid5(NAMESPACE, "chat:0") + lsn_before = conn.execute( + "SELECT pg_current_wal_insert_lsn()" + ).fetchone()[0] + started = time.perf_counter() + with conn.transaction(): + conn.execute( + "INSERT INTO messages SELECT " + "md5(%s || ':' || n::text)::uuid,%s,%s," + "rpad('write ' || n,80,'x'),%s + " + "n*interval '1 microsecond' " + "FROM generate_series(1,1000) n", + (batch, chat, USER, ORIGIN + timedelta(days=1)), + ) + elapsed = time.perf_counter() - started + wal = conn.execute( + "SELECT pg_wal_lsn_diff(pg_current_wal_insert_lsn(),%s)", + (lsn_before,), + ).fetchone()[0] + writes.append( + { + "repeat": repeat, + "variant": variant, + "inserted": 1000, + "insert_and_commit_seconds": elapsed, + "wal_bytes": int(wal), + } + ) + conn.execute( + "DELETE FROM messages WHERE id IN " + "(SELECT md5(%s || ':' || n::text)::uuid " + "FROM generate_series(1,1000) n)", + (batch,), + ) + assert conn.execute( + "SELECT count(*) FROM messages" + ).fetchone()[0] == sum(SIZES) + result = { + "dataset": { + "chat_sizes": SIZES, + "messages": sum(SIZES), + "text_characters": 80, + "source": ( + "synthetic SQL seed; no production API " + "or working tables modified" + ), + }, + "reads": reads, + "writes": writes, + "indexes": indexes, + "snapshot_before_backup": snapshot(conn), + "research_worker_maxrss_kib": resource.getrusage( + resource.RUSAGE_SELF + ).ru_maxrss, + } + return result + + +def inside_after(database): + safe_database(database) + with connect(database) as conn: + value = uuid4() + conn.execute( + "INSERT INTO messages VALUES(%s,%s,%s,%s,%s)", + ( + value, + uuid5(NAMESPACE, "chat:0"), + USER, + "Committed after backup snapshot", + ORIGIN + timedelta(days=2), + ), + ) + return { + "post_backup_message": str(value), + "count": conn.execute("SELECT count(*) FROM messages").fetchone()[ + 0 + ], + } + + +def inside_snapshot(database): + safe_database(database) + with connect(database) as conn: + return snapshot(conn) + + +def inside_cleanup(databases): + with connect("messenger") as admin: + for database in databases: + safe_database(database) + admin.execute( + sql.SQL("DROP DATABASE IF EXISTS {} WITH (FORCE)").format( + sql.Identifier(database) + ) + ) + return {"scoped_databases_removed": databases} + + +def outside(output): + from scripts.stand import ROOT, command, compose + + if output.exists(): + raise SystemExit("Choose a new output file") + identifier = uuid4().hex[:12] + database, restored = "research_" + identifier, "restored_" + identifier + dump_path = "/tmp/" + database + ".dump" + mount = str(ROOT / "research") + ":/app/research:ro" + + def inside(phase, selected): + return json.loads( + compose( + "run", + "--rm", + "--no-deps", + "-v", + mount, + "api", + "python", + "-m", + "research.query_plan", + "--phase", + phase, + "--database", + selected, + ) + ) + + result = { + "date": datetime.now(UTC).isoformat(), + "commit": command(["git", "rev-parse", "HEAD"]), + "command": "python -m research.query_plan", + "db_cpu_limit": 1, + "db_memory_limit_bytes": 536870912, + "prepared_statements": "disabled for comparable custom EXPLAIN plans", + } + try: + result.update(inside("plan", database)) + started = time.perf_counter() + compose( + "exec", + "-T", + "postgres", + "pg_dump", + "-U", + "messenger", + "-Fc", + "-d", + database, + "-f", + dump_path, + ) + result["backup_seconds"] = time.perf_counter() - started + result["backup_bytes"] = int( + compose("exec", "-T", "postgres", "stat", "-c", "%s", dump_path) + ) + after = inside("after", database) + started = time.perf_counter() + compose( + "exec", "-T", "postgres", "createdb", "-U", "messenger", restored + ) + compose( + "exec", + "-T", + "postgres", + "pg_restore", + "-U", + "messenger", + "--exit-on-error", + "-d", + restored, + dump_path, + ) + result["restore_seconds"] = time.perf_counter() - started + checked = inside("snapshot", restored) + expected = result["snapshot_before_backup"] + assert expected == checked + assert after["count"] == expected["counts"]["messages"] + 1 + result["restore_verification"] = { + "snapshot_equal": True, + "selected_messages_checked": len(checked["selected_messages"]), + "restored": checked, + "post_snapshot_commits_not_restored": 1, + "source_count_after_backup": after["count"], + "post_snapshot_message": after["post_backup_message"], + } + result["postgres_cgroup_memory_current"] = int( + compose( + "exec", + "-T", + "postgres", + "cat", + "/sys/fs/cgroup/memory.current", + ) + ) + result["postgres_cgroup_memory_peak"] = int( + compose( + "exec", "-T", "postgres", "cat", "/sys/fs/cgroup/memory.peak" + ) + ) + result["result"] = "PASS" + output.parent.mkdir(parents=True, exist_ok=True) + output.write_text( + json.dumps(result, ensure_ascii=False, indent=2) + "\n" + ) + print( + "PASS:", + result["dataset"]["messages"], + "messages;", + len(result["reads"]), + "EXPLAIN plans; backup/restore verified", + ) + finally: + # Удаляются только две БД с UUID именно этого запуска. + for selected in [database, restored]: + inside("cleanup", selected) + compose("exec", "-T", "postgres", "rm", "-f", dump_path) + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("--output", type=Path) + parser.add_argument( + "--phase", choices=["plan", "after", "snapshot", "cleanup"] + ) + parser.add_argument("--database") + args = parser.parse_args() + if args.phase: + function = { + "plan": inside_plan, + "after": inside_after, + "snapshot": inside_snapshot, + "cleanup": lambda name: inside_cleanup([name]), + }[args.phase] + print(json.dumps(function(args.database), ensure_ascii=False)) + else: + outside(args.output) + + +if __name__ == "__main__": + main() -- 2.54.0 From 171b6de9c87c14cdfb1f9ec6a58aab7101c23d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 08:14:59 +0300 Subject: [PATCH 06/12] test: record query plans and add bounded pool verification --- evidence/query-plan.json | 9801 ++++++++++++++++++++++++++++++++++++++ pyproject.toml | 5 + research/analyze.py | 134 + scripts/verify_pool.py | 116 + 4 files changed, 10056 insertions(+) create mode 100644 evidence/query-plan.json create mode 100644 research/analyze.py create mode 100644 scripts/verify_pool.py diff --git a/evidence/query-plan.json b/evidence/query-plan.json new file mode 100644 index 00000000..a8b55037 --- /dev/null +++ b/evidence/query-plan.json @@ -0,0 +1,9801 @@ +{ + "date": "2026-11-07T05:12:22.527542+00:00", + "commit": "d978b8ff4d32f5d5d8f230bf1b48047e8a6490a4", + "command": "python -m research.query_plan", + "db_cpu_limit": 1, + "db_memory_limit_bytes": 536870912, + "prepared_statements": "disabled for comparable custom EXPLAIN plans", + "dataset": { + "chat_sizes": [ + 90000, + 10000, + 1000, + 100, + 10 + ], + "messages": 101110, + "text_characters": 80, + "source": "synthetic SQL seed; no production API or working tables modified" + }, + "reads": [ + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 90000, + "position": "head", + "execution_ms": 9.887, + "planning_ms": 0.054, + "shared_hits": 2167, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 5961.44, + "Total Cost": 5967.25, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 8.694, + "Actual Total Time": 9.874, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 2167, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Gather Merge", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 5961.44, + "Total Cost": 16232.47, + "Plan Rows": 90120, + "Plan Width": 137, + "Actual Startup Time": 8.693, + "Actual Total Time": 9.869, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Workers Planned": 1, + "Workers Launched": 1, + "Shared Hit Blocks": 2167, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 4961.43, + "Total Cost": 5093.96, + "Plan Rows": 53012, + "Plan Width": 137, + "Actual Startup Time": 7.598, + "Actual Total Time": 7.6, + "Actual Rows": 51.0, + "Actual Loops": 2, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 2167, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [ + { + "Worker Number": 0, + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory" + } + ], + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": true, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.0, + "Total Cost": 3192.84, + "Plan Rows": 53012, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 3.876, + "Actual Rows": 44999.5, + "Actual Loops": 2, + "Disabled": false, + "Filter": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '196dd32d-4f4c-12ae-63a4-94dd5d673c8f'::uuid)))", + "Rows Removed by Filter": 5556, + "Shared Hit Blocks": 2152, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [] + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.054, + "Triggers": [], + "Execution Time": 9.887 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 90000, + "position": "middle", + "execution_ms": 7.237, + "planning_ms": 0.056, + "shared_hits": 2167, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 4978.23, + "Total Cost": 4984.04, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 6.122, + "Actual Total Time": 7.224, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 2167, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Gather Merge", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 4978.23, + "Total Cost": 9539.33, + "Plan Rows": 40020, + "Plan Width": 137, + "Actual Startup Time": 6.121, + "Actual Total Time": 7.22, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Workers Planned": 1, + "Workers Launched": 1, + "Shared Hit Blocks": 2167, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3978.22, + "Total Cost": 4037.07, + "Plan Rows": 23541, + "Plan Width": 137, + "Actual Startup Time": 4.986, + "Actual Total Time": 4.989, + "Actual Rows": 38.5, + "Actual Loops": 2, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 2167, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [ + { + "Worker Number": 0, + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory" + } + ], + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": true, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.0, + "Total Cost": 3192.84, + "Plan Rows": 23541, + "Plan Width": 137, + "Actual Startup Time": 1.094, + "Actual Total Time": 3.119, + "Actual Rows": 22499.5, + "Actual Loops": 2, + "Disabled": false, + "Filter": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.045001+00'::timestamp with time zone, '9608c03d-0a64-d881-4c17-5d0b327cb7e5'::uuid)))", + "Rows Removed by Filter": 28056, + "Shared Hit Blocks": 2152, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [] + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.056, + "Triggers": [], + "Execution Time": 7.237 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 90000, + "position": "tail", + "execution_ms": 4.287, + "planning_ms": 0.05, + "shared_hits": 2152, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3922.63, + "Total Cost": 3922.74, + "Plan Rows": 44, + "Plan Width": 137, + "Actual Startup Time": 4.27, + "Actual Total Time": 4.276, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 2152, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3922.63, + "Total Cost": 3922.74, + "Plan Rows": 44, + "Plan Width": 137, + "Actual Startup Time": 4.269, + "Actual Total Time": 4.272, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 2152, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.0, + "Total Cost": 3921.43, + "Plan Rows": 44, + "Plan Width": 137, + "Actual Startup Time": 3.84, + "Actual Total Time": 4.257, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Filter": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.089949+00'::timestamp with time zone, '62d50dce-8b88-97a6-c3ca-f675e48ee09a'::uuid)))", + "Rows Removed by Filter": 101059, + "Shared Hit Blocks": 2152, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.05, + "Triggers": [], + "Execution Time": 4.287 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 10000, + "position": "head", + "execution_ms": 1.845, + "planning_ms": 0.021, + "shared_hits": 224, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 803.66, + "Total Cost": 803.79, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 1.832, + "Actual Total Time": 1.838, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 803.66, + "Total Cost": 828.36, + "Plan Rows": 9881, + "Plan Width": 137, + "Actual Startup Time": 1.832, + "Actual Total Time": 1.834, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 474.01, + "Plan Rows": 9881, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.999, + "Actual Rows": 9999.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8f771595-16b0-a07f-31c3-79d136b2a3de'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.021, + "Triggers": [], + "Execution Time": 1.845 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 10000, + "position": "middle", + "execution_ms": 1.187, + "planning_ms": 0.019, + "shared_hits": 224, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 767.56, + "Total Cost": 767.69, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 1.175, + "Actual Total Time": 1.18, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 767.56, + "Total Cost": 789.56, + "Plan Rows": 8799, + "Plan Width": 137, + "Actual Startup Time": 1.174, + "Actual Total Time": 1.177, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 474.01, + "Plan Rows": 8799, + "Plan Width": 137, + "Actual Startup Time": 0.29, + "Actual Total Time": 0.758, + "Actual Rows": 4999.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.005001+00'::timestamp with time zone, '427c7fd3-6ea6-ffd4-bbd2-c6cdbb452719'::uuid))", + "Rows Removed by Filter": 5001, + "Index Searches": 1, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.019, + "Triggers": [], + "Execution Time": 1.187 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 10000, + "position": "tail", + "execution_ms": 0.878, + "planning_ms": 0.024, + "shared_hits": 224, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 736.94, + "Total Cost": 737.06, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.864, + "Actual Total Time": 0.87, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 736.94, + "Total Cost": 756.64, + "Plan Rows": 7881, + "Plan Width": 137, + "Actual Startup Time": 0.864, + "Actual Total Time": 0.866, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 474.01, + "Plan Rows": 7881, + "Plan Width": 137, + "Actual Startup Time": 0.852, + "Actual Total Time": 0.858, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.009949+00'::timestamp with time zone, 'cd49e803-f71e-7ccb-ff7d-6b76a2a2e3d5'::uuid))", + "Rows Removed by Filter": 9949, + "Index Searches": 1, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.024, + "Triggers": [], + "Execution Time": 0.878 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 1000, + "position": "head", + "execution_ms": 0.205, + "planning_ms": 0.017, + "shared_hits": 25, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 83.61, + "Total Cost": 83.74, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.193, + "Actual Total Time": 0.2, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 83.61, + "Total Cost": 86.06, + "Plan Rows": 981, + "Plan Width": 137, + "Actual Startup Time": 0.193, + "Actual Total Time": 0.196, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 50.88, + "Plan Rows": 981, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.103, + "Actual Rows": 999.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '3765865a-ec55-3c2c-d202-d12cfedbcf7f'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.205 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 1000, + "position": "middle", + "execution_ms": 0.152, + "planning_ms": 0.023, + "shared_hits": 25, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 83.08, + "Total Cost": 83.2, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.14, + "Actual Total Time": 0.146, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 83.08, + "Total Cost": 85.49, + "Plan Rows": 965, + "Plan Width": 137, + "Actual Startup Time": 0.139, + "Actual Total Time": 0.142, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 50.88, + "Plan Rows": 965, + "Plan Width": 137, + "Actual Startup Time": 0.039, + "Actual Total Time": 0.09, + "Actual Rows": 499.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000501+00'::timestamp with time zone, '1db93204-3f0e-f6f7-aa5d-178875465c75'::uuid))", + "Rows Removed by Filter": 501, + "Index Searches": 1, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.023, + "Triggers": [], + "Execution Time": 0.152 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 1000, + "position": "tail", + "execution_ms": 0.106, + "planning_ms": 0.018, + "shared_hits": 25, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 82.64, + "Total Cost": 82.77, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.076, + "Actual Total Time": 0.1, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 82.64, + "Total Cost": 85.02, + "Plan Rows": 952, + "Plan Width": 137, + "Actual Startup Time": 0.076, + "Actual Total Time": 0.079, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 50.88, + "Plan Rows": 952, + "Plan Width": 137, + "Actual Startup Time": 0.065, + "Actual Total Time": 0.07, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000949+00'::timestamp with time zone, 'ee935a50-b6a6-429a-822c-7fbf4fabff8c'::uuid))", + "Rows Removed by Filter": 949, + "Index Searches": 1, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.106 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 100, + "position": "head", + "execution_ms": 0.039, + "planning_ms": 0.024, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 16.39, + "Total Cost": 16.52, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.026, + "Actual Total Time": 0.032, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 16.39, + "Total Cost": 16.66, + "Plan Rows": 108, + "Plan Width": 137, + "Actual Startup Time": 0.026, + "Actual Total Time": 0.029, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 50, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 12.79, + "Plan Rows": 108, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.014, + "Actual Rows": 99.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8feb17b9-f3ba-823e-1bb2-6673b12b41c8'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.024, + "Triggers": [], + "Execution Time": 0.039 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 100, + "position": "middle", + "execution_ms": 0.03, + "planning_ms": 0.021, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 16.39, + "Total Cost": 16.52, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.018, + "Actual Total Time": 0.025, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 16.39, + "Total Cost": 16.66, + "Plan Rows": 108, + "Plan Width": 137, + "Actual Startup Time": 0.018, + "Actual Total Time": 0.021, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 37, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 12.79, + "Plan Rows": 108, + "Plan Width": 137, + "Actual Startup Time": 0.007, + "Actual Total Time": 0.012, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000051+00'::timestamp with time zone, 'f89d4cb7-e52a-3f1e-e7c0-631a83fb8713'::uuid))", + "Rows Removed by Filter": 51, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.021, + "Triggers": [], + "Execution Time": 0.03 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 100, + "position": "tail", + "execution_ms": 0.031, + "planning_ms": 0.022, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 16.39, + "Total Cost": 16.52, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.019, + "Actual Total Time": 0.025, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 16.39, + "Total Cost": 16.66, + "Plan Rows": 108, + "Plan Width": 137, + "Actual Startup Time": 0.018, + "Actual Total Time": 0.021, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 12.79, + "Plan Rows": 108, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.012, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000049+00'::timestamp with time zone, '94ed74f8-577f-2142-e435-3ec857c9c0d4'::uuid))", + "Rows Removed by Filter": 49, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.022, + "Triggers": [], + "Execution Time": 0.031 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 10, + "position": "head", + "execution_ms": 0.011, + "planning_ms": 0.019, + "shared_hits": 3, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.69, + "Total Cost": 8.71, + "Plan Rows": 10, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.007, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.69, + "Total Cost": 8.71, + "Plan Rows": 10, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.006, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 27, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 8.52, + "Plan Rows": 10, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.004, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.019, + "Triggers": [], + "Execution Time": 0.011 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 10, + "position": "middle", + "execution_ms": 0.01, + "planning_ms": 0.019, + "shared_hits": 3, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.69, + "Total Cost": 8.71, + "Plan Rows": 10, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.006, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.69, + "Total Cost": 8.71, + "Plan Rows": 10, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.005, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 26, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 8.52, + "Plan Rows": 10, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.004, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000006+00'::timestamp with time zone, '07db7782-4351-7046-33b5-30864a334828'::uuid))", + "Rows Removed by Filter": 6, + "Index Searches": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.019, + "Triggers": [], + "Execution Time": 0.01 + } + }, + { + "repeat": 1, + "variant": "chat_only", + "chat_messages": 10, + "position": "tail", + "execution_ms": 0.011, + "planning_ms": 0.018, + "shared_hits": 3, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.69, + "Total Cost": 8.71, + "Plan Rows": 10, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.007, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.69, + "Total Cost": 8.71, + "Plan Rows": 10, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.006, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 27, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 8.52, + "Plan Rows": 10, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.004, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.011 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 90000, + "position": "head", + "execution_ms": 0.02, + "planning_ms": 0.027, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 5.69, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.013, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 9282.7, + "Plan Rows": 89780, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.009, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '196dd32d-4f4c-12ae-63a4-94dd5d673c8f'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.027, + "Triggers": [], + "Execution Time": 0.02 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 90000, + "position": "middle", + "execution_ms": 0.017, + "planning_ms": 0.02, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 8.41, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.012, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 6233.77, + "Plan Rows": 39763, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.045001+00'::timestamp with time zone, '9608c03d-0a64-d881-4c17-5d0b327cb7e5'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.02, + "Triggers": [], + "Execution Time": 0.017 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 90000, + "position": "tail", + "execution_ms": 0.016, + "planning_ms": 0.017, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 79.25, + "Plan Rows": 41, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 79.25, + "Plan Rows": 41, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.007, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.089949+00'::timestamp with time zone, '62d50dce-8b88-97a6-c3ca-f675e48ee09a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 10000, + "position": "head", + "execution_ms": 0.018, + "planning_ms": 0.019, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 22.58, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.013, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 4429.21, + "Plan Rows": 10191, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.01, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8f771595-16b0-a07f-31c3-79d136b2a3de'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.019, + "Triggers": [], + "Execution Time": 0.018 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 10000, + "position": "middle", + "execution_ms": 0.016, + "planning_ms": 0.017, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 24.97, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.012, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 4360.49, + "Plan Rows": 9058, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.005001+00'::timestamp with time zone, '427c7fd3-6ea6-ffd4-bbd2-c6cdbb452719'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 10000, + "position": "tail", + "execution_ms": 0.016, + "planning_ms": 0.018, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 27.7, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 4299.69, + "Plan Rows": 8037, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009949+00'::timestamp with time zone, 'cd49e803-f71e-7ccb-ff7d-6b76a2a2e3d5'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 1000, + "position": "head", + "execution_ms": 0.018, + "planning_ms": 0.018, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 76.09, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.013, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1510.89, + "Plan Rows": 1018, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.009, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '3765865a-ec55-3c2c-d202-d12cfedbcf7f'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.018 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 1000, + "position": "middle", + "execution_ms": 0.017, + "planning_ms": 0.016, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 76.38, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.013, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1491.3, + "Plan Rows": 1001, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.009, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000501+00'::timestamp with time zone, '1db93204-3f0e-f6f7-aa5d-178875465c75'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.016, + "Triggers": [], + "Execution Time": 0.017 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 1000, + "position": "tail", + "execution_ms": 0.016, + "planning_ms": 0.017, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 76.63, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.012, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1475.26, + "Plan Rows": 987, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000949+00'::timestamp with time zone, 'ee935a50-b6a6-429a-822c-7fbf4fabff8c'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 100, + "position": "head", + "execution_ms": 0.016, + "planning_ms": 0.014, + "shared_hits": 7, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 92.54, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.012, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 195.49, + "Plan Rows": 108, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8feb17b9-f3ba-823e-1bb2-6673b12b41c8'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.014, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 100, + "position": "middle", + "execution_ms": 0.015, + "planning_ms": 0.016, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 92.54, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.011, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 195.49, + "Plan Rows": 108, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.007, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000051+00'::timestamp with time zone, 'f89d4cb7-e52a-3f1e-e7c0-631a83fb8713'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.016, + "Triggers": [], + "Execution Time": 0.015 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 100, + "position": "tail", + "execution_ms": 0.016, + "planning_ms": 0.016, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 92.54, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 195.49, + "Plan Rows": 108, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000049+00'::timestamp with time zone, '94ed74f8-577f-2142-e435-3ec857c9c0d4'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.016, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 10, + "position": "head", + "execution_ms": 0.006, + "planning_ms": 0.013, + "shared_hits": 4, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 11.98, + "Plan Rows": 3, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.004, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 11.98, + "Plan Rows": 3, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.003, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.013, + "Triggers": [], + "Execution Time": 0.006 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 10, + "position": "middle", + "execution_ms": 0.005, + "planning_ms": 0.013, + "shared_hits": 4, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 11.98, + "Plan Rows": 3, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.003, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 11.98, + "Plan Rows": 3, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.002, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000006+00'::timestamp with time zone, '07db7782-4351-7046-33b5-30864a334828'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.013, + "Triggers": [], + "Execution Time": 0.005 + } + }, + { + "repeat": 1, + "variant": "keyset", + "chat_messages": 10, + "position": "tail", + "execution_ms": 0.006, + "planning_ms": 0.013, + "shared_hits": 4, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 11.98, + "Plan Rows": 3, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.003, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 11.98, + "Plan Rows": 3, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.002, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.013, + "Triggers": [], + "Execution Time": 0.006 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 90000, + "position": "head", + "execution_ms": 0.021, + "planning_ms": 0.029, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 5.71, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.014, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 9347.15, + "Plan Rows": 90063, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.01, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '196dd32d-4f4c-12ae-63a4-94dd5d673c8f'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.029, + "Triggers": [], + "Execution Time": 0.021 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 90000, + "position": "middle", + "execution_ms": 0.018, + "planning_ms": 0.021, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 8.42, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.012, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 6294.37, + "Plan Rows": 40107, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.045001+00'::timestamp with time zone, '9608c03d-0a64-d881-4c17-5d0b327cb7e5'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.021, + "Triggers": [], + "Execution Time": 0.018 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 90000, + "position": "tail", + "execution_ms": 0.018, + "planning_ms": 0.026, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 82.79, + "Plan Rows": 43, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.012, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 82.79, + "Plan Rows": 43, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.089949+00'::timestamp with time zone, '62d50dce-8b88-97a6-c3ca-f675e48ee09a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.026, + "Triggers": [], + "Execution Time": 0.018 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 10000, + "position": "head", + "execution_ms": 0.019, + "planning_ms": 0.019, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 23.33, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.014, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 4449.31, + "Plan Rows": 9901, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.01, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8f771595-16b0-a07f-31c3-79d136b2a3de'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.019, + "Triggers": [], + "Execution Time": 0.019 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 10000, + "position": "middle", + "execution_ms": 0.018, + "planning_ms": 0.021, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 25.78, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.013, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 4382.58, + "Plan Rows": 8811, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.009, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.005001+00'::timestamp with time zone, '427c7fd3-6ea6-ffd4-bbd2-c6cdbb452719'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.021, + "Triggers": [], + "Execution Time": 0.018 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 10000, + "position": "tail", + "execution_ms": 0.017, + "planning_ms": 0.018, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 28.4, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.012, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 4324.73, + "Plan Rows": 7881, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009949+00'::timestamp with time zone, 'cd49e803-f71e-7ccb-ff7d-6b76a2a2e3d5'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.017 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 1000, + "position": "head", + "execution_ms": 0.02, + "planning_ms": 0.018, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 76.2, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.014, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1522.06, + "Plan Rows": 1024, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.01, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '3765865a-ec55-3c2c-d202-d12cfedbcf7f'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.02 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 1000, + "position": "middle", + "execution_ms": 0.026, + "planning_ms": 0.02, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 76.46, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.019, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1501.91, + "Plan Rows": 1007, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.014, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000501+00'::timestamp with time zone, '1db93204-3f0e-f6f7-aa5d-178875465c75'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.02, + "Triggers": [], + "Execution Time": 0.026 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 1000, + "position": "tail", + "execution_ms": 0.019, + "planning_ms": 0.017, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 76.63, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.013, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1485.89, + "Plan Rows": 994, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.009, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000949+00'::timestamp with time zone, 'ee935a50-b6a6-429a-822c-7fbf4fabff8c'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.019 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 100, + "position": "head", + "execution_ms": 0.018, + "planning_ms": 0.017, + "shared_hits": 7, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 93.76, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.013, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 172.45, + "Plan Rows": 94, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.009, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8feb17b9-f3ba-823e-1bb2-6673b12b41c8'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.018 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 100, + "position": "middle", + "execution_ms": 0.014, + "planning_ms": 0.013, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 93.76, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.011, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 172.45, + "Plan Rows": 94, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.007, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000051+00'::timestamp with time zone, 'f89d4cb7-e52a-3f1e-e7c0-631a83fb8713'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.013, + "Triggers": [], + "Execution Time": 0.014 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 100, + "position": "tail", + "execution_ms": 0.016, + "planning_ms": 0.017, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 93.76, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 172.45, + "Plan Rows": 94, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.007, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000049+00'::timestamp with time zone, '94ed74f8-577f-2142-e435-3ec857c9c0d4'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 10, + "position": "head", + "execution_ms": 0.006, + "planning_ms": 0.013, + "shared_hits": 4, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 36.76, + "Plan Rows": 17, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.004, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 36.76, + "Plan Rows": 17, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.003, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.013, + "Triggers": [], + "Execution Time": 0.006 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 10, + "position": "middle", + "execution_ms": 0.005, + "planning_ms": 0.013, + "shared_hits": 4, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 36.76, + "Plan Rows": 17, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.003, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 36.76, + "Plan Rows": 17, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.002, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000006+00'::timestamp with time zone, '07db7782-4351-7046-33b5-30864a334828'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.013, + "Triggers": [], + "Execution Time": 0.005 + } + }, + { + "repeat": 2, + "variant": "keyset", + "chat_messages": 10, + "position": "tail", + "execution_ms": 0.006, + "planning_ms": 0.013, + "shared_hits": 4, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 36.76, + "Plan Rows": 17, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.003, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 36.76, + "Plan Rows": 17, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.002, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.013, + "Triggers": [], + "Execution Time": 0.006 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 90000, + "position": "head", + "execution_ms": 22.44, + "planning_ms": 0.054, + "shared_hits": 2209, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 5997.44, + "Total Cost": 6003.25, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 21.07, + "Actual Total Time": 22.427, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Gather Merge", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 5997.44, + "Total Cost": 16233.59, + "Plan Rows": 89814, + "Plan Width": 137, + "Actual Startup Time": 21.07, + "Actual Total Time": 22.421, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Workers Planned": 1, + "Workers Launched": 1, + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 4997.43, + "Total Cost": 5129.51, + "Plan Rows": 52832, + "Plan Width": 137, + "Actual Startup Time": 20.084, + "Actual Total Time": 20.087, + "Actual Rows": 51.0, + "Actual Loops": 2, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [ + { + "Worker Number": 0, + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory" + } + ], + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": true, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.0, + "Total Cost": 3234.84, + "Plan Rows": 52832, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 3.952, + "Actual Rows": 44999.5, + "Actual Loops": 2, + "Disabled": false, + "Filter": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '196dd32d-4f4c-12ae-63a4-94dd5d673c8f'::uuid)))", + "Rows Removed by Filter": 5556, + "Shared Hit Blocks": 2194, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [] + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.054, + "Triggers": [], + "Execution Time": 22.44 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 90000, + "position": "middle", + "execution_ms": 8.505, + "planning_ms": 0.067, + "shared_hits": 2209, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 5021.26, + "Total Cost": 5027.07, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 6.993, + "Actual Total Time": 8.491, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Gather Merge", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 5021.26, + "Total Cost": 9588.29, + "Plan Rows": 40072, + "Plan Width": 137, + "Actual Startup Time": 6.992, + "Actual Total Time": 8.476, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Workers Planned": 1, + "Workers Launched": 1, + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 4021.25, + "Total Cost": 4080.18, + "Plan Rows": 23572, + "Plan Width": 137, + "Actual Startup Time": 5.412, + "Actual Total Time": 5.414, + "Actual Rows": 51.0, + "Actual Loops": 2, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [ + { + "Worker Number": 0, + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory" + } + ], + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": true, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.0, + "Total Cost": 3234.84, + "Plan Rows": 23572, + "Plan Width": 137, + "Actual Startup Time": 1.218, + "Actual Total Time": 3.384, + "Actual Rows": 22499.5, + "Actual Loops": 2, + "Disabled": false, + "Filter": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.045001+00'::timestamp with time zone, '9608c03d-0a64-d881-4c17-5d0b327cb7e5'::uuid)))", + "Rows Removed by Filter": 28056, + "Shared Hit Blocks": 2194, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [] + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.067, + "Triggers": [], + "Execution Time": 8.505 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 90000, + "position": "tail", + "execution_ms": 4.674, + "planning_ms": 0.057, + "shared_hits": 2194, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3964.73, + "Total Cost": 3964.85, + "Plan Rows": 47, + "Plan Width": 137, + "Actual Startup Time": 4.656, + "Actual Total Time": 4.663, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 2194, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3964.73, + "Total Cost": 3964.85, + "Plan Rows": 47, + "Plan Width": 137, + "Actual Startup Time": 4.655, + "Actual Total Time": 4.657, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 2194, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.0, + "Total Cost": 3963.43, + "Plan Rows": 47, + "Plan Width": 137, + "Actual Startup Time": 4.165, + "Actual Total Time": 4.644, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Filter": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.089949+00'::timestamp with time zone, '62d50dce-8b88-97a6-c3ca-f675e48ee09a'::uuid)))", + "Rows Removed by Filter": 101059, + "Shared Hit Blocks": 2194, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.057, + "Triggers": [], + "Execution Time": 4.674 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 10000, + "position": "head", + "execution_ms": 1.801, + "planning_ms": 0.018, + "shared_hits": 224, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 838.02, + "Total Cost": 838.15, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 1.789, + "Actual Total Time": 1.795, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 838.02, + "Total Cost": 863.59, + "Plan Rows": 10228, + "Plan Width": 137, + "Actual Startup Time": 1.789, + "Actual Total Time": 1.791, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 496.8, + "Plan Rows": 10228, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.97, + "Actual Rows": 9999.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8f771595-16b0-a07f-31c3-79d136b2a3de'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 1.801 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 10000, + "position": "middle", + "execution_ms": 1.198, + "planning_ms": 0.021, + "shared_hits": 224, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 799.96, + "Total Cost": 800.08, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 1.186, + "Actual Total Time": 1.192, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 799.96, + "Total Cost": 822.67, + "Plan Rows": 9087, + "Plan Width": 137, + "Actual Startup Time": 1.185, + "Actual Total Time": 1.188, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 496.8, + "Plan Rows": 9087, + "Plan Width": 137, + "Actual Startup Time": 0.299, + "Actual Total Time": 0.779, + "Actual Rows": 4999.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.005001+00'::timestamp with time zone, '427c7fd3-6ea6-ffd4-bbd2-c6cdbb452719'::uuid))", + "Rows Removed by Filter": 5001, + "Index Searches": 1, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.021, + "Triggers": [], + "Execution Time": 1.198 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 10000, + "position": "tail", + "execution_ms": 0.624, + "planning_ms": 0.018, + "shared_hits": 224, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 766.33, + "Total Cost": 766.46, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.612, + "Actual Total Time": 0.618, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 766.33, + "Total Cost": 786.53, + "Plan Rows": 8079, + "Plan Width": 137, + "Actual Startup Time": 0.612, + "Actual Total Time": 0.614, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 496.8, + "Plan Rows": 8079, + "Plan Width": 137, + "Actual Startup Time": 0.602, + "Actual Total Time": 0.606, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.009949+00'::timestamp with time zone, 'cd49e803-f71e-7ccb-ff7d-6b76a2a2e3d5'::uuid))", + "Rows Removed by Filter": 9949, + "Index Searches": 1, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.624 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 1000, + "position": "head", + "execution_ms": 0.195, + "planning_ms": 0.018, + "shared_hits": 25, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 81.85, + "Total Cost": 81.98, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.183, + "Actual Total Time": 0.189, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 81.85, + "Total Cost": 84.23, + "Plan Rows": 950, + "Plan Width": 137, + "Actual Startup Time": 0.183, + "Actual Total Time": 0.186, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 50.16, + "Plan Rows": 950, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.098, + "Actual Rows": 999.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '3765865a-ec55-3c2c-d202-d12cfedbcf7f'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.195 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 1000, + "position": "middle", + "execution_ms": 0.136, + "planning_ms": 0.017, + "shared_hits": 25, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 81.35, + "Total Cost": 81.48, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.125, + "Actual Total Time": 0.131, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 81.35, + "Total Cost": 83.69, + "Plan Rows": 935, + "Plan Width": 137, + "Actual Startup Time": 0.125, + "Actual Total Time": 0.127, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 50.16, + "Plan Rows": 935, + "Plan Width": 137, + "Actual Startup Time": 0.034, + "Actual Total Time": 0.081, + "Actual Rows": 499.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000501+00'::timestamp with time zone, '1db93204-3f0e-f6f7-aa5d-178875465c75'::uuid))", + "Rows Removed by Filter": 501, + "Index Searches": 1, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.136 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 1000, + "position": "tail", + "execution_ms": 0.08, + "planning_ms": 0.017, + "shared_hits": 25, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 80.95, + "Total Cost": 81.08, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.07, + "Actual Total Time": 0.076, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 80.95, + "Total Cost": 83.26, + "Plan Rows": 923, + "Plan Width": 137, + "Actual Startup Time": 0.069, + "Actual Total Time": 0.072, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 50.16, + "Plan Rows": 923, + "Plan Width": 137, + "Actual Startup Time": 0.059, + "Actual Total Time": 0.064, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000949+00'::timestamp with time zone, 'ee935a50-b6a6-429a-822c-7fbf4fabff8c'::uuid))", + "Rows Removed by Filter": 949, + "Index Searches": 1, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.08 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 100, + "position": "head", + "execution_ms": 0.034, + "planning_ms": 0.017, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.99, + "Total Cost": 16.12, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.023, + "Actual Total Time": 0.029, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.99, + "Total Cost": 16.24, + "Plan Rows": 101, + "Plan Width": 137, + "Actual Startup Time": 0.023, + "Actual Total Time": 0.025, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 50, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 12.63, + "Plan Rows": 101, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.013, + "Actual Rows": 99.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8feb17b9-f3ba-823e-1bb2-6673b12b41c8'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.034 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 100, + "position": "middle", + "execution_ms": 0.026, + "planning_ms": 0.017, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.99, + "Total Cost": 16.12, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.016, + "Actual Total Time": 0.022, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.99, + "Total Cost": 16.24, + "Plan Rows": 101, + "Plan Width": 137, + "Actual Startup Time": 0.016, + "Actual Total Time": 0.018, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 37, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 12.63, + "Plan Rows": 101, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.011, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000051+00'::timestamp with time zone, 'f89d4cb7-e52a-3f1e-e7c0-631a83fb8713'::uuid))", + "Rows Removed by Filter": 51, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.026 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 100, + "position": "tail", + "execution_ms": 0.027, + "planning_ms": 0.017, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.99, + "Total Cost": 16.12, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.016, + "Actual Total Time": 0.022, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.99, + "Total Cost": 16.24, + "Plan Rows": 101, + "Plan Width": 137, + "Actual Startup Time": 0.016, + "Actual Total Time": 0.018, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 12.63, + "Plan Rows": 101, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000049+00'::timestamp with time zone, '94ed74f8-577f-2142-e435-3ec857c9c0d4'::uuid))", + "Rows Removed by Filter": 49, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.027 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 10, + "position": "head", + "execution_ms": 0.011, + "planning_ms": 0.017, + "shared_hits": 3, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.55, + "Total Cost": 8.57, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.007, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.55, + "Total Cost": 8.57, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.006, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 27, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 8.45, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.004, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.011 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 10, + "position": "middle", + "execution_ms": 0.008, + "planning_ms": 0.016, + "shared_hits": 3, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.55, + "Total Cost": 8.57, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.005, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.55, + "Total Cost": 8.57, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.005, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 26, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 8.45, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.003, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000006+00'::timestamp with time zone, '07db7782-4351-7046-33b5-30864a334828'::uuid))", + "Rows Removed by Filter": 6, + "Index Searches": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.016, + "Triggers": [], + "Execution Time": 0.008 + } + }, + { + "repeat": 2, + "variant": "chat_only", + "chat_messages": 10, + "position": "tail", + "execution_ms": 0.01, + "planning_ms": 0.016, + "shared_hits": 3, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.55, + "Total Cost": 8.57, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.006, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.55, + "Total Cost": 8.57, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.005, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 27, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 8.45, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.002, + "Actual Total Time": 0.003, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.016, + "Triggers": [], + "Execution Time": 0.01 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 90000, + "position": "head", + "execution_ms": 16.501, + "planning_ms": 0.085, + "shared_hits": 2209, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6004.78, + "Total Cost": 6010.59, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 15.2, + "Actual Total Time": 16.471, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Gather Merge", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 6004.78, + "Total Cost": 16283.56, + "Plan Rows": 90188, + "Plan Width": 137, + "Actual Startup Time": 15.199, + "Actual Total Time": 16.463, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Workers Planned": 1, + "Workers Launched": 1, + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 5004.77, + "Total Cost": 5137.4, + "Plan Rows": 53052, + "Plan Width": 137, + "Actual Startup Time": 10.406, + "Actual Total Time": 10.41, + "Actual Rows": 51.0, + "Actual Loops": 2, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [ + { + "Worker Number": 0, + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory" + } + ], + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": true, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.0, + "Total Cost": 3234.84, + "Plan Rows": 53052, + "Plan Width": 137, + "Actual Startup Time": 0.01, + "Actual Total Time": 4.798, + "Actual Rows": 44999.5, + "Actual Loops": 2, + "Disabled": false, + "Filter": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '196dd32d-4f4c-12ae-63a4-94dd5d673c8f'::uuid)))", + "Rows Removed by Filter": 5556, + "Shared Hit Blocks": 2194, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [] + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.085, + "Triggers": [], + "Execution Time": 16.501 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 90000, + "position": "middle", + "execution_ms": 7.082, + "planning_ms": 0.055, + "shared_hits": 2209, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 5025.16, + "Total Cost": 5030.98, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 6.001, + "Actual Total Time": 7.069, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Gather Merge", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 5025.16, + "Total Cost": 9614.87, + "Plan Rows": 40271, + "Plan Width": 137, + "Actual Startup Time": 6.0, + "Actual Total Time": 7.064, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Workers Planned": 1, + "Workers Launched": 1, + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 4025.15, + "Total Cost": 4084.38, + "Plan Rows": 23689, + "Plan Width": 137, + "Actual Startup Time": 4.963, + "Actual Total Time": 4.965, + "Actual Rows": 38.5, + "Actual Loops": 2, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 2209, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [ + { + "Worker Number": 0, + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory" + } + ], + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": true, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.0, + "Total Cost": 3234.84, + "Plan Rows": 23689, + "Plan Width": 137, + "Actual Startup Time": 1.077, + "Actual Total Time": 3.094, + "Actual Rows": 22499.5, + "Actual Loops": 2, + "Disabled": false, + "Filter": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.045001+00'::timestamp with time zone, '9608c03d-0a64-d881-4c17-5d0b327cb7e5'::uuid)))", + "Rows Removed by Filter": 28056, + "Shared Hit Blocks": 2194, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Workers": [] + } + ] + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.055, + "Triggers": [], + "Execution Time": 7.082 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 90000, + "position": "tail", + "execution_ms": 4.282, + "planning_ms": 0.05, + "shared_hits": 2194, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3964.63, + "Total Cost": 3964.74, + "Plan Rows": 44, + "Plan Width": 137, + "Actual Startup Time": 4.264, + "Actual Total Time": 4.271, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 2194, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 3964.63, + "Total Cost": 3964.74, + "Plan Rows": 44, + "Plan Width": 137, + "Actual Startup Time": 4.263, + "Actual Total Time": 4.266, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 2194, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Seq Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.0, + "Total Cost": 3963.43, + "Plan Rows": 44, + "Plan Width": 137, + "Actual Startup Time": 3.826, + "Actual Total Time": 4.254, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Filter": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.089949+00'::timestamp with time zone, '62d50dce-8b88-97a6-c3ca-f675e48ee09a'::uuid)))", + "Rows Removed by Filter": 101059, + "Shared Hit Blocks": 2194, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.05, + "Triggers": [], + "Execution Time": 4.282 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 10000, + "position": "head", + "execution_ms": 1.755, + "planning_ms": 0.021, + "shared_hits": 224, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 810.33, + "Total Cost": 810.46, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 1.743, + "Actual Total Time": 1.749, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 810.33, + "Total Cost": 835.12, + "Plan Rows": 9915, + "Plan Width": 137, + "Actual Startup Time": 1.743, + "Actual Total Time": 1.745, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 479.55, + "Plan Rows": 9915, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.922, + "Actual Rows": 9999.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8f771595-16b0-a07f-31c3-79d136b2a3de'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.021, + "Triggers": [], + "Execution Time": 1.755 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 10000, + "position": "middle", + "execution_ms": 1.17, + "planning_ms": 0.017, + "shared_hits": 224, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 775.07, + "Total Cost": 775.2, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 1.159, + "Actual Total Time": 1.165, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 775.07, + "Total Cost": 797.21, + "Plan Rows": 8858, + "Plan Width": 137, + "Actual Startup Time": 1.159, + "Actual Total Time": 1.161, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 479.55, + "Plan Rows": 8858, + "Plan Width": 137, + "Actual Startup Time": 0.298, + "Actual Total Time": 0.747, + "Actual Rows": 4999.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.005001+00'::timestamp with time zone, '427c7fd3-6ea6-ffd4-bbd2-c6cdbb452719'::uuid))", + "Rows Removed by Filter": 5001, + "Index Searches": 1, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 1.17 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 10000, + "position": "tail", + "execution_ms": 0.603, + "planning_ms": 0.018, + "shared_hits": 224, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 742.71, + "Total Cost": 742.84, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.591, + "Actual Total Time": 0.597, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 742.71, + "Total Cost": 762.43, + "Plan Rows": 7888, + "Plan Width": 137, + "Actual Startup Time": 0.591, + "Actual Total Time": 0.594, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 479.55, + "Plan Rows": 7888, + "Plan Width": 137, + "Actual Startup Time": 0.581, + "Actual Total Time": 0.586, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.009949+00'::timestamp with time zone, 'cd49e803-f71e-7ccb-ff7d-6b76a2a2e3d5'::uuid))", + "Rows Removed by Filter": 9949, + "Index Searches": 1, + "Shared Hit Blocks": 224, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.603 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 1000, + "position": "head", + "execution_ms": 0.197, + "planning_ms": 0.021, + "shared_hits": 25, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 77.97, + "Total Cost": 78.09, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.185, + "Actual Total Time": 0.191, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 77.97, + "Total Cost": 80.22, + "Plan Rows": 900, + "Plan Width": 137, + "Actual Startup Time": 0.185, + "Actual Total Time": 0.187, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 47.94, + "Plan Rows": 900, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.099, + "Actual Rows": 999.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '3765865a-ec55-3c2c-d202-d12cfedbcf7f'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.021, + "Triggers": [], + "Execution Time": 0.197 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 1000, + "position": "middle", + "execution_ms": 0.158, + "planning_ms": 0.029, + "shared_hits": 25, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 77.53, + "Total Cost": 77.66, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.144, + "Actual Total Time": 0.15, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 77.53, + "Total Cost": 79.75, + "Plan Rows": 887, + "Plan Width": 137, + "Actual Startup Time": 0.144, + "Actual Total Time": 0.146, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "top-N heapsort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 47.94, + "Plan Rows": 887, + "Plan Width": 137, + "Actual Startup Time": 0.044, + "Actual Total Time": 0.095, + "Actual Rows": 499.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000501+00'::timestamp with time zone, '1db93204-3f0e-f6f7-aa5d-178875465c75'::uuid))", + "Rows Removed by Filter": 501, + "Index Searches": 1, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.029, + "Triggers": [], + "Execution Time": 0.158 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 1000, + "position": "tail", + "execution_ms": 0.092, + "planning_ms": 0.024, + "shared_hits": 25, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 77.13, + "Total Cost": 77.26, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.079, + "Actual Total Time": 0.085, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 77.13, + "Total Cost": 79.32, + "Plan Rows": 875, + "Plan Width": 137, + "Actual Startup Time": 0.078, + "Actual Total Time": 0.081, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 47.94, + "Plan Rows": 875, + "Plan Width": 137, + "Actual Startup Time": 0.067, + "Actual Total Time": 0.072, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000949+00'::timestamp with time zone, 'ee935a50-b6a6-429a-822c-7fbf4fabff8c'::uuid))", + "Rows Removed by Filter": 949, + "Index Searches": 1, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.024, + "Triggers": [], + "Execution Time": 0.092 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 100, + "position": "head", + "execution_ms": 0.038, + "planning_ms": 0.021, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.79, + "Total Cost": 15.92, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.025, + "Actual Total Time": 0.032, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.79, + "Total Cost": 16.03, + "Plan Rows": 98, + "Plan Width": 137, + "Actual Startup Time": 0.025, + "Actual Total Time": 0.028, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 50, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 12.55, + "Plan Rows": 98, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.015, + "Actual Rows": 99.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8feb17b9-f3ba-823e-1bb2-6673b12b41c8'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.021, + "Triggers": [], + "Execution Time": 0.038 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 100, + "position": "middle", + "execution_ms": 0.034, + "planning_ms": 0.028, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.79, + "Total Cost": 15.92, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.021, + "Actual Total Time": 0.027, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.79, + "Total Cost": 16.03, + "Plan Rows": 98, + "Plan Width": 137, + "Actual Startup Time": 0.02, + "Actual Total Time": 0.023, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 37, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 12.55, + "Plan Rows": 98, + "Plan Width": 137, + "Actual Startup Time": 0.009, + "Actual Total Time": 0.014, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000051+00'::timestamp with time zone, 'f89d4cb7-e52a-3f1e-e7c0-631a83fb8713'::uuid))", + "Rows Removed by Filter": 51, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.028, + "Triggers": [], + "Execution Time": 0.034 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 100, + "position": "tail", + "execution_ms": 0.028, + "planning_ms": 0.017, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.79, + "Total Cost": 15.92, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.017, + "Actual Total Time": 0.023, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 15.79, + "Total Cost": 16.03, + "Plan Rows": 98, + "Plan Width": 137, + "Actual Startup Time": 0.017, + "Actual Total Time": 0.019, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 38, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 12.55, + "Plan Rows": 98, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000049+00'::timestamp with time zone, '94ed74f8-577f-2142-e435-3ec857c9c0d4'::uuid))", + "Rows Removed by Filter": 49, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.028 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 10, + "position": "head", + "execution_ms": 0.015, + "planning_ms": 0.022, + "shared_hits": 3, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.33, + "Total Cost": 8.33, + "Plan Rows": 1, + "Plan Width": 137, + "Actual Startup Time": 0.008, + "Actual Total Time": 0.01, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.33, + "Total Cost": 8.33, + "Plan Rows": 1, + "Plan Width": 137, + "Actual Startup Time": 0.008, + "Actual Total Time": 0.009, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 27, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 8.32, + "Plan Rows": 1, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.004, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.022, + "Triggers": [], + "Execution Time": 0.015 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 10, + "position": "middle", + "execution_ms": 0.013, + "planning_ms": 0.022, + "shared_hits": 3, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.33, + "Total Cost": 8.33, + "Plan Rows": 1, + "Plan Width": 137, + "Actual Startup Time": 0.008, + "Actual Total Time": 0.008, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.33, + "Total Cost": 8.33, + "Plan Rows": 1, + "Plan Width": 137, + "Actual Startup Time": 0.007, + "Actual Total Time": 0.008, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 26, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 8.32, + "Plan Rows": 1, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.006, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000006+00'::timestamp with time zone, '07db7782-4351-7046-33b5-30864a334828'::uuid))", + "Rows Removed by Filter": 6, + "Index Searches": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.022, + "Triggers": [], + "Execution Time": 0.013 + } + }, + { + "repeat": 3, + "variant": "chat_only", + "chat_messages": 10, + "position": "tail", + "execution_ms": 0.011, + "planning_ms": 0.018, + "shared_hits": 3, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.33, + "Total Cost": 8.33, + "Plan Rows": 1, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.007, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Sort", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 8.33, + "Total Cost": 8.33, + "Plan Rows": 1, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.006, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Sort Key": [ + "created_at", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Used": 27, + "Sort Space Type": "Memory", + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_chat_only_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.29, + "Total Cost": 8.32, + "Plan Rows": 1, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.004, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "(chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid)", + "Rows Removed by Index Recheck": 0, + "Filter": "(ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid))", + "Rows Removed by Filter": 1, + "Index Searches": 1, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.011 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 90000, + "position": "head", + "execution_ms": 0.019, + "planning_ms": 0.026, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 5.72, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.013, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 9315.2, + "Plan Rows": 89574, + "Plan Width": 137, + "Actual Startup Time": 0.006, + "Actual Total Time": 0.01, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '196dd32d-4f4c-12ae-63a4-94dd5d673c8f'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.026, + "Triggers": [], + "Execution Time": 0.019 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 90000, + "position": "middle", + "execution_ms": 0.016, + "planning_ms": 0.019, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 8.48, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 6261.93, + "Plan Rows": 39593, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.045001+00'::timestamp with time zone, '9608c03d-0a64-d881-4c17-5d0b327cb7e5'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.019, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 90000, + "position": "tail", + "execution_ms": 0.016, + "planning_ms": 0.017, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 86.33, + "Plan Rows": 45, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 86.33, + "Plan Rows": 45, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.007, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '468ff366-6541-5727-bea4-71b18f644552'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.089949+00'::timestamp with time zone, '62d50dce-8b88-97a6-c3ca-f675e48ee09a'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 10000, + "position": "head", + "execution_ms": 0.019, + "planning_ms": 0.021, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 22.48, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.014, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 4475.86, + "Plan Rows": 10346, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.01, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8f771595-16b0-a07f-31c3-79d136b2a3de'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.021, + "Triggers": [], + "Execution Time": 0.019 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 10000, + "position": "middle", + "execution_ms": 0.016, + "planning_ms": 0.018, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 24.89, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.012, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 4406.52, + "Plan Rows": 9182, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.005001+00'::timestamp with time zone, '427c7fd3-6ea6-ffd4-bbd2-c6cdbb452719'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 10000, + "position": "tail", + "execution_ms": 0.016, + "planning_ms": 0.017, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 27.54, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 4341.78, + "Plan Rows": 8164, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'd493110c-73ef-5035-8aa2-5377ded2c82a'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009949+00'::timestamp with time zone, 'cd49e803-f71e-7ccb-ff7d-6b76a2a2e3d5'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 1000, + "position": "head", + "execution_ms": 0.016, + "planning_ms": 0.017, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 75.42, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.012, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1581.41, + "Plan Rows": 1075, + "Plan Width": 137, + "Actual Startup Time": 0.005, + "Actual Total Time": 0.008, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '3765865a-ec55-3c2c-d202-d12cfedbcf7f'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 1000, + "position": "middle", + "execution_ms": 0.032, + "planning_ms": 0.018, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 75.66, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.028, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1561.26, + "Plan Rows": 1058, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000501+00'::timestamp with time zone, '1db93204-3f0e-f6f7-aa5d-178875465c75'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.018, + "Triggers": [], + "Execution Time": 0.032 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 1000, + "position": "tail", + "execution_ms": 0.015, + "planning_ms": 0.017, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 75.87, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 1543.45, + "Plan Rows": 1043, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.007, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'f689a37a-3ac0-57e3-a9aa-e8b098a59715'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000949+00'::timestamp with time zone, 'ee935a50-b6a6-429a-822c-7fbf4fabff8c'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.015 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 100, + "position": "head", + "execution_ms": 0.016, + "planning_ms": 0.016, + "shared_hits": 7, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 92.72, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.012, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 177.79, + "Plan Rows": 98, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.009, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '8feb17b9-f3ba-823e-1bb2-6673b12b41c8'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.016, + "Triggers": [], + "Execution Time": 0.016 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 100, + "position": "middle", + "execution_ms": 0.015, + "planning_ms": 0.017, + "shared_hits": 5, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 92.72, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.004, + "Actual Total Time": 0.011, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 177.79, + "Plan Rows": 98, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.007, + "Actual Rows": 49.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000051+00'::timestamp with time zone, 'f89d4cb7-e52a-3f1e-e7c0-631a83fb8713'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.017, + "Triggers": [], + "Execution Time": 0.015 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 100, + "position": "tail", + "execution_ms": 0.015, + "planning_ms": 0.016, + "shared_hits": 6, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 92.72, + "Plan Rows": 51, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.011, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 177.79, + "Plan Rows": 98, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.007, + "Actual Rows": 51.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = '8797cadb-6440-5be1-80e1-d5b6c1e2aa83'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000049+00'::timestamp with time zone, '94ed74f8-577f-2142-e435-3ec857c9c0d4'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.016, + "Triggers": [], + "Execution Time": 0.015 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 10, + "position": "head", + "execution_ms": 0.008, + "planning_ms": 0.016, + "shared_hits": 4, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 19.06, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.004, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 19.06, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.003, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.016, + "Triggers": [], + "Execution Time": 0.008 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 10, + "position": "middle", + "execution_ms": 0.007, + "planning_ms": 0.016, + "shared_hits": 4, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 19.06, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.004, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 19.06, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.003, + "Actual Rows": 4.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000006+00'::timestamp with time zone, '07db7782-4351-7046-33b5-30864a334828'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.016, + "Triggers": [], + "Execution Time": 0.007 + } + }, + { + "repeat": 3, + "variant": "keyset", + "chat_messages": 10, + "position": "tail", + "execution_ms": 0.007, + "planning_ms": 0.016, + "shared_hits": 4, + "shared_reads": 0, + "plan": { + "Plan": { + "Node Type": "Limit", + "Parallel Aware": false, + "Async Capable": false, + "Startup Cost": 0.42, + "Total Cost": 19.06, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.004, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Plans": [ + { + "Node Type": "Index Scan", + "Parent Relationship": "Outer", + "Parallel Aware": false, + "Async Capable": false, + "Scan Direction": "Forward", + "Index Name": "messages_history_idx", + "Relation Name": "messages", + "Alias": "messages", + "Startup Cost": 0.42, + "Total Cost": 19.06, + "Plan Rows": 7, + "Plan Width": 137, + "Actual Startup Time": 0.003, + "Actual Total Time": 0.003, + "Actual Rows": 9.0, + "Actual Loops": 1, + "Disabled": false, + "Index Cond": "((chat_id = 'cdcaab81-d05d-5023-a5b9-211e34546575'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.000001+00'::timestamp with time zone, '191119ab-ea6c-353a-53f1-5a08381a51d1'::uuid)))", + "Rows Removed by Index Recheck": 0, + "Index Searches": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + } + ] + }, + "Planning": { + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Dirtied Blocks": 0, + "Shared Written Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Written Blocks": 0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0 + }, + "Planning Time": 0.016, + "Triggers": [], + "Execution Time": 0.007 + } + } + ], + "writes": [ + { + "repeat": 1, + "variant": "chat_only", + "inserted": 1000, + "insert_and_commit_seconds": 0.04397549999998773, + "wal_bytes": 358504 + }, + { + "repeat": 1, + "variant": "keyset", + "inserted": 1000, + "insert_and_commit_seconds": 0.011545625000053406, + "wal_bytes": 449584 + }, + { + "repeat": 2, + "variant": "keyset", + "inserted": 1000, + "insert_and_commit_seconds": 0.011664166999935333, + "wal_bytes": 423968 + }, + { + "repeat": 2, + "variant": "chat_only", + "inserted": 1000, + "insert_and_commit_seconds": 0.010450624999975844, + "wal_bytes": 347536 + }, + { + "repeat": 3, + "variant": "chat_only", + "inserted": 1000, + "insert_and_commit_seconds": 0.03753299999993942, + "wal_bytes": 347512 + }, + { + "repeat": 3, + "variant": "keyset", + "inserted": 1000, + "insert_and_commit_seconds": 0.010640291999834517, + "wal_bytes": 427672 + } + ], + "indexes": [ + { + "repeat": 1, + "variant": "chat_only", + "bytes": 729088 + }, + { + "repeat": 1, + "variant": "keyset", + "bytes": 5980160 + }, + { + "repeat": 2, + "variant": "keyset", + "bytes": 5980160 + }, + { + "repeat": 2, + "variant": "chat_only", + "bytes": 729088 + }, + { + "repeat": 3, + "variant": "chat_only", + "bytes": 729088 + }, + { + "repeat": 3, + "variant": "keyset", + "bytes": 5980160 + } + ], + "snapshot_before_backup": { + "counts": { + "users": 1, + "chats": 5, + "members": 5, + "messages": 101110, + "sessions": 0, + "schema_migrations": 1 + }, + "messages_sha256": "6c0ec16decee087519040f3400cf01779457313456c601f5e766c89a23a39db2", + "selected_messages": [ + [ + "196dd32d-4f4c-12ae-63a4-94dd5d673c8f", + "468ff366-6541-5727-bea4-71b18f644552", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000001+00:00" + ], + [ + "9608c03d-0a64-d881-4c17-5d0b327cb7e5", + "468ff366-6541-5727-bea4-71b18f644552", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 45001xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.045001+00:00" + ], + [ + "55fc8a6b-0da3-4f2f-0768-f098152bb0f9", + "468ff366-6541-5727-bea4-71b18f644552", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 90000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.090000+00:00" + ], + [ + "8f771595-16b0-a07f-31c3-79d136b2a3de", + "d493110c-73ef-5035-8aa2-5377ded2c82a", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000001+00:00" + ], + [ + "427c7fd3-6ea6-ffd4-bbd2-c6cdbb452719", + "d493110c-73ef-5035-8aa2-5377ded2c82a", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 5001xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.005001+00:00" + ], + [ + "ce8cdf2d-4cda-9ce7-c52e-badbe55dc2d6", + "d493110c-73ef-5035-8aa2-5377ded2c82a", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 10000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.010000+00:00" + ], + [ + "3765865a-ec55-3c2c-d202-d12cfedbcf7f", + "f689a37a-3ac0-57e3-a9aa-e8b098a59715", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000001+00:00" + ], + [ + "1db93204-3f0e-f6f7-aa5d-178875465c75", + "f689a37a-3ac0-57e3-a9aa-e8b098a59715", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 501xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000501+00:00" + ], + [ + "4916b9d8-a4a9-85bd-7c53-2220dc15bd96", + "f689a37a-3ac0-57e3-a9aa-e8b098a59715", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.001000+00:00" + ], + [ + "8feb17b9-f3ba-823e-1bb2-6673b12b41c8", + "8797cadb-6440-5be1-80e1-d5b6c1e2aa83", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000001+00:00" + ], + [ + "f89d4cb7-e52a-3f1e-e7c0-631a83fb8713", + "8797cadb-6440-5be1-80e1-d5b6c1e2aa83", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 51xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000051+00:00" + ], + [ + "7b170d3d-df2a-38ca-9530-d3c52aa63214", + "8797cadb-6440-5be1-80e1-d5b6c1e2aa83", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 100xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000100+00:00" + ], + [ + "191119ab-ea6c-353a-53f1-5a08381a51d1", + "cdcaab81-d05d-5023-a5b9-211e34546575", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000001+00:00" + ], + [ + "07db7782-4351-7046-33b5-30864a334828", + "cdcaab81-d05d-5023-a5b9-211e34546575", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000006+00:00" + ], + [ + "284675e3-8fd0-1686-c666-7731a6e3d8ab", + "cdcaab81-d05d-5023-a5b9-211e34546575", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 10xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000010+00:00" + ] + ] + }, + "research_worker_maxrss_kib": 45232, + "backup_seconds": 0.4796167499880539, + "backup_bytes": 3026259, + "restore_seconds": 0.6642069579975214, + "restore_verification": { + "snapshot_equal": true, + "selected_messages_checked": 15, + "restored": { + "counts": { + "users": 1, + "chats": 5, + "members": 5, + "messages": 101110, + "sessions": 0, + "schema_migrations": 1 + }, + "messages_sha256": "6c0ec16decee087519040f3400cf01779457313456c601f5e766c89a23a39db2", + "selected_messages": [ + [ + "196dd32d-4f4c-12ae-63a4-94dd5d673c8f", + "468ff366-6541-5727-bea4-71b18f644552", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000001+00:00" + ], + [ + "9608c03d-0a64-d881-4c17-5d0b327cb7e5", + "468ff366-6541-5727-bea4-71b18f644552", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 45001xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.045001+00:00" + ], + [ + "55fc8a6b-0da3-4f2f-0768-f098152bb0f9", + "468ff366-6541-5727-bea4-71b18f644552", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 90000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.090000+00:00" + ], + [ + "8f771595-16b0-a07f-31c3-79d136b2a3de", + "d493110c-73ef-5035-8aa2-5377ded2c82a", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000001+00:00" + ], + [ + "427c7fd3-6ea6-ffd4-bbd2-c6cdbb452719", + "d493110c-73ef-5035-8aa2-5377ded2c82a", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 5001xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.005001+00:00" + ], + [ + "ce8cdf2d-4cda-9ce7-c52e-badbe55dc2d6", + "d493110c-73ef-5035-8aa2-5377ded2c82a", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 10000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.010000+00:00" + ], + [ + "3765865a-ec55-3c2c-d202-d12cfedbcf7f", + "f689a37a-3ac0-57e3-a9aa-e8b098a59715", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000001+00:00" + ], + [ + "1db93204-3f0e-f6f7-aa5d-178875465c75", + "f689a37a-3ac0-57e3-a9aa-e8b098a59715", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 501xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000501+00:00" + ], + [ + "4916b9d8-a4a9-85bd-7c53-2220dc15bd96", + "f689a37a-3ac0-57e3-a9aa-e8b098a59715", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1000xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.001000+00:00" + ], + [ + "8feb17b9-f3ba-823e-1bb2-6673b12b41c8", + "8797cadb-6440-5be1-80e1-d5b6c1e2aa83", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000001+00:00" + ], + [ + "f89d4cb7-e52a-3f1e-e7c0-631a83fb8713", + "8797cadb-6440-5be1-80e1-d5b6c1e2aa83", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 51xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000051+00:00" + ], + [ + "7b170d3d-df2a-38ca-9530-d3c52aa63214", + "8797cadb-6440-5be1-80e1-d5b6c1e2aa83", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 100xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000100+00:00" + ], + [ + "191119ab-ea6c-353a-53f1-5a08381a51d1", + "cdcaab81-d05d-5023-a5b9-211e34546575", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000001+00:00" + ], + [ + "07db7782-4351-7046-33b5-30864a334828", + "cdcaab81-d05d-5023-a5b9-211e34546575", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000006+00:00" + ], + [ + "284675e3-8fd0-1686-c666-7731a6e3d8ab", + "cdcaab81-d05d-5023-a5b9-211e34546575", + "d4247ecd-40ba-5c2d-b65c-56e6db73e730", + "message 10xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", + "2026-01-01 00:00:00.000010+00:00" + ] + ] + }, + "post_snapshot_commits_not_restored": 1, + "source_count_after_backup": 101111, + "post_snapshot_message": "8cfa1d70-e8d0-4b4c-91ae-172f7fff00c6" + }, + "postgres_cgroup_memory_current": 252526592, + "postgres_cgroup_memory_peak": 266039296, + "result": "PASS" +} diff --git a/pyproject.toml b/pyproject.toml index 92167123..27e019ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,11 @@ select = ["E", "F", "I", "B", "UP"] [tool.ruff.per-file-target-version] "scripts/*.py" = "py39" +# SQL и генерируемые Markdown-таблицы в инструментах не разрываем. +[tool.ruff.lint.per-file-ignores] +"research/*.py" = ["E501"] +"scripts/*.py" = ["E501"] + [tool.pytest.ini_options] testpaths = ["student-tests"] addopts = "-ra" diff --git a/research/analyze.py b/research/analyze.py new file mode 100644 index 00000000..8e082e48 --- /dev/null +++ b/research/analyze.py @@ -0,0 +1,134 @@ +import argparse +import csv +import json +import statistics +from collections import defaultdict +from pathlib import Path + +import matplotlib + +matplotlib.use("Agg") +import matplotlib.pyplot as plt # noqa: E402 + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("input", type=Path) + args = parser.parse_args() + result = json.loads(args.input.read_text()) + groups = defaultdict(list) + for row in result["reads"]: + groups[(row["chat_messages"], row["position"], row["variant"])].append( + row + ) + rows = [] + for (size, position, variant), values in sorted(groups.items()): + ms = [v["execution_ms"] for v in values] + rows.append( + { + "messages": size, + "position": position, + "variant": variant, + "repeats": len(values), + "median_sql_ms": statistics.median(ms), + "min_sql_ms": min(ms), + "max_sql_ms": max(ms), + "median_buffers": statistics.median( + v["shared_hits"] + v["shared_reads"] for v in values + ), + } + ) + directory = args.input.parent + with (directory / "query-summary.csv").open("w") as stream: + writer = csv.DictWriter( + stream, fieldnames=list(rows[0]), lineterminator="\n" + ) + writer.writeheader() + writer.writerows(rows) + lines = [ + "# Планы запросов и восстановление", + "", + "Три повтора, 101110 сообщений в 5 неравномерных чатах.", + "", + "| Индекс | SQL середины чата90k, мс | Буферы | Размер, bytes | INSERT+COMMIT1000, мс | WAL, bytes |", + "|---|---:|---:|---:|---:|---:|", + ] + for variant in ["chat_only", "keyset"]: + read = next( + r + for r in rows + if r["messages"] == 90000 + and r["position"] == "middle" + and r["variant"] == variant + ) + writes = [r for r in result["writes"] if r["variant"] == variant] + index_bytes = statistics.median( + r["bytes"] for r in result["indexes"] if r["variant"] == variant + ) + latency = statistics.median( + r["insert_and_commit_seconds"] * 1000 for r in writes + ) + wal = statistics.median(r["wal_bytes"] for r in writes) + lines.append( + f"| {variant} | {read['median_sql_ms']:.3f} | {read['median_buffers']:.0f} | {index_bytes:.0f} | {latency:.2f} | {wal:.0f} |" + ) + lines.extend( + [ + "", + f"Dump: {result['backup_seconds']:.3f} s, {result['backup_bytes']} bytes.", + f"Restore в новую БД: {result['restore_seconds']:.3f} s.", + "Проверены count всех таблиц, SHA-256 всей истории и 15 полных сообщений.", + "Одна отдельная SQL-запись после snapshot не восстановлена — ожидаемая", + "граница snapshot backup. Это не HTTP RPO и не гарантия HA.", + "", + "Время EXPLAIN — SQL execution time, не HTTP latency. Цена записи включает", + "COMMIT 1000 строк; WAL — глобальный счётчик PG и может включать фон.", + "Индекс keyset больше и даёт больше WAL, но в этом опыте INSERT быстрее:", + "гипотеза роста именно времени записи не подтвердилась. Причина механизма", + "такого различия отдельно не профилировалась.", + ] + ) + (directory / "query-summary.md").write_text("\n".join(lines) + "\n") + fig, axes = plt.subplots(1, 2, figsize=(10, 4)) + for variant in ["chat_only", "keyset"]: + selected = sorted( + ( + r + for r in rows + if r["variant"] == variant and r["position"] == "middle" + ), + key=lambda r: r["messages"], + ) + sizes = [r["messages"] for r in selected] + axes[0].plot( + sizes, + [r["median_sql_ms"] for r in selected], + marker="o", + label=variant, + ) + axes[1].plot( + sizes, + [r["median_buffers"] for r in selected], + marker="o", + label=variant, + ) + for ax, ylabel in zip( + axes, ["SQL execution time, ms", "Shared buffers touched"], strict=True + ): + ax.set_xscale("log") + ax.set_yscale("log") + ax.set_xlabel("Messages in chat") + ax.set_ylabel(ylabel) + ax.grid(alpha=0.3) + ax.legend() + fig.suptitle( + "PostgreSQL 1 CPU / 512 MiB; midpoint keyset page; median of 3" + ) + fig.tight_layout() + fig.savefig(directory / "query-plans.png", dpi=150) + plt.close(fig) + print("\n".join(lines)) + + +if __name__ == "__main__": + main() diff --git a/scripts/verify_pool.py b/scripts/verify_pool.py new file mode 100644 index 00000000..853dd6f2 --- /dev/null +++ b/scripts/verify_pool.py @@ -0,0 +1,116 @@ +import argparse +import json +import time +from concurrent.futures import ThreadPoolExecutor +from datetime import UTC, datetime +from pathlib import Path +from uuid import uuid4 + +import httpx + +from scripts.stand import actor, auth, command, extra_api, sql + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("--output", required=True) + args = parser.parse_args() + output = Path(args.output) + if output.exists(): + raise SystemExit("Choose new output path") + name, base = extra_api(pool_size=1) + function = "poolwait_" + uuid4().hex[:8] + trigger_created = False + try: + with httpx.Client( + base_url=base, trust_env=False, timeout=15 + ) as client: + user, _, session = actor(client) + headers = auth(session) + chat = client.post( + "/api/v1/chats", + headers=headers, + json={"title": "Pool test", "member_ids": [user["id"]]}, + ).json() + path = "/api/v1/chats/" + chat["id"] + "/messages" + sql( + "CREATE FUNCTION " + + function + + "() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN IF NEW.chat_id='" + + chat["id"] + + "'::uuid THEN PERFORM pg_sleep(4); END IF; RETURN NEW; END $$; CREATE TRIGGER " + + function + + " BEFORE INSERT ON messages FOR EACH ROW EXECUTE FUNCTION " + + function + + "()" + ) + trigger_created = True + with ThreadPoolExecutor(max_workers=1) as pool: + blocking = pool.submit( + client.post, + path, + headers=headers, + json={"text": "Synthetic delayed insert"}, + ) + for _ in range(30): + active = sql( + "SELECT count(*) FROM pg_stat_activity WHERE datname=current_database() AND state='active' AND query LIKE 'INSERT INTO messages%'" + ) + if int(active) > 0: + break + time.sleep(0.05) + else: + raise AssertionError("Blocked INSERT not observed") + started = time.perf_counter() + second = client.get("/api/v1/users/me", headers=headers) + waited = time.perf_counter() - started + assert second.status_code == 503 and 0.8 <= waited < 3 + first = blocking.result(timeout=6) + assert first.status_code == 503 + sql( + "DROP TRIGGER " + + function + + " ON messages; DROP FUNCTION " + + function + + "()" + ) + trigger_created = False + assert client.get(path, headers=headers).json()["items"] == [] + assert ( + client.post( + path, headers=headers, json={"text": "After recovery"} + ).status_code + == 201 + ) + result = { + "date": datetime.now(UTC).isoformat(), + "commit": command(["git", "rev-parse", "HEAD"]), + "command": "python -m scripts.verify_pool", + "pool_size": 1, + "blocked_insert_observed_in_pg_stat_activity": True, + "pool_wait_seconds": waited, + "pool_timeout_status": second.status_code, + "statement_timeout_status": first.status_code, + "failed_write_rolled_back": True, + "write_after_recovery": 201, + "result": "PASS", + } + output.parent.mkdir(parents=True, exist_ok=True) + output.write_text( + json.dumps(result, ensure_ascii=False, indent=2) + "\n" + ) + print(json.dumps(result, ensure_ascii=False, indent=2)) + finally: + if trigger_created: + sql( + "DROP TRIGGER IF EXISTS " + + function + + " ON messages; DROP FUNCTION IF EXISTS " + + function + + "()" + ) + command(["docker", "rm", "-f", name]) + + +if __name__ == "__main__": + main() -- 2.54.0 From 7466a091789c7106294369aa2259155ac5ed9669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 08:19:20 +0300 Subject: [PATCH 07/12] test: prepare isolated clean-clone verification and stronger cache checks --- compose.yaml | 4 +- evidence/pool.json | 13 ++ evidence/query-plans.png | Bin 0 -> 83624 bytes evidence/query-summary.csv | 31 +++++ evidence/query-summary.md | 20 ++++ evidence/verification-notes.md | 13 ++ scripts/verify_clean.py | 212 +++++++++++++++++++++++++++++++++ scripts/verify_lifecycle.py | 21 ++++ 8 files changed, 312 insertions(+), 2 deletions(-) create mode 100644 evidence/pool.json create mode 100644 evidence/query-plans.png create mode 100644 evidence/query-summary.csv create mode 100644 evidence/query-summary.md create mode 100644 evidence/verification-notes.md create mode 100644 scripts/verify_clean.py diff --git a/compose.yaml b/compose.yaml index cff40ee6..642945c9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,7 +1,7 @@ name: mtusi-lab2-maslov services: postgres: - image: postgres:18.3 + image: postgres:18.3@sha256:7e32e9833a6fb1c92c32552794cb6ed569d51b445a54907d35fc112ef39684db environment: POSTGRES_USER: messenger POSTGRES_DB: messenger @@ -19,7 +19,7 @@ services: mem_limit: 512m memswap_limit: 512m cache: - image: valkey/valkey:8.1.3 + image: valkey/valkey:8.1.3@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571 command: [valkey-server, /run/secrets/valkey.conf] secrets: - cache_password diff --git a/evidence/pool.json b/evidence/pool.json new file mode 100644 index 00000000..1a95823c --- /dev/null +++ b/evidence/pool.json @@ -0,0 +1,13 @@ +{ + "date": "2026-11-07T05:15:33.380498+00:00", + "commit": "171b6de9c87c14cdfb1f9ec6a58aab7101c23d6a", + "command": "python -m scripts.verify_pool", + "pool_size": 1, + "blocked_insert_observed_in_pg_stat_activity": true, + "pool_wait_seconds": 1.0045806250127498, + "pool_timeout_status": 503, + "statement_timeout_status": 503, + "failed_write_rolled_back": true, + "write_after_recovery": 201, + "result": "PASS" +} diff --git a/evidence/query-plans.png b/evidence/query-plans.png new file mode 100644 index 0000000000000000000000000000000000000000..a55fd2443df8eb5346b8e3d3ba6359e44aa5b735 GIT binary patch literal 83624 zcmdqJXHZjX`!^ayK}684TM>}5RY1B@1q@&V=}K<_luih}hN@V$3Zj6NP?aVnp@&Xz zTaXR`5+F3`Aryf?AR%yW_VfJT^S(3Z+nMv_tQp4)Br7W`_kCTzcJbB_(@3Bl`G&s)qs1J0Vduq0l|;_oFN8}0(?BZ13cXy3kNy- z`MZ02$;({7E+Z!;>=qE<RF(;5c&l&WDHG zH(AG1?EiTTfgBwJZ~gD#^M~C3{g~y*zgK$ri#iBP@PD2Gf!IbztNqVo8O>IK|9Q+K zJjMOr$I+apeg5a{t;denvHthxQ%C-{xBAcNf1kMb`p@?lRs4R&^2%RP>sVye3La3( zaIcluw|f<3WO_=o4LNyasMIBhmF~=sxb9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3++FoQ2&<-3 zh+JLYH~GKGrtcb6?_MWp*moF!va;IK!Tvj{q6bWf8j;CFX8*Q&TVXWZ{suIQzIv_# zR(9)6<|(*8l!zEx0}oS%LY3utn6^*S-yw${b=r zd!BpRC`f*QSDsyD!<_TORlgybUOT#eA3jM%Sus-B#1Hx%GLl-D-Q`J70!zuSx(GNm zS!BDt5aFd#mlnn%u@$aTdh1<#TrJ15lC_srETF`bK3Eev+4%QxY{f#}%6ommw>vv4 zi#sh;sne4eFpmaWyCC@|c0y|gq|%=dD$~1Axni#hxfe6&d;} zdDMCahastypkJsZ`W=C?izU#i^4hHiVi#?}gx>L!*p;(D<;&3ykk}c6 z->$yf5}@2I#y-u@`pa7r5z$pnhZ-DQX)i&KjT`YzUhI!&%m^D)NJdeq|SioB1>v2^cb~_e1d`BX3#$5eRK|b#L=h@ z8jwJJK!wcO>H78S%H391(r=H%-Jkc8KQ`NtP!(^OgtL}^fihaqGX>vB9?hSW_`40p zI&Tbm`f_a6=<&3=HbOb&Ftw3-p3BU-k_Fn~!GkK$*0cf1)oPEcmb)f|VD3_9#|QX# zd6aw=b>lUlK4Uj$D14uID!{I*9Wx}dg8m}M=>}l9a*GoT^O-{nV9e_>X_91t8{;g_ zLiCP-bZJZD>C*F07~!aJvgA2y65#J0d-rZZ001obGFU#;!F^+~suLm-XKE;UEt12? zdxdS&>)PqMpQ(yzTm_cIP^tSH1Mtzl${zOslT&fX-r=!ZKx`qL>5S_3ASiBr?Z_der>LI)OkZUSit zlUj5n$bz%Iuv8>Q9iA$lUP)^SqWkKrfGbl2%R}gM^Bd(WZkCP;G_)jmw W&%PVew*2r9xU2~$%mv5J-1slm%&hGI literal 0 HcmV?d00001 diff --git a/evidence/query-summary.csv b/evidence/query-summary.csv new file mode 100644 index 00000000..308568a9 --- /dev/null +++ b/evidence/query-summary.csv @@ -0,0 +1,31 @@ +messages,position,variant,repeats,median_sql_ms,min_sql_ms,max_sql_ms,median_buffers +10,head,chat_only,3,0.011,0.011,0.015,3 +10,head,keyset,3,0.006,0.006,0.008,4 +10,middle,chat_only,3,0.01,0.008,0.013,3 +10,middle,keyset,3,0.005,0.005,0.007,4 +10,tail,chat_only,3,0.011,0.01,0.011,3 +10,tail,keyset,3,0.006,0.006,0.007,4 +100,head,chat_only,3,0.038,0.034,0.039,6 +100,head,keyset,3,0.016,0.016,0.018,7 +100,middle,chat_only,3,0.03,0.026,0.034,6 +100,middle,keyset,3,0.015,0.014,0.015,5 +100,tail,chat_only,3,0.028,0.027,0.031,6 +100,tail,keyset,3,0.016,0.015,0.016,6 +1000,head,chat_only,3,0.197,0.195,0.205,25 +1000,head,keyset,3,0.018,0.016,0.02,5 +1000,middle,chat_only,3,0.152,0.136,0.158,25 +1000,middle,keyset,3,0.026,0.017,0.032,6 +1000,tail,chat_only,3,0.092,0.08,0.106,25 +1000,tail,keyset,3,0.016,0.015,0.019,6 +10000,head,chat_only,3,1.801,1.755,1.845,224 +10000,head,keyset,3,0.019,0.018,0.019,6 +10000,middle,chat_only,3,1.187,1.17,1.198,224 +10000,middle,keyset,3,0.016,0.016,0.018,5 +10000,tail,chat_only,3,0.624,0.603,0.878,224 +10000,tail,keyset,3,0.016,0.016,0.017,6 +90000,head,chat_only,3,16.501,9.887,22.44,2209 +90000,head,keyset,3,0.02,0.019,0.021,5 +90000,middle,chat_only,3,7.237,7.082,8.505,2209 +90000,middle,keyset,3,0.017,0.016,0.018,5 +90000,tail,chat_only,3,4.287,4.282,4.674,2194 +90000,tail,keyset,3,0.016,0.016,0.018,5 diff --git a/evidence/query-summary.md b/evidence/query-summary.md new file mode 100644 index 00000000..3055e09a --- /dev/null +++ b/evidence/query-summary.md @@ -0,0 +1,20 @@ +# Планы запросов и восстановление + +Три повтора, 101110 сообщений в 5 неравномерных чатах. + +| Индекс | SQL середины чата90k, мс | Буферы | Размер, bytes | INSERT+COMMIT1000, мс | WAL, bytes | +|---|---:|---:|---:|---:|---:| +| chat_only | 7.237 | 2209 | 729088 | 37.53 | 347536 | +| keyset | 0.017 | 5 | 5980160 | 11.55 | 427672 | + +Dump: 0.480 s, 3026259 bytes. +Restore в новую БД: 0.664 s. +Проверены count всех таблиц, SHA-256 всей истории и 15 полных сообщений. +Одна отдельная SQL-запись после snapshot не восстановлена — ожидаемая +граница snapshot backup. Это не HTTP RPO и не гарантия HA. + +Время EXPLAIN — SQL execution time, не HTTP latency. Цена записи включает +COMMIT 1000 строк; WAL — глобальный счётчик PG и может включать фон. +Индекс keyset больше и даёт больше WAL, но в этом опыте INSERT быстрее: +гипотеза роста именно времени записи не подтвердилась. Причина механизма +такого различия отдельно не профилировалась. diff --git a/evidence/verification-notes.md b/evidence/verification-notes.md new file mode 100644 index 00000000..f69db34b --- /dev/null +++ b/evidence/verification-notes.md @@ -0,0 +1,13 @@ +# Область первых проверок + +В lifecycle.json подтверждены restart всех трёх процессов, тот же токен, +expiry/logout, cache hits и bounded 503 при остановке/паузе PostgreSQL. +Однако наличие карточки в кэше непосредственно перед отказом PG отдельно +не проверялось: после рестарта cache могло ещё действовать окно backoff. +Поэтому cached_identity_not_trusted в этой первой записи не является +самостоятельным доказательством сохранённого cache hit при отказе PG. + +Финальный скрипт усилен: ждёт окончания backoff, проверяет EXISTS карточки +перед каждым воздействием на PG и сравнивает абсолютный expires_at до/после +restart. Этот вариант повторяется в финальном чистом clone; результат +будет в clean-clone.json. Runtime API при этом не менялся. diff --git a/scripts/verify_clean.py b/scripts/verify_clean.py new file mode 100644 index 00000000..85165799 --- /dev/null +++ b/scripts/verify_clean.py @@ -0,0 +1,212 @@ +import argparse +import json +import os +import subprocess +import tempfile +from datetime import UTC, datetime +from pathlib import Path +from uuid import uuid4 + +ROOT = Path(__file__).resolve().parents[1] + + +def run(args, *, cwd, env, expected=0): + result = subprocess.run( + args, cwd=cwd, env=env, capture_output=True, text=True + ) + + def redact(text): + return ( + text.replace(str(cwd), "") + .replace(str(ROOT), "") + .replace(str(Path.home()), "") + ) + + if result.returncode != expected: + raise RuntimeError(redact(result.stdout + result.stderr)) + return redact(result.stdout.strip()) + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("--output", default="evidence/clean-clone.json") + args = parser.parse_args() + output = ROOT / args.output + if output.exists(): + raise SystemExit("Choose new output path") + assert not subprocess.check_output( + ["git", "status", "--porcelain"], cwd=ROOT + ) + sha = subprocess.check_output( + ["git", "rev-parse", "HEAD"], cwd=ROOT, text=True + ).strip() + identity = uuid4().hex[:10] + project = "mtusi-lab2-clean-" + identity + env = { + **os.environ, + "COMPOSE_PROJECT_NAME": project, + "API_IMAGE": "mtusi-messenger:lab2-clean-" + identity, + "PUBLIC_PORT": "0", + "VCS_REF": sha, + "NO_PROXY": "localhost,127.0.0.1", + "no_proxy": "localhost,127.0.0.1", + } + receipt = { + "date": datetime.now(UTC).isoformat(), + "source_commit": sha, + "fresh_secrets_environment_and_volumes": True, + "command": "python scripts/verify_clean.py", + } + with tempfile.TemporaryDirectory(prefix="mtusi-lab2-clean-") as temporary: + clone = Path(temporary) / "lab2" + run( + [ + "git", + "clone", + "--no-hardlinks", + "--branch", + "solution/bvt2301-maslov", + str(ROOT), + str(clone), + ], + cwd=ROOT, + env=env, + ) + for name in [".env", ".venv", "secrets"]: + assert not (clone / name).exists() + run(["uv", "sync", "--locked"], cwd=clone, env=env) + receipt["static_checks"] = run( + ["make", "check", "validate", "lint", "PYTHON=.venv/bin/python"], + cwd=clone, + env=env, + ) + run(["make", "bootstrap"], cwd=clone, env=env) + try: + run( + ["docker", "compose", "up", "-d", "--build", "--wait"], + cwd=clone, + env=env, + ) + api = run( + ["docker", "compose", "ps", "-q", "api"], cwd=clone, env=env + ) + info = json.loads( + run(["docker", "inspect", api], cwd=clone, env=env) + )[0] + endpoint = info["NetworkSettings"]["Ports"]["8080/tcp"][0] + assert endpoint["HostIp"] == "127.0.0.1" + env["BASE_URL"] = "http://127.0.0.1:" + endpoint["HostPort"] + for role, port in [ + ("postgres", "5432/tcp"), + ("cache", "6379/tcp"), + ]: + cid = run( + ["docker", "compose", "ps", "-q", role], cwd=clone, env=env + ) + state = json.loads( + run(["docker", "inspect", cid], cwd=clone, env=env) + )[0] + assert not state["NetworkSettings"]["Ports"].get(port) + receipt["internal_store_ports_not_published"] = True + receipt["smoke"] = run( + ["make", "test", "BASE_URL=" + env["BASE_URL"]], + cwd=clone, + env=env, + ) + receipt["http_tests"] = run( + [".venv/bin/pytest", "student-tests", "-q"], cwd=clone, env=env + ) + receipt["public_persistence"] = run( + [ + "make", + "test-persistence", + "ACTION_SCRIPT=scripts/restart.sh", + "BASE_URL=" + env["BASE_URL"], + ], + cwd=clone, + env=env, + ) + for module, filename in [ + ("verify_lifecycle", "clean-lifecycle.json"), + ("verify_pool", "clean-pool.json"), + ]: + run( + [ + ".venv/bin/python", + "-m", + "scripts." + module, + "--output", + "evidence/" + filename, + ], + cwd=clone, + env=env, + ) + receipt[module] = json.loads( + (clone / "evidence" / filename).read_text() + ) + # Подменяется только временная read-only копия миграции. + altered = clone / ".work/altered-migrations" + altered.mkdir(parents=True) + migration = clone / "migrations/001_core.sql" + (altered / migration.name).write_bytes( + migration.read_bytes() + b"\n-- synthetic checksum mismatch\n" + ) + attempt = subprocess.run( + [ + "docker", + "compose", + "run", + "--rm", + "--no-deps", + "-v", + str(altered) + ":/app/migrations:ro", + "migrate", + ], + cwd=clone, + env=env, + capture_output=True, + text=True, + ) + assert attempt.returncode != 0 + assert "Applied migration checksum mismatch" in attempt.stderr + receipt["applied_migration_checksum_guard"] = "PASS" + run( + [ + ".venv/bin/python", + "-m", + "research.query_plan", + "--output", + "evidence/clean-query-plan.json", + ], + cwd=clone, + env=env, + ) + research = json.loads( + (clone / "evidence/clean-query-plan.json").read_text() + ) + receipt["research_repeated"] = { + "result": research["result"], + "messages": research["dataset"]["messages"], + "plans": len(research["reads"]), + "restored_snapshot_equal": research["restore_verification"][ + "snapshot_equal" + ], + } + receipt["fsck"] = run( + ["git", "fsck", "--full"], cwd=clone, env=env + ) + receipt["result"] = "PASS" + finally: + assert project.startswith("mtusi-lab2-clean-") + run( + ["docker", "compose", "down", "--volumes", "--remove-orphans"], + cwd=clone, + env=env, + ) + output.parent.mkdir(parents=True, exist_ok=True) + output.write_text(json.dumps(receipt, ensure_ascii=False, indent=2) + "\n") + print(json.dumps(receipt, ensure_ascii=False, indent=2)) + + +if __name__ == "__main__": + main() diff --git a/scripts/verify_lifecycle.py b/scripts/verify_lifecycle.py index be509c3d..60f93496 100644 --- a/scripts/verify_lifecycle.py +++ b/scripts/verify_lifecycle.py @@ -64,6 +64,12 @@ def main(): with httpx.Client(base_url=BASE, trust_env=False, timeout=15) as client: user, password, session = actor(client) headers = auth(session) + expiry_query = ( + "SELECT expires_at::text FROM sessions WHERE user_id='" + + user["id"] + + "'" + ) + expires_before = sql(expiry_query) chat = client.post( "/api/v1/chats", headers=headers, @@ -80,6 +86,7 @@ def main(): command(["sh", "scripts/restart.sh"]) ready() after = instances() + assert sql(expiry_query) == expires_before for role in before: assert before[role]["started_at"] != after[role]["started_at"] assert ( @@ -87,6 +94,7 @@ def main(): == message_id ) receipt["persistence"] = { + "absolute_expiry_unchanged": True, "same_token": True, "same_message": True, "before": before, @@ -177,6 +185,18 @@ def main(): ) receipt["cache_flush_preserves_truth"] = True for mode in ["pause", "stop"]: + # Дожидаемся окончания circuit backoff и доказываем cache hit + # непосредственно перед отказом источника истины. + for _ in range(30): + assert ( + client.get("/api/v1/users/me", headers=headers).status_code + == 200 + ) + if cache("EXISTS", "user:" + user["id"]) == "1": + break + time.sleep(0.25) + else: + raise AssertionError("User cache not primed before PG fault") compose(mode, "postgres") try: started = time.perf_counter() @@ -190,6 +210,7 @@ def main(): ) assert client.get("/health/live").status_code == 200 receipt["postgres_" + mode] = { + "cache_card_present_before_failure": True, "status": result.status_code, "seconds": elapsed, "cached_identity_not_trusted": True, -- 2.54.0 From 8e3e16a8a6ea07f6a2b8615045735f812299e3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 08:26:05 +0300 Subject: [PATCH 08/12] fix: preserve clean-clone endpoint across container restarts --- .github/workflows/application.yml | 26 ++++ Makefile | 6 +- REPORT.md | 237 +++++++++++++++++++++++++++--- evidence/clean-attempt1.txt | 12 ++ evidence/port-restart.json | 10 ++ scripts/verify_clean.py | 39 ++++- 6 files changed, 302 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/application.yml create mode 100644 evidence/clean-attempt1.txt create mode 100644 evidence/port-restart.json diff --git a/.github/workflows/application.yml b/.github/workflows/application.yml new file mode 100644 index 00000000..5fcf0cfb --- /dev/null +++ b/.github/workflows/application.yml @@ -0,0 +1,26 @@ +name: Application checks +on: [push, pull_request] +permissions: + contents: read +jobs: + application: + runs-on: ubuntu-24.04 + env: + NO_PROXY: localhost,127.0.0.1 + no_proxy: localhost,127.0.0.1 + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: actions/setup-python@v5 + with: + python-version: '3.14.7' + - run: python -m pip install uv==0.13.7 + - run: uv sync --locked + - run: make bootstrap lint check validate PYTHON=.venv/bin/python + - run: make up + - run: make test test-student + - run: make test-persistence ACTION_SCRIPT=scripts/restart.sh + - run: make verify VERIFY_OUTPUT=.work/ci-lifecycle.json + - if: always() + run: docker compose down --volumes diff --git a/Makefile b/Makefile index e50192c1..c6a8062b 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,8 @@ test-persistence: UV ?= uv IMAGE ?= mtusi-messenger:lab2 +VERIFY_OUTPUT ?= evidence/lifecycle-repeat.json +RESEARCH_OUTPUT ?= evidence/query-plan-repeat.json .PHONY: bootstrap up down lint test-student image verify research bootstrap: @@ -43,6 +45,6 @@ lint: test-student: BASE_URL="$(BASE_URL)" $(UV) run --locked pytest student-tests verify: - $(UV) run --locked python -m scripts.verify_lifecycle --output evidence/lifecycle.json + $(UV) run --locked python -m scripts.verify_lifecycle --output "$(VERIFY_OUTPUT)" research: - $(UV) run --locked python -m research.query_plan --output evidence/query-plan.json + $(UV) run --locked python -m research.query_plan --output "$(RESEARCH_OUTPUT)" diff --git a/REPORT.md b/REPORT.md index e42f2b05..402b9607 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,37 +1,226 @@ -# Отчёт — лабораторная 2 +# Лабораторная 2 — PostgreSQL, сессии и Valkey -- Автор, группа: TODO -- Целевая оценка; выбранный трек 5, если нужен: TODO -- Commit/PR: TODO после публикации -- Использованные источники, библиотеки и помощь ИИ: TODO +Автор: **Маслов, БВТ2301**. Цель: **5**, трек 2 «План запроса и восстановление». +Ветка `solution/bvt2301-maslov`; основа — skeleton ЛР2, ветка master. +Публикации и удалённого CI пока нет. -## Запуск из чистого clone +## Воспроизводимый запуск -TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных. +Нужны Docker 25+ с BuildKit/Compose v2+, make, Git и uv 0.13.7. +Python 3.14.7; FastAPI 0.143.3, Pydantic 2.14.1, Uvicorn 0.54.0, +psycopg 3.3.6, psycopg-pool 3.3.3, Argon2 25.1.0, redis client 8.1.0. +Точные транзитивные версии — `uv.lock`. Базовые образы Python/uv, +PostgreSQL 18.3 и Valkey 8.1.3 закреплены тегами и digest. -## Архитектура и решения +```sh +uv sync --locked +make bootstrap +make check validate PYTHON=.venv/bin/python +make lint +make up +NO_PROXY=localhost,127.0.0.1 no_proxy=localhost,127.0.0.1 make test +make test-student +NO_PROXY=localhost,127.0.0.1 no_proxy=localhost,127.0.0.1 \ + make test-persistence ACTION_SCRIPT=scripts/restart.sh +make verify +uv run --locked python -m scripts.verify_pool --output evidence/pool-repeat.json +``` -TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab1, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации. +API: `http://127.0.0.1:8082`. PostgreSQL/Valkey не публикуют host-порты. +Для другого порта задать PUBLIC_PORT в окружении и передавать BASE_URL +проверкам. Все повторные evidence должны иметь новые имена файлов. -## Доказательства критериев +`make down` останавливает стенд, сохраняя PostgreSQL volume. Его повторный +запуск использует прежние данные и секреты. Намеренное удаление **только +учебных данных данного проекта**: `docker compose down --volumes`. +Не применять к рабочим данным и не запускать глобальный Docker prune. -| Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства | -| --- | --- | --- | --- | -| Публичный smoke | make test | TODO | TODO | -| Остальные пункты уровня 3 | TODO | TODO | TODO | -| Все пункты уровня 4, если заявлен | TODO | TODO | TODO | -| Выбранный трек 5, если заявлен | TODO | TODO | TODO | +Bootstrap создаёт только отсутствующие `.env`/secret files. Каталог secrets +имеет 0700, файлы доступны non-root контейнеру через read-only file mounts. +Не пересоздавать пароль при сохранённом PG volume: initdb уже создал роль +со старым паролем. В Git/образ секреты и .env не попадают. -TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены. +Конфигурация: APP_HOST/APP_PORT — bind внутри API; PUBLIC_PORT — Compose; +DATABASE_URL_FILE/CACHE_URL_FILE — пути к файловым секретам; +SESSION_TTL_SECONDS — абсолютный срок сессии (default 3600); +DB_POOL_SIZE — 1…32 (default 10). SESSION_STORE=postgres и APP_ENV в example +информационные: реализация не переключает источник истины этими строками. +Compose передаёт приложению только нужные ему настройки и секреты. -## Эксперименты и отказы +## Архитектура и перенос -TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения. +Из своей ЛР1 перенесены HTTP-контракт, строгие схемы, ошибки/request ID, +ACL, UUID/UTC, cursor и собственные HTTP-тесты. Сохранены неизменёнными +README/COURSE/contracts/tests **текущего** skeleton. Git-история ЛР1 +не переносилась; репозиторий ЛР2 независим. -| Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных | -| --- | --- | --- | --- | -| TODO | TODO | TODO | TODO | +```mermaid +flowchart LR + C[HTTP клиент] --> API[FastAPI: JSON, auth, request ID] + API --> T[Ограниченный threadpool: сервисные операции] + T --> PG[(PostgreSQL: данные и сессии)] + T --> V[(Valkey: карточка User, TTL 30 s)] + M[Одноразовый migrate] --> PG +``` -## Ограничения и следующие шаги +SQL parameter binding используется для всех данных клиента. Динамические +идентификаторы в research — через psycopg.sql.Identifier и проверенный +UUID-префикс; в рабочем API пользователь не задаёт имена таблиц/SQL. -TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза. +Модель и транзакции заданы до SQL в [PLAN.md](PLAN.md): + +| Объект/операция | Ограничения и граница | +|---|---| +| users | UUID PK, UNIQUE username; KDF до получения соединения; INSERT атомарен | +| chats + members | FK, уникальный участник/позиция; чат и все участники в одной транзакции | +| messages | FK(chat_id,sender_id) на members; INSERT подтверждается после COMMIT | +| sessions | PK digest32bytes, FK user, created_at/expires_at; raw token не хранится | +| history | `(chat_id,created_at,id)`, tuple keyset + LIMIT limit+1 | +| migrations | SQL-файлы, checksum и advisory lock; отдельный сервис до API | + +Миграции с нуля и повторное применение не создают пользовательские данные. +Изменение применённого файла отклоняется; добавляется новая миграция. +API сам схему не создаёт. Отказ migrate блокирует запуск API в Compose. + +Пул на процесс: min 1 / max 10, ожидание 1 с; connect_timeout 2 с; +statement_timeout 2.5 с, lock_timeout 1 с, idle transaction timeout 6 с. +Общий клиентский срок операций на выданном соединении — 4 с, включая +замороженный сервер. При таймауте соединение закрывается и не возвращается +в пул как исправное. SQL, KDF и cache I/O не блокируют ASGI event loop. +Liveness не обращается к БД; readiness проверяет PostgreSQL, не Valkey. + +## Пароли, сессии и кэш + +- Argon2id: 64 MiB, t=3, p=4. Одновременно не больше двух KDF на процесс, + ожидание слота ограничено 5 с. UTF-8 пароль 12–128 code points обрабатывается + целиком, без усечения/нормализации. Проверено 127 emoji и двоеточие. +- Basic — только POST auth/sessions; собственный строгий base64/UTF-8 parser, + разделение по первому двоеточию. Неизвестный username проходит dummy KDF, + возвращается тот же 401. Хэш/пароль не входят в UserDTO и HTTP-ошибки. +- Токен — secrets.token_urlsafe(32), 256 бит энтропии; PostgreSQL хранит + только SHA-256 digest случайного токена. Это не password KDF и не JWT. +- Каждый запрос проверяет сессию и абсолютный expires_at **в PostgreSQL**. + Logout удаляет сессию; прежний cache hit не оживляет её. X-User-Id + игнорируется, Basic на бизнес-endpoint даёт 401. WWW-Authenticate + соответствует Basic/Bearer. Restart срок не продлевает. +- Valkey хранит только неизменяемую карточку User, TTL 30 с, maxmemory 64 MiB, + allkeys-lru; persistence выключена, собственного volume нет. Ошибка + cache — miss и чтение PG, backoff 5 с; socket/connect timeout 0.15 с, + скрытые retry отключены. При отказе PG cached User не авторизует запрос. +- API не изменяет карточки пользователей, поэтому инвалидации при записи + не требуется. При восстановлении старого snapshot вне API кэш надо + очистить. История вообще не кэшируется: read-after-write идёт из PG. + +Образы API: non-root UID10001, exec Python PID1, healthcheck, read-only rootfs, +tmpfs и cap_drop=ALL. Лимиты API 1 CPU/512 MiB, PG 1 CPU/512 MiB, cache +0.25 CPU/128 MiB. Логи JSON: request ID/маршрут/код/время; без тел, +Authorization, паролей, токенов, их digest и параметров SQL. + +## Таблица доказательств + +| Критерий README | Команда | Факт / evidence | +|---|---|---| +| API ЛР1 + новый auth | `make test`, `make test-student` | Smoke PASS, 77 passed; [http-tests.json](evidence/http-tests.json) | +| Данные и прежний токен после restart всех stores | `make test-persistence`, `make verify` | [public-persistence.txt](evidence/public-persistence.txt), [lifecycle.json](evidence/lifecycle.json); CID/PID/StartedAt до/после | +| PK/FK/UNIQUE и атомарный чат | migrations, регистрационная гонка, injected rollback | [001_core.sql](migrations/001_core.sql), [lifecycle.json](evidence/lifecycle.json); после сбоя строка чата отсутствует | +| Версионируемые миграции и bootstrap | `make verify`, clean clone | Повтор без изменений; секреты сохранены; checksum guard в финальной проверке | +| Реальная роль Valkey | `make verify` | 20 cache hits, stop/flush не теряют данные/сессию | +| Parameter binding, bounded pool и timeouts | `python -m scripts.verify_pool`, `make verify` | [pool.json](evidence/pool.json): pool1, ожидание 1.005 с →503; pause PG4.011 с →503 | +| Индекс, EXPLAIN ≥10k | `make research` | 90 планов для 5 размеров чата; [query-plan.json](evidence/query-plan.json) | +| Expiry, logout, неверный пароль, отказы | HTTP-тесты, lifecycle | TTL2s →401; stop cache →200; stop PG →503; logout →401 | +| Трек2: ≥100k, индексы/запись/backup | research | 101110 сообщений, 2 индекса, 3 повтора, восстановление и сверка | +| Независимый clean clone | `python scripts/verify_clean.py` | Результат будет добавлен после фактического завершения | + +Первая проверка не утверждает наличие карточки в cache непосредственно +перед PG fault без дополнительного EXISTS: [границы evidence](evidence/verification-notes.md). +Финальный вариант дополнительно проверяет это и неизменность expires_at. + +## Исследование: методика и результаты + +Гипотеза в PLAN закоммичена до замера. Стенд: Apple M1, 8 CPU, 8 GiB RAM, +Docker Desktop 4.98.0/Engine29.9.2; PostgreSQL в контейнере 1 CPU/512 MiB. +Рабочие таблицы messenger не меняются: создаются research_UUID и restored_UUID +именно данного запуска, затем удаляются вместе с временным dump. + +SQL seed: 5 чатов 90000/10000/1000/100/10, всего101110 сообщений; +уникальные тексты80ASCII. Seed обходит HTTP, это явно исследовательский +набор, а не нагрузка регистрации/Argon2. Схема и migration metadata +соответствуют приложению; исследовательский пользователь не используется +для входа. Данных других людей нет. + +Сравниваются chat_id-only и `(chat_id,created_at,id)`. На каждом варианте +VACUUM ANALYZE и прогрев; head/middle/tail каждой истории, LIMIT51, +EXPLAIN ANALYZE BUFFERS. Три повтора с порядком A/B, B/A, A/B; custom plans, +prepared statements в эксперименте отключены. Подготовительный OFFSET +применяется только для получения контрольной границы вне измеряемого +запроса; рабочая пагинация использует только keyset. + +| Индекс | SQL middle90k, мс | Буферы | Размер, bytes | INSERT+COMMIT1000, мс | WAL, bytes | +|---|---:|---:|---:|---:|---:| +| chat_id | 7.237 | 2209 | 729088 | 37.53 | 347536 | +| keyset | 0.017 | 5 | 5980160 | 11.55 | 427672 | + +Это медианы3; min/max и остальные размеры/позиции — +[query-summary.csv](evidence/query-summary.csv), полные планы — +[query-plan.json](evidence/query-plan.json). График построен из raw и проверен: + +![SQL планы](evidence/query-plans.png) + +Гипотеза чтения подтверждается. Цена — индекс примерно в8.2 раза больше +и больший WAL на запись. Рост именно времени INSERT **не подтвердился**: +в этом опыте keyset быстрее и на записи. Причину этого различия отдельный +профиль не устанавливал. WAL — глобальный PG-счётчик; фон и cache state +могут влиять. EXPLAIN execution time не называется HTTP latency или CPU time. + +Backup pg_dump -Fc: 3026259bytes,0.480с; pg_restore в новую БД:0.664с. +Сверены count всех6таблиц, SHA-256 всей истории и15полных сообщений. +После snapshot специально сделан ещё один SQL COMMIT: в источнике101111, +в восстановленной копии101110. Это демонстрация границы snapshot/RPO, +не измерение потери HTTP-подтверждений и не универсальный RTO сервиса. +Пик PG cgroup с момента старта контейнера266039296bytes (включает подготовку +и прочие проверки); это не RSS отдельного процесса и не пик только SELECT. + +```sh +uv run --locked python -m research.query_plan --output evidence/query-plan-repeat.json +uv run --locked python -m research.analyze evidence/query-plan-repeat.json +``` + +Запускать последовательно с проверками отказов. Сырые результаты не +перезаписываются; dump не публикуется и не содержит рабочих данных. + +## Вопросы защиты и ограничения + +1. **Что подтверждает COMMIT?** Транзакция завершена и видна следующим + запросам согласно isolation. Проверены fsync=on, synchronous_commit=on, + full_page_writes=on. WAL flush защищает штатный durability сценарий, + но не потерю единственного диска/VM/host и не заменяет backup. +2. **Где сессии и что даст flush cache?** Сессии в PG, в cache только User. + Flush/restart cache даёт miss, но токен остаётся действующим; logout + действует через PG независимо от TTL карточки. +3. **Auth против ACL?** Сессия определяет пользователя. Отдельная проверка + membership определяет доступ к чату; посторонний получает такой же404, + как отсутствующий ресурс. Успешный login сам по себе доступ не даёт. +4. **KDF и checksum?** Человеческий пароль имеет ограниченную энтропию, + поэтому нужен дорогой Argon2id с солью. Случайный256битный токен можно + индексировать быстрым SHA-256 digest; checksum backup решает проверку + целостности данных, а не защиту пароля. + +Один PG/cache/API на host — не HA. Нет TLS на внешнем маршруте, стенд +только loopback и синтетические данные. PG init-role владеет учебной БД +и имеет широкие права; production разделение SQL-ролей не заявляется. +Backup snapshot не сохраняет последующие сообщения/отзывы сессий; без +WAL-архива и recovery policy это неизбежное ограничение восстановления. +POST сообщения ЛР2 не идемпотентен: после неизвестного исхода COMMIT +автоматический retry может создать дубль; это задача ЛР3. + +## Источники и помощь + +README/COURSE/contracts/tests преподавателя; справочные методические наборы; +[PostgreSQL](https://www.postgresql.org/docs/18/), +[Psycopg](https://www.psycopg.org/psycopg3/docs/), +[Argon2](https://argon2-cffi.readthedocs.io/), +[Valkey](https://valkey.io/topics/), FastAPI/Pydantic/Uvicorn. +Поведение client timeout дополнительно сверено с установленным кодом +psycopg3.3.6 и реальной паузой PostgreSQL. +Помощь ИИ использована при разборе требований, реализации, тестах и отчёте; +измерения подтверждены сохранёнными запусками. diff --git a/evidence/clean-attempt1.txt b/evidence/clean-attempt1.txt new file mode 100644 index 00000000..36ca0845 --- /dev/null +++ b/evidence/clean-attempt1.txt @@ -0,0 +1,12 @@ +Source commit: 7466a09 +Status: INCOMPLETE, not a successful final clean-clone verification. + +The first isolated clone used PUBLIC_PORT=0 (automatic host port). +Bootstrap/build/static checks, smoke and HTTP tests completed before the +public persistence stage. After restart the public client kept its original +BASE_URL and could not recover within 90 seconds. Temporary project and +its volumes were removed by the cleanup handler. + +Diagnostic reproduction checks whether Docker reassigns an automatic host +port on restart. Final verification selects an available numeric host port +once, so its BASE_URL remains valid through the restart hook. diff --git a/evidence/port-restart.json b/evidence/port-restart.json new file mode 100644 index 00000000..9e981350 --- /dev/null +++ b/evidence/port-restart.json @@ -0,0 +1,10 @@ +{ + "date": "2026-11-07", + "scope": "own temporary API, same container before and after docker restart", + "requested_host_port": "automatic", + "before": 65424, + "after": 65441, + "port_changed": true, + "result": "CONFIRMED", + "fix": "Choose a free numeric host port once for the clean-clone Compose project. Keep BASE_URL stable through the public persistence hook." +} diff --git a/scripts/verify_clean.py b/scripts/verify_clean.py index 85165799..abfdbd44 100644 --- a/scripts/verify_clean.py +++ b/scripts/verify_clean.py @@ -1,6 +1,8 @@ import argparse +import atexit import json import os +import socket import subprocess import tempfile from datetime import UTC, datetime @@ -8,6 +10,31 @@ from pathlib import Path from uuid import uuid4 ROOT = Path(__file__).resolve().parents[1] +PROGRESS = {} + + +def save_incomplete(): + receipt = PROGRESS.get("receipt") + if receipt and receipt.get("result") != "PASS": + target = PROGRESS["output"].with_name( + PROGRESS["output"].stem + "-failed.json" + ) + if target.exists(): + target = target.with_name( + target.stem + "-" + uuid4().hex[:8] + target.suffix + ) + target.parent.mkdir(parents=True, exist_ok=True) + target.write_text( + json.dumps( + {**receipt, "result": "INCOMPLETE"}, + ensure_ascii=False, + indent=2, + ) + + "\n" + ) + + +atexit.register(save_incomplete) def run(args, *, cwd, env, expected=0): @@ -23,6 +50,8 @@ def run(args, *, cwd, env, expected=0): ) if result.returncode != expected: + if "receipt" in PROGRESS: + PROGRESS["receipt"]["failed_action"] = redact(" ".join(args)) raise RuntimeError(redact(result.stdout + result.stderr)) return redact(result.stdout.strip()) @@ -42,11 +71,14 @@ def main(): ).strip() identity = uuid4().hex[:10] project = "mtusi-lab2-clean-" + identity + with socket.socket() as reservation: + reservation.bind(("127.0.0.1", 0)) + public_port = str(reservation.getsockname()[1]) env = { **os.environ, "COMPOSE_PROJECT_NAME": project, "API_IMAGE": "mtusi-messenger:lab2-clean-" + identity, - "PUBLIC_PORT": "0", + "PUBLIC_PORT": public_port, "VCS_REF": sha, "NO_PROXY": "localhost,127.0.0.1", "no_proxy": "localhost,127.0.0.1", @@ -56,7 +88,9 @@ def main(): "source_commit": sha, "fresh_secrets_environment_and_volumes": True, "command": "python scripts/verify_clean.py", + "fixed_host_port_for_restart": int(public_port), } + PROGRESS.update(receipt=receipt, output=output) with tempfile.TemporaryDirectory(prefix="mtusi-lab2-clean-") as temporary: clone = Path(temporary) / "lab2" run( @@ -195,7 +229,7 @@ def main(): receipt["fsck"] = run( ["git", "fsck", "--full"], cwd=clone, env=env ) - receipt["result"] = "PASS" + receipt["checks_completed"] = True finally: assert project.startswith("mtusi-lab2-clean-") run( @@ -203,6 +237,7 @@ def main(): cwd=clone, env=env, ) + receipt["result"] = "PASS" output.parent.mkdir(parents=True, exist_ok=True) output.write_text(json.dumps(receipt, ensure_ascii=False, indent=2) + "\n") print(json.dumps(receipt, ensure_ascii=False, indent=2)) -- 2.54.0 From a38c889df245bf188645ffd35ab1e7343eafc552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 08:32:16 +0300 Subject: [PATCH 09/12] docs: finalize verified PostgreSQL lab and recovery evidence --- .github/pull_request_template.md | 32 +++++---- REPORT.md | 54 ++++++++++---- evidence/clean-clone.json | 117 +++++++++++++++++++++++++++++++ evidence/verification-notes.md | 4 +- 4 files changed, 176 insertions(+), 31 deletions(-) create mode 100644 evidence/clean-clone.json diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 8ceefa10..bcfb2859 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,18 +1,22 @@ ## Лабораторная 2 -Автор / группа: TODO -Целевая оценка (3/4/5): TODO -Трек 5, если заявлен: TODO +Автор / группа: Маслов / БВТ2301 +Целевая оценка (3/4/5): 5 +Трек 5: трек 2, планы запросов и восстановление -Что реализовано и что перенесено: TODO -Команды запуска из чистого clone: TODO -Результаты проверок и ссылка на REPORT.md: TODO -Ограничения / известные ошибки: TODO -Источники и использование ИИ: TODO +Перенесён собственный HTTP API ЛР1; добавлены PostgreSQL/SQL-миграции, +Argon2id, постоянные Bearer-сессии, Valkey cache, bounded pool/timeouts. +Запуск: uv sync --locked; make bootstrap; make up; make test test-student. +Проверки: [REPORT.md](../REPORT.md), evidence/clean-clone.json; +77 HTTP-тестов, реальные отказы/rollback, 101110 сообщений и backup/restore. +Ограничения: один host, без HA/TLS; snapshot не хранит поздние COMMIT. +Источники: контракт, PostgreSQL/Psycopg/Argon2/Valkey documentation. +Помощь ИИ использована при разборе требований, реализации и проверках; +результаты подтверждаются сохранёнными запусками. -- [ ] Весь обязательный минимум текущей и предыдущих работ сохранён с объявленными переходами. -- [ ] Контракт и публичные тесты не ослаблены. -- [ ] make check и make test выполнены; приложен реальный вывод. -- [ ] Сценарии отказов/безопасности своего уровня воспроизведены. -- [ ] Все секреты и приватные ключи находятся вне Git; отчёт не содержит tokens. -- [ ] README задания сохранён, REPORT.md содержит инструкцию именно моего решения. +- [x] Весь обязательный минимум текущей и предыдущих работ сохранён с объявленными переходами. +- [x] Контракт и публичные тесты не ослаблены. +- [x] make check и make test выполнены; приложен реальный вывод. +- [x] Сценарии отказов/безопасности своего уровня воспроизведены. +- [x] Все секреты и приватные ключи находятся вне Git; отчёт не содержит tokens. +- [x] README задания сохранён, REPORT.md содержит инструкцию именно моего решения. diff --git a/REPORT.md b/REPORT.md index 402b9607..7b5ee28f 100644 --- a/REPORT.md +++ b/REPORT.md @@ -8,7 +8,7 @@ Нужны Docker 25+ с BuildKit/Compose v2+, make, Git и uv 0.13.7. Python 3.14.7; FastAPI 0.143.3, Pydantic 2.14.1, Uvicorn 0.54.0, -psycopg 3.3.6, psycopg-pool 3.3.3, Argon2 25.1.0, redis client 8.1.0. +psycopg 3.3.6, psycopg-pool 3.3.3, argon2-cffi 25.1.0, redis client 8.1.0. Точные транзитивные версии — `uv.lock`. Базовые образы Python/uv, PostgreSQL 18.3 и Valkey 8.1.3 закреплены тегами и digest. @@ -28,7 +28,8 @@ uv run --locked python -m scripts.verify_pool --output evidence/pool-repeat.json API: `http://127.0.0.1:8082`. PostgreSQL/Valkey не публикуют host-порты. Для другого порта задать PUBLIC_PORT в окружении и передавать BASE_URL -проверкам. Все повторные evidence должны иметь новые имена файлов. +проверкам. Все повторные evidence должны иметь новые имена файлов; +для make доступны VERIFY_OUTPUT и RESEARCH_OUTPUT. `make down` останавливает стенд, сохраняя PostgreSQL volume. Его повторный запуск использует прежние данные и секреты. Намеренное удаление **только @@ -123,17 +124,40 @@ Authorization, паролей, токенов, их digest и параметро | API ЛР1 + новый auth | `make test`, `make test-student` | Smoke PASS, 77 passed; [http-tests.json](evidence/http-tests.json) | | Данные и прежний токен после restart всех stores | `make test-persistence`, `make verify` | [public-persistence.txt](evidence/public-persistence.txt), [lifecycle.json](evidence/lifecycle.json); CID/PID/StartedAt до/после | | PK/FK/UNIQUE и атомарный чат | migrations, регистрационная гонка, injected rollback | [001_core.sql](migrations/001_core.sql), [lifecycle.json](evidence/lifecycle.json); после сбоя строка чата отсутствует | -| Версионируемые миграции и bootstrap | `make verify`, clean clone | Повтор без изменений; секреты сохранены; checksum guard в финальной проверке | +| Версионируемые миграции и bootstrap | `make verify`, clean clone | Повтор без изменений, секреты сохранены, checksum mismatch отклонён; [clean-clone.json](evidence/clean-clone.json) | | Реальная роль Valkey | `make verify` | 20 cache hits, stop/flush не теряют данные/сессию | | Parameter binding, bounded pool и timeouts | `python -m scripts.verify_pool`, `make verify` | [pool.json](evidence/pool.json): pool1, ожидание 1.005 с →503; pause PG4.011 с →503 | | Индекс, EXPLAIN ≥10k | `make research` | 90 планов для 5 размеров чата; [query-plan.json](evidence/query-plan.json) | | Expiry, logout, неверный пароль, отказы | HTTP-тесты, lifecycle | TTL2s →401; stop cache →200; stop PG →503; logout →401 | | Трек2: ≥100k, индексы/запись/backup | research | 101110 сообщений, 2 индекса, 3 повтора, восстановление и сверка | -| Независимый clean clone | `python scripts/verify_clean.py` | Результат будет добавлен после фактического завершения | +| Независимый clean clone | `python scripts/verify_clean.py` | Полный PASS с новыми секретами/volumes, 77 passed; [clean-clone.json](evidence/clean-clone.json) | Первая проверка не утверждает наличие карточки в cache непосредственно перед PG fault без дополнительного EXISTS: [границы evidence](evidence/verification-notes.md). -Финальный вариант дополнительно проверяет это и неизменность expires_at. +Финальный вариант проверил это и неизменность expires_at. + +## Финальный чистый clone + +Проверен source commit `8e3e16a8a6ea07f6a2b8615045735f812299e3d1`. +Новые `.env`, секреты и volumes; pinned image build; check/validate/lint; +публичный smoke; **77 passed за 86 с**; public persistence; lifecycle, +pool и checksum guard — PASS. Повторно выполнено исследование: 101110 +сообщений, 90 EXPLAIN-планов, backup/restore snapshot совпал. +Хэши runtime-модулей совпали; image revision соответствует source commit. +Все временные containers/volumes этого clone удалены, рабочий volume сохранён. + +Первая попытка clean-clone проверки остановилась на persistence: Docker +сменил автоматически назначенный host-порт при restart, а тест сохранил +прежний BASE_URL. Смена подтверждена на том же контейнере (65424 → 65441). +Проверка исправлена выбирать свободный **фиксированный** номер порта один +раз; код API/сессий не менялся. Первая попытка не выдана за успешную: +[описание](evidence/clean-attempt1.txt), [диагностика](evidence/port-restart.json). +Итоговый полный повтор — [clean-clone.json](evidence/clean-clone.json). + +После проверенного source commit менялись только отчёт, шаблон и evidence; +runtime src, зависимости, Dockerfile и Compose остались теми же. +Добавлен отдельный application workflow для CI; наличие файла не означает +его запуска на Gitea. Публикация, fork/MR и удалённый CI пока не выполнялись. ## Исследование: методика и результаты @@ -149,7 +173,7 @@ SQL seed: 5 чатов 90000/10000/1000/100/10, всего101110 сообщен для входа. Данных других людей нет. Сравниваются chat_id-only и `(chat_id,created_at,id)`. На каждом варианте -VACUUM ANALYZE и прогрев; head/middle/tail каждой истории, LIMIT51, +VACUUM ANALYZE и прогрев; head/middle/tail каждой истории, LIMIT 51, EXPLAIN ANALYZE BUFFERS. Три повтора с порядком A/B, B/A, A/B; custom plans, prepared statements в эксперименте отключены. Подготовительный OFFSET применяется только для получения контрольной границы вне измеряемого @@ -160,24 +184,24 @@ prepared statements в эксперименте отключены. Подгот | chat_id | 7.237 | 2209 | 729088 | 37.53 | 347536 | | keyset | 0.017 | 5 | 5980160 | 11.55 | 427672 | -Это медианы3; min/max и остальные размеры/позиции — +Это медианы трёх повторов; min/max и остальные размеры/позиции — [query-summary.csv](evidence/query-summary.csv), полные планы — [query-plan.json](evidence/query-plan.json). График построен из raw и проверен: ![SQL планы](evidence/query-plans.png) -Гипотеза чтения подтверждается. Цена — индекс примерно в8.2 раза больше +Гипотеза чтения подтверждается. Цена — индекс примерно в 8.2 раза больше и больший WAL на запись. Рост именно времени INSERT **не подтвердился**: в этом опыте keyset быстрее и на записи. Причину этого различия отдельный профиль не устанавливал. WAL — глобальный PG-счётчик; фон и cache state могут влиять. EXPLAIN execution time не называется HTTP latency или CPU time. -Backup pg_dump -Fc: 3026259bytes,0.480с; pg_restore в новую БД:0.664с. -Сверены count всех6таблиц, SHA-256 всей истории и15полных сообщений. -После snapshot специально сделан ещё один SQL COMMIT: в источнике101111, -в восстановленной копии101110. Это демонстрация границы snapshot/RPO, +Backup pg_dump -Fc: 3026259 bytes, 0.480 с; restore в новую БД: 0.664 с. +Сверены count всех 6 таблиц, SHA-256 всей истории и 15 полных сообщений. +После snapshot специально сделан ещё один SQL COMMIT: в источнике 101111, +в восстановленной копии 101110. Это демонстрация границы snapshot/RPO, не измерение потери HTTP-подтверждений и не универсальный RTO сервиса. -Пик PG cgroup с момента старта контейнера266039296bytes (включает подготовку +Пик PG cgroup с момента старта контейнера 266039296 bytes (включает подготовку и прочие проверки); это не RSS отдельного процесса и не пик только SELECT. ```sh @@ -198,10 +222,10 @@ uv run --locked python -m research.analyze evidence/query-plan-repeat.json Flush/restart cache даёт miss, но токен остаётся действующим; logout действует через PG независимо от TTL карточки. 3. **Auth против ACL?** Сессия определяет пользователя. Отдельная проверка - membership определяет доступ к чату; посторонний получает такой же404, + membership определяет доступ к чату; посторонний получает такой же 404, как отсутствующий ресурс. Успешный login сам по себе доступ не даёт. 4. **KDF и checksum?** Человеческий пароль имеет ограниченную энтропию, - поэтому нужен дорогой Argon2id с солью. Случайный256битный токен можно + поэтому нужен дорогой Argon2id с солью. Случайный 256-битный токен можно индексировать быстрым SHA-256 digest; checksum backup решает проверку целостности данных, а не защиту пароля. diff --git a/evidence/clean-clone.json b/evidence/clean-clone.json new file mode 100644 index 00000000..4fd43f59 --- /dev/null +++ b/evidence/clean-clone.json @@ -0,0 +1,117 @@ +{ + "date": "2026-11-07T05:26:38.162144+00:00", + "source_commit": "8e3e16a8a6ea07f6a2b8615045735f812299e3d1", + "fresh_secrets_environment_and_volumes": true, + "command": "python scripts/verify_clean.py", + "fixed_host_port_for_restart": 49287, + "static_checks": ".venv/bin/python scripts/check_contract.py\nPASS: offline skeleton structure, local refs and Python syntax; application NOT tested.\n.venv/bin/python scripts/validate_openapi.py\nPASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.\n/.local/bin/uv run --locked ruff format src student-tests research scripts/bootstrap.py scripts/stand.py scripts/verify_*.py\n26 files left unchanged\n/.local/bin/uv run --locked ruff check src student-tests research scripts/bootstrap.py scripts/stand.py scripts/verify_*.py\nAll checks passed!", + "internal_store_ports_not_published": true, + "smoke": "python3 tests/smoke.py --base-url \"http://127.0.0.1:49287\" \nPASS: lab2 public API scenario; infrastructure and grading evidence remain separate.", + "http_tests": "........................................................................ [ 93%]\n..... [100%]\n77 passed in 86.00s (0:01:25)", + "public_persistence": "python3 tests/resilience.py --mode persistence --action-script \"scripts/restart.sh\" --base-url \"http://127.0.0.1:49287\" \nExecuting explicit persistence hook; hook output suppressed to avoid leaking secrets.\nPASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.", + "verify_lifecycle": { + "date": "2026-11-07T05:28:29.159541+00:00", + "commit": "8e3e16a8a6ea07f6a2b8615045735f812299e3d1", + "command": "python -m scripts.verify_lifecycle", + "runtime_source_hashes_match": true, + "image_revision": "8e3e16a8a6ea07f6a2b8615045735f812299e3d1", + "persistence": { + "absolute_expiry_unchanged": true, + "same_token": true, + "same_message": true, + "before": { + "api": { + "container": "4cc53c6190ac", + "pid": 89123, + "started_at": "2026-11-07T05:28:24.620912381Z" + }, + "postgres": { + "container": "910b02e40597", + "pid": 88965, + "started_at": "2026-11-07T05:28:24.260037964Z" + }, + "cache": { + "container": "d47529714a4a", + "pid": 88983, + "started_at": "2026-11-07T05:28:24.279300006Z" + } + }, + "after": { + "api": { + "container": "4cc53c6190ac", + "pid": 89990, + "started_at": "2026-11-07T05:28:30.971012968Z" + }, + "postgres": { + "container": "910b02e40597", + "pid": 89812, + "started_at": "2026-11-07T05:28:30.640581301Z" + }, + "cache": { + "container": "d47529714a4a", + "pid": 89865, + "started_at": "2026-11-07T05:28:30.700865926Z" + } + }, + "seconds": 5.304535000002943 + }, + "migration_repeat": "PASS", + "bootstrap_preserves_secrets": true, + "credential_storage": { + "argon2id": true, + "digest_bytes": 32, + "raw_password_and_token_absent_in_dump": true + }, + "cache_hits": 20, + "cache_stopped": { + "status": 200, + "seconds": 0.013735125001403503 + }, + "cache_flush_preserves_truth": true, + "postgres_pause": { + "cache_card_present_before_failure": true, + "status": 503, + "seconds": 4.019069417001447, + "cached_identity_not_trusted": true + }, + "postgres_stop": { + "cache_card_present_before_failure": true, + "status": 503, + "seconds": 0.005429041993920691, + "cached_identity_not_trusted": true + }, + "chat_transaction_rollback": { + "injected_failure_status": 500, + "remaining_chat_rows": 0 + }, + "expiry": { + "ttl_seconds": 2, + "status_after_expiry": 401 + }, + "logout_after_cache_hit": "PASS", + "result": "PASS" + }, + "verify_pool": { + "date": "2026-11-07T05:29:04.541663+00:00", + "commit": "8e3e16a8a6ea07f6a2b8615045735f812299e3d1", + "command": "python -m scripts.verify_pool", + "pool_size": 1, + "blocked_insert_observed_in_pg_stat_activity": true, + "pool_wait_seconds": 1.0053121249948163, + "pool_timeout_status": 503, + "statement_timeout_status": 503, + "failed_write_rolled_back": true, + "write_after_recovery": 201, + "result": "PASS" + }, + "applied_migration_checksum_guard": "PASS", + "research_repeated": { + "result": "PASS", + "messages": 101110, + "plans": 90, + "restored_snapshot_equal": true + }, + "fsck": "", + "checks_completed": true, + "result": "PASS" +} diff --git a/evidence/verification-notes.md b/evidence/verification-notes.md index f69db34b..ae752667 100644 --- a/evidence/verification-notes.md +++ b/evidence/verification-notes.md @@ -9,5 +9,5 @@ expiry/logout, cache hits и bounded 503 при остановке/паузе Po Финальный скрипт усилен: ждёт окончания backoff, проверяет EXISTS карточки перед каждым воздействием на PG и сравнивает абсолютный expires_at до/после -restart. Этот вариант повторяется в финальном чистом clone; результат -будет в clean-clone.json. Runtime API при этом не менялся. +restart. Этот вариант успешно повторён в финальном чистом clone; результат +в clean-clone.json. Runtime API при этом не менялся. -- 2.54.0 From 5e7c93a0362e667551c8807a674fe04927b20e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 08:46:57 +0300 Subject: [PATCH 10/12] Enforce UTF-8 JSON and accept decimal limits with leading zeros --- evidence/pre-pr-regressions.json | 10 ++++++++++ src/api.py | 7 +++++-- student-tests/test_contract_edges.py | 26 ++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 evidence/pre-pr-regressions.json create mode 100644 student-tests/test_contract_edges.py diff --git a/evidence/pre-pr-regressions.json b/evidence/pre-pr-regressions.json new file mode 100644 index 00000000..229ac174 --- /dev/null +++ b/evidence/pre-pr-regressions.json @@ -0,0 +1,10 @@ +{ + "result": "EXPECTED_FAILURE_BEFORE_FIX", + "checks": { + "utf16_json": "201, expected 400", + "utf32_json": "201, expected 400", + "leading_zero_limit": "400, expected 200" + }, + "command": "BASE_URL= .venv/bin/python -m pytest student-tests/test_contract_edges.py -q", + "old_revision": "2f0a8672be67af9e62d2693c3df9bd683fcdae57" +} diff --git a/src/api.py b/src/api.py index 04b002ff..b26018ab 100644 --- a/src/api.py +++ b/src/api.py @@ -42,7 +42,7 @@ async def body(request: Request, model: type[Input]) -> Input: data = await request.body() return model.model_validate( json.loads( - data, + data.decode("utf-8"), parse_constant=lambda _: (_ for _ in ()).throw(ValueError()), ) ) @@ -56,7 +56,10 @@ def pagination(request: Request) -> tuple[int, str | None]: if len(limits) > 1 or len(cursors) > 1: raise invalid() raw = limits[0] if limits else "50" - if not raw.isascii() or not raw.isdecimal() or len(raw) > 3: + if not raw.isascii() or not raw.isdecimal(): + raise invalid() + raw = raw.lstrip("0") or "0" + if len(raw) > 3: raise invalid() limit = int(raw) if not 1 <= limit <= 100: diff --git a/student-tests/test_contract_edges.py b/student-tests/test_contract_edges.py new file mode 100644 index 00000000..81d39edf --- /dev/null +++ b/student-tests/test_contract_edges.py @@ -0,0 +1,26 @@ +import json +from uuid import uuid4 + +import pytest +from conftest import check, headers + + +@pytest.mark.parametrize("encoding", ["utf-16", "utf-32"]) +def test_only_utf8_json(client, encoding): + payload = {"username": "u_" + uuid4().hex[:20], "display_name": "UTF"} + payload["password"] = "Synthetic-encoding-test-123" + result = client.post( + "/api/v1/users", + content=json.dumps(payload).encode(encoding), + headers={"Content-Type": "application/json"}, + ) + check(result, 400, "Error") + + +def test_leading_zero_limit(client, actors, chat): + result = client.get( + "/api/v1/chats/" + chat["id"] + "/messages", + headers=headers(actors[0]), + params={"limit": "0001"}, + ) + check(result, 200, "MessagePage") -- 2.54.0 From e2532247cc770f06f194fc564ec281bc27f82030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 08:51:38 +0300 Subject: [PATCH 11/12] Record 80 HTTP tests and complete pre-submission verification --- .github/pull_request_template.md | 2 +- REPORT.md | 27 +++++-- evidence/clean-clone-pre-pr.json | 117 +++++++++++++++++++++++++++++++ 3 files changed, 140 insertions(+), 6 deletions(-) create mode 100644 evidence/clean-clone-pre-pr.json diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index bcfb2859..34194881 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -8,7 +8,7 @@ Argon2id, постоянные Bearer-сессии, Valkey cache, bounded pool/timeouts. Запуск: uv sync --locked; make bootstrap; make up; make test test-student. Проверки: [REPORT.md](../REPORT.md), evidence/clean-clone.json; -77 HTTP-тестов, реальные отказы/rollback, 101110 сообщений и backup/restore. +80 HTTP-тестов, реальные отказы/rollback, 101110 сообщений и backup/restore. Ограничения: один host, без HA/TLS; snapshot не хранит поздние COMMIT. Источники: контракт, PostgreSQL/Psycopg/Argon2/Valkey documentation. Помощь ИИ использована при разборе требований, реализации и проверках; diff --git a/REPORT.md b/REPORT.md index 7b5ee28f..e7eeb95c 100644 --- a/REPORT.md +++ b/REPORT.md @@ -121,7 +121,7 @@ Authorization, паролей, токенов, их digest и параметро | Критерий README | Команда | Факт / evidence | |---|---|---| -| API ЛР1 + новый auth | `make test`, `make test-student` | Smoke PASS, 77 passed; [http-tests.json](evidence/http-tests.json) | +| API ЛР1 + новый auth | `make test`, `make test-student` | Smoke PASS, 80 passed; [clean-clone-pre-pr.json](evidence/clean-clone-pre-pr.json) | | Данные и прежний токен после restart всех stores | `make test-persistence`, `make verify` | [public-persistence.txt](evidence/public-persistence.txt), [lifecycle.json](evidence/lifecycle.json); CID/PID/StartedAt до/после | | PK/FK/UNIQUE и атомарный чат | migrations, регистрационная гонка, injected rollback | [001_core.sql](migrations/001_core.sql), [lifecycle.json](evidence/lifecycle.json); после сбоя строка чата отсутствует | | Версионируемые миграции и bootstrap | `make verify`, clean clone | Повтор без изменений, секреты сохранены, checksum mismatch отклонён; [clean-clone.json](evidence/clean-clone.json) | @@ -130,7 +130,7 @@ Authorization, паролей, токенов, их digest и параметро | Индекс, EXPLAIN ≥10k | `make research` | 90 планов для 5 размеров чата; [query-plan.json](evidence/query-plan.json) | | Expiry, logout, неверный пароль, отказы | HTTP-тесты, lifecycle | TTL2s →401; stop cache →200; stop PG →503; logout →401 | | Трек2: ≥100k, индексы/запись/backup | research | 101110 сообщений, 2 индекса, 3 повтора, восстановление и сверка | -| Независимый clean clone | `python scripts/verify_clean.py` | Полный PASS с новыми секретами/volumes, 77 passed; [clean-clone.json](evidence/clean-clone.json) | +| Независимый clean clone | `python scripts/verify_clean.py` | Полный PASS с новыми секретами/volumes, 80 passed; [clean-clone-pre-pr.json](evidence/clean-clone-pre-pr.json) | Первая проверка не утверждает наличие карточки в cache непосредственно перед PG fault без дополнительного EXISTS: [границы evidence](evidence/verification-notes.md). @@ -138,9 +138,10 @@ Authorization, паролей, токенов, их digest и параметро ## Финальный чистый clone -Проверен source commit `8e3e16a8a6ea07f6a2b8615045735f812299e3d1`. +Последняя проверка перед PR: source commit +`5e7c93a0362e667551c8807a674fe04927b20e53`. Новые `.env`, секреты и volumes; pinned image build; check/validate/lint; -публичный smoke; **77 passed за 86 с**; public persistence; lifecycle, +публичный smoke; **80 passed за 93.23 с**; public persistence; lifecycle, pool и checksum guard — PASS. Повторно выполнено исследование: 101110 сообщений, 90 EXPLAIN-планов, backup/restore snapshot совпал. Хэши runtime-модулей совпали; image revision соответствует source commit. @@ -152,13 +153,29 @@ pool и checksum guard — PASS. Повторно выполнено иссле Проверка исправлена выбирать свободный **фиксированный** номер порта один раз; код API/сессий не менялся. Первая попытка не выдана за успешную: [описание](evidence/clean-attempt1.txt), [диагностика](evidence/port-restart.json). -Итоговый полный повтор — [clean-clone.json](evidence/clean-clone.json). +Прежний полный повтор — [clean-clone.json](evidence/clean-clone.json). +Последний повтор перед PR — +[clean-clone-pre-pr.json](evidence/clean-clone-pre-pr.json). После проверенного source commit менялись только отчёт, шаблон и evidence; runtime src, зависимости, Dockerfile и Compose остались теми же. Добавлен отдельный application workflow для CI; наличие файла не означает его запуска на Gitea. Публикация, fork/MR и удалённый CI пока не выполнялись. +Повторная сверка выполнена по текущим README, COURSE, contracts/tests +и handoff от 30.10.2026. Все уровни 3/4 и выбранный трек 2 покрыты +таблицей доказательств. Исходные задание, контракт и публичные тесты +сохранены. Исправлены два пограничных дефекта: JSON принимается только +в UTF-8, десятичный `limit=0001` допустим. Три регрессионных теста сначала +упали на прежнем образе, затем прошли в новом чистом clone: +[исходные отказы](evidence/pre-pr-regressions.json). +При повторе также проверены неизменность абсолютного срока сессии, +наличие User в cache перед каждым отказом PG (503 за 4.044/0.011 с), +pool timeout 1.006 с, rollback, checksum миграции и backup/restore. +Исследовательские числа ниже относятся к исходному сохранённому +query-plan.json; новый clean clone независимо повторил методику и сверку, +но его timings не подставлялись в старые таблицы. + ## Исследование: методика и результаты Гипотеза в PLAN закоммичена до замера. Стенд: Apple M1, 8 CPU, 8 GiB RAM, diff --git a/evidence/clean-clone-pre-pr.json b/evidence/clean-clone-pre-pr.json new file mode 100644 index 00000000..db82b877 --- /dev/null +++ b/evidence/clean-clone-pre-pr.json @@ -0,0 +1,117 @@ +{ + "date": "2026-11-07T05:47:11.012617+00:00", + "source_commit": "5e7c93a0362e667551c8807a674fe04927b20e53", + "fresh_secrets_environment_and_volumes": true, + "command": "python scripts/verify_clean.py", + "fixed_host_port_for_restart": 51761, + "static_checks": ".venv/bin/python scripts/check_contract.py\nPASS: offline skeleton structure, local refs and Python syntax; application NOT tested.\n.venv/bin/python scripts/validate_openapi.py\nPASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.\nuv run --locked ruff format src student-tests research scripts/bootstrap.py scripts/stand.py scripts/verify_*.py\n27 files left unchanged\nuv run --locked ruff check src student-tests research scripts/bootstrap.py scripts/stand.py scripts/verify_*.py\nAll checks passed!", + "internal_store_ports_not_published": true, + "smoke": "python3 tests/smoke.py --base-url \"http://127.0.0.1:51761\" \nPASS: lab2 public API scenario; infrastructure and grading evidence remain separate.", + "http_tests": "........................................................................ [ 90%]\n........ [100%]\n80 passed in 93.23s (0:01:33)", + "public_persistence": "python3 tests/resilience.py --mode persistence --action-script \"scripts/restart.sh\" --base-url \"http://127.0.0.1:51761\" \nExecuting explicit persistence hook; hook output suppressed to avoid leaking secrets.\nPASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.", + "verify_lifecycle": { + "date": "2026-11-07T05:49:09.842951+00:00", + "commit": "5e7c93a0362e667551c8807a674fe04927b20e53", + "command": "python -m scripts.verify_lifecycle", + "runtime_source_hashes_match": true, + "image_revision": "5e7c93a0362e667551c8807a674fe04927b20e53", + "persistence": { + "absolute_expiry_unchanged": true, + "same_token": true, + "same_message": true, + "before": { + "api": { + "container": "52efca283e03", + "pid": 32752, + "started_at": "2026-11-07T05:49:05.222283053Z" + }, + "postgres": { + "container": "4a8a9b88ac4b", + "pid": 32547, + "started_at": "2026-11-07T05:49:04.838047886Z" + }, + "cache": { + "container": "590272a808de", + "pid": 32569, + "started_at": "2026-11-07T05:49:04.863209469Z" + } + }, + "after": { + "api": { + "container": "52efca283e03", + "pid": 33639, + "started_at": "2026-11-07T05:49:11.700302333Z" + }, + "postgres": { + "container": "4a8a9b88ac4b", + "pid": 33460, + "started_at": "2026-11-07T05:49:11.381633375Z" + }, + "cache": { + "container": "590272a808de", + "pid": 33501, + "started_at": "2026-11-07T05:49:11.40642775Z" + } + }, + "seconds": 5.98190225000144 + }, + "migration_repeat": "PASS", + "bootstrap_preserves_secrets": true, + "credential_storage": { + "argon2id": true, + "digest_bytes": 32, + "raw_password_and_token_absent_in_dump": true + }, + "cache_hits": 20, + "cache_stopped": { + "status": 200, + "seconds": 0.07452341700263787 + }, + "cache_flush_preserves_truth": true, + "postgres_pause": { + "cache_card_present_before_failure": true, + "status": 503, + "seconds": 4.043605250000837, + "cached_identity_not_trusted": true + }, + "postgres_stop": { + "cache_card_present_before_failure": true, + "status": 503, + "seconds": 0.01112437499978114, + "cached_identity_not_trusted": true + }, + "chat_transaction_rollback": { + "injected_failure_status": 500, + "remaining_chat_rows": 0 + }, + "expiry": { + "ttl_seconds": 2, + "status_after_expiry": 401 + }, + "logout_after_cache_hit": "PASS", + "result": "PASS" + }, + "verify_pool": { + "date": "2026-11-07T05:49:46.535430+00:00", + "commit": "5e7c93a0362e667551c8807a674fe04927b20e53", + "command": "python -m scripts.verify_pool", + "pool_size": 1, + "blocked_insert_observed_in_pg_stat_activity": true, + "pool_wait_seconds": 1.005813499999931, + "pool_timeout_status": 503, + "statement_timeout_status": 503, + "failed_write_rolled_back": true, + "write_after_recovery": 201, + "result": "PASS" + }, + "applied_migration_checksum_guard": "PASS", + "research_repeated": { + "result": "PASS", + "messages": 101110, + "plans": 90, + "restored_snapshot_equal": true + }, + "fsck": "", + "checks_completed": true, + "result": "PASS" +} -- 2.54.0 From 1a50a21226abf63a2155f5a765b2bed542acb178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 09:12:59 +0300 Subject: [PATCH 12/12] docs: link submitted pull request --- REPORT.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/REPORT.md b/REPORT.md index e7eeb95c..96bfb976 100644 --- a/REPORT.md +++ b/REPORT.md @@ -160,7 +160,10 @@ pool и checksum guard — PASS. Повторно выполнено иссле После проверенного source commit менялись только отчёт, шаблон и evidence; runtime src, зависимости, Dockerfile и Compose остались теми же. Добавлен отдельный application workflow для CI; наличие файла не означает -его запуска на Gitea. Публикация, fork/MR и удалённый CI пока не выполнялись. +его запуска на Gitea. Удалённый CI не заявляется. +Опубликован публичный fork `wh1tet3a/mtusi2026lab2`, ветка +`solution/bvt2301-maslov` → `mtusi2026/mtusi2026lab2:master`. +[PR №158: ЛР 2 — БВТ2301 — Маслов — на 5](https://gitea.privcloud.tech/mtusi2026/mtusi2026lab2/pulls/158). Повторная сверка выполнена по текущим README, COURSE, contracts/tests и handoff от 30.10.2026. Все уровни 3/4 и выбранный трек 2 покрыты -- 2.54.0