polyguard-openenv / app /training /process_feedback.py
TheJackBright's picture
Deploy PolyGuard OpenEnv Space
877add7 verified
"""Process-aware feedback checks."""
from __future__ import annotations
def build_process_feedback(parsed: bool, legal: bool, risk_reduced: bool, abstain_justified: bool) -> dict[str, bool]:
return {
"parsed_correctly": parsed,
"chosen_candidate_legal": legal,
"risk_reduced": risk_reduced,
"abstention_justified": abstain_justified,
}