- **Room system prompts are hard-capped at 4000 characters, and two of three surfaces truncate SILENTLY.** Seed endpoint (`app/api/admin/seed/route.ts`) does `.slice(0, 4000)` and returns `ok: true`; the create-room UI uses `maxLength={4000}` with no counter; only the admin PATCH route rejects with 400. Guardrails sections live at the end of prompts, so truncation cuts exactly the safety text. After seeding or editing any room, verify the deployed prompt length matches the source. Long-form prompt docs are canonical sources, not paste-in blocks — deploy condensed <4000-char versions (pattern: msba-online `docs/mindforum-faculty-system-prompt.md`). Also: `rooms/seed-msba-rooms.py extract_prompt()` grabs the largest ``` fence, so prompts containing code fences seed the wrong fragment (issue #21) — keep room prompt files fence-free until fixed. Open issues: #20 (silent truncation), #21 (fence parsing).
0 commit comments