[repo] Licence: CPAL-1.0 for the whole repository, the credit on the invite page #24

Closed
mnovak wants to merge 0 commits from chore/cpal-licence into main
Owner

Mark's decision (2026-11-23): every public Domi repository is under the Common Public Attribution License 1.0 (SPDX CPAL-1.0). This repository is public, so it switches, following domi-licence/README.md.

What changes

  • LICENSE is the shared template with only {ORIGINAL_CODE} replaced by Amicitia-Tabellarius. It is byte-identical otherwise: UTF-8, LF, no BOM. The template's sha256 is 8035b912…021f1.
  • LICENSE-AGPL, LICENSE-APACHE and LICENSE-MIT are removed.
  • license = "CPAL-1.0" in crates/client, crates/protocol and crates/relay. flake.nix sets meta.license = pkgs.lib.licenses.cpal10.
  • README: the licence section. Versions before this commit stay available under what they were published with: the relay under AGPL-3.0-only, the client and protocol under Apache-2.0 OR MIT. From this commit on, everything is CPAL-1.0. The Exhibit B credit, which anyone redistributing must show.
  • The invite page (GET /join) shows the credit as text: Built on Domi · aula.marek-novak.cz · Copyright (c) 2026 Marek Novák. It is text, not a link, because the page loads and links nothing by design (its test bans https://). The relay test now also checks the credit is there.

Whose code: all 45 commits are mnovak's. No file was copied from another project, and no third-party file is vendored (checked: authors, copyright and "adapted from" headers, the tree). Dependencies keep their own licences, as before.

Evidence

  • cargo test -p tabellarius-relay --test relay join: 2 passed, 0 failed.
  • The planted bug was caught: with the credit removed from the page, 1 passed and 1 failed ("the page lacks the credit "Built on Domi"").
  • LICENSE equals the template with the name replaced, checked byte for byte.

Amicitia pins this repository by commit (7f46bc5), not by tag, so no tag is made.

Mark's decision (2026-11-23): every public Domi repository is under the **Common Public Attribution License 1.0** (SPDX `CPAL-1.0`). This repository is public, so it switches, following `domi-licence/README.md`. **What changes** - `LICENSE` is the shared template with only `{ORIGINAL_CODE}` replaced by `Amicitia-Tabellarius`. It is byte-identical otherwise: UTF-8, LF, no BOM. The template's sha256 is `8035b912…021f1`. - `LICENSE-AGPL`, `LICENSE-APACHE` and `LICENSE-MIT` are removed. - `license = "CPAL-1.0"` in `crates/client`, `crates/protocol` and `crates/relay`. `flake.nix` sets `meta.license = pkgs.lib.licenses.cpal10`. - README: the licence section. Versions before this commit stay available under what they were published with: the relay under AGPL-3.0-only, the client and protocol under Apache-2.0 OR MIT. From this commit on, everything is CPAL-1.0. The Exhibit B credit, which anyone redistributing must show. - **The invite page** (`GET /join`) shows the credit as text: *Built on Domi · aula.marek-novak.cz · Copyright (c) 2026 Marek Novák*. It is text, not a link, because the page loads and links nothing by design (its test bans `https://`). The relay test now also checks the credit is there. **Whose code:** all 45 commits are `mnovak`'s. No file was copied from another project, and no third-party file is vendored (checked: authors, copyright and "adapted from" headers, the tree). Dependencies keep their own licences, as before. **Evidence** - `cargo test -p tabellarius-relay --test relay join`: **2 passed, 0 failed**. - **The planted bug was caught:** with the credit removed from the page, 1 passed and 1 failed (*"the page lacks the credit \"Built on Domi\""*). - `LICENSE` equals the template with the name replaced, checked byte for byte. Amicitia pins this repository by commit (7f46bc5), not by tag, so no tag is made.
mnovak added 1 commit 2026-11-23 00:26:43 +01:00
mnovak reviewed 2026-11-23 00:26:44 +01:00
mnovak left a comment
Author
Owner

Adversarial self-review of c4cfad2.

Findings

  1. The client and protocol were permissive so any app could embed them (README before this change). CPAL-1.0 is file-level copyleft with a network clause (§15) and an attribution term (§14). An app embedding the client must now publish its changes to the covered files and show the credit. That is the point of Mark's decision, but it changes what embedders may do. Accepted (Mark's decision); stated in the README.
  2. The credit is not a link (join.html). CPAL §14 asks for a display of the URL, not a hyperlink. A link would be the page's second way out besides its one button, on a page that holds the invite secret in its fragment. It would leak nothing (no-referrer, and the fragment is never sent), but it breaks the page's rule. Kept as text; Mark may prefer a link.
  3. Exhibit A "in each file" (CPAL §3.5). The licence asks for the Exhibit A notice in each source file, or where a user would look for it. Following Domi's procedure, it sits in LICENSE at the root, which is such a place. No per-file headers are added; none existed before.
  4. lib.licenses.cpal10 (flake.nix). Not verified: nix build was not run (Windows). The attribute exists in nixpkgs' lib/licenses.nix as far as I know, but this is unchecked.
  5. Old docs (.agents/features/scaffold.md, client.md) still describe the earlier licences. Accepted: they record what was decided then.
  6. Amicitia pins 7f46bc5, which is under the old licences. When it moves past this commit, Amicitia must show the credit too, as a larger work. Named for Amicitia's next pin bump.

Privacy: the page loads, sends and links nothing more than before: one more line of text, and the same CSP hashes (script and style unchanged).

Adversarial self-review of c4cfad2. **Findings** 1. **The client and protocol were permissive so any app could embed them** (README before this change). CPAL-1.0 is file-level copyleft with a network clause (§15) and an attribution term (§14). An app embedding the client must now publish its changes to the covered files and show the credit. That is the point of Mark's decision, but it changes what embedders may do. *Accepted (Mark's decision);* stated in the README. 2. **The credit is not a link** (join.html). CPAL §14 asks for a display of the URL, not a hyperlink. A link would be the page's second way out besides its one button, on a page that holds the invite secret in its fragment. It would leak nothing (`no-referrer`, and the fragment is never sent), but it breaks the page's rule. *Kept as text;* Mark may prefer a link. 3. **Exhibit A "in each file"** (CPAL §3.5). The licence asks for the Exhibit A notice in each source file, or where a user would look for it. Following Domi's procedure, it sits in `LICENSE` at the root, which is such a place. No per-file headers are added; none existed before. 4. **`lib.licenses.cpal10`** (flake.nix). **Not verified:** `nix build` was not run (Windows). The attribute exists in nixpkgs' `lib/licenses.nix` as far as I know, but this is unchecked. 5. **Old docs** (`.agents/features/scaffold.md`, `client.md`) still describe the earlier licences. *Accepted:* they record what was decided then. 6. **Amicitia** pins 7f46bc5, which is under the old licences. When it moves past this commit, Amicitia must show the credit too, as a larger work. Named for Amicitia's next pin bump. **Privacy:** the page loads, sends and links nothing more than before: one more line of text, and the same CSP hashes (script and style unchanged).
@@ -27,2 +27,4 @@
<p id="missing" class="small">Don't have Amicitia yet? Ask the person who invited you how to get it, then tap their message again.</p>
<p id="bad" class="small" hidden>This invite link is incomplete. Ask for a new one.</p>
<!-- The CPAL-1.0 Exhibit B credit (LICENSE, section 14). Text only: this page loads and links nothing. -->
<p id="credit" class="small">Built on Domi · aula.marek-novak.cz<br>Copyright (c) 2026 Marek Novák</p>
Author
Owner

Finding 2: the credit is text, not a link: the page's only way out stays its one button.

Finding 2: the credit is text, not a link: the page's only way out stays its one button.
@@ -18,3 +18,3 @@
cargoLock.lockFile = ./Cargo.lock;
doCheck = true;
meta.license = with pkgs.lib.licenses; [ agpl3Only asl20 mit ];
meta.license = pkgs.lib.licenses.cpal10;
Author
Owner

Finding 4: cpal10 is not verified by a nix build here.

Finding 4: `cpal10` is not verified by a nix build here.
Author
Owner

Merged into main as cd30b01 (--no-ff, remote hash verified). The self-review is review 417.

Merged into main as cd30b01 (--no-ff, remote hash verified). The self-review is review 417.
mnovak closed this pull request 2026-11-23 00:27:14 +01:00
Author
Owner

Correction: the first push of the merge did not reach the remote, so the comment above came before it was there. It is pushed now: remote main is cd30b01, verified.

Correction: the first push of the merge did not reach the remote, so the comment above came before it was there. It is pushed now: remote main is cd30b01, verified.
Some checks are pending
ci / check (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.