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
This commit is contained in:
1 parent
d2932bd75a
commit
b49003bdb9
38 files changed
+1735
-5
No files matched your search
@@ -0,0 +1,63 @@
|
||||
[
|
||||
[
|
||||
{
|
||||
"text": "Reading the interface."
|
||||
},
|
||||
{
|
||||
"tool": "read_file",
|
||||
"input": {
|
||||
"path": "README.md"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "list_files",
|
||||
"input": {
|
||||
"path": "/docs"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "write_file",
|
||||
"input": {
|
||||
"path": "main.air",
|
||||
"content": "broken"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "run",
|
||||
"input": {
|
||||
"command": "aji check main.air"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "write_file",
|
||||
"input": {
|
||||
"path": "main.air",
|
||||
"content": "module echo\nair 0\nlang 0.1\nfeatures [arrays, capabilities, effects, ownership, resources]\n\nfn @main(%in: cap<io.read>, %out: cap<io.write>) -> void\neffects [io.read, io.write]\nentry:\n %b = local.alloc array<u8, 64>\n local.zero %b\n %m = borrow.mut %b\n %s = slice.make %m\n intrinsic io.stdin_read(%in, %s), ok -> @got, err -> @fail\ngot(%n: usize):\n %z = const.usize 0\n %part = slice.sub %s, %z, %n\n %pr = borrow.ref %part\n intrinsic io.stdout_write(%out, %pr), ok -> @done, err -> @fail2\ndone:\n borrow.end %pr\n borrow.end %part\n borrow.end %s\n borrow.end %m\n ret\nfail(%e: io_error):\n trap\nfail2(%e2: io_error):\n trap\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "run",
|
||||
"input": {
|
||||
"command": "sh test.sh"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "finish",
|
||||
"input": {
|
||||
"summary": "done"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,63 @@
|
||||
[
|
||||
[
|
||||
{
|
||||
"text": "Reading the interface."
|
||||
},
|
||||
{
|
||||
"tool": "read_file",
|
||||
"input": {
|
||||
"path": "README.md"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "list_files",
|
||||
"input": {
|
||||
"path": "/docs"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "write_file",
|
||||
"input": {
|
||||
"path": "src/main.rs",
|
||||
"content": "broken"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "run",
|
||||
"input": {
|
||||
"command": "cargo build"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "write_file",
|
||||
"input": {
|
||||
"path": "src/main.rs",
|
||||
"content": "use std::io::{Read, Write};\n\nfn main() {\n let mut buf = Vec::new();\n std::io::stdin().read_to_end(&mut buf).unwrap();\n std::io::stdout().write_all(&buf).unwrap();\n}\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "run",
|
||||
"input": {
|
||||
"command": "sh test.sh"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "finish",
|
||||
"input": {
|
||||
"summary": "done"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,63 @@
|
||||
[
|
||||
[
|
||||
{
|
||||
"text": "Reading the interface."
|
||||
},
|
||||
{
|
||||
"tool": "read_file",
|
||||
"input": {
|
||||
"path": "README.md"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "list_files",
|
||||
"input": {
|
||||
"path": "/docs"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "write_file",
|
||||
"input": {
|
||||
"path": "main.zig",
|
||||
"content": "broken"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "run",
|
||||
"input": {
|
||||
"command": "zig build-exe main.zig"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "write_file",
|
||||
"input": {
|
||||
"path": "main.zig",
|
||||
"content": "const std = @import(\"std\");\n\npub fn main(init: std.process.Init) !void {\n const io = init.io;\n var in_buf: [128]u8 = undefined;\n var fr: std.Io.File.Reader = .init(.stdin(), io, &in_buf);\n const data = try fr.interface.allocRemaining(init.arena.allocator(), .limited(1024));\n var out_buf: [128]u8 = undefined;\n var fw: std.Io.File.Writer = .init(.stdout(), io, &out_buf);\n try fw.interface.writeAll(data);\n try fw.interface.flush();\n}\n"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "run",
|
||||
"input": {
|
||||
"command": "sh test.sh"
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"tool": "finish",
|
||||
"input": {
|
||||
"summary": "done"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
Reference in new issue
Block a user