Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

docs(legal): activate CLA — approved ICLA + CCLA, re-enable bot (CHOO-1253) (#251)

Louis Amaudruz3416620f2c0e
diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml
index 3423a707c..0ef166205 100644
--- a/.github/workflows/cla.yml
+++ b/.github/workflows/cla.yml
@@ -1,16 +1,10 @@
name: CLA Assistant
-# CLA enforcement is temporarily disabled pending official SandboxAQ Legal
-# approval of the CLA (CHOO-1253). While disabled, this workflow runs only on
-# manual dispatch and never gates pull requests. To re-enable, restore the
-# issue_comment and pull_request_target triggers below (and restore CLA.md):
-#
-# issue_comment:
-# types: [created]
-# pull_request_target:
-# types: [opened, synchronize]
on:
- workflow_dispatch:
+ issue_comment:
+ types: [created]
+ pull_request_target:
+ types: [opened, synchronize]
permissions:
actions: write
@@ -54,5 +48,16 @@ jobs:
Thank you for your contribution! Before we can merge it, please read
our [Contributor License Agreement](https://github.com/sandbox-quantum/switch/blob/main/CLA.md)
and sign it by posting the following comment on this pull request:
+
+
+ ---
+
+ **Contributing on behalf of a company?** Your employer can sign the
+ [Corporate CLA](https://github.com/sandbox-quantum/switch/blob/main/CCLA.pdf)
+ instead: complete the PDF with your authorized GitHub usernames, have
+ an authorized representative sign it, and email it to
+ [email protected]. Once we record it, your contributions are
+ recognized as covered — see
+ [CONTRIBUTING.md](https://github.com/sandbox-quantum/switch/blob/main/CONTRIBUTING.md#corporate-contributors).
custom-pr-sign-comment: I have read the CLA Document and I hereby sign the CLA
custom-allsigned-prcomment: All contributors have signed the CLA. ✅
diff --git a/CCLA.pdf b/CCLA.pdf
new file mode 100644
index 000000000..f14ec6486
Binary files /dev/null and b/CCLA.pdf differ
diff --git a/CLA.md b/CLA.md
new file mode 100644
index 000000000..3cbc60800
--- /dev/null
+++ b/CLA.md
@@ -0,0 +1,139 @@
+# Contributor License Agreement
+
+Thank you for your interest in contributing to Agent Switch, a project of
+SB Technology, Inc. dba SandboxAQ (the "Company"). This Contributor License
+Agreement ("Agreement") documents the rights granted by contributors to the
+Company. This Agreement is for your protection as a Contributor as well as the
+protection of the Company; it does not change your rights to use your own
+Contributions for any other purpose.
+
+By signing this Agreement (see "How to sign" below), you accept and agree to
+the following terms and conditions for your present and future Contributions
+submitted to the Company. Except for the license granted herein to the Company
+and recipients of software distributed by the Company, you reserve all right,
+title, and interest in and to your Contributions.
+
+## 1. Definitions
+
+"You" (or "Your") means the copyright owner or legal entity authorized by the
+copyright owner that is entering into this Agreement with the Company.
+
+"Contribution" means any original work of authorship, including any
+modifications or additions to an existing work, that is intentionally submitted
+by You to the Company for inclusion in, or documentation of, any of the products
+owned or managed by the Company (the "Work"). For the purposes of this
+definition, "submitted" means any form of electronic, verbal, or written
+communication sent to the Company or its representatives, including but not
+limited to communication on electronic mailing lists, source code control
+systems, and issue tracking systems that are managed by, or on behalf of, the
+Company for the purpose of discussing and improving the Work, but excluding
+communication that is conspicuously marked or otherwise designated in writing by
+You as "Not a Contribution."
+
+## 2. Grant of Copyright License
+
+Subject to the terms and conditions of this Agreement, You hereby grant to the
+Company and to recipients of software distributed by the Company a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license
+to reproduce, prepare derivative works of, publicly display, publicly perform,
+sublicense, and distribute Your Contributions and such derivative works.
+
+## 3. Grant of Patent License
+
+Subject to the terms and conditions of this Agreement, You hereby grant to the
+Company and to recipients of software distributed by the Company a perpetual,
+worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated
+in this section) patent license to make, have made, use, offer to sell, sell,
+import, and otherwise transfer the Work, where such license applies only to
+those patent claims licensable by You that are necessarily infringed by Your
+Contribution(s) alone or by combination of Your Contribution(s) with the Work to
+which such Contribution(s) was submitted. If any entity institutes patent
+litigation against You or any other entity (including a cross-claim or
+counterclaim in a lawsuit) alleging that Your Contribution, or the Work to which
+You have contributed, constitutes direct or contributory patent infringement,
+then any patent licenses granted to that entity under this Agreement for that
+Contribution or Work shall terminate as of the date such litigation is filed.
+
+## 4. Representations
+
+You represent that You are legally entitled to grant the above license. If Your
+employer(s) has rights to intellectual property that You create that includes
+Your Contributions, You represent that You have received permission to make
+Contributions on behalf of that employer, that Your employer has waived such
+rights for Your Contributions to the Company, or that Your employer has executed
+a separate Corporate CLA with the Company.
+
+You represent that each of Your Contributions is Your original creation (see
+Section 6 for submissions on behalf of others). You represent that Your
+Contribution submissions include complete details of any third-party license or
+other restriction (including, but not limited to, related patents and
+trademarks) of which You are personally aware and which are associated with any
+part of Your Contributions.
+
+## 5. Disclaimer
+
+You are not expected to provide support for Your Contributions, except to the
+extent You desire to provide support. You may provide support for free, for a
+fee, or not at all. Unless required by applicable law or agreed to in writing,
+You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied, including, without
+limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT,
+MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
+
+## 6. Submissions on Behalf of Others
+
+Should You wish to submit work that is not Your original creation, You may submit
+it to the Company separately from any Contribution, identifying the complete
+details of its source and of any license or other restriction (including, but
+not limited to, related patents, trademarks, and license agreements) of which
+You are personally aware, and conspicuously marking the work as "Submitted on
+behalf of a third-party: [named here]".
+
+## 7. Notice
+
+You agree to notify the Company of any facts or circumstances of which You become
+aware that would make these representations inaccurate in any respect.
+
+## 8. Governing Law; Venue
+
+This Agreement is governed by, and construed in accordance with, the laws of the
+State of New York, without regard to its conflict-of-laws principles. The parties
+consent to the exclusive jurisdiction and venue of the state and federal courts
+located in New York County, New York, for any dispute arising out of or relating
+to this Agreement.
+
+## 9. Entire Agreement; Amendment
+
+This Agreement is the entire agreement between the parties concerning Your
+Contributions and supersedes any prior or contemporaneous understanding on that
+subject. This Agreement may be amended only by a writing signed by both parties.
+
+## 10. Severability
+
+If any provision of this Agreement is held to be unenforceable, the remaining
+provisions will remain in full force and effect, and the unenforceable provision
+will be modified to the minimum extent necessary to make it enforceable while
+preserving the parties' intent.
+
+## 11. Counterparts; Electronic Acceptance
+
+This Agreement may be accepted electronically, including through the Company's
+CLA assistant as described under "How to sign," and may be executed in
+counterparts, each of which is deemed an original and all of which together
+constitute one and the same agreement.
+
+## How to sign
+
+This project uses an automated CLA assistant. When you open your first pull
+request, a bot will comment with a link to this document and ask you to confirm
+your agreement. Reply to that pull request with the exact sentence:
+
+> I have read the CLA Document and I hereby sign the CLA
+
+Your GitHub username, the pull request, and a timestamp are recorded in
+`signatures/version1/cla.json`. You only need to sign once; subsequent
+contributions are recognized automatically.
+
+If you are contributing on behalf of a company, your employer may instead sign
+the Corporate CLA. See [`CCLA.pdf`](CCLA.pdf) and the "Corporate contributors"
+section of [`CONTRIBUTING.md`](CONTRIBUTING.md).
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0fb623725..c21c42394 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -7,29 +7,42 @@ Participation is governed by our [Code of Conduct](CODE_OF_CONDUCT.md). To
report a security vulnerability, follow [SECURITY.md](SECURITY.md) rather than
opening an issue.
-## Development setup
+## Contributor License Agreement (required)
-```bash
-uv sync # install dependencies
-just up # start Switch locally (Docker Compose)
-just migrate # apply database migrations
-```
+Every contributor must agree to a Contributor License Agreement before their
+contributions can be merged. There are two paths — individual and corporate.
-## Before you open a pull request
+### Individual contributors
-- **Format & lint:** `just check` (CI runs `ruff format --check` + `ruff check`).
-- **Type-check:** `just typecheck` (mypy over `core/switch_core/`).
-- **Test:** `just test` (pytest; store tests run against a real PostgreSQL
- instance, not mocks or SQLite).
+Agent Switch requires every contributor to sign the
+[Contributor License Agreement](CLA.md). This is a one-time step handled
+automatically:
-## Conventions
+1. Open your pull request as usual.
+2. An automated CLA assistant comments on the PR with a link to the CLA and a
+ status check.
+3. Reply to the PR with the exact sentence:
-Code style, import rules, and the error-handling philosophy ("fail loud, never
-fake") are documented in [CLAUDE.md](CLAUDE.md). That file is written as
-instructions for AI coding agents working in this repository, but the
-conventions it describes are the ones the project follows, so it is worth
-reading before making substantial changes — matching the surrounding code keeps
-review fast.
+ > I have read the CLA Document and I hereby sign the CLA
+
+Your signature is recorded automatically and applies to all future
+contributions — you only sign once.
+
+### Corporate contributors
+
+If you contribute on behalf of a company, your employer can sign the Corporate
+CLA instead of each employee signing individually:
+
+1. Download the [Corporate CLA](CCLA.pdf) and complete it: the corporation's
+ details, the GitHub usernames of the employees authorized to contribute
+ (Schedule A), and a signature from a person authorized to bind the company.
+2. Email the completed, signed PDF to **[email protected]**.
+3. Once we record it, we add those GitHub usernames to the project's approved
+ contributor list, so their contributions are recognized as covered — they do
+ not each need to sign the individual CLA.
+
+To add or remove authorized contributors later, the company emails an updated,
+signed copy to the same address.
## License