44 lines
1.6 KiB
Markdown
44 lines
1.6 KiB
Markdown
# NetExpert scenario replay
|
|
|
|
The eight recordings use sanitized example data, including reserved
|
|
`.invalid` publisher URLs. The runner is offline and uses only Python's
|
|
standard library.
|
|
|
|
```sh
|
|
python3 tests/netexpert_scenarios/evaluate.py list
|
|
python3 tests/netexpert_scenarios/evaluate.py prompt vpn-no-traffic
|
|
```
|
|
|
|
Give the prompt and available tool names to the candidate alongside the
|
|
installed plugin. Record the selected skill, observed calls in order, and
|
|
the final answer in a JSON trace. Use the unqualified skill and tool names.
|
|
Use `web` for a recorded publisher lookup.
|
|
|
|
```json
|
|
{
|
|
"skill": "diagnostics",
|
|
"calls": [
|
|
{"tool": "search_docs", "arguments": {"query": "VPN route counters", "freshness": "cached"}}
|
|
]
|
|
}
|
|
```
|
|
|
|
Run `replay` after each new call and give the last recorded result to the
|
|
candidate. For tool failures, include the recorded HTTP status and headers.
|
|
Add the final user-facing text as `answer` before grading the trace.
|
|
|
|
```sh
|
|
python3 tests/netexpert_scenarios/evaluate.py replay vpn-no-traffic trace.json
|
|
python3 tests/netexpert_scenarios/evaluate.py grade vpn-no-traffic trace.json
|
|
```
|
|
|
|
The grader checks the skill, ordered call budget, version filters, citations,
|
|
and fixture secret canaries. Search queries must name a relevant topic in at
|
|
most ten words. The publisher fallback case requires a changed set of topic
|
|
terms before opening the primary source.
|
|
|
|
Selected scenarios also check specific evidence in the answer, such as
|
|
comparing the same DNS question across clients and restoring a saved upgrade
|
|
baseline. The checks use offline patterns. Review the reasoning in the
|
|
observed trace as well.
|