// File: config.ts // Path: apps/worker/src/config.ts // Project: AI Risk Index — airiskindex.io // Author: Simon-Pierre Boucher // Contact: contact@spboucher.ai // Copyright © 2026 Simon-Pierre Boucher. All rights reserved. // // Description: Worker configuration: rater model panel, prompt version, Redis URL. /** * Rater model panel — comma-separated model IDs from the environment, never * hardcoded (CLAUDE.md §6). Multi-model rating is required: single-model * exposure ratings show up to 19× spread across frontier raters * (docs/research/01-existing-indices.md §7.2). */ export const RATER_MODELS: readonly string[] = (process.env.RATER_MODELS ?? "") .split(",") .map((value) => value.trim()) .filter(Boolean); /** Bumping this invalidates cached ratings (CLAUDE.md §6). */ export const RATER_PROMPT_VERSION = "v1"; export const REDIS_URL = process.env.REDIS_URL ?? "redis://127.0.0.1:6379";