diff --git a/.github/workflows/ai-policy.yml b/.github/workflows/ai-policy.yml index e030d6ec9..4a047a42c 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 f85c6facc..ea0aa1ab7 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 ```