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

+13 -2
View File
@@ -45,6 +45,11 @@ def aggregate(runs):
"verified_success_rate": round(len(acc) / len(rs), 3),
"repair_cycles_accepted": mean([r["metrics"]["failed_verifier_cycles"] + r["metrics"]["failed_test_cycles"] for r in acc if r["metrics"].get("failed_verifier_cycles") is not None]),
"context_tokens_mean": mean([r["metrics"].get("input_tokens") for r in rs]),
"uncached_input_tokens_mean": mean([((r["metrics"].get("context") or {}).get("provider_input_tokens") or {}).get("uncached") for r in rs]),
"cumulative_context_tokens_mean": mean([(r["metrics"].get("context") or {}).get("cumulative_context_tokens") for r in rs]),
"unique_reference_tokens_mean": mean([(r["metrics"].get("context") or {}).get("unique_reference_tokens") for r in rs]),
"reference_coverage_mean": mean([(r["metrics"].get("context") or {}).get("reference_coverage") for r in rs]),
"elapsed_seconds_mean": mean([r["metrics"].get("elapsed_seconds") for r in rs]),
"output_tokens_mean": mean([r["metrics"].get("output_tokens") for r in rs]),
"tool_calls_mean": mean([r["metrics"]["tool_calls"] for r in rs]),
"first_check_accepted": sum(1 for r in rs if r["metrics"].get("first_check_accepted") or r["metrics"].get("first_build_accepted")),
@@ -57,10 +62,16 @@ def aggregate(runs):
def markdown(rows):
head = ["task", "language", "class", "model", "runs", "accepted", "VSR", "repair cycles (accepted)", "context tokens", "cost/correct USD", "unclassified failures"]
head = ["task", "language", "class", "model", "runs", "accepted", "VSR", "repair cycles (accepted)", "tool calls",
"provider input (uncached)", "cumulative context", "unique reference", "ref. coverage", "seconds", "cost/correct USD", "unclassified failures"]
out = ["| " + " | ".join(head) + " |", "|" + "---|" * len(head)]
for r in rows:
out.append("| " + " | ".join(str(x) for x in [r["task"], r["language"], r["class"], r["model"], r["runs"], r["accepted"], r["verified_success_rate"], r["repair_cycles_accepted"], r["context_tokens_mean"], r["cost_per_correct_usd"], r["unclassified_failures"]]) + " |")
# Track B runs on subscriptions: no honest cost per solution (protocol §39b).
cost = "n/a (Track B)" if r["class"].startswith("B:") else r["cost_per_correct_usd"]
out.append("| " + " | ".join(str(x) for x in [
r["task"], r["language"], r["class"], r["model"], r["runs"], r["accepted"], r["verified_success_rate"], r["repair_cycles_accepted"],
r["tool_calls_mean"], f"{r['context_tokens_mean']} ({r['uncached_input_tokens_mean']})", r["cumulative_context_tokens_mean"],
r["unique_reference_tokens_mean"], r["reference_coverage_mean"], r["elapsed_seconds_mean"], cost, r["unclassified_failures"]]) + " |")
return "\n".join(out)