System / Config
API pricing and config
Pricing management
API Reliability (admin / gem pipeline)
API Reliability (admin gem pipeline)
Controls retry behaviour for the admin gem-pipeline Anthropic calls (Phase 1/2 propose, Stage 3 narrative, Stage 4 hooks). Independent from the student-facing API Reliability config — admins typically set higher values because batch-propose hammers the API harder than a single student session.
Range 1–10. Default: 4.
Range 0.1–30. Doubles each retry. Default: 1.0 s.
Aborts any single fetch that hangs past this budget; the retry loop then takes over. Prevents a silent server hang from pinning loading spinners forever. Range 5–180. Default: 60 s.
API Reliability (student-facing)
API Reliability (student-facing)
Controls retry behaviour for student-side Anthropic calls (question generation, grading, narration). Lives on the admin page because students should not be tuning retry-storm parameters; was previously misplaced on the student settings page.
Range 1–10. Default: 4.
Range 0.1–30. Doubles each retry. Default: 1.0 s.
Aborts any single fetch that hangs past this budget; the retry loop then takes over. Prevents a silent server hang from pinning loading spinners forever. Range 5–180. Default: 60 s.
Portal voice configuration
Portal Voice (ElevenLabs)
Paste your ElevenLabs cloned voice IDs to enable spoken feedback.
The Test buttons PATCH the current voice settings before calling /api/portal-voice; you can preview tuning without clicking Save first, but a refresh will discard the unsaved values.
Adaptive algorithm internals
Algorithm parameters used by lib/analytics/adaptiveDifficulty.ts. These apply to every student; per-student difficulty ceilings live in /api/preferences.
usnco-curator extractor
Anomaly threshold for the Mathpix + Opus pipeline inlib/extractor/orchestrator.ts. When the total cost of one(sourceId, year, part) run exceeds this value, the orchestrator emits a cost-cap-exceeded anomaly that surfaces in ShipReview. Default $5.00; raise during one-off expensive runs.
Gem pipeline
Cost cap on the batch-multi propose loop (app/api/gems/propose/route.ts). When proposed names land in the wrong tier, the engine asks Phase-1 for fresh names up to this many rounds before giving up.