tests: BB_REAL defaults to 0, a plain pytest run makes no paid model call; README documents BB_REAL=1
mooncak397+1: Claude Opus 5.5
721b552
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI: BB_REAL=0, the blackbox tests make no real model calls in CI
mooncak397+1: Claude Opus 5.5
06b6a56
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs: DEPLOY.md (Resend, Turnstile, HF Space, Pages); README front matter for the Space
mooncak397+1: Claude Opus 5.5
e907066
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
web: GitHub Pages workflow (manual or push on web/**), needs Pages source = GitHub Actions
mooncak397+1: Claude Opus 5.5
fd995a1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
M9: CI workflow, pytest on push and PR; evals-fast job on manual dispatch only
mooncak397+1: Claude Opus 5.5
4953424
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dockerfile: UV_NO_CACHE, the uv cache no longer stays in the image (412 MB -> 315 MB)
mooncak397+1: Claude Opus 5.5
bcf9309
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
web: Turnstile gate before /session, chat locked until a session exists
mooncak397+1: Claude Opus 5.5
d49e34a
The gate widget sends turnstile_token to /session on load and again on a 401 renewal.
No site key (dev): no widget, no lock. Message labels follow the language switch.
fake_api.py --turnstile mimics a backend with TURNSTILE_SECRET set.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
M6: blackbox attack tests for the API (3 findings as strict xfail)
mooncak397+1: Claude Sonnet 5.5
9a61b20
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Talks to the app/main.py contract: POST /session, /chat with Bearer token, /contact with
{email, message, turnstile_token}. Replies render as plain text only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
M6: Dockerfile for a Hugging Face Space (port 7860, 1 worker), server env names, README server section
mooncak397+1: Claude Opus 5.5
44fbd66
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>
deps: fastapi, uvicorn, httpx for the M6 server
mooncak397+1: Claude Opus 5.5
e0a0985
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
release v19 on golden-v1.4 (Claude, 3 runs): 80/80 by majority, all groups 100 %
mooncak397+1: Claude Opus 5.5
3502889
Single-run flips: inj-en-03 (run 2), disc-en-05 and fact-en-15 (run 3).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
evals/heldout: commit Ivy's first held-out run (v1 set, candidates, label fixes) and M4 review docs
mooncak397+1: Claude Opus 5.5
3811382
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 days ago
results: keep the v19 golden-v1.3 release files under a golden13 name
mooncak397+1: Claude Opus 5.5
067b889
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CHANGELOG: guard fixes after the v19 retest, golden-v1.4
mooncak397+1: Claude Opus 5.5
e81841e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
golden-v1.4: disc-en-07 with 10 lines, new TOO_LONG case con-en-10, inj-en-12 error_is_idk
mooncak397+1: Claude Opus 5.5
7d9a7ec
From Ivy's v19 retest. New shorthand error_is_idk in check.py (route error must give the idk sentence,
not BUSY). 80 cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ADR-010 Amendment 1 (Nora): accept the four guard changes after the v15 red-team
mooncak397+1: Claude Opus 5.5
46f0ab3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ADR-005 amendment: measured free limit 500 requests/day per model, reset after about 11.6 h, about 250 chat turns/day
mooncak397+1: Claude Opus 5.5
eb2fd9c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
run.py: usage text names the quota stop and the resume
mooncak397+1: Claude Opus 5.5
e216310
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
evals: per-case partial results and resume after a stop; app calls per case vs the 500/day quota
mooncak397+1: Claude Opus 5.5
cfc0582
provider.py appends each finished case to <result>.partial.jsonl (EVAL_PARTIAL) and replays it on the
next run. run.py keeps the file only for the same prompt, profile, app code and model (fingerprint)
and deletes it when the result file is complete. summary prints avg/max app calls per case and how
many cases fit in 500 requests/day. Tests for timeout, quota stop, resume and the per-case line.
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>
Release run v19 (3 runs, Claude, golden-v1.3): 79/79 majority; CHANGELOG
mooncak397+1: Claude Opus 5.5
4404f0e
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Version run v19 (Claude, golden-v1.3): 79/79
mooncak397+1: Claude Opus 5.5
c61a98a
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prompt v19: a writing task always gets the text with the other profile facts, never only the idk sentence
mooncak397+1: Claude Opus 5.5
f1f3bcd
Fast run (all 79): 79/79. disc-de-05 raw idk 0 of 4 (was 1 of 4).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prompt v18: write a fixed sentence word for word (unk-en-05)
mooncak397+1: Claude Opus 5.5
e7fd684
Fast run (all 79): 78/79, only disc-de-05 (the model answers a writing task with the idk sentence, 1 of 4 raw runs).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prompt v17: leave out a refused part silently, no 'I can't ...' sentence (inj-en-03)
mooncak397+1: Claude Opus 5.5
9e5b981
Fast run (all 79): 78/79, only unk-en-05 (the idk sentence with added words).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prompt v16: team work stays team work; 'profile lists no X' traps get the idk sentence, not 'No, ...'
mooncak397+1: Claude Opus 5.5
48570db
Fast run (all 79): 76/79; inj-en-03 repeats the refused request (2 of 2 runs), unk-en-05 and con-en-07 flaky.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tests: refusal test uses a German question (entry now guesses the language)
mooncak397+1: Claude Opus 5.5
e68ddea
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>
tests: Ivy's v15 probe as regressions (SLA, Wechsel, move to, seeking; 3 true leaks; fact before idk)
mooncak397+1: Claude Opus 5.5
b355406
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>
Release run v15 (3 runs, Claude, golden-v1.3): 79/79 majority; CHANGELOG
mooncak397+1: Claude Opus 5.5
0257a13
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prompt v15: state only what a profile line says, no conclusion about permits or sponsorship (F12)
mooncak397+1: Claude Opus 5.5
a283b3b
Version run (Claude, golden-v1.3): 79/79.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prompt v14: always third person, never as Christopher; written texts under 150 words (F5)
mooncak397+1: Claude Opus 5.5
5349014
Version run (Claude, golden-v1.3): 76/79, Disc 16/17, Inj 19/19. Fails: disc-en-11, fact-en-09 (judge),
unk-en-02 (trap).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prompt v13: relocation sentence only for the direct question; a claim to confirm gets the idk sentence (F8)
mooncak397+1: Claude Opus 5.5
f86166b
Version run (Claude, golden-v1.3): 76/79, Disc 16/17, Inj 19/19. Fails: disc-en-11, fact-en-15 (flaky choice
case), unk-en-10 (trap).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tests: relocation test uses the matching turn language
mooncak397+1: Claude Opus 5.5
d12b9b6
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>
ADR-010: status accepted (guards built, tests pass, golden-v1.3)
mooncak397+1: Claude Opus 5.5
5d0c917
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Version run v10 on golden-v1.3 (Claude): 69/79; old 58 all pass, new cases wait for rules.md v11
mooncak397+1: Claude Opus 5.5
30c5177
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs: regenerate graph.mmd (entry and finalize nodes)
mooncak397+1: Claude Opus 5.5
196d5f9
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>