Operate

Drift & retrain

DriftWatch watches quality against golden sets and live slices. FineForge turns an alert into a versioned fix — prompt patch, adapter, or LoRA — then promote or roll back with deploy markers on the same dashboards.

Loop

LensAI + TraceForge  →  live traffic + traces
         ↓
DriftWatch          →  score vs golden / teacher / slices
         ↓  alert
FineForge           →  patch | train | eval gate
         ↓
promote (canary→full)  or  rollback
         ↓
RouteIQ + prompt_version / model_id updated

DriftWatch signals

SignalSymptomOperator action
Prompt regressionScore drop + deploy markerRollback prompt_version
Slice driftOne intent hurts; others fineIntent-specific prompt or route
Tool schema driftTool errors↑ + score↓Adapter fix via FineForge
Provider shiftScore drop without your deployPin provider version; escalate
Cost-cutting driftQuality↓ after budget force-cheapRestore hard path
Latency-inducedP99↑ with incomplete answersRouteIQ failover
Golden set staleEval–prod gap widensRefresh cases from failures
Alert fatigueAck rate collapsesRaise thresholds; critical slices only

Key metrics: driftwatch.score.prod, driftwatch.slice.score, driftwatch.delta, driftwatch.alerts.open. Details: DriftWatch.

Golden sets and teachers

  • Golden set — fixed prompts + expected outcomes (business success, not HTTP 200). Stratify by intent.
  • Teacher model — stronger model scores or critiques owned SLM outputs; freeze the judge prompt to avoid labeler drift.
  • Shadow — send % traffic to a candidate; compare driftwatch.score.shadow vs prod before promote.
drift:
  enabled: true
  window: 24h
  golden_set: /var/lib/inferix/golden/support.jsonl
  teacher: provider/strong
  slices:
    - intent
    - locale
    - tenant_tier
  alert:
    min_delta: 0.05
    min_samples: 50

FineForge jobs

Job typeWhenArtifact
Prompt patchSurgical regressionprompt_version bump
Adapter fixSchema / tool 4xxtool_schema_version + fixtures
Teacher critiqueFailure clusterRepair suggestions → patch
Distill / LoRACheap path specializationowned model revision
Eval harness expandNew failure modeCases from DriftWatch samples
Bundle promotePrompt+adapter+routeAtomic multi-artifact version
# Start a FineForge job from an alert
curl -X POST http://localhost:4000/v1/fineforge/jobs \
  -H "Authorization: Bearer $INFERIX_MASTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "alert_id": "dw_alert_8f2a",
    "kind": "prompt_patch",
    "model": "owned/slm-support",
    "shadow_pct": 5
  }'

Promote and rollback

  • Canary — 1% traffic; auto-promote if driftwatch.delta > ε and error budget holds.
  • Full promote — pin new model_id / prompt_version; emit deploy marker for LensAI dashboards.
  • Rollback — instant previous revision; FineForge keeps the bad candidate for postmortem → new eval case.

Change one variable

Cascade interaction drift (D19) confounds RCA when route and prompt change together. Promote prompt, adapter, or route rule in separate steps unless you ship an explicit FineForge bundle.

Chat completions, traces, policies, drift alerts, FineForge jobs.

API reference →