Repository navigation
Conversation
Co-authored-by: wolverin0 <135726830+wolverin0@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
AUDITORÍA DE LATENCIA Y COSTO DEL CAMINO CALIENTE (MEMORYMASTER | BOLT)
Fecha UTC: 2026-10-25 06:22:47 UTC
HEAD exacto:
cc297249b928d1a7ff45139e36ac42557b153563Rango revisado:
cc297249b928d1a7ff45139e36ac42557b153563(merge PR #301 en las últimas 72 horas).Informe previo: No se encontró informe previo firmado por este revisor (Bolt) en el árbol.
Tabla de Áreas Revisadas
recall/(context_hook,dense_recall,hook_policy,remote)context_hook.recallresponde en ~64 ms (p95 ~76 ms). Límite estricto<= 2claims inyectados (DEFAULT_MAX_CLAIMS=2). Inyección acotada y deduplicada por sesión.recallenpublic/v1.pyWHERE claim_id IN (...)). Sin N+1 en Python.surfaces/mcp_server.pyymcp_http.py_limit_native_threads()limita hilos BLAS a 1. Precarga perezosa de ML.config_templates/hooks/memorymaster-recall.pyis_trivial_prompt) en ~0.0035 ms. Fallback seguro por timeout (remote_recall< 1.5 s).OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,MKL_NUM_THREADS) fijados en 1. Carga desentence-transformersperezosa y aislada.Resumen de Hallazgos
SIN HALLAZGOS NUEVOS
Todas las invariantes de latencia, presupuesto de inyección por prompt y aislamiento de arranque se cumplen estrictamente:
context_hook.recallregistró una mediana de 64.02 ms y p95 de 75.96 ms, dentro del presupuesto de timeout (1.5 s). Si la llamada remota a MCP falla o agota el tiempo de espera, devalúa de forma segura a omitir la inyección sin bloquear el cliente.hook_policy.max_claims() == 2) y deduplicada por id de sesión (hook_policy.seen_ids). Prompts triviales o de asentamiento se omiten de inmediato en ~0.0035 ms.SELECTparametrizadas por llamada, agrupando citas mediante cláusulasIN (...). Las consultas adicionales registradas por SQLite corresponden al motor C de la extensión FTS5 calculando metadatos BM25 declaims_fts_docsize, sin bucles N+1 en código de aplicación.mcp_server.pyymcp_http.pyno importantorchnisentence-transformersen la ruta común de nivel superior.Pruebas Ejecutadas
poetry run pytest): 32 pruebas pasadas (tests/test_public_demo.py,tests/test_context_hook.py,tests/test_ro_recall.py).poetry run ruff check): 100% pasado sin advertencias ni errores.context_hook.recall: Mediana = 64.02 ms, P95 = 75.96 ms, Claims Inyectados = 0..2 (PASS <= 2).public.v1.recall: Mediana = 572.44 ms, P95 = 589.38 ms.is_trivial_prompt: 0.0035 ms (omite consulta SQL).Siguiente revision: base sugerida cc29724
PR created automatically by Jules for task 13735683825040192407 started by @wolverin0