# License and Legal Information

The **SAME Analog Modular Ecosystem** is an open-hardware specification and
computing platform. To properly protect hardware designs, documentation, and
executable software tooling, this repository utilizes a multi-scope open
licensing model:

* **Documentation & Prose:** Creative Commons Attribution-ShareAlike 4.0
  International (`CC-BY-SA-4.0`)
* **Hardware Designs & CAD:** CERN Open Hardware Licence Version 2 - Strongly
  Reciprocal (`CERN-OHL-S-2.0+`)
* **Executable Code & Tooling:** GNU General Public License v3.0 or later
  (`GPL-3.0-or-later`)

## 1. Documentation and Specification

All prose, mathematical derivations, tables, rendered figures, and specification
text contained within this repository are licensed under the **Creative Commons
Attribution-ShareAlike 4.0 International License**.

* **SPDX-License-Identifier:** `CC-BY-SA-4.0`
* **Full Text:** See [`LICENSES/CC-BY-SA-4.0.txt`](LICENSES/CC-BY-SA-4.0.txt)
  or visit [creativecommons.org/licenses/by-sa/4.0](https://creativecommons.org/licenses/by-sa/4.0/).

> **Note on Future Versions:** If a later version of CC BY-SA is published by
Creative Commons, you may distribute the documentation under that later version
as well.

## 2. Hardware Designs

All hardware files—including electronic schematics, PCB stackups, layout files,
Gerber files, `cetz`/`zap` mechanical drawings, 3D CAD/STEP models, and chassis and
cassette enclosure definitions are licensed under the **CERN Open Hardware
Licence Version 2 - Strongly Reciprocal**.

* **SPDX-License-Identifier:** `CERN-OHL-S-2.0+`
* **Full Text:** See
  [`LICENSES/CERN-OHL-S-2.0+.txt`](LICENSES/CERN-OHL-S-2.0+.txt) or visit
  [ohwr.org/cernohl](https://ohwr.org/cernohl).

## 3. Executable Code, Scripts, and Verification Tooling

All executable source code—including the Typst metrology library (`lib/*`),
currying wrappers (`lib/unify.typ`), unit test helper functions
(`lib/assert-aeq.typ`, `lib/apply-prefix.typ`), compile-time assertions, build
scripts, and simulation harnesses are licensed under the **GNU General Public
License v3.0 or later**.

* **SPDX-License-Identifier:** `GPL-3.0-or-later`
* **Full Text:** See
  [`LICENSES/GPL-3.0-or-later.txt`](LICENSES/GPL-3.0-or-later.txt) or visit
  [gnu.org/licenses/gpl-3.0.html](https://www.gnu.org/licenses/gpl-3.0.html).

## 4. Artificial Intelligence, Data Mining & Machine Learning

All materials in this repository are protected under their respective copyleft
licenses (`CC-BY-SA-4.0`, `CERN-OHL-S-2.0+`, `GPL-3.0-or-later`).

* **Reservation of TDM Rights:** To the maximum extent permitted under
  applicable law (including Article 4(3) of EU Directive 2019/790), all rights
  for Text and Data Mining (TDM), automated scraping, and commercial AI
  ingestion are explicitly reserved.
* **Copyleft Enforcement:** Automated ingestion or dataset harvesting for
  Artificial Intelligence / Large Language Model training is strictly prohibited
  unless the entity training or distributing the model fully complies with the
  strong copyleft, attribution, and source-sharing requirements of the
  respective licenses.
* **Contributor AI Policy:** For rules regarding human contributor usage of AI
  tools during submission, refer to [`LLM_POLICY.md`](LLM_POLICY.md).

## Summary of SPDX Identifiers

```spdx
SPDX-FileCopyrightText: 2026 Denis Chevalier <perso@denischevalier.fr>
SPDX-License-Identifier: CC-BY-SA-4.0
SPDX-License-Identifier: CERN-OHL-S-2.0+
SPDX-License-Identifier: GPL-3.0-or-later
```
