Skip to content

chore: add Apache 2.0 + CC-BY-SA 4.0 dual licensing#60

Open
brawlaphant wants to merge 2 commits intoregen-network:mainfrom
brawlaphant:pr/repo-license
Open

chore: add Apache 2.0 + CC-BY-SA 4.0 dual licensing#60
brawlaphant wants to merge 2 commits intoregen-network:mainfrom
brawlaphant:pr/repo-license

Conversation

@brawlaphant
Copy link
Copy Markdown
Contributor

Summary

  • Adds Apache License 2.0 (LICENSE) for all source code, scripts, schemas, and configuration files
  • Adds CC-BY-SA 4.0 (LICENSE-CC-BY-SA) for all documentation, specifications, and design documents
  • Adds LICENSE.md explaining the dual-license boundary with a clear directory/filetype mapping

Addresses Gregory's "No license set" open item.

License coverage

License Applies to
Apache 2.0 agents/, agent-002-governance-analyst/, scripts/, schemas/, simulations/, reference implementations (*.js), schemas (*.json), configs
CC-BY-SA 4.0 docs/, phase-1/ through phase-5/, mechanism specs (SPEC.md), all *.md documentation

Test plan

  • Verify GitHub recognizes the Apache 2.0 LICENSE file on the repo page
  • Review LICENSE.md for accurate directory/file coverage
  • Confirm contribution terms are clear

🤖 Generated with Claude Code

Code (agents, scripts, schemas, reference implementations) is Apache 2.0.
Documentation (specs, phase docs, design docs) is CC-BY-SA 4.0.
LICENSE.md explains the dual-license boundary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a comprehensive dual-licensing strategy for the repository, addressing a previously identified need for clear licensing terms. It systematically categorizes repository content into code-related assets, which are now covered by the Apache License 2.0, and documentation-related assets, which fall under the CC-BY-SA 4.0 license. This change provides explicit guidelines for intellectual property rights and contribution terms, enhancing legal clarity for all users and contributors.

Highlights

  • Dual Licensing Model: Implemented a dual-license model for the repository to clearly distinguish between code and documentation assets.
  • Apache License 2.0 for Code: Applied the Apache License 2.0 to all source code, scripts, schemas, and configuration files.
  • CC-BY-SA 4.0 for Documentation: Applied the Creative Commons Attribution-ShareAlike 4.0 International license to all documentation, specifications, and design documents.
  • License Explanation Document: Added a LICENSE.md file that explains the dual-license boundary, providing a clear mapping of directories and file types to their respective licenses.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a dual-licensing model for the repository, using Apache 2.0 for code and CC-BY-SA 4.0 for documentation. The LICENSE.md file outlines this model, specifying covered files and directories for each license. A review comment suggests clarifying the "When in doubt" rule in LICENSE.md to prevent mislicensing of non-Markdown documentation assets like diagrams, recommending a more explicit definition based on content purpose rather than just file extension.

LICENSE.md Outdated
Comment on lines +68 to +70
When in doubt, the file extension determines the license:
- Markdown (`.md`) files are CC-BY-SA 4.0
- All other files are Apache 2.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The "When in doubt" rule is a helpful simplification, but it could lead to incorrect licensing for documentation assets that are not in Markdown format. For example, diagrams (.svg, .png), design mockups, or other media included as part of the documentation would fall under "All other files" and be licensed as Apache 2.0. This contradicts the goal of licensing all documentation under CC-BY-SA 4.0.

To improve clarity and ensure all documentation assets are correctly licensed, I suggest expanding this rule to be more explicit about content types.

Here is a suggested replacement:

When in doubt, the file's purpose determines the license. As a general guideline:

- **Documentation and specifications** are licensed under **CC-BY-SA 4.0**. This includes but is not limited to Markdown files (`.md`), diagrams (`.svg`, `.png`, `.jpg`), and other media that are part of design documents.
- **Source code and configuration** are licensed under **Apache 2.0**. This covers the file types listed explicitly in the "Code" section above.

Replace the file-extension-based "When in doubt" rule with a
purpose-based rule so diagrams, images, and other non-Markdown
documentation assets (e.g. .svg architecture diagrams) are correctly
covered by CC-BY-SA 4.0 rather than defaulting to Apache 2.0.

Addresses gemini-code-assist review feedback on PR regen-network#60.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant