Skip to main content
LOOKADEV
Free diagnosis

Answer a few questions and see your main bottleneck.

Operational Audit (48h)

Paid review with a costed plan. £600, credited on your Sprint.

Sprint (7 business days)

One priority. Agreed scope and price.

AI & automation

Connect your CRM, tools and everyday tasks.

AI agents

Agents that answer, qualify leads and report.

Websites & conversion

A clear path from first visit to first conversation.

Web development

Custom applications built with Next.js.

Agency partnerships

Software delivery under your agency's brand.

Developer tools & prompts

Prompts and tools from the development workflow.

CASESMETHODBRISTOLINSIGHTSCONTACT
|
Free diagnosis
← Back to Devlog
// AI Engineering

Decoupled Cognitive Triage: Why You Shouldn't Send Every Request to Gemini 3.8 Flash

01 Oct 2026Read: 3 minUpdated: 10 Oct 2026[32_decoupled-cognitive-triage-jev-vs-gemini.log]
// KEY TAKEAWAYS

In autonomous production architectures, routing every inbound event directly to a frontier reasoning model like Google Gemini 3.8 Flash is an expensive architectural trap. While Gemini 3.8 Flash excels at multi-step reasoning, it imposes a 16-second median latency tax (p50 = 16,240 ms) and an inference cost of $27.19 per 1,000 requests. For live conversational bridges, webhooks, or event loops, this latency destroys user experience and budget.

In autonomous production architectures, routing every inbound event directly to a frontier reasoning model like Google Gemini 3.8 Flash is an expensive architectural trap. While Gemini 3.8 Flash excels at multi-step reasoning, it imposes a 16-second median latency tax (p50 = 16,240 ms) and an inference cost of $27.19 per 1,000 requests. For live conversational bridges, webhooks, or event loops, this latency destroys user experience and budget.

Drawing upon Dual-Process Theory from cognitive science (Kahneman, 2011), human cognition uses fast, calibrated heuristics (System 1) for rapid pattern matching, reserving effortful deliberation (System 2) strictly for high-stakes or ambiguous edge cases. We applied this exact paradigm to LookADev's orchestration pipeline by deploying TypeSafe System 1 (Jev) as a fast semantic triage gate ahead of Gemini 3.8 Flash.

1. The 1,200-Transaction Controlled Benchmark

To validate this architecture empirically without hallucination, we tested 1,200 frozen benchmark business transactions across 7 categories (sales intent, support enquiries, spam, injection attacks, enterprise demands, ambiguity, and regulatory compliance). Latency was measured strictly in-memory between dispatch and typed structured JSON return, completely eliminating retrieval and database conflation.

2. Empirical Findings: 57x Acceleration and 102.25% Quality Retention

The results confirmed the dual-process hypothesis: TypeSafe Jev resolved 58.2% of inbound events locally in a median of 283.5 ms at $0.075 per 1,000 calls. Overall median system latency dropped by 97.9% (from 16.2s to 333ms). Crucially, decision quality was not degraded: the hybrid pipeline achieved a Macro F1 of 75.7% versus 74.0% for standalone Gemini 3.8 Flash Medium (102.25% retention of baseline quality).

A McNemar paired test yielded chi-square = 0.44 (797 paired decisions evaluated) (p ≈ 0.507), so the McNemar test cannot reject equivalence of the two classifiers and the result should not be read as a standalone 'zero loss' claim - the repository's own PAPER.md lists p = 0.6242 for the same comparison, an inconsistency between artefacts that the benchmark archive flags rather than resolving. Treat the McNemar result as directional, not definitive.

3. The Break-Even Equation: $15,761 Saved per Million Decisions

Cost dropped from $27.19 to $11.43 per 1,000 calls, a 58.0% economic saving on the benchmark's published figures. At the benchmark's escalation rate of 41.8%, that is $15,761.26 per million transactions on the published math. The dataset is synthetic; these are measured rates on a frozen benchmark, not a production guarantee.

4. Connection to LCC and LookADev Systems Theory

