agentleFS
NVIDIAKnown publisherNVIDIA/nvcf/src/control-plane-services/instance-cluster-management/AGENTS.md

nvcf / instance-cluster-management

AGENTS.md261 starsChanged 9 days agoApache-2.0View on GitHub

Instance and Cluster Management Service (ICMS) is a two-module OSS/self-hosted Java service in the root nvcf Bazel module. It is not a nested Bazel module and does not own a MODULE.bazel, lockfile, .bazelrc, .bazelversion, or third-party dependency hub. The monorepo copy is Bazel-only and contains no project POMs. Bazel consumes nv-boot through direct source labels and produces the executable application jar. Keep any Maven build support in the independent source repository. Do not restore project POMs or add Maven build…

  • Reads credentials

The file

We split this AGENTS.md into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run commands from the monorepo root:

    line 28
  2. Distinctive:

    After changing a root Java dependency input, repin from the monorepo root and regenerate the dependency rollup:

    line 64
  3. Very specific:

    Do not hand-edit maven_install.json or MODULE.bazel.lock.

    line 76
  4. Distinctive:

    Do not run a standalone Maven NOTICE generator in this subtree.

    line 89
  5. Distinctive:

    Keep Java lines at or below 100 characters where practical.

    line 93
  6. Distinctive:

    Use private static final constants for repeated error and log messages.

    line 95
  7. Very specific:

    Use StringUtils.isBlank(...) for null-or-blank string validation.

    line 96
  8. Very specific:

    Read test resources through ClassPathResource.getInputStream(), never getFile().

    line 97

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md - Instance Cluster Management

Instance and Cluster Management Service (ICMS) is a two-module OSS/self-hosted Java service in the root nvcf Bazel module. It is not a nested Bazel module and does not own a MODULE.bazel, lockfile, .bazelrc, .bazelversion, or third-party dependency hub.

The monorepo copy is Bazel-only and contains no project POMs. Bazel consumes nv-boot through direct source labels and produces the executable application jar. Keep any Maven build support in the independent source repository. Do not restore project POMs or add Maven build instructions here.

Layout

  • icms-core/: service library, REST controllers, Cassandra repositories, and scheduled tasks.
  • icms-service/: Spring Boot application and executable app.jar.
  • local_env/: Docker Compose bundle for Cassandra, LocalStack, NATS, and Vault. Both modules symlink it as local_env. The populate compose profile adds a one-shot cassandra-populate service that seeds Cassandra from cqlsh-format CSV exports via cassandra/populate-data.sh once the schema init healthcheck passes; set ICMS_CSV_DIR to the CSV folder and run docker compose --profile populate up.
  • //rules/java: shared Java, test, and Spring Boot rules.

Build and test

Run commands from the monorepo root:

export BAZEL_OUTPUT_USER_ROOT="${TMPDIR:-/tmp}/nvcf-bazel-cache"

bazel --output_user_root="${BAZEL_OUTPUT_USER_ROOT}" \
  build //src/control-plane-services/instance-cluster-management/...

bazel --output_user_root="${BAZEL_OUTPUT_USER_ROOT}" \
  test //src/control-plane-services/instance-cluster-management/... \
  --cache_test_results=no \
  --test_output=errors

The test targets start Cassandra and NATS through Testcontainers and Docker Compose. They are tagged requires-docker and run in the GitHub docker-host lane. Running them locally also needs --test_env=PATH so Testcontainers can find the host docker compose CLI, and --test_env=HOME so Docker Desktop can discover CLI plugins.

icms-core:test_fixtures publishes the core test sources so icms-service:tests can reuse them. Update both when test fixtures change.

See BAZEL.md for coverage output paths and the Docker image build.

Dependencies

The root MODULE.bazel and maven_install.json own @nv_third_party_deps. BUILD targets declare compile and runtime edges. A coordinate being available in the shared hub does not put it on this service's classpath. Use direct labels for co-located nv-boot targets, for example:

//src/libraries/java/nv-boot-parent/nv-boot-starter-core:nv_boot_starter_core

After changing a root Java dependency input, repin from the monorepo root and regenerate the dependency rollup:

REPIN=1 bazel run @nv_third_party_deps//:pin
GITHUB_TOKEN="$(gh auth token)" go run -C tools/collect-dependencies .

The collector needs go, cargo, and helm on PATH. Without cargo or helm it silently moves unrelated Rust crates and Helm charts into the Unresolved section of dependencies.md.

Do not hand-edit maven_install.json or MODULE.bazel.lock.

NOTICE

Generate and check the runtime-derived component NOTICE with:

bazel run //src/control-plane-services/instance-cluster-management:generate_notice -- \
  --update-metadata --write
bazel test //src/control-plane-services/instance-cluster-management:notice_check_test
bazel build //src/control-plane-services/instance-cluster-management:osrb_dependency_delta

Do not run a standalone Maven NOTICE generator in this subtree.

Java style

  • Keep Java lines at or below 100 characters where practical. Extract helpers or constants instead of leaving long inline expressions.
  • Use private static final constants for repeated error and log messages.
  • Use StringUtils.isBlank(...) for null-or-blank string validation.
  • Read test resources through ClassPathResource.getInputStream(), never getFile(). Resources live inside jars under Bazel, so getFile() fails.
  • In tests, import frequently used nested classes and use var for obvious local variables when it keeps lines short.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.