Research-Stack/6-Documentation/tiddlywiki-local/wiki/tiddlers/Swarm ENE Middleware.tid
Brandon Schneider 0f2c2b57f4 ingest: Hypercube → Hyper-Rhomboid composition theory
Orthogonal tensor (hypercube) assumes independent axes.
Shear into parallelotope (hyper-rhomboid) models entangled dimensions.
The shear angle encodes correlation strength; the Gram matrix
of the shear IS the compression dictionary.

6 stack mappings:
- PIST n-D: Cartesian → Bundle → Radial = hypercube → rhomboid → collapsed
- Topological state machine: transition = shear on state tensor
- N-D Gene Hypothesis: gene = n-D rhomboid, 3D structure = projection shadow
- FAMM: preshaped delay = sheared time-domain rhomboid
- OAC: latent cavity in sheared rhomboid space
- Waveprobe: curvature = local shear angle of coordinate basis

3 compression interpretations + information gravity metric tensor
2026-05-07 02:04:03 -05:00

17 lines
946 B
Text

created: 20260507000000000
modified: 20260507000000000
tags: ResearchStack Infrastructure Swarm Caching
title: Swarm ENE Middleware
type: text/vnd.tiddlywiki
! Swarm ENE Middleware
`4-Infrastructure/infra/swarm_ene_middleware.py` (427 lines) — middleware that hooks the Research Swarm API into the ENE database for query result caching, audit logging, and semantic retrieval. Maintains three SQLite tables: swarm_query_cache (TTL-based cache with hit counters), swarm_api_audit (operation log with timing), and swarm_semantic_index (14D concept vector index). Currently uses O(N) brute-force cosine similarity search. The cache stores 14D semantic vectors derived from query subjects via MD5 hashing. Part of the planned HNSW-based ANN upgrade (see [[HNSW Vector Search]] and the [[ENe Cognitive Refactor Plan]]).
!! Links
* [[ENE API Hook]]
* [[ENE Wiki Layer]]
* [[HNSW Vector Search]]
* [[Semantic Graph Mining]]
* [[Concept Vector 14]]