# Confirmatory evaluation plan

**Status:** proposed protocol; no confirmatory results yet  
**Purpose:** decide whether curated ontology mappings improve MCP routing and workflow completion beyond strong retrieval baselines.

For the independent authoring roles, task schema, and freeze checklist, see [HUMAN_TASK_COLLECTION.md](HUMAN_TASK_COLLECTION.md). This kit does not contain the confirmatory request data.

## Decision question

On the same catalog, user requests, model, tool budget, and deterministic server state, does adding a reviewed ontology to a strong retrieval system increase end-to-end task success—especially for cross-server entity resolution and typed workflow constraints—without materially increasing wrong calls, abstentions, latency, or operating cost?

The claim is about the incremental effect of the ontology layer. Comparisons against raw BM25 alone are useful context, but cannot establish that ontology adds value if dense or hybrid retrieval performs as well.

## Hypotheses and decision rule

**Primary hypothesis:** BM25+dense retrieval plus the frozen ontology router has higher task-state success than the same BM25+dense system without ontology, on the predeclared target set of relation-dependent and constraint-dependent tasks.

**Primary outcome:** fraction of tasks reaching the exact expected terminal state with no prohibited call and no invalid argument. A task that abstains or asks for clarification counts as unsuccessful unless the gold label explicitly permits clarification.

**Practical threshold:** require at least a 5 percentage-point absolute improvement on the target set, with a paired 95% confidence interval for the difference excluding zero. This threshold is a proposed product decision rule, not an established benchmark standard. Also require no more than a 2-point absolute regression on the ordinary single-tool control set and no increase in prohibited calls. If paired pilot discordance rates show that the planned sample cannot detect this effect with 80% power at two-sided 5% alpha, increase the sample or report the result as underpowered; do not lower the threshold after seeing test results.

Any severe wrong-side-effect or unauthorized-call event is a stop condition for deployment regardless of average success. This is a research prototype evaluation, not a security certification.

## Dataset and task construction

### Scope

Build a deterministic, local MCP fixture with at least four servers, three domains, and 30–50 tools. Include overlapping concepts across servers, distinct actions on the same entity, equivalent tools, and at least two cross-server workflows. Use read-only tools or sandboxed mock state transitions so outcomes are fully resettable and scored from state, not judged by prose.

Target **300 scored requests** as an initial planning estimate:

| Stratum | Planned requests | Purpose |
|---|---:|---|
| Relation-dependent multi-server workflows | 120 | Require identity resolution or typed edges such as customer→invoice across servers |
| Action/constraint-sensitive requests | 60 | Distinguish read/search from update/delete, enforce preconditions and output ownership |
| Ordinary in-scope single-tool requests | 60 | Detect regressions where ontology is unnecessary |
| Ambiguous, unsupported, or out-of-scope requests | 60 | Measure safe abstention and clarification |

These counts are a starting target, not a power guarantee. Run a separate pilot, estimate paired discordances, and perform a paired-proportion power calculation before freezing the test size. The pilot tasks must not enter the confirmatory set. If the needed sample is impractical, narrow the claim to a clearly named task stratum rather than pretending the smaller sample is conclusive.

### Independence and labels

1. Freeze the tool catalog, schemas, mock state, baseline retrievers, and ontology mapping before writing confirmatory requests.
2. Have request authors work from user goals and scenario state, without seeing ontology aliases, relation names, ranking traces, or expected router output. Prefer real, consented developer requests with identifying data removed; otherwise have people author requests from scenario cards. Record which source was used.
3. Have two independent annotators label acceptable tool sets, acceptable workflow graphs, required arguments/provenance, expected terminal state, and whether clarification/abstention is correct. Resolve disagreements before the test is run and report agreement and adjudication counts.
4. Keep paraphrases of one underlying goal in one group. Split by scenario family and workflow pattern, not by individual paraphrase. Do not let an operation family or scenario template appear in both tuning and test partitions.
5. Store a private test set or publish it only after the system and protocol are frozen. Keep public benchmark data as external context; do not mix its scores into the confirmatory set.
6. If local LLMs generate optional paraphrases, label them model-generated, record model/version/prompt, manually review labels, and report them as a separate secondary slice. They cannot substitute for independently authored primary requests.

Each test item should include: stable ID; user request; initial state; acceptable tool/equivalence set; acceptable dependency graph; expected arguments or constraints; expected final state; allowed clarification/abstention behavior; scenario family; author/annotator provenance; and frozen catalog/config hashes.

## Systems to compare

Run every system on the same request and reset state for each run. Keep model version, system prompt, temperature, max steps, output-token limit, server responses, and available context fixed. Use the same top-k/tool-definition budget where the method permits it and report unavoidable differences explicitly.

1. **All-tools model baseline:** expose all tool definitions to the fixed model. This estimates whether routing is needed at all.
2. **BM25:** current lexical retrieval baseline.
3. **BM25+dense hybrid:** same lexical candidate set plus one frozen embedding model and a development-tuned fusion weight.
4. **BM25+dense + ontology:** same hybrid retriever, then frozen ontology concepts/actions/relations/constraints and guarded workflows. This is the primary paired comparison.
5. **Action gate ablation:** hybrid+ontology with and without `action_match_required`, to identify the gate's contribution and false-negative cost.

