Skip to content

docs(agents): document Dag naming convention#66393

Merged
Lee-W merged 3 commits intoapache:mainfrom
astronomer:docs/agents-dag-naming-rule
May 5, 2026
Merged

docs(agents): document Dag naming convention#66393
Lee-W merged 3 commits intoapache:mainfrom
astronomer:docs/agents-dag-naming-rule

Conversation

@Lee-W
Copy link
Copy Markdown
Member

@Lee-W Lee-W commented May 5, 2026


Why

Codify the project-wide convention that "Dag" (title case) is the only correct form in prose, comments, commit messages, and PR text. "DAG" (all caps) appearing in documentation is the legacy form to be replaced; the DAG Python class itself is current and stays as-is in code. Without an explicit rule in the agent instructions, AI-assisted contributions repeatedly reintroduce the all-caps form.

What

  • Add a top-level Naming section to AGENTS.md covering Dag usage, the legitimate exceptions (Python code tokens, CLI subcommands like airflow dags list, file/directory tokens, anti-pattern callouts that quote the wrong form to teach the rule), and the rule that "Directed Acyclic Graph" should not appear except as historical context.
  • Fix 3 prose mentions of "DAG authors" → "Dag authors" in providers/AGENTS.md.
  • Update Thai translator locale guidance in .github/skills/airflow-translations/locales/th.md so its "Keep in English" entries and translation pattern examples use "Dag" instead of "DAG".
Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: Claude Code following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

Lee-W added 2 commits May 5, 2026 16:36
Add a Naming section to AGENTS.md explaining that prose, comments,
docstrings, commit messages, and PR text always use "Dag" (title case),
and list the legitimate exceptions where the literal form must be
preserved: Python code tokens with the legacy `DAG` class, CLI
subcommands like `airflow dags list`, file/directory tokens, and
anti-pattern callouts that quote the wrong form to teach the rule.
Also note that "Directed Acyclic Graph" should not appear except as
historical context.
@boring-cyborg boring-cyborg Bot added area:dev-tools area:providers backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch labels May 5, 2026
Copy link
Copy Markdown
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM for the catch.

Comment thread AGENTS.md
@Lee-W Lee-W merged commit 2a89e90 into apache:main May 5, 2026
65 checks passed
@Lee-W Lee-W deleted the docs/agents-dag-naming-rule branch May 5, 2026 09:35
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

Backport failed to create: v3-2-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-2-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 2a89e90 v3-2-test

This should apply the commit to the v3-2-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

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

Labels

area:dev-tools area:providers backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants