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
This commit is contained in:
1 parent
72192c2331
commit
6eceb4405b
13 files changed
+470
-11
No files matched your search
@@ -65,4 +65,21 @@ pub fn build(b: *std.Build) void {
|
||||
run_conformance.addPassthruArgs();
|
||||
b.step("conformance", "Run the conformance suite").dependOn(&run_conformance.step);
|
||||
test_step.dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = conformance.root_module })).step);
|
||||
|
||||
// Agent Reference Bundle (spec 14 §3.7): zig-out/agent/{reference-bundle.md,report.json}.
|
||||
const bundle = b.addExecutable(.{
|
||||
.name = "aji-agent-bundle",
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("tools/agent_bundle.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
.imports = &.{.{ .name = "aji", .module = mod }},
|
||||
}),
|
||||
});
|
||||
const run_bundle = b.addRunArtifact(bundle);
|
||||
run_bundle.setCwd(b.path("."));
|
||||
run_bundle.addArgs(&.{ ".", "zig-out/agent" });
|
||||
run_bundle.has_side_effects = true;
|
||||
b.step("agent-reference", "Build the Agent Reference Bundle and report its size").dependOn(&run_bundle.step);
|
||||
test_step.dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = bundle.root_module })).step);
|
||||
}
|
||||
Reference in new issue
Block a user