Do not add or tune thresholds, ontology weights, aliases, prompts, or workflow rules after opening the confirmatory test results. If any system needs a threshold, select it using only the development set and freeze it before testing.

For retrieval-only comparison, also report ranking with a fixed candidate cutoff and no model. This isolates retrieval from the model's planning behavior; it is secondary and cannot replace the end-to-end outcome.

## Metrics

### Primary

- Exact task-state success rate and paired absolute difference for hybrid+ontology versus hybrid baseline, on the predeclared target set.

### Safety and quality guardrails

- Prohibited or wrong-server calls per task; invalid calls/arguments; precondition and postcondition violations; wrong-entity data returned; valid abstention/clarification; false abstention on supported tasks.
- Workflow/equivalence-set precision, recall, and F1; single-tool top-1 and Recall@k; MRR or nDCG for retrieval-only slice.
- Number of tool calls and failed calls per task.
- End-to-end latency, model/tool tokens, and API cost where applicable. Report median and tail latency, and distinguish local compute from hosted service cost.

Score tool/argument correctness and final state mechanically from the mock harness. Do not use an LLM judge for the primary outcome. If a language judge is used for secondary answer quality, blind it to system identity and publish its rubric plus disagreement audit.

## Analysis plan

- Run paired comparisons on identical task IDs. Report the full 2×2 success discordance table, absolute difference, McNemar test, and paired 95% confidence interval.
- Resample at scenario-family level for confidence intervals so paraphrases from one scenario do not act like independent observations. Report task-level counts as well.
- Report each stratum separately, plus the predeclared target-set aggregate. Do not hide an ordinary-task regression inside a weighted overall score.
- Record random seeds and repeat stochastic model runs three times where affordable. Treat repeated runs on one request as repeated measurements, not new independent tasks; aggregate per task or use a clustered analysis.
- Publish all per-task outcomes, traces with secrets removed, input hashes, config hashes, dependency/model versions, and exact commands. Include failures and abstentions, not only successful examples.
- Make one primary comparison and label all other comparisons exploratory or correct for multiple comparisons.

## Milestones and stop/go gates

### 1. Harness and scoring

**Deliverable:** resettable mock MCP servers; deterministic task-state grader; trace schema.  
**Accept:** repeated run of each fixture yields identical state and score; injected invalid/wrong-entity calls are detected.

### 2. Pilot and power estimate

**Deliverable:** 40–60 development/pilot requests authored independently of mappings, with all system traces.  
**Accept:** category coverage, annotation agreement, stable execution, and a documented paired power calculation for the frozen test size. Pilot requests stay out of confirmatory test.

### 3. Freeze

**Deliverable:** frozen catalog, mappings, baselines, prompts, thresholds, task schema, scoring code, and preregistered decision rule. Hash and archive them before test execution.

### 4. Confirmatory run

**Deliverable:** complete paired run over the held-out requests, including all baselines and guardrails.  
**Go:** primary practical threshold and CI criterion met; no prohibited-call increase; ordinary-task regression within 2 points; costs/latency acceptable for the intended use.  
**Pivot:** retrieval improves ranking but ontology does not improve task-state success; focus on retriever, model/tool interface, or ontology authoring friction.  
**Stop:** no repeatable value after one well-powered run and one independently authored replication, or value requires fragile hand-tuning that exceeds the maintenance budget.

### 5. Replication and release

Repeat the frozen experiment with a second author group or a second catalog/domain before making a broad claim. Release task data, mock servers, scorer, and traces only after dataset licenses, privacy, and server/tool licenses are checked. Report exact scope: for example, “improves cross-server identity-resolution success on these deterministic catalogs,” not “ontology makes MCP routing better” unless broader evidence supports that claim.

## Existing benchmark role

The public MCP Semantic Tool Routing Benchmark remains useful for a reproducible single-tool retrieval comparison, but it has no out-of-scope labels or workflow correctness. ToolRet provides a much larger heterogeneous retrieval stress test, but it is a retrieval benchmark and its source mixtures and target-aware instruction construction need to be respected. ETOM contributes equivalence sets, dependency structure, and infeasible tasks; use those concepts for local task design, while keeping our ETOM BM25 threshold probe exploratory. LiveMCPBench and related end-to-end MCP benchmarks can be a later external validity check, but live services and judge variance make them unsuitable as the only controlled test of ontology's incremental effect.

References: [ToolRet (ACL Findings 2025)](https://aclanthology.org/2025.findings-acl.1258/), [ETOM (EACL Findings 2026)](https://aclanthology.org/2026.findings-eacl.75/), [LiveMCPBench](https://arxiv.org/abs/2508.01780).

## Current evidence status

The existing 505-query public routing benchmark gives BM25 top-1 accuracy of 62.97% and the fixed taxonomy ablation 64.36% (+1.39 percentage points), but the paired exact McNemar p-value is 0.143 and the operation-cluster bootstrap 95% interval spans -0.40 to +3.17 points. This is not evidence of a reliable gain. The 15-query demo pilot overlaps the manually curated vocabulary, and the ETOM numeric-threshold probe measures abstention on a different catalog/score scale. Neither is confirmatory for the router's general ontology claim. A fresh, independently authored request set and a stronger matched baseline are still required.
