M checkpoints recorded; harness statuses; memory test split; P6A-12
- results note docs/evaluation/results/2026-10-06-m-checkpoints.md: both checkpoints, owner's assessment (IR-tax closed at the engineering level, layer 7 GO; cost hypothesis open); plan status and order - P6A-12: source type-check completeness (E1001 reached the verifier from a source run); not a layer 7 blocker - harness: metrics.agent_status (max_tokens for a reply cut at its length limit, provider_rate_limited for 429/usage limits) and metrics.evaluation_status (accepted/rejected/evaluator_error/ infrastructure_failure/not_evaluated), kept apart; termination records max_tokens; checkpoint rows show both; evaluator contract: an infrastructure failure sets "infrastructure": true - interpreter memory test: fast form (20k-320k iterations, 256 KiB threshold via Options.collect_threshold) in zig build test; full form (100k/1M/4M) in zig build test-extended; CI job 'extended' also runs conformance with --collect-every-step
This commit is contained in:
1 parent
222c0c884c
commit
c2c238d9b1
13 files changed
+251
-19
No files matched your search
@@ -293,6 +293,28 @@ class DocsReadTest(unittest.TestCase):
|
||||
self.assertEqual(m["coverage_by_section"]["language/memory.md"], 0.0)
|
||||
|
||||
|
||||
class StatusTest(unittest.TestCase):
|
||||
def test_agent_and_evaluation_status(self):
|
||||
from ajieval import native
|
||||
with tempfile.TemporaryDirectory() as d:
|
||||
tr, err = os.path.join(d, "t.jsonl"), os.path.join(d, "e.log")
|
||||
def write(t, e=""):
|
||||
open(tr, "w").write(t)
|
||||
open(err, "w").write(e)
|
||||
write('{"part":{"reason":"tool-calls"}}\n{"part":{"reason":"length"}}\n')
|
||||
self.assertEqual(native.agent_status("exited", tr, err), "max_tokens")
|
||||
write('{"stop_reason":"max_tokens"}\n{"stop_reason":"end_turn"}\n')
|
||||
self.assertEqual(native.agent_status("exited", tr, err), "exited")
|
||||
write('{"part":{"reason":"stop"}}\n', "Error: 429 Too Many Requests: usage limit reached")
|
||||
self.assertEqual(native.agent_status("error_exit", tr, err), "provider_rate_limited")
|
||||
self.assertEqual(native.agent_status("exited", tr, err), "exited")
|
||||
self.assertEqual(native.evaluation_status(None), "not_evaluated")
|
||||
self.assertEqual(native.evaluation_status({"accepted": True, "gates": {}}), "accepted")
|
||||
self.assertEqual(native.evaluation_status({"accepted": False, "gates": {"builds": False}, "error": "build_failed"}), "rejected")
|
||||
self.assertEqual(native.evaluation_status({"accepted": False, "error": "evaluator timed out"}), "evaluator_error")
|
||||
self.assertEqual(native.evaluation_status({"accepted": False, "infrastructure": True}), "infrastructure_failure")
|
||||
|
||||
|
||||
class CyclesTest(unittest.TestCase):
|
||||
def test_repair_cycles_from_commands(self):
|
||||
from ajieval import native
|
||||
|
||||
Reference in new issue
Block a user