Skip to content

docs: add AGENTS.md for AI agents working on the action - #64

Merged
rfay merged 1 commit into
mainfrom
20261122_rfay_agents_md
Nov 25, 2026
Merged

rfay merged 1 commit into
mainfrom
20261122_rfay_agents_md

Conversation

@rfay

@rfay rfay commented Nov 22, 2026

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

Adds an AGENTS.md that points AI agents to DDEV's organization-wide AGENTS.md, and adds what is specific to this repository: layout, rules for action.yml, how to test, and how releases work.

The Issue

AI agents working here had no repository guidance. They had to guess how to test a composite action that has no local test suite, and that users run from the moving v1 tag.

How This PR Solves The Issue

  • Links the organization AGENTS.md for boundaries, style, branches, commits, PRs and attribution, and states that this file wins where they differ.
  • Lists the files and what each does.
  • Sets rules for action.yml: keep @v1 users compatible, document every input in README.md, and pass inputs through env: rather than ${{ inputs.* }} in scripts.
  • Explains that the tests workflow is the test, how to run it on a branch with gh workflow run, and that Markdown-only changes skip it.
  • Says how to approach nightly failures, and that agents don't create or move release tags.

Manual Testing Instructions

Read AGENTS.md and check each claim against action.yml, .github/workflows/main.yml and .github/workflows/update-main-version.yml.

Automated Testing Overview

This PR changes only Markdown, so the tests workflow skips it.

Release/Deployment Notes

action.yml on main still puts ${{ inputs.* }} into its scripts. The rule in this file applies to new code. A separate change on 20261122_rfay_head_download_ddev moves the existing steps to env:.

🤖 Developed with assistance from Claude Code

https://claude.ai/code/session_01UrTUMwauQvTgWac6bsCPsm


Generated by Claude Code

## Short Summary (TL;DR)

Adds an `AGENTS.md` that points AI agents to DDEV's organization-wide `AGENTS.md`, and adds what is specific to this repository: layout, rules for `action.yml`, how to test, and how releases work.

## The Issue

AI agents working here had no repository guidance. They had to guess how to test a composite action that has no local test suite, and that users run from the moving `v1` tag.

## How This PR Solves The Issue

- Links the [organization AGENTS.md](https://raw.githubusercontent.com/ddev/.github/main/AGENTS.md) for boundaries, style, branches, commits, PRs and attribution, and states that this file wins where they differ.
- Lists the files and what each does.
- Sets rules for `action.yml`: keep `@v1` users compatible, document every input in `README.md`, and pass inputs through `env:` rather than `${{ inputs.* }}` in scripts.
- Explains that the `tests` workflow is the test, how to run it on a branch with `gh workflow run`, and that Markdown-only changes skip it.
- Says how to approach nightly failures, and that agents don't create or move release tags.

## Manual Testing Instructions

Read `AGENTS.md` and check each claim against `action.yml`, `.github/workflows/main.yml` and `.github/workflows/update-main-version.yml`.

## Automated Testing Overview

This PR changes only Markdown, so the `tests` workflow skips it.

## Release/Deployment Notes

`action.yml` on `main` still puts `${{ inputs.* }}` into its scripts. The rule in this file applies to new code. A separate change on `20261122_rfay_head_download_ddev` moves the existing steps to `env:`.

🤖 Developed with assistance from [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UrTUMwauQvTgWac6bsCPsm
@rfay
rfay requested a review from stasadev November 22, 2026 03:25

@davereid davereid left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: Thanks, rfay. I checked the workflow triggers, matrix, upterm access and release flow against main, and they all match. Following ddev/ddev's AGENTS.md layout keeps the two consistent.

note: The env: rule for inputs matches action.yml once #65 merges.

Drafted with Claude Code using project-triage. I had each claim in the file checked against the repository and the linked DDEV files, and reviewed the final text.

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@rfay
rfay merged commit e9e8829 into main Nov 25, 2026
2 checks passed
@rfay
rfay deleted the 20261122_rfay_agents_md branch November 25, 2026 13:10
davereid added a commit to davereid/github-action-cache-ddev that referenced this pull request Nov 28, 2026
Updates the setup-ddev `main` pin, so the "Lint actions" job passes
again.

## Description

- `ci.yml`: pins `ddev/github-action-setup-ddev` to `798b95f # main`
instead of `222a22f`. setup-ddev's `main` moved on 2026-11-25, and
zizmor's online audit flags a `# main` comment on an older SHA.

## Links

- New setup-ddev commits: ddev/github-action-setup-ddev#64 and
ddev/github-action-setup-ddev#65 (`head` builds via `ddev utility
download-ddev`).

## Testing instructions

1. Check that the **CI** workflow's "Lint actions" job passes in this
PR's checks.
2. Check that the `cache-save` and `cache-restore` jobs for DDEV `head`
pass, since ddev/github-action-setup-ddev#65 changed how `head` is
downloaded.

## AI disclosure

Claude Code (Claude Opus) found why "Lint actions" failed on #15 and
updated the pin. I asked for the investigation and reviewed the change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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