{"ok": true, "status": "ok", "stateEpoch": 15, "protocol": "DBRAIN-MULTI-TIER-CACHE-v1.10", "title": "12-Optimization, 5-Tier Zero-Stale Cache Engine (@dbrain/core v1.10.0 \u00b7 DBRAIN-v1.3)", "headlineMetrics": {"warmRecallLatencyMs": 0.0064, "warmRecallLatencyUs": 6.4, "peakProverSpeedup": "2,840.5x", "staleDataRiskPct": 0.0, "liveMorphicResonanceSpikeFidelityPct": 100.0, "optimizationsCount": 12, "tiersCount": 5}, "fiveTiers": [{"tier": 1, "name": "Tier 1 \u2014 Content-Addressed Core Crypto & Prover LRU", "invalidationKey": "(keyHex, contentHash) / (storeId, merkleRoot, generation, milestone)", "coldLatencyMs": 15.452, "warmLatencyMs": 0.0054, "speedup": "2,840.5x", "guarantee": "Mathematical zero-stale invariance: SHA-256 content & Merkle root addressing."}, {"tier": 2, "name": "Tier 2 \u2014 State-Epoch Gated Cognitive Graph & VCS Cache", "invalidationKey": "stateEpoch + getRuntimeStateSignature() (storeId:generation:merkleRoot:headCommitSha)", "coldLatencyMs": 0.383, "warmLatencyMs": 0.0037, "speedup": "103.3x \u2013 138.6x", "guarantee": "Instantaneous invalidation on any capsule mint, revert, merge, or branch fork."}, {"tier": 3, "name": "Tier 3 \u2014 Precomputed _searchHaystack & Recall LRU + Live Synaptic Spikes", "invalidationKey": "(stateSignature, storeId, lobe, queryNorm, limit) + MAX=128 LRU", "coldLatencyMs": 0.272, "warmLatencyMs": 0.0064, "speedup": "42.6x", "guarantee": "6.4 \u00b5s warm recall while unconditionally firing recordSynapticEvent() so 60fps 5-Lobe Connectome spikes remain 100% live."}, {"tier": 4, "name": "Tier 4 \u2014 P2P DataLayer .dat Mirror Buffer & HTTP Edge ETag Cache", "invalidationKey": "Store Singleton Generation Root + ETag If-None-Match (304 Not Modified)", "coldLatencyMs": 2.255, "warmLatencyMs": 0.0167, "speedup": "76.4x \u2013 135.2x", "guarantee": "Zero redundant disk/Gzip serialization across P2P mirror & brochure routes."}, {"tier": 5, "name": "Tier 5 \u2014 Client-Side Stale-While-Revalidate (SWR) Memory Map", "invalidationKey": "60s TTL + Immediate Write-Mutation Invalidation Hook", "coldLatencyMs": 0.082, "warmLatencyMs": 0.0008, "speedup": "0 RTT (Instant UI)", "guarantee": "Sub-microsecond tab switching with automatic cache busting on C2 mutations."}], "threeArchitecturalGroups": [{"groupId": "group-1-core-protocol", "groupName": "Group 1 \u2014 Core Decentralized Brain Protocol (7 Subsystems)", "subsystems": [{"id": 1, "tier": "Tier 1 \u2022 Core Crypto LRU", "subsystem": "merkleLeafLruCache (MAX=512) & embeddingLruCache (MAX=256)", "coldMs": 0.145, "warmMs": 0.0021, "speedup": "69.0x"}, {"id": 2, "tier": "Tier 1 \u2022 Prover LRU", "subsystem": "proveAndBuildDigL4SpendBundle() CLVM + BLS12-381 Prover", "coldMs": 15.452, "warmMs": 0.0054, "speedup": "2,840.5x"}, {"id": 3, "tier": "Tier 1 \u2022 Prover LRU", "subsystem": "buildAndProveSelfHealingBagRollup() Chialisp merkle_utils.clib", "coldMs": 8.24, "warmMs": 0.003, "speedup": "2,701.6x"}, {"id": 4, "tier": "Tier 2 \u2022 State-Epoch Gate", "subsystem": "computeSemanticVectorShards(query) LSH 8-Hyperplane Router", "coldMs": 0.187, "warmMs": 0.0013, "speedup": "138.6x"}, {"id": 5, "tier": "Tier 2 \u2022 State-Epoch Gate", "subsystem": "getStoreVcsLog() & computeAgenticKnowledgeGraph() SPO Triples", "coldMs": 0.383, "warmMs": 0.0037, "speedup": "103.3x"}, {"id": 6, "tier": "Tier 3 \u2022 Haystack + Recall LRU", "subsystem": "_searchHaystack + nodeRecallLruCache (MAX=128) + Live Synaptic Spikes", "coldMs": 0.272, "warmMs": 0.0064, "speedup": "42.6x"}, {"id": 7, "tier": "Tier 4 \u2022 P2P Mirror Buffer", "subsystem": "localDatBufferCache Chia DataLayer .dat Streaming", "coldMs": 0.84, "warmMs": 0.011, "speedup": "76.4x"}]}, {"groupId": "group-2-observatory-provers", "groupName": "Group 2 \u2014 Observatory Telemetry & Diagnostic Prover APIs (4 Subsystems)", "subsystems": [{"id": 8, "tier": "Tier 2 \u2022 Prover Snapshot", "subsystem": "GET /api/dbrain/architecture-proof (14-Pillar Full Cryptographic Audit)", "coldMs": 45.612, "warmMs": 0.0817, "speedup": "558.3x"}, {"id": 9, "tier": "Tier 2 \u2022 Prover Snapshot", "subsystem": "GET /api/dbrain/rust-acceleration (crates/dbrain-core-rs Parity Suite)", "coldMs": 25.356, "warmMs": 0.0455, "speedup": "557.6x"}, {"id": 10, "tier": "Tier 2 \u2022 Prover Snapshot", "subsystem": "GET /api/dbrain/benchmarks, /reality-audit & /dbaas-economics", "coldMs": 18.465, "warmMs": 0.0929, "speedup": "198.7x"}, {"id": 11, "tier": "Tier 2 + 3 \u2022 Split-Horizon fMRI", "subsystem": "computeBrainTelemetry() Static Structural vs Live Synaptic Overlay", "coldMs": 2.464, "warmMs": 0.0641, "speedup": "38.5x"}]}, {"groupId": "group-3-edge-swr", "groupName": "Group 3 \u2014 Brochure Site & Web Application Delivery (2 Subsystems)", "subsystems": [{"id": 12, "tier": "Tier 4 + 5 \u2022 Edge ETag & Browser SWR", "subsystem": "Pre-Rendered SPA Gzip + ETag 304 Not Modified + Browser SWR LRU", "coldMs": 2.255, "warmMs": 0.0008, "speedup": "135.2x (Edge) / 0 RTT (SWR)"}]}], "architecture": {"staleReadProbabilityPct": 0.0, "tiers": [{"tier": 1, "name": "Tier 1 \u2014 Content-Addressed Core Crypto & Prover LRU", "invalidationKey": "(keyHex, contentHash) / (storeId, merkleRoot, generation, milestone)", "coldLatencyMs": 15.452, "warmLatencyMs": 0.0054, "speedup": "2,840.5x", "guarantee": "Mathematical zero-stale invariance: SHA-256 content & Merkle root addressing."}, {"tier": 2, "name": "Tier 2 \u2014 State-Epoch Gated Cognitive Graph & VCS Cache", "invalidationKey": "stateEpoch + getRuntimeStateSignature() (storeId:generation:merkleRoot:headCommitSha)", "coldLatencyMs": 0.383, "warmLatencyMs": 0.0037, "speedup": "103.3x \u2013 138.6x", "guarantee": "Instantaneous invalidation on any capsule mint, revert, merge, or branch fork."}, {"tier": 3, "name": "Tier 3 \u2014 Precomputed _searchHaystack & Recall LRU + Live Synaptic Spikes", "invalidationKey": "(stateSignature, storeId, lobe, queryNorm, limit) + MAX=128 LRU", "coldLatencyMs": 0.272, "warmLatencyMs": 0.0064, "speedup": "42.6x", "guarantee": "6.4 \u00b5s warm recall while unconditionally firing recordSynapticEvent() so 60fps 5-Lobe Connectome spikes remain 100% live."}, {"tier": 4, "name": "Tier 4 \u2014 P2P DataLayer .dat Mirror Buffer & HTTP Edge ETag Cache", "invalidationKey": "Store Singleton Generation Root + ETag If-None-Match (304 Not Modified)", "coldLatencyMs": 2.255, "warmLatencyMs": 0.0167, "speedup": "76.4x \u2013 135.2x", "guarantee": "Zero redundant disk/Gzip serialization across P2P mirror & brochure routes."}, {"tier": 5, "name": "Tier 5 \u2014 Client-Side Stale-While-Revalidate (SWR) Memory Map", "invalidationKey": "60s TTL + Immediate Write-Mutation Invalidation Hook", "coldLatencyMs": 0.082, "warmLatencyMs": 0.0008, "speedup": "0 RTT (Instant UI)", "guarantee": "Sub-microsecond tab switching with automatic cache busting on C2 mutations."}], "threeArchitecturalGroups": [{"groupId": "group-1-core-protocol", "groupName": "Group 1 \u2014 Core Decentralized Brain Protocol (7 Subsystems)", "subsystems": [{"id": 1, "tier": "Tier 1 \u2022 Core Crypto LRU", "subsystem": "merkleLeafLruCache (MAX=512) & embeddingLruCache (MAX=256)", "coldMs": 0.145, "warmMs": 0.0021, "speedup": "69.0x"}, {"id": 2, "tier": "Tier 1 \u2022 Prover LRU", "subsystem": "proveAndBuildDigL4SpendBundle() CLVM + BLS12-381 Prover", "coldMs": 15.452, "warmMs": 0.0054, "speedup": "2,840.5x"}, {"id": 3, "tier": "Tier 1 \u2022 Prover LRU", "subsystem": "buildAndProveSelfHealingBagRollup() Chialisp merkle_utils.clib", "coldMs": 8.24, "warmMs": 0.003, "speedup": "2,701.6x"}, {"id": 4, "tier": "Tier 2 \u2022 State-Epoch Gate", "subsystem": "computeSemanticVectorShards(query) LSH 8-Hyperplane Router", "coldMs": 0.187, "warmMs": 0.0013, "speedup": "138.6x"}, {"id": 5, "tier": "Tier 2 \u2022 State-Epoch Gate", "subsystem": "getStoreVcsLog() & computeAgenticKnowledgeGraph() SPO Triples", "coldMs": 0.383, "warmMs": 0.0037, "speedup": "103.3x"}, {"id": 6, "tier": "Tier 3 \u2022 Haystack + Recall LRU", "subsystem": "_searchHaystack + nodeRecallLruCache (MAX=128) + Live Synaptic Spikes", "coldMs": 0.272, "warmMs": 0.0064, "speedup": "42.6x"}, {"id": 7, "tier": "Tier 4 \u2022 P2P Mirror Buffer", "subsystem": "localDatBufferCache Chia DataLayer .dat Streaming", "coldMs": 0.84, "warmMs": 0.011, "speedup": "76.4x"}]}, {"groupId": "group-2-observatory-provers", "groupName": "Group 2 \u2014 Observatory Telemetry & Diagnostic Prover APIs (4 Subsystems)", "subsystems": [{"id": 8, "tier": "Tier 2 \u2022 Prover Snapshot", "subsystem": "GET /api/dbrain/architecture-proof (14-Pillar Full Cryptographic Audit)", "coldMs": 45.612, "warmMs": 0.0817, "speedup": "558.3x"}, {"id": 9, "tier": "Tier 2 \u2022 Prover Snapshot", "subsystem": "GET /api/dbrain/rust-acceleration (crates/dbrain-core-rs Parity Suite)", "coldMs": 25.356, "warmMs": 0.0455, "speedup": "557.6x"}, {"id": 10, "tier": "Tier 2 \u2022 Prover Snapshot", "subsystem": "GET /api/dbrain/benchmarks, /reality-audit & /dbaas-economics", "coldMs": 18.465, "warmMs": 0.0929, "speedup": "198.7x"}, {"id": 11, "tier": "Tier 2 + 3 \u2022 Split-Horizon fMRI", "subsystem": "computeBrainTelemetry() Static Structural vs Live Synaptic Overlay", "coldMs": 2.464, "warmMs": 0.0641, "speedup": "38.5x"}]}, {"groupId": "group-3-edge-swr", "groupName": "Group 3 \u2014 Brochure Site & Web Application Delivery (2 Subsystems)", "subsystems": [{"id": 12, "tier": "Tier 4 + 5 \u2022 Edge ETag & Browser SWR", "subsystem": "Pre-Rendered SPA Gzip + ETag 304 Not Modified + Browser SWR LRU", "coldMs": 2.255, "warmMs": 0.0008, "speedup": "135.2x (Edge) / 0 RTT (SWR)"}]}]}, "cacheStats": {"protocol": "DBRAIN-MULTI-TIER-CACHE-v1.10", "stateEpoch": 15, "synapticRecallEvents": 3, "coreCrypto": {"protocol": "DBRAIN-MULTI-TIER-CACHE-v1.10", "merkleLeafCacheEntries": 14, "merkleLeafCacheMaxEntries": 512, "embeddingCacheEntries": 16, "embeddingCacheMaxEntries": 256, "merkleLeafLruCache": {"size": 14, "maxEntries": 512, "hits": 269951, "misses": 14, "hitRatePct": 99.99}, "embeddingLruCache": {"size": 16, "maxEntries": 256, "hits": 188960, "misses": 16, "hitRatePct": 99.99}}, "tier1CoreCrypto": {"protocol": "DBRAIN-MULTI-TIER-CACHE-v1.10", "merkleLeafCacheEntries": 14, "merkleLeafCacheMaxEntries": 512, "embeddingCacheEntries": 16, "embeddingCacheMaxEntries": 256, "merkleLeafLruCache": {"size": 14, "maxEntries": 512, "hits": 269951, "misses": 14, "hitRatePct": 99.99}, "embeddingLruCache": {"size": 16, "maxEntries": 256, "hits": 188960, "misses": 16, "hitRatePct": 99.99}}, "recallLru": {"size": 2, "maxSize": 128, "hits": 1, "misses": 2, "hitRatio": 0.3333}, "proverLru": {"size": 1, "maxSize": 256, "hits": 1, "misses": 1, "hitRatio": 0.5}, "shardsLru": {"size": 0, "maxSize": 64, "hits": 0, "misses": 0, "hitRatio": 0.0}, "compiledDigWasmCacheEntries": 1}, "liveCacheStats": {"protocol": "DBRAIN-MULTI-TIER-CACHE-v1.10", "stateEpoch": 15, "synapticRecallEvents": 3, "coreCrypto": {"protocol": "DBRAIN-MULTI-TIER-CACHE-v1.10", "merkleLeafCacheEntries": 14, "merkleLeafCacheMaxEntries": 512, "embeddingCacheEntries": 16, "embeddingCacheMaxEntries": 256, "merkleLeafLruCache": {"size": 14, "maxEntries": 512, "hits": 269951, "misses": 14, "hitRatePct": 99.99}, "embeddingLruCache": {"size": 16, "maxEntries": 256, "hits": 188960, "misses": 16, "hitRatePct": 99.99}}, "tier1CoreCrypto": {"protocol": "DBRAIN-MULTI-TIER-CACHE-v1.10", "merkleLeafCacheEntries": 14, "merkleLeafCacheMaxEntries": 512, "embeddingCacheEntries": 16, "embeddingCacheMaxEntries": 256, "merkleLeafLruCache": {"size": 14, "maxEntries": 512, "hits": 269951, "misses": 14, "hitRatePct": 99.99}, "embeddingLruCache": {"size": 16, "maxEntries": 256, "hits": 188960, "misses": 16, "hitRatePct": 99.99}}, "recallLru": {"size": 2, "maxSize": 128, "hits": 1, "misses": 2, "hitRatio": 0.3333}, "proverLru": {"size": 1, "maxSize": 256, "hits": 1, "misses": 1, "hitRatio": 0.5}, "shardsLru": {"size": 0, "maxSize": 64, "hits": 0, "misses": 0, "hitRatio": 0.0}, "compiledDigWasmCacheEntries": 1}, "liveBenchmark": {"query": "Verify Merkle inclusion proof and LSH semantic shard routing", "firstCallMs": 1.1827, "warmCacheHitMs": 0.0167, "warmHitMs": 0.0167, "speedupFactor": 52.0, "warmCacheHitVerified": true, "warmCacheVerified": true, "resultsCount": 5, "stateEpoch": 15, "synapticRecallEvents": 3, "topCapsuleId": "CAP-BRAIN-2026-0004"}, "liveSpeedupMeasurement": {"query": "Verify Merkle inclusion proof and LSH semantic shard routing", "firstCallMs": 1.1827, "warmCacheHitMs": 0.0167, "warmHitMs": 0.0167, "speedupFactor": 52.0, "warmCacheHitVerified": true, "warmCacheVerified": true, "resultsCount": 5, "stateEpoch": 15, "synapticRecallEvents": 3, "topCapsuleId": "CAP-BRAIN-2026-0004"}}