E0-3/E0-4 groundwork: provider options, pinned docs, Track A/B in the protocol
- providers: per-model request extras (e.g. reasoning_effort), key_env, token_param (max_completion_tokens on api.openai.com); recorded - docs pinned to the toolchain being run: Rust offline docs from the sysroot, Zig langref and std source of the same installation; several mounts under a read-only /docs; hashes recorded (cached for big trees) - protocol: neutral model labels and calibration before classes (§2); smoke gates, fixed Aji commit, fixed per-model reasoning mode, slope of degradation (§39a); Track A controlled vs Track B native agents (§39b) - plan: E-C calibration, E-G gates, E-N native-agent run
This commit is contained in:
1 parent
b49003bdb9
commit
d7bb9273f3
14 files changed
+250
-60
No files matched your search
@@ -49,6 +49,18 @@ One model + one language + one task + one fresh workspace + one fresh agent cont
|
||||
| `openai` | OpenAI-compatible chat completions (`OPENAI_API_KEY`); also local servers such as vLLM, llama.cpp or Ollama via `base_url` |
|
||||
| `scripted` | replays fixed turns (self-tests) |
|
||||
|
||||
Per model, `extra` (JSON) is merged into every request body and recorded, for example `{"reasoning_effort": "medium"}`. `key_env` names the environment variable holding the key, and `token_param` chooses `max_tokens` or `max_completion_tokens`. Keys are never written to records.
|
||||
|
||||
**Documentation** is pinned to the toolchain being run:
|
||||
|
||||
| Language | Mounted under `/docs` |
|
||||
|---|---|
|
||||
| Aji | the Agent Reference Bundle |
|
||||
| Rust | the toolchain's offline documentation from the sysroot: std API, the Reference, the Book |
|
||||
| Zig | the matching language reference (`/docs/doc`) and standard library source (`/docs/std`) |
|
||||
|
||||
An environment variable (`AJI_EVAL_*_DOCS`) overrides this. Each mount's hash is recorded next to the compiler version, and hashes of large trees are cached in `~/.cache/ajieval`.
|
||||
|
||||
## Task directory (the interface to the private benchmark repository)
|
||||
|
||||
```text
|
||||
|
||||
@@ -73,6 +73,8 @@ Model classes are assigned before Aji evaluation.
|
||||
|
||||
Parameter count alone MUST NOT determine capability class.
|
||||
|
||||
Models enter an experiment under neutral labels (`M1`, `M2`, …), never under a presumed class. A class is assigned only from a calibration score: 5–10 neutral coding tasks unrelated to Aji, run in the same scaffold and the same production settings (owner decision after Phase 3). If calibration places two models close together, the classes are redefined before any hidden test is run. Declaring a model weak and then showing that Aji helps it is not evidence.
|
||||
|
||||
At least one locally runnable model SHOULD be included.
|
||||
|
||||
## Task
|
||||
@@ -1536,13 +1538,48 @@ Before the pilot, a small run checks the infrastructure, not the hypothesis:
|
||||
```text
|
||||
2 families (binary/stream parsing; concurrent bounded pipeline — owner decision after Phase 3)
|
||||
× 3 languages (Aji/AIR, Rust, Zig)
|
||||
× 3 model classes
|
||||
× 3 models (M1, M2, M3, calibrated per §2)
|
||||
× 2 runs
|
||||
= 36 runs
|
||||
```
|
||||
|
||||
It verifies that task statements are equivalent across languages, the harness works, the Agent Reference Bundle is sufficient, token and cost accounting is right, traces are stored completely and prompts carry no bias. No result of the smoke test is reported as evidence.
|
||||
|
||||
The smoke test is **Track A** (§39b): every model runs in the same scaffold (`tools/eval`), with the same system prompt, tools, turn limits, filesystem interface, documentation policy and evaluator. Each model uses one fixed production reasoning mode, the same for every language; reasoning modes are not artificially aligned across providers, and maximum modes are not used.
|
||||
|
||||
Gates before the 36 runs:
|
||||
|
||||
```text
|
||||
each model: live dev-echo run PASS
|
||||
Rust reference PASS evaluator
|
||||
Zig reference PASS evaluator
|
||||
Aji hand-written reference PASS evaluator
|
||||
task statement review PASS
|
||||
hidden tests review PASS
|
||||
```
|
||||
|
||||
Reference solutions are written only after task statements and evaluators are frozen, and are never used to derive hidden assertions after model behavior has been seen.
|
||||
|
||||
Toolchains and documentation are pinned to the benchmark environment: the run record stores each compiler version together with the hash of the documentation mounted for it.
|
||||
|
||||
All 36 runs use **one Aji commit**. Aji is not changed after the first results, even when a poor diagnostic or an awkward construct is obvious; failures are classified (§27; causes: language, documentation, agent bundle, diagnostics, harness, model capability, task ambiguity) after the matrix is complete, and only then does the next iteration begin. Otherwise the experiment becomes online tuning.
|
||||
|
||||
The quantity of interest is the slope of degradation as model capability decreases, per language, not the absolute success rates.
|
||||
|
||||
---
|
||||
|
||||
# 39b. Controlled and native-agent tracks
|
||||
|
||||
```text
|
||||
Track A — controlled language × model, one scaffold (tools/eval)
|
||||
tests Model Capability Compression (H4)
|
||||
Track B — native agent language × coding-agent product (each model in its
|
||||
vendor's agent, e.g. Codex, Claude Code, OpenCode/Pi)
|
||||
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. A first Track B run follows the smoke test: 2 tasks × 3 languages × 3 native agents × 1 run = 18 runs.
|
||||
|
||||
---
|
||||
|
||||
# 39. First concrete experiment
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"comment": "E-S engineering smoke test (protocol §39a): 2 tasks x 3 languages x 3 model classes x 2 runs = 36 runs. Copy next to the private task checkout, fill in task paths, models and the evaluator, then: python3 -m ajieval matrix plan.json (from tools/eval, with PYTHONPATH or cwd there). Infrastructure check only; no result is evidence.",
|
||||
"comment": "E-S engineering smoke test, Track A (protocol §39a, §39b); models are neutral labels M1-M3 until calibrated (E-C): 2 tasks x 3 languages x 3 model classes x 2 runs = 36 runs. Copy next to the private task checkout, fill in task paths, models and the evaluator, then: python3 -m ajieval matrix plan.json (from tools/eval, with PYTHONPATH or cwd there). Infrastructure check only; no result is evidence.",
|
||||
"tasks": ["../aji-bench/tasks/<binary-frame-decoder>", "../aji-bench/tasks/<bounded-pipeline>"],
|
||||
"languages": ["aji_air", "rust", "zig"],
|
||||
"models": [
|
||||
{"class": "frontier", "provider": "anthropic", "model": "<frontier model id>"},
|
||||
{"class": "mid", "provider": "openai", "model": "<mid model id>", "base_url": "<OpenAI-compatible endpoint>"},
|
||||
{"class": "small", "provider": "openai", "model": "<small/local model id>", "base_url": "http://127.0.0.1:8000/v1"}
|
||||
{"class": "M1", "provider": "openai", "model": "gpt-6.1-sol", "extra": {"reasoning_effort": "<fixed production mode>"}},
|
||||
{"class": "M2", "provider": "anthropic", "model": "claude-opus-5-5", "extra": {}},
|
||||
{"class": "M3", "provider": "openai", "model": "<exact GLM-5.3-Flash model id>", "base_url": "<Z.ai OpenAI-compatible endpoint>", "key_env": "ZAI_API_KEY"}
|
||||
],
|
||||
"runs": 2,
|
||||
"sandbox": "bwrap",
|
||||
|
||||
Reference in new issue
Block a user