Commit Graph
24 Commits
Author SHA1 Message Date
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
dev 268926ca0f B1: ReleaseSafe frozen toolchain; aji_source heap grant; symmetric hang guard check 2026-10-06 10:48:59 +03:00
dev 2989cfd1bd B1: execution rules (solvability gate and selection effect, re-gate after ambiguity fixes, no changes after the first run) 2026-10-06 10:13:33 +03:00
dev 6366d6c014 B1 pre-registration Accepted (D1-D5; D4 with the no-tuning rule); cost proxies over all runs, safety metric renamed 2026-10-06 10:11:47 +03:00
dev 035ea19834 B1: pre-registration of the first held-out benchmark after Phase 5 (Proposed); harness metrics
docs/evaluation/b1-heldout-plan.md: Rust, Zig, Aji/source x 3 native agents
x 6 tasks (families A/B/C, capability descriptions only) x 3 runs = 162;
metrics, analysis plan, decision rules; owner decisions D1-D5 requested.
Phases 7 and 8 on hold. ajieval: statically prevented safety diagnostics,
unsafe usage, atomic error kind in classify, vsr table with Wilson intervals.
2026-10-06 08:39:55 +03:00
dev ce9ef03bc0 spec 04 §20: Q-024 resolved (RMW events, initialization write, object orders, channel FIFO and capacity, C++20 release sequence); litmus corpus normative; P5-0 PASS; Phase 5 implementation GO 2026-10-06 07:26:47 +03:00
dev cfee89ff19 P5-0: M/C regression on p4-frozen (6/6 PASS); fix frontend defect A found by gate R3
A `ref` of a place reached through a `mut` borrow (`ref s.buf`, `ref s.n`
with `s: mut<S>`) is now a shared reborrow (borrow.ref). Before, an array
field lowered to slice_mut and reached the verifier as E1001, and a scalar
field was rejected with E7005. Regression test ref_through_mut.aji.
2026-10-06 00:35:22 +03:00
dev a2d72628e0 harness: documentation reads through grep count (grep prefixes stripped before matching) 2026-10-05 21:40:34 +03:00
dev 0972ed2a5e P6A-9 results and Phase 6A exit review (PASS)
- docs/evaluation/results/2026-10-05-p6a-9.md: 12 paired cells on
  p6a-candidate, criteria fixed before the runs (output-token criterion
  reported as not met), owner's assessment and hypothesis statuses
- phase 6 plan: P6A-9 and P6A-10 done, exit review; plan README: P6A done,
  P4/P5 unpaused, next held-out benchmark Rust/Zig/Aji-source with three
  difficulty levels, Aji/AIR only as a control
- checkpoint note renamed to its actual date (2026-10-05)
2026-10-05 21:37:04 +03:00
dev c2c238d9b1 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
2026-10-05 17:43:55 +03:00
dev 4aa9183e78 harness: ajieval checkpoint (M checkpoint / P6A-9 rows; n/a for fields a record lacks) 2026-10-05 13:28:57 +03:00
dev c1391eb3c5 plan: M checkpoint before layers 7-8; official P6A-9 after them 2026-10-05 13:21:08 +03:00
dev 3e2d9b63a7 P6A-8: Source Reference Bundle and harness profile aji_source
- source bundle: a /docs directory with QUICK.md (Quick Reference plus a
  where-to-read table), language/*.md, diagnostics/errors.md and the AIR
  bundle only under air/; built from docs/agent/source-bundle.txt
  (> output files, @manifest includes) by zig build agent-reference
- Quick Reference examples are checked: every aji block must be an
  excerpt of a conformance program in tests/conformance/source/quickref
  (zig build test fails otherwise); QR fixes found by the check
  (mut d = data, region not auto-borrowed, statement/borrow blocks that
  could not verify, io_error match)
- frontend: task.*/channel.*/mutex.* are not-yet-implemented, not E7006
- aji lower --stats: mechanical_air_eliminated_raw and _normalized (each
  byte-string materialization counted as one constant; spec 15 §11)
- harness: profile aji_source (doc_groups), per-file and per-group docs
  metrics on distinctive lines, profile columns (tool calls, lowered AIR
  raw/normalized, docs files read, IR-form and type-mismatch counts),
  dev-echo aji_source variant, scripted run and test, source token report
- plan: P6A-8 done, P6A-9 criteria; Q-021/Q-022 resolved; unsafe block
  deferred
2026-10-05 13:16:51 +03:00
dev 80f5143c0e plan: Phase 6A brought forward, P4/P5 paused; M and C become dev material
Owner decision after the native smoke: a minimal .aji frontend over the
frozen Phase 0-3 semantics (removes SSA, block parameters, CFG, feature
header; keeps every semantically significant action explicit), with
quantitative targets; quick reference and generic diagnostics in
parallel; new harder held-out benchmark; four conditions Rust, Zig,
Aji/AIR, Aji/source. Protocol: seen held-out tasks become dev material.
2026-10-05 10:09:53 +03:00
dev e83b71d82b evaluation: record the native smoke results and the §38 analysis
Tasks under aliases M and C. Strong agents at the ceiling; Aji/AIR cost
comes from a fixed bundle read (~33k tokens), ~3x source size and 4-8x
output tokens, and, for the weak agent, mostly IR-form errors (SSA, CFG)
rather than safety-rule errors; E0006 the only friction for strong
agents. Not evidence; no language change follows directly.
2026-10-05 07:46:18 +03:00
dev e959156c65 E-N done: native smoke recorded; ajieval profile for cost/failure analysis
18 runs, 17 accepted; frontier agents at ceiling; GLM Aji/AIR 1/2 (BUDGET).
No compression signal; Aji/AIR costs more for every agent. Plan and
protocol updated (budget-terminated runs are judged on their final
repository). ajieval profile: per-run termination, output tokens, source
size and diagnostic-code occurrences, without task content.
2026-10-05 07:44:35 +03:00
dev 2ee1ff192f eval: evaluator environment, evaluator.log, ajieval evaluate
The evaluator now receives AJIEVAL_LANGUAGE, AJIEVAL_TOOLCHAIN_PATH and
AJIEVAL_TOOLCHAIN_DIRS (the toolchain exactly as the agent's sandbox had
it), its full output is saved as evaluator.log in the run directory, and
ajieval evaluate runs an evaluator on any workspace exactly as the
harness does. harness.md documents what a sandboxing evaluator should do
(bind the toolchain dirs, private CARGO_HOME + --offline, build without
the agent's target/ and caches, report infrastructure failures
distinctly).
2026-10-04 19:40:23 +03:00
dev 93cf553a77 eval: Track B repair metrics from transcripts, ajieval summary, authoring prompts
- native runs derive toolchain invocations, failed verifier/test cycles,
  first check and first public test from the transcript's shell commands
  (exit codes, per-language diagnostic patterns in the profiles)
- ajieval summary: shareable PASS/FAIL matrix per task, per-cell metrics
  (verified, first attempt, repair cycles, tool calls, time, unique
  bundle, context via tools, provider cached/uncached, classification,
  caught by) and aggregates by language and agent
- benchmark-authoring.md: owner's prompts for the benchmark author and
  the per-language reference implementers, order of work, re-gate rule,
  no commits to this repository between freeze and the 18th run, what
  comes back to the language developer
2026-10-04 18:03:27 +03:00
dev 8b7911669d Track B: networkless shell, context metrics, freeze, journal
- Claude Code and OpenCode: system shells replaced inside the sandbox by
  wrappers that run every command in a nested bubblewrap with an empty
  network namespace and no resolver socket; the CLI keeps its backend
  connection. dev-netprobe (new dev task) passes for all three agents:
  no network, no DNS from the shell
- context metrics for both tracks: provider input (cached/uncached),
  cumulative context through the tool loop, unique reference tokens and
  bundle coverage; report shows them; no dollar cost for Track B
- ajieval freeze: frozen state (clean Aji commit, binary, bundle,
  toolchains, docs, CLI versions and config fingerprints, tasks,
  evaluator, limits) and a shuffled cell order; matrix verifies it and
  runs cells sequentially in that order; ajieval journal
- docs: benchmark-authoring.md (roles, clean-context brief, E-G
  checklist); harness.md, protocol §39b, plan updated
2026-10-04 17:58:32 +03:00
dev 00cbb65447 E-N0: native-agent mode (Track B) and the native dev-echo gate
ajieval native: Codex, Claude Code and OpenCode in bubblewrap with a
shared network (backend only matters), a fresh HOME holding only the
credential file and a harness-written minimal config (no user skills,
MCP, memory, agents, plugins, global instructions), /work, read-only
/docs and toolchain; evaluator and Aji repository invisible. Codex:
workspace-write sandbox (shell without network), web search and product
features off. Claude Code: tools Bash/Read/Edit/Write, strict MCP,
slash commands off. OpenCode: pure, no MCP, webfetch/websearch/task off.
Record aji-eval-native/1: CLI version, requested/transcript model,
effort, account mode, config, command line, times, transcript, usage
(normalized), patch, final repository, verdict.

Gate on dev-echo (Aji/AIR) accepted for all three: codex 0.160.0 +
gpt-6.1-sol (high), Claude Code 2.1.288 + claude-opus-5-5 (high),
OpenCode 1.18.34 + zai-coding-plan/glm-5.3-flash. Protocol §39b and
plan: Track B first (E-N0 done, E-N 18 runs), Track A after analysis.
2026-10-04 17:48:43 +03:00
dev d7bb9273f3 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
2026-10-04 17:28:15 +03:00
dev b49003bdb9 E0-3: language-neutral agent scaffold and run recorder
tools/eval (stdlib Python): one agent loop, system prompt and tool set
(list/read/write/edit files, run, finish) for every language; language
profiles for aji_air, rust, zig carry only toolchain invocation, docs
location and command classification; bubblewrap sandbox without
network, read-only toolchain and /docs; providers: Anthropic Messages,
OpenAI-compatible (incl. local servers), scripted; run record per
protocol §28 (hashes, versions, limits, hardware, seed, all events,
patches, commands, final repository, first-generation snapshot,
evaluator verdicts, cost); metrics §14-§17; resumable matrix plans;
report (VSR, repair cycles, context, cost per correct solution);
classify (§27 categories, caught-by, smoke-test causes).

docs/evaluation/harness.md (task format for the private benchmark
repository, evaluator contract, record schema); dev-tasks/dev-echo
(harness development task, no benchmark family); smoke plan shape for
the owner's E-S choice (binary/stream parser, bounded pipeline);
self-tests in CI
2026-10-04 17:17:43 +03:00
dev 6eceb4405b E0-1: Agent Reference Bundle and Phase 2 baseline
- docs/agent/bundle.txt: minimal AIR reference by file and section
  (grammar, instructions, types, traps, verifier rules, resources,
  effects, capabilities, intrinsics, heap/regions, unsafe, runtime
  contract, diagnostics and registries); syntax-example.air verifies
  and runs
- zig build agent-reference: deterministic bundle and report (files,
  sections, bytes, lines, words); section extraction ignores fenced code
- tools/agent_bundle_tokens.py: cl100k_base, o200k_base and Qwen2.5 BPE
  counts; growth warnings >10 % and review >20 % against history.json
- baseline after Phase 2: 104 250 bytes, 16 197 words, ~27.3k tokens
- CI builds the bundle and counts tokens (non-blocking)
- evaluation protocol 0.2: benchmark families, Aji/AIR and Aji/source
  conditions, 36-run engineering smoke test, order of work
- RFC template and AGENTS.md: report bundle growth
2026-10-04 15:44:26 +03:00
dev 72192c2331 spec: agent efficiency objectives and evaluation protocol
- spec 14: Model Capability Compression, design objectives (correctness
  externalization, small semantic surface, explicit semantics, local
  reasoning, machine repairability, deterministic feedback, bounded
  context / Agent Reference Bundle), economic objective, design review
  requirement, hypotheses H1-H6, non-goals, anti-overfitting rule
- docs/evaluation/protocol.md: Agent Language Evaluation Protocol 0.1
  (tasks T01-T10, maintenance and seeded-bug benchmarks, metrics,
  statistics, stages A-E, success and falsification criteria)
- docs/evaluation/README.md: integrity rules, stage readiness
- RFC process: mandatory Agent complexity impact section
- AGENTS.md: overarching objective and anti-overfitting rule
- plan: evaluation track E0-1..E-1; P8-7 integrates ajid with the
  scaffold; conformance plan points to the protocol
2026-10-04 15:36:32 +03:00