E-N done: native smoke recorded; ajieval profile for cost/failure analysis
18 runs, 17 accepted; frontier agents at ceiling; GLM Aji/AIR 1/2 (BUDGET). No compression signal; Aji/AIR costs more for every agent. Plan and protocol updated (budget-terminated runs are judged on their final repository). ajieval profile: per-run termination, output tokens, source size and diagnostic-code occurrences, without task content.
This commit is contained in:
1 parent
2ee1ff192f
commit
e959156c65
5 files changed
+70
-2
No files matched your search
@@ -234,6 +234,7 @@ python3 -m ajieval freeze PLAN.json # PLAN.freeze.json: frozen state + rand
|
||||
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]
|
||||
python3 -m ajieval summary RUNS_DIR # shareable: PASS/FAIL matrix, per-cell metrics, aggregates
|
||||
python3 -m ajieval profile RUNS_DIR # shareable: termination, output tokens, solution size, diagnostic-code occurrences
|
||||
```
|
||||
|
||||
In Track B the repair metrics are derived from the transcript's shell commands, with their exit codes and outputs:
|
||||
|
||||
@@ -1578,7 +1578,7 @@ Track B — native agent language × coding-agent product (each model in it
|
||||
tests the practical economics of development
|
||||
```
|
||||
|
||||
Track B measures model + system prompt + context management + tool policy + compaction + agent heuristics together, so its results are never used as evidence for H4. Order (owner decision): the first experiment is Track B on existing subscriptions — a native dev-echo gate, then 2 tasks × 3 languages × 3 native agents × 1 run = 18 runs — and its analysis decides whether the controlled 36-run Track A (direct APIs, one scaffold) is bought next. Track B agents run with model, filesystem, shell, compiler, tests, documentation and the task statement only: web and search tools, MCP, skills, custom agents, subagents, external memory and global instructions are disabled where the product allows. Track B results never label models by capability; they describe how Aji behaves on three different agent stacks. Shell commands run without network in every agent. Track B reports success, time, tool calls and context, but no cost in dollars: on subscriptions there is no honest cost per solution, so H5 economics stays with Track A. The 18 cells run sequentially, in an order shuffled once at freeze time, each with a fresh HOME and workspace; nothing is changed until the last result, and observations go to a journal. The first question afterwards is vertical: does the same native agent become more reliable, or need less, moving from Rust/Zig to Aji/AIR — with the cheapest stack (GLM) as the earliest indicator of Model Capability Compression.
|
||||
Track B measures model + system prompt + context management + tool policy + compaction + agent heuristics together, so its results are never used as evidence for H4. Order (owner decision): the first experiment is Track B on existing subscriptions — a native dev-echo gate, then 2 tasks × 3 languages × 3 native agents × 1 run = 18 runs — and its analysis decides whether the controlled 36-run Track A (direct APIs, one scaffold) is bought next. Track B agents run with model, filesystem, shell, compiler, tests, documentation and the task statement only: web and search tools, MCP, skills, custom agents, subagents, external memory and global instructions are disabled where the product allows. Track B results never label models by capability; they describe how Aji behaves on three different agent stacks. Shell commands run without network in every agent. A run that ends on a budget (tool calls, tokens, wall time) is still judged by the evaluator on its final repository; a passing repository counts as accepted, and the termination reason is reported next to it. Track B reports success, time, tool calls and context, but no cost in dollars: on subscriptions there is no honest cost per solution, so H5 economics stays with Track A. The 18 cells run sequentially, in an order shuffled once at freeze time, each with a fresh HOME and workspace; nothing is changed until the last result, and observations go to a journal. The first question afterwards is vertical: does the same native agent become more reliable, or need less, moving from Rust/Zig to Aji/AIR — with the cheapest stack (GLM) as the earliest indicator of Model Capability Compression.
|
||||
|
||||
---
|
||||
|
||||
|
||||
+1
-1
@@ -100,7 +100,7 @@ Evaluation runs alongside the phases; each stage starts when the language featur
|
||||
| E-G | todo | Gate before E-N (and later E-S): private tasks reviewed; evaluator, task and evaluator hashes frozen; Rust, Zig and Aji/AIR references written by separate clean agents pass; Aji commit, bundle, toolchains and docs frozen with `ajieval freeze` (checklist in `docs/evaluation/benchmark-authoring.md`) | E0-2, E0-4 | all gates pass |
|
||||
| E-S | todo | Engineering smoke test, Track A: 2 families (binary/stream parser, concurrent bounded pipeline) × 3 languages × 3 models (M1–M3) × 2 runs = 36 runs on one Aji commit (protocol §39a); plan shape `docs/evaluation/smoke-plan.example.json`; failures classified by cause after the matrix, before any language change | E-C, E-G | harness, bundle sufficiency, accounting and traces verified |
|
||||
| E-N0 | done | Native dev-echo gate (Aji/AIR): Codex + `gpt-6.1-sol` (effort high), Claude Code + `claude-opus-5-5` (effort high), OpenCode + `zai-coding-plan/glm-5.3-flash` all accepted; networkless shell for all three verified by `dev-netprobe`; context metrics (provider / cumulative / unique reference) | E0-3 | `ajieval native`, `ajieval freeze`, `ajieval journal` |
|
||||
| E-N | todo | Track B native smoke, first experiment (owner decision): 2 tasks × 3 languages × 3 native agents (N1–N3) × 1 run = 18 runs on subscriptions (protocol §39b); never evidence for H4; plan shape `docs/evaluation/native-smoke-plan.example.json` | E-N0, E0-2, E-G | native-agent report; failures classified before any language change |
|
||||
| E-N | done | Track B native smoke (2026-10-05): 18 runs, 17 accepted; Codex and Claude Code 12/12 (ceiling), OpenCode/GLM Rust 2/2, Zig 2/2, Aji/AIR 1/2 (one BUDGET failure). No compression signal at this difficulty; Aji/AIR costs more time, tool calls and uncached input for every agent (fixed bundle reading ≈30–36k unique tokens per run; Rust runs read no docs). Infrastructure goals met. Not evidence (protocol §39a/§39b) | E-N0, E0-2, E-G | `aji-bench/owner/native-smoke/summary.md` (private); analysis per §38 pending (`ajieval profile`) |
|
||||
| E-A | todo | Stage A pilot (condition `Aji/AIR`): T01–T04 families × Aji/Rust/Zig × 3 model classes × 3 runs = 108 runs (protocol §39); not headline evidence | E-S, basic Phase 3 | pilot report: effect size, broken tasks, cost, instrumentation |
|
||||
| E-B | todo | Stage B: T05–T07 | Phase 3 | stage report |
|
||||
| E-C | todo | Stage C: T08, litmus repair | Phase 5 | stage report |
|
||||
|
||||
@@ -200,6 +200,10 @@ def main(argv=None):
|
||||
sm.add_argument("paths", nargs="+")
|
||||
sm.set_defaults(fn=lambda a: print(report.summary(a.paths)))
|
||||
|
||||
pf = sub.add_parser("profile", help="per-run cost profile: termination, output tokens, solution size, diagnostic codes")
|
||||
pf.add_argument("paths", nargs="+")
|
||||
pf.set_defaults(fn=lambda a: print(report.profile(a.paths)))
|
||||
|
||||
c = sub.add_parser("classify", help="record the primary failure category of a run (protocol §27)")
|
||||
c.add_argument("run")
|
||||
c.add_argument("category", choices=CATEGORIES)
|
||||
|
||||
@@ -135,3 +135,66 @@ def summary(paths):
|
||||
out.append(f"| {k} | {len(rs)} | {acc} | {round(acc / len(rs), 3)} | {mean(cyc)} | {mean([r['metrics'].get('tool_calls') for r in rs])} | {mean([r['metrics'].get('elapsed_seconds') for r in rs])} | {mean(unc)} |")
|
||||
out.append("")
|
||||
return "\n".join(out)
|
||||
|
||||
|
||||
def _source_size(run_dir, exts):
|
||||
files = lines = nbytes = 0
|
||||
ws = os.path.join(run_dir, "workspace")
|
||||
for root, dirs, names in os.walk(ws):
|
||||
dirs[:] = [d for d in dirs if d not in ("target", ".zig-cache", "zig-cache", "zig-out", ".git")]
|
||||
for n in names:
|
||||
if os.path.splitext(n)[1] in exts:
|
||||
p = os.path.join(root, n)
|
||||
with open(p, "rb") as f:
|
||||
data = f.read()
|
||||
files, lines, nbytes = files + 1, lines + data.count(b"\n"), nbytes + len(data)
|
||||
return files, lines, nbytes
|
||||
|
||||
|
||||
def _diagnostic_codes(r, run_dir):
|
||||
"""Counts of verifier/compiler diagnostic codes seen in the run's command
|
||||
outputs (codes only: no message text, no task content)."""
|
||||
import collections
|
||||
import re
|
||||
|
||||
from . import native
|
||||
|
||||
counts = collections.Counter()
|
||||
if r.get("track") == "B":
|
||||
cmds = native.command_events(r["agent"]["name"], os.path.join(run_dir, "transcript.jsonl"))
|
||||
outputs = [o for _, _, o in cmds]
|
||||
else:
|
||||
outputs = [json.loads(l).get("output") or "" for l in open(os.path.join(run_dir, "events.jsonl")) if '"event": "command"' in l]
|
||||
lang = r["language"]["name"]
|
||||
for o in outputs:
|
||||
if lang == "aji_air":
|
||||
counts.update(re.findall(r'"code":"([ET]\d{4})"', o))
|
||||
elif lang == "rust":
|
||||
counts.update(re.findall(r"error\[(E\d{4})\]", o))
|
||||
counts["error(no code)"] += len(re.findall(r"(?m)^error: ", o))
|
||||
else:
|
||||
counts["error"] += len(re.findall(r": error: ", o))
|
||||
return dict(counts.most_common())
|
||||
|
||||
|
||||
def profile(paths):
|
||||
"""Per-run cost profile for failure and cost analysis (protocol §27,
|
||||
§38): termination, output tokens, solution size and diagnostic codes.
|
||||
Shareable: numbers and diagnostic codes only."""
|
||||
from . import languages
|
||||
|
||||
out = ["| task | language | agent | termination | output tokens | source files / lines / bytes | diagnostic codes (count) |",
|
||||
"|---|---|---|---|---|---|---|"]
|
||||
for p in paths:
|
||||
for f in sorted(glob.glob(os.path.join(p, "**", "run.json"), recursive=True)):
|
||||
if "/superseded/" in f:
|
||||
continue
|
||||
r = util.read_json(f)
|
||||
d = os.path.dirname(f)
|
||||
exts = set(languages.load(r["language"]["name"]).get("source_extensions", []))
|
||||
files, lines, nbytes = _source_size(d, exts)
|
||||
codes = _diagnostic_codes(r, d)
|
||||
m = r["metrics"]
|
||||
out.append(f"| {r['task']['id']} | {r['language']['name']} | {_agent_key(r)} | {m.get('termination')} | {m.get('output_tokens')} | "
|
||||
f"{files} / {lines} / {nbytes} | {', '.join(f'{k} {v}' for k, v in codes.items()) or '-'} |")
|
||||
return "\n".join(out)
|
||||
Reference in new issue
Block a user