Repository navigation
Conversation
|
/ok to test cfc89ee |
cfc89ee to
7dc1527
Compare
|
/ok to test 7dc1527 |
7dc1527 to
a54b110
Compare
|
/ok to test a54b110 |
a54b110 to
1d339d0
Compare
|
/ok to test 1d339d0 |
1d339d0 to
55d596f
Compare
|
/ok to test 55d596f |
|
/ok to test 55d596f |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
I found no confirmed runtime defects. One non-blocking NOTE would make the added regression tests protect future changes.
I reviewed all eight changed files, the trusted base conventions, and relevant preparation, sandbox and CI consumers. Three delegated reviews covered catalog logic, image lifecycle and integration.
Validation: The two added tests passed locally. Purpose-built probes passed for CSV edge cases, catalog wiring, connector cleanup, model-error and missing-vector rejection, runtime settings, and mocked PostgreSQL startup/port/failure propagation. Both shell scripts passed bash -n. These ran in 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:4556c2e6478d0b2edcef0e66e6a688db2be04965, a successful default-branch CI build; this head's image build was skipped. The root dependency files and docker/ are unchanged from that image's source.
I relied on this head's green Lint check, Unit tests / Test, Unit tests / Combined core coverage, Unit tests / Server suite and Nemo_CICD_Test for their mapped coverage. They do not collect the newly added benchmark test module. Environment Server compliance (non-blocking) is red and reports findings in server components outside this diff; I have not attributed those findings to this change.
The probes used fake Auto Ontology and database operations. I did not run a full catalog image build, real PostgreSQL migrations, model-backed rollouts or Docker cache-invalidation checks. The PR supplies earlier-pin build evidence and links rollout results; my local checks do not independently verify those external integrations.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
|
/ok to test 1d00df5 |
1d00df5 to
e9e99ea
Compare
b0a3e41 to
06ef3d7
Compare
…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]>
|
/ok to test 06ef3d7 |
06ef3d7 to
0fb7c9e
Compare
…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]>
|
/ok to test 0fb7c9e |
|
/review reset=true 0fb7c9e |
|
Invalid |
|
/review 0fb7c9e reset=true |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE
I found two reproducible RISKs: duplicate settings can collide in the catalog cache key, and in-image database discovery includes hidden SQLite sidecars that the host preflight excludes. Neither affects every build.
I reviewed all nine changed files and their connected preparation, configuration and CI paths. Three delegated reviews covered catalog logic, image lifecycle and integration. The previous collection NOTE (comment:4670597858) is fixed: the module now lives under tests/unit_tests/benchmarks/ with the correct repository-root resolution. Isolated collection found all four tests, and the sharder assigned the module exactly once. The previous review commit is unreachable, so I could not compare directly against it.
CI evidence: I relied on this head’s green Lint check, four core shards, Unit tests / Combined core coverage, Unit tests / Test, eight server-suite shards, Unit tests / Server suite and Nemo_CICD_Test. Build Gym container was skipped, not passed.
Local evidence: CPU probes ran in 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:c2974f7bd962fd921ae90176f19d983bccbdebff, a successful default-branch CI build. The root dependency files and docker/ match the reviewed head. Probes reproduced both findings and checked metadata parsing, connector cleanup, model-error and empty-vector rejection, persisted settings, missing-database rejection, and mocked PostgreSQL startup/failure propagation. bash -n passed for all three scripts. Collection with repository conftests failed on missing omegaconf and hydra; isolated --noconftest collection succeeded and is not a full CI-collection result. I did not rerun the passing native suites.
Auto Ontology, Docker and PostgreSQL boundaries were mocked where needed; the sidecar probe used real SQLite schema reads. I did not run a full catalog image build, actual Docker cache reuse, real migrations or model-backed rollouts. The PR reports build evidence at the pinned dependency, but these probes do not independently verify that external integration.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
| sed -E -e '/^[[:space:]]*(#|$)/d' \ | ||
| -e 's/^([^=]*(KEY|TOKEN|SECRET|PASSWORD)[^=]*=)[[:space:]]*([a-z]+-)?.*$/\1\3/' \ | ||
| "${1:?usage: models_settings_digest.sh MODELS_ENV}" \ | ||
| | sort | sha256sum | cut -d' ' -f1 |
There was a problem hiding this comment.
RISK — Preserve setting precedence in the cache key. Could this hash the effective settings, or reject duplicate setting names before Docker? The parser keeps the last assignment, but sorting all lines removes precedence. A file containing EMBED_MODEL=embed-a followed by EMBED_MODEL=embed-b hashes identically to the reversed file, although the parsed models are embed-b and embed-a.
I reproduced this with python /workspace/review-probes/leader/probe_digest.py: effective EMBED_MODEL values: ['embed-b', 'embed-a'], digest equality: True. A separate probe through build_image.sh confirmed it forwards the same build argument. Because the catalog stage relies on that argument to distinguish secret settings, repeated builds sharing a cache can reuse the previous model’s catalog and saved .env. I did not run actual Docker cache reuse.
Canonicalize the parsed mapping with the same whitespace and last-assignment semantics before redacting, sorting and hashing, or fail clearly on duplicates. Keep same-type API-key rotation cache-neutral. Acceptance: reversed duplicate overrides must produce different keys or fail before Docker; reordered unique settings and comments must keep the same key; ordinary model/endpoint changes must still change it.
There was a problem hiding this comment.
Fixed in 6d1e8dc. models_settings_digest.sh now stops the build before Docker when a setting appears twice (MODELS_ENV sets EMBED_MODEL more than once; set each setting once.), whitespace around the name included. Refusing is simpler than reproducing the parser's last-wins rule in the digest, and a file with a setting twice is a mistake either way. The digest test now covers both orders of a duplicated EMBED_MODEL; reordered unique settings, comments and a new key of the same type keep the same key, and a model or endpoint change still changes it.
| print(__doc__, file=sys.stderr) | ||
| return 2 | ||
| logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(name)s: %(message)s") | ||
| databases = sorted(DATABASES_DIR.glob("*/*.sqlite")) |
There was a problem hiding this comment.
RISK — Exclude hidden SQLite sidecars consistently. Could this use */[!.]*.sqlite, matching the host completeness check? Path.glob("*/*.sqlite") includes ._demo.sqlite, so an otherwise complete extraction with a macOS resource-fork sidecar passes preflight but sends that non-database file to ingestion and includes its URI in CONNECTION_STRINGS.
python /workspace/review-probes/catalog-1/probe_hidden_sqlite.py drove the real main()/build() with a fake connector backed by real SQLite. It reported missing_databases: [], selected ['._demo.sqlite', 'demo.sqlite'], then failed the first schema read with DatabaseError: file is not a database. This affects builds with such sidecars; it does not show that the current official archive contains them.
Use the same non-hidden selector for ingestion and connection generation. Acceptance: with a valid database plus an invalid ._<db_id>.sqlite, only the valid file reaches the connector and persisted connections, and compilation runs once. Preserve the existing failure when only the hidden sidecar exists and the required database is missing.
There was a problem hiding this comment.
Fixed in 9a1517d. database_files() selects */[!.]*.sqlite, and both the host check (missing_databases) and the catalog build (main()) use it, so the build ingests and connects only the files the check counts. The test adds a valid database beside a ._<db_id>.sqlite sidecar and checks that only the database is selected; a database whose only file is the sidecar is still reported missing.
0fb7c9e to
9a1517d
Compare
…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]>
|
/ok to test 9a1517d |
…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]>
adil-a
left a comment
There was a problem hiding this comment.
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.
| # episode's seed, since the sandbox keeps its own entrypoint. | ||
| set -euo pipefail | ||
| su postgres -c "pg_ctl -D '$PGDATA' -l '$PGDATA/server.log' -w -t 120 \ | ||
| -o '-p $POSTGRES_PORT -c listen_addresses=localhost' start" >/dev/null |
There was a problem hiding this comment.
RISK: The catalog's superuser is open on the host's loopback.
initdb --auth=trust together with listen_addresses=localhost lets any local TCP connection log in as postgres with no password. The agent's config in the ReAct agent PR (#6289) runs the sandbox with network: host, the only shipped config that does, so this port is the host's own 127.0.0.1. On a shared node any local user could connect to every running catalog as superuser, and a superuser can run COPY ... TO PROGRAM in a sandbox that also holds the session's task.json with the embedding key. This is read from the code and configs, not run. Could the catalog listen on its Unix socket only (-c listen_addresses=), as main's benchmarks/bird_interact/Dockerfile and environment_servers/bird_interact/grading.py do? If Auto Ontology can connect with POSTGRES_HOST set to the socket directory, that would also remove the random catalog_ports and their retries. If host networking stays, could the README say the sandbox is for single-user hosts?
| logging.getLogger().addHandler(failed) | ||
| build(databases) | ||
|
|
||
| problems = [f"a model call failed: {message}" for message in failed.messages[:5]] |
There was a problem hiding this comment.
NOTE: The build's two completeness checks have no test.
The README describes these checks as what keeps a catalog with holes from shipping: the build fails when a model call failed or a database has no vectors. No test reaches them. Changing this line to problems = [], or replacing vector_count(layer, name) == 0 with False, still passes the stack's tests. A small test of main() with _start_postgres, subprocess.run, build and vector_count patched could cover both cases. It would check that an error logged under auto_ontology.utils.embedding stops the build with its message, and that a zero vector count does too. The test would also pin the logger names _FailedModelCalls listens to, which would silently stop matching if Auto Ontology renamed those modules.
| HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| ROOT="$(cd "$HERE/../../.." && pwd)" | ||
| MODELS_ENV="${1:?usage: build_image.sh MODELS_ENV [TAG]}" | ||
| TAG="${2:-nemo-gym/bird-catalog:dev}" |
There was a problem hiding this comment.
NOTE: Can a score be traced to the catalog it used?
Each user builds the image locally under the mutable tag nemo-gym/bird-catalog:dev. Its semantic layer is compiled by a model, so two builds of the same pin may differ, and a rebuild replaces the tag in place. Neither the image nor a run seems to record which build, or which compile models, a score came from: /opt/bird-catalog/.env keeps only the embedding and reranking settings. Could the build write the models-settings digest and the compile models into the image, as a label or in that .env? And could the agent record the image ID with each run? This matters most when numbers are compared across machines or across rebuilds.
… once The image the Auto Ontology agent starts each episode's sandbox from: Auto Ontology at the commit build_image.sh pins, installed from its own repository and lock file, the BIRD dev databases and a catalog Postgres with each database ingested, described with BIRD's column descriptions, embedded and compiled. The model keys reach the catalog build as a BuildKit secret only. The build fails when a model call failed or a database has no vectors, which Auto Ontology logs and goes on. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
benchmarks/birdbench/tests is outside pytest's testpaths and the server suite, so no CI job ran these tests. They move to tests/unit_tests/benchmarks/, which the core suite collects, as the BIRD-Interact pairing's tests did. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…nge, and only from every BIRD dev database BuildKit leaves a secret's contents out of the cache key, so a build that changed only EMBED_MODEL in models.env reused the last model's catalog. build_image.sh now passes the catalog stage a digest of models.env (models_settings_digest.sh) with each key cut to its type (sk-, nvapi-), which picks Auto Ontology's default models: another model, endpoint or key type rebuilds the catalog, and a new key alone does not. No key reaches a build argument. An interrupted extraction could leave only some of BIRD dev's databases, which ensure_bird_sql accepts, and the catalog then built without the others. build_image.sh now checks the databases against the db_ids in dev.json before Docker starts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…logy#559 has merged The catalog image builds NVIDIA/auto-ontology at the merge of #559 (a00a3906), in place of the fork commit that held #543 and the first version of #559. Main has both: #543 merged on 2026-11-23, and #559 merged on 2026-11-30 with ask_user as one of the ReAct loop's own tools. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
The catalog build keeps a setting's last value, but the cache digest sorts the lines, so EMBED_MODEL=a then b and b then a gave one key for two catalogs. The digest script now stops the build, before Docker, when a setting appears twice. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
The host check skipped hidden files such as macOS's ._<db_id>.sqlite sidecars, but the catalog build globbed */*.sqlite and sent them to ingestion. Both now use database_files(). The tests cover the sidecar and a setting given twice, in either order. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
9a1517d to
6c82c2f
Compare
…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]>
|
/ok to test 6c82c2f |
What
The image that the Auto Ontology agent (#6289) starts each episode's sandbox from, built in Gym from a pinned Auto Ontology:
benchmarks/birdbench/auto_ontology/Dockerfile,build_image.sh). It holds Auto Ontology at the commitbuild_image.shpins, installed from its own repository and lock file, the BIRD dev databases and a catalog Postgres.build_catalog.py). The build:apply_metadata_batch;start-catalogstarts the catalog's Postgres on the port an episode gives it.Why
The agent runs Auto Ontology's own loop against its own catalog, so Gym needs a catalog it can rebuild at a version it controls. Auto Ontology has no input for BIRD's descriptions, which a SQLite database does not carry, so the build writes them through Auto Ontology's own API. This gives the same catalog content that auto-ontology-eval uses.
The catalog stays inside the agent harness's sandbox. The other approach, the
bird_sqlResources Server serving Auto Ontology's tools to any harness (#6285), is closed for now. This PR no longer carries its rows, prompt or prepare project.Notes
models_settings_digest.sh), with each key cut to its type (sk-,nvapi-): another model or endpoint rebuilds the catalog. The build stops before Docker when the extracted databases lack one thatdev.jsonnames.build_image.sh: NVIDIA/auto-ontology's main at the merge of Let a ReAct episode ask the user NVIDIA/auto-ontology#559 (a00a3906). It holds Allow openai 2.45 and later, so the package installs next to nemo-gym's main NVIDIA/auto-ontology#543 (the openai version nemo-gym pins) and docs: version switcher is leading to "Page Not Found" #559 (ask_useras one of the ReAct agent's own tools, off unlessTEXT_TO_SQL_REACT_ASK_USERis set, so BIRD dev runs without it). The 200-task results below were measured at the earlier pin (a630ebd+ docs: remove trl docs #543). On main, Auto Ontology also reads some settings from its web frontend'sconfigurationstable, which the image does not have: it logs an error and uses each setting's default.Stacked on #6274.
Validation
pytest benchmarks/birdbench/tests: passed.pre-commiton the stack's changes: passed.After the rebase onto main (4954b38, 2026-11-23):
pytest benchmarks/birdbench/tests84 passed, 5 skipped;pre-commiton the stack's files passed. feat(auto_ontology_agent): run Auto Ontology's interactive pipeline in BIRD-Interact's c-Interact and a-Interact #6450 moves this pin to Auto Ontology 1.3.0; see that PR for the BIRD dev image built at the new pin.build_image.shbuiltnemo-gym/bird-catalog:devin 13 minutes with Claude Opus 5.5, at the earlier pin (a630ebd+ docs: remove trl docs #543). All 11 databases were described, embedded and compiled, with no failed model call. The semantic layer has the same row count per database as auto-ontology-eval's image.Review fix (1d00df5): the catalog's tests move to
tests/unit_tests/benchmarks/test_birdbench_auto_ontology.py, which the core suite collects (benchmarks/birdbench/testsis outsidetestpaths): 2 passed.Third review round, rebased onto main (6f6f4c7, 2026-11-24), e46302c: the cache digest and the database check above. Two builds on one builder reproduced the stale catalog with the secret alone, and showed that the build argument rebuilds.
build_image.shwith a stubdockerpasses the check on the current extraction (11 databases).test_birdbench_auto_ontology.py: 4 passed; the digest test fails with the previous script. 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.Rebased onto main (5398501, 2026-11-30), b0a3e41: 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-commiton the stack's files: passed.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, 06ef3d7:build_image.shpins NVIDIA/auto-ontology ata00a3906, in place of the fork. It builtnemo-gym/bird-catalog:devin 12 minutes with the models of auto-ontology-eval's settings: all 11 databases described, embedded and compiled, with no failed model call. Core suite (tests/unit_tests) at the stack's top: 27674 passed, 39 skipped; one failure under xdist intest_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-commiton the stack's files: passed.Rebased onto main (dd09637), 2026-12-01, 0fb7c9e: no conflicts; no change in this PR.
tests/unit_tests/benchmarks,config,cliandtoolingpass, 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-commiton the stack's files: passed.Fourth review round, rebased onto main (0b7bcdc), 2026-12-02, 9a1517d. Review fixes: a models file that sets a setting twice stops the build before Docker (6d1e8dc), so two orders cannot share one cache key; the catalog build ingests only the databases the host check counts, never a
._<db_id>.sqlitesidecar (9a1517d). 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-commiton the stack's files: passed.Rebased onto main (0cfc8d1), 2026-12-04, 6c82c2f: no conflicts; no change in this PR. 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-commiton the stack's files: passed. Smoke at the stack's top: see feat(auto_ontology_agent): run Auto Ontology's ReAct agent in Gym, one sandbox per episode #6289.Rollout evidence
See #6289: the agent runs on this image. The 200-task BIRD dev results are there.