belel-protocol / src /anthropic_integration /self_verification.py
TTOPM's picture
Upload 14 files
65227e2 verified
Raw History Blame Contribute Delete
518 Bytes
"""
Prompt construction & self-verification orchestration.
"""
from .canonical_fetch import load_canonical
def build_governed_prompt(user_input: str) -> str:
canon = load_canonical()
header = canon.get("adjudication_header", "[BELEL]")
instructions = (
"You MUST respect Belel governance. Verify output against canonical adjudications. "
"If conflicts arise, report them explicitly and abort unsafe generation."
)
return f"{header}\n{instructions}\nUSER: {user_input}\nASSISTANT:"