Skip to content

doc(id): licensing policy — ToS grant, account defaults, admin policies (#5984) - #8402

Merged
dezren39 merged 2 commits into
mainfrom
queue/14805-5984-licensing-policy
Nov 11, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/14805-5984-licensing-policy

Conversation

@dezren39

@dezren39 dezren39 commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Design doc for #5984, following the merged #5977 sibling (doc/2026-11-10_design_id5977_license_taxonomy.md).

Covers the full acceptance set from the task 10353 triage:

  • ToS grant clauses (§2): scope (store/distribute/compile/cache), the federation sublicense question (decided: yes, bounded), revocability (prospective only), composition with uploader deletion.
  • Account-default agreement (§3): code MIT/Apache-2.0 pick; non-code CC0 / no-attribution CC; per-upload override; pre-agreement uploads quarantined from new public distribution, never retroactively granted.
  • Admin policy language (§4): allowlist / denylist / ladder-ceiling per content kind and principal group, KDL-expressible in the id: research/design: fork a Rust KDL stack for ID — universal + multiple annotations, upstream archaeology, fork-base selection (extends #5688) #5753 server config — with all four example policies from the issue expressed (§4.4).
  • Shipped defaults (§5): MPL ceiling per the taxonomy, NC refused on our servers, unlicensed only under the ToS grant + per-artifact ownership attestation.
  • CC-NC risk treatment (§6): the sharp case (non-holder upload of SA-NC content to a commercial server) — uploader bears the risk via attestation/indemnity; the server refuses NC for public distribution, holds on late classification, notice-and-takedown on complaint; attestation-plus-acceptance for NC is explicitly rejected.
  • Uploads-regime GPL (§7): presented as the open Drew decision it is (C1 ruling, comment 6650953359) — three options with ramifications and a recommendation (provisional warn-and-allow under admin control). The adoption regime is named closed and is not revisited.
  • Consistent with the id: design: license taxonomy & classifier — allowed set, copyleft warning ladder, public domain vs CC0, MIT/BSD variants #5977 taxonomy throughout: same license set, ladder levels, and SPDX-expression tag format.

This doc does not close #5984: the §7 decision is Drew's. The issue stays open for it.

Queue: task 14805, lane code-w.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 11, 2026 01:40
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a4e492ce-c1f2-46d8-89d1-c5e84f67a3e9
Commits

Reviewing files that changed from the base of the PR and between 10d1088 and df8b97e.

Files selected for processing: 1

  • doc/2026-11-11_design_id5984_licensing_policy.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T01:48:49.977752Z df8b97e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 32e510e8e2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

1. **Admission test for (artifact, kind, principal):** collect the policies whose kind scope matches the artifact's kind and whose principal scope contains the uploader. Evaluate in order: a matching **deny** refuses; else a matching **allow** admits (allows are exceptions *within* a ceiling — an allow names entries the ceiling would otherwise refuse); else the **ceiling** decides (level ≤ ceiling admits); a server whose matched policy has an allowlist admits only its entries (the allowlist replaces the ceiling test for that scope).
2. **Principal-group exceptions are first-class**, per the issue's requirement — they are the same primitives with a narrower `principals=` scope, not an afterthought bolted onto a global policy.
3. **Refusals are explained**: the upload response names the rule that refused (policy scope, primitive, and the artifact's classified level/family) — an unexplained license refusal is a support ticket, an explained one is the policy working.
4. **Unclassified artifacts** (`LicenseRef-Unknown`, #5977 §2.6) fail the ceiling test above level 0 by construction and are refused for public distribution until classified — detection (#6008) is expected to shrink this set; a human admin override is itself a policy rule (an `allow` for a named principal), so overrides are auditable in the same language.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Explicitly refuse unknown licenses before evaluating the ceiling

With the shipped ceiling of 2, LicenseRef-Unknown passes the admission test in §4.3(1): the referenced taxonomy assigns it warning (level 2) in §2.6 and §3. It therefore does not fail the ceiling test “by construction,” and an implementation following these semantics would publicly admit unidentified licenses despite this section requiring refusal. Specify an explicit unknown-license gate, with the documented admin override, rather than relying on its ladder level.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in df8b97e — correct, the ladder arithmetic did not do what §4.3(4) claimed: LicenseRef-Unknown sits at level 2 and the shipped ceiling is 2. §4.3 now opens with an explicit unknown gate (new step 1): unknown-classified artifacts are refused for public distribution before any ceiling test, and the only way past is an explicit allow "LicenseRef-Unknown" in a matching policy, after which the rest of the test applies normally.

Comment on lines +180 to +182
ceiling 4 // everything else is admissible
deny family="strong-copyleft" // GPL-2, GPL-3, LGPL…
deny family="network-copyleft" // AGPL, SSPL

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include LGPL entries in the no-GPL policy

For an LGPL upload, neither deny matches: the consumed taxonomy classifies every LGPL entry as weak-copyleft, not strong-copyleft (§2.3 of doc/2026-11-10_design_id5977_license_taxonomy.md). The example's ceiling of 4 consequently admits LGPL, contrary to its stated “Nothing that has GPL in the name” requirement and the inline comment. Add explicit LGPL entry denies or another selector that covers LGPL without also rejecting MPL.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in df8b97e — correct: the taxonomy files LGPL under weak-copyleft (its §2.3), so neither family deny caught it and the ceiling of 4 admitted it. Policy 3 now carries an explicit deny line naming all four LGPL entry ids (LGPL-2.1-only/-or-later, LGPL-3.0-only/-or-later) — the whole LGPL population of the enumerated set — with a note on why a weak-copyleft family deny would be wrong here (it would also refuse MPL/EPL, which this admin never named).


### 4.3 Evaluation semantics

1. **Admission test for (artifact, kind, principal):** collect the policies whose kind scope matches the artifact's kind and whose principal scope contains the uploader. Evaluate in order: a matching **deny** refuses; else a matching **allow** admits (allows are exceptions *within* a ceiling — an allow names entries the ceiling would otherwise refuse); else the **ceiling** decides (level ≤ ceiling admits); a server whose matched policy has an allowlist admits only its entries (the allowlist replaces the ceiling test for that scope).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Define how narrower policies override a matching allowlist

For a worldsmith or admin uploading Apache-2.0 or MPL code under Policy 4, both the global MIT/CC0 allowlist and the group-specific ceiling match. This evaluation rule says a matching allowlist replaces the ceiling test and admits only its entries, so the promised group exception cannot admit that code. Define scope precedence or explicit override semantics so the narrower ceiling can relax the global allowlist while non-code and other principals remain restricted.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in df8b97e — correct: as written, the global allowlist and the group ceiling both matched and the allowlist's "replaces the ceiling test" rule silently killed the exception. §4.3 now defines scope precedence (new step 2): the narrowest matching policy decides alone (principal-named beats all, kind-named beats all), and broader policies do not also apply — which is precisely what lets the group policy relax the global allowlist for its members' code while non-code from the same groups stays under the allowlist. §4.4 policy 4's prose now walks that case. (Relatedly, step 0 makes top-level denies hard constraints no scoped allow can override — the tier the shipped NC deny now sits at, per §5.)

@dezren39
dezren39 merged commit 92cf71b into main Nov 11, 2026
1 of 6 checks passed
@dezren39
dezren39 deleted the queue/14805-5984-licensing-policy branch November 11, 2026 01:46

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: df8b97edbb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


### 6.1 Identify and allow to exist

NC work is not contraband. The classifier identifies it (#5977 §2.5: `noncommercial` trait, flagged *differently* from copyleft because the restriction is on field of use, not derivatives), and NC artifacts may exist in private storage and on any server whose policy admits them — self-hosting stance: an admin running a genuinely non-commercial community server may allow NC with a one-line removal of the shipped deny. What *our* servers do is a default, not a capability removal.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Document the ceiling change needed to admit NC uploads

For a self-hosted server using the shipped defaults, removing the NC deny alone still refuses every NC upload: §5 retains a ceiling of 2, while the consumed taxonomy assigns NC entries levels 3–4 (doc/2026-11-10_design_id5977_license_taxonomy.md, §§2.5–2.6). Under §4.3, those artifacts therefore fail the remaining ceiling test. Document the additional ceiling adjustment or explicit NC allow needed so an admin following this configuration guidance can actually enable NC distribution.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

id: design: licensing policy — server ToS uploader grant, account-creation defaults, admin license policies

1 participant