Skip to content

GenAI/LLM/AI Agent Guideline #19

@UTsweetyfish

Description

@UTsweetyfish

(not a rfc yet)

本 issue 的写作并未使用 GenAI/LLM 工具

现状

Co-Authored-By 了 Claude Opus 4.6:

部分项目已经将 .claude 加入了 .gitignore:

在 GitHub actions 中使用 opencode-review

使用 Claude Code 进行 Code Review

使用 AI 进行 Code Review

  • Sourcery AI
  • Copilot

@hudeng-go 在做的使用 AI 来做安全修复,截至目前 230+ (24+ merged): q=is:pr author:deepin-ci-robot label:generated-by-ai

需考虑的问题

  1. 贡献者如使用了辅助类工具,贡献者是否应能够完全理解 AI 的改动,是否审阅、测试过(thoroughly understood, reviewed, and tested
  2. 如贡献使用了辅助类工具,贡献者是否应声明使用了辅助类工具,是否应声明提示词与模型?及应如何声明?
  3. 辅助类工具的参与度应到哪里?只限于 git 提交?参与到 GitHub 的 conversation 中?由 Agent 自行提 Pull Request?
  4. 如何避免或减少幻觉、遗漏、夸大或歪曲?(may suffer from hallucination, omission, exaggeration, or misrepresentation
  5. Code Review 为 AI
  6. 是否应必须有人参与其中?(must be a human in the loop
  7. AI 生成内容的许可证问题 (GenAI/LLM/AI Agent Guideline #19 (comment))
  8. [TODO]

实现细节

  1. git commit 的字段:
    • Co-Authored-By
    • Co-Developed-By
    • Assisted-by
    • Signed-off-by
  2. github issue/PR 的信息:
    目前在 deepin-community 我们在 PR 上使用了 label:generated-by-ai
    需考虑: 提测单 / ... (ref: [Deepin Integration]~[v25-Release] fix: Fix CVE-2026-35535 by deepin-ci-robot@deepin-community/sudo by deepin-community-ci-bot[bot] linuxdeepin/developer-center#13041)
  3. debian/changelog 的信息:
    由 AI 贡献时,是否应在 debian/changelog 声明?
    完全由 AI 贡献时,debian/changelog 的 author line 该怎么写?
  4. [TODO]

可供参考

https://www.eff.org/about/opportunities/volunteer/coding-with-eff
https://www.eff.org/deeplinks/2026/02/effs-policy-llm-assisted-contributions-our-open-source-projects
https://llvm.org/docs/AIToolPolicy.html
https://lwn.net/Articles/1032612/
https://docs.kernel.org/process/generated-content.html

Debian (Draft) - https://lists.debian.org/debian-vote/2026/02/msg00000.html

https://docs.fedoraproject.org/en-US/council/policy/ai-contribution-policy/
https://matplotlib.org/devdocs/devel/contribute.html#restrictions-on-generative-ai-usage

Assisted-by: AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]
Assisted-by: Claude:claude-opus-4.6
Assisted-By: Claude Opus 4.6 (1M context)
Assisted-by: ChatGPTv5
Made-with: Cursor
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

LLM review tool - Sashiko

https://lwn.net/Articles/1063292/
https://lwn.net/Articles/1064830/
https://lwn.net/Articles/1065971/

and more ... [TODO]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions