Skip to content

[FLINK-XXXXX][docs] Add AGENTS.md and AI disclosure to PR template#27776

Draft
MartijnVisser wants to merge 1 commit intoapache:masterfrom
MartijnVisser:agents.md
Draft

[FLINK-XXXXX][docs] Add AGENTS.md and AI disclosure to PR template#27776
MartijnVisser wants to merge 1 commit intoapache:masterfrom
MartijnVisser:agents.md

Conversation

@MartijnVisser
Copy link
Contributor

What is the purpose of the change

Make the Flink codebase accessible to AI coding agents and establish lightweight guidelines for AI-assisted contributions.

Brief change log

  • Added AGENTS.md at the repository root with guidelines for AI coding agents: prerequisites, build/test commands, repository structure, architecture boundaries, common change patterns, coding standards, testing standards, commit conventions, and boundaries
  • Added a dedicated AI disclosure section to the PR template with a checkbox and commented-out Generated-by tag, aligned with the ASF Generative Tooling Guidance

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Was generative AI tooling used to co-author this PR?

  • Yes: Claude Code 1.0.33 (Claude Opus 4.6, 1M context)

@flinkbot
Copy link
Collaborator

flinkbot commented Mar 16, 2026

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Add AGENTS.md with guidelines for AI coding agents: prerequisites,
build/test commands, repository structure, architecture boundaries,
common change patterns, coding standards, testing standards, commit
conventions, and boundaries.

Add AI-assisted contribution disclosure checkbox to the PR template,
linking to ASF Generative Tooling Guidance.

Generated-by: Claude Code 1.0.33 (Claude Opus 4.6, 1M context)
- Edit generated files by hand when a generation workflow exists
- Use the legacy `SourceFunction` or `SinkFunction` interfaces for connectors; use the `Source` API (FLIP-27) and `SinkV2` API instead
- Add `Co-Authored-By` with an AI agent as co-author in commit messages; AI agents are assistants, not authors. Use `Generated-by: <Tool Name and Version>` instead.
- Use destructive git operations unless explicitly requested
Copy link
Contributor

Choose a reason for hiding this comment

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

may be also add
do not use CHECKSTYLE:ON/CHEKSTYLE:OFF unless explicitly requested
same for @SuppressWarning


### Adding a new table operator (e.g., join type, aggregate)

1. **Planner rule** in `flink-table-planner` under `plan/rules/physical/stream/` (match conditions, transform to physical node)
Copy link
Contributor

@snuyanzin snuyanzin Mar 20, 2026

Choose a reason for hiding this comment

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

do not write new rule in scala

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.

3 participants