Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/blob/main/benchmarks/headstart/schema.json # aien-sovereign-core-mv AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-sovereign-core-mv / benchmarks / headstart / schema.json` 241 lines ยท 13785 bytes Raw Blame History 1 { 2 "$schema": "https://json-schema.org/draft/2020-12/schema", 3 "$id": "https://github.com/aien-spark/aien-sovereign-core/benchmarks/headstart/schema.json", 4 "title": "Headstart M0 build-baseline records (#532) and M5 A/B records (#536)", 5 "description": "Schemas for manifest.json (headstart-manifest/v1) and each line of samples.jsonl (headstart-sample/v1) written by scripts/bench/headstart-aien.sh. summary.json (headstart-summary/v1) is derived from samples.jsonl by scripts/bench/headstart-summarize.sh.", 6 "oneOf": [ 7 { "$ref": "#/$defs/manifest" }, 8 { "$ref": "#/$defs/sample" } 9 ], 10 "$defs": { 11 "loadavg": { 12 "type": "array", 13 "description": "/proc/loadavg 1, 5 and 15 minute values", 14 "items": { "type": "number" }, 15 "minItems": 3, 16 "maxItems": 3 17 }, 18 "manifest": { 19 "type": "object", 20 "required": ["schema", "run_id", "created_at", "source", "toolchain", "host", "build", "protocol", "scenarios", "stages"], 21 "properties": { 22 "schema": { "const": "headstart-manifest/v1" }, 23 "run_id": { "type": "string" }, 24 "created_at": { "type": "string", "format": "date-time" }, 25 "source": { 26 "type": "object", 27 "required": ["commit", "short", "origin", "worktree", "worktree_kind"], 28 "properties": { 29 "commit": { "type": "string", "pattern": "^[0-9a-f]{40}$" }, 30 "short": { "type": "string" }, 31 "origin": { "type": "string" }, 32 "worktree": { "type": "string", "description": "absolute path of the detached benchmark worktree" }, 33 "worktree_kind": { "type": "string" } 34 } 35 }, 36 "toolchain": { 37 "type": "object", 38 "required": ["rustc_vV", "cargo_V", "rust_toolchain_toml", "cargo_config_files", "env"], 39 "properties": { 40 "rustc_vV": { "type": "string", "description": "verbatim `rustc -vV` from the worktree root" }, 41 "cargo_V": { "type": "string", "description": "verbatim `cargo -V` from the worktree root" }, 42 "rust_toolchain_toml": { "type": "string" }, 43 "cargo_config_files": { "type": "array", "items": { "type": "string" } }, 44 "env": { 45 "type": "object", 46 "description": "build-relevant environment; the literal string when not set", 47 "additionalProperties": { "type": "string" } 48 } 49 } 50 }, 51 "host": { 52 "type": "object", 53 "required": ["arch", "kernel", "nproc", "cpu_models", "mem_total_kb", "mem_available_kb_at_setup", "disk_at_setup"], 54 "properties": { 55 "arch": { "type": "string", "description": "uname -m" }, 56 "kernel": { "type": "string" }, 57 "nproc": { "type": "integer" }, 58 "cpu_models": { "type": "array", "items": { "type": "string" } }, 59 "mem_total_kb": { "type": "integer" }, 60 "mem_available_kb_at_setup": { "type": "integer" }, 61 "disk_at_setup": { "type": "string" } 62 } 63 }, 64 "build": { 65 "type": "object", 66 "required": ["features", "profiles", "target_dir", "jobs", "cold_definition", "registry_cache"], 67 "properties": { 68 "features": { "type": "string" }, 69 "profiles": { "type": "object", "additionalProperties": { "type": "string" } }, 70 "target_dir": { "type": "string" }, 71 "jobs": { "type": "string" }, 72 "cold_definition": { "type": "string" }, 73 "registry_cache": { 74 "type": "object", 75 "required": ["state", "how", "fetch_wall_s"], 76 "properties": { 77 "state": { "enum": ["warm"] }, 78 "how": { "type": "string" }, 79 "fetch_wall_s": { "type": "number" } 80 } 81 } 82 } 83 }, 84 "protocol": { 85 "type": "object", 86 "required": ["samples_per_scenario", "load1_max", "load_wait_cap_s", "foreign_monitor_interval_s", "max_reruns_when_contaminated", "slow_cold_threshold_s", "foreign_definition", "contaminated_definition", "time_v_available"], 87 "properties": { 88 "samples_per_scenario": { "type": "integer" }, 89 "samples_reduced": { 90 "type": "object", 91 "properties": { "to": { "type": "integer" }, "reason": { "type": "string" } } 92 }, 93 "cold_rounds_run": { "type": "integer" }, 94 "load1_max": { "type": "number" }, 95 "load_wait_cap_s": { "type": "integer" }, 96 "foreign_monitor_interval_s": { "type": "integer" }, 97 "max_reruns_when_contaminated": { "type": "integer" }, 98 "slow_cold_threshold_s": { "type": "integer" }, 99 "foreign_definition": { "type": "string" }, 100 "contaminated_definition": { "type": "string" }, 101 "time_v_available": { "type": "boolean" }, 102 "quiet_flag": { 103 "type": "object", 104 "description": "enabled, tool, available and wait_cap_s are absent in runs made before the quiet-flag cap (baseline-`20261015`-`4c83e38`)", 105 "properties": { 106 "enabled": { "type": "boolean", "description": "HS_QUIETLOCK=1" }, 107 "tool": { "type": "string" }, 108 "available": { "type": "boolean", "description": "the quietlock tool was found on PATH" }, 109 "respected": { "type": "boolean", "description": "enabled and available; false means the flag was not checked" }, 110 "wait_cap_s": { "type": "integer", "description": "longest wait for the flag before proceeding with the sample marked contaminated" }, 111 "how": { "type": "string" }, 112 "first_stage": { "type": "string" } 113 } 114 } 115 } 116 }, 117 "scenarios": { 118 "type": "array", 119 "items": { 120 "type": "object", 121 "required": ["id", "kind", "command", "cwd"], 122 "properties": { 123 "id": { "type": "string" }, 124 "kind": { "enum": ["timings", "cold", "prime", "incremental", "settle"] }, 125 "command": { "type": "string", "description": "exact command line, run with CARGO_TARGET_DIR set to build.target_dir" }, 126 "cwd": { "type": "string" } 127 } 128 } 129 }, 130 "incremental": { 131 "type": "object", 132 "required": ["command", "steps", "series_per_kind", "order", "body", "iface", "reason"], 133 "properties": { 134 "command": { "type": "string" }, 135 "steps": { "type": "integer" }, 136 "series_per_kind": { "type": "integer" }, 137 "order": { "type": "string" }, 138 "body": { "type": "object" }, 139 "iface": { "type": "object" }, 140 "reason": { "type": "string" } 141 } 142 }, 143 "stages": { 144 "type": "array", 145 "items": { 146 "type": "object", 147 "required": ["stage", "started_at", "script"], 148 "properties": { 149 "stage": { "type": "string" }, 150 "started_at": { "type": "string" }, 151 "ended_at": { "type": "string" }, 152 "script": { "type": "string" } 153 } 154 } 155 }, 156 "cleanup": { "type": "object" } 157 } 158 }, 159 "sample": { 160 "type": "object", 161 "required": ["schema", "run_id", "sample_id", "scenario", "arm", "kind", "round", "step", "attempt", "aa_pair", "prep", "edit", "command", "cwd", "cargo_target_dir", "started_at", "wall_s", "time_v", "exit_status", "ok", "loadavg_before", "loadavg_after", "load_wait_s", "load_wait_capped", "mem_available_kb_before", "foreign", "contaminated", "final", "log_tail"], 162 "properties": { 163 "schema": { "const": "headstart-sample/v1" }, 164 "run_id": { "type": "string" }, 165 "sample_id": { "type": "string", "description": "--r-s-a" }, 166 "scenario": { "type": "string" }, 167 "arm": { "enum": ["A", "B", "OFF", "ON"], "description": "A/B: B exists only for an A/A pair (in the M5 ab stage A and B both run the OFF environment). OFF/ON: M5 (#536) arm environments HS_ARM_ENV_OFF and HS_ARM_ENV_ON of one toolchain" }, 168 "kind": { "enum": ["timings", "cold", "prime", "incremental", "settle", "ab", "verify"] }, 169 "cargo_bin": { "type": "string", "description": "M5: cargo binary that ran the command (HS_CARGO); absent in M0 samples" }, 170 "env_words": { "type": "string", "description": "M5: KEY=VALUE words added to the command environment (RUSTC, arm environment, verify extras); absent in M0 samples" }, 171 "round": { "type": "integer" }, 172 "step": { "type": "integer", "description": "incremental edit step (1..steps), 0 otherwise" }, 173 "attempt": { "type": "integer", "minimum": 1 }, 174 "aa_pair": { "type": ["string", "null"] }, 175 "prep": { "enum": ["cold", "warm"], "description": "cold = CARGO_TARGET_DIR removed before this attempt" }, 176 "edit": { "type": ["string", "null"], "description": "exact edit applied for incremental samples" }, 177 "command": { "type": "string" }, 178 "cwd": { "type": "string" }, 179 "cargo_target_dir": { "type": "string" }, 180 "started_at": { "type": "string", "format": "date-time" }, 181 "wall_s": { "type": "number", "description": "wall clock seconds from date +%s%N around the command" }, 182 "time_v": { 183 "type": "object", 184 "required": ["available"], 185 "properties": { 186 "available": { "type": "boolean", "description": "false when /usr/bin/time is missing; other fields are then absent" }, 187 "reason": { "type": "string" }, 188 "max_rss_kb": { "type": ["integer", "null"] }, 189 "cpu_percent": { "type": ["number", "null"] }, 190 "user_s": { "type": ["number", "null"] }, 191 "sys_s": { "type": ["number", "null"] }, 192 "elapsed": { "type": "string" }, 193 "exit_status": { "type": ["integer", "null"] }, 194 "max_rss_scope": { "type": "string" } 195 } 196 }, 197 "exit_status": { "type": "integer" }, 198 "ok": { "type": "boolean", "description": "exit_status == 0; failed samples are never counted in medians" }, 199 "loadavg_before": { "$ref": "#/$defs/loadavg" }, 200 "loadavg_after": { "$ref": "#/$defs/loadavg" }, 201 "quiet_flag_wait_s": { "type": "integer", "description": "seconds waited for the host quiet flag (quietlock); absent on samples taken before the runner checked it" }, 202 "quiet_flag_checked": { "type": "boolean", "description": "false when the quiet flag was disabled or the tool was missing; absent in runs before the cap" }, 203 "quiet_flag_wait_capped": { "type": "boolean", "description": "true when the flag was still held at protocol.quiet_flag.wait_cap_s; the sample is then contaminated" }, 204 "load_wait_s": { "type": "integer" }, 205 "load_wait_capped": { "type": "boolean", "description": "true when the 1-minute load never fell below protocol.load1_max within the cap" }, 206 "mem_available_kb_before": { "type": ["integer", "null"] }, 207 "foreign": { 208 "type": "object", 209 "required": ["at_start", "monitor_ticks", "max_seen", "seen"], 210 "properties": { 211 "at_start": { "type": "array", "items": { "type": "string", "description": "pid:comm:crate" } }, 212 "at_end": { "type": "array", "items": { "type": "string" }, "description": "snapshot right after the command ended; absent in runs before it was added" }, 213 "monitor_ticks": { "type": "integer", "description": "checks made every protocol.foreign_monitor_interval_s while the command ran" }, 214 "max_seen": { "type": "integer" }, 215 "seen": { "type": "array", "items": { "type": "string" } } 216 } 217 }, 218 "contaminated": { "type": "boolean", "description": "true when contamination_reasons is non-empty (in older runs: a foreign process at start or at a tick)" }, 219 "contamination_reasons": { 220 "type": "array", 221 "items": { "enum": ["foreign_at_start", "foreign_during", "foreign_at_end", "load_wait_capped", "quiet_flag_wait_capped", "quiet_hold_not_taken"] } 222 }, 223 "quiet_hold": { 224 "type": "object", 225 "description": "M5: per-sample quietlock hold (HS_HOLD=1) around the load wait and the timed command; absent in earlier samples", 226 "required": ["requested", "held", "id", "acquire_s", "refused"], 227 "properties": { 228 "requested": { "type": "boolean" }, 229 "held": { "type": "boolean", "description": "false when not requested, or when the hold was not taken (then the sample is contaminated: quiet_hold_not_taken)" }, 230 "id": { "type": ["string", "null"], "description": "quietlock hold id (QUIETLOCK_HOLD)" }, 231 "acquire_s": { "type": "integer", "description": "seconds from the first hold attempt to holding it" }, 232 "refused": { "type": "integer", "description": "hold attempts refused with exit 75 (another job took the flag first)" } 233 } 234 }, 235 "ice_reports": { "type": "integer", "description": "M5: rustc-ice-*.txt reports (internal compiler error) the sample left in the worktree root; their heads are appended to log_tail and the files removed; absent in earlier samples" }, 236 "final": { "type": "boolean", "description": "false when this attempt was contaminated and re-run" }, 237 "log_tail": { "type": "string", "description": "path, relative to the run directory, of the kept log tail; for a failed sample in M5 runs it starts with the error lines of the full log" } 238 } 239 } 240 } 241 }