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. -…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- sdk/storage/AGENTS.mdAGENTS.md
- sdk/storage/azure-storage-blobs/AGENTS.mdAGENTS.md
- sdk/storage/azure-storage-files-shares/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- azsdk-common-apiview-feedback-resolutionSkill
- azsdk-common-generate-sdk-locallySkill
- azsdk-common-pipeline-troubleshootingSkill
- azsdk-common-prepare-release-planSkill
- azsdk-common-sdk-releaseSkill
- code-reviewSkill
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
- Distinctive: line 38
Path operations: create, rename (including changing the parent path within a filesystem), delete.
- Distinctive: line 60
Follow existing path client patterns for request construction and response parsing.
- Distinctive: line 62
Keep distinctions between directory and file operations clear and explicit.
- Distinctive: line 63
Ensure datalake behavior remains coherent with underlying blob constraints.
- Distinctive: line 69
When modifying datalake code, prioritize tests for:
- Distinctive: line 85
Avoid behavioral changes that silently diverge from documented datalake semantics.
- Distinctive: line 86
Keep option structs backward compatible and additive when possible.
- Distinctive: line 93
Keep retry behavior safe for multi-step operations (append/flush, rename flows).
- Distinctive: line 94
Avoid partial-state changes in client abstractions when operations fail mid-flow.
≈ “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.
Files
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:
- Path create/delete/list operations (including continuation/paging).
- Rename behavior, including parent-path changes and conflict/condition handling.
- Append/flush positional correctness.
- ACL/permission operations (where touched).
- Deep directory recursive scenarios (if applicable).
- 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
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
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.

