Skip to content

[MINOR][DOCS] Use AGENTS.md for nested project instructions#57501

Closed
cloud-fan wants to merge 1 commit into
apache:masterfrom
cloud-fan:agents-md-nested-instructions
Closed

[MINOR][DOCS] Use AGENTS.md for nested project instructions#57501
cloud-fan wants to merge 1 commit into
apache:masterfrom
cloud-fan:agents-md-nested-instructions

Conversation

@cloud-fan

@cloud-fan cloud-fan commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Add project-instruction discovery guidance to the root AGENTS.md. Agents should discover nested
AGENTS.md files in the current directory and its ancestors, with more specific instructions taking
precedence for their directory scope.

Why are the changes needed?

Nested AGENTS.md files are a common pattern for providing subsystem-specific guidance. Spark is
expected to adopt this pattern soon, so the root instructions should define how agents discover and
prioritize those files consistently.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Documentation-only change. Verified with git diff --check; no runtime tests were needed.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: OpenAI Codex (GPT-5)

@cloud-fan

Copy link
Copy Markdown
Contributor Author

cc @HyukjinKwon

@cloud-fan

Copy link
Copy Markdown
Contributor Author

thanks for review, merging to master/4.x!

@cloud-fan cloud-fan closed this in 160b619 Jul 27, 2026
cloud-fan added a commit that referenced this pull request Jul 27, 2026
### What changes were proposed in this pull request?

Add project-instruction discovery guidance to the root `AGENTS.md`. Agents should discover nested
`AGENTS.md` files in the current directory and its ancestors, with more specific instructions taking
precedence for their directory scope.

### Why are the changes needed?

Nested `AGENTS.md` files are a common pattern for providing subsystem-specific guidance. Spark is
expected to adopt this pattern soon, so the root instructions should define how agents discover and
prioritize those files consistently.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Documentation-only change. Verified with `git diff --check`; no runtime tests were needed.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: OpenAI Codex (GPT-5)

Closes #57501 from cloud-fan/agents-md-nested-instructions.

Authored-by: Wenchen Fan <wenchen@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit 160b619)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
@cloud-fan

Copy link
Copy Markdown
Contributor Author

Merge Summary:

Posted by merge_spark_pr.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants