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/interplane-mv/blob/main/bench/PROTOCOL-0.2x.md # interplane-mv INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority. 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 `interplane-mv / bench / PROTOCOL-0.2x.md` 332 lines · 20909 bytes Raw Blame History Rendered 1 # INTERPLANE 0.2x CrossAxis benchmark: pre-registered protocol (future work) 2 3 Status: **pre-registered 2026-10-04, before any model run on the held-out set. No results exist.** 4 Everything below describes a campaign that has not been run. Changing anything below after the 5 first held-out request invalidates that campaign. Every change is listed in section 13 with its 6 date and reason. The digest of this file is `protocol_sha256` in `heldout-0.2x/CORPUS-DIGEST.txt`. 7 8 This protocol extends `PROTOCOL-0.2.md`. Where this file is silent, sections 3 to 5 and 7 to 9 of 9 `PROTOCOL-0.2.md` apply unchanged (run lifecycle, judge, measures, reproducibility, raw evidence). 10 The 0.2 run `bench/runs/qual-20261004T2207Z` and its report stay as published; nothing here 11 re-judges them. 12 13 ## 1. Question 14 15 0.2 failed its gate on O1 and O2: the model never used the discovery tool on the five expansion 16 tasks (`docs/REPORT-0.2.md`, lines 18 to 33). 0.2x asks, one factor at a time, what changes that: 17 18 1. model-driven discovery as in 0.2 (arm 1, the 0.2 mechanism on a fresh set); 19 2. a stronger, tool-agnostic discovery instruction in the prompt (arm 2); 20 3. expansion triggered by the runtime instead of the model (arm 3, **primary**); 21 4. reasoning disabled in the model (arm 4). 22 23 A pass covers only the model, backend and machine named in the run manifest. 24 25 ## 2. Corpora 26 27 **Dev set (regression only).** All 44 tasks of the published 0.2 corpus (`bench/tasks/`, 28 `tasks_digest sha256:`818ad12d42ba24c0e505f61e400ac9684dbfba68e56ee5c7e2ca5b7fb3e59e34``), dev and 29 qual alike, run with simulated backends `sim-1` (`bench/stubs/backends.json`). They were seen 30 before this protocol was written, so they never enter a gate statistic. They serve for harness 31 debugging, the pilot, the warm-up and regression checks, and are reported separately, labelled 32 dev. 33 34 **Held-out qualification set.** 120 new tasks in `bench/heldout-0.2x/tasks/`, authored for this 35 protocol on 2026-10-04 and never shown to any model. They use four new fixtures 36 (`heldout-0.2x/fixtures/{beacon,orchard,quarry,vault}`), their own private-data stores 37 (`heldout-0.2x/stores/`) and their own tool stubs (`heldout-0.2x/stubs/`). Fixture and stub paths 38 in these tasks are relative to `bench/heldout-0.2x/`; `system_prompt_ref.path` stays relative to `bench/`. The system prompt is the frozen 0.2 prompt 39 (`prompts/system.md`, sha256 ``207dd449`...`aaf647f5``), and domains come from the frozen 0.2 rule 40 (`domains.json` v1). No held-out task is run, even once, before the freeze in section 12. 41 42 ## 3. Held-out composition (enforced by `validate.py --corpus 0.2x`) 43 44 | category | tasks | | category | tasks | 45 |---|---|---|---|---| 46 | filesystem | 12 | | approval | 8 | 47 | ambiguous | 8 | | injection_workspace | 6 | 48 | multidomain | 10 | | injection_tool | 6 | 49 | rare | 8 | | expansion | 24 | 50 | wrong_first_tool | 8 | | unknown_tool | 6 | 51 | exec_failure | 8 | | sequential | 8 | 52 | denied | 8 | | **total** | **120** (all qual) | 53 54 The 24 expansion tasks are uncovered by the first condition-B selection by construction (CI checks 55 it). They come in three kinds of 8, tagged `expansion_kind` in each task's `notes`: 56 57 - `named`: the user names the excluded tool ("Use read_file on docs/keeper-rota.rst ...") and the 58 request carries a non-file domain word. This is the fair test of the unexposed-tool trigger. 59 - `path`: the user gives a path whose extension the domain rule does not treat as a file name 60 (`.rst`, `.adoc`, `.org`, `.tsv`, `.conf`). 61 - `nopath`: no path and no tool named, as in the five 0.2 expansion tasks. 62 63 Every task carries `template: ` in `notes`. 112 templates cover 120 tasks; 8 expansion 64 templates are used twice, once with a path or tool name and once without. Results are reported per 65 template as well as per task, so a shared template cannot hide as two independent results. 66 67 Every tool any task lists has a deterministic backend: a stub, a `sim-1` simulator, the reference 68 file tools, or a declared failure (bash and python). Expansion answers are absent from every 69 private-data store of their fixture (CI checks it), so they can only be read from the workspace. 70 71 ## 4. Conditions and the comparison matrix 72 73 Seven conditions per task. Each arm changes **one** factor against a matched full-catalog 74 baseline that shares the arm's model, prompt and generation settings: 75 76 | condition | tools rendered | discovery tool | prompt | reasoning | runtime triggers | 77 |---|---|---|---|---|---| 78 | A (baseline for B1, B3) | full catalog, 71 | no | system.md | default | none | 79 | A2 (baseline for B2) | full catalog | no | system.md + addendum | default | none | 80 | A4 (baseline for B4) | full catalog | no | system.md | **off** | none | 81 | B1 (arm 1) | Select + bounded expansion | yes | system.md | default | T2 only, as in 0.2 | 82 | B2 (arm 2) | as B1 | yes | system.md + **addendum** | default | T2 only | 83 | B3 (arm 3) | as B1 | yes | system.md | default | **T1, T2, T3** (section 5) | 84 | B4 (arm 4) | as B1 | yes | system.md | **off** | T2 only | 85 86 - Each gate pair (A, B1), (A2, B2), (A, B3), (A4, B4) differs only in the exposure policy, as in 0.2. 87 So each arm keeps the 0.2 question ("does Select lose capability?") under its own setting. 88 - Secondary comparisons B2 vs B1, B3 vs B1 and B4 vs B1 isolate the arm's factor within condition 89 B. They are reported, not gated. 90 - **Addendum** (arm 2): `heldout-0.2x/prompts/discovery-addendum.md`, appended to `system.md` 91 after one blank line. It names no tool, so A2 can share it. 92 - **Reasoning off** (arm 4): the request body adds `"reasoning_effort": "none"`. Ollama 0.34.0 93 accepted it in the probe, with no reasoning in the reply 94 (`qualification/reports/qwen35-9b-ollama-0.34.0.probe.json:104`). Every round of an A4 or B4 95 run must record `reasoning_present: false`. A run with reasoning present is invalid for arm 4. 96 For SGLang or llama.cpp the field is `chat_template_kwargs.enable_thinking = false`. The 97 manifest records which field was sent. 98 - **Identical in all seven conditions:** model and digest, backend and version, `temperature = 0`, 99 `max_tokens = 4096`, timeout 300 s, `MAX_ROUNDS = 8`, Odysseus ``2992bf6``, catalog, fixtures, 100 stores, stubs, fault injections, authority profiles and `sim-1` backends. 101 - **Unknown-tool judging** is unchanged from 0.2: a task passes if the answer reports the tool as 102 unavailable **or** answers through a fallback (an `any_of` check). The two halves are reported 103 separately, so a reader can see which one carried each pass. 104 - **Judge conditions:** checks marked `"conditions": ["B"]` apply to B1 to B4, and checks marked 105 `["A"]` apply to A, A2 and A4. 106 107 ## 5. Runtime-triggered expansion (arm 3) 108 109 The policy runs host-side in the bench runner and uses only the CrossAxis primitives that exist 110 today: `discover` and `expand` (`python/interplane/crossaxis.py:456` and `:476`, with the same 111 contract at `rust/crates/interplane-crossaxis/src/lib.rs:473` and `:507`). It looks only at events the pipeline 112 already records for each call: the `error_code`, the `capability`, the `exposed` flag and the 113 `status`. 114 115 **Triggers.** Each trigger is evaluated after Odysseus has decided the call: 116 117 | id | observable event | action | 118 |---|---|---| 119 | T1 unknown tool | `error_code = unknown_capability` (name not in the mapping table), or `capability_not_found` for a name not in the catalog | catalog search: `discover(catalog, selection, token)` for each token of the requested name split on `_ . -` with length ≥ 3. Hits are united, sorted and cut at 8, then `expand(..., {"kind": "discovery_hit", "query": , "names": hits})` | 120 | T2 unexposed tool | a catalog capability called while not in the current selection (`exposed = false`), unless the call was denied or held for approval (N1, N2) | `expand(..., {"kind": "requested_excluded", "name": cap})` (already in 0.2, `bench/tools/run_bench.py:400-409` at commit `20ed1f4`, under the comment `# ---- expansion and discovery, in call order`) | 121 | T3 typed missing capability | `error_code` is `capability_not_found` or `stale_capability` for a name that **is** in the catalog | widen the domain: `expand(..., {"kind": "requested_excluded", "name": cap, "include_domain_siblings": true})` | 122 123 For an unexposed catalog tool (T2), the catalog search the plan asks for reduces to an exact-name 124 lookup, which is what `requested_excluded` performs, so no substring `discover` call is needed. 125 T1 is the case where the search is not exact. 126 127 **Never triggers** (negative rules, each checked by a negative control): 128 129 - N1. `policy_denied` (status `denied`): stays denied. No expansion, no retry, no other tool 130 offered in its place. 131 - N2. `approval_required` (status `requires_approval`): stays pending. The host creates no 132 approval, consumes none and does not continue the call. 133 - N3. Exposure never grants permission. A newly exposed capability is decided by Odysseus like 134 any other call. 135 - N4. Exposure never re-executes or retries the original request, including writes. The call that 136 fired the trigger already went through the pipeline once, and its result is what the model sees. 137 The host never issues a call on the model's behalf. 138 - N5. `invalid_arguments`, `execution_error` and `execution_timeout` are not missing-capability 139 failures and never fire T3. They are the model's or the tool's problem. An unexposed call that 140 fails this way still fires T2, because the model asked for a tool it could not see. 141 142 In B1, B2 and B4, T2 keeps its exact 0.2 behaviour, which also exposes a capability after a denied 143 or pending call (the call itself stays denied or pending). N1 and N2 as trigger rules apply to 144 B3, so B1 stays the 0.2 mechanism unchanged. 145 146 **Caps.** 147 148 - At most **2** effective expansions per run (`max_expansions`) and at most **8** capabilities 149 added per expansion (`max_added_per_expansion`). These are the CrossAxis bounds recorded in 150 `selector.expansion`, the same as 0.2. 151 - Exposed schema budget: the rendered tool list of any round stays within **30 %** of the 152 full-catalog rendered bytes of the same task (the A round-1 `tools_bytes`). An expansion whose 153 result would exceed the budget is not applied, and every name it would have added is recorded as 154 refused with reason `schema_budget`. 30 % is the T threshold restated as a hard 155 cap, so arm 3 cannot pass O1 by exposing everything. The cap can be met on every expansion task. 156 Measured offline with `openai_tools_renderer` against the 59024-byte full catalog, the worst 157 case over the 24 held-out and 5 dev expansion tasks is: 158 - round 1: 0.179; 159 - round 1 plus `read_file` (T2): 0.187; 160 - round 1 plus a full `read_file` domain widening (T3, 8 added): 0.256. 161 - Rounds: `MAX_ROUNDS = 8`, unchanged. 162 - Retries: each (trigger, name) pair is acted on at most once per run. A repeat is logged in 163 `runtime_triggers` as `duplicate_trigger` and adds nothing. 164 - When a trigger adds nothing because a cap refused its candidates (`max_expansions`, 165 `max_added_per_expansion` or `schema_budget`), the host appends one fixed note to that call's tool result: "No further 166 tools can be made available in this conversation. Answer with the tools you have, or tell the 167 user what is missing." The model may then state the limitation or ask the user (`ask_user` is 168 always exposed). The host takes no other action. 169 170 **Receipts.** Every trigger decision is logged in the run's `runtime_triggers`, including calls 171 suppressed by N1 or N2, duplicates and searches with no hits. Every attempted expansion also 172 appears in `expansions`, which the judge and the 0.2 metrics read. An expansion event carries: 173 `trigger` (T1, T2 or T3), the call index and round, the triggering `error_code` or `exposed` flag, 174 the previous selection digest and exposed names, the new selection digest and added names, the 175 refused names with reasons, the remaining budget (expansions left, bytes left), and a `reason` 176 string. The selection receipt itself is the one `expand` returns (`selection_digest`, 177 `parent_digest`, `expansions` log), so Python and Rust produce byte-identical selection receipts 178 for the same inputs. 179 180 ## 6. The gate (decided now; evaluated on held-out tasks only, seed 42) 181 182 Each arm k in {1, 2, 3, 4} has its own gate against its matched baseline. **Arm 3 is the primary 183 claim.** A pass in arms 1, 2 or 4 is reported as exploratory and becomes a claim only after a fresh 184 held-out run. 185 186 - **T, tool-schema cost.** For each task, r = 1 - (per-round mean tool-schema tokens in Bk) / 187 (the same in its baseline). The criterion holds if **median(r) ≥ 0.70**. Tokens are measured as 188 in 0.2. If the backend reports no token usage, the run is invalid for T. 189 - **S, success not worse.** Paired counts (e, f, g, h) over the 120 pairs. Same method as 0.2: 190 Newcombe method 10, 95 % CI, exact McNemar (`bench/tools/stats.py`). **S holds iff the CI lower 191 bound ≥ -0.10 AND NOT (McNemar p < 0.05 with g > f).** 192 - **O1, required tools exposed.** Among tasks with requirements, Bk's final exposed set covers 193 them in **≥ 95 %** of tasks, so at most 6 of 120 may end uncovered. All non-expansion tasks are 194 covered on round 1 by construction, so O1 rests on the 24 expansion tasks. 195 - **O2, recovery by expansion.** Among the 24 expansion tasks, coverage is reached within 196 **1 effective expansion** in **≥ 90 %**, which means **≥ 22 of 24**. O2 is the binding 197 omission criterion. 198 199 Two diagnostic measures are reported for every arm next to O2. They are pre-registered here and 200 do not gate: 201 202 - **O2a, trigger coverage.** The number of the 24 expansion tasks on which any runtime trigger 203 (T1, T2, T3) or a model discovery call fired at least once. 204 - **O2b, recovery given a trigger.** Among the O2a tasks, the number whose coverage was reached 205 within 1 effective expansion. 206 207 O2 itself stays the gate as written above. The product claim is that a narrowed catalog loses 208 nothing a task needs, and O2 measures that outcome directly. O2a and O2b only explain a pass 209 or a fail: a low O2a means the mechanism had no signal to act on (section 9), a low O2b means 210 it acted and still did not recover. 211 212 An arm passes only if all four hold. O1 and O2 are also reported per expansion kind (named, path, 213 nopath). A kind-level figure is descriptive and does not gate. 214 215 **Exclusions.** No held-out task is dropped or re-judged after results are seen. Dev tasks never 216 enter a gate. Runs with an infrastructure failure are re-run once. If the re-run also fails, the 217 pair counts as a failure for the B side. 218 219 ## 7. Sample size 220 221 `python3 bench/tools/stats.py --power` gives the share of simulated campaigns in which S holds 222 (seed 1, 3000 trials per cell, both-succeed rate 0.75). pd is the discordant-pair rate. 223 224 | n pairs | pd 0.08 | pd 0.12 | pd 0.16 | pd 0.20 | pass rate at the margin θ = -0.10 (pd 0.12 to 0.20) | 225 |---|---|---|---|---|---| 226 | 60 | 0.687 | 0.530 | 0.427 | 0.358 | 0.019 to 0.023 | 227 | 100 | 0.898 | 0.771 | 0.659 | 0.561 | 0.023 | 228 | **120** | **0.946** | **0.846** | **0.747** | **0.654** | 0.019 to 0.025 | 229 | 150 | 0.978 | 0.917 | 0.838 | 0.758 | 0.016 to 0.029 | 230 231 - The 0.2 qual run had 6 discordant pairs in 37, pd ≈ 0.16. 232 - At n = 120 a truly equal arm passes S with probability about 0.75 at that discordance, and 0.85 233 at pd 0.12. 234 - An arm exactly at the margin (θ = -0.10, the boundary of the null hypothesis) passes at most about 235 2.5 % of the time. That is the size of the test, as intended for a one-sided 95 % bound. 236 - 150 pairs would add about 0.09 power at pd 0.16 for 25 % more authoring and run time. 120 was 237 chosen as the budget. 238 - O2 at 24 tasks: 22 of 24 is the smallest count meeting 90 %. A true recovery rate of 0.95 passes 239 with probability 0.88, 0.90 with 0.56 and 0.85 with 0.28 (exact binomial, stated before any run). 240 241 ## 8. Repeats, order and the machine 242 243 - **Repeats:** every condition runs three times, at `temperature = 0` with seeds **42, 43 and 44**. 244 The gate verdict uses seed 42 only. Seeds 43 and 44 are stability checks. If any gate criterion of 245 an arm would flip under seed 43 or 44, the arm's verdict is labelled **fragile** in the report. 246 Repeats never raise n. 247 - **Order:** tasks in id order. Within a task, the seven conditions run in the order A, A2, A4, 248 B1, B2, B3, B4, rotated left by (task index mod 7). One untimed dev-task run warms the backend 249 before each seed block. 250 - **Uncontended accelerator for latency.** 251 - Before each seed block and after the last run, `nvidia-smi` lists the compute processes 252 (`gpu_at_start.txt`, `gpu_at_end.txt`), and `pgrep` finds no other inference or training 253 process (`ollama runner` beyond the serving one, `llama-server`, `sglang`, `vllm`, training 254 jobs). 255 - If either check fails, that block's latency figures are labelled invalid. Its success and 256 token figures stay valid. 257 - Latency is reported, not gated. 258 259 ## 9. Prediction from 0.2 data (stated before the run) 260 261 - In the 0.2 qual B receipts, T2 fired twice (denied-003, injection_tool-002), neither on an 262 expansion task. T1 and T3 would have fired zero times: there were 0 `unknown_capability` and 0 263 `capability_not_found` results in condition B. 264 - On the five 0.2 expansion tasks, the model called exposed wrong-domain tools 265 (`manage_notes`, `list_models` and others), which no trigger covers. 266 - So for `nopath` tasks, arm 3 is predicted to behave like arm 1, and O2 is predicted to fail 267 there. The `named` kind is where T2 can fire. 268 - This prediction is recorded so a pass or fail cannot be explained after the fact. It is not an 269 exclusion rule. 270 271 ## 10. Campaign preparation (required before the first held-out request; not yet built) 272 273 - Runner: `--corpus 0.2x` (task root `bench/heldout-0.2x`); `--condition` for the seven 274 conditions; the prompt addendum; the reasoning-off request field, since today `Client.chat` 275 sends only model, messages, temperature, seed, max_tokens and tools (`run_bench.py:134-143` at commit `20ed1f4`); 276 `--backends sim-1` required for both corpora. 277 - Arm 3 policy as in section 5, with negative controls: on denied and approval tasks, zero 278 unauthorized executions and zero expansion events fired by a denied or pending call. 279 - A pilot on dev tasks only, with all seven conditions. 280 - **Cost:** 120 tasks × 7 conditions × 3 seeds = 2520 runs. At the 0.2 median of 10.8 s per run 281 (`qual-20261004T2207Z`, n = 74) that is about 7.6 h, plus the `max_tokens = 1` measurement 282 requests and the dev runs (44 × 7 = 308 runs, about 0.9 h). Reasoning-off runs are expected to 283 be shorter. 284 285 ## 11. Reporting 286 287 For each arm: T, S (with the paired table), O1 and O2 as in section 6. Also: 288 289 - per-category success; 290 - O1 and O2 per expansion kind; 291 - results per template; 292 - trigger counts by id; 293 - refusals by reason, including `schema_budget`, and `duplicate_trigger` and suppressed (N1, N2) counts; 294 - cap-exhausted notes; 295 - the fragile flag; 296 - latency validity. 297 298 Secondary comparisons (B2, B3 and B4 against B1) are reported as success counts and coverage. 299 Negative controls are reported as counts that must be zero. 300 301 ## 12. Freezing 302 303 `heldout-0.2x/CORPUS-DIGEST.txt` freezes: 304 305 - `tasks_digest` over `heldout-0.2x/tasks/*.json`; 306 - `inputs_digest` over `domains.json`, `prompts/`, `schema/`, `stubs/backends.json`, 307 `tools/sim_backends.py` and `heldout-0.2x/{fixtures,prompts,stores,stubs,tasks}/`; 308 - `protocol_sha256` of this file. 309 310 CI (`bench-structural`) recomputes all three on every push with 311 `python bench/tools/validate.py --corpus 0.2x --require-jsonschema`. A campaign whose recorded 312 digests differ from the frozen ones does not count. 313 314 ## 13. Change log 315 316 - 2026-10-04: initial pre-registration (120 held-out tasks, seven conditions, thresholds above). 317 No held-out run exists. 318 - 2026-10-04: runner line citations pinned to commit `2de4c81` so later runner edits cannot move 319 them. No held-out run exists. 320 - 2026-10-04: runner citations re-pinned from `2de4c81` to `20ed1f4`, the same runner content as 321 merged to main (#21 squash). Added the non-gating diagnostics O2a and O2b (section 6) after 322 checking the 0.2 qual receipts: condition B produced 0 `unknown_capability` and 0 323 `capability_not_found` results, so a gate change toward what arm 3 can reach was rejected; 324 O1 and O2 are unchanged. No held-out run exists. 325 - 2026-10-04: section 10 still lists arm 3 as not yet built. It is built: the arm 3 policy 326 (`runtime-v1`, section 5) merged as #25 at `ed92ea7`, and its negative controls N1 and N2 (denied 327 and approval-pending calls cause no expansion and no execution) are tested offline in 328 `bench/tools/test_runner_offline.py`. The runner preparation of section 10 (`--corpus 0.2x`, 329 the seven condition ids, the addendum, the reasoning-off field, seeds 42, 43 and 44, and the 330 campaign analyzer with O2a, O2b, per-kind figures and the fragile label) is built in the PR that 331 adds this line. Section 10 is left as written. No gate, threshold, task or input changed. No 332 held-out run exists.