agentleFS
NVIDIAKnown publisherNVIDIA/nvcf/src/libraries/rust/nvcf-info/AGENTS.md

nvcf / nvcf-info

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

nvcf-info holds the shared GET /info response schema for the Rust services, so function-autoscaler and http-invocation do not each define their own. It is the Rust counterpart to src/libraries/go/lib/pkg/version and the Java nv-boot-starter-core info controller. Pass the deployed service name, matching how the Go services set version.Service in their BUILD.bazel x_defs. Version and commit come from the consuming service's version_env template in crates/server/BUILD.bazel, which stamps CARGO_PKG_VERSION and NVCF_GIT_COMMIT on --stamp builds. Add the service's Bazel target to crates/server/BUILD.bazel deps, and…

The file

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

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add the service's Bazel target to crates/server/BUILD.bazel deps, and add an entry to the list in this crate's BUILD.bazel if the service …

    line 23
  2. Distinctive:

    Run Bazel from the monorepo root:

    line 35

≈ “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 - nvcf-info

nvcf-info holds the shared GET /info response schema for the Rust services, so function-autoscaler and http-invocation do not each define their own. It is the Rust counterpart to src/libraries/go/lib/pkg/version and the Java nv-boot-starter-core info controller.

Usage

async fn get_info() -> axum::Json<nvcf_info::InfoResponse> {
    axum::Json(nvcf_info::info_response!("nvcf-my-service"))
}

Pass the deployed service name, matching how the Go services set version.Service in their BUILD.bazel x_defs. Version and commit come from the consuming service's version_env template in crates/server/BUILD.bazel, which stamps CARGO_PKG_VERSION and NVCF_GIT_COMMIT on --stamp builds.

Adding A Consumer

Add the service's Bazel target to crates/server/BUILD.bazel deps, and add an entry to the list in this crate's BUILD.bazel if the service uses a crate universe not already listed there. Two serde copies are two distinct Serialize traits, so each universe needs its own build of src/lib.rs.

This crate is a Bazel dependency only. It is not a Cargo path dependency: cargo-bazel splice roots each service workspace in a temp dir, so a path pointing outside that directory resolves above the splice root. Consuming crates therefore build and test under Bazel rather than cargo.

Build And Test

Run Bazel from the monorepo root:

bazel test //src/libraries/rust/nvcf-info:all

Cargo works inside this crate, which has no cross-workspace path dependencies:

cargo fmt -p nvcf-info
cargo clippy -p nvcf-info --all-targets -- -D warnings
cargo test -p nvcf-info

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.