honcho/docs/v2
Vineeth Voruganti 07c79e20e3 fix(db): lazy retrying session + review fixes for connection backoff
Address Codex/CodeRabbit review on PR #758.

- Replace eager checkout with HonchoAsyncSession: a lazy AsyncSession that
  checks out its connection (with retry) on the first DB-touching call, not at
  construction. Request handlers doing non-DB work (embedding/file/LLM) before
  their first query no longer pin a connection across it, while the API path
  still gets checkout retry. Only the checkout is retried — the statement runs
  once via super(), so writes are never duplicated. Tracing's set_config moves
  into the same lazy acquire hook.
- Roll the session back on a retryable checkout failure before retrying, so a
  failed autobegin can't leave it pending-rollback.
- Lower default POOL_TIMEOUT to 5s and validate it stays under the retry budget
  for pooled (non-null) POOL_CLASS; update config.toml.example and v2/v3 docs.
- Clamp pool overflow gauge to >= 0 (was negative before the pool fills).
- Remove double-sleep in the deriver idle poll (true backoff cap, not 2x);
  make in-flight instrumentation registration idempotent.
- Tests: HonchoAsyncSession lazy/idempotent acquire, statement-runs-once,
  tracing, commit/rollback flag reset, get_db no-acquire-at-entry, polling-loop
  single-sleep, and the POOL_TIMEOUT/retry-budget validator.
2026-06-01 01:12:35 -04:00
..
api-reference Resolve SDK Inconsistencies and Add Observation Creation Endpoints (#288) 2025-12-04 15:24:45 -05:00
contributing fix(db): lazy retrying session + review fixes for connection backoff 2026-06-01 01:12:35 -04:00
documentation Kass/readme refresh (#681) 2026-05-14 13:15:37 -04:00
guides Adding granola integration (#417) 2026-03-18 13:08:20 -04:00
integrations Kass/readme refresh (#681) 2026-05-14 13:15:37 -04:00
migrations Mem0 -> Honcho migration (#281) 2025-12-05 11:53:54 -05:00
README.md Add Pre-commit Hooks (#165) 2025-07-22 15:17:53 -04:00
openapi.json fix message id range validation error (#300) 2025-12-16 11:13:01 -05:00

README.md

This subdirectory contains the peer-paradigm documentation for Honcho (Honcho v2.0.0 onwards).