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:
1 parent
00cbb65447
commit
8b7911669d
16 files changed
+574
-43
No files matched your search
@@ -168,8 +168,10 @@ Per agent:
|
||||
| Agent | Configuration | Shell network |
|
||||
|---|---|---|
|
||||
| `codex` | `codex exec --json`; `approval_policy=never`; web search off; product features off (multi-agent, apps, browser, computer use, plugins, skills, goals, hooks…) | off (Codex `workspace-write` sandbox) |
|
||||
| `claude` | `claude -p --output-format stream-json`; tools limited to `Bash`, `Read`, `Edit` and `Write`; `--strict-mcp-config`; slash commands off | on |
|
||||
| `opencode` | `opencode run --pure --format json`; no MCP; `webfetch`, `websearch` and `task` off | on |
|
||||
| `claude` | `claude -p --output-format stream-json`; tools limited to `Bash`, `Read`, `Edit` and `Write`; `--strict-mcp-config`; slash commands off | off (networkless shell wrapper) |
|
||||
| `opencode` | `opencode run --pure --format json`; no MCP; `webfetch`, `websearch` and `task` off; no LSP downloads | off (networkless shell wrapper) |
|
||||
|
||||
**Networkless shell.** Inside the sandbox, the real shell binaries (`/usr/bin/bash`; `sh` follows its symlink) are replaced by wrappers. Each wrapper runs the command in a nested bubblewrap with a fresh, empty network namespace and without the resolver socket. The CLI process keeps the network to reach its backend. Every process a tool starts through a shell, `python3` sockets included, has neither network nor DNS. The live check is the dev task [`dev-netprobe`](dev-tasks/dev-netprobe/), which all three agents pass.
|
||||
|
||||
**Record (`aji-eval-native/1`).** The run directory holds:
|
||||
|
||||
@@ -191,7 +193,38 @@ Per agent:
|
||||
- tool calls and token usage as reported by the CLI, normalized to input, output and cached input;
|
||||
- the evaluator verdict.
|
||||
|
||||
A first-generation snapshot is not available in Track B.
|
||||
A first-generation snapshot is not available in Track B. There is no cost in dollars either: on subscriptions there is no honest cost per solution, so Track B reports success, time, tool calls and context. Economics stays with Track A.
|
||||
|
||||
## Context metrics (both tracks, `metrics.context`)
|
||||
|
||||
| Metric | Measures |
|
||||
|---|---|
|
||||
| `provider_input_tokens` | what the provider counted: total, cached and uncached input, and output |
|
||||
| `cumulative_context_tokens` | the text returned to the agent through its tool loop (every tool output, plus the task message), counted each time it was returned |
|
||||
| `unique_reference_tokens` | the distinct documentation text the agent saw: distinct lines in the outputs of tool calls that touched `/docs` |
|
||||
| `reference_coverage` | for a single-file reference (the Aji bundle), the fraction of its lines that the agent saw |
|
||||
|
||||
The gap between provider input and cumulative context is history resending, mostly cached. The gap between cumulative context and unique reference is rereading and verbose output. The tokenizer is `cl100k_base` if tiktoken is installed, otherwise bytes / 4. Each record names the one it used.
|
||||
|
||||
## Freezing and running an experiment
|
||||
|
||||
```sh
|
||||
python3 -m ajieval freeze PLAN.json # PLAN.freeze.json: frozen state + random cell order
|
||||
python3 -m ajieval matrix PLAN.json # verifies the freeze, runs cells sequentially in frozen order
|
||||
python3 -m ajieval journal PLAN.json "observation" [--run RUN_ID]
|
||||
```
|
||||
|
||||
The freeze records:
|
||||
|
||||
- the Aji commit (the repository must be clean), the `aji` binary and the bundle hash;
|
||||
- the language profiles, toolchain versions and documentation hashes;
|
||||
- for each native agent: the CLI version and binary hash, and a fingerprint of its configuration (config, command line template, task preamble, shell wrapper);
|
||||
- the harness commit, the task hashes, the evaluator hash and the limits;
|
||||
- the shuffled order of all cells.
|
||||
|
||||
If any of it changes, `matrix` stops. Problems seen during the runs go to the journal (`<out>/journal.md`) and are acted on only after the last run.
|
||||
|
||||
How tasks and references are produced without contamination: [`benchmark-authoring.md`](benchmark-authoring.md).
|
||||
|
||||
## Smoke test (E-S)
|
||||
|
||||
|
||||
Reference in new issue
Block a user