Proposal for Guideline for AI-Assisted Contributions
The Alliander Open Source Program Office has written the following guideline for AI-Assisted Contributions.
Purpose
This guideline defines how AI‑assisted contributions should be handled our open source projects. It ensures that the use of AI tools (e.g., LLMs, coding assistants, or autonomous agents) improves productivity without reducing code quality, security, or maintainability.
This guideline complements existing contribution policies and must be implemented in each project’s CONTRIBUTING.md: https://lf-energy.atlassian.net/wiki/x/BIDHRw
1. Principles
1.1 AI as a Tool (Not an Author)
AI tools are permitted as a support mechanism for contributors. However:
The human contributor remains the author and is fully accountable for the contribution.
AI must not be treated as an autonomous contributor or decision-maker.
Submitting code without human contributor understanding it is not acceptable
1.2 Transparency & Disclosure
Contributors must disclose significant use of AI in code, documentation, or design.
Undisclosed AI-generated contributions may be rejected
Minor uses (e.g., grammar fixes) do not require disclosure.
Recommended format:
PR description
Commit message (e.g.,
Assisted-by: AI tool name)
1.3 Quality & Accountability
AI-assisted contributions must meet the same standards as any human-written code.
Contributors must:
Fully understand the code they submit
Be able to explain design decisions
Take responsibility for correctness, licensing, and security
2. Contribution Requirements
2.1 Minimum Quality Standards
AI-generated code often reflects insecure or outdated patterns; therefore thorough validation is required. Therefore, all AI-assisted contributions must include:
✅ Tests (unit/integration where applicable)
✅ Documentation updates (if relevant)
✅ Compliance with coding standards
✅ Clear problem description and rationale
2.2 Size & Scope of Contributions
Large, AI-generated pull requests are discouraged or rejected.
AI-generated Low-quality or unreviewed AI-generated pull requests are discouraged or rejected.
Preferred:
Small, incremental PRs
Clearly scoped changes
Keep contributions focused and easy to review
Rationale: AI reduces the cost of generating code, but review cost remains high, shifting burden to maintainers.
2.3 Engagement First (No “Drive‑by AI PRs”)
Contributors using AI should:
Engage with maintainers first (issues/discussions)
Align on approach before submitting code
Automated bots or agents submitting unsolicited contributions are not allowed
unless explicitly approved by maintainers.
3. Security & Compliance
4.1 Secure Use of AI Tools
AI assistants can produce insecure code depending on prompts and training data. Contributors must:
Validate outputs for vulnerabilities and unsafe patterns
Avoid blindly trusting generated code
4.2 Licensing & Copyright
AI output may contain fragments derived from existing copyrighted material. Contributors must ensure that:
AI-generated code does not violate third-party licenses
Any reused content is properly attributed
4.3 Vulnerability Contributions
For security-related contributions:
Fixes must be accompanied by:
Reproducibility steps
Tests validating the fix
6. Handling AI Agents
Autonomous AI agents (e.g., bots) that:
create PRs
interact on Slack/GitHub
self-assign issues)
are treated as a special category:
Require explicit maintainer approval
Must clearly identify themselves as AI
Must comply with contribution rules
May be restricted or blocked if:
They generate noise
They do not demonstrate understanding or accountability