# Stage 125: VOMC & S3-FIFO Cache (aq125_precache_vomc_and_s3fifo_ring / DB-UNIT-15)

Predicts next capability calls via Order-3 Variable-Order Markov chains, protects hot working sets from spider scans via S3-FIFO, and coalesces concurrent misses via SingleFlight.

- Atomic micro-queue: `aq125_precache_vomc_and_s3fifo_ring` (visibility: `public_commons`)
- Backing database unit: `DB-UNIT-15` (`Thin Per-Site Identity, Surface Lenses & 3-Mode Delivery Core`)
- Database cell: `entities-db.teleon.dev` (`teleon_core.surface_lens_projections`, `teleon_core.adaptive_delivery_manifests`, `teleon_core.bot_and_contributor_lineage_index`)
- Claim row hydration: `single_self_contained_flat_task_row` (100% context inline, normalized writeback)
- Track 2 Sister queue (`SISTER-15`): `sq15-improve-delivery-queue.teleon.dev` (Tune inline/URI/stream byte cutoffs, semantic cache hit rates, and isolated surface lens presets.)
- Lanes: Order-3 VOMC Prefetch, Scan-Resistant S3-FIFO, SingleFlight Coalesce

## Execution engines & AI Agent freedom contract

- **Deterministic (0 model calls)**: `three_mode_delivery_and_lens_projector_v1` (Order-3 VOMC predictor, S3-FIFO Small/Main/Ghost ring & SingleFlight broker (0 calls))
- **Hybrid (<=1 model call)**: `surface_onboarding_lens_calibrator_v1`
- **AI Agent & Bot Fleet (1..6 calls)**: `cross_surface_gap_and_ux_auditor_v1` (Workflow transition pattern miner)
  - Contract: **Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions**

## Database invariants

- Each downstream website keeps an isolated identity database and cookie while sharing non-personal content-addressed supply.
- Delivery selects inline_answer (<=64 KiB), uri_manifest (<=8 MiB), or range_stream_206 (>8 MiB) deterministically.

## External & internal bot fleet actions

- Prefetch L0/L1 cards and HTTP 206 slices ahead of predicted next DAG steps
- Evict one-hit crawler/spider floods from the 10% Small FIFO without polluting the 90% Main ring
- Coalesce thundering-herd misses on identical SWHIDs into 1 upstream D1/R2 read

## Sister self-tuning areas

- Tune inline payload vs URI manifest vs HTTP 206 stream thresholds per client harness (DIM-07)
- Add declarative surface lens presets for humanitarian SDG, ML competitions, and STEM domains (DIM-02, DIM-04)
- Optimize contributor and bot lineage index queries for real-time reuse visibility (DIM-01, DIM-06)
