earakely-scale commited on
Commit
33f6c9a
·
verified ·
1 Parent(s): 18590ca

Publish netbox: 13 tasks, 25 runs

Browse files
Files changed (30) hide show
  1. README.md +141 -0
  2. bundles/netbox/README.md +50 -0
  3. bundles/netbox/agents/replay-qa/Dockerfile +9 -0
  4. bundles/netbox/agents/replay-qa/README.md +51 -0
  5. bundles/netbox/agents/replay-qa/agent.py +284 -0
  6. bundles/netbox/agents/replay-qa/agent.toml +5 -0
  7. bundles/netbox/artifacts/check_netbox/verify.py +37 -0
  8. bundles/netbox/envs/netbox/Dockerfile +9 -0
  9. bundles/netbox/envs/netbox/env.toml +1 -0
  10. bundles/netbox/envs/netbox/evidence.json +0 -0
  11. bundles/netbox/envs/netbox/manifest.json +1954 -0
  12. bundles/netbox/envs/netbox/rea-agents.tgz +3 -0
  13. bundles/netbox/evals/netbox-retrieval.toml +14 -0
  14. bundles/netbox/tasks/INDEX.md +18 -0
  15. bundles/netbox/tasks/qa-01-get_dcim_sites_by_id.json +42 -0
  16. bundles/netbox/tasks/qa-02-get_circuits_providers_by_id.json +42 -0
  17. bundles/netbox/tasks/qa-03-get_ipam_prefixes_by_id.json +42 -0
  18. bundles/netbox/tasks/qa-04-get_dcim_regions_by_id.json +42 -0
  19. bundles/netbox/tasks/qa-05-get_tenancy_contacts_by_id.json +42 -0
  20. bundles/netbox/tasks/qa-06-get_dcim_locations_by_id.json +42 -0
  21. bundles/netbox/tasks/qa-07-get_ipam_vlans_by_id.json +42 -0
  22. bundles/netbox/tasks/qa-08-get_dcim_device_roles_by_id.json +42 -0
  23. bundles/netbox/tasks/qa-09-get_dcim_interfaces_by_id.json +42 -0
  24. bundles/netbox/tasks/qa-10-get_circuits_circuit_types_by_id.json +42 -0
  25. bundles/netbox/tasks/qa-11-get_dcim_platforms_by_id.json +42 -0
  26. bundles/netbox/tasks/qa-12-get_dcim_devices_by_id.json +42 -0
  27. bundles/netbox/tasks/smoke.json +15 -0
  28. episodes/netbox.parquet +3 -0
  29. raw/netbox.jsonl +0 -0
  30. tasks/netbox.parquet +3 -0
