eval: advisory Jev failure classification and improvement triage
`classify --suggest` asks TypeSafe Jev for the protocol §27 category, where the failure was caught and the §38 cause, and stores the answer beside the human classification. Only failed dev/validation runs are sent; test-set runs are refused before any request (§29). `--auto-accept` acts only when triage.json is calibrated and every confidence meets its threshold. `calibrate` measures agreement with human labels per question. `triage` groups classified failures and proposes a routed change only across enough runs, tasks and agents, and withholds proposals while a frozen plan is incomplete. It reports; it never edits spec, bundle or code. The evaluator environment no longer carries TYPESAFE_* variables. The aji-jev skill records where Jev may and may not be used.
This commit is contained in:
1 parent
ba2cb1340a
commit
f733f7c7bb
8 files changed
+626
-8
No files matched your search
@@ -161,6 +161,20 @@ For the smoke test it also records the cause, decided before any language change
|
||||
- `model_capability`
|
||||
- `task_ambiguity`
|
||||
|
||||
### Advisory suggestions and improvement triage
|
||||
|
||||
```sh
|
||||
python3 -m ajieval classify RUN_DIR --suggest [--auto-accept] # needs TYPESAFE_API_KEY
|
||||
python3 -m ajieval calibrate runs/
|
||||
python3 -m ajieval triage runs/ [--plan PLAN.json] [--json]
|
||||
```
|
||||
|
||||
`classify --suggest` asks TypeSafe Jev, a System One classifier, for the category, the place the failure was caught and the cause. The answer is stored as `classification_suggestion` with per-option probabilities and confidence; it is not a classification. The questions and their option descriptions are defined once, in `ajieval/jev.py`. The state sent is minimal: task id, outcome, diagnostic codes, and the tails of the last three failing commands. Only failed runs of the `dev` and `validation` sets are sent; a `test`-set run is refused before any request, because sending it to a third party would disclose the held-out corpus (protocol §29).
|
||||
|
||||
`calibrate` compares suggestions with human classifications per question: agreement overall and among the suggestions the thresholds would accept. Thresholds, proposal minimums and routes live only in `tools/eval/triage.json`. Until it says `"calibrated": true`, `--auto-accept` does nothing. After that, a suggestion whose every confidence meets its threshold becomes the classification, marked `"source": "jev"`; human labels are never overwritten.
|
||||
|
||||
`triage` groups classified failures by (cause, language, category). A group becomes a proposal only when it has at least `min_events` runs across `min_tasks` tasks and `min_agents` agents, so one model struggling on one task never proposes anything (protocol §38). Each proposal is routed by cause to a layer. Diagnostic text, agent bundle, documentation and harness changes go to a reviewed patch or issue. A `language` cause goes only to an open-question entry carrying the evidence; an RFC is the owner's decision. `model_capability` is logged only. With `--plan`, proposals are withheld while that frozen plan still has cells to run, because changing Aji mid-experiment is online tuning. Triage reports; it never edits the specification, the bundle or the code.
|
||||
|
||||
## Track B: native agents
|
||||
|
||||
```sh
|
||||
|
||||
Reference in new issue
Block a user