cohorta/backend/prompts
Vadym Samoilenko 4c70bc8aa6 fix: PDF layout, credit idempotency, more active discussion
- PDF: meta_row redesigned to same-line two-column layout so values
  don't overflow the right edge; explicit cursor reset before each
  multi_cell body() call fixes key themes appearing to the right of
  titles; page numbers now use len(pdf.pages) + pdf.h-12 positioning
- Credits: replace fragile 4h credit_transactions lookup with atomic
  findOneAndUpdate stamp on the focus group doc itself (24h window),
  with rollback on insufficient balance — eliminates double-charging
  on crash/restart; CreditTransaction.record failure is now non-fatal
- Key themes: cap input at 80 messages + max_output_tokens=4096 to
  fix truncated JSON (Unterminated string at char 1580)
- Decision engine: require ≥4 participant responses per question before
  moving on; mandate debate/contrarian seeking after 2 agreements;
  call all participants to each question before anyone speaks 3rd time

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 21:09:14 +01:00
..
.DS_Store changed permissions 2025-12-19 19:26:16 +00:00
ai-moderator-system.md feat(personas): improve individuality, add restart/duplicate, fix language 2026-05-25 16:34:37 +01:00
audience-brief-enhancement.md changed permissions 2025-12-19 19:26:16 +00:00
conversation-decision-engine.md fix: PDF layout, credit idempotency, more active discussion 2026-05-25 21:09:14 +01:00
conversation-participant-selection.md changed permissions 2025-12-19 19:26:16 +00:00
discussion-guide-generation.md changed permissions 2025-12-19 19:26:16 +00:00
focus-group-response.md fix(backend): 4 fixes — await add_message, MODEL_ALIASES, language rule, PDF + silent participants 2026-05-25 20:46:39 +01:00
focus-group-summary-generation.md changed permissions 2025-12-19 19:26:16 +00:00
image-description.md changed permissions 2025-12-19 19:26:16 +00:00
key-theme-extraction.md changed permissions 2025-12-19 19:26:16 +00:00
key-theme-system.md changed permissions 2025-12-19 19:26:16 +00:00
persona-basic-generation.md changed permissions 2025-12-19 19:26:16 +00:00
persona-detailed-generation.md changed permissions 2025-12-19 19:26:16 +00:00
persona-download-summary.md changed permissions 2025-12-19 19:26:16 +00:00
persona-interaction-prompt.md changed permissions 2025-12-19 19:26:16 +00:00
persona-modification.md changed permissions 2025-12-19 19:26:16 +00:00
persona-profile-export.md changed permissions 2025-12-19 19:26:16 +00:00
persona-summary-generation.md changed permissions 2025-12-19 19:26:16 +00:00
persona-system.md changed permissions 2025-12-19 19:26:16 +00:00
persona-to-persona-response.md feat(personas): improve individuality, add restart/duplicate, fix language 2026-05-25 16:34:37 +01:00
probe-generation-prompt.md changed permissions 2025-12-19 19:26:16 +00:00
report-executive-summary.md feat(report): PDF export with Cyrillic, i18n, key decisions + analytics 2026-05-25 12:40:54 +01:00
report-key-decisions.md feat(report): PDF export with Cyrillic, i18n, key decisions + analytics 2026-05-25 12:40:54 +01:00