Skip to content

feat(bird_interact): run BIRD-Interact with the Auto Ontology agent, as auto-ontology-eval runs it - #6489

Open
ffrujeri wants to merge 10 commits into
ffrujeri/auto-ontology-agent-interactivefrom
ffrujeri/bird-interact-auto-ontology
Open

ffrujeri wants to merge 10 commits into
ffrujeri/auto-ontology-agent-interactivefrom
ffrujeri/bird-interact-auto-ontology

Conversation

@ffrujeri

@ffrujeri ffrujeri commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #6450, the top of the Auto Ontology agent stack (#6274 → #6450). The BIRD-Interact stack (#5465 → #5534) has merged, so this PR's diff is the pairing alone: the 18 files under "What changed".

What changed

BIRD-Interact runs with the auto_ontology_agent Agent Server (#6450) in place of simple_agent, on the bird_interact Environment Server, in Lite and Full.

  • The catalog image (benchmarks/bird_interact/auto_ontology/). build_image.sh <release> <models env> builds the agent's sandbox image from the release's database image (feat(benchmarks): add the BIRD-Interact Lite and Full benchmark recipe #5475): pgvector, the Auto Ontology that feat(auto_ontology_agent): run Auto Ontology's interactive pipeline in BIRD-Interact's c-Interact and a-Interact #6450 pins, and Auto Ontology's catalog of the release's databases in the same PostgreSQL. PostgreSQL takes 500 connections, because Auto Ontology keeps a connection pool to every source. The model keys reach the build as a BuildKit secret, so no layer holds them, and a digest of the models keys the catalog stage's cache (feat(birdbench): build the Auto Ontology catalog image in Gym, pinned once #6288). The build reads each database's schema and column meanings through a bind mount: the image holds none of the release's files, and the knowledge base is not in the build context.

  • Column meanings. With --column-meanings, the catalog holds each column's meaning as its description, as auto-ontology-eval's catalog does (column_meanings.py). The image is tagged <release>-meanings.

  • Configs.

    Config Release Mode Agent
    auto_ontology_agent.yaml, full_auto_ontology_agent.yaml Lite, Full c-Interact Auto Ontology's ReAct agent
    auto_ontology_interactive.yaml, full_auto_ontology_interactive.yaml Lite, Full c-Interact Auto Ontology's interactive pipeline
    full_auto_ontology_a_interact.yaml Full a-Interact Auto Ontology's interactive pipeline

    auto_ontology/interactive.yaml selects the interactive pipeline and copies auto-ontology-eval's flags. auto_ontology/non_reasoning_model.yaml runs Auto Ontology's non-reasoning role on a Model Server of its own.

  • Tests (tests/unit_tests/benchmarks/): the configs resolve and wire the agent, the column meanings are written as auto-ontology-eval writes them, and the agent's copies of the ADK's texts are the server's own.

  • The recipe's README lists the configs and says how to build and run them.

Why

The success criterion for the Auto Ontology integration is to match auto-ontology-eval's BIRD-Interact submission (e727e4d6) in Gym: Auto Ontology 1.3.0, the interactive pipeline, a catalog with the column meanings, Claude Opus 5.5 reasoning and Claude Sonnet 5.5 non-reasoning, in both modes. In Gym, the Environment Server runs and grades the episode, and the agent runs in its own sandbox. The parity results below ran Auto Ontology 1.3.0 (4d7b623b), as auto-ontology-eval does. The stack now pins Auto Ontology's main (#6288), so a parity check at the new pin needs auto-ontology-eval on the same version. No public issue: the PRs of the two stacks track the work.

Code provenance. column_meanings.py writes the column descriptions that auto-ontology-eval writes (scripts/bird_interact/seed_bird_interact.py and ontology_sql_eval/ingestion/enrich_graph.py of https://github.com/NVIDIA/auto-ontology-eval at e727e4d6e1e198355099de4803590bb3681793a4, Apache-2.0). The file's docstring records the source. auto_ontology/interactive.yaml copies that revision's settings.

Validation

After the rebase onto main (4954b38, 2026-11-23), with the BIRD-Interact stack merged, at d92b426:

Check Result
pytest tests/unit_tests/benchmarks/ tests/unit_tests/config/test_global_config.py tests/unit_tests/cli/test_cli_main.py (root venv) 1793 passed
pytest responses_api_agents/auto_ontology_agent/tests (agent venv) 86 passed, 1 skipped
pre-commit run --files on the stack's files Passed
Environment Server compliance, auto_ontology_agent 0 findings
Review fixes at 2383c0d (build_image.sh's default tag, the prepare examples): pytest tests/unit_tests/benchmarks/test_bird_interact_auto_ontology.py; the documented Lite prepare with a placeholder key 13 passed; prepares the same rows
After the second review round, at 34e9855: core tests (tests/unit_tests/benchmarks/, config, CLI); agent tests; pre-commit on the stack's files; compliance 1801 passed; 95 passed, 1 skipped; passed; 0 findings

Before the rebase, at 78003d1:

Check Result
pytest tests/unit_tests/benchmarks/test_bird_interact_auto_ontology.py test_bird_interact_column_meanings.py test_bird_interact_prepare.py (root venv) 35 passed
pytest environment_servers/bird_interact/tests (server venv, host) 96 passed, 14 skipped (the real-PostgreSQL tests, which need initdb)
pytest responses_api_agents/auto_ontology_agent/tests (agent venv) 85 passed, 1 skipped
pre-commit run --files on the pairing's files Passed
build_image.sh full --column-meanings Built nemo-gym/bird-interact-catalog:full-meanings; the Full database image was rebuilt from #5534 (agent SQL as the bird_agent role)
gym eval prepare for Full, both modes 600 rows in each; the 410 query tasks
  • Third review round, rebased onto main (6f6f4c7, 2026-11-24), 43784ab:

    • The release's files stay out of the image: a bind mount, and a build context of each database's schema and column meanings only. A probe with the Full data: the build step sees those 44 files and no knowledge base, and the image keeps none. The runtime stage builds.
    • The catalog stage's cache is keyed by the models' digest; the build test checks the argument.
    • The recipe prepares before it builds the catalog image.
    • The README and the Full interactive configs give the reported runs' command: the full-meanings image and the non-reasoning role on a model of its own. A run on the default, schema-only image is labeled another comparison. Both commands resolve.
    • Core (tests/unit_tests/benchmarks/, environment/, config/, CLI) at the stack's top: 2834 passed, 13 skipped; agent tests: 108 passed, 1 skipped; pre-commit run --all-files: passed.
    • Smoke at the stack's top (43784ab), Claude Opus 5.5: 5 of 5 BIRD dev tasks correct; BIRD-Interact Full on the interactive pipeline and the full-meanings image, c-Interact rewards 1.0, 1.0, 1.0, 0.0 and a-Interact 1.0, 1.0, 1.0, 0.0 (16 to 19 BIRD-COIN; the 0.0 is the agent's own repeated_sql stop). No failures, nothing masked, rollout health unobserved only, every sandbox stopped.
  • Rebased onto main (5398501, 2026-11-30), 59d2968: no conflicts in this PR. Core suite (tests/unit_tests) at the stack's top: 27647 passed, 39 skipped; one failure under xdist, test_indic_in22.py::test_manifest_is_discoverable_under_its_catalog_path, passes alone and is outside this stack; agent tests: 108 passed, 1 skipped; component locks: 342 checked, 0 failed; pre-commit on the stack's files: passed. Smoke: BIRD-Interact Full c-Interact on the interactive pipeline and the full-meanings image, 4 query tasks: rewards 1.0, 1.0, 0.8, 0.0, as on 2026-11-24 except a debug-turn 0.8 for crypto_exchange_1 (the 0.0 is archeology_scan_1, which failed on 2026-11-24 too), no failures, nothing masked; a-Interact: rewards 1.0, 1.0, 1.0, 0.0 (16 to 18 BIRD-COIN), the same as on 2026-11-24, no failures, nothing masked, every sandbox stopped.

  • Pinned Auto Ontology's main (a00a3906, the merge of Let a ReAct episode ask the user NVIDIA/auto-ontology#559) and rebased onto main (bc5383b), 2026-11-30, 6bee1d3: the README and interactive.yaml name the new pin. build_image.sh --column-meanings full built nemo-gym/bird-interact-catalog:full-meanings in 26 minutes: all 22 databases compiled. Core suite (tests/unit_tests) at the stack's top: 27674 passed, 39 skipped; one failure under xdist in test_openshell_provider.py, which passes alone and is outside this stack; agent tests: 110 passed, 1 skipped; benchmarks/birdbench/tests: 82 passed, 5 skipped; component locks: 343 checked, 0 failed; pre-commit on the stack's files: passed. Smoke: BIRD-Interact Full c-Interact with the ReAct agent, 4 query tasks: rewards 1.0, 1.0, 1.0, 0.0, the agent asking through Auto Ontology's ask_user; no failures, nothing masked; the interactive pipeline in c-Interact: 1.0, 1.0, 1.0, 0.0; in a-Interact: 1.0, 1.0, 1.0, 0.7 (17 to 18 BIRD-COIN); no failures, nothing masked, every sandbox stopped (the 0.0 and 0.7 are archeology_scan_1, which scored 0.0 at the earlier pin too).

  • Rebased onto main (dd09637), 2026-12-01, 9593b28: no conflicts; no change in this PR. tests/unit_tests/benchmarks, config, cli and tooling pass, as do the test files that failed locally with a partial environment (the rest fail on main too, on this machine); benchmarks/birdbench/tests: 82 passed; agent tests: 110 passed, 1 skipped; component locks: 343 checked, 0 failed; pre-commit on the stack's files: passed.

  • Fourth review round, rebased onto main (0b7bcdc), 2026-12-02, e04a236: the c-Interact texts check moved down to feat(auto_ontology_agent): take part in BIRD-Interact's c-Interact, asking the user through the Environment Server #6323, so this PR no longer carries it. Core suite (tests/unit_tests) at the stack's top: 27972 passed; the 8 that fail (tool and sandbox-transfer telemetry, two OpenSandbox script-help tests) fail on main on this machine too. benchmarks/birdbench/tests: 121 passed; agent tests: 124 passed, 1 skipped; component locks: 345 checked, 0 failed; pre-commit on the stack's files: passed. Smoke: BIRD-Interact Full c-Interact, ReAct agent, 4 tasks: 1, 1, 1, 0 (ask_user used); c-Interact, interactive pipeline: 1, 1, 1, 0; a-Interact: 1, 1, 1, 0. The zeros are archeology_scan_1, graded wrong as at the earlier pins; no masked rollouts, empty failure sidecars.

  • Docs, 2026-12-02, ee11c9a: the interactive pipeline's subsection on the published harness page names BIRD-Interact's configs for c-Interact and a-Interact and the catalog image's recipe, and links the commands in BIRD-Interact's README. fern check: 0 errors; tests/unit_tests/test_fern_docs_links.py: passed; pre-commit on the page: passed.

  • Rebased onto main (0cfc8d1), 2026-12-04, 3238b03: no conflicts; no change in this PR. bird_interact lends no sandbox, so the agent still starts its own; its seed now names it (feat(auto_ontology_agent): run Auto Ontology's ReAct agent in Gym, one sandbox per episode #6289). Core (tests/unit_tests/benchmarks, environment, config, agents, server_runtime) at the stack's top: 6353 passed, 14 skipped; the one failure, test_resolve_config_servers_logs_unresolvable_configs[recursive_alias-ConfigError], fails on main on this machine too. Component locks: 350 checked, 0 failed; pre-commit on the stack's files: passed. Smoke: BIRD-Interact Full on the interactive pipeline, where the agent still starts its own sandbox: c-Interact 1.0, 1.0, 1.0, 0.0 and a-Interact 1.0, 1.0, 1.0, 0.7 (archeology_scan_1, its first phase in a-Interact). No failures, nothing masked, every sandbox stopped.

Rollout evidence

After the rebase, at d92b426: the four query tasks the full runs started with, in each mode, with the settings below (the merged bird_interact server, the full-meanings catalog image, 4 tasks at a time).

Task c-Interact reward (questions) a-Interact reward (BIRD-COIN)
solar_panel_1 1.0 (3) 1.0 (18)
solar_panel_4 1.0 (3) 1.0 (19)
crypto_exchange_1 1.0 (3) 1.0 (16)
archeology_scan_1 0.0 (1) 0.7 (19)

No rollout was masked, the failures files are empty, and every sandbox stopped. Rerun at 34e9855, after the second review round: c-Interact 1.0, 1.0, 1.0, 0.0 and a-Interact 1.0, 1.0, 1.0, 0.0 in the table's order. Rollout health was 4 unobserved and 0 unhealthy in each mode; before #6323's turns_unavailable gap, every rollout was unhealthy (rollout_missing_agent_turns). Before the rebase, the same smoke scored 0.7, 1.0, 1.0, 0.7 (c-Interact) and 1.0, 1.0, 1.0, 0.0 (a-Interact) in that order: one repeat per task, so single tasks move between runs.

BIRD-Interact Full, the 410 query tasks (the ones auto-ontology-eval runs), one repeat, at d4491c9. That head differs from this one only by the stack's second-round review fixes, which do not change grading or the agent. Settings: Claude Opus 5.5 policy (reasoning role) and user simulator, Claude Sonnet 5.5 non-reasoning role, the full-meanings catalog image, local Docker sandboxes, 48 tasks at a time. The rewards are the bird_interact Environment Server's grades.

Mode Tasks Reward P1 P1 + debug FU FU + debug
c-Interact 410 38.98 37.32% 46.10% 26.10% 29.27%
a-Interact 410 35.34 37.80% 40.24% 23.41% 23.90%

Reward is the final score; the other columns are pass rates over all 410 tasks. No rollout was masked, the failures files are empty, every sandbox stopped, and the model endpoints returned no 429s. a-Interact spent 17.4 BIRD-COIN per task on average. A solution SQL failed at grading in 3 c-Interact and 2 a-Interact rollouts (the broken ground truths that #5534's README lists).

An earlier run with the BIRD-Interact server from before #5534's first review fixes, 8 tasks at a time, scored 39.54 (c-Interact) and 35.15 (a-Interact). 80% of c-Interact tasks and 86% of a-Interact tasks got the same reward in both runs.

Compatibility

New configs and a new image build only; no existing config or server changes. The catalog image's build needs Auto Ontology's model keys. Runs need the authors' ground truth, as the recipe does.

@ffrujeri ffrujeri added feature New capabilities, enhancements, or enablement work area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers labels Nov 19, 2026
@copy-pr-bot

copy-pr-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 78003d1

@svcnvidia-nemo-ci svcnvidia-nemo-ci added the risk:high Autobot PR risk: high label Nov 19, 2026
@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 2042a49

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 433dfa3

@ffrujeri
ffrujeri force-pushed the ffrujeri/bird-interact-auto-ontology branch from 2042a49 to 433dfa3 Compare November 20, 2026 23:10
@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 8b67b2c

@ffrujeri
ffrujeri force-pushed the ffrujeri/bird-interact-auto-ontology branch from 433dfa3 to 8b67b2c Compare November 20, 2026 23:23
@ffrujeri
ffrujeri force-pushed the ffrujeri/bird-interact-auto-ontology branch from 8b67b2c to 7fc10bf Compare November 21, 2026 00:45
@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 7fc10bf

@ffrujeri
ffrujeri force-pushed the ffrujeri/bird-interact-auto-ontology branch from 7fc10bf to 6905baa Compare November 21, 2026 01:41
@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 6905baa

@ffrujeri
ffrujeri force-pushed the ffrujeri/bird-interact-auto-ontology branch from 6905baa to 15f14bf Compare November 23, 2026 03:55
@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 15f14bf

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 37d582f

Base automatically changed from ffrujeri/bird-interact-management-tasks to main November 23, 2026 15:10
@ffrujeri
ffrujeri force-pushed the ffrujeri/bird-interact-auto-ontology branch from 37d582f to 3068f05 Compare November 23, 2026 17:54
@ffrujeri
ffrujeri changed the base branch from main to ffrujeri/auto-ontology-agent-interactive November 23, 2026 17:54
@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 3068f05

@adil-a

adil-a commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

/review reset=true 9593b28

Copy link
Copy Markdown
Contributor

Invalid /review command: arguments must use key=value syntax. Usage: /review [<sha>] [approve=<true|false>] [mode=<light|strict>] [model=<codex|claude>] [prompt="<value>"] [reset=<true|false>] [role=<automation|engineer>].

@adil-a

adil-a commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

/review 9593b28 reset=true

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP. No actionable findings.

I reviewed all 18 changed files against the admitted base, including delegated reviews of image lifecycle, catalog metadata and config/agent integration. I found no BLOCKER or RISK.

Prior review

  • comment:4670521415 is fixed. The default tag assignment no longer inherits a failing command-substitution status. All eight Lite/Full × meanings on/off × default/explicit tag combinations reached fake Docker with the expected arguments.
  • comment:4670521427 is fixed. The prepare example supplies the embedding key. All five presets reached preparation with the documented prerequisite settings and no model call.
  • comment:4670521433 still reproduces on synthetic truncated numbers. I am not re-raising the optional hardening suggestion: the author reports checking all accepted values in the pinned releases and finding no affected samples. I did not independently inspect those release files.

I also read review:6027637223. Its commit d92b42603412b5f5d37f46b0e4bec71c6781ad26 is not admitted/reachable, so I verified the fixes at this head rather than comparing incrementally with that commit.

Validation

I relied on successful head CI: Lint check, four core-test shards, eight server-suite shards, Unit tests / Test, Unit tests / Server suite and Nemo_CICD_Test. Build Gym container, Session routing end-to-end and Changed server tests were skipped, not passed. I did not duplicate the passing suites locally.

CPU probes ran in 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:4e920d1b3d6c8da484351dab16436d86da1b6f23, a verified successful default-branch CI image because the head build was skipped. Shell lifecycle/cache probes passed. Real-parser probes covered ten merged configurations, five CLI preparation paths, three synthetic data preparations and five agent payload paths. Catalog probes confirmed metadata-before-embedding ordering, runtime port/model handoff, omission of keys from the generated settings, and rejection of logged model failures or missing vectors. The scripts and logs are under /workspace/review-probes/.

I did not run a real catalog Docker build, PostgreSQL migration or model rollout. Auto Ontology was absent from the review image, so those external boundaries were faked. The PR’s reported catalog builds, smoke rollouts and reward comparisons are author-provided evidence, not independently reproduced results.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

ffrujeri added a commit that referenced this pull request Dec 2, 2026
…ver in this PR

The agent's tests parse copies of the bird_interact Environment Server's c-Interact texts. The check that
the copies are the server's own, and that the agent reads the server's formatted instruction, phase-1 turn
and follow-up, was in #6489, above this PR. It is now a core test here, so a producer-only change such as
'User Query:' to 'User query:' fails with this PR alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
@ffrujeri
ffrujeri force-pushed the ffrujeri/bird-interact-auto-ontology branch from 9593b28 to e04a236 Compare December 2, 2026 02:43
@ffrujeri

ffrujeri commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test e04a236

@ffrujeri
ffrujeri force-pushed the ffrujeri/bird-interact-auto-ontology branch from e04a236 to ee11c9a Compare December 2, 2026 03:07
@ffrujeri

ffrujeri commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test ee11c9a

@nemo-pr-automation
nemo-pr-automation Bot requested a review from a team December 2, 2026 03:09
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

@adil-a adil-a left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notes from a pass over the stack at this head. Each inline comment says how it was established, and anything not confirmed from the code is put as a question.

agent_server:
name: auto_ontology_agent
# A turn is one Auto Ontology episode, with the user's answers: as long as the agent lets an episode run.
activation_timeout_seconds: 1800

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RISK: c-Interact turns may be cut by the inherited 3000 s conversation limit.
This raises a turn to 1800 s, but interaction_timeout_seconds: 3000 and default_episode_timeout_seconds: 3600 still come from the server's config, which was sized for up to four 600 s turns. From the server's _converse: once 3000 s pass, the dialogue stops with stop_reason interaction_timeout and is graded as it stands, unmasked, with no failure row. A four-turn task whose turns average over 750 s, including time spent waiting for one of the agent's 8 episode slots, is cut that way. auto-ontology-eval gives a c-Interact phase 600 s by default (--phase-timeout). Could you raise the conversation and episode limits together with the turn limit (or keep 600 s), and give stop_reason counts beside the 410-task scores, so it is clear none were cut?

responses_api_agents:
auto_ontology_agent:
datasets:
- name: bird_interact_lite_c_interact

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RISK: BIRD-Interact runs have no bound on live sandboxes.
The BIRD dev pairing now sets num_samples_in_parallel: 8 to match max_concurrent_episodes (in the ReAct agent PR, #6289), but these configs do not, and the documented gym eval run commands pass no --concurrency. A default run therefore seeds all 300 or 600 tasks at once. Each starts the server's database sandbox and the agent's catalog sandbox, each with its own PostgreSQL. Each turn then waits for one of the agent's 8 slots, and that wait counts against the server's 1800 s turn deadline, so queued turns time out and the episodes are retried. Could you set num_samples_in_parallel: 8 here and in full_auto_ontology_a_interact.yaml, which does not chain this file, with the same test BIRD dev has?


def source(database: str, port: str) -> str:
"""The connection string of a source database; trust authentication needs no password."""
return f"postgresql://{os.environ['POSTGRES_USER']}@localhost:{port}/{database}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: Agent SQL reaches the source databases as the superuser.
The connection strings the image writes for each episode use POSTGRES_USER, which is root, the release's superuser, with trust authentication. The base image deliberately runs agent SQL as bird_agent, a role that is not a superuser, so it cannot read server files or run programs. From the pinned Auto Ontology source, not run: the interactive pipeline runs model-written SQL through execute_chat_sql, which only sets a read-only transaction; the pg_*/dblink/lo_ filter is in the ReAct tool alone. The sandbox also holds the embedding key and the episode's tool grant. Could you check whether a read-only transaction stops a superuser's file-reading functions here, and whether the source connections could use a non-superuser role with SELECT on the <db> copies?

scores on the query tasks, as auto-ontology-eval runs only those.
- **The pin.** The image builds the Auto Ontology that `benchmarks/birdbench/auto_ontology/build_image.sh` pins, the
one Gym runs: Auto Ontology's main with NVIDIA/auto-ontology#559, which gives its ReAct agent the `ask_user` tool.
auto-ontology-eval runs Auto Ontology 1.3.0, so its scores and Gym's come from different versions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: Parity numbers need the reference beside them, at one version.
The description states the goal as matching auto-ontology-eval's BIRD-Interact submission and reports 38.98 (c-Interact) and 35.34 (a-Interact) on 410 tasks. It does not give auto-ontology-eval's own scores, and those runs used Auto Ontology 1.3.0 while the image now builds a00a3906. Could you put the reference's 410-task numbers next to Gym's in the description, and say whether one 410-task run per mode at the current pin is planned before these scores are quoted elsewhere?

- **Turns.** Each turn is a new Auto Ontology episode. Its evidence carries the earlier answers of the user and the
earlier queries, with the server's reply to the last one.
- **Management tasks.** Auto Ontology runs read-only queries only, so it cannot solve a management task. Compare its
scores on the query tasks, as auto-ontology-eval runs only those.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: No documented way to run or score only the query tasks.
The README says to compare Auto Ontology's scores on the query tasks, since it cannot solve a management task, and the reported runs cover 410 Full query tasks. But prepare.py writes all 600 rows and the Full configs run every one, so a user following the recipe spends compute on 190 tasks the agent is not expected to solve, and gets an aggregate that is not comparable to the reported one. Could you document how the 410 were selected (a filtered JSONL, or a per-category breakdown of the metrics), ideally as a config or prepare option?

HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT="$(cd "$HERE/../../.." && pwd)"
# The one Auto Ontology that Gym runs, as the BIRD dev image's build script pins it.
eval "$(grep -E '^AUTO_ONTOLOGY_(REPOSITORY|COMMIT)=' "$ROOT/benchmarks/birdbench/auto_ontology/build_image.sh")"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: The Auto Ontology pin is read out of another benchmark's script.
This line evals a grep over the BIRD dev build script to get the pin, though the code written against that version is the agent's runner, which never checks which version its image holds. A reformat of that script (quoting, export, an indent) would leave these variables unset or change them, and no test here would fail. The two build_catalog.py files also still share about 117 identical lines. Could the pin live in one small file beside the agent that both build scripts source, and could the shared catalog-build steps become one stdlib-only module?

*
!benchmarks/bird_interact/auto_ontology/
!benchmarks/bird_interact/data/*/databases/*/*_schema.txt
!benchmarks/bird_interact/data/*/databases/*/*_column_meaning_base.json

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: The knowledge-base boundary and the vector check have no test.
Adding !benchmarks/bird_interact/data/*/databases/*/*_kb.jsonl to this file, which would send the knowledge base with its hidden entries into the build context, leaves every test in tests/unit_tests/benchmarks/ and benchmarks/birdbench/tests passing. So does turning off the vector_count(...) == 0 check in build_catalog.py, which keeps a catalog with holes from being built. Checked by applying each change and running those suites. The first guards the visibility boundary from the knowledge-base thread on the Dockerfile. Could you add a test that the allowed paths match only _schema.txt and _column_meaning_base.json, and one where a database with no vectors fails the build?

ffrujeri and others added 10 commits December 4, 2026 00:24
…gy agent

auto_ontology_agent.yaml (Lite) and full_auto_ontology_agent.yaml (Full) run
c-Interact on the bird_interact Environment Server with auto_ontology_agent in place
of simple_agent; the a-Interact server does not start.

auto_ontology/ builds the agent's sandbox image for a release: the release's
database image, with pgvector, the Auto Ontology that the BIRD dev image's build
script pins, and Auto Ontology's catalog of the release's databases in the same
PostgreSQL. The catalog holds the schema only, as c-Interact shows it; the agent
gets a task's visible knowledge with the task. PostgreSQL takes 500 connections,
since Auto Ontology keeps a connection pool to every source for each lookup of its
connectors. A test checks that the agent's copies of the ADK's texts are the
server's own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…it is for, without a cause not traced

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…pipeline, on a catalog with the column meanings

auto-ontology-eval's BIRD-Interact submission (e727e4d6) runs Auto Ontology's interactive pipeline on a catalog that
holds the release's column meanings. These configs run the same in Gym: auto_ontology/interactive.yaml selects the
pipeline and copies the flags auto-ontology-eval sets; auto_ontology_interactive.yaml (Lite) and
full_auto_ontology_interactive.yaml (Full) run c-Interact, and full_auto_ontology_a_interact.yaml runs a-Interact.
auto_ontology/non_reasoning_model.yaml runs Auto Ontology's non-reasoning role on a Model Server of its own.

build_image.sh --column-meanings builds the catalog with each column's meaning as its description, as
auto-ontology-eval writes them (column_meanings.py), tagged <release>-meanings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
… in CI, and list its interactive configs

The pairing's tests move to tests/unit_tests/benchmarks/, where the core suite collects them, as the recipe's prepare
tests did. The README's config table lists the interactive pipeline's three configs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…on_timeout_seconds

The bird_interact server renamed turn_timeout_seconds to activation_timeout_seconds (#5409).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…ult tag

Without --column-meanings and an explicit tag, the default tag's command substitution returned the failing status
of [[ $COLUMN_MEANINGS == true ]], and set -e stopped the script before docker build, with no message. Both
documented commands, build_image.sh lite and full, stopped there. The suffix is now set where the flag is read.

The test runs the script against a fake docker for Lite, Full, the column meanings and an explicit tag, in place of
a check of the script's text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…'s prepare

The agent's config requires auto_ontology_api_key, and gym eval prepare parses the whole config, so the documented
prepare command stopped on the unset key. prepare does not call the endpoint.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…talog image, key its cache by the models, and fix the recipe

The catalog image copied each release database's files into a layer, the knowledge base included, part of which each
task hides from the agent. The catalog build now reads them through a bind mount, so no layer holds them, and the
build context sends only the two files the build reads: each database's schema and its column meanings.

BuildKit leaves the models secret out of the cache key, so a build with another embedding model reused the last
model's catalog, as in the BIRD dev image (#6288). build_image.sh now passes the catalog stage the same digest, from
the helper the BIRD dev build uses.

The recipe built the catalog image before `gym eval prepare`, but the build needs the database files that preparing
writes; prepare now comes first. The README and the Full interactive configs give the command of the reported runs:
the full-meanings image and the non-reasoning role on a model of its own. A run on the default, schema-only image is
another comparison, as the agent then buys the column meanings in a-Interact and does not read them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…o Ontology's main

The pin is now Auto Ontology's main with NVIDIA/auto-ontology#559, whose ask_user is one of the ReAct agent's own
tools, newer than the 1.3.0 that auto-ontology-eval runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…teract's configs

The subsection on Auto Ontology's interactive pipeline now names the BIRD-Interact configs that set it up,
for c-Interact and a-Interact, and the catalog image's recipe, and links the commands in BIRD-Interact's
README.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
ffrujeri added a commit that referenced this pull request Dec 4, 2026
…ver in this PR

The agent's tests parse copies of the bird_interact Environment Server's c-Interact texts. The check that
the copies are the server's own, and that the agent reads the server's formatted instruction, phase-1 turn
and follow-up, was in #6489, above this PR. It is now a core test here, so a producer-only change such as
'User Query:' to 'User query:' fails with this PR alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
@ffrujeri
ffrujeri force-pushed the ffrujeri/bird-interact-auto-ontology branch from ee11c9a to 3238b03 Compare December 4, 2026 00:35
@ffrujeri

ffrujeri commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 3238b03

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer risk:high Autobot PR risk: high sla:review-overdue Review response is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants