M checkpoints recorded; harness statuses; memory test split; P6A-12
- results note docs/evaluation/results/2026-10-06-m-checkpoints.md: both checkpoints, owner's assessment (IR-tax closed at the engineering level, layer 7 GO; cost hypothesis open); plan status and order - P6A-12: source type-check completeness (E1001 reached the verifier from a source run); not a layer 7 blocker - harness: metrics.agent_status (max_tokens for a reply cut at its length limit, provider_rate_limited for 429/usage limits) and metrics.evaluation_status (accepted/rejected/evaluator_error/ infrastructure_failure/not_evaluated), kept apart; termination records max_tokens; checkpoint rows show both; evaluator contract: an infrastructure failure sets "infrastructure": true - interpreter memory test: fast form (20k-320k iterations, 256 KiB threshold via Options.collect_threshold) in zig build test; full form (100k/1M/4M) in zig build test-extended; CI job 'extended' also runs conformance with --collect-every-step
This commit is contained in:
1 parent
222c0c884c
commit
c2c238d9b1
13 files changed
+251
-19
No files matched your search
@@ -93,7 +93,7 @@ The harness calls `CMD WORKSPACE LANGUAGE TASK_DIR` outside the agent's sandbox.
|
||||
{"accepted": true, "gates": {"verifier": true, "public_tests": true, "hidden_functional": true, "hidden_regression": true, "fuzz": true, "resources": true, "deterministic_runs": true, "schedule_exploration": true}}
|
||||
```
|
||||
|
||||
`accepted` follows protocol §13: all mandatory gates pass, with no partial success.
|
||||
`accepted` follows protocol §13: all mandatory gates pass, with no partial success. An evaluator that could not judge the solution because of its own environment (sandbox, toolchain, missing dependency) adds `"infrastructure": true`; the record then says `evaluation_status: infrastructure_failure` instead of a solution failure.
|
||||
|
||||
**Evaluator environment.** The harness calls the evaluator with the caller's environment plus three variables that describe the language toolchain exactly as the agent's sandbox had it:
|
||||
|
||||
@@ -216,6 +216,17 @@ Per agent:
|
||||
|
||||
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.
|
||||
|
||||
## Agent and evaluation status (Track B, `metrics`)
|
||||
|
||||
How the agent's session ended and what the evaluator says about the repository are recorded separately, so that a transport problem after a finished solution is not read as a failure of the solution, and a cut-off reply is not read as a normal exit.
|
||||
|
||||
| Field | Values |
|
||||
|---|---|
|
||||
| `agent_status` | `exited`, `max_tokens` (the last model reply stopped at its length limit: `finish_reason`/`stop_reason` `length` or `max_tokens`), `provider_rate_limited` (HTTP 429 or a usage limit, then an error exit), `error_exit`, `wall_time` |
|
||||
| `evaluation_status` | `accepted`, `rejected`, `evaluator_error` (no verdict: timeout, no JSON), `infrastructure_failure` (`"infrastructure": true`), `not_evaluated` |
|
||||
|
||||
`termination` keeps the process-level outcome, except that a cut-off final reply is recorded as `max_tokens` there too. `accepted` and the VSR come only from the evaluator.
|
||||
|
||||
## Context metrics (both tracks, `metrics.context`)
|
||||
|
||||
| Metric | Measures |
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
# 2026-10-06 — M checkpoints: Aji/AIR vs Aji/source (Phase 6A)
|
||||
|
||||
Non-normative. Diagnostic dev runs on task **M** (the memory-safety-heavy streaming task of the native smoke; private, not named here), one run per cell. **Not evidence** for any hypothesis in the protocol's sense (protocol §39a). Negative findings are kept (protocol §37). The private-side work was done by a clean-context operator; this repository received only numbers, diagnostic codes and documentation file names.
|
||||
|
||||
## Setup
|
||||
|
||||
- Agents as in the native smoke: N1 Codex + `gpt-6.1-sol` (high), N2 Claude Code + `claude-opus-5-5` (high), N3 OpenCode + `zai-coding-plan/glm-5.3-flash`.
|
||||
- Aji/source: the Source Reference Bundle (`QUICK.md` front door, `docs/agent/README.md`), sha256 `24cca814…a2843` in both checkpoints.
|
||||
- Each checkpoint ran from a frozen tag, with cells in a shuffled order, one at a time, each with a fresh workspace and HOME.
|
||||
|
||||
## Checkpoint 1 (tag `p6a-m-checkpoint`)
|
||||
|
||||
Aji/source × 3 agents, compared with the frozen Aji/AIR smoke runs.
|
||||
|
||||
| Agent | AIR | source | IR-form AIR → source | output tokens AIR → source |
|
||||
|---|---|---|---|---|
|
||||
| N1 | PASS | PASS | 0 → 1 | 13.3k → 15.4k |
|
||||
| N2 | PASS | FAIL | 6 → 0 | 30.6k → 12.3k |
|
||||
| N3 | PASS | FAIL | 50 → 7 | 156k → 55.8k |
|
||||
|
||||
Both source failures were classified with `toolchain_bug = yes`. The programs were correct on all evaluator cases. Two toolchain defects caused the failures and the diagnostics.
|
||||
|
||||
| Defect | Cause | Effect |
|
||||
|---|---|---|
|
||||
| A | The interpreter's memory grew with the number of executed steps. | Under the evaluator's 1 GiB limit the host process ran out of memory: N2 failed 4 cases, N3 failed 5. |
|
||||
| B | A void function ending in an `if` (or `if`/`else`, `match`, block or void call) was lowered to `ret %`. | Malformed AIR. Every `E0001` counted in the source runs came from this. |
|
||||
|
||||
Both were fixed in `222c0c8`, with a memory-invariant test, a collect-every-step conformance mode and fall-through tests.
|
||||
|
||||
## Checkpoint 2 (tag `p6a-m-checkpoint-2`)
|
||||
|
||||
Both conditions on the same fixed toolchain: M × {AIR, source} × 3 agents = 6 cells.
|
||||
|
||||
| | N1 AIR → source | N2 AIR → source | N3 AIR → source |
|
||||
|---|---|---|---|
|
||||
| result | PASS → PASS | PASS → PASS | FAIL → PASS |
|
||||
| IR-form diagnostics | 0 → 0 | 4 (`E0006`) → 0 | 0 → 0 |
|
||||
| repair cycles | 2 → 6 | 1 → 3 | 0 → 1 |
|
||||
| tool calls | 22 → 32 | 29 → 37 | 15 → 38 |
|
||||
| output tokens | 16.2k → 13.9k | 55.3k → 32.4k | 32.4k → 46.7k |
|
||||
| uncached input | 54.0k → 67.4k | 130.7k → 77.7k | 62.9k → 87.8k |
|
||||
| seconds | 658 → 600 | 763 → 702 | 797 → 1 491 |
|
||||
| AIR docs read | 33.0k → 0 | 35.9k → 1.5k | 33.7k → 2.1k |
|
||||
| source docs read | — → 3.6k + 6.2k | — → 3.6k + 6.6k | — → 3.6k + 7.9k |
|
||||
| program bytes | 19.0k → 7.5k | 17.1k → 7.8k | 0 → 17.0k |
|
||||
|
||||
In source, "docs read" counts the Quick Reference plus the language and diagnostics files.
|
||||
|
||||
**The one failure.** N3 on AIR produced no program. It made 15 reads, then its last reply hit the output length limit, with about 32k reasoning tokens. The CLI exited without writing a file. Classification: toolchain no, evaluator integration no, model logic not applicable. The same pattern as N3 on task C in the native smoke.
|
||||
|
||||
**Memory.** Peak RSS of the source programs on the largest cases was 12–38 MB. Run on the fixed toolchain, the checkpoint-1 workspaces need 20–26 MB; they needed 700–1 360 MB before the fix.
|
||||
|
||||
## Owner's assessment (2026-10-06)
|
||||
|
||||
| Hypothesis | Status |
|
||||
|---|---|
|
||||
| H_representation: direct AIR imposes a large representation overhead that the frontend removes | confirmed for design |
|
||||
| H_documentation | strongly supported |
|
||||
| H_source_correctness | checkpoint passed |
|
||||
| H_model_capability_compression | preliminary positive signal (N3: AIR no program, source accepted) |
|
||||
| H_cost_reduction | unresolved (N1 more expensive in source, N2 cheaper, N3 not comparable; one run per cell is too noisy) |
|
||||
|
||||
The diagnosis "direct AIR is the main cost of Aji/AIR" is closed at the engineering level, and layer 7 is unblocked. The criterion "AIR 3/3, source 3/3" was not applied literally. Its purpose was to show that source does not regress, and checkpoint 2 gave AIR 2/3 against source 3/3.
|
||||
|
||||
> Phase 6A checkpoints demonstrate that direct AIR imposes substantial representation and documentation overhead. The `.aji` frontend eliminates observed manual IR-form failures while preserving verifier-enforced semantics. Evidence for model-capability compression is promising but not yet statistically established.
|
||||
|
||||
## Follow-ups
|
||||
|
||||
- **P6A-12 (source type-check completeness).** N1's source run in checkpoint 2 got `E1001` ×4: a source type error that the frontend let through and the verifier reported on the lowered AIR.
|
||||
- **Harness: termination labels.** A reply that ended with `finish_reason=length` was recorded as `exited`. An HTTP 429 after an accepted solution was recorded as `error_exit`. The agent's transport status and the evaluation status are to be kept apart.
|
||||
Reference in new issue
Block a user