Files
aji/.claude/skills/aji-jev/SKILL.md
T
dev f733f7c7bb 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.
2026-10-07 22:21:47 +03:00

3.0 KiB

name, description
name description
aji-jev Use when classifying failed Aji evaluation runs, deciding whether a spec, diagnostic, agent-bundle or documentation improvement is warranted, or when TypeSafe/Jev comes up in this repository. Covers `ajieval classify --suggest`, `calibrate` and `triage`, and the hard limits on where Jev may be used.

Jev in Aji: advisory triage only

Jev (TypeSafe) is a System One classifier. It answers typed questions (choice, score, noul) about a small state and returns calibrated probabilities. In this repository it only suggests. The verifier, conformance tests and the owner decide.

Hard limits

  • Only tools/eval/. Never call Jev from src/, the verifier, the interpreter, build.zig, CI gates or conformance verdicts. Aji is deterministic, and an external model is not.
  • Only failed runs of the dev and validation sets. Never send a test-set run, a held-out task or anything from the private benchmark repository (protocol §29, spec 14 §12). jev.check_sendable enforces this; do not bypass it.
  • No language change follows from a classification alone. Protocol §38 requires repeated failures across tasks and agents; triage enforces this through the minimums in tools/eval/triage.json.
  • Nothing during a frozen experiment. Pass --plan to triage. Record observations with ajieval journal and act only after the last cell has run.
  • Never tune the language to the M or C corpus or to one benchmark task.

Workflow

  1. For each failed dev/validation run: python3 -m ajieval classify RUN --suggest. This needs TYPESAFE_API_KEY; never print or record it.
  2. A human confirms or overrides the suggestion with python3 -m ajieval classify RUN CATEGORY --cause CAUSE [--caught-by ...].
  3. Once enough runs have both a human label and a suggestion, run python3 -m ajieval calibrate runs/. Propose "calibrated": true and the thresholds in triage.json to the owner only when agreement among auto-accepted suggestions is high. Do not flip it yourself.
  4. Run python3 -m ajieval triage runs/ [--plan PLAN]. For each proposal, act according to its route:
    • diagnostics: patch the message in src/diag.zig and docs/reference/error-codes.md, add a test, open a PR.
    • agent_bundle / documentation: clarify docs/agent/, the Quick Reference or the reference without changing meaning. Check the bundle growth (tools/agent_bundle_tokens.py).
    • language: add an entry to docs/design/open-questions.md with the evidence (runs, tasks, agents, codes). Only the owner turns it into an RFC.
    • harness: fix tools/eval/.
    • task_ambiguity: run the task acceptance review (protocol §8).
    • model_capability: nothing.

Changing the questions

The option descriptions in tools/eval/ajieval/jev.py are the classifier's input. A change there changes questions_hash, and suggestions made under different hashes must not be mixed in calibrate. Keep the descriptions atomic and literal: Jev reads instructions at face value and handles multi-hop reasoning poorly.