E-N0: native-agent mode (Track B) and the native dev-echo gate
ajieval native: Codex, Claude Code and OpenCode in bubblewrap with a shared network (backend only matters), a fresh HOME holding only the credential file and a harness-written minimal config (no user skills, MCP, memory, agents, plugins, global instructions), /work, read-only /docs and toolchain; evaluator and Aji repository invisible. Codex: workspace-write sandbox (shell without network), web search and product features off. Claude Code: tools Bash/Read/Edit/Write, strict MCP, slash commands off. OpenCode: pure, no MCP, webfetch/websearch/task off. Record aji-eval-native/1: CLI version, requested/transcript model, effort, account mode, config, command line, times, transcript, usage (normalized), patch, final repository, verdict. Gate on dev-echo (Aji/AIR) accepted for all three: codex 0.160.0 + gpt-6.1-sol (high), Claude Code 2.1.288 + claude-opus-5-5 (high), OpenCode 1.18.34 + zai-coding-plan/glm-5.3-flash. Protocol §39b and plan: Track B first (E-N0 done, E-N 18 runs), Track A after analysis.
This commit is contained in:
1 parent
2c1fdf1cc6
commit
00cbb65447
8 files changed
+521
-17
No files matched your search
@@ -205,3 +205,27 @@ class MockAPITest(unittest.TestCase):
|
||||
self.assertEqual(seen[0]["body"]["thinking"]["budget_tokens"], 1024)
|
||||
self.assertEqual(seen[1]["body"]["messages"][-1]["content"][0]["type"], "tool_result")
|
||||
self.assertEqual(rec["metrics"]["input_tokens"], 140)
|
||||
|
||||
|
||||
class NativeTest(unittest.TestCase):
|
||||
"""Track B adapters without starting a CLI: configuration and usage
|
||||
normalization."""
|
||||
|
||||
def test_configs_disable_extras(self):
|
||||
from ajieval import native
|
||||
home = tempfile.mkdtemp()
|
||||
cfg = native.AGENTS["codex"].configure(home, "m", "high")[".codex/config.toml"]
|
||||
self.assertIn('web_search = "disabled"', cfg)
|
||||
self.assertIn("multi_agent = false", cfg)
|
||||
self.assertIn("network_access = false", cfg)
|
||||
argv = native.AGENTS["claude"].argv("m", "high", "PROMPT")
|
||||
self.assertEqual(argv[argv.index("--tools") + 1:argv.index("--tools") + 5], ["Bash", "Read", "Edit", "Write"])
|
||||
self.assertIn("--strict-mcp-config", argv)
|
||||
oc = native.AGENTS["opencode"].configure(home, "p/m", None)[".config/opencode/opencode.json"]
|
||||
self.assertFalse(oc["tools"]["webfetch"] or oc["tools"]["task"])
|
||||
|
||||
def test_usage_normalization(self):
|
||||
from ajieval import native
|
||||
self.assertEqual(native.normalize_usage({"input_tokens": 100, "cached_input_tokens": 60, "output_tokens": 5}), {"input": 100, "output": 5, "cached_input": 60})
|
||||
self.assertEqual(native.normalize_usage({"input_tokens": 10, "cache_read_input_tokens": 60, "cache_creation_input_tokens": 30, "output_tokens": 5}), {"input": 100, "output": 5, "cached_input": 60})
|
||||
self.assertEqual(native.normalize_usage({"input": 40, "cache_read": 60, "cache_creation": 0, "output": 5})["input"], 100)
|
||||
Reference in new issue
Block a user