-
v0.1.0-dev.39
Pre-releaseSome checks failedCode Architecture / inventory (push) Has been skippedCode Architecture / mermaid-comment (push) Has been skippedCode Architecture / review (push) Has been skippedCode Architecture / comment (push) Has been skippedCorn CI / release-check-1 (push) Successful in 2sCorn CI / release-check (push) Successful in 0sCorn Release / release-1 (push) Successful in 4sCorn Release / release (push) Successful in 0sCorn CI / test (push) Successful in 2m46sCorn CI / release (push) Failing after 15sCode Architecture / review-1 (push) Successful in 3m42sCode Architecture / analyze (push) Successful in 0sreleased this
2026-11-23 05:30:56 +00:00 | 68 commits to main since this releasev0.1.0-dev.39 — Read-only per-request auth resolution and throttled
last_seen_at(pre-release)Cached
tools/liststill took ~200 ms p50 across Corn's three replicas
because FastMCP'sAuthMiddlewareinvokedIdentityService.resolve()once per
listed tool, and every call unconditionally opened a second SQLite session to
updateusers.last_seen_atand commit. With ~60 tools across Corn and Coder,
onetools/listran 360 SQLite statements (240SELECT, 120UPDATEcommits)
synchronously on the event loop.IdentityService.resolve()now keeps the read-only fast path when an enabled
user's profile claims match andlast_seen_atwas updated within the last
5 minutes (last_seen_interval_seconds=300). Profile claim changes and new
users still persist immediately.ToolTimingMiddleware.on_requestscopes an in-memory per-request identity
cache (identity_request_cache()), soAuthMiddleware's per-tool checks and
UserScopedMcpProxy's user-id checks reuse the first resolution for that
request instead of repeating SQLite queries.- MCP auth checks (
_authenticated,_current_user_id,corn_whoami) and
UserScopedMcpProxy.is_connectedrun SQLite/crypto lookups off the asyncio
event loop viaasyncio.to_thread().
Local measurement (60-tool
FastMCP+AuthMiddleware+ToolTimingMiddleware):
oneClient.list_tools()drops from 360 SQLite ops (including 120 commits) to
1 read-onlySELECT(~24 ms → ~0.5 ms middleware time).No API, database schema, or deployment-file changes.
Source commit
b47a845076d795be03f137f80bae00ce0bda0f33.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads