[repo] Licence: CPAL-1.0, with the Built on Domi credit #15

Manually merged
mnovak merged 0 commits from feature/cpal into main 2026-11-23 00:22:45 +01:00
Owner

Ianitor moves from MPL-2.0 to CPAL-1.0 (Common Public Attribution License 1.0). This is Mark's decision of 2026-11-23 for every public Domi repository, following the licence kit F:\Akce\domi-licence\README.md.

What changed

  • LICENSE is LICENSE.template (sha256 8035b912…021f1, checked) with only {ORIGINAL_CODE} replaced by Ianitor. UTF-8, LF.
  • Headers: every MPL header (166 files) is now a CPAL notice in the file's own comment style:
    SPDX-License-Identifier: CPAL-1.0 / Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution License 1.0: see LICENSE (its Exhibit A is this file's notice).
    The SPDX lines in .githooks and deploy/test-access.sh say CPAL-1.0 too. No file in the repo is someone else's work, so nothing keeps another licence.
  • Identifiers:
    • Cargo.toml (the crates inherit it) and the fuzz crate: license = "CPAL-1.0".
    • The three package.json: "license": "CPAL-1.0".
    • Nix: meta.license = lib.licenses.cpal10.
    • The OpenAPI document's licence (name and identifier).
  • Earlier versions: README says Ianitor 0.2.0 and earlier stay available under MPL-2.0 to those who received them; from this change on, the code is CPAL-1.0. Settings, About says the same.
  • The credit (CPAL §14, and §15 for network use):
    • Text: Built on Domi · Copyright (c) 2026 Marek Novák · https://aula.marek-novak.cz.
    • Where: on every screen of the web UI (the sidebar footer, or the foot of the page on a phone) and in Settings, About.
    • Source: one constant, apps/web/src/lib/credit.ts. The README shows the same credit.
  • Docs: README, CLAUDE.md, ROADMAP decision 9 (with the date), support.md, the launch drafts and the UI hand-off.

Tests

  • vitest 22 passed (one new: the e2e real-data check leaves out exactly the credit and nothing else).
  • svelte-check clean.
  • Playwright web 6/6 and aula 5/5, with the real-data check on every page.
  • In WSL: cargo check -p ianitor-control --tests passes, and control's API tests pass 5/5 (they serve the OpenAPI document).

Adversarial self-review

  • Did a header change touch code? Every rewrite replaced exactly the three MPL lines, found by their text, keeping each line's comment prefix and suffix (//, #, <!-- … --> with -, /* … */). 166 matched, none were left half-done, and shebangs stay on line 1. The Rust compiles, and the web check and tests pass.
  • Is the credit enough for §14? §14 asks for the Attribution Information on the interface a user reaches the code through, at each launch or session. The sidebar shows it on every desktop screen; on a phone there is no sidebar, so it sits at the foot of each page, above the tab bar (checked at 390×844 with a temporary spec).
  • The real-data check. The e2e suite refuses real-looking names. The credit is real on purpose, so realLooking removes exactly the credit's URL and notice before it checks. A test proves that other mentions of the same names are still caught.
  • The OpenAPI identifier field exists from utoipa 5 (Cargo.lock: 5.5.0). It compiles and the document is served (API tests).
  • The Nix licence name lib.licenses.cpal10 is defined on nixpkgs nixos-26.05, the flake's channel (lib/licenses/licenses.nix: spdxId = "CPAL-1.0", not marked unfree). It was not evaluated with Nix here.
  • The release pin. The release refuses a pin whose source differs from the tag's, so this change needs a new pin when the next version is tagged. That is the usual release step.
  • PR 14 (@domi/ui) will conflict on the headers it touches. It is on hold until @domi/ui v1.0.3 anyway; it will be rebased on this change.
  • Already on main, not from this change: the About tab's "Source on Gitea" link is a real address, so the e2e real-data check would flag it if a test visited About (none does today). Found while checking the phone layout.
  • Not verified: a Nix build, and the full Rust suites (only headers changed there).
Ianitor moves from MPL-2.0 to **CPAL-1.0** (Common Public Attribution License 1.0). This is Mark's decision of 2026-11-23 for every public Domi repository, following the licence kit `F:\Akce\domi-licence\README.md`. ## What changed - **LICENSE** is `LICENSE.template` (sha256 `8035b912…021f1`, checked) with only `{ORIGINAL_CODE}` replaced by `Ianitor`. UTF-8, LF. - **Headers:** every MPL header (166 files) is now a CPAL notice in the file's own comment style: `SPDX-License-Identifier: CPAL-1.0` / `Copyright (c) 2026 Marek Novák. Part of Ianitor, under the Common Public Attribution License 1.0: see LICENSE (its Exhibit A is this file's notice).` The SPDX lines in `.githooks` and `deploy/test-access.sh` say CPAL-1.0 too. No file in the repo is someone else's work, so nothing keeps another licence. - **Identifiers:** - `Cargo.toml` (the crates inherit it) and the fuzz crate: `license = "CPAL-1.0"`. - The three `package.json`: `"license": "CPAL-1.0"`. - Nix: `meta.license = lib.licenses.cpal10`. - The OpenAPI document's licence (`name` and `identifier`). - **Earlier versions:** README says Ianitor 0.2.0 and earlier stay available under MPL-2.0 to those who received them; from this change on, the code is CPAL-1.0. Settings, About says the same. - **The credit (CPAL §14, and §15 for network use):** - Text: **Built on Domi** · Copyright (c) 2026 Marek Novák · https://aula.marek-novak.cz. - Where: on every screen of the web UI (the sidebar footer, or the foot of the page on a phone) and in Settings, About. - Source: one constant, `apps/web/src/lib/credit.ts`. The README shows the same credit. - **Docs:** README, CLAUDE.md, ROADMAP decision 9 (with the date), support.md, the launch drafts and the UI hand-off. ## Tests - vitest 22 passed (one new: the e2e real-data check leaves out exactly the credit and nothing else). - svelte-check clean. - Playwright `web` 6/6 and `aula` 5/5, with the real-data check on every page. - In WSL: `cargo check -p ianitor-control --tests` passes, and control's API tests pass 5/5 (they serve the OpenAPI document). ## Adversarial self-review - **Did a header change touch code?** Every rewrite replaced exactly the three MPL lines, found by their text, keeping each line's comment prefix and suffix (`//`, `#`, `<!-- … -->` with ` - `, `/* … */`). 166 matched, none were left half-done, and shebangs stay on line 1. The Rust compiles, and the web check and tests pass. - **Is the credit enough for §14?** §14 asks for the Attribution Information on the interface a user reaches the code through, at each launch or session. The sidebar shows it on every desktop screen; on a phone there is no sidebar, so it sits at the foot of each page, above the tab bar (checked at 390×844 with a temporary spec). - **The real-data check.** The e2e suite refuses real-looking names. The credit is real on purpose, so `realLooking` removes exactly the credit's URL and notice before it checks. A test proves that other mentions of the same names are still caught. - **The OpenAPI `identifier` field** exists from utoipa 5 (Cargo.lock: 5.5.0). It compiles and the document is served (API tests). - **The Nix licence name** `lib.licenses.cpal10` is defined on nixpkgs `nixos-26.05`, the flake's channel (`lib/licenses/licenses.nix`: `spdxId = "CPAL-1.0"`, not marked unfree). It was not evaluated with Nix here. - **The release pin.** The release refuses a pin whose source differs from the tag's, so this change needs a new pin when the next version is tagged. That is the usual release step. - **PR 14 (@domi/ui) will conflict** on the headers it touches. It is on hold until @domi/ui v1.0.3 anyway; it will be rebased on this change. - **Already on main, not from this change:** the About tab's "Source on Gitea" link is a real address, so the e2e real-data check would flag it if a test visited About (none does today). Found while checking the phone layout. - **Not verified:** a Nix build, and the full Rust suites (only headers changed there).
mnovak added 3 commits 2026-11-23 00:20:09 +01:00
mnovak manually merged commit 0934bb3419 into main 2026-11-23 00:22:45 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/ianitor#15