Download src/anthropic_integration/self_verification.py from TTOPM/belel-protocol: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/TTOPM/belel-protocol/resolve/main/src/anthropic_integration/self_verification.py
- Command line
-
hf download hf://TTOPM/belel-protocol/src/anthropic_integration/self_verification.py
-
curl -L -o self_verification.py https://huggingface.co/TTOPM/belel-protocol/resolve/main/src/anthropic_integration/self_verification.py
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:" | |