Documentation
¶
Overview ¶
Package judge is the deterministic rule-judge for scoring an output against a set of checks (SPEC-ADDITIONS §11 test-checks; ported from skillsaw's judge, itself a port of SkillOpt-Sleep's judges.py). hard = 1.0 iff every check passes, soft = passed/total. It is pure — values in, values out, no I/O and no model — so it carries the deterministic first line of behavioral scoring, with a model reserved only for what a rule cannot decide.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Op ¶
type Op string
Op is a rule-check operator.
const ( OpSectionPresent Op = "section_present" // a heading line contains arg OpRegex Op = "regex" // arg is an RE2 pattern that matches OpContains Op = "contains" // arg is a substring of the output OpMaxChars Op = "max_chars" // rune count <= atoi(arg) OpMinChars Op = "min_chars" // rune count >= atoi(arg) OpToolCalled Op = "tool_called" // output names the tool (contains arg) )
Rule-check operators (a closed set).
Click to show internal directories.
Click to hide internal directories.