This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia-sitetools.git

commit 6fbf63aa5c217f31895df77d6e95b77ff60698cf
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sat Nov 21 18:09:38 2026 +0100

    Add AGENTS.md and SECURITY.md
---
 AGENTS.md   | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 README.md   |  3 ++-
 SECURITY.md | 30 ++++++++++++++++++++++++++++++
 3 files changed, 94 insertions(+), 1 deletion(-)

diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 0000000..585a84f
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,62 @@
+<!---
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+# Agent guide for maven-doxia-sitetools
+
+This file is read by automated agents (security scanners, code
+analyzers, AI assistants) operating on this repository.
+
+## Security
+
+Security model: [SECURITY.md](./SECURITY.md)
+
+Agents that scan this repository should consult `SECURITY.md` and the
+threat model it links before reporting issues.
+
+## Compatibility
+
+The Maven Site Plugin calls these modules, skins read what the renderer puts
+in the Velocity context, and site extensions implement its interfaces:
+
+- Never remove or change the signature of a public method in `SiteTool`,
+  `SiteRenderer` or `DocumentRenderer` without deprecating it in an
+  earlier release.
+- `ContextCustomizer` and `ParserConfigurator` are implemented outside this
+  repository. Add a method to them only as a `default` method.
+- The Velocity variables documented on the Site Renderer page are API for
+  every skin. Do not rename or remove one.
+- `site.mdo` and `skin.mdo` generate the model classes, readers, writers,
+  XSD and reference pages. Edit the `.mdo` file, never the generated code.
+  A new element or attribute gets a `<version>N+</version>` tag, the Modello
+  `<version>` in the module POM and `ModelNamespace.SITE_MODEL_VERSION` (or
+  `SKIN_MODEL_VERSION`) move to `N`, and so does the XSD link in the model
+  description, which Modello does not filter.
+- `decoration.mdo` is the 1.x model, kept only to read and convert old
+  descriptors. Do not extend it.
+- The Maven and Resolver dependencies are `provided` and stay on Maven 3.9.x
+  with Resolver 1.9.x. Code must also run on Maven 4, which CI builds with.
+
+## Coding
+
+Use test-first programming. Before fixing a bug or implementing a feature,
+write a test that exposes the bug and verify the test fails. Tests use
+JUnit 5; do not add JUnit 4 or Hamcrest.
+
+The bytecode floor is Java 8. Before submitting a PR, run `mvn spotless:apply`
+to format the files, then `mvn verify`. Run Spotless with JDK 17 or 21. A
+change to `doxia-site-scm-context` also needs `mvn -Prun-its verify`, which
+runs its integration test.
diff --git a/README.md b/README.md
index 1c4689b..b5f90b9 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,8 @@ pages their look. The [Maven Site 
Plugin](https://maven.apache.org/plugins/maven
 
 - Documentation: <https://maven.apache.org/doxia/doxia-sitetools/>
 - Issues: <https://github.com/apache/maven-doxia-sitetools/issues>
-- Security reports: <https://maven.apache.org/security.html>, never a public 
issue
+- Security reports: see [SECURITY.md](SECURITY.md); never a public issue
+- Conventions for contributors and agents: [AGENTS.md](AGENTS.md)
 - Questions and design discussion: the [dev mailing 
list](https://maven.apache.org/mailing-lists.html)
 
 ## Modules
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 0000000..46dd801
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,30 @@
+<!---
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+# Security policy
+
+## Report a vulnerability
+
+`apache/maven-doxia-sitetools` follows the [Apache Software Foundation 
security process](https://www.apache.org/security/).
+Report suspected vulnerabilities privately to `[email protected]`; do not 
open public
+GitHub issues or pull requests for security reports.
+
+## Threat model
+
+What the project treats as in scope and out of scope, the security
+properties it provides and disclaims, the adversary model, and how
+findings are triaged are documented in 
<https://github.com/apache/maven/blob/master/THREAT_MODEL.md>.

Reply via email to