This commit is contained in:
Lars committed 2026-08-26 10:42:20 +02:00
1 parent 60f0d2830d
commit 53b1eff833
62 files changed
+6578 -355

No files matched your search

+7 -7
View File
@@ -183,11 +183,11 @@ def main() -> None:
expect(interaction["suggestions"] == [], "silence is not an interaction suggestion")
expect(any(item["pref_key"] == "reply_length" for item in interaction["defaults"]), "labeled product defaults")
from privacy_gateway import debug_last
intern = (turn.json().get("trace") or {}).get("intern") or ""
expect("Produktdefault" in (debug_last["rendered"] if debug_last else ""), "hint reaches dialogue prompt")
expect("Ein bis drei Sätze" in (debug_last["rendered"] if debug_last else ""), "length default is in hint not anonymous")
expect("anonyme Produktregel" in (debug_last["rendered"] if debug_last else ""), "prompt labels the moved preference")
expect("Produktdefault" in intern, "hint reaches dialogue prompt")
expect("Ein bis drei Sätze" in intern, "length default is in hint not anonymous")
expect("anonyme Produktregel" in intern, "prompt labels the moved preference")
proposed = propose_observation(
profile_id,
@@ -223,10 +223,10 @@ def main() -> None:
json={"body": "Heute Vormittag zum Markt, danach Kirschen, dann noch der Hafen bei 18:00 Uhr."},
)
expect(later.status_code == 200, "second turn")
from privacy_gateway import debug_last as last_hint
intern = (later.json().get("trace") or {}).get("intern") or ""
expect("Meist nur ein Satz" in last_hint["rendered"], "personal preference reaches hint")
expect("persönlich" in last_hint["rendered"], "personal override is labeled")
expect("Meist nur ein Satz" in intern, "personal preference reaches hint")
expect("persönlich" in intern, "personal override is labeled")
expect(later.json()["conversation"].get("narrative_mode"), "dialogue state remains automatic")
expect("long_story" in later.json()["conversation"], "long_story is conversation state")