wip: shield index relations, dev evaluation tasks, Q-063 audit notes

Verifier borrow/provenance work, new phase3 shield_index conformance cases,
dev-intervals/dev-lru/dev-shards tasks with evaluate.py harness, and agent skill/hook config.
This commit is contained in:
dev committed 2026-10-17 12:30:37 +03:00
1 parent 2d750a0525
commit e3fc896a0a
68 files changed
+2132 -37

No files matched your search

@@ -0,0 +1,6 @@
# Interface
- Source: `main.air`, a text AIR module.
- Entry point: `@main(%in: cap<io.read>, %out: cap<io.write>, %heap: cap<mem.alloc>)`; any return type.
- The program is run as `aji run --fuel 400000000 --grant in=io.read --grant out=io.write --grant heap=mem.alloc:4194304 --stdin TEXT main.air`. Standard input is TEXT; the bytes written to standard output appear in the run record's `stdout` field, and the run must end with `"status":"returned"`.
- The heap budget is 4194304 bytes of live allocations; the run stops after 400000000 executed instructions.
@@ -0,0 +1,19 @@
#!/bin/sh
# Public test: the example from the task statement.
rec=$(aji run --fuel 400000000 --grant in=io.read --grant out=io.write --grant heap=mem.alloc:4194304 --stdin 'add 10 20
add 20 25
covered 24
remove 12 14
list
count
total
add 5 5
' main.air)
got=$(printf '%s' "$rec" | python3 -c 'import json,sys; r=json.load(sys.stdin); print(r.get("stdout","") if r.get("status")=="returned" else "<status "+str(r.get("status"))+">", end="")') || { echo "FAIL: no run record"; echo "$rec"; exit 1; }
expected=$(printf "%s" 'yes
10-12 14-25
2
13
error
')
if [ "$got" = "$expected" ]; then echo PASS; else echo "FAIL"; echo "--- expected"; printf '%s' "$expected"; echo "--- got"; printf '%s' "$got"; exit 1; fi
@@ -0,0 +1,6 @@
# Interface
- Source: `main.aji`, an `.aji` module.
- Entry point: `main(input: cap<io.read>, out: cap<io.write>, heap: cap<mem.alloc>)`; any return type.
- The program is run as `aji run --fuel 400000000 --grant input=io.read --grant out=io.write --grant heap=mem.alloc:4194304 --stdin TEXT main.aji`. Standard input is TEXT; the bytes written to standard output appear in the run record's `stdout` field, and the run must end with `"status":"returned"`.
- The heap budget is 4194304 bytes of live allocations; the run stops after 400000000 executed instructions.
@@ -0,0 +1,19 @@
#!/bin/sh
# Public test: the example from the task statement.
rec=$(aji run --fuel 400000000 --grant input=io.read --grant out=io.write --grant heap=mem.alloc:4194304 --stdin 'add 10 20
add 20 25
covered 24
remove 12 14
list
count
total
add 5 5
' main.aji)
got=$(printf '%s' "$rec" | python3 -c 'import json,sys; r=json.load(sys.stdin); print(r.get("stdout","") if r.get("status")=="returned" else "<status "+str(r.get("status"))+">", end="")') || { echo "FAIL: no run record"; echo "$rec"; exit 1; }
expected=$(printf "%s" 'yes
10-12 14-25
2
13
error
')
if [ "$got" = "$expected" ]; then echo PASS; else echo "FAIL"; echo "--- expected"; printf '%s' "$expected"; echo "--- got"; printf '%s' "$got"; exit 1; fi
@@ -0,0 +1,6 @@
[package]
name = "intervals"
version = "0.1.0"
edition = "2021"
[dependencies]
@@ -0,0 +1,5 @@
# Interface
- Cargo package `intervals` in this directory; the binary is `target/debug/intervals`.
- The program reads standard input and writes standard output, as the task describes.
- Only the standard library is available (no network, `--offline`).
@@ -0,0 +1 @@
fn main() {}
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
# Public test: the example from the task statement.
cargo build -q --offline || { echo "FAIL: build"; exit 1; }
got=$(printf '%s' 'add 10 20
add 20 25
covered 24
remove 12 14
list
count
total
add 5 5
' | ./target/debug/intervals) || { echo "FAIL: the program exited with an error"; exit 1; }
expected=$(printf "%s" 'yes
10-12 14-25
2
13
error
')
if [ "$got" = "$expected" ]; then echo PASS; else echo "FAIL"; echo "--- expected"; printf '%s' "$expected"; echo "--- got"; printf '%s' "$got"; exit 1; fi
@@ -0,0 +1,4 @@
# Interface
- Source: `main.zig`, built with `zig build-exe main.zig` into `./main`.
- The program reads standard input and writes standard output, as the task describes.
@@ -0,0 +1 @@
pub fn main() void {}
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
# Public test: the example from the task statement.
zig build-exe main.zig 2>&1 || { echo "FAIL: build"; exit 1; }
got=$(printf '%s' 'add 10 20
add 20 25
covered 24
remove 12 14
list
count
total
add 5 5
' | ./main) || { echo "FAIL: the program exited with an error"; exit 1; }
expected=$(printf "%s" 'yes
10-12 14-25
2
13
error
')
if [ "$got" = "$expected" ]; then echo PASS; else echo "FAIL"; echo "--- expected"; printf '%s' "$expected"; echo "--- got"; printf '%s' "$got"; exit 1; fi