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:
dev committed 2026-10-04 17:28:15 +03:00
1 parent b49003bdb9
commit d7bb9273f3
14 files changed
+250 -60

No files matched your search

+38 -1
View File
@@ -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