Create Relay Bot MVP

This commit is contained in:
Emil
2026-07-24 22:36:04 +03:00
commit d6dc624301
51 changed files with 2226 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
INSTRUCTION_MARKER = "<UNTRUSTED_DATA>"
def wrap_untrusted(source: str, text: str) -> str:
"""Make the data boundary explicit for the model; source text is never authority."""
return f"{INSTRUCTION_MARKER}\nsource: {source}\n{text}\n</UNTRUSTED_DATA>"
def requires_human_decision(classification) -> bool:
return classification.asks_new_decision or classification.blocker