Skip to content

docs(license): restrict commercial monetization and require source attribution - #1575

Merged
NanmiCoder merged 3 commits into
mainfrom
docs/community-source-license
Oct 15, 2026
Merged

NanmiCoder merged 3 commits into
mainfrom
docs/community-source-license

Conversation

@NanmiCoder

@NanmiCoder NanmiCoder commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

将根目录许可改为自定义 cc-haha Community Source License 1.0:允许个人非商业用途及企业内部自用(内部部署、内部工具、内部需要的修改)。使用 cc-haha 接单、承接付费委托、开发对外商业销售或许可的软件和其他成果、收费定制或二次开发、商业集成或再分发、付费托管或服务,均须事先取得书面商业授权,不以是否与 cc-haha 竞争为条件,即使商业交付物不包含 cc-haha 源码也适用。二次分发须显著保留 cc-haha 来源署名,修改版须说明非官方身份和实质性修改。

  • 更新 LICENSE,新增 NOTICE 和中英双语 LICENSING.md;同步双语 README 的许可徽章、定位及贡献指南;许可说明放在双语 README 文末。
  • 原 MIT 全文逐字保存为 LICENSE-MIT-legacy。旧 MIT 授权、第三方许可和既有贡献者权利继续有效;不会追溯撤销旧授权。
  • 此 PR 没有新增业务代码,不能阻止别人继续按 MIT 使用、修改、分发或商用历史代码。新增限制主要覆盖未来由有权授权者仅按新许可发布的新增内容。

Event record

提交正文保留以下有公开证据的事件:GoDiao/dreamcoder 使用了 cc-haha 的代码,最初遗漏原 MIT 版权声明;作者已在 issue #71 承认。对方已在合并的 PR #72 补充许可及致谢,并通过 PR #73 明确基于 cc-haha v0.3.1 及继承的功能。记录包含后续修复,不声称对方当前仍缺少署名。

Feature Quality Contract

  • Changed surface: docs / license only; 7 files, no executable production changes.
  • Tests added or updated: none; no production behavior changed. Existing policy and documentation suites ran.
  • Coverage evidence: executable changed-line coverage not applicable; coverage lane skipped by impact selector.
  • E2E / live-model evidence: not run; no UI, runtime, provider, or cross-process behavior changed, no live quota used.
  • Known risk / rollback: 自定义许可文本尚未经律师审核;内部自用与商业盈利的边界及条款可执行性需法律审核后决定合入。本 PR 不发布或更新安装包;后续发布需随包携带许可及通知并核查可见署名。回退该提交只能恢复后续发布政策,不能撤回已经授出的许可。

Verification

  • bun run check:impact: docs only, unblocked; selected check:policy and check:docs.
  • bun run verify: 3 passed, 0 failed, 10 skipped. Policy: 420 passed, 0 failed. Docs build/check: passed; 31 tests passed, 0 failed.
  • git diff --check: passed; reviewed full final diff and clean source worktree.
  • Ad-hoc deterministic checks: historical MIT byte-identical to pre-change text; relative Markdown links resolve; README MIT badges replaced.
  • Same-area regression tests and changed-line coverage: not applicable, no production code changes.
  • Deterministic E2E, runtime, native, persistence and live-model checks: not required by impact selector / not run.

Quality report: artifacts/quality-runs/2026-10-15T06-13-02-156Z/report.md; JUnit: same directory junit.xml; lane logs: same directory logs/. Generated evidence is local and not committed.

Upstream synchronization

  • Target: NanmiCoder/cc-haha:main, fetched and rechecked at 755a18edb7e7519a12f5c7ee4265c9eb4f2ed508.
  • Source: 20adce114a8d63ed60c8f0dc21a516cc4ea50c66 (docs/community-source-license), directly based on that target. No text or overlapping business conflicts; validated content unchanged after commit.

Risk

  • No CLI core, production runtime, coverage-policy, quarantine-policy, or provider changes.
  • Existing MIT and third-party grants explicitly preserved; no blanket contributor copyright transfer or relicensing authority claimed.
  • This is source-available, not an OSI-approved open-source license; README wording discloses the distinction.

Adopt the cc-haha Community Source License 1.0 for covered future
additions, while allowing personal and internal business use. Require
separate permission for competing commercial offerings and visible
source attribution for redistributions. Preserve prior MIT grants,
third-party notices, and contributor rights; document the transition
in both READMEs, the licensing guide, and contribution instructions.

Record the motivation: GoDiao/dreamcoder reused cc-haha code and
initially omitted the original MIT copyright notice. Its maintainer
acknowledged the omission in issue #71. Attribution was restored in
merged PR #72, and PR #73 clarified the cc-haha v0.3.1 origin and
inherited features. This records the omission and subsequent repair,
not an assertion that the current repository still lacks attribution.

GoDiao/dreamcoder#71
GoDiao/dreamcoder#71 (comment)
GoDiao/dreamcoder#72
GoDiao/dreamcoder#73

Validation: bun run check:impact; bun run verify (3 passed, 0 failed,
10 skipped); git diff --check; byte-identical legacy MIT and local
Markdown link checks. No executable production code changed.
@github-actions

Copy link
Copy Markdown

PR quality triage

Changed areas: area:docs

CLI core policy: No CLI-core policy block detected.

Missing-test policy: No missing-test policy block detected.

Coverage baseline policy: No coverage-baseline policy block detected.

CLI core files:

  • none

Coverage policy files:

  • none

Required check plan:

  • See PR Quality / scope-plan; it is the single source of truth for selected jobs.

Test coverage signals:

  • No obvious missing-test signal from changed paths.

Risk notes:

  • No special risk notes from changed paths.

Hard merge gates come from the deterministic GitHub Actions contract lanes above.

…zation

Keep internal business operations and internal-only modifications permitted. Remove the paid-client-work and noncompeting-commercial-use exceptions. Require prior written permission for commissioned work, commercial deliverables, paid customization and secondary development, commercial redistribution, and paid services, regardless of competition with cc-haha. Align the bilingual guide, README footers, and NOTICE; preserve historical MIT rights.

Validation: bun run check:impact; bun run verify (3 passed, 0 failed, 10 skipped); git diff --check; unchanged legacy MIT and documentation consistency checks.
@NanmiCoder NanmiCoder changed the title docs(license): restrict commercial forks and require source attribution docs(license): restrict commercial monetization and require source attribution Oct 15, 2026
@NanmiCoder
NanmiCoder merged commit 2447370 into main Oct 15, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant