Skip to content

AI policy for contributions #4759

Open
Open

Description

@seisman

As AI-assisted tools are now commonplace in open-source development, PyGMT should document a policy for their use in contributions.

Here are some useful resources (I haven't look at them carefully):

Activity

  1. added
    maintenanceBoring but important stuff for the core devs
    discussionsNeed more discussion before taking further actions
    on Jul 24, 2026
  2. sjh9714 commented on Jul 24, 2026

    @sjh9714

    Another resource for the pile — this one empirical rather than a policy text.

    I scanned 2,204 recently merged agent-authored PRs (Devin, GitHub Copilot's coding agent, Codex, Claude Code, Cursor) on public repositories, read-only via the GitHub API with deterministic checks and no LLM judgment, to see what agent PRs actually do rather than what policies assume they do.

    Zero of the 2,204 declared, in any machine-checkable form, what they intended to change. Of the 349 that touched CI workflows or package manifests, 12.9% escalated workflow permissions and 17.5% added unpinned actions. 3.9% edited agent instruction files (AGENTS.md, CLAUDE.md, .mcp.json). Repositories with 10k+ stars had roughly half the finding rate of the long tail.

    The practical takeaway for a draft: most published policies ask for disclosure, which is self-reported and unverifiable. The things that actually consume reviewer time — scope, CI permission changes, and edits to agent instruction files — are checkable from the PR itself without having to trust the author's answer. It may be worth deciding up front which of your clauses you want to be verifiable and which are aspirational.

    Methodology and all queries are public: https://github.com/sjh9714/mergewarden/blob/main/docs/study/methodology.md — findings there are review evidence, not vulnerability claims, and no repositories are named.

  3. weiji14 commented on Aug 27, 2026

    @weiji14
    Member

    Thanks for opening this discussion @seisman, and @sjh9714 for the comments. I have my own personal opinions on using cloud-hosted frontier models, but would defer to more active maintainers in the PyGMT project on what is a reasonable stance on AI-assistance going forward. If possible, I think we should discuss the principles of what kinds of AI-assisted contributions should or should not be accepted, much like what matplotlib has documented, and then use those principles to guide our stance on an (semi-)enforceable policy.

    Will leave this thread open for others to pitch in before saying more.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionsNeed more discussion before taking further actionsmaintenanceBoring but important stuff for the core devs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions