Track B: networkless shell, context metrics, freeze, journal

- Claude Code and OpenCode: system shells replaced inside the sandbox by
  wrappers that run every command in a nested bubblewrap with an empty
  network namespace and no resolver socket; the CLI keeps its backend
  connection. dev-netprobe (new dev task) passes for all three agents:
  no network, no DNS from the shell
- context metrics for both tracks: provider input (cached/uncached),
  cumulative context through the tool loop, unique reference tokens and
  bundle coverage; report shows them; no dollar cost for Track B
- ajieval freeze: frozen state (clean Aji commit, binary, bundle,
  toolchains, docs, CLI versions and config fingerprints, tasks,
  evaluator, limits) and a shuffled cell order; matrix verifies it and
  runs cells sequentially in that order; ajieval journal
- docs: benchmark-authoring.md (roles, clean-context brief, E-G
  checklist); harness.md, protocol §39b, plan updated
This commit is contained in:
dev committed 2026-10-04 17:58:32 +03:00
1 parent 00cbb65447
commit 8b7911669d
16 files changed
+574 -43

No files matched your search

+18
View File
@@ -114,6 +114,24 @@ class RunTest(unittest.TestCase):
self.assertAlmostEqual(rec["cost_usd"], (m["input_tokens"] + 10 * m["output_tokens"]) / 1e6, places=6)
class FreezeTest(unittest.TestCase):
@unittest.skipIf((util.git_commit() or "+dirty").endswith("+dirty"), "repository has uncommitted changes")
def test_freeze_order_and_check(self):
from ajieval import freeze
d = tempfile.mkdtemp()
plan = {"tasks": [TASK], "languages": ["rust", "zig"], "runs": 2, "sandbox": SANDBOX, "evaluator": EVALUATOR[0],
"models": [{"provider": "scripted", "model": os.path.join(HERE, "scripts", "rust.json"), "class": "test"}]}
path = os.path.join(d, "plan.json")
util.write_json(path, plan)
_, frozen = freeze.write(path, order_seed=7)
self.assertEqual(len(frozen["order"]), 4)
self.assertEqual(freeze.check(path)["order"], frozen["order"])
plan["runs"] = 3
util.write_json(path, plan)
with self.assertRaises(SystemExit):
freeze.check(path)
class MatrixTest(unittest.TestCase):
def test_resume(self):
d = tempfile.mkdtemp()