perf(hooks): pre-filtros baratos + baseline (peaje ~28→~7 subprocesos/comando) - #313
Merged
Conversation
… baseline Modelo de capas al nivel del hook: un filtro determinista en-proceso (case) que early-exit en el camino comun ANTES de gastar sed/tr/grep. Conservador (nunca salta un caso real); hooks ADVISORY. Camino comun ~9->3ms y ~5->3ms. Peaje total ~28->16ms. test-brain 696 PASS. Doc: docs/perf-baseline-hooks-2026-08.md documenta la medicion y la conclusion honesta: los hooks del cortex NO son el cuello (juez ya es direct-API+Haiku+capas); el downtime real vive en el loop/contexto del modelo -> territorio axon. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…oize 4 guards de seguridad (OK EXPLICITO de unjordi): git-branch-guard, secret-scan, merge-squash-guard, confirmar-merge-develop. Patron superset (case sobre cmd crudo, ANTES de source-lib/juez): ~30->~7 subprocesos/comando, cobertura EXACTA. Mismo patron (mandato general): rama-vieja, entorno-maquina-guard, recordar-dashboard (advisory) + detectar-secretos (memoiza funciones puras). test-brain 696 PASS. El backstop auto-mode marco la auto-mod -> unjordi dio OK y corrio este commit el mismo. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
unjordi
added a commit
that referenced
this pull request
Aug 22, 2026
release: develop → main (des-branding claude-brain→cortex + perf #313 de hooks + 35 commits)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Optimización de performance de los hooks del cerebro, MEDIDA (no adivinada).
Hallazgo
Los hooks NO son el cuello del downtime (~28ms/comando, ruido vs inferencia). El juez de merge YA usa curl directo + Haiku + capas. Doc: docs/perf-baseline-hooks-2026-08.md.
Cambios (todos SUPERSET conservador, cobertura EXACTA preservada, test-brain 696 PASS)
Peaje del camino comun ~28->~7 subprocesos/comando. El backstop auto-mode marco la auto-mod de guards; se escalo y unjordi dio OK explicito.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com