# Stage 44: Crystallize Pattern to Queue (aq44_crystallize_pattern_to_queue / DB-UNIT-08)

Detects recurring patterns inside catch-all documents and graduates them into dedicated flat queues, THP schemas, 5-role worker pods, and tuning grids.

- Atomic micro-queue: `aq44_crystallize_pattern_to_queue` (visibility: `public_commons`)
- Backing database unit: `DB-UNIT-08` (`Opt-In Prompt & Inference Wire Proxy Rule Core`)
- Database cell: `telemetry-db.teleon.dev` (`teleon_core.prompt_proxy_rule_sets`, `teleon_core.direct_deterministic_hit_catalog`, `teleon_core.wire_observation_headers`)
- Claim row hydration: `single_self_contained_flat_task_row` (100% context inline, normalized writeback)
- Track 2 Sister queue (`SISTER-08`): `sq08-improve-proxy-queue.teleon.dev` (Tune direct-answer confidence thresholds, context byte budgets, and promote frequent queries to 0-call cards.)
- Lanes: Cluster Threshold >=3, Dedicated cq_* Queue, Auto Grid & Pod

## Execution engines & AI Agent freedom contract

- **Deterministic (0 model calls)**: `wire_metadata_rule_and_direct_responder_v1` (Shape-cluster promoter, THP schema synthesizer & Store S8 grid seeder)
- **Hybrid (<=1 model call)**: `compact_context_selector_hybrid_v1`
- **AI Agent & Bot Fleet (1..6 calls)**: `custom_enterprise_policy_simulator_v1` (Domain queue architect & parameter-axis designer)
  - Contract: **Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions**

## Database invariants

- Rule evaluation matches metadata only (never prompt prose) with strict deny -> require -> select precedence.
- User BYO provider keys pass only to the user's chosen inference host and never enter Teleon storage.

## External & internal bot fleet actions

- Promote recurring catch-all clusters into first-class single-verb queues once pattern support crosses threshold
- Generate normalized backing schema fields, flat-row claim hydrators, and 5-role pod bindings automatically
- Seed an initial parameter search grid across context packs, engines, and verification tiers in Store S8

## Sister self-tuning areas

- Tune direct_response_min_score and max_injected_context_bytes per model family
- Promote high-frequency repeated tasks into verified deterministic direct-hit cards
- Add wire codec support and aspect tags for new local/cloud inference endpoints