This benchmark is the empirical validation of four architectural principles established across our previous devlogs: 1) Overthinking in Reasoning Models (Devlog #27): test-time compute hurts accuracy on obvious inputs through second-guessing; 2) Pre-Network Token Optimization via LCC (Devlog #29): while LCC compresses raw tokens by uma ampla margem locally before any network call, TypeSafe Jev serves as the semantic gate in memory - together, Jev eliminates 58.2% of calls and LCC compresses the context of the remaining 41.8%; 3) Model Fetishism vs Systems Architecture (Devlog #30): software topology beats raw frontier models (+1.7% Macro F1 at 58% lower cost); and 4) Purposeful Systems Over Cosmetic AI (Devlog #31): rules first, calibrated heuristics second, frontier LLMs only when ambiguity demands it.

5. References & Open Benchmark Assets

1. Martins, L. (2026) - 'Decoupled Cognitive Triage: Evaluating TypeSafe System 1 (Jev) Against Google Gemini 3.8 Flash in Autonomous Production Orchestration'. LookADev Technical Report LOOKADEV-TR-2026-004. 2. Kahneman, D. (2011) - 'Thinking, Fast and Slow'. Dual-process cognitive foundations. 3. LookADev Open Benchmark Suite & Preprint - Frozen N=1,200 transaction dataset, reproduction scripts, and full academic preprint open-sourced at github.com/lucasmartins-ai/cognitive-triage-benchmark.

Reference: cognitive-triage-benchmark repository. Reference: metrics_summary.json. Reference: PAPER.md. Reference: dataset generator.

// TECHNICAL INSIGHT → BUSINESS REALITY

Connect this engineering principle to your company's operations

// The Operational Bottleneck

Operational bottlenecks, manual rework, and disconnected tools draining time and business margin.

// The Canonical Method

01. DIAGNOSE → 04. ARCHITECT: Technical discovery and system blueprinting to eliminate operational friction.

Documented Case:CETRO HUB & Sistemas em Produção →·Recommended Service:AI Systems Audit (48h)
Schedule Systems Diagnostic View Engagement Models
← PreviousIt's Not Just Adding AI: The Line Between Cosmetic Automation and Purposeful Systems
Lad Encapuzado MascotLOOKADEV LABS // REVIEWED

Devlog & Engineering by Lucas Martins, founder and lead developer at LookADev.

View all articles
LOOKADEV SYSTEMSTransforming complex business processes into intelligent, automated systems.
Free diagnosis The Systems Method
LOOKADEV

AI systems architecture, deterministic process automation, and custom software for growing businesses.

Navigation
Free diagnosisOperational Audit (48h, paid)AI Systems Sprint (7 business days)The Systems MethodCASESAll Services HubAI Operations SystemConversion Systems (<1s)AI DevelopmentCustom SoftwareBristolInsights & DevLogPrompts HubContact
Industries & solutions
Healthcare clinicsVeterinary practicesRecruitmentLegalPropertyRestaurantsConstructionSalons & wellnessProfessional servicesMarketing agenciesOmnichannel supportSaaS developmentMVP developmentNext.js developmentStartup developmentReplace spreadsheetsAutomate client reportingReduce patient no-showsAutomate candidate screeningPortfolioCommunity
Connect & Social
GitHubLinkedInX (Twitter)InstagramThreads
Legal & Privacy
Privacy & SecurityTerms of UseRefund PolicyCookie Policy
LEGAL ENTITY & BUSINESS IDENTIFICATION
Legal Entity / Sole Trader: Lucas Martins do Carmo Borges·Trade Name: LookADev·Business Type: Sole Trader·Official Email: lucas@lookadev.com·WhatsApp: +44 7356 026050·Headquarters / NAP: 9 Coventry Walk, Bristol, England (BS4 4BX), United Kingdom·Opening hours: Mon–Fri 08:00–18:00, Sat 08:00–13:00·Leave us a review·Verified Domain: lookadev.com
© 2026 LookADev · Lucas Martins do Carmo Borges · Personal data handled in line with LGPD (BR) and UK GDPR (UK) · As seen on DesignRush
SYS_PROTOCOLS:
Built in Brazil. Designed for the world.