From 6f6e1e53472c69ff05fd2273a7fb16eb0ff2a57b Mon Sep 17 00:00:00 2001 From: Andrew Berezovskyi Date: Sun, 17 May 2026 16:12:58 +0200 Subject: [PATCH] docs(agents): document the copyright-header policy Add a Copyright headers section to AGENTS.md so future contributors (human or agent) attach the Andrii Berezovskyi / OSLC4Net contributors line when they significantly touch a file. Captures three rules that are easy to get wrong: - new files: line is the sole attribution - existing files with other attributions: append, never replace - existing files already carrying the line: leave the year alone Co-Authored-By: Claude Opus 4.7 --- AGENTS.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index d344dfca..5eebbc92 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -110,6 +110,31 @@ dotnet format whitespace ./OSLC4Net_SDK && dotnet format style ./OSLC4Net_SDK -- - Also run this **after resolving merge conflicts**. Hand-edited hunks re-introduce style drift even when both parents were clean. - A pre-commit hook (`.pre-commit-config.yaml`) enforces this; install once with `pre-commit install`. +## Copyright headers + +Any file you've **significantly** touched (substantive code, docs, or +non-trivial test changes — not just whitespace, renames, or a one-line +tweak) should carry the line: + +``` +Copyright (c) Andrii Berezovskyi and OSLC4Net contributors. +``` + +where `` is the current year **at the time you add the line**. + +Rules: +- **New files**: include this line as the sole copyright attribution (no + inherited IBM/contributor headers). +- **Existing files** that already have other copyright attributions + (e.g. `Copyright (c) 2012 IBM Corporation.`): add the + `Andrii Berezovskyi and OSLC4Net contributors.` line immediately after + the last existing copyright line. Preserve all other attributions and + the `Contributors:` block. +- **Existing files** that already carry an + `Andrii Berezovskyi and OSLC4Net contributors.` line: leave the year + alone. Do not "refresh" it to the current year. +- Never remove other copyright attributions. + ## Project Structure - `OSLC4Net_SDK/` - Main SDK projects (.NET 10)