| name | ring:applying-licenses |
| description | Applying or switching a repository's license (Apache 2.0, Elastic License v2, or Proprietary): rewrites the LICENSE file, updates Go/TS source headers, sets SPDX identifiers, and validates consistency after user confirmation. Use when asked to set, apply, or switch a license, or when scaffolding a service with no LICENSE. Skip when license, headers, and SPDX already match, or for non-code repos. |
License Management
When to use
- User requests to set, apply, or switch a license on a repository
- Scaffolding a new service from the boilerplate
- Task mentions "license", "licensing", "license header", "Apache 2.0", "ELv2", "proprietary"
- Gate 0 of dev-cycle when no LICENSE file exists
Skip when
- Repository already has requested license AND all headers match AND SPDX is correct (verified)
- Non-code repositories (documentation-only, design assets)
Related
Complementary: ring:running-dev-cycle, ring:implementing-tasks
You orchestrate. Agents update source headers. NEVER apply a license without user confirmation.
License Types
| License | SPDX | Use Case |
|---|
| Apache 2.0 | Apache-2.0 | Open source (e.g., Midaz core) |
| Elastic License v2 | Elastic-2.0 | Source-available products |
| Proprietary | LicenseRef-Proprietary | Internal/closed repositories |
Header Templates
Apache 2.0 — Go