MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / turn_is_valid

Function turn_is_valid

eval/run_real_model.py:476–480  ·  view source on GitHub ↗

A turn is real only if the agent ran without a fatal startup error.

(result)

Source from the content-addressed store, hash-verified

474
475
476def turn_is_valid(result):
477 """A turn is real only if the agent ran without a fatal startup error."""
478 if result.returncode != 0:
479 return False
480 return not any(pattern.search(result.stdout) for pattern in FATAL_TURN_PATTERNS)
481
482
483def extract_token_hints(output):

Callers 2

drive_hermesFunction · 0.85
drive_cursor_agentFunction · 0.85

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected