gobang, the Aji-native harness, joins Codex, Claude Code and OpenCode in
ajieval native. Like them it is an agent product: its runs are never
evidence for H4. Model ids choose the provider: claude-* the Anthropic
API, any other GLM via z.ai, fixture:PATH a scenario without network
(self-tests).
gobang reaches the model over its API, so the key's variable is passed
into the sandbox environment; NativeAgent.env supplies it, its value
never enters the run record, and a missing key stops the run before
anything is created. Tool processes run in gobang's own networkless
bubblewrap sandbox, so no shell wrapper is used. The transcript is
gobang's journal: usage, tool calls and the model come from its events,
the repair metrics from its toolchain tools (aji_check, aji_run,
run_tests with aji's exit codes), and its documentation tools count as
reads of /docs files.
Checked end to end on dev-echo (aji_source) with a fixture model: the
dev evaluator accepts the solution, the workspace holds only the
solution, and the first-check and first-test metrics are exact. With a
fake key the run reaches z.ai from the sandbox and ends INFRA_FAILED
(auth) without the key in any file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`ajieval sessions` pairs each human prompt with what the assistant did
just before it, and asks Jev whether the prompt was a correction and which
repository rule (AGENTS.md, the aji-jev skill, commit memory) the corrected
behaviour broke. Excerpts are truncated and credential-like strings
redacted; answers stay in a local log, and each prompt is sent once.
`sessions report` proposes clarifying a rule only when corrections pointing
to it recur across sessions (thresholds in triage.json); it never edits
instructions. `sessions hook` is meant for a personal SessionEnd hook: it
returns at once and scans in the background, and does nothing without a
TypeSafe key, which may now also come from ~/.config/typesafe/api_key.
`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.
Add std.heap with an exact explicit pure ordering operation, bounded
push, Copy-only peek, moving pop and empty-only free. Sift Copy indices
while complete owners remain in dense initialized storage; repair holes
through complete exchange. Reserve preserves layout on returned failure
and accounts for both old/new buffers and separately owned payloads.
Integrate normative contracts, RFC, references, bundle measurements,
independent heapq/permutation oracles and CLI/package/profile checks.
Validation: 1007 conformance cases; 34 heap GC fixtures and scheduled
stress; unit/Quick Reference, formatting, hosted smoke, 70 CLI checks,
109 source coverage constructs and unchanged AIR reference bundle.
Use explicit static hash/equality functions, dense complete key/value entries
and Copy probe indices. Preserve returned ownership and allocation failure
state without unsafe code or new runtime instructions.
Add normative contracts, API/reference budgets, 33 conformance cases, independent
Copy/owner dict traces and 55 CLI/package/profile checks. Full corpus: 947 passing.
Collection-every-step scheduler stress remains in progress, recorded in RFC/plan.
Register std.map with bounded U64Map<V>, exact key equality and explicit
allocation/growth. Preserve returned ownership, old slots on reserve failure
and original-authority refunds; support Copy values, owners and resources.
Cover collision/tombstone/wrap behavior, independent dictionary traces,
quota/cleanup/borrow/task rules, source/AIR parity and hosted/package CLI.
Publish the API, roadmap and measured documentation cost. General key
hashing/equality remains Q-037; numeric maps do not satisfy that gate.
Add the error_values feature and error.const through specification, AIR,
verification, interpretation and source lowering. Error values are Copy data
with no allocation, effects or authority. Keep enum.make semantics frozen.
Cover all registered tags, feature negotiation, payload/type errors and
authority rejection in AIR/source; verify canonical and hosted CLI behavior.
Record reference-bundle costs and the map preflight-validation prerequisite.
Embed std.hash with four ordinary safe byte functions: FNV-1a 64 and
Castagnoli CRC-32C, each with fresh and numeric continuation forms.
Specify exact constants, empty/chunk semantics, arbitrary continuation
states, target-independent numeric results and explicit serialization.
No heap allocation, authority, AIR, verifier or runtime change.
Propose the next U64Map<V> contract: exact key equality, bounded insert,
returned replacement/full ownership, tombstones, moving drain and
failure-preserving peak-charged rehash. Keep general HashMap<K,V> key
hash/equality policy open as Q-037. A checked slot prerequisite confirms
read-only Copy key/state fields over Option<V>, with explicit accounting
for both tags and owning payload cleanup; no map module is registered.
Validation: unit tests, 797 full conformance cases, 12 new fixtures;
all 11 hash cases with per-instruction collection and 12 schedule seeds
across four quanta, plus owning slot collection; 84 source/AIR, package
and hosted CLI checks; independent forward-polynomial CRC and arbitrary
precision FNV oracles for 286 inputs / 1144 results; 95/95 source coverage;
Zig formatting, whitespace and reference generation. Published vectors
come from RFC 9923 and RFC 3720, with explicit numeric/wire conventions.
Reference cost: source excluding AIR 53,993 -> 55,281 cl100k (+2.4%);
Quick Reference 7,747 -> 7,806 (+0.8%); AIR remains 175,736 bytes.
Map design remains outside both bundles. No empirical MCC or native
throughput claim; CRC initially uses eight bit steps per byte.
Embed std.deque with eleven generic operations implemented entirely in
safe Aji over initialized Option<T> buffer slots. Bounded pushes and
moving pops work at both ends; full pushes, out-of-bounds replacements
and nonempty free return ownership to the caller. Explicit reserve
preserves order and all state on allocation failure, charges the old
and new slot capacities at the allocation peak, and rotates whole
values after successful growth. No AIR, verifier or runtime change.
Specify the visible representation invariant, tag-inclusive allocation
accounting and empty-only cleanup. Add RFC 0025, a runnable owning
example, source/CLI conformance and CI coverage. Complete STD-6c;
HashMap, HashSet and BinaryHeap remain STD-6d.
Validation: unit tests and 785 full conformance cases; 28 deque fixtures;
focused collection after every instruction and 12 schedule seeds over
four quanta; 136 source/package/hosted CLI checks; an independent Python
deque oracle for 128 operations and 71 small growth configurations;
93/93 source coverage; Zig formatting, staged whitespace and bundles.
Reference cost: full source excluding AIR grows 52,384 -> 53,993 cl100k
tokens (+3.1%); Quick Reference 7,667 -> 7,747 (+1.0%). AIR stays at
175,736 bytes. Construction/growth still incur interpreter prefix-copy
overhead; no native performance or empirical MCC benefit is claimed.
Specialize explicit function, struct and enum templates into deterministic
ordinary AIR, with structural constraints and bounded expansion. Preserve
source provenance and readable names in specialization diagnostics.
Add Copy-only std.option/std.result and vertical specification, grammar,
Quick Reference, RFC and source coverage updates. Keep linear aggregates
and existing unsupported source from-returns explicit follow-up work.
Repair the finite-layout check through arrays under the existing E1003
contract, with positive and rejected source/AIR fixtures.
Validation: build, unit tests, 640 conformance cases, 82/82 source constructs,
32-seed generic task stress, agent-reference, formatting, hosted smoke,
20 generic and 36 package CLI checks. Record three-encoding documentation
budgets; AIR reference is unchanged.
Dynamic data-race detector for ordinary memory: vector clocks are the
task-keyed part of the weak-memory views, so happens-before follows every
synchronization edge already modelled; per-cell shadows with path
granularity. Enabled for every conformance run test (433, no false
positive); a unit test shows an unverified racy program caught on every
schedule. Reference program atomic_stats in .aji and hand-written AIR by an
independent author (equivalent:, 30 schedule seeds). Author feedback:
07a clarifications; Q-025 (no array construction) logged.
AIR: linear atomic<T> (AtomicScalar), atomic.new/take/load/store/RMW/
cmpxchg (two results)/fence with explicit orderings; feature atomics
published. Verifier: ordering tables (E4201), ordinary access (E4202),
effects [atomic] / [atomic, atomic.weak], linearity, take while lent
(E4101, also for mutex.take). Interpreter: timestamped message machine
(src/interp/weak.zig); views travel through spawn/join, channels, mutexes,
close and cancel; seq_cst reads the latest message and programs without
weak reads make no extra draw (existing records unchanged). aji explore:
exhaustive exploration that branches only before visible operations.
Litmus: 20/20 tests give exactly the oracle's sets; differential test
(1500 random programs) found no unsound outcome. .aji layer 10, Quick
Reference atomics, source coverage 67/67, audit report atomic_operations.
AIR bundle +5.9 %, QUICK.md +0.5k.
tools/litmus/enumerate.py was written by an independent author from spec 04
§20 alone, with the programs blind (outcome sets removed). check.py compares
its allowed sets with tests/litmus/*.lit: 20/20 equal. 21 self-tests derived
from the axioms. Both run in CI. The author's spec findings are Q-024.
AIR: types island<T>, frozen<T>, arc<T>, iref<T>; 16 instructions
(island.create/alloc/root/borrow/freeze/destroy, frozen.root/borrow/
release, arc.from_frozen/new/clone/release/root/borrow, iref.eq); features
islands (depends on heap) and arc (depends on islands) published.
Verifier: IslandSafe/ArcSafe (E2111 at the owner type), container child
borrows (one mut access per island), Send/Share rows (island not Share),
linear owners, mem.alloc effect, element rules (recursion through iref).
Interpreter: graphs with never-reused identities, T0010 for a foreign
iref, O(1) freeze/conversion/transfer, arc counts in a trace hook
(Options.arc_events), budgets per the quota table, collector support.
.aji layer 9: types, operations, island.at/frozen.at/arc.at as borrow
places with explicit container borrows, iref ==/!=.
Frontend fix: joins carry only variables the construct assigns (and that
are read again), so an unchanged linear value is never a block argument
while borrowed.
Tests: 10 AIR (phase4), 6 .aji run + 12 rejects (layer9), the reference
program island-pipeline in .aji, equivalent to an independently
hand-written AIR program (36 on 30 schedule seeds); unit tests for the
arc count trace and O(1) transfer. Quick Reference §7 graphs (checked
excerpt of quickref/graphs.aji); coverage 61/61. Bundle growth: AIR
+7.0%, Quick Reference +0.6k, source docs +4.2k (recorded).
Spec: quota rows match the header-reserved count; idioms and iref
recursion in spec 03 §22; P4-11 (air-text.ebnf gaps) recorded.
- programs/parallel_map, channel_transfer, tcp_echo_tasks: the Phase 3 exit
programs in .aji, with AIR equivalence on every schedule seed
- tools/source_coverage.py: every .aji construct (56) has a run/accept test
and, where it rejects, a reject test; CI step
- gaps filled: wrapping arithmetic run test, break outside a loop (E7006),
close_receiver without pending (E7004)
- plan: P6A-7 freeze criterion (owner decision); further twins gradually
- 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
A. Interpreter memory grew with the number of executed steps (one arena,
never reclaimed): block and call arguments, frames, frame storage, value
copies, place paths, channel buffers and per-step scratch now live in a
collectable execution heap. Between instructions, past a threshold, the
live state is copied into a fresh heap (sharing preserved) and the old one
released. Long-lived state (module, world, authority, task, channel and
region tables, the result) stays in the caller's arena. The guarded value
of a mutex is a separate cell (no interior pointers). Nothing observable
changes: fuel, schedule, PRNG, values, traps and run records are the same.
- test: five loop shapes x 100k/1M/4M iterations, measured with the
interpreter's own heap counters: live state after a collection does not
grow with the iteration count; the heap stays under a fixed bound
- conformance --collect-every-step: the second run of every run test
collects before every instruction; records must be byte-identical
(passes, also with --stress 20)
B. A void function whose body ends in an if/if-else/match/block/void call
lowered to `ret %` (malformed AIR, reported as E0001): it now lowers to
`ret`. Seven fall-through tests (six failed before).
Also: files_opened counts reads by relative path and file name; P6A-11
(malformed generated AIR as an internal compiler diagnostic) and Q-023
(ref of a whole array as an argument) recorded.
- 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
- intrinsics from the registry as plain calls: fallible ones are outcome
matches or `or trap` (E7006 otherwise), infallible ones plain calls
- resource operands by name, borrowed mut for the one operation and ended
on every edge; a mut binding/parameter passes as is; `mut f` is E7006
- closes consume with `move` (E7003); no inserted closes (E3002/E3001)
- data operands explicit (ref/mut/byte string, E7005 otherwise)
- file<…>, stream, listener types; cap.narrow.prefix with cap_error edges
- ref/mut unchecked s[i] (also as a binding) and assume(c) under
effects [unsafe]; boundary left to the verifier (E6001)
- trusted is reserved and rejected (E7006)
- parameter names preserved; generated names avoid them (normative)
- parser: >> closes two type arguments
- conformance: `equivalent:` compares the run record with a reference
AIR program (hello, file_copy, tcp_echo, narrow ok/not_subset/invalid,
random)
- spec 15, grammar, quick reference (io_error match fixed), plan, examples
src/frontend: lexer, AST, parser for the full 6A grammar (first error
only: one E7001 with span, expected and found), lowering to canonical
text AIR with a line map. Variables become SSA with block parameters
carried across if/while/for/loop joins; short-circuit and/or; checked,
wrapping and cast forms; calls; untyped let literals typed from later
uses, never guessed (E7007). The frontend repairs nothing.
check.checkFile: .aji → frontend → existing AIR parser and verifier;
every diagnostic at its source location, AIR location kept as
air_line/air_col; trap records gain source_location. CLI: check/run on
.aji, aji lower [--annotate].
Runner: .aji tests with the same headers; every accepted module must
lower deterministically, be canonical (lower → parse → print
unchanged) and match <file>.expected if present. Layer-1 tests: 6 run,
6 E7xxx rejects, 2 verifier-caught (E1002, E3101).
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.
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).
- 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
- 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
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.
--key-file / key_file: first line is the key, never recorded (only its
source). Self-tests run the openai and anthropic providers against a local
mock server: request translation, extras, token parameter, auth, tool
loop, token accounting, and no key in the record.