This document provides guidance for AI tools and developers using AI assistance when contributing to Euro-Office. It applies to all repositories under the Euro-Office GitHub organization, including DocumentServer and all component repositories (server, web editors, SDK, and native core).
This policy complements the existing Contribution Guidelines. The requirements around testing, sign-off, license headers, and security reporting described there continue to apply in full - this document addresses how they extend to AI-assisted contributions.
Every pull request containing AI-assisted code, documentation, or tests must declare this in the PR description. PRs found to have undisclosed AI use might be closed.
For full traceability at the commit level, each commit containing AI-assisted content must include an Assisted-by: git trailer:
Assisted-by: AGENT_NAME:MODEL_VERSION
The agent name and model version identify the AI tool. Basic development tools such as git, compilers, editors, and static analyzers are not listed - these are standard parts of any development workflow regardless of AI involvement.
The PR description disclosure explains how AI was used; the commit trailer ensures that provenance is permanently recorded in version history and available to future contributors, auditors, and tooling.
Examples:
Assisted-by: Devstral:devstral-small-2507
Assisted-by: ClaudeCode:claude-sonnet-4-6
Assisted-by: Qwen:qwen3-coder-32b
Assisted-by: Copilot:gpt-4o
The contributor is the legal and moral author of every line they submit. If a reviewer asks "why does this work this way?" and the answer is "the AI wrote it," the PR will be closed. This applies to code, comments, documentation, and tests alike. You must be able to explain, defend, and modify any content you submit.
Issue descriptions, PR descriptions, and comments may be drafted with AI assistance. Generated text must be written for human readers, short and concise. It must not state assumptions as facts: every claim about behavior, root causes, or test results must be verified by the contributor before posting. The ideas, reasoning, and decisions in community communication must come from the contributor, who must review and stand behind every word. Translation assistance and grammar/spelling help do not need to be disclosed.
This requirement extends through the entire review process. Contributors must understand and address reviewer questions and requested changes themselves. Passing maintainer feedback into an AI and posting whatever comes out without review is not an acceptable substitute for genuine engagement. If a contributor cannot explain or implement a requested change because they do not understand their own submission, the PR will be closed.
AI tools hallucinate package names, produce subtly broken access controls, and may reproduce vulnerable patterns from their training data. Contributors must manually verify all dependencies, access control logic, authentication patterns, and security implications in AI-generated code before submitting - the risk of undetected errors is higher than with hand-written code and warrants extra care.
For general security requirements applicable to all contributions, see the Contribution Guidelines. Security vulnerabilities must be reported privately, through Euro-Office/security-advisories or by email to the maintainers (euro-office-team on the proton.me mail server), not via public issues. AI-generated security reports must be independently verified before submission; unverified reports might be closed without response.
AI agents must not open issues, submit pull requests, post comments or reviews, or send security reports autonomously. Every contribution must be reviewed by a human. This includes agentic workflows where an AI browses the codebase, plans changes across multiple files, and generates commits. An agent may open an issue or pull request, post a comment, or submit a review (Comment, Request changes, or Approve) when a human contributor explicitly directs it to, after the contributor has reviewed the content. An Approve counts as a human approval only if the contributor reviewed the change themselves; the agent only submits it. The directing human takes full ownership of the change, exactly as if they had submitted it themselves.
Maintainers use a small model to label new issues and pull requests automatically (scripts/ai-label.sh). Labels are metadata, not communication. Its triage replies are only drafts: a maintainer reviews and edits each one before posting it.
AI agents may add a Signed-off-by tag (e.g. git commit -s) only when the contributor explicitly tells them to: that instruction is the contributor's certification of the Developer Certificate of Origin. Euro-Office requires every commit to be signed off.
Each repository's license is in its LICENSE file. Most are AGPL-3.0-only, and some of those add ONLYOFFICE's additional terms under Section 7; a few are Apache-2.0 or LGPL-3.0. Contributors must ensure AI-generated code contains no material from sources incompatible with the license of the repository they contribute to, or with the license of any third-party component they are contributing to.
The applicable test has three parts: the AI tool's terms must permit open-source use of its output; no third-party copyrighted material may be reproduced; and any included material must use a compatible open-source license. If generated code appears identical or suspiciously similar to code from an incompatible source, it must be removed or replaced with an original implementation. Ignorance of AI-generated provenance is not a defense.
AI output must be cleaned before submission. Dead code, redundant logic, excessive comments, inconsistent style, unused variables, structural drift, and unrelated file changes must all be removed. Submitting large AI code blobs without meaningful oversight - sometimes called "vibe coding" or "prompt dumping" - is prohibited.
Signs of a disallowed submission include: large unreviewed AI blobs; obvious mechanical mistakes a human would fix in minutes; code that has clearly never been executed; and pull requests that shift debugging and cleanup work onto maintainers rather than the contributor. As required by the Contribution Guidelines, all changed and added code must be tested - AI-generated code is not exempt from this requirement.
New features must be tested on a live Euro-Office instance by the contributor before submission. Providing test instructions for an AI agent to execute is not a substitute for human testing.
A pull request should address exactly one thing. AI-generated code frequently drifts in scope due to imprecise prompting, touching unrelated files or introducing incidental refactors. If a PR description does not match its diff, that is a signal the contributor did not review their own changes. Large changes must be broken into multiple focused commits or separate PRs.
Maintainers have unreviewable authority to close AI-assisted contributions for quality, complexity, scope, or community-fit reasons. A contribution that costs reviewers more time than it returns value to the project is extractive and will be closed, regardless of how many rounds of review it has already received. The golden rule applies: a contribution should be worth more to the project than the time it takes to review.
AI tools must not be used to fully automate the resolution of issues labeled good first issue or similar beginner-friendly labels. These issues exist to create a learning path for new contributors who will become future maintainers. Take a beginner issue only if you genuinely intend to learn and continue contributing to Euro-Office.
This policy applies to all contributions to repositories under the Euro-Office GitHub organization, by all contributors. It will be reviewed and updated as AI tooling, open-source best practices, and applicable law evolve. Suggested changes are welcome via pull requests.