agentleFS
Microsoft AzureKnown publisherAzure/azure-sdk-for-cpp/sdk/storage/azure-storage-files-datalake/AGENTS.md

azure-sdk-for-cpp / azure-storage-files-datalake

AGENTS.md206 starsChanged 8 months agoMITView on GitHub

Guidance for AI agents working in sdk/storage/azure-storage-files-datalake. This file applies to: It extends sdk/storage/AGENTS.md with datalake-specific guidance. The Data Lake client code lives under azure-storage-files-datalake in this repository. When making changes, ensure paths, includes, namespaces, and conventions target this package. Typical hierarchy includes: - DataLakeServiceClient (account/service scope) - DataLakeFileSystemClient (filesystem/container scope) - DataLakePathClient (common path operations), with DataLakeFileClient and DataLakeDirectoryClient specializations - DataLakeLeaseClient (filesystem/path lease operations) Data Lake builds on Blob Storage primitives; maintain alignment where behavior intentionally overlaps. -…

The file

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

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Path operations: create, rename (including changing the parent path within a filesystem), delete.

    line 38
  2. Distinctive:

    Follow existing path client patterns for request construction and response parsing.

    line 60
  3. Distinctive:

    Keep distinctions between directory and file operations clear and explicit.

    line 62
  4. Distinctive:

    Ensure datalake behavior remains coherent with underlying blob constraints.

    line 63
  5. Distinctive:

    When modifying datalake code, prioritize tests for:

    line 69
  6. Distinctive:

    Avoid behavioral changes that silently diverge from documented datalake semantics.

    line 85
  7. Distinctive:

    Keep option structs backward compatible and additive when possible.

    line 86
  8. Distinctive:

    Keep retry behavior safe for multi-step operations (append/flush, rename flows).

    line 93
  9. Distinctive:

    Avoid partial-state changes in client abstractions when operations fail mid-flow.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

Guidance for AI agents working in sdk/storage/azure-storage-files-datalake.

Scope

This file applies to:

  • sdk/storage/azure-storage-files-datalake/**

It extends sdk/storage/AGENTS.md with datalake-specific guidance.


Naming and Package Note

The Data Lake client code lives under azure-storage-files-datalake in this repository. When making changes, ensure paths, includes, namespaces, and conventions target this package.


Data Lake Domain Model (mental map)

Typical hierarchy includes:

  • DataLakeServiceClient (account/service scope)
  • DataLakeFileSystemClient (filesystem/container scope)
  • DataLakePathClient (common path operations), with DataLakeFileClient and DataLakeDirectoryClient specializations
  • DataLakeLeaseClient (filesystem/path lease operations)

Data Lake builds on Blob Storage primitives; maintain alignment where behavior intentionally overlaps.


Data Lake-Specific Concepts to Preserve

  • Hierarchical namespace semantics (directories and path operations).
  • Path operations: create, rename (including changing the parent path within a filesystem), delete.
  • File operations: append + flush workflow (ordering and position semantics matter).
  • Directory semantics: recursive operations and path traversal/listing.
  • Access control: ACLs, permissions, owner/group where applicable.
  • Lease/conditions behavior when exposed through datalake APIs.
  • SAS/authorization parity with storage-common/blob foundations where applicable.

Common Pitfalls (avoid)

  • Treating datalake path behavior as identical to flat blob behavior.
  • Breaking rename atomicity assumptions or destination-conditions handling.
  • Mis-handling append/flush offsets and finalization semantics.
  • Regressing recursive delete/list behavior with deep trees.
  • Inconsistent URL/path encoding treatment for special characters.

Implementation Guidance

  • Follow existing path client patterns for request construction and response parsing.
  • Reuse shared storage/common mechanisms for auth/pipeline/retries.
  • Keep distinctions between directory and file operations clear and explicit.
  • Ensure datalake behavior remains coherent with underlying blob constraints.

Testing Focus Areas

When modifying datalake code, prioritize tests for:

  1. Path create/delete/list operations (including continuation/paging).
  2. Rename behavior, including parent-path changes and conflict/condition handling.
  3. Append/flush positional correctness.
  4. ACL/permission operations (where touched).
  5. Deep directory recursive scenarios (if applicable).
  6. Error mapping and exception behavior for common service failures.

Include edge cases for path encoding and unusual path names when relevant.


API & Compatibility Guardrails

  • Preserve public path/file/directory client API shape and naming conventions.
  • Avoid behavioral changes that silently diverge from documented datalake semantics.
  • Keep option structs backward compatible and additive when possible.

Reliability Expectations

  • Preserve idempotency where expected.
  • Keep retry behavior safe for multi-step operations (append/flush, rename flows).
  • Avoid partial-state changes in client abstractions when operations fail mid-flow.

Review Triggers

Require/flag maintainer review for:

  • Rename semantics, including parent-path changes
  • Append/flush logic changes
  • ACL/permission handling changes
  • Public API changes across path clients
  • Any cross-library behavior divergence vs blobs/common

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.