002: License Selection¶
- Type: Strategy
- Status: Accepted
- Date: 2026-12-02
- Author(s) / Deciders: João V. Farias
- Question: Under what license terms are the source code, documentation, and build outputs governed?
Context¶
Software published without a license defaults to all rights reserved, which stops third parties from modifying or redistributing it lawfully. Because winesmith orchestrates compilers, writes temporary .cmd wrappers, generates winesmith.lock, and emits Nushell completion scripts, users need assurance that compiling commercial or permissively licensed projects with winesmith does not place their build outputs under copyleft.
Requirements and restrictions¶
Three licensing constraints govern source code, third-party crates, and generated outputs:
- Modifications to
winesmithitself, including modified copies operated over a network build service, MUST remain available under strong copyleft terms. - Compiling, testing, or packaging software with
winesmithMUST NOT apply AGPL-3.0 obligations to user source repositories, compiled Windows binaries, installers, lockfiles,.cmdwrappers, or generated shell completions. - All Rust crate dependencies MUST use licenses compatible with
AGPL-3.0-or-later, such asMIT,Apache-2.0,BSD,ISC, orMPL-2.0.
Alternatives¶
Three licensing models were compared before selecting the repository license:
- Permissive licenses (
MITorApache-2.0) keep adoption simple while letting third parties embed modified versions in closed-source commercial platforms without sharing fixes upstream. - Plain
GPL-3.0-or-laterenforces source disclosure for distributed binaries, though modified builds running solely behind hosted CI APIs do not trigger distribution clauses. - Plain
AGPL-3.0-or-laterwithout an additional permission closes the hosted-service gap, yet leaves users uncertain whether generated.cmdwrappers, lockfiles, or compiled outputs might fall under Section 5.
Decision¶
Distribute winesmith under AGPL-3.0-or-later in LICENSE, paired with an explicit Compilation Output Exception in COPYING.EXCEPTION granted under Section 7 of GNU AGPLv3 and modeled after the GCC Runtime Library Exception and GNU Bison Exception.
That combination establishes three legal rules:
- Running
winesmithto compile, test, or package any project imposes no AGPL-3.0 terms on that project's source files, binaries, libraries, or installers. - Artifacts emitted by
winesmithduring normal operation (temporary.cmdscripts,winesmith.lock,winesmith-state.json, and output fromwinesmith completions nu) MAY be used, edited, and distributed under any license. - Changes to
winesmithsource code, recipes, or hosted wrappers around modified builds remain governed byAGPL-3.0-or-later.
Documentation under documentation/ carries the same license unless a file states otherwise.
Consequences¶
Positives¶
Developers building either open-source or proprietary Windows software can adopt winesmith without copyleft spillover onto compiled artifacts. Upstream fixes made to winesmith and hosted modifications remain open to the community.
Negatives¶
Contributors must accept AGPL-3.0-or-later with the Section 7 output exception, so any future re-licensing would require agreement from all copyright holders. Corporate legal reviewers unfamiliar with GCC-style Section 7 exceptions may spend extra time reviewing COPYING.EXCEPTION compared to an MIT codebase.