# Benchmark Authoring and References (E0-2, E-G) Non-normative. How the private tasks and reference implementations for the Track B smoke (E-N) and later experiments are produced without contaminating them with knowledge of Aji's development. ## Separation of roles | Role | Context | Sees | Produces | |---|---|---|---| | Language developer (the agent working in this repository) | the whole development history | this public repository | language, harness | | Benchmark author | a fresh agent context in the private benchmark repository | only the brief below and [`harness.md`](harness.md) (task format, evaluator contract) | tasks, public and hidden tests, evaluator, manifest, reviewer notes | | Reference writer, one per language | a fresh agent context per language | one task statement, its language's starter workspace and the documentation a smoke participant gets (for Aji exactly the frozen Agent Reference Bundle) | a reference solution | | Owner | everything private | everything | reviews, freezes, runs | Rules: - The private repository is never shown to the language developer's conversation. Hidden tests, task designs and evaluator code are never pasted into it. - The benchmark author writes the evaluator from the task statement and does **not** tune it to reference implementations. - If a reference fails the evaluator because the task is ambiguous, the statement or evaluator is corrected and its `version` is increased, and the references are rerun. Then everything is frozen. After the freeze no change is allowed until the last run of the experiment. - The Aji reference is written by a separate agent, never by the language developer. Reference writers can run through the harness itself, which gives them exactly the participants' environment: `ajieval native` with the task, the language and generous limits. The runs live in the private repository, and their records are not shared with the language developer. ## Order ```text benchmark author (clean session) ↓ tasks and evaluators frozen ↓ Rust reference Zig reference Aji/AIR reference (three separate clean sessions) ↓ all PASS ↓ owner reviews metadata only ↓ ajieval freeze (smoke plan) ↓ 18 native runs in frozen order ``` If a reference writer finds a real ambiguity or an evaluator defect, the benchmark author may correct the task. Its version and hash then change, and all three references must pass the gate again. After the final freeze nothing is corrected until the 18th run. ## Prompt: benchmark author (owner's text) > You are an independent benchmark author. > > You are NOT an Aji language designer. Do not optimize tasks for Aji or for any specific programming language. > > You are working in a private benchmark repository. Do not expose hidden task details, evaluator logic, hidden tests, reference solutions, or mutations outside this repository. > > Read the benchmark-authoring requirements provided in the repository and create exactly two held-out systems-programming tasks: > > 1. one memory-safety-heavy streaming/binary-processing task; > 2. one concurrency-heavy bounded-processing task. > > The tasks must test the same broad capability families described by the benchmark protocol, but MUST NOT reproduce public example tasks, public Aji conformance programs, or task structures already documented in the Aji repository. > > For each task create: > > - language-neutral task statement; > - deterministic acceptance criteria; > - public tests; > - hidden tests; > - fuzz/property tests where useful; > - explicit memory/resource limits; > - evaluator implementing the repository evaluator contract; > - task manifest and hashes; > - reviewer notes listing ambiguities considered and how they were resolved. > > Constraints: > > - Rust, Zig and Aji/AIR must all be capable of solving the task. > - More than one implementation strategy must be valid. > - Hidden tests may test only requirements stated in the task. > - Do not reference Aji-specific features in the task statement. > - Do not inspect the Aji implementation repository. > - Do not design tests around known Aji verifier behavior. > - Do not simplify the task because one language makes a requirement difficult. > - Avoid accidental dependence on wall-clock timing. > - Concurrency behavior must be tested using deterministic histories/schedules where possible. > - Fail malformed input safely rather than relying on crashes. > - Keep evaluator behavior deterministic. > > Before freezing a task, review it as if you were implementing it independently in Rust, Zig and an unfamiliar third systems language. > > Do not write reference solutions. > > When both tasks and evaluators are complete, freeze them and output only an internal readiness report containing task IDs, versions, hashes, evaluator hashes and review status. The author needs the task directory format and the evaluator contract from [`harness.md`](harness.md). A copy of those two sections, placed in the private repository, is enough. Each language gets a starter workspace with a README describing the program's interface and a public test command. For Aji/AIR the README gives the entry point and the `aji run` invocation (grants, inputs), as in `dev-tasks/dev-echo/lang/aji_air/README.md`. ## Prompt: reference implementer (owner's text; one clean session per language) > You are an independent benchmark reference implementer for . > > You did not design these benchmark tasks and must not modify the task statement, evaluator, public tests or hidden tests. > > For each private benchmark task: > > 1. read only the task statement and the documentation made available to your environment; > 2. implement a correct solution in ; > 3. run the public checks available to you; > 4. submit the implementation to the benchmark evaluator; > 5. repair only the implementation if evaluation fails because of implementation defects. > > You MUST NOT: > > - modify the evaluator; > - weaken tests; > - inspect evaluator implementation or hidden test data unless the benchmark harness explicitly exposes a diagnostic intended for participants; > - use another language's reference implementation; > - access the Aji development repository; > - search the internet; > - add assumptions not present in the task. > > For Aji/AIR specifically: > - use only the frozen Agent Reference Bundle mounted by the harness; > - treat verifier diagnostics as part of the normal development interface; > - do not request language changes. > > For Rust and Zig: > - use only the frozen local documentation and pinned toolchain provided by the harness. > > A reference is accepted only when the frozen evaluator accepts it under the declared resource limits. > > After acceptance output only: > - task ID; > - language; > - evaluator verdict; > - implementation hash; > - toolchain version; > - number of compile/verify/test cycles. > > Do not describe hidden evaluator behavior. ## Gate E-G (before the 18 runs) All of the following must hold: ```text networkless shell for all native agents (verified: dev-netprobe) native configurations frozen (ajieval freeze) 2 private tasks reviewed evaluator frozen task/evaluator hashes frozen Rust references PASS Zig references PASS Aji/AIR references PASS Aji compiler commit frozen Agent Reference Bundle hash frozen Rust/Zig toolchains + docs frozen ``` `ajieval freeze PLAN.json` records the frozen state and a random cell order. `ajieval matrix PLAN.json` refuses to run if anything changed. Observations during the runs go to `ajieval journal PLAN.json "…"` and are acted on only after the last run. The freeze binds the commit of the whole Aji repository, since the Aji binary, the bundle and the harness live there. **No commit is made to this repository between `ajieval freeze` and the 18th run**, not even to documentation. ## What comes back to the language developer Only `ajieval summary RUNS_DIR`: - the PASS/FAIL matrix per task (agents × languages); - per cell: verified success, first-attempt success, repair cycles, tool calls, wall time, unique bundle tokens, context returned by tools, provider input cached/uncached, failure classification and where the failure was caught; - aggregates by language and by agent. It contains task IDs and numbers, never task statements, hidden tests or evaluator details. Failures are classified (`ajieval classify`) before the summary is shared.