codex-python / nodes /adversary /grammar.gf
tailot's picture
Upload folder using huggingface_hub
339ddd8 verified
Raw History Blame Contribute Delete
576 Bytes
-- Node adversary (to arbiter): runs full Python suite and detects failure loops.
-- NOTE: this specification has not been compiled with the GF toolchain in the authoring environment.
abstract PythonAdversary = {
cat
Check ; Verdict ;
fun
Challenge : Verdict -> Check ;
Confirmed : Verdict ;
Rejected : Verdict ;
Abstain : Verdict ;
}
concrete PythonAdversaryEng of PythonAdversary = {
lincat
Check, Verdict = Str ;
lin
Challenge v = "adversary" ++ v ;
Confirmed = "CONFIRMED" ;
Rejected = "REJECTED" ;
Abstain = "ABSTAIN" ;
}