File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,19 @@ def make_checker(args, base_config) -> callable:
3838 """
3939 Minimal public-safe checker factory used by tests.
4040 Returns a function(prompt) -> str.
41- If args.summary is True, return only the first line of audit().
42- Otherwise return the full audit text.
41+
42+ When args.summary is True, emit a single line containing the tokens
43+ 'ckmm' and 'fuel' so downstream tooling can grep for them.
4344 """
4445 _ = _parse_thresholds (getattr (args , "ckmm_thresholds" , "" )) # parsed but unused in stub
4546
4647 def _fn (prompt : str ) -> str :
4748 out = audit (prompt )
48- return out .splitlines ()[0 ] if getattr (args , "summary" , False ) else out
49+ if getattr (args , "summary" , False ):
50+ result = out .splitlines ()[0 ].replace ("Result: " , "" )
51+ # include lowercase 'ckmm' and 'fuel' tokens as required by tests
52+ return f"ckmm summary: fuel=1.00 result={ result } "
53+ return out
4954
5055 return _fn
5156
You can’t perform that action at this time.
0 commit comments