# Stage 70: Small/Med/Large LSH Bands (aq70_index_multiscale_lsh / DB-UNIT-04)

Indexes SimHash-256 signatures across small, medium, and large LSH bands plus half-band boundary-shifted buckets so items near band seams still collide in O(1), with dynamic THP schema revisions.

- Atomic micro-queue: `aq70_index_multiscale_lsh` (visibility: `public_commons`)
- Backing database unit: `DB-UNIT-04` (`48-Cell Hybrid Search, LSH & Retrieval Core`)
- Database cell: `lsh-db.teleon.dev` (`teleon_core.teleon_lsh_signatures_256`, `teleon_core.bm25f_seven_field_postings`, `teleon_core.roaring_trigram_inverted_index`, `teleon_core.markov_l0_prefetch_transitions`)
- Claim row hydration: `single_self_contained_flat_task_row` (100% context inline, normalized writeback)
- Track 2 Sister queue (`SISTER-04`): `sq04-improve-search-queue.teleon.dev` (Tune BM25F field weights, MMR diversity, synonym rings, multilingual stemmers, and 0..N retrieval steps.)
- Lanes: Small 16-Bit Coarse, Medium 32-Bit + Shift, Large 64-Bit Exact

## Execution engines & AI Agent freedom contract

- **Deterministic (0 model calls)**: `bm25f_roaring_lsh_zero_model_v1` (Multi-resolution SimHash band slicer, seam-shift indexer & THP version projector)
- **Hybrid (<=1 model call)**: `query_intent_expansion_hybrid_v1`
- **AI Agent & Bot Fleet (1..6 calls)**: `multi_hop_federated_scout_v1` (Near-miss seam auditor & LSH band-width tuner)
  - Contract: **Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions**

## Database invariants

- Retrieval stays deterministic at 0 model calls when optimize_mode=zero_model_deterministic.
- Return compact contract cards first; defer source bytes until inspect_or_stream.

## External & internal bot fleet actions

- Eliminate single-width LSH seam misses using half-band shifted overlap buckets
- Cascade queries from large (64-bit near-exact) to medium (32-bit) to small (16-bit broad recall)
- Evolve band configurations across THP schema revisions without breaking v1 callers

## Sister self-tuning areas

- Tune 7-field BM25F weights and MMR diversity_floor on frozen retrieval benchmarks
- Expand multilingual query synonym tables and domain aspect boosters
- Add pre-retrieval / post-retrieval deterministic reranking steps and code_blocks
