code wiki / (root) / nx_swebench_status.nx

nx_swebench_status.nx

buildroot/runtime/nx_swebench_status.nx

3944 B86 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind bench
docsdependenciesstructsconstsfunctions

about

nx_swebench_status.nx -- MCP tools/call surface for the autonomous-fix capability (2026-07-17). Returns the LIVE SWE-bench-contract resolve rate as compact machine JSON, read from the NAS-published autograde dashboard (sites/nishifamily/compare/autograde/api.json -- the same measurement the public page shows, so the tool can never drift from what's published). This is a CURATED capability surface: a named, discoverable tools/call that emits STRUCTURED fields (resolve_pct as an integer + honest scope), not a raw url proxy. Read-only, no args, exit 0; fail-closed JSON if the source is absent. The measurement itself is produced laptop-side by nx_swebench_local_gate over the fix-loop ledger and published here by the autograde pulse -- this tool is the NAS-side read of that published truth. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_swebench_status.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close w slen sys_write find_first slen ↻ parse_uint_at wn w ↻ sys_mmap ↻ sys_write ↻

structs

none

consts

12const APIJSON: *u8 = "sites/nishifamily/compare/autograde/api.json" as *u8

functions

14func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: wfind_first
15func w(s: *u8) -> i64 { let n: i64 = slen(s); sys_write(1, s, n); return 0 }
called by 2: wnmain calls 2: slensys_write
16func wn(v: i64) -> i64
called by 1: main calls 3: wsys_mmapsys_write
30func find_first(hay: *u8, n: i64, needle: *u8, from: i64) -> i64
called by 1: main calls 1: slen
44func parse_uint_at(buf: *u8, p: i64, n: i64) -> i64
called by 1: main
60func main(argc: i64, argv: *i64) -> i64