Introduce an AGENTS.MD file#6151
Conversation
Update backport instructions. Signed-off-by: Terry Quigley <terry.quigley@sas.com>
PR Reviewer Guide 🔍(Review updated until commit 3776e9b)Here are some key observations to aid the review process:
|
|
Persistent review updated to latest commit bcaaf6f |
PR Code Suggestions ✨Latest suggestions up to 3776e9b Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 51287b7
Suggestions up to commit a3e5fff
Suggestions up to commit 2cba97a
Suggestions up to commit 233b222
Suggestions up to commit e2c528a
|
|
Persistent review updated to latest commit e2c528a |
|
Persistent review updated to latest commit 233b222 |
|
Persistent review updated to latest commit 2cba97a |
|
|
||
| ## Build | ||
|
|
||
| **Minimum JDK: 21.** `JAVA_HOME` must be set. |
There was a problem hiding this comment.
Any idea what happens when Agents.md file becomes outdated? Does the agent automatically understand that and update accordingly? I know where I'm at we talk about dynamic knowledge bases frequently to ensure that agents can work with up-to-date information.
There was a problem hiding this comment.
On my own application I added a section to explicitly direct agents to keep it up to date. I can do the same here.
I'm pretty sure some agents already know to do this but I will add something.
| When adding or removing a non-test scope dependency in `build.gradle`: | ||
|
|
||
| 1. Copy the library's `LICENSE.txt` and `NOTICE.txt` into `licenses/` as `<artifact>-LICENSE.txt` and `<artifact>-NOTICE.txt`. | ||
| 2. Run `./gradlew updateSHAs` to regenerate SHA checksum files. |
There was a problem hiding this comment.
This is actually disabled on this repo.
We certainly could re-enable it, but we'd be at the whim of upstream opensearch and constantly updating what's in licenses/ depending on changes in core's version catalog.
I'd be amenable to enabling this if we can likewise update the logic to exclude licenses that overlap from the core.
I know the performance-analyzer repo gets into a state where checks fail constantly and its very annoying.
There was a problem hiding this comment.
Thanks, I'll remove it.
|
|
||
| ## Commits | ||
|
|
||
| Run `./gradlew precommit` before every commit. |
There was a problem hiding this comment.
not relevant in this repo.
I'm definitely not opposed to adding a precommit hook though
There was a problem hiding this comment.
Thanks, I'll remove it.
|
|
||
| ## Pull Requests | ||
|
|
||
| - Always push to your personal fork. Never push directly to `opensearch-project/security` or to `main`. |
There was a problem hiding this comment.
yes and this is actually enforced now regardless of branch name! No maintainer can push to upstream.
| ```bash | ||
| # Check out a new branch from the target release branch | ||
| git fetch upstream | ||
| git checkout -b backport/my-fix-2.x upstream/2.x |
There was a problem hiding this comment.
Let's not use 2.x here as that is a dead branch. Let's mention something about 2.19 being in LTS.
There was a problem hiding this comment.
Thanks, I will change this.
| 2. Check out the target branch locally: | ||
| ```bash | ||
| git fetch upstream | ||
| git checkout -b backport/my-fix-2.x upstream/2.x |
Signed-off-by: Terry Quigley <terry.quigley@sas.com>
|
Persistent review updated to latest commit a3e5fff |
Signed-off-by: Terry Quigley <terry.quigley@sas.com>
|
Persistent review updated to latest commit 51287b7 |
|
Persistent review updated to latest commit 3776e9b |
This is very much a proposal / first draft for both issues addressed. I will defer to those with more extensive knowledge on both counts.
Description
[Describe what this change achieves]
Introduce an AGENTS.MD file to provide instructions to agents to improve the experience.
Uses https://github.com/terryquigleysas/OpenSearch/blob/main/AGENTS.md as a guide.
Also update the backporting instructions due to recent changes.
Issues Resolved
Improve the agentic experience.
Testing
We have found this to improve the agentic experience on our own applicatons.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.