From a01523c10045f2951bbf51a28d4ab6a455e8cb92 Mon Sep 17 00:00:00 2001 From: Grigory V Date: Wed, 18 Nov 2026 10:31:28 +0100 Subject: [PATCH] docs(agents): allow AI-drafted text written for human readers The org AI policy (nextcloud/.github#839) now allows issues, PR descriptions and comments to be drafted with AI, as long as they are written for people, disclosed and follow the templates. It also asks for live-instance testing of runtime changes and commit bodies that explain why rather than how. Bring AGENTS.md in line so agents follow the current policy. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Grigory V --- .github/workflows/ai-policy.yml | 2 +- AGENTS.md | 23 ++++++++++++++++++----- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ai-policy.yml b/.github/workflows/ai-policy.yml index e030d6ec9c..4a047a42cc 100644 --- a/.github/workflows/ai-policy.yml +++ b/.github/workflows/ai-policy.yml @@ -169,7 +169,7 @@ jobs: echo "Please amend the affected commit(s) to remove the coding-agent sign-off" echo "and replace it with an 'Assisted-by' trailer, for example:" echo "" - echo " Assisted-by: Claude Code:claude-sonnet-4-6" + echo " Assisted-by: ClaudeCode:claude-sonnet-5-5" echo "" echo "References:" echo " • AGENTS.md (this repository)" diff --git a/AGENTS.md b/AGENTS.md index f85c6facc4..ea0aa1ab7f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -111,7 +111,7 @@ npm run test:e2e:ui # Run E2E tests with UI Do NOT commit changes unless explicitly asked to do so. After completing code changes: -1. Verify your work is complete and tests pass +1. Verify your work is complete and tests pass. Validate every change to runtime behavior on a live Nextcloud instance where you can, and give the contributor concrete steps to test it there themselves — your testing supports theirs, it does not replace it. 2. Never push directly to `main` — always create a feature branch with a descriptive name (e.g. `feat/org-chart`, `fix/vcard-parsing`, `chore/update-agents`). 3. Worktree branches must use descriptive feature-branch names, not generated names like `agent-xxxx`. 4. Make sure there is no trailing whitespace @@ -131,8 +131,20 @@ git commit --fixup= # targets the specific commit being corrected The branch will be rebased and squashed into a clean history before merge (CI enforces this). The failing "clean history" CI check is intentional and expected during review — ignore it until the PR has a positive review, then rebase to clean up. +### Issues, PR descriptions and comments + +Issues, PR descriptions and comments may be drafted with AI and posted on the contributor's behalf when they ask for it. Write them for human readers (see the [AI Contribution Policy](https://github.com/nextcloud/.github/blob/master/AI_POLICY.md)): + +- Lead with what changed and why it matters, in plain and concise sentences. Don't restate the diff file by file, add filler, or paste raw tool output. +- Keep the repository's PR or issue template intact and fill in every section, including the AI disclosure checkbox. For a bug report, also state whether the bug was validated and reproduced on a live Nextcloud instance. +- End AI-drafted issues and comments with a footer such as `Assisted by :`. +- Put information meant only for agents (plans, prompts, tool logs) into a collapsed `
` block. +- Tell the contributor what you posted. + ### Commit Message Format +The message body explains **why** the change was made — the problem it solves and the decisions the diff does not show — not how; the diff already shows that. Don't restate the changed lines as a bullet list. + All commits must include two trailers at the end: 1. Agent/model attribution: `Assisted-by: :` 2. DCO sign-off: Use `git commit -s` to add automatically @@ -143,12 +155,13 @@ This ensures the sign-off includes your configured Git user email. Example: ``` -fix(contacts): improve vCard parsing +fix(vcard): keep unknown properties when saving a contact -- update vCard parser to handle edge cases -- verify all tests pass +Saving rebuilt the vCard from the fields we know about, dropping +X- properties written by other clients. Keep them, so editing a +contact here no longer loses data set elsewhere. -Assisted-by: Claude:claude-sonnet-4-6 +Assisted-by: ClaudeCode:claude-sonnet-5-5 Signed-off-by: Name ```