Skip to content

Expand accepted Assisted-by formats and add CI enforcement#687

Open
mtjhrc wants to merge 2 commits into
containers:mainfrom
mtjhrc:ci-assisted-by-fmt
Open

Expand accepted Assisted-by formats and add CI enforcement#687
mtjhrc wants to merge 2 commits into
containers:mainfrom
mtjhrc:ci-assisted-by-fmt

Conversation

@mtjhrc
Copy link
Copy Markdown
Collaborator

@mtjhrc mtjhrc commented May 19, 2026

Previously only AGENT:MODEL was documented as valid. This relaxes
the format to also accept AGENT / MODEL and AGENT (MODEL), and
introduces Generated-by for fully AI-generated code. auto/unknown
are now explicitly allowed when the model name isn't known.

A new CI check is added to enforce the policy on every PR:

  • Bans Co-authored-by for known AI tools (e.g. Claude, Copilot)
  • Rejects malformed Assisted-by / Generated-by trailers
  • Rejects other well known auto-generated AI attribution lines (e.g. the
    "Generated with [Claude Code]" footer Claude Code appends by default)

Fixes: #681

mtjhrc added 2 commits May 19, 2026 13:55
We previously only allowed using:
Assisted-by: Claude Code:claude-opus-4.6

Update the guidlines to also other well formated alternatives:
Assisted-by: Claude Code / claude-opus-4.6
Assisted-by: Copilot (GPT-5.4)

Also allows a similar Generated-By tag:
Generated-by: OpenCode:claude-opus-4.6

This also explicitly codifies you can use `auto` or `unknown` in case you don't
know the actual model name. This can be used when you are using automatic
selection in tools like Cursor or Github Copilot.

Signed-off-by: Matej Hrica <mhrica@redhat.com>
Add a script to enforce rules mentioned in CONTRIBUTING.md.
Main motivation for this is banning Co-Authored-By: Claude.
This also checks for other ill-formated Assisted-By forms and generates a
warning.

Assisted-by: OpenCode:claude-opus-4.6
Signed-off-by: Matej Hrica <mhrica@redhat.com>
@mtjhrc mtjhrc force-pushed the ci-assisted-by-fmt branch 2 times, most recently from f2c94d7 to 8e59ad8 Compare May 19, 2026 12:17
@mtjhrc mtjhrc marked this pull request as ready for review May 19, 2026 12:17
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.

CONTRIBUTING.md: Assisted-by: form, "auto" model selection

2 participants