Add AGENTS.md for AI coding agents constrained by contribution+AI gui…#5408
Add AGENTS.md for AI coding agents constrained by contribution+AI gui…#5408miqui wants to merge 6 commits into
Conversation
…delines This document provides guidelines for coding agents in the OpenAPI-Specification repository, detailing the purpose, operating principles, editing rules, validation processes, and expectations for pull requests.
|
Please refer to : https://agents.md/. This should explain the impetus for this PR. Verify important: We have not merged (but it is ready ) the AI policy for the this project. I drafted this AGENTS.md file so that it follows our AI policy once it is officially merged. Adding agentic governance to the project so that future contributions are easier to manager by our human maintainers. AGENTS.md provide a single, predictable place to read project instructions before they act. |
|
in WIP: forgot to consider: https://github.com/OAI/OpenAPI-Style-Guide |
minor fixes, also covers style guide guidance
fix md errors
|
Note the below is a test flow for someone contributing a PR to fix a typo: As you can see in the output from Claude Code (but AGENTS.md is a standard for all AI agents) it is guiding the contributor properly and makes him/her a more effective and easier for PR reviews. |
Updated guidance for coding agents, emphasizing the need for human oversight and clarifying editing rules. Adjusted sections on operating principles, branch selection, and AI policy constraints. improve progressive disclosure
Added hard rules and validation instructions for coding agents.
add repo root comment
|
test: |
|
test: fixing a defect in scripts/schema-publish.sh Note the response from the agent. In this case Claude CLI. model: fable 5, sonnet 5, sonnet 4.6 afaik, this is correct |
|
another test: proposing a wording change to latest version of the OpenAPI specifcation itself. the change is intended to clarify wording in the specification. This scenario exercises the spec-text path of AGENTS.md. Let me check which dev branches are actually active so the flow is concrete. Ran 1 shell command Bash(git -C /home/miqui/development/OpenAPI-Specification branch -r | grep -E 'v[0-9.]+-dev'; grep -A10 -i "active branches" /home/miqui/development/OpenAPI-Specification/CONTRIBUTING.md | head -20)
origin/v3.1-dev
origin/v3.2-dev
origin/v3.3-dev
### Active branches
The current active specification releases are:
| Version | Branch | Notes |
| ------- | ------ | ----- |
| 3.1.3 | `v3.1-dev` | active patch release line |
| 3.2.1 | `v3.2-dev` | active patch release line |
| 3.3.0 | `v3.3-dev` | minor release in development |
| 4.0.0 | [OAI/sig-moonwalk](https://github.com/OAI/sig-moonwalk) | [discussions only](https://github.com/OAI/sig-moonwalk/discussions) |Here's the flow for "clarify wording in the latest version of the spec" — this one exercises the hard rules more than the last scenario did:
Test observations:
Note the response from the agent. In this case Claude CLI. model: fable 5, sonnet 5, sonnet 4.6 afaik, this is correct |
|
@ralfhandl any thoughts? |
…delines