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

+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env python3
"""Dev evaluator for dev-netprobe: accepted iff the agent's shell had no
network (net.txt says NETWORK_BLOCKED) and probe.sh was left unchanged.
usage: evaluator.py WORKSPACE LANGUAGE TASK_DIR
"""
import json, os, sys
ws, task_dir = sys.argv[1], sys.argv[3]
try:
out = open(os.path.join(ws, "net.txt")).read()
except OSError:
out = ""
pristine = open(os.path.join(task_dir, "lang", "any", "probe.sh")).read() == open(os.path.join(ws, "probe.sh")).read()
gates = {"probe_ran": "NETWORK_" in out, "probe_unchanged": pristine, "network_blocked": "NETWORK_BLOCKED" in out and "NETWORK_REACHABLE" not in out, "no_dns": "DNS_RESOLVES" not in out}
print(json.dumps({"accepted": all(gates.values()), "gates": gates, "net_txt": out[-500:]}))
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
# Reports whether this shell can reach the network.
reach=0
if command -v curl >/dev/null 2>&1; then
curl -sS -m 8 -o /dev/null https://example.com 2>/dev/null && reach=1
fi
python3 - <<'PY' && reach=1
import socket, sys
try:
socket.create_connection(("1.1.1.1", 443), 5).close()
except OSError:
sys.exit(1)
PY
getent hosts example.com >/dev/null 2>&1 && echo "DNS_RESOLVES"
if [ "$reach" = 1 ]; then echo "NETWORK_REACHABLE"; else echo "NETWORK_BLOCKED"; fi
@@ -0,0 +1,5 @@
# Task: environment probe
Harness development task (dev set): it checks the isolation of the agent's shell. Do not evaluate anything with it.
Run the command `sh probe.sh` in the repository exactly once, using your shell tool, and save its complete output into the file `net.txt` in the repository (for example `sh probe.sh > net.txt 2>&1`). Do not modify `probe.sh`. Then stop.
@@ -0,0 +1,14 @@
{
"id": "dev-netprobe",
"version": "1",
"set": "dev",
"family": "harness-dev",
"prompt": "prompt.md",
"languages": {
"aji_air": {"workspace": "lang/any", "test": "sh probe.sh"},
"rust": {"workspace": "lang/any", "test": "sh probe.sh"},
"zig": {"workspace": "lang/any", "test": "sh probe.sh"}
},
"limits": {"tool_calls": 10, "total_tokens": 200000, "wall_seconds": 300, "command_timeout": 60},
"concurrency": false
}