Three layers for the text users write into a prompt (questions about an
analysis, tarot questions):
- analysis_prompt::guard cleans it (controls, zero-width characters,
spaces, empty lines) and refuses links, tags, code fences, chat role
labels, more than 6 lines and phrases that try to change the model's
instructions (Hungarian and English, accent-insensitive). The check runs
before any unit is spent; refusals are logged without the text.
- The prompt puts the question (and earlier ones) between <kerdes> tags,
with anything that could close the tag neutralized.
- The system prompts say the tagged text is data, not instructions, and
not to quote or summarize the rules (the tarot prompts now say it too).
The question limit drops from 600 to 300 characters (as for tarot), with a
counter always shown under the box.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
- The browser's own form checks (required, minLength, e-mail format) show
Hungarian text on every page (ValidationMessages in the root layout).
- User-facing backend errors are Hungarian: e-mail/password login, password
length, links, invitations, sharing, questions, limits. Google/Apple token
failures log the reason and tell the user to retry.
- errorText covers not_found, horoscope_unavailable and internal errors.
- Input fields: lighter background and gold caret on focus, the example text
steps aside, so a click visibly lands in the field.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
- generation_errors: every failed attempt (model, attempt, outcome, duration); admin
Hibanapló page and GET /v1/admin/errors; kept 90 days
- The waiting page counts from when the text was asked for (requested_at), not from
the page load, so a reload no longer restarts it
- It says when an attempt failed and is retried, and when a failed text's unit was
given back; admins see the error
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
- Modellek page: analyses and answers being written or waiting, with their model
and the one a restart would use; restart one or all
- Each attempt's started_at is its token: a restarted attempt still running in the
worker cannot write its result and is dropped within 10 seconds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
- Admin Modellek: summary, analyses + forecast (shared), question-answer (own model)
- Every default is Opus 5.5; when the chosen model fails twice (permanent: once),
the default model takes over with fresh attempts before the unit is refunded
- The page shows how often the fallback was needed in the last 30 days
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
- 3 questions in every package, +5 questions add-on (1 000 Ft); question units, refund on failure
- The answer sees the chart data, the analysis and earlier questions; at most 250 words
- Editable question prompt (Promptok → Kérdés-válasz); admins regenerate answers
- Package texts and FAQ updated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL