HEL-827: implement durable life, receipt-gated disclosure and persona layers

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
白栖知
2026-10-24 09:04:40 +08:00
co-authored by multica-agent
parent 2d97050c7e
commit 4575b27515
18 changed files with 1916 additions and 19 deletions
+4 -1
View File
@@ -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"]