Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ai-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
23 changes: 18 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -131,8 +131,20 @@ git commit --fixup=<sha> # 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 <AgentName>:<model-id>`.
- Put information meant only for agents (plans, prompts, tool logs) into a collapsed `<details>` 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: <AgentName>:<model-id>`
2. DCO sign-off: Use `git commit -s` to add automatically
Expand All @@ -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 <email>
```

Expand Down
Loading