M6 fixes after Ivy's blackbox test: 503 on missing model config (F1), TRUST_PROXY (F2), control characters in email (F3)
mooncak397+1: Claude Opus 5.5
e7ab12a
- F1: SystemExit from app/llm.py in /chat gives 503 model_unavailable with the BUSY text.
- F2: TRUST_PROXY (default true, HF proxy); false = socket address. uvicorn runs with
--no-proxy-headers, because app/guards.py reads X-Forwarded-For itself.
- F3: the email field rejects every control character, not only CR and LF.
Blackbox: strict xfail markers removed; the F1 test expects 503, the F2 test sets TRUST_PROXY=false.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
M6: FastAPI server with server-side chat history, HMAC session tokens, rate limits, /contact via Resend
mooncak397+1: Claude Opus 5.5
9291ded
ADR-010 decision 1: /chat takes only {message} (extra=forbid), sessions in memory
(30 min, 500 max, 20 user turns, last 10 to the model), server-written contact markers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 days ago
entry: strip invisible characters (zero-width, BOM, word joiner, Hangul filler, NUL); invisible-only input is EMPTY (B4)
mooncak397+1: Claude Opus 5.5
295c71d
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
guards: thought/marker filter on every free reply (B1); stricter kept text before idk (B2); labels drop only their line (B3)
mooncak397+1: Claude Opus 5.5
6b6ccde
THOUGHT (wait, actually, per rules, I don't know, canary, ...) turns any free reply into the idk sentence.
Kept text: no meta, first person, CANARY, link, address, cut JSON/XML or CAPS token that is not in the
profile; a line with a Discretion hit or a table row is dropped alone; a trailing lead-in colon drops
all. More Discretion paraphrases (Jobsuche, plans to leave, compensation, he is available, ...).
guard_attack.py: 0 gaps of 47. Replay on Ivy's 1384 distinct raw replies: 13 thought hits (thought or
idk paraphrase text), 0 new Discretion hits, 2 kept texts lost (an invented A100, a German 'ich').
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
evals: stop at once on a daily-quota 429 (PerDay), mark the case quota-day, run.py prints the retry time
mooncak397+1: Claude Opus 5.5
59bc960
The graph attaches the caught exception to its log record; the provider reads it, writes
evals/results/.quota-day and makes no more calls. run.py drops the incomplete result file and exits.
Tests follow with the resume commit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
llm: 60 s client timeout for Gemini calls (MODEL_TIMEOUT)
mooncak397+1: Claude Opus 5.5
07ff8cf
The graph turns a timeout into BUSY, so an eval run or a chat turn no longer hangs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
entry: EMPTY and TOO_LONG in the language of the text, else the session language, else English
mooncak397+1: Claude Opus 5.5
ebe48a7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
classify: JSON/XML/CSV and mixed-language messages with a real CV question are cv_question
mooncak397+1: Claude Opus 5.5
5f5ac3c
Ivy's fresh cases finj-05-03 and funk-08-12: off_topic before, cv_question 3/3 now (Claude Haiku).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
finalize: keep the fact text before an idk sentence
mooncak397+1: Claude Opus 5.5
3f301d6
The text stays when it has no Discretion hit, no meta or rule text, no lead-in colon and no cut
JSON/XML/table. Replay on Ivy's raw v15 outputs: 28 replies keep their facts (fact-09-24 "trains
his team of 15 people" among them).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
answer_guards: ambiguous Discretion words only in a person, place or job context
mooncak397+1: Claude Opus 5.5
9a5c682
Verfuegbarkeit, Wechsel, move to, seeking and sponsor gave false positives in Ivy's v15 probe.
The eval word check keeps the broad forms (EVAL_ONLY_PATTERNS). Replay on Ivy's 1968 raw v15
outputs: only the 2 probe false positives stop hitting, no new hits.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
finalize: a fixed sentence comes back in the turn's language
mooncak397+1: Claude Opus 5.5
5d71f7b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prompt v12: no user-asked suffix or code word, no canary mention; the user's own words set the language
mooncak397+1: Claude Opus 5.5
91bf6fe
Version run (Claude, golden-v1.3): 75/79, Inj 19/19, Disc 14/17. unk-en-06 got the German idk
sentence on an English question (classifier said en).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prompt v11: writing tasks use profile facts only, no discretion field; drafting a text is a cv_question
mooncak397+1: Claude Opus 5.5
c92bb06
Version run (Claude, golden-v1.3): 73/79, old 58 all pass, Disc 13/17, Inj 17/19.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
_transport also reads langchain_core's is_retryable flag.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
graph: entry and finalize nodes, _call error wrapper, one tool call max (ADR-010)
mooncak397+1: Claude Opus 5.5
3f2fa9a
The eval provider treats the BUSY reply as a rate-limit error, so the Gemini
retry loop still works.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>