refactor(relay): remove legacy observability plugin

Signed-off-by: Bryan Bednarski <bbednarski@nvidia.com>
This commit is contained in:
Bryan Bednarski
2026-08-10 18:19:40 -06:00
parent 0a079b946f
commit 8afd98ef2a
13 changed files with 59 additions and 2164 deletions
+3 -1
View File
@@ -40,9 +40,11 @@ in real production traffic.
provider: openrouter
YAML
printf 'OPENROUTER_API_KEY=%s\n' "$KEY" > "$ABEVAL_HOME/.env"
HERMES_HOME=$ABEVAL_HOME hermes plugins enable observability/nemo_relay
```
The runner writes a per-run Relay `plugins.toml` and points the native SDK
integration at it; no Hermes observability plugin needs to be enabled.
2. Prepare the two trees:
```bash
+24 -4
View File
@@ -165,14 +165,34 @@ def run(arm: str, model: str, reps: int, pythonpath: str, only=None):
work.mkdir(parents=True, exist_ok=True)
make_sandbox(work)
atof = resdir / f"{run_id}.atof.jsonl"
relay_config = work / "relay-plugins.toml"
relay_config.write_text(
f"""
version = 1
[[components]]
kind = "observability"
enabled = true
[components.config]
version = 3
[components.config.atof]
enabled = true
[[components.config.atof.sinks]]
type = "file"
output_directory = {json.dumps(str(atof.parent))}
filename = {json.dumps(atof.name)}
mode = "overwrite"
""".strip(),
encoding="utf-8",
)
env = dict(os.environ)
env.update({
"PYTHONPATH": pythonpath,
"HERMES_HOME": str(HOME),
"HERMES_NEMO_RELAY_ATOF_ENABLED": "1",
"HERMES_NEMO_RELAY_ATOF_OUTPUT_DIRECTORY": str(atof.parent),
"HERMES_NEMO_RELAY_ATOF_FILENAME": atof.name,
"HERMES_NEMO_RELAY_ATOF_MODE": "overwrite",
"HERMES_NEMO_RELAY_PLUGINS_TOML": str(relay_config),
})
q = TASKS[name].replace("{WORK}", str(work))
t0 = time.time()