HEL-827: implement durable life, receipt-gated disclosure and persona layers
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -50,7 +50,10 @@ def test_legacy_read_uses_saved_parameters_without_writes_or_recompilation(tmp_p
|
||||
assert tuple(store.query_one("SELECT * FROM bazi_core")) == raw_bazi
|
||||
turn(client)
|
||||
prompt = provider.calls[-1][0].content
|
||||
assert all(s["text"] in prompt for s in view["color"]["sections"])
|
||||
# R2 injects saved raw facts independently; six UI explanations are not a persona.
|
||||
assert '"expressiveness": 0.1' in prompt
|
||||
assert json.loads(raw_bazi[2])["day"] in prompt
|
||||
assert all(s["text"] not in prompt for s in view["color"]["sections"])
|
||||
history = [tuple(r) for r in store.query("SELECT * FROM chat_message")]
|
||||
updated = client.patch("/api/relation", json={"relation": "恋人"}).json()
|
||||
assert updated["color"] == view["color"]
|
||||
|
||||
Reference in New Issue
Block a user