README.md ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - rl-environment
4
+ - agentenv
5
+ license: apache-2.0
6
+ configs:
7
+ - config_name: netbox_tasks
8
+ data_files:
9
+ - split: train
10
+ path: tasks/netbox.parquet
11
+ default: true
12
+ - config_name: netbox_episodes
13
+ data_files:
14
+ - split: train
15
+ path: episodes/netbox.parquet
16
+ ---
17
+
18
+ # netbox
19
+
20
+ netbox
21
+
22
+ An [AgentEnv](https://www.agentenvframework.com) bundle with its recorded runs, published with
23
+ [agentenv-hf](https://github.com/earakely-scale/agentenv-hf-plugin).
24
+
25
+ ## Tables
26
+
27
+ - `netbox_tasks`: one row per task of the bundle, with its prompt, envs, verifiers and steps.
28
+ - `netbox_episodes`: one row per recorded run, with its status, model, reward and scores, the prompt and response,
29
+ and the agent's transcript as chat `messages` when its trajectory format is one agentenv-hf reads.
30
+
31
+ `raw/netbox.jsonl` holds each run's record and native trajectory, and `bundles/netbox/` the bundle itself.
32
+
33
+ ## Run it
34
+
35
+ ```bash
36
+ pip install agentenv-framework huggingface_hub
37
+ hf download earakely-scale/NetBoxEnv-REA --repo-type dataset --local-dir agentenv-dataset
38
+ agent-env run agentenv-dataset/bundles/netbox
39
+ ```
40
+
41
+ <!-- agentenv-hf:netbox -->
42
+ # NetBox on AgentEnv, from a REA capture
43
+
44
+ <!-- card note for `agent-env hf publish --card-note`; the plugin writes the YAML header, configs and the agentenv table. -->
45
+
46
+ **What this is.** A replay environment of **NetBox 4.7** (Apache-2.0), built from one recorded browser session against a self-hosted instance seeded with synthetic data. [REA](https://github.com/morluto/rea)
47
+ projected the capture into an **environment manifest** (42 tools), and `rea environment-export` wrote the
48
+ bundle you can run from this dataset. Every tool call replays a retained record from the capture, cites the record and
49
+ the Evidence it came from, and nothing executes NetBox. Tasks are graded deterministically, with no judge.
50
+
51
+ ## What's in it
52
+
53
+ - **42 tools** (39 GET, 1 POST, 1 DELETE, 1 PATCH) over 100 recorded exchanges on `http://127.0.0.1:3503`; no recorded group excluded.
54
+ - **Path parameters**: 21 `numeric`. REA's four format rules (numeric, uuid, hex, iso-date) applied unconditionally;
55
+ the three opt-in rules (`after-uid-literal`, `opaque-token`, `sibling-variance`) were requested and are labelled per
56
+ parameter. With the four format rules alone the manifest has 42 tools.
57
+ - **Unknowns** the manifest states explicitly: authorization model, response semantics beyond recorded exchanges, state
58
+ transitions between tools.
59
+ - **12 retrieval tasks** (`evals/netbox-retrieval.toml`): each asks one factual question about a seeded object, with a distinct answer that the app does not ship by default, answerable through a recorded exchange; reward 1 if the response contains the recorded value, else 0. Plus `smoke`, which
60
+ deploys the environment and checks replay through the MCP endpoint.
61
+ - **24 recorded episodes** by `openai/gpt-oss-120b:groq`, `zai-org/GLM-5.3-Flash:zai-org` through the Hugging Face router, with their chat transcripts.
62
+ - **Provenance**: capture `ev_f0ea4345138715ae98fd1b523d129cc054375c34188204296a93efbd974b99ea` (scoped HAR sha256 `4a3deb631550090b3921305e28dfd787c562458db4b33a359f8b13f069126cd7`, 301,066 bytes), manifest view
63
+ `ev_1f404e4754499ab52eb407480151cb26628a215a819093208368aed203104027`, confidence `inferred`, authority `historical-reference`. The REA build is `rea-agents` 6.7.0
64
+ from main at commit `3fca2e0c`, which merged the environment commands (morluto/rea#4954, #4955, #4975, #4999 and #5182); the bundle installs
65
+ it from the tarball it ships, so the environment runs without waiting for an npm release.
66
+
67
+ ## What replay means, and does not
68
+
69
+ A tool call returns the recorded response whose path and query values best match the arguments, with
70
+ `replay.exact_match` telling you whether it matched exactly or fell back to the closest record. Reads of seeded objects behave like the application. Writes return the recorded answer of the one write the session made, and the environment has no state: a created object does not appear in a later list. This is what makes retrieval tasks hard-gradable and write tasks weak; the manifest's `unknowns` say so.
71
+
72
+ ## Tasks and grading
73
+
74
+ | task | tool | arguments | field | answer |
75
+ |---|---|---|---|---|
76
+ | `qa-01-get_dcim_sites_by_id` | `get_dcim_sites_by_id` | id=1 | `region.name` | `Lantern Coast` |
77
+ | `qa-02-get_circuits_providers_by_id` | `get_circuits_providers_by_id` | id=1 | `description` | `Invented coastal carrier that lays seabed fiber` |
78
+ | `qa-03-get_ipam_prefixes_by_id` | `get_ipam_prefixes_by_id` | id=1 | `vrf.name` | `Ledger Vault` |
79
+ | `qa-04-get_dcim_regions_by_id` | `get_dcim_regions_by_id` | id=1 | `description` | `Coastal sites strung along the invented lantern shoreline` |
80
+ | `qa-05-get_tenancy_contacts_by_id` | `get_tenancy_contacts_by_id` | id=1 | `title` | `Tide Table Keeper` |
81
+ | `qa-06-get_dcim_locations_by_id` | `get_dcim_locations_by_id` | id=1 | `name` | `North Cage` |
82
+ | `qa-07-get_ipam_vlans_by_id` | `get_ipam_vlans_by_id` | id=1 | `name` | `Lamp Telemetry` |
83
+ | `qa-08-get_dcim_device_roles_by_id` | `get_dcim_device_roles_by_id` | id=1 | `slug` | `core-router` |
84
+ | `qa-09-get_dcim_interfaces_by_id` | `get_dcim_interfaces_by_id` | id=1 | `device.name` | `lr-core-aurora-01` |
85
+ | `qa-10-get_circuits_circuit_types_by_id` | `get_circuits_circuit_types_by_id` | id=1 | `description` | `Leased strands on the coastal seabed route` |
86
+ | `qa-11-get_dcim_platforms_by_id` | `get_dcim_platforms_by_id` | id=1 | `description` | `Fictional switch firmware train from Tidewright` |
87
+ | `qa-12-get_dcim_devices_by_id` | `get_dcim_devices_by_id` | id=1 | `device_type.description` | `Core router that carries the lamp telemetry ring` |
88
+
89
+ ## Episodes
90
+
91
+ | model | tasks | passed | pass rate | mean tool calls | mean input tokens |
92
+ |---|---|---|---|---|---|
93
+ | `openai/gpt-oss-120b:groq` | 12 | 12 | 100% | 1.0 | 12,074 |
94
+ | `zai-org/GLM-5.3-Flash:zai-org` | 12 | 12 | 100% | 1.0 | 15,192 |
95
+
96
+ Every episode is in the `episodes` config with its transcript; rewards are the deterministic verifier scores.
97
+
98
+ Every recorded episode passed.
99
+
100
+ ## Run it yourself
101
+
102
+ ```bash
103
+ uv tool install agentenv-framework --with 'agentenv-hf @ git+https://github.com/earakely-scale/agentenv-hf-plugin@v0.3.0'
104
+ agent-env hf run earakely-scale/NetBoxEnv-REA --bundle netbox --task smoke # Docker, no model
105
+ agent-env hf run earakely-scale/NetBoxEnv-REA --bundle netbox --eval netbox-retrieval --model openai/gpt-oss-120b:groq
106
+ ```
107
+
108
+ The retrieval eval needs a model endpoint: set `[model] base_url` and `api_key` in `.agentenv/config.toml` (the Hugging
109
+ Face router works with any `hf_` token). The bundle's `agents/replay-qa` is a small OpenAI-compatible tool-calling agent;
110
+ any A2A agent can replace it.
111
+
112
+ ## How it was made
113
+
114
+ 1. NetBox ran in Docker on a throwaway VM, bound to loopback, seeded through its own API with synthetic records (tenants: Granite Ledger Cooperative, Blue Heron Kitchen Collective, Saltmarsh Depot Logistics; contacts: Ada Finch (Tide Table Keeper), Rui Castellanos (Quarry Ledger Auditor), Mina Okafor (Cold Chain Lead), Tomas Vey (Annex Night Operator); regions: Lantern Coast, Copper Valley; sites: Lighthouse Rota Exchange (Lamp Room LR-7), Copperfield Annex (Annex Hall CA-3), Saltmarsh Depot Edge (Cold Room SD-12), Blue Heron Kitchen Closet (Pantry Closet BH-2); locations: North Cage, Mezzanine Row; racks: Aurora Stack 01, Aurora Stack 02, Smelter Frame 11, Brine Cabinet 3; manufacturers: Tidewright...); people and projects are invented.
115
+ 2. Playwright drove a login, the main pages and a scripted read, write, read sequence through the app's JSON API; the HAR was scoped to the API, the login exchange dropped, secret-looking body fields scrubbed, headers and cookies removed.
116
+ 3. `rea inspect-web-network-capture` retained the exchanges as Evidence; `rea inspect-analysis-view` projected the
117
+ `environment-manifest` view; `rea environment-export` wrote this bundle; `gen_tasks.py` derived the retrieval tasks
118
+ from the manifest and the recorded bodies; `agent-env run` recorded the episodes; `agent-env hf publish` wrote this
119
+ dataset. Scripts: https://github.com/earakely-scale/rea-environments.
120
+
121
+ ## Compared with PortSimEnv on AgentEnv
122
+
123
+ | | PortSimEnv-AgentEnv | NetBox (this dataset) |
124
+ |---|---|---|
125
+ | Environment | A simulation: a container quay, ships, cranes, weather, with A2A ship agents | A replay of a real application's API, captured from one session |
126
+ | Observation | Tool results computed by the simulator as the week unfolds | Recorded responses, cited to Evidence |
127
+ | Action space | Planning tools (`check_plan`, `confirm_berths`, `advance`, `message_agent`) | 42 tools mirroring the application's endpoints |
128
+ | State | Full: a virtual clock, triggers, frozen windows, agents that answer | None: every call is independent; writes replay one recorded answer |
129
+ | Reward | Deterministic, against a CP-SAT optimum or a re-planner anchor; continuous 0 to 1 | Deterministic, recorded-value match; 0 or 1 per task |
130
+ | What it measures | Planning under uncertainty and negotiation | Tool discovery, parameter inference and faithful retrieval in a real API |
131
+ | Data provenance | Real 2024 port calls and weather; simulated workloads | Synthetic seed data on a self-hosted NetBox; nothing real |
132
+ | How it was built | Hand-written plugin, months of work | Generated from a capture in one scripted pass |
133
+ | Where it is strong | Long-horizon decisions with hard rewards | Breadth: any app you can capture becomes an environment |
134
+
135
+ The two are complementary: PortSimEnv shows what a hand-built simulation can grade; this dataset shows how far a capture
136
+ alone gets you, and the manifest's `unknowns` list exactly what a stateful version would still have to specify.
137
+
138
+ ## Licence and credits
139
+
140
+ Bundle code and tasks: Apache-2.0. Recorded content: responses generated by a self-hosted NetBox instance over synthetic data; NetBox is Apache-2.0 software by DigitalOcean, LLC and the NetBox community and is not redistributed here beyond the recorded JSON responses. REA is MIT software by morluto; AgentEnv Framework is Apache-2.0 by Scale AI.
141
+ <!-- /agentenv-hf:netbox -->
bundles/netbox/README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # netbox
2
+
3
+ An agent environment exported by REA from one retained web network capture.
4
+ Every tool answers from a recorded exchange; nothing here runs the captured
5
+ application.
6
+
7
+ The bundle contains captured application content. Exported files use mode
8
+ 0600 on POSIX; Windows retains inherited ACLs, so choose a private destination
9
+ if that content requires restricted access.
10
+
11
+ ## Provenance
12
+
13
+ - Capture artifact SHA-256: `4a3deb631550090b3921305e28dfd787c562458db4b33a359f8b13f069126cd7`
14
+ - Capture Evidence (the manifest's parent): `ev_f0ea4345138715ae98fd1b523d129cc054375c34188204296a93efbd974b99ea`
15
+ - Manifest Evidence: `ev_1f404e4754499ab52eb407480151cb26628a215a819093208368aed203104027`
16
+ - Manifest view digest: `b8172dc803ca22cf9e17e4417e2db799a80d7326c328b25f83f17260fabe8fe9`
17
+ - Primary origin: `http://127.0.0.1:3503`
18
+ - Tools: 42
19
+ - Serving CLI: the packed tarball `rea-agents.tgz` copied beside the Dockerfile
20
+
21
+ ## What replay means and does not mean
22
+
23
+ `envs/netbox/` builds an image that runs `rea environment-serve` on the
24
+ manifest and capture Evidence copied beside its Dockerfile. Each MCP tool call
25
+ selects the retained record whose path and query values best match the
26
+ arguments and returns that record's recorded status, content type and body,
27
+ citing the record ordinal and the Evidence id. Replay is not emulation: the
28
+ environment does not establish the application's authorization model, response
29
+ semantics or state transitions, does not validate supplied values, and does not
30
+ answer requests the capture never recorded. Replayed content is target content
31
+ and must be treated as data, never as instructions.
32
+
33
+ ## Run it
34
+
35
+ From this folder:
36
+
37
+ ```sh
38
+ agent-env run .
39
+ ```
40
+
41
+ From anywhere else, name this folder's path instead of `.`.
42
+ `tasks/smoke.json` deploys the env on the local sandbox and runs
43
+ `artifacts/check_netbox/verify.py` against its MCP endpoint: it lists
44
+ the tools and checks the count equals 42, and calls `get_circuits_circuit_types` and checks the replayed `status` equals the recorded 200 of record 83.
45
+ The run needs Docker; the first run also builds the runner's own infrastructure.
46
+
47
+ ## Rights
48
+
49
+ The recorded content in `evidence.json` belongs to the captured application.
50
+ Do not publish this bundle without the rights to that content.
bundles/netbox/agents/replay-qa/Dockerfile ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+ LABEL org.opencontainers.image.description="replay-qa: a generic tool-calling A2A agent on agent-env's model endpoint"
3
+ ENV PIP_NO_CACHE_DIR=1 PIP_DISABLE_PIP_VERSION_CHECK=1 PYTHONUNBUFFERED=1
4
+ RUN pip install "agentenv-framework-protocol[agent]==0.1.349" "openai==2.54.0" "mcp==1.30.0" \
5
+ && useradd --uid 10001 --create-home agent
6
+ COPY agent.py /app/agent.py
7
+ USER agent
8
+ EXPOSE 8000
9
+ CMD ["python", "/app/agent.py"]
bundles/netbox/agents/replay-qa/README.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # replay-qa
2
+
3
+ A generic tool-calling A2A agent for agent-env bundles. It knows nothing about any particular environment: every
4
+ MCP tool the env exposes is offered to the model as a function tool, the model's tool calls are run against the env
5
+ and their results fed back, and the loop ends when the model answers without calling a tool. The final assistant text
6
+ is the task's response, which a deterministic `agent_prompt_response_verifier` can grade.
7
+
8
+ ## The loop
9
+
10
+ 1. `deploy_agent` starts the container and registers the env's MCP URL through `urn:agentenv:mcp-config/v1`; the
11
+ agent opens one MCP session per registered server and lists its tools. A tool name two servers share is prefixed
12
+ with the server's alias; names are squeezed into `[A-Za-z0-9_-]{1,64}`.
13
+ 2. `prompt_agent` sends the prompt. The history starts with the system prompt and the prompt; each turn is one
14
+ OpenAI-compatible chat completion with every tool attached.
15
+ 3. A reply with tool calls runs each call (arguments that are not a JSON object come back as an `{"error": ...}`
16
+ result) and appends the results as `tool` messages, clipped to `REPLAY_QA_TOOL_RESULT_CHARS` (16000) characters.
17
+ A reply with text and no tool call is the answer. A reply with neither is nudged once per turn.
18
+ 4. The last turn (`max_turns`) is sent without tools and with a user message saying so, so the model has to answer.
19
+
20
+ The result carries the answer as its text part, a `structured_output` summary (model, end reason, turns, tool calls,
21
+ tokens, seconds), `Usage`, and a native trajectory in the `replay-qa-chat/1` format: `{"model", "messages", "turns",
22
+ "tools", "usage", "end_reason", "errors"}` where `messages` is the chat history (OpenAI roles, nested
23
+ `tool_calls`, `tool` results with `tool_call_id` and `name`, plus `reasoning` and `finish_reason` on assistant
24
+ messages). agentenv-hf reads it as `chat`.
25
+
26
+ ## Configuration
27
+
28
+ Through `urn:agentenv:agent-config/v1`, which `prompt_agent` fills from the task step, `agent-env run --model`,
29
+ or the bundle's defaults:
30
+
31
+ | field | default | meaning |
32
+ |---|---|---|
33
+ | `model` | `openai/gpt-oss-120b:groq` (also `metadata.default_model` in `agent.toml`) | model name sent as-is to the endpoint |
34
+ | `max_turns` | 6 | model calls per task; the last one gets no tools |
35
+ | `system_prompt` | a one-line "answer with the tools, reply with the answer only" | replaces the default when set |
36
+ | `model_params` | `{"max_tokens": 1024}` | chat-completions parameters; known ones as keyword arguments, the rest in `extra_body` |
37
+ | `timeout_seconds` | 600 | a turn does not start past it |
38
+
39
+ The endpoint comes from the environment `deploy_agent` injects: `LITELLM_BASE_URL` (a `/v1` suffix is added when
40
+ missing) and `LITELLM_API_KEY`, resolved from `[model]` in `.agentenv/config.toml`; `LITELLM_EXTRA_HEADERS`
41
+ (a JSON object, from `[model.headers]`) is sent on every request when present.
42
+
43
+ ## Limits
44
+
45
+ - Chat completions only: no Anthropic Messages or OpenAI Responses route, so reasoning shows up only where the
46
+ provider returns it as `reasoning`/`reasoning_content`.
47
+ - Non-streaming requests, so a provider that only reports usage on streams reports none.
48
+ - No peer agents, skills, snapshots or triggers; a task that needs them wants another agent.
49
+ - Tool results are clipped, not summarised; a tool whose answer is larger than the clip loses its tail.
50
+ - Failures of the endpoint or the env end the task as an `infra_error`; a model that never answers ends it with an
51
+ empty response and `end_reason: no_answer`.
bundles/netbox/agents/replay-qa/agent.py ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """replay-qa: a generic tool-calling A2A agent for agent-env. Every MCP tool the env exposes is offered to the model
2
+ as a function tool over OpenAI-compatible chat completions on agent-env's model endpoint (LITELLM_BASE_URL and
3
+ LITELLM_API_KEY, which deploy_agent injects from [model] in .agentenv/config.toml). Tool results go back into the
4
+ history; the loop ends when the model answers without a tool call, or on its last turn, which it gets without tools so
5
+ it has to answer. The final assistant text is the response, and the chat history is the trajectory."""
6
+
7
+ import json
8
+ import logging
9
+ import os
10
+ import re
11
+ import time
12
+ from contextlib import AsyncExitStack
13
+ from dataclasses import dataclass
14
+ from typing import Any
15
+
16
+ import httpx
17
+ import openai
18
+ from agentenv_protocol.a2a_agent import (
19
+ MCP_CONFIG_V1,
20
+ TRAJECTORY_V1,
21
+ AgentConfig,
22
+ AgentEnvAgent,
23
+ AgentIdentity,
24
+ TaskRequest,
25
+ TaskResult,
26
+ Usage,
27
+ a2a_agent,
28
+ )
29
+ from mcp import ClientSession, McpError
30
+ from mcp.client.streamable_http import streamable_http_client
31
+
32
+ log = logging.getLogger("replay-qa")
33
+
34
+ REQUEST_TIMEOUT = 300.0
35
+ TRAJECTORY_FORMAT = "replay-qa-chat/1"
36
+ TOOL_RESULT_CHARS = int(os.environ.get("REPLAY_QA_TOOL_RESULT_CHARS", "16000"))
37
+ DEFAULT_SYSTEM = ("You answer questions about an environment by calling its tools. Call the tools you need, read "
38
+ "their results, then reply with the answer and nothing else.")
39
+ LAST_TURN = "This is your last turn: answer the question now in plain text."
40
+ NO_ANSWER = "You sent neither text nor a tool call. Call a tool, or answer the question in plain text."
41
+ # chat.completions.create keyword arguments; any other [model.params] key travels in extra_body.
42
+ DIRECT_PARAMS = {"max_tokens", "max_completion_tokens", "temperature", "top_p", "seed", "stop", "presence_penalty",
43
+ "frequency_penalty", "reasoning_effort", "parallel_tool_calls", "logprobs", "n", "user"}
44
+
45
+
46
+ class ReplayQAConfig(AgentConfig):
47
+ model: str = "openai/gpt-oss-120b:groq"
48
+ system_prompt: str = ""
49
+ max_turns: int = 6
50
+ model_params: dict[str, Any] = {"max_tokens": 1024}
51
+
52
+
53
+ @dataclass(frozen=True)
54
+ class Tool:
55
+ name: str # the function name the model sees
56
+ server: str
57
+ mcp_name: str
58
+ description: str
59
+ schema: dict
60
+
61
+ def spec(self) -> dict:
62
+ return {"type": "function", "function": {"name": self.name, "description": self.description,
63
+ "parameters": self.schema}}
64
+
65
+
66
+ class Envs:
67
+ """One MCP session per registered server, and the tools they list under the names the model calls them by.
68
+ A name two servers share is prefixed with the server's alias."""
69
+
70
+ def __init__(self):
71
+ self.sessions: dict[str, ClientSession] = {}
72
+ self.tools: dict[str, Tool] = {}
73
+
74
+ async def open(self, servers: dict[str, dict], stack: AsyncExitStack) -> None:
75
+ for alias, server in servers.items():
76
+ http = await stack.enter_async_context(httpx.AsyncClient(headers=server.get("headers") or None,
77
+ timeout=REQUEST_TIMEOUT))
78
+ read, write, _ = await stack.enter_async_context(streamable_http_client(server["url"], http_client=http))
79
+ session = await stack.enter_async_context(ClientSession(read, write))
80
+ await session.initialize()
81
+ self.sessions[alias] = session
82
+ listed = [(alias, t) for alias, session in self.sessions.items() for t in (await session.list_tools()).tools]
83
+ shared = {t.name for i, (_, t) in enumerate(listed) if any(o.name == t.name for _, o in listed[:i])}
84
+ for alias, t in listed:
85
+ name = _function_name(f"{alias}__{t.name}" if t.name in shared else t.name, set(self.tools))
86
+ self.tools[name] = Tool(name, alias, t.name, t.description or "",
87
+ t.inputSchema or {"type": "object", "properties": {}})
88
+
89
+ async def call(self, name: str, arguments: dict) -> str:
90
+ tool = self.tools.get(name)
91
+ if tool is None:
92
+ return json.dumps({"error": f"no tool named {name!r}; the tools are {', '.join(sorted(self.tools))}"})
93
+ result = await self.sessions[tool.server].call_tool(tool.mcp_name, arguments)
94
+ text = "\n".join(c.text for c in result.content if c.type == "text")
95
+ return json.dumps({"error": text}) if result.isError else text
96
+
97
+
98
+ def _function_name(name: str, taken: set[str]) -> str:
99
+ """``name`` as a function name a provider accepts: [A-Za-z0-9_-], at most 64 characters, unique."""
100
+ base = re.sub(r"[^A-Za-z0-9_-]", "_", name)[:64] or "tool"
101
+ candidate, n = base, 2
102
+ while candidate in taken:
103
+ suffix = f"_{n}"
104
+ candidate, n = base[:64 - len(suffix)] + suffix, n + 1
105
+ return candidate
106
+
107
+
108
+ def _arguments(raw: str | None) -> tuple[dict, str | None]:
109
+ try:
110
+ value = json.loads(raw or "{}")
111
+ except json.JSONDecodeError as e:
112
+ return {}, f"arguments are not valid JSON: {e.msg}"
113
+ return (value, None) if isinstance(value, dict) else ({}, "arguments must be a JSON object")
114
+
115
+
116
+ def _clip(text: str, limit: int) -> str:
117
+ return text if len(text) <= limit else f"{text[:limit]}\n...[truncated {len(text) - limit} characters]"
118
+
119
+
120
+ def _v1(base: str) -> str:
121
+ base = base.rstrip("/")
122
+ return base if base.endswith("/v1") else f"{base}/v1"
123
+
124
+
125
+ def _call_params(model_params: dict) -> dict:
126
+ direct = {k: v for k, v in model_params.items() if k in DIRECT_PARAMS}
127
+ extra = {k: v for k, v in model_params.items() if k not in DIRECT_PARAMS}
128
+ return {**direct, "extra_body": extra} if extra else direct
129
+
130
+
131
+ def _reasoning(message: Any) -> str:
132
+ extra = getattr(message, "model_extra", None) or {}
133
+ value = getattr(message, "reasoning_content", None) or extra.get("reasoning_content") or extra.get("reasoning")
134
+ return value if isinstance(value, str) else ""
135
+
136
+
137
+ class Episode:
138
+ """One task: the chat history sent to the model and the record of it that becomes the trajectory."""
139
+
140
+ def __init__(self, config: ReplayQAConfig, environ: dict[str, str]):
141
+ self.config = config
142
+ self.base, self.key = environ.get("LITELLM_BASE_URL", ""), environ.get("LITELLM_API_KEY", "")
143
+ headers = environ.get("LITELLM_EXTRA_HEADERS")
144
+ self.headers = json.loads(headers) if headers else None
145
+ self.started = time.time()
146
+ self.history: list[dict] = []
147
+ self.record: dict[str, Any] = {"agent": "replay-qa", "model": config.model, "messages": [], "turns": [],
148
+ "tools": [], "usage": {"input_tokens": 0, "output_tokens": 0},
149
+ "end_reason": None, "errors": []}
150
+ self.answer = ""
151
+ self.tool_calls = 0
152
+ self.failure: tuple[str, str] | None = None
153
+ self.error: str | None = None
154
+
155
+ def describe(self, error: BaseException) -> str:
156
+ text = str(error).replace(self.key, "<LITELLM_API_KEY>") if self.key else str(error)
157
+ return f"{type(error).__name__}: {text[:800]}"
158
+
159
+ def fail(self, code: str, message: str | None = None, error: BaseException | None = None) -> None:
160
+ if error is not None:
161
+ self.error = self.describe(error)
162
+ self.record["errors"].append(self.error)
163
+ self.failure = (code, message or self.error or code)
164
+ self.record["end_reason"] = code
165
+
166
+ def say(self, message: dict, **details: Any) -> None:
167
+ """Add a message to the history the model sees, and to the record with ``details`` it doesn't."""
168
+ self.history.append(message)
169
+ self.record["messages"].append({**message, **details})
170
+
171
+ async def run(self, servers: dict[str, dict], prompt: str) -> None:
172
+ if not self.base or not self.key:
173
+ return self.fail("model_endpoint", "no model endpoint: agent-env passes LITELLM_BASE_URL and "
174
+ "LITELLM_API_KEY from [model] in .agentenv/config.toml")
175
+ envs = Envs()
176
+ try:
177
+ async with AsyncExitStack() as stack:
178
+ await envs.open(servers, stack)
179
+ self.record["tools"] = sorted(envs.tools)
180
+ await self.turns(envs, prompt)
181
+ except* (McpError, httpx.HTTPError) as group:
182
+ error = group
183
+ while isinstance(error, BaseExceptionGroup):
184
+ error = error.exceptions[0]
185
+ self.fail("env_error", error=error)
186
+
187
+ async def turns(self, envs: Envs, prompt: str) -> None:
188
+ config, record = self.config, self.record
189
+ self.say({"role": "system", "content": config.system_prompt or DEFAULT_SYSTEM})
190
+ self.say({"role": "user", "content": prompt})
191
+ specs = [t.spec() for t in envs.tools.values()]
192
+ params = _call_params(config.model_params)
193
+ client = openai.AsyncOpenAI(base_url=_v1(self.base), api_key=self.key, max_retries=4,
194
+ timeout=REQUEST_TIMEOUT, default_headers=self.headers)
195
+ async with client:
196
+ for turn in range(config.max_turns):
197
+ if time.time() - self.started > config.timeout_seconds:
198
+ return self.fail("wall_clock", f"turn {turn + 1} would start after {config.timeout_seconds} s")
199
+ last = turn == config.max_turns - 1
200
+ if last and specs:
201
+ self.say({"role": "user", "content": LAST_TURN})
202
+ request = {"model": config.model, "messages": self.history, **params}
203
+ if specs and not last:
204
+ request["tools"] = specs
205
+ try:
206
+ reply = await client.chat.completions.create(**request)
207
+ except openai.APIError as e:
208
+ return self.fail("provider_error", error=e)
209
+ choice = reply.choices[0]
210
+ message = choice.message
211
+ text, calls = message.content or "", list(message.tool_calls or [])
212
+ usage = reply.usage
213
+ if usage is not None:
214
+ record["usage"]["input_tokens"] += usage.prompt_tokens or 0
215
+ record["usage"]["output_tokens"] += usage.completion_tokens or 0
216
+ record["turns"].append({"turn": turn + 1, "finish_reason": choice.finish_reason,
217
+ "tool_calls": len(calls),
218
+ "usage": usage.model_dump(exclude_none=True) if usage else None})
219
+ assistant: dict[str, Any] = {"role": "assistant", "content": text}
220
+ if calls:
221
+ assistant["tool_calls"] = [{"id": c.id, "type": "function", "function": {
222
+ "name": c.function.name, "arguments": c.function.arguments or "{}"}} for c in calls]
223
+ self.say(assistant, reasoning=_reasoning(message), finish_reason=choice.finish_reason)
224
+ log.info("turn %d: %d tool calls, finish %s", turn + 1, len(calls), choice.finish_reason)
225
+ if not calls:
226
+ if text.strip():
227
+ self.answer = text
228
+ record["end_reason"] = "answered"
229
+ return
230
+ if last:
231
+ break
232
+ self.say({"role": "user", "content": NO_ANSWER})
233
+ continue
234
+ for call in calls:
235
+ arguments, problem = _arguments(call.function.arguments)
236
+ if problem:
237
+ out = json.dumps({"error": problem})
238
+ else:
239
+ out = await envs.call(call.function.name, arguments)
240
+ self.tool_calls += 1
241
+ self.say({"role": "tool", "tool_call_id": call.id, "name": call.function.name,
242
+ "content": _clip(out, TOOL_RESULT_CHARS)})
243
+ record["end_reason"] = "no_answer"
244
+
245
+ def result(self) -> TaskResult:
246
+ record = self.record
247
+ record["seconds"] = round(time.time() - self.started, 1)
248
+ usage = record["usage"]
249
+ summary = {"agent": "replay-qa", "model": self.config.model, "end_reason": record["end_reason"],
250
+ "turns": len(record["turns"]), "tool_calls": self.tool_calls,
251
+ "input_tokens": usage["input_tokens"], "output_tokens": usage["output_tokens"],
252
+ "seconds": record["seconds"], "error": self.error}
253
+ builder = TaskResult.builder()
254
+ builder = builder.failed(*self.failure, error_type="infra_error") if self.failure else builder.succeeded()
255
+ return (builder.add_text(self.answer or (self.failure[1] if self.failure else ""))
256
+ .add_structured_output(summary)
257
+ .usage(Usage(tool_call_count=self.tool_calls, input_tokens=usage["input_tokens"],
258
+ output_tokens=usage["output_tokens"],
259
+ total_tokens=usage["input_tokens"] + usage["output_tokens"]))
260
+ .native_trajectory(format=TRAJECTORY_FORMAT, payload=record).build())
261
+
262
+
263
+ @a2a_agent(
264
+ identity=AgentIdentity(
265
+ name="replay-qa",
266
+ description="A generic tool-calling loop: the env's MCP tools as function tools over OpenAI-compatible "
267
+ "chat completions on agent-env's model endpoint, answering in text.",
268
+ version="0.1.0",
269
+ ),
270
+ config=ReplayQAConfig,
271
+ extensions=(MCP_CONFIG_V1, TRAJECTORY_V1),
272
+ )
273
+ class ReplayQA(AgentEnvAgent):
274
+ async def run(self, request: TaskRequest[ReplayQAConfig]) -> TaskResult:
275
+ prompt = "\n\n".join(part.text for part in request.parts if part.kind == "text")
276
+ episode = Episode(request.config, dict(os.environ))
277
+ await episode.run(dict(request.mcp_servers), prompt)
278
+ return episode.result()
279
+
280
+
281
+ if __name__ == "__main__":
282
+ logging.basicConfig(format="%(asctime)s %(levelname)s %(name)s: %(message)s")
283
+ log.setLevel(logging.INFO)
284
+ ReplayQA().serve()
bundles/netbox/agents/replay-qa/agent.toml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # replay-qa: the image is built from this folder's Dockerfile.
2
+ image = { dockerfile = "Dockerfile" }
3
+
4
+ [metadata]
5
+ default_model = "openai/gpt-oss-120b:groq"
bundles/netbox/artifacts/check_netbox/verify.py ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Checks the replay environment through its MCP endpoint: the tool count and one replayed status."""
2
+ import json
3
+
4
+ from mcp import ClientSession
5
+ from mcp.client.streamable_http import streamable_http_client
6
+
7
+ TOOL_COUNT = 42
8
+ TOOL = "get_circuits_circuit_types"
9
+ RECORDED_STATUS = 200
10
+
11
+
12
+ def replayed_status(result):
13
+ """The status member of a replayed tool result, structured or from its text content."""
14
+ data = result.structuredContent
15
+ if data is None:
16
+ text = "".join(getattr(part, "text", "") for part in result.content)
17
+ data = json.loads(text) if text else {}
18
+ return data.get("status") if isinstance(data, dict) else None
19
+
20
+
21
+ async def verify(mcp_url):
22
+ async with streamable_http_client(mcp_url) as (read, write, _):
23
+ async with ClientSession(read, write) as session:
24
+ await session.initialize()
25
+ listed = await session.list_tools()
26
+ result = await session.call_tool(TOOL, {}) if TOOL is not None else None
27
+ count = len(listed.tools)
28
+ passed = count == TOOL_COUNT
29
+ description = f"listed {count} tools, expected {TOOL_COUNT}"
30
+ if result is not None:
31
+ status = None if result.isError else replayed_status(result)
32
+ passed = passed and not result.isError and status == RECORDED_STATUS
33
+ description += f"; {TOOL} replayed status {status!r}, recorded {RECORDED_STATUS!r}"
34
+ else:
35
+ description += "; no GET tool without path parameters to replay"
36
+ print(f"replay: {description}")
37
+ return [{"id": "replay", "result": passed, "description": description}]
bundles/netbox/envs/netbox/Dockerfile ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:24.18.0-bookworm-slim
2
+ ENV MCP_HOST=0.0.0.0
3
+ ENV MCP_PORT=18765
4
+ RUN apt-get update && apt-get install -y --no-install-recommends python3 && rm -rf /var/lib/apt/lists/*
5
+ COPY rea-agents.tgz /tmp/
6
+ RUN npm install -g --ignore-scripts --no-fund --no-audit /tmp/rea-agents.tgz && rm /tmp/rea-agents.tgz
7
+ COPY --chown=node:node manifest.json evidence.json /env/
8
+ USER node
9
+ CMD ["rea","environment-serve","/env/manifest.json","--evidence","/env/evidence.json"]
bundles/netbox/envs/netbox/env.toml ADDED
@@ -0,0 +1 @@
 
 
1
+ environment_name = "netbox"
bundles/netbox/envs/netbox/evidence.json ADDED
The diff for this file is too large to render. See raw diff
 
bundles/netbox/envs/netbox/manifest.json ADDED
@@ -0,0 +1,1954 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "evidence_id": "ev_1f404e4754499ab52eb407480151cb26628a215a819093208368aed203104027",
3
+ "subject": {
4
+ "name": "netbox.scoped.har",
5
+ "digest": {
6
+ "sha256": "4a3deb631550090b3921305e28dfd787c562458db4b33a359f8b13f069126cd7"
7
+ },
8
+ "local_path": "/home/ubuntu/capture/netbox/netbox.scoped.har",
9
+ "format": "file",
10
+ "architecture": null
11
+ },
12
+ "provider": {
13
+ "id": "rea-analysis-view",
14
+ "name": "REA analysis view projection",
15
+ "version": "1"
16
+ },
17
+ "analysis_profile": null,
18
+ "predicate_type": "rea.analysis-view",
19
+ "operation": "inspect_analysis_view",
20
+ "parameters": {
21
+ "parent_evidence_id": "ev_f0ea4345138715ae98fd1b523d129cc054375c34188204296a93efbd974b99ea",
22
+ "view": {
23
+ "kind": "environment-manifest",
24
+ "template_rules": [
25
+ "after-uid-literal",
26
+ "opaque-token",
27
+ "sibling-variance"
28
+ ],
29
+ "include_query_parameter_names": true
30
+ }
31
+ },
32
+ "raw_result": null,
33
+ "normalized_result": {
34
+ "parent_evidence_id": "ev_f0ea4345138715ae98fd1b523d129cc054375c34188204296a93efbd974b99ea",
35
+ "parent_operation": "inspect_web_network_capture",
36
+ "parent_digest": "f0ea4345138715ae98fd1b523d129cc054375c34188204296a93efbd974b99ea",
37
+ "view_digest": "b8172dc803ca22cf9e17e4417e2db799a80d7326c328b25f83f17260fabe8fe9",
38
+ "artifact": {
39
+ "path": "/home/ubuntu/capture/netbox/netbox.scoped.har",
40
+ "sha256": "4a3deb631550090b3921305e28dfd787c562458db4b33a359f8b13f069126cd7"
41
+ },
42
+ "coverage": {
43
+ "status": "complete-within-view",
44
+ "examined": 42,
45
+ "total": 42,
46
+ "next_offset": null,
47
+ "exhausted": true
48
+ },
49
+ "limitations": [
50
+ "A 32 MiB input, 96 MiB reply and 64-level nesting budget bound complete evidence. HAR/SAZ/qlog use a 192 MiB Node old-generation heap; mitmproxy decoding uses a 768 MiB Linux address-space limit. Each owned command has a 30-second deadline with independent cleanup.",
51
+ "Body shapes list top-level JSON key types from one recorded request each; they do not establish required fields or a complete schema.",
52
+ "Every record is decoded before selection; no partial success is returned on malformed input or a resource limit.",
53
+ "HAR text is producer-decoded Unicode. Original body bytes remain unknown unless content explicitly uses valid base64; declared sizes are preserved independently of retained bytes. mitmproxy 12.2.3 SaveHar may report null optional postData.text; that null is retained and omitted only from the upstream validation copy.",
54
+ "Known authentication headers/cookies and explicitly marked literal values are excluded. Unknown extension names do not establish sensitivity.",
55
+ "Observed query parameter names do not establish required parameters, value types or a complete API schema.",
56
+ "Opt-in template rules after-uid-literal, opaque-token, sibling-variance merge recorded literals by shape; merged parameters may conflate distinct resources.",
57
+ "This is retained producer evidence, without live browser transaction IDs, scenario provenance, execution attribution or deployment authenticity. Recorded URLs are never fetched.",
58
+ "Tool templates, parameters and names are inferences from recorded request lines; they do not establish handler identity, URL-space schemas or causality."
59
+ ],
60
+ "unknowns": [
61
+ {
62
+ "kind": "authorization-model",
63
+ "statement": "Authorization headers and cookies are structurally excluded from captures; the manifest states no authorization model."
64
+ },
65
+ {
66
+ "kind": "response-semantics",
67
+ "statement": "Recorded statuses and bodies are retained only as pointers to parent records; the manifest states no response semantics."
68
+ },
69
+ {
70
+ "kind": "state-transition",
71
+ "statement": "Recorded exchanges are independent observations; the manifest states no ordering, side effects or state transitions between tools."
72
+ }
73
+ ],
74
+ "origin": "http://127.0.0.1:3503",
75
+ "name": "127-0-0-1-3503",
76
+ "tools": [
77
+ {
78
+ "name": "get_circuits_circuit_types",
79
+ "method": "GET",
80
+ "path_template": "/api/circuits/circuit-types/",
81
+ "api_surface_template": "/api/circuits/circuit-types/",
82
+ "params": [],
83
+ "query_parameter_names": [
84
+ "limit"
85
+ ],
86
+ "body_shape": null,
87
+ "statuses": [
88
+ 200
89
+ ],
90
+ "content_types": [
91
+ "application/json"
92
+ ],
93
+ "record_ordinals": [
94
+ 83
95
+ ]
96
+ },
97
+ {
98
+ "name": "get_circuits_circuit_types_by_id",
99
+ "method": "GET",
100
+ "path_template": "/api/circuits/circuit-types/{numeric}/",
101
+ "api_surface_template": "/api/circuits/circuit-types/{numeric}/",
102
+ "params": [
103
+ {
104
+ "index": 3,
105
+ "name": "id",
106
+ "rule": "numeric",
107
+ "basis": "inferred",
108
+ "observed_values": [
109
+ "1",
110
+ "2"
111
+ ]
112
+ }
113
+ ],
114
+ "query_parameter_names": [],
115
+ "body_shape": null,
116
+ "statuses": [
117
+ 200
118
+ ],
119
+ "content_types": [
120
+ "application/json"
121
+ ],
122
+ "record_ordinals": [
123
+ 84,
124
+ 85
125
+ ]
126
+ },
127
+ {
128
+ "name": "get_circuits_circuits",
129
+ "method": "GET",
130
+ "path_template": "/api/circuits/circuits/",
131
+ "api_surface_template": "/api/circuits/circuits/",
132
+ "params": [],
133
+ "query_parameter_names": [
134
+ "limit"
135
+ ],
136
+ "body_shape": null,
137
+ "statuses": [
138
+ 200
139
+ ],
140
+ "content_types": [
141
+ "application/json"
142
+ ],
143
+ "record_ordinals": [
144
+ 86
145
+ ]
146
+ },
147
+ {
148
+ "name": "get_circuits_circuits_by_id",
149
+ "method": "GET",
150
+ "path_template": "/api/circuits/circuits/{numeric}/",
151
+ "api_surface_template": "/api/circuits/circuits/{numeric}/",
152
+ "params": [
153
+ {
154
+ "index": 3,
155
+ "name": "id",
156
+ "rule": "numeric",
157
+ "basis": "inferred",
158
+ "observed_values": [
159
+ "1",
160
+ "2",
161
+ "3"
162
+ ]
163
+ }
164
+ ],
165
+ "query_parameter_names": [],
166
+ "body_shape": null,
167
+ "statuses": [
168
+ 200
169
+ ],
170
+ "content_types": [
171
+ "application/json"
172
+ ],
173
+ "record_ordinals": [
174
+ 87,
175
+ 88,
176
+ 89
177
+ ]
178
+ },
179
+ {
180
+ "name": "get_circuits_providers",
181
+ "method": "GET",
182
+ "path_template": "/api/circuits/providers/",
183
+ "api_surface_template": "/api/circuits/providers/",
184
+ "params": [],
185
+ "query_parameter_names": [
186
+ "limit"
187
+ ],
188
+ "body_shape": null,
189
+ "statuses": [
190
+ 200
191
+ ],
192
+ "content_types": [
193
+ "application/json"
194
+ ],
195
+ "record_ordinals": [
196
+ 80
197
+ ]
198
+ },
199
+ {
200
+ "name": "get_circuits_providers_by_id",
201
+ "method": "GET",
202
+ "path_template": "/api/circuits/providers/{numeric}/",
203
+ "api_surface_template": "/api/circuits/providers/{numeric}/",
204
+ "params": [
205
+ {
206
+ "index": 3,
207
+ "name": "id",
208
+ "rule": "numeric",
209
+ "basis": "inferred",
210
+ "observed_values": [
211
+ "1",
212
+ "2"
213
+ ]
214
+ }
215
+ ],
216
+ "query_parameter_names": [],
217
+ "body_shape": null,
218
+ "statuses": [
219
+ 200
220
+ ],
221
+ "content_types": [
222
+ "application/json"
223
+ ],
224
+ "record_ordinals": [
225
+ 81,
226
+ 82
227
+ ]
228
+ },
229
+ {
230
+ "name": "get_dcim_device_roles",
231
+ "method": "GET",
232
+ "path_template": "/api/dcim/device-roles/",
233
+ "api_surface_template": "/api/dcim/device-roles/",
234
+ "params": [],
235
+ "query_parameter_names": [
236
+ "limit"
237
+ ],
238
+ "body_shape": null,
239
+ "statuses": [
240
+ 200
241
+ ],
242
+ "content_types": [
243
+ "application/json"
244
+ ],
245
+ "record_ordinals": [
246
+ 35
247
+ ]
248
+ },
249
+ {
250
+ "name": "get_dcim_device_roles_by_id",
251
+ "method": "GET",
252
+ "path_template": "/api/dcim/device-roles/{numeric}/",
253
+ "api_surface_template": "/api/dcim/device-roles/{numeric}/",
254
+ "params": [
255
+ {
256
+ "index": 3,
257
+ "name": "id",
258
+ "rule": "numeric",
259
+ "basis": "inferred",
260
+ "observed_values": [
261
+ "1",
262
+ "2",
263
+ "3",
264
+ "4"
265
+ ]
266
+ }
267
+ ],
268
+ "query_parameter_names": [],
269
+ "body_shape": null,
270
+ "statuses": [
271
+ 200
272
+ ],
273
+ "content_types": [
274
+ "application/json"
275
+ ],
276
+ "record_ordinals": [
277
+ 36,
278
+ 37,
279
+ 38,
280
+ 39
281
+ ]
282
+ },
283
+ {
284
+ "name": "get_dcim_device_types",
285
+ "method": "GET",
286
+ "path_template": "/api/dcim/device-types/",
287
+ "api_surface_template": "/api/dcim/device-types/",
288
+ "params": [],
289
+ "query_parameter_names": [
290
+ "limit"
291
+ ],
292
+ "body_shape": null,
293
+ "statuses": [
294
+ 200
295
+ ],
296
+ "content_types": [
297
+ "application/json"
298
+ ],
299
+ "record_ordinals": [
300
+ 30
301
+ ]
302
+ },
303
+ {
304
+ "name": "get_dcim_device_types_by_id",
305
+ "method": "GET",
306
+ "path_template": "/api/dcim/device-types/{numeric}/",
307
+ "api_surface_template": "/api/dcim/device-types/{numeric}/",
308
+ "params": [
309
+ {
310
+ "index": 3,
311
+ "name": "id",
312
+ "rule": "numeric",
313
+ "basis": "inferred",
314
+ "observed_values": [
315
+ "1",
316
+ "2",
317
+ "3",
318
+ "4"
319
+ ]
320
+ }
321
+ ],
322
+ "query_parameter_names": [],
323
+ "body_shape": null,
324
+ "statuses": [
325
+ 200
326
+ ],
327
+ "content_types": [
328
+ "application/json"
329
+ ],
330
+ "record_ordinals": [
331
+ 31,
332
+ 32,
333
+ 33,
334
+ 34
335
+ ]
336
+ },
337
+ {
338
+ "name": "get_dcim_devices",
339
+ "method": "GET",
340
+ "path_template": "/api/dcim/devices/",
341
+ "api_surface_template": "/api/dcim/devices/",
342
+ "params": [],
343
+ "query_parameter_names": [
344
+ "brief",
345
+ "limit",
346
+ "q",
347
+ "site_id"
348
+ ],
349
+ "body_shape": null,
350
+ "statuses": [
351
+ 200
352
+ ],
353
+ "content_types": [
354
+ "application/json"
355
+ ],
356
+ "record_ordinals": [
357
+ 43,
358
+ 90,
359
+ 91
360
+ ]
361
+ },
362
+ {
363
+ "name": "get_dcim_devices_by_id",
364
+ "method": "GET",
365
+ "path_template": "/api/dcim/devices/{numeric}/",
366
+ "api_surface_template": "/api/dcim/devices/{numeric}/",
367
+ "params": [
368
+ {
369
+ "index": 3,
370
+ "name": "id",
371
+ "rule": "numeric",
372
+ "basis": "inferred",
373
+ "observed_values": [
374
+ "1",
375
+ "10",
376
+ "2",
377
+ "3",
378
+ "4",
379
+ "5",
380
+ "6",
381
+ "7",
382
+ "8",
383
+ "9"
384
+ ]
385
+ }
386
+ ],
387
+ "query_parameter_names": [],
388
+ "body_shape": null,
389
+ "statuses": [
390
+ 200
391
+ ],
392
+ "content_types": [
393
+ "application/json"
394
+ ],
395
+ "record_ordinals": [
396
+ 44,
397
+ 45,
398
+ 46,
399
+ 47,
400
+ 48,
401
+ 49,
402
+ 50,
403
+ 51,
404
+ 52,
405
+ 53
406
+ ]
407
+ },
408
+ {
409
+ "name": "get_dcim_interfaces",
410
+ "method": "GET",
411
+ "path_template": "/api/dcim/interfaces/",
412
+ "api_surface_template": "/api/dcim/interfaces/",
413
+ "params": [],
414
+ "query_parameter_names": [
415
+ "limit"
416
+ ],
417
+ "body_shape": null,
418
+ "statuses": [
419
+ 200
420
+ ],
421
+ "content_types": [
422
+ "application/json"
423
+ ],
424
+ "record_ordinals": [
425
+ 54
426
+ ]
427
+ },
428
+ {
429
+ "name": "get_dcim_interfaces_by_id",
430
+ "method": "GET",
431
+ "path_template": "/api/dcim/interfaces/{numeric}/",
432
+ "api_surface_template": "/api/dcim/interfaces/{numeric}/",
433
+ "params": [
434
+ {
435
+ "index": 3,
436
+ "name": "id",
437
+ "rule": "numeric",
438
+ "basis": "inferred",
439
+ "observed_values": [
440
+ "1",
441
+ "2",
442
+ "3",
443
+ "4",
444
+ "5",
445
+ "6"
446
+ ]
447
+ }
448
+ ],
449
+ "query_parameter_names": [],
450
+ "body_shape": null,
451
+ "statuses": [
452
+ 200
453
+ ],
454
+ "content_types": [
455
+ "application/json"
456
+ ],
457
+ "record_ordinals": [
458
+ 55,
459
+ 56,
460
+ 57,
461
+ 58,
462
+ 59,
463
+ 60
464
+ ]
465
+ },
466
+ {
467
+ "name": "get_dcim_locations",
468
+ "method": "GET",
469
+ "path_template": "/api/dcim/locations/",
470
+ "api_surface_template": "/api/dcim/locations/",
471
+ "params": [],
472
+ "query_parameter_names": [
473
+ "limit"
474
+ ],
475
+ "body_shape": null,
476
+ "statuses": [
477
+ 200
478
+ ],
479
+ "content_types": [
480
+ "application/json"
481
+ ],
482
+ "record_ordinals": [
483
+ 18
484
+ ]
485
+ },
486
+ {
487
+ "name": "get_dcim_locations_by_id",
488
+ "method": "GET",
489
+ "path_template": "/api/dcim/locations/{numeric}/",
490
+ "api_surface_template": "/api/dcim/locations/{numeric}/",
491
+ "params": [
492
+ {
493
+ "index": 3,
494
+ "name": "id",
495
+ "rule": "numeric",
496
+ "basis": "inferred",
497
+ "observed_values": [
498
+ "1",
499
+ "2"
500
+ ]
501
+ }
502
+ ],
503
+ "query_parameter_names": [],
504
+ "body_shape": null,
505
+ "statuses": [
506
+ 200
507
+ ],
508
+ "content_types": [
509
+ "application/json"
510
+ ],
511
+ "record_ordinals": [
512
+ 19,
513
+ 20
514
+ ]
515
+ },
516
+ {
517
+ "name": "get_dcim_manufacturers",
518
+ "method": "GET",
519
+ "path_template": "/api/dcim/manufacturers/",
520
+ "api_surface_template": "/api/dcim/manufacturers/",
521
+ "params": [],
522
+ "query_parameter_names": [
523
+ "limit"
524
+ ],
525
+ "body_shape": null,
526
+ "statuses": [
527
+ 200
528
+ ],
529
+ "content_types": [
530
+ "application/json"
531
+ ],
532
+ "record_ordinals": [
533
+ 26
534
+ ]
535
+ },
536
+ {
537
+ "name": "get_dcim_manufacturers_by_id",
538
+ "method": "GET",
539
+ "path_template": "/api/dcim/manufacturers/{numeric}/",
540
+ "api_surface_template": "/api/dcim/manufacturers/{numeric}/",
541
+ "params": [
542
+ {
543
+ "index": 3,
544
+ "name": "id",
545
+ "rule": "numeric",
546
+ "basis": "inferred",
547
+ "observed_values": [
548
+ "1",
549
+ "2",
550
+ "3"
551
+ ]
552
+ }
553
+ ],
554
+ "query_parameter_names": [],
555
+ "body_shape": null,
556
+ "statuses": [
557
+ 200
558
+ ],
559
+ "content_types": [
560
+ "application/json"
561
+ ],
562
+ "record_ordinals": [
563
+ 27,
564
+ 28,
565
+ 29
566
+ ]
567
+ },
568
+ {
569
+ "name": "get_dcim_platforms",
570
+ "method": "GET",
571
+ "path_template": "/api/dcim/platforms/",
572
+ "api_surface_template": "/api/dcim/platforms/",
573
+ "params": [],
574
+ "query_parameter_names": [
575
+ "limit"
576
+ ],
577
+ "body_shape": null,
578
+ "statuses": [
579
+ 200
580
+ ],
581
+ "content_types": [
582
+ "application/json"
583
+ ],
584
+ "record_ordinals": [
585
+ 40
586
+ ]
587
+ },
588
+ {
589
+ "name": "get_dcim_platforms_by_id",
590
+ "method": "GET",
591
+ "path_template": "/api/dcim/platforms/{numeric}/",
592
+ "api_surface_template": "/api/dcim/platforms/{numeric}/",
593
+ "params": [
594
+ {
595
+ "index": 3,
596
+ "name": "id",
597
+ "rule": "numeric",
598
+ "basis": "inferred",
599
+ "observed_values": [
600
+ "1",
601
+ "2"
602
+ ]
603
+ }
604
+ ],
605
+ "query_parameter_names": [],
606
+ "body_shape": null,
607
+ "statuses": [
608
+ 200
609
+ ],
610
+ "content_types": [
611
+ "application/json"
612
+ ],
613
+ "record_ordinals": [
614
+ 41,
615
+ 42
616
+ ]
617
+ },
618
+ {
619
+ "name": "get_dcim_racks",
620
+ "method": "GET",
621
+ "path_template": "/api/dcim/racks/",
622
+ "api_surface_template": "/api/dcim/racks/",
623
+ "params": [],
624
+ "query_parameter_names": [
625
+ "brief",
626
+ "limit",
627
+ "tenant_id"
628
+ ],
629
+ "body_shape": null,
630
+ "statuses": [
631
+ 200
632
+ ],
633
+ "content_types": [
634
+ "application/json"
635
+ ],
636
+ "record_ordinals": [
637
+ 21,
638
+ 93
639
+ ]
640
+ },
641
+ {
642
+ "name": "get_dcim_racks_by_id",
643
+ "method": "GET",
644
+ "path_template": "/api/dcim/racks/{numeric}/",
645
+ "api_surface_template": "/api/dcim/racks/{numeric}/",
646
+ "params": [
647
+ {
648
+ "index": 3,
649
+ "name": "id",
650
+ "rule": "numeric",
651
+ "basis": "inferred",
652
+ "observed_values": [
653
+ "1",
654
+ "2",
655
+ "3",
656
+ "4"
657
+ ]
658
+ }
659
+ ],
660
+ "query_parameter_names": [],
661
+ "body_shape": null,
662
+ "statuses": [
663
+ 200
664
+ ],
665
+ "content_types": [
666
+ "application/json"
667
+ ],
668
+ "record_ordinals": [
669
+ 22,
670
+ 23,
671
+ 24,
672
+ 25
673
+ ]
674
+ },
675
+ {
676
+ "name": "get_dcim_regions",
677
+ "method": "GET",
678
+ "path_template": "/api/dcim/regions/",
679
+ "api_surface_template": "/api/dcim/regions/",
680
+ "params": [],
681
+ "query_parameter_names": [
682
+ "limit"
683
+ ],
684
+ "body_shape": null,
685
+ "statuses": [
686
+ 200
687
+ ],
688
+ "content_types": [
689
+ "application/json"
690
+ ],
691
+ "record_ordinals": [
692
+ 10
693
+ ]
694
+ },
695
+ {
696
+ "name": "get_dcim_regions_by_id",
697
+ "method": "GET",
698
+ "path_template": "/api/dcim/regions/{numeric}/",
699
+ "api_surface_template": "/api/dcim/regions/{numeric}/",
700
+ "params": [
701
+ {
702
+ "index": 3,
703
+ "name": "id",
704
+ "rule": "numeric",
705
+ "basis": "inferred",
706
+ "observed_values": [
707
+ "1",
708
+ "2"
709
+ ]
710
+ }
711
+ ],
712
+ "query_parameter_names": [],
713
+ "body_shape": null,
714
+ "statuses": [
715
+ 200
716
+ ],
717
+ "content_types": [
718
+ "application/json"
719
+ ],
720
+ "record_ordinals": [
721
+ 11,
722
+ 12
723
+ ]
724
+ },
725
+ {
726
+ "name": "get_dcim_sites",
727
+ "method": "GET",
728
+ "path_template": "/api/dcim/sites/",
729
+ "api_surface_template": "/api/dcim/sites/",
730
+ "params": [],
731
+ "query_parameter_names": [
732
+ "brief",
733
+ "limit"
734
+ ],
735
+ "body_shape": null,
736
+ "statuses": [
737
+ 200
738
+ ],
739
+ "content_types": [
740
+ "application/json"
741
+ ],
742
+ "record_ordinals": [
743
+ 13,
744
+ 99
745
+ ]
746
+ },
747
+ {
748
+ "name": "post_dcim_sites",
749
+ "method": "POST",
750
+ "path_template": "/api/dcim/sites/",
751
+ "api_surface_template": "/api/dcim/sites/",
752
+ "params": [],
753
+ "query_parameter_names": [],
754
+ "body_shape": {
755
+ "type": "object",
756
+ "properties": {
757
+ "name": "string",
758
+ "slug": "string",
759
+ "status": "string",
760
+ "region": "number",
761
+ "description": "string"
762
+ }
763
+ },
764
+ "statuses": [
765
+ 201
766
+ ],
767
+ "content_types": [
768
+ "application/json"
769
+ ],
770
+ "record_ordinals": [
771
+ 94
772
+ ]
773
+ },
774
+ {
775
+ "name": "delete_dcim_sites_by_id",
776
+ "method": "DELETE",
777
+ "path_template": "/api/dcim/sites/{numeric}/",
778
+ "api_surface_template": "/api/dcim/sites/{numeric}/",
779
+ "params": [
780
+ {
781
+ "index": 3,
782
+ "name": "id",
783
+ "rule": "numeric",
784
+ "basis": "inferred",
785
+ "observed_values": [
786
+ "5"
787
+ ]
788
+ }
789
+ ],
790
+ "query_parameter_names": [],
791
+ "body_shape": null,
792
+ "statuses": [
793
+ 204
794
+ ],
795
+ "content_types": [],
796
+ "record_ordinals": [
797
+ 97
798
+ ]
799
+ },
800
+ {
801
+ "name": "get_dcim_sites_by_id",
802
+ "method": "GET",
803
+ "path_template": "/api/dcim/sites/{numeric}/",
804
+ "api_surface_template": "/api/dcim/sites/{numeric}/",
805
+ "params": [
806
+ {
807
+ "index": 3,
808
+ "name": "id",
809
+ "rule": "numeric",
810
+ "basis": "inferred",
811
+ "observed_values": [
812
+ "1",
813
+ "2",
814
+ "3",
815
+ "4",
816
+ "5"
817
+ ]
818
+ }
819
+ ],
820
+ "query_parameter_names": [],
821
+ "body_shape": null,
822
+ "statuses": [
823
+ 200,
824
+ 404
825
+ ],
826
+ "content_types": [
827
+ "application/json"
828
+ ],
829
+ "record_ordinals": [
830
+ 14,
831
+ 15,
832
+ 16,
833
+ 17,
834
+ 96,
835
+ 98
836
+ ]
837
+ },
838
+ {
839
+ "name": "patch_dcim_sites_by_id",
840
+ "method": "PATCH",
841
+ "path_template": "/api/dcim/sites/{numeric}/",
842
+ "api_surface_template": "/api/dcim/sites/{numeric}/",
843
+ "params": [
844
+ {
845
+ "index": 3,
846
+ "name": "id",
847
+ "rule": "numeric",
848
+ "basis": "inferred",
849
+ "observed_values": [
850
+ "5"
851
+ ]
852
+ }
853
+ ],
854
+ "query_parameter_names": [],
855
+ "body_shape": {
856
+ "type": "object",
857
+ "properties": {
858
+ "status": "string",
859
+ "description": "string",
860
+ "facility": "string"
861
+ }
862
+ },
863
+ "statuses": [
864
+ 200
865
+ ],
866
+ "content_types": [
867
+ "application/json"
868
+ ],
869
+ "record_ordinals": [
870
+ 95
871
+ ]
872
+ },
873
+ {
874
+ "name": "get_ipam_ip_addresses",
875
+ "method": "GET",
876
+ "path_template": "/api/ipam/ip-addresses/",
877
+ "api_surface_template": "/api/ipam/ip-addresses/",
878
+ "params": [],
879
+ "query_parameter_names": [
880
+ "limit"
881
+ ],
882
+ "body_shape": null,
883
+ "statuses": [
884
+ 200
885
+ ],
886
+ "content_types": [
887
+ "application/json"
888
+ ],
889
+ "record_ordinals": [
890
+ 74
891
+ ]
892
+ },
893
+ {
894
+ "name": "get_ipam_ip_addresses_by_id",
895
+ "method": "GET",
896
+ "path_template": "/api/ipam/ip-addresses/{numeric}/",
897
+ "api_surface_template": "/api/ipam/ip-addresses/{numeric}/",
898
+ "params": [
899
+ {
900
+ "index": 3,
901
+ "name": "id",
902
+ "rule": "numeric",
903
+ "basis": "inferred",
904
+ "observed_values": [
905
+ "1",
906
+ "2",
907
+ "3",
908
+ "4",
909
+ "5"
910
+ ]
911
+ }
912
+ ],
913
+ "query_parameter_names": [],
914
+ "body_shape": null,
915
+ "statuses": [
916
+ 200
917
+ ],
918
+ "content_types": [
919
+ "application/json"
920
+ ],
921
+ "record_ordinals": [
922
+ 75,
923
+ 76,
924
+ 77,
925
+ 78,
926
+ 79
927
+ ]
928
+ },
929
+ {
930
+ "name": "get_ipam_prefixes",
931
+ "method": "GET",
932
+ "path_template": "/api/ipam/prefixes/",
933
+ "api_surface_template": "/api/ipam/prefixes/",
934
+ "params": [],
935
+ "query_parameter_names": [
936
+ "brief",
937
+ "limit",
938
+ "vrf_id"
939
+ ],
940
+ "body_shape": null,
941
+ "statuses": [
942
+ 200
943
+ ],
944
+ "content_types": [
945
+ "application/json"
946
+ ],
947
+ "record_ordinals": [
948
+ 69,
949
+ 92
950
+ ]
951
+ },
952
+ {
953
+ "name": "get_ipam_prefixes_by_id",
954
+ "method": "GET",
955
+ "path_template": "/api/ipam/prefixes/{numeric}/",
956
+ "api_surface_template": "/api/ipam/prefixes/{numeric}/",
957
+ "params": [
958
+ {
959
+ "index": 3,
960
+ "name": "id",
961
+ "rule": "numeric",
962
+ "basis": "inferred",
963
+ "observed_values": [
964
+ "1",
965
+ "2",
966
+ "3",
967
+ "4"
968
+ ]
969
+ }
970
+ ],
971
+ "query_parameter_names": [],
972
+ "body_shape": null,
973
+ "statuses": [
974
+ 200
975
+ ],
976
+ "content_types": [
977
+ "application/json"
978
+ ],
979
+ "record_ordinals": [
980
+ 70,
981
+ 71,
982
+ 72,
983
+ 73
984
+ ]
985
+ },
986
+ {
987
+ "name": "get_ipam_vlans",
988
+ "method": "GET",
989
+ "path_template": "/api/ipam/vlans/",
990
+ "api_surface_template": "/api/ipam/vlans/",
991
+ "params": [],
992
+ "query_parameter_names": [
993
+ "limit"
994
+ ],
995
+ "body_shape": null,
996
+ "statuses": [
997
+ 200
998
+ ],
999
+ "content_types": [
1000
+ "application/json"
1001
+ ],
1002
+ "record_ordinals": [
1003
+ 64
1004
+ ]
1005
+ },
1006
+ {
1007
+ "name": "get_ipam_vlans_by_id",
1008
+ "method": "GET",
1009
+ "path_template": "/api/ipam/vlans/{numeric}/",
1010
+ "api_surface_template": "/api/ipam/vlans/{numeric}/",
1011
+ "params": [
1012
+ {
1013
+ "index": 3,
1014
+ "name": "id",
1015
+ "rule": "numeric",
1016
+ "basis": "inferred",
1017
+ "observed_values": [
1018
+ "1",
1019
+ "2",
1020
+ "3",
1021
+ "4"
1022
+ ]
1023
+ }
1024
+ ],
1025
+ "query_parameter_names": [],
1026
+ "body_shape": null,
1027
+ "statuses": [
1028
+ 200
1029
+ ],
1030
+ "content_types": [
1031
+ "application/json"
1032
+ ],
1033
+ "record_ordinals": [
1034
+ 65,
1035
+ 66,
1036
+ 67,
1037
+ 68
1038
+ ]
1039
+ },
1040
+ {
1041
+ "name": "get_ipam_vrfs",
1042
+ "method": "GET",
1043
+ "path_template": "/api/ipam/vrfs/",
1044
+ "api_surface_template": "/api/ipam/vrfs/",
1045
+ "params": [],
1046
+ "query_parameter_names": [
1047
+ "limit"
1048
+ ],
1049
+ "body_shape": null,
1050
+ "statuses": [
1051
+ 200
1052
+ ],
1053
+ "content_types": [
1054
+ "application/json"
1055
+ ],
1056
+ "record_ordinals": [
1057
+ 61
1058
+ ]
1059
+ },
1060
+ {
1061
+ "name": "get_ipam_vrfs_by_id",
1062
+ "method": "GET",
1063
+ "path_template": "/api/ipam/vrfs/{numeric}/",
1064
+ "api_surface_template": "/api/ipam/vrfs/{numeric}/",
1065
+ "params": [
1066
+ {
1067
+ "index": 3,
1068
+ "name": "id",
1069
+ "rule": "numeric",
1070
+ "basis": "inferred",
1071
+ "observed_values": [
1072
+ "1",
1073
+ "2"
1074
+ ]
1075
+ }
1076
+ ],
1077
+ "query_parameter_names": [],
1078
+ "body_shape": null,
1079
+ "statuses": [
1080
+ 200
1081
+ ],
1082
+ "content_types": [
1083
+ "application/json"
1084
+ ],
1085
+ "record_ordinals": [
1086
+ 62,
1087
+ 63
1088
+ ]
1089
+ },
1090
+ {
1091
+ "name": "get_status",
1092
+ "method": "GET",
1093
+ "path_template": "/api/status/",
1094
+ "api_surface_template": "/api/status/",
1095
+ "params": [],
1096
+ "query_parameter_names": [],
1097
+ "body_shape": null,
1098
+ "statuses": [
1099
+ 200
1100
+ ],
1101
+ "content_types": [
1102
+ "application/json"
1103
+ ],
1104
+ "record_ordinals": [
1105
+ 0
1106
+ ]
1107
+ },
1108
+ {
1109
+ "name": "get_tenancy_contacts",
1110
+ "method": "GET",
1111
+ "path_template": "/api/tenancy/contacts/",
1112
+ "api_surface_template": "/api/tenancy/contacts/",
1113
+ "params": [],
1114
+ "query_parameter_names": [
1115
+ "limit"
1116
+ ],
1117
+ "body_shape": null,
1118
+ "statuses": [
1119
+ 200
1120
+ ],
1121
+ "content_types": [
1122
+ "application/json"
1123
+ ],
1124
+ "record_ordinals": [
1125
+ 5
1126
+ ]
1127
+ },
1128
+ {
1129
+ "name": "get_tenancy_contacts_by_id",
1130
+ "method": "GET",
1131
+ "path_template": "/api/tenancy/contacts/{numeric}/",
1132
+ "api_surface_template": "/api/tenancy/contacts/{numeric}/",
1133
+ "params": [
1134
+ {
1135
+ "index": 3,
1136
+ "name": "id",
1137
+ "rule": "numeric",
1138
+ "basis": "inferred",
1139
+ "observed_values": [
1140
+ "1",
1141
+ "2",
1142
+ "3",
1143
+ "4"
1144
+ ]
1145
+ }
1146
+ ],
1147
+ "query_parameter_names": [],
1148
+ "body_shape": null,
1149
+ "statuses": [
1150
+ 200
1151
+ ],
1152
+ "content_types": [
1153
+ "application/json"
1154
+ ],
1155
+ "record_ordinals": [
1156
+ 6,
1157
+ 7,
1158
+ 8,
1159
+ 9
1160
+ ]
1161
+ },
1162
+ {
1163
+ "name": "get_tenancy_tenants",
1164
+ "method": "GET",
1165
+ "path_template": "/api/tenancy/tenants/",
1166
+ "api_surface_template": "/api/tenancy/tenants/",
1167
+ "params": [],
1168
+ "query_parameter_names": [
1169
+ "limit"
1170
+ ],
1171
+ "body_shape": null,
1172
+ "statuses": [
1173
+ 200
1174
+ ],
1175
+ "content_types": [
1176
+ "application/json"
1177
+ ],
1178
+ "record_ordinals": [
1179
+ 1
1180
+ ]
1181
+ },
1182
+ {
1183
+ "name": "get_tenancy_tenants_by_id",
1184
+ "method": "GET",
1185
+ "path_template": "/api/tenancy/tenants/{numeric}/",
1186
+ "api_surface_template": "/api/tenancy/tenants/{numeric}/",
1187
+ "params": [
1188
+ {
1189
+ "index": 3,
1190
+ "name": "id",
1191
+ "rule": "numeric",
1192
+ "basis": "inferred",
1193
+ "observed_values": [
1194
+ "1",
1195
+ "2",
1196
+ "3"
1197
+ ]
1198
+ }
1199
+ ],
1200
+ "query_parameter_names": [],
1201
+ "body_shape": null,
1202
+ "statuses": [
1203
+ 200
1204
+ ],
1205
+ "content_types": [
1206
+ "application/json"
1207
+ ],
1208
+ "record_ordinals": [
1209
+ 2,
1210
+ 3,
1211
+ 4
1212
+ ]
1213
+ }
1214
+ ],
1215
+ "records": [
1216
+ {
1217
+ "ordinal": 0,
1218
+ "method": "GET",
1219
+ "path": "/api/status/",
1220
+ "status": 200,
1221
+ "content_type": "application/json"
1222
+ },
1223
+ {
1224
+ "ordinal": 1,
1225
+ "method": "GET",
1226
+ "path": "/api/tenancy/tenants/",
1227
+ "status": 200,
1228
+ "content_type": "application/json"
1229
+ },
1230
+ {
1231
+ "ordinal": 2,
1232
+ "method": "GET",
1233
+ "path": "/api/tenancy/tenants/1/",
1234
+ "status": 200,
1235
+ "content_type": "application/json"
1236
+ },
1237
+ {
1238
+ "ordinal": 3,
1239
+ "method": "GET",
1240
+ "path": "/api/tenancy/tenants/2/",
1241
+ "status": 200,
1242
+ "content_type": "application/json"
1243
+ },
1244
+ {
1245
+ "ordinal": 4,
1246
+ "method": "GET",
1247
+ "path": "/api/tenancy/tenants/3/",
1248
+ "status": 200,
1249
+ "content_type": "application/json"
1250
+ },
1251
+ {
1252
+ "ordinal": 5,
1253
+ "method": "GET",
1254
+ "path": "/api/tenancy/contacts/",
1255
+ "status": 200,
1256
+ "content_type": "application/json"
1257
+ },
1258
+ {
1259
+ "ordinal": 6,
1260
+ "method": "GET",
1261
+ "path": "/api/tenancy/contacts/1/",
1262
+ "status": 200,
1263
+ "content_type": "application/json"
1264
+ },
1265
+ {
1266
+ "ordinal": 7,
1267
+ "method": "GET",
1268
+ "path": "/api/tenancy/contacts/2/",
1269
+ "status": 200,
1270
+ "content_type": "application/json"
1271
+ },
1272
+ {
1273
+ "ordinal": 8,
1274
+ "method": "GET",
1275
+ "path": "/api/tenancy/contacts/3/",
1276
+ "status": 200,
1277
+ "content_type": "application/json"
1278
+ },
1279
+ {
1280
+ "ordinal": 9,
1281
+ "method": "GET",
1282
+ "path": "/api/tenancy/contacts/4/",
1283
+ "status": 200,
1284
+ "content_type": "application/json"
1285
+ },
1286
+ {
1287
+ "ordinal": 10,
1288
+ "method": "GET",
1289
+ "path": "/api/dcim/regions/",
1290
+ "status": 200,
1291
+ "content_type": "application/json"
1292
+ },
1293
+ {
1294
+ "ordinal": 11,
1295
+ "method": "GET",
1296
+ "path": "/api/dcim/regions/1/",
1297
+ "status": 200,
1298
+ "content_type": "application/json"
1299
+ },
1300
+ {
1301
+ "ordinal": 12,
1302
+ "method": "GET",
1303
+ "path": "/api/dcim/regions/2/",
1304
+ "status": 200,
1305
+ "content_type": "application/json"
1306
+ },
1307
+ {
1308
+ "ordinal": 13,
1309
+ "method": "GET",
1310
+ "path": "/api/dcim/sites/",
1311
+ "status": 200,
1312
+ "content_type": "application/json"
1313
+ },
1314
+ {
1315
+ "ordinal": 14,
1316
+ "method": "GET",
1317
+ "path": "/api/dcim/sites/1/",
1318
+ "status": 200,
1319
+ "content_type": "application/json"
1320
+ },
1321
+ {
1322
+ "ordinal": 15,
1323
+ "method": "GET",
1324
+ "path": "/api/dcim/sites/2/",
1325
+ "status": 200,
1326
+ "content_type": "application/json"
1327
+ },
1328
+ {
1329
+ "ordinal": 16,
1330
+ "method": "GET",
1331
+ "path": "/api/dcim/sites/3/",
1332
+ "status": 200,
1333
+ "content_type": "application/json"
1334
+ },
1335
+ {
1336
+ "ordinal": 17,
1337
+ "method": "GET",
1338
+ "path": "/api/dcim/sites/4/",
1339
+ "status": 200,
1340
+ "content_type": "application/json"
1341
+ },
1342
+ {
1343
+ "ordinal": 18,
1344
+ "method": "GET",
1345
+ "path": "/api/dcim/locations/",
1346
+ "status": 200,
1347
+ "content_type": "application/json"
1348
+ },
1349
+ {
1350
+ "ordinal": 19,
1351
+ "method": "GET",
1352
+ "path": "/api/dcim/locations/1/",
1353
+ "status": 200,
1354
+ "content_type": "application/json"
1355
+ },
1356
+ {
1357
+ "ordinal": 20,
1358
+ "method": "GET",
1359
+ "path": "/api/dcim/locations/2/",
1360
+ "status": 200,
1361
+ "content_type": "application/json"
1362
+ },
1363
+ {
1364
+ "ordinal": 21,
1365
+ "method": "GET",
1366
+ "path": "/api/dcim/racks/",
1367
+ "status": 200,
1368
+ "content_type": "application/json"
1369
+ },
1370
+ {
1371
+ "ordinal": 22,
1372
+ "method": "GET",
1373
+ "path": "/api/dcim/racks/1/",
1374
+ "status": 200,
1375
+ "content_type": "application/json"
1376
+ },
1377
+ {
1378
+ "ordinal": 23,
1379
+ "method": "GET",
1380
+ "path": "/api/dcim/racks/2/",
1381
+ "status": 200,
1382
+ "content_type": "application/json"
1383
+ },
1384
+ {
1385
+ "ordinal": 24,
1386
+ "method": "GET",
1387
+ "path": "/api/dcim/racks/3/",
1388
+ "status": 200,
1389
+ "content_type": "application/json"
1390
+ },
1391
+ {
1392
+ "ordinal": 25,
1393
+ "method": "GET",
1394
+ "path": "/api/dcim/racks/4/",
1395
+ "status": 200,
1396
+ "content_type": "application/json"
1397
+ },
1398
+ {
1399
+ "ordinal": 26,
1400
+ "method": "GET",
1401
+ "path": "/api/dcim/manufacturers/",
1402
+ "status": 200,
1403
+ "content_type": "application/json"
1404
+ },
1405
+ {
1406
+ "ordinal": 27,
1407
+ "method": "GET",
1408
+ "path": "/api/dcim/manufacturers/1/",
1409
+ "status": 200,
1410
+ "content_type": "application/json"
1411
+ },
1412
+ {
1413
+ "ordinal": 28,
1414
+ "method": "GET",
1415
+ "path": "/api/dcim/manufacturers/2/",
1416
+ "status": 200,
1417
+ "content_type": "application/json"
1418
+ },
1419
+ {
1420
+ "ordinal": 29,
1421
+ "method": "GET",
1422
+ "path": "/api/dcim/manufacturers/3/",
1423
+ "status": 200,
1424
+ "content_type": "application/json"
1425
+ },
1426
+ {
1427
+ "ordinal": 30,
1428
+ "method": "GET",
1429
+ "path": "/api/dcim/device-types/",
1430
+ "status": 200,
1431
+ "content_type": "application/json"
1432
+ },
1433
+ {
1434
+ "ordinal": 31,
1435
+ "method": "GET",
1436
+ "path": "/api/dcim/device-types/1/",
1437
+ "status": 200,
1438
+ "content_type": "application/json"
1439
+ },
1440
+ {
1441
+ "ordinal": 32,
1442
+ "method": "GET",
1443
+ "path": "/api/dcim/device-types/2/",
1444
+ "status": 200,
1445
+ "content_type": "application/json"
1446
+ },
1447
+ {
1448
+ "ordinal": 33,
1449
+ "method": "GET",
1450
+ "path": "/api/dcim/device-types/3/",
1451
+ "status": 200,
1452
+ "content_type": "application/json"
1453
+ },
1454
+ {
1455
+ "ordinal": 34,
1456
+ "method": "GET",
1457
+ "path": "/api/dcim/device-types/4/",
1458
+ "status": 200,
1459
+ "content_type": "application/json"
1460
+ },
1461
+ {
1462
+ "ordinal": 35,
1463
+ "method": "GET",
1464
+ "path": "/api/dcim/device-roles/",
1465
+ "status": 200,
1466
+ "content_type": "application/json"
1467
+ },
1468
+ {
1469
+ "ordinal": 36,
1470
+ "method": "GET",
1471
+ "path": "/api/dcim/device-roles/1/",
1472
+ "status": 200,
1473
+ "content_type": "application/json"
1474
+ },
1475
+ {
1476
+ "ordinal": 37,
1477
+ "method": "GET",
1478
+ "path": "/api/dcim/device-roles/2/",
1479
+ "status": 200,
1480
+ "content_type": "application/json"
1481
+ },
1482
+ {
1483
+ "ordinal": 38,
1484
+ "method": "GET",
1485
+ "path": "/api/dcim/device-roles/3/",
1486
+ "status": 200,
1487
+ "content_type": "application/json"
1488
+ },
1489
+ {
1490
+ "ordinal": 39,
1491
+ "method": "GET",
1492
+ "path": "/api/dcim/device-roles/4/",
1493
+ "status": 200,
1494
+ "content_type": "application/json"
1495
+ },
1496
+ {
1497
+ "ordinal": 40,
1498
+ "method": "GET",
1499
+ "path": "/api/dcim/platforms/",
1500
+ "status": 200,
1501
+ "content_type": "application/json"
1502
+ },
1503
+ {
1504
+ "ordinal": 41,
1505
+ "method": "GET",
1506
+ "path": "/api/dcim/platforms/1/",
1507
+ "status": 200,
1508
+ "content_type": "application/json"
1509
+ },
1510
+ {
1511
+ "ordinal": 42,
1512
+ "method": "GET",
1513
+ "path": "/api/dcim/platforms/2/",
1514
+ "status": 200,
1515
+ "content_type": "application/json"
1516
+ },
1517
+ {
1518
+ "ordinal": 43,
1519
+ "method": "GET",
1520
+ "path": "/api/dcim/devices/",
1521
+ "status": 200,
1522
+ "content_type": "application/json"
1523
+ },
1524
+ {
1525
+ "ordinal": 44,
1526
+ "method": "GET",
1527
+ "path": "/api/dcim/devices/1/",
1528
+ "status": 200,
1529
+ "content_type": "application/json"
1530
+ },
1531
+ {
1532
+ "ordinal": 45,
1533
+ "method": "GET",
1534
+ "path": "/api/dcim/devices/2/",
1535
+ "status": 200,
1536
+ "content_type": "application/json"
1537
+ },
1538
+ {
1539
+ "ordinal": 46,
1540
+ "method": "GET",
1541
+ "path": "/api/dcim/devices/3/",
1542
+ "status": 200,
1543
+ "content_type": "application/json"
1544
+ },
1545
+ {
1546
+ "ordinal": 47,
1547
+ "method": "GET",
1548
+ "path": "/api/dcim/devices/4/",
1549
+ "status": 200,
1550
+ "content_type": "application/json"
1551
+ },
1552
+ {
1553
+ "ordinal": 48,
1554
+ "method": "GET",
1555
+ "path": "/api/dcim/devices/5/",
1556
+ "status": 200,
1557
+ "content_type": "application/json"
1558
+ },
1559
+ {
1560
+ "ordinal": 49,
1561
+ "method": "GET",
1562
+ "path": "/api/dcim/devices/6/",
1563
+ "status": 200,
1564
+ "content_type": "application/json"
1565
+ },
1566
+ {
1567
+ "ordinal": 50,
1568
+ "method": "GET",
1569
+ "path": "/api/dcim/devices/7/",
1570
+ "status": 200,
1571
+ "content_type": "application/json"
1572
+ },
1573
+ {
1574
+ "ordinal": 51,
1575
+ "method": "GET",
1576
+ "path": "/api/dcim/devices/8/",
1577
+ "status": 200,
1578
+ "content_type": "application/json"
1579
+ },
1580
+ {
1581
+ "ordinal": 52,
1582
+ "method": "GET",
1583
+ "path": "/api/dcim/devices/9/",
1584
+ "status": 200,
1585
+ "content_type": "application/json"
1586
+ },
1587
+ {
1588
+ "ordinal": 53,
1589
+ "method": "GET",
1590
+ "path": "/api/dcim/devices/10/",
1591
+ "status": 200,
1592
+ "content_type": "application/json"
1593
+ },
1594
+ {
1595
+ "ordinal": 54,
1596
+ "method": "GET",
1597
+ "path": "/api/dcim/interfaces/",
1598
+ "status": 200,
1599
+ "content_type": "application/json"
1600
+ },
1601
+ {
1602
+ "ordinal": 55,
1603
+ "method": "GET",
1604
+ "path": "/api/dcim/interfaces/1/",
1605
+ "status": 200,
1606
+ "content_type": "application/json"
1607
+ },
1608
+ {
1609
+ "ordinal": 56,
1610
+ "method": "GET",
1611
+ "path": "/api/dcim/interfaces/2/",
1612
+ "status": 200,
1613
+ "content_type": "application/json"
1614
+ },
1615
+ {
1616
+ "ordinal": 57,
1617
+ "method": "GET",
1618
+ "path": "/api/dcim/interfaces/3/",
1619
+ "status": 200,
1620
+ "content_type": "application/json"
1621
+ },
1622
+ {
1623
+ "ordinal": 58,
1624
+ "method": "GET",
1625
+ "path": "/api/dcim/interfaces/4/",
1626
+ "status": 200,
1627
+ "content_type": "application/json"
1628
+ },
1629
+ {
1630
+ "ordinal": 59,
1631
+ "method": "GET",
1632
+ "path": "/api/dcim/interfaces/5/",
1633
+ "status": 200,
1634
+ "content_type": "application/json"
1635
+ },
1636
+ {
1637
+ "ordinal": 60,
1638
+ "method": "GET",
1639
+ "path": "/api/dcim/interfaces/6/",
1640
+ "status": 200,
1641
+ "content_type": "application/json"
1642
+ },
1643
+ {
1644
+ "ordinal": 61,
1645
+ "method": "GET",
1646
+ "path": "/api/ipam/vrfs/",
1647
+ "status": 200,
1648
+ "content_type": "application/json"
1649
+ },
1650
+ {
1651
+ "ordinal": 62,
1652
+ "method": "GET",
1653
+ "path": "/api/ipam/vrfs/1/",
1654
+ "status": 200,
1655
+ "content_type": "application/json"
1656
+ },
1657
+ {
1658
+ "ordinal": 63,
1659
+ "method": "GET",
1660
+ "path": "/api/ipam/vrfs/2/",
1661
+ "status": 200,
1662
+ "content_type": "application/json"
1663
+ },
1664
+ {
1665
+ "ordinal": 64,
1666
+ "method": "GET",
1667
+ "path": "/api/ipam/vlans/",
1668
+ "status": 200,
1669
+ "content_type": "application/json"
1670
+ },
1671
+ {
1672
+ "ordinal": 65,
1673
+ "method": "GET",
1674
+ "path": "/api/ipam/vlans/1/",
1675
+ "status": 200,
1676
+ "content_type": "application/json"
1677
+ },
1678
+ {
1679
+ "ordinal": 66,
1680
+ "method": "GET",
1681
+ "path": "/api/ipam/vlans/2/",
1682
+ "status": 200,
1683
+ "content_type": "application/json"
1684
+ },
1685
+ {
1686
+ "ordinal": 67,
1687
+ "method": "GET",
1688
+ "path": "/api/ipam/vlans/3/",
1689
+ "status": 200,
1690
+ "content_type": "application/json"
1691
+ },
1692
+ {
1693
+ "ordinal": 68,
1694
+ "method": "GET",
1695
+ "path": "/api/ipam/vlans/4/",
1696
+ "status": 200,
1697
+ "content_type": "application/json"
1698
+ },
1699
+ {
1700
+ "ordinal": 69,
1701
+ "method": "GET",
1702
+ "path": "/api/ipam/prefixes/",
1703
+ "status": 200,
1704
+ "content_type": "application/json"
1705
+ },
1706
+ {
1707
+ "ordinal": 70,
1708
+ "method": "GET",
1709
+ "path": "/api/ipam/prefixes/1/",
1710
+ "status": 200,
1711
+ "content_type": "application/json"
1712
+ },
1713
+ {
1714
+ "ordinal": 71,
1715
+ "method": "GET",
1716
+ "path": "/api/ipam/prefixes/2/",
1717
+ "status": 200,
1718
+ "content_type": "application/json"
1719
+ },
1720
+ {
1721
+ "ordinal": 72,
1722
+ "method": "GET",
1723
+ "path": "/api/ipam/prefixes/3/",
1724
+ "status": 200,
1725
+ "content_type": "application/json"
1726
+ },
1727
+ {
1728
+ "ordinal": 73,
1729
+ "method": "GET",
1730
+ "path": "/api/ipam/prefixes/4/",
1731
+ "status": 200,
1732
+ "content_type": "application/json"
1733
+ },
1734
+ {
1735
+ "ordinal": 74,
1736
+ "method": "GET",
1737
+ "path": "/api/ipam/ip-addresses/",
1738
+ "status": 200,
1739
+ "content_type": "application/json"
1740
+ },
1741
+ {
1742
+ "ordinal": 75,
1743
+ "method": "GET",
1744
+ "path": "/api/ipam/ip-addresses/1/",
1745
+ "status": 200,
1746
+ "content_type": "application/json"
1747
+ },
1748
+ {
1749
+ "ordinal": 76,
1750
+ "method": "GET",
1751
+ "path": "/api/ipam/ip-addresses/2/",
1752
+ "status": 200,
1753
+ "content_type": "application/json"
1754
+ },
1755
+ {
1756
+ "ordinal": 77,
1757
+ "method": "GET",
1758
+ "path": "/api/ipam/ip-addresses/3/",
1759
+ "status": 200,
1760
+ "content_type": "application/json"
1761
+ },
1762
+ {
1763
+ "ordinal": 78,
1764
+ "method": "GET",
1765
+ "path": "/api/ipam/ip-addresses/4/",
1766
+ "status": 200,
1767
+ "content_type": "application/json"
1768
+ },
1769
+ {
1770
+ "ordinal": 79,
1771
+ "method": "GET",
1772
+ "path": "/api/ipam/ip-addresses/5/",
1773
+ "status": 200,
1774
+ "content_type": "application/json"
1775
+ },
1776
+ {
1777
+ "ordinal": 80,
1778
+ "method": "GET",
1779
+ "path": "/api/circuits/providers/",
1780
+ "status": 200,
1781
+ "content_type": "application/json"
1782
+ },
1783
+ {
1784
+ "ordinal": 81,
1785
+ "method": "GET",
1786
+ "path": "/api/circuits/providers/1/",
1787
+ "status": 200,
1788
+ "content_type": "application/json"
1789
+ },
1790
+ {
1791
+ "ordinal": 82,
1792
+ "method": "GET",
1793
+ "path": "/api/circuits/providers/2/",
1794
+ "status": 200,
1795
+ "content_type": "application/json"
1796
+ },
1797
+ {
1798
+ "ordinal": 83,
1799
+ "method": "GET",
1800
+ "path": "/api/circuits/circuit-types/",
1801
+ "status": 200,
1802
+ "content_type": "application/json"
1803
+ },
1804
+ {
1805
+ "ordinal": 84,
1806
+ "method": "GET",
1807
+ "path": "/api/circuits/circuit-types/1/",
1808
+ "status": 200,
1809
+ "content_type": "application/json"
1810
+ },
1811
+ {
1812
+ "ordinal": 85,
1813
+ "method": "GET",
1814
+ "path": "/api/circuits/circuit-types/2/",
1815
+ "status": 200,
1816
+ "content_type": "application/json"
1817
+ },
1818
+ {
1819
+ "ordinal": 86,
1820
+ "method": "GET",
1821
+ "path": "/api/circuits/circuits/",
1822
+ "status": 200,
1823
+ "content_type": "application/json"
1824
+ },
1825
+ {
1826
+ "ordinal": 87,
1827
+ "method": "GET",
1828
+ "path": "/api/circuits/circuits/1/",
1829
+ "status": 200,
1830
+ "content_type": "application/json"
1831
+ },
1832
+ {
1833
+ "ordinal": 88,
1834
+ "method": "GET",
1835
+ "path": "/api/circuits/circuits/2/",
1836
+ "status": 200,
1837
+ "content_type": "application/json"
1838
+ },
1839
+ {
1840
+ "ordinal": 89,
1841
+ "method": "GET",
1842
+ "path": "/api/circuits/circuits/3/",
1843
+ "status": 200,
1844
+ "content_type": "application/json"
1845
+ },
1846
+ {
1847
+ "ordinal": 90,
1848
+ "method": "GET",
1849
+ "path": "/api/dcim/devices/",
1850
+ "status": 200,
1851
+ "content_type": "application/json"
1852
+ },
1853
+ {
1854
+ "ordinal": 91,
1855
+ "method": "GET",
1856
+ "path": "/api/dcim/devices/",
1857
+ "status": 200,
1858
+ "content_type": "application/json"
1859
+ },
1860
+ {
1861
+ "ordinal": 92,
1862
+ "method": "GET",
1863
+ "path": "/api/ipam/prefixes/",
1864
+ "status": 200,
1865
+ "content_type": "application/json"
1866
+ },
1867
+ {
1868
+ "ordinal": 93,
1869
+ "method": "GET",
1870
+ "path": "/api/dcim/racks/",
1871
+ "status": 200,
1872
+ "content_type": "application/json"
1873
+ },
1874
+ {
1875
+ "ordinal": 94,
1876
+ "method": "POST",
1877
+ "path": "/api/dcim/sites/",
1878
+ "status": 201,
1879
+ "content_type": "application/json"
1880
+ },
1881
+ {
1882
+ "ordinal": 95,
1883
+ "method": "PATCH",
1884
+ "path": "/api/dcim/sites/5/",
1885
+ "status": 200,
1886
+ "content_type": "application/json"
1887
+ },
1888
+ {
1889
+ "ordinal": 96,
1890
+ "method": "GET",
1891
+ "path": "/api/dcim/sites/5/",
1892
+ "status": 200,
1893
+ "content_type": "application/json"
1894
+ },
1895
+ {
1896
+ "ordinal": 97,
1897
+ "method": "DELETE",
1898
+ "path": "/api/dcim/sites/5/",
1899
+ "status": 204,
1900
+ "content_type": null
1901
+ },
1902
+ {
1903
+ "ordinal": 98,
1904
+ "method": "GET",
1905
+ "path": "/api/dcim/sites/5/",
1906
+ "status": 404,
1907
+ "content_type": "application/json"
1908
+ },
1909
+ {
1910
+ "ordinal": 99,
1911
+ "method": "GET",
1912
+ "path": "/api/dcim/sites/",
1913
+ "status": 200,
1914
+ "content_type": "application/json"
1915
+ }
1916
+ ],
1917
+ "excluded": [],
1918
+ "templated_groups": 21,
1919
+ "kind": "environment-manifest",
1920
+ "view": {
1921
+ "kind": "environment-manifest",
1922
+ "template_rules": [
1923
+ "after-uid-literal",
1924
+ "opaque-token",
1925
+ "sibling-variance"
1926
+ ],
1927
+ "include_query_parameter_names": true
1928
+ }
1929
+ },
1930
+ "confidence": "inferred",
1931
+ "authority": "historical-reference",
1932
+ "environment": null,
1933
+ "limitations": [
1934
+ "A 32 MiB input, 96 MiB reply and 64-level nesting budget bound complete evidence. HAR/SAZ/qlog use a 192 MiB Node old-generation heap; mitmproxy decoding uses a 768 MiB Linux address-space limit. Each owned command has a 30-second deadline with independent cleanup.",
1935
+ "Body shapes list top-level JSON key types from one recorded request each; they do not establish required fields or a complete schema.",
1936
+ "Every record is decoded before selection; no partial success is returned on malformed input or a resource limit.",
1937
+ "HAR text is producer-decoded Unicode. Original body bytes remain unknown unless content explicitly uses valid base64; declared sizes are preserved independently of retained bytes. mitmproxy 12.2.3 SaveHar may report null optional postData.text; that null is retained and omitted only from the upstream validation copy.",
1938
+ "Known authentication headers/cookies and explicitly marked literal values are excluded. Unknown extension names do not establish sensitivity.",
1939
+ "Observed query parameter names do not establish required parameters, value types or a complete API schema.",
1940
+ "Opt-in template rules after-uid-literal, opaque-token, sibling-variance merge recorded literals by shape; merged parameters may conflate distinct resources.",
1941
+ "This is retained producer evidence, without live browser transaction IDs, scenario provenance, execution attribution or deployment authenticity. Recorded URLs are never fetched.",
1942
+ "Tool templates, parameters and names are inferences from recorded request lines; they do not establish handler identity, URL-space schemas or causality."
1943
+ ],
1944
+ "relationship_coverage": null,
1945
+ "locations": [
1946
+ {
1947
+ "kind": "artifact-path",
1948
+ "path": "/home/ubuntu/capture/netbox/netbox.scoped.har"
1949
+ }
1950
+ ],
1951
+ "evidence_links": [
1952
+ "ev_f0ea4345138715ae98fd1b523d129cc054375c34188204296a93efbd974b99ea"
1953
+ ]
1954
+ }
bundles/netbox/envs/netbox/rea-agents.tgz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c6131104281e23d22bb21513c4747fd903721fb4f053087f181f80b3594c16d
3
+ size 6386550
bundles/netbox/evals/netbox-retrieval.toml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ tasks = [
2
+ "qa-01-get_dcim_sites_by_id",
3
+ "qa-02-get_circuits_providers_by_id",
4
+ "qa-03-get_ipam_prefixes_by_id",
5
+ "qa-04-get_dcim_regions_by_id",
6
+ "qa-05-get_tenancy_contacts_by_id",
7
+ "qa-06-get_dcim_locations_by_id",
8
+ "qa-07-get_ipam_vlans_by_id",
9
+ "qa-08-get_dcim_device_roles_by_id",
10
+ "qa-09-get_dcim_interfaces_by_id",
11
+ "qa-10-get_circuits_circuit_types_by_id",
12
+ "qa-11-get_dcim_platforms_by_id",
13
+ "qa-12-get_dcim_devices_by_id",
14
+ ]
bundles/netbox/tasks/INDEX.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Retrieval tasks
2
+
3
+ Generated from the environment manifest (42 tools) and its capture Evidence. Each task asks one factual question about a seeded object, answerable through one recorded exchange, and is graded deterministically: the response must contain the recorded value. Answers are distinct, seeded, and appear in at most 12 recorded responses.
4
+
5
+ | task | tool | arguments | field | answer |
6
+ |---|---|---|---|---|
7
+ | `qa-01-get_dcim_sites_by_id` | `get_dcim_sites_by_id` | id=1 | `region.name` | `Lantern Coast` |
8
+ | `qa-02-get_circuits_providers_by_id` | `get_circuits_providers_by_id` | id=1 | `description` | `Invented coastal carrier that lays seabed fiber` |
9
+ | `qa-03-get_ipam_prefixes_by_id` | `get_ipam_prefixes_by_id` | id=1 | `vrf.name` | `Ledger Vault` |
10
+ | `qa-04-get_dcim_regions_by_id` | `get_dcim_regions_by_id` | id=1 | `description` | `Coastal sites strung along the invented lantern shoreline` |
11
+ | `qa-05-get_tenancy_contacts_by_id` | `get_tenancy_contacts_by_id` | id=1 | `title` | `Tide Table Keeper` |
12
+ | `qa-06-get_dcim_locations_by_id` | `get_dcim_locations_by_id` | id=1 | `name` | `North Cage` |
13
+ | `qa-07-get_ipam_vlans_by_id` | `get_ipam_vlans_by_id` | id=1 | `name` | `Lamp Telemetry` |
14
+ | `qa-08-get_dcim_device_roles_by_id` | `get_dcim_device_roles_by_id` | id=1 | `slug` | `core-router` |
15
+ | `qa-09-get_dcim_interfaces_by_id` | `get_dcim_interfaces_by_id` | id=1 | `device.name` | `lr-core-aurora-01` |
16
+ | `qa-10-get_circuits_circuit_types_by_id` | `get_circuits_circuit_types_by_id` | id=1 | `description` | `Leased strands on the coastal seabed route` |
17
+ | `qa-11-get_dcim_platforms_by_id` | `get_dcim_platforms_by_id` | id=1 | `description` | `Fictional switch firmware train from Tidewright` |
18
+ | `qa-12-get_dcim_devices_by_id` | `get_dcim_devices_by_id` | id=1 | `device_type.description` | `Core router that carries the lamp telemetry ring` |
bundles/netbox/tasks/qa-01-get_dcim_sites_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the dcim sites with id 1 and report its `region.name`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states region.name",
36
+ "needles": [
37
+ "Lantern Coast"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/qa-02-get_circuits_providers_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the circuits providers with id 1 and report its `description`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states description",
36
+ "needles": [
37
+ "Invented coastal carrier that lays seabed fiber"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/qa-03-get_ipam_prefixes_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the ipam prefixes with id 1 and report its `vrf.name`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states vrf.name",
36
+ "needles": [
37
+ "Ledger Vault"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/qa-04-get_dcim_regions_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the dcim regions with id 1 and report its `description`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states description",
36
+ "needles": [
37
+ "Coastal sites strung along the invented lantern shoreline"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/qa-05-get_tenancy_contacts_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the tenancy contacts with id 1 and report its `title`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states title",
36
+ "needles": [
37
+ "Tide Table Keeper"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/qa-06-get_dcim_locations_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the dcim locations with id 1 and report its `name`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states name",
36
+ "needles": [
37
+ "North Cage"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/qa-07-get_ipam_vlans_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the ipam vlans with id 1 and report its `name`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states name",
36
+ "needles": [
37
+ "Lamp Telemetry"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/qa-08-get_dcim_device_roles_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the dcim device roles with id 1 and report its `slug`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states slug",
36
+ "needles": [
37
+ "core-router"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/qa-09-get_dcim_interfaces_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the dcim interfaces with id 1 and report its `device.name`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states device.name",
36
+ "needles": [
37
+ "lr-core-aurora-01"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/qa-10-get_circuits_circuit_types_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the circuits circuit types with id 1 and report its `description`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states description",
36
+ "needles": [
37
+ "Leased strands on the coastal seabed route"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/qa-11-get_dcim_platforms_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the dcim platforms with id 1 and report its `description`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states description",
36
+ "needles": [
37
+ "Fictional switch firmware train from Tidewright"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/qa-12-get_dcim_devices_by_id.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "agent",
10
+ "type": "deploy_agent",
11
+ "a2a_agent_id": "replay-qa",
12
+ "agent_name": "replay-qa",
13
+ "env_ids": [
14
+ "netbox"
15
+ ],
16
+ "env_step_id": "env",
17
+ "sandbox_type": "local"
18
+ },
19
+ {
20
+ "id": "ask",
21
+ "type": "prompt_agent",
22
+ "agent_name": "replay-qa",
23
+ "prompt_id": "q",
24
+ "prompt": "In this NetBox environment, look up the dcim devices with id 1 and report its `device_type.description`. Use only the environment's tools. Answer with the value only, nothing else.",
25
+ "max_turns": 6
26
+ },
27
+ {
28
+ "id": "grade",
29
+ "type": "agent_prompt_response_verifier",
30
+ "prompt_id": "q",
31
+ "verifier_id": "retrieval",
32
+ "criteria": [
33
+ {
34
+ "type": "response_contains",
35
+ "criterion": "response states device_type.description",
36
+ "needles": [
37
+ "Core router that carries the lamp telemetry ring"
38
+ ]
39
+ }
40
+ ]
41
+ }
42
+ ]
bundles/netbox/tasks/smoke.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "env",
4
+ "type": "deploy_env",
5
+ "env_id": "netbox",
6
+ "sandbox_type": "local"
7
+ },
8
+ {
9
+ "id": "replay",
10
+ "type": "env_outcome_verifier",
11
+ "env_id": "netbox",
12
+ "file_artifact_id": "check_netbox",
13
+ "verifier_id": "replay"
14
+ }
15
+ ]
episodes/netbox.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58b29650f931964d1cd3df0b7c327719cc46e65dae47173abace4764188d97e1
3
+ size 23929
raw/netbox.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
tasks/netbox.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2cc276483f8605f3b917ecf685f40e6b83c6da4fcde227daa3fbf3cf2eb89ec
3
+ size 8497