feat(lease): add single-turn Claude promotion trigger

This commit is contained in:
Jason Woltje
2026-08-08 16:05:04 -05:00
parent eccf9e9a7d
commit a5e88a8d97
10 changed files with 1304 additions and 6 deletions
@@ -33,7 +33,7 @@ def is_verbatim_receipt(message: str, challenge: str, binding: dict[str, object]
"""Require the exact one current-cycle receipt, not a transcript substring."""
expected = receipt_for(challenge, binding)
return hmac.compare_digest(message, expected)
return hmac.compare_digest(message.encode("utf-8"), expected.encode("utf-8"))
def latest_assistant_digest(message: str) -> str: