Metadata-Version: 2.4
Name: canopy-runtime
Version: 0.4.2
Summary: Canopy Cloud control plane and governance runtime for autonomous agents
Author: Canopy
License: Apache License
        Version 2.0, January 2004
        http://www.apache.org/licenses/
        
        TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
        
        1. Definitions.
        
        "License" shall mean the terms and conditions for use, reproduction,
        and distribution as defined by Sections 1 through 9 of this document.
        
        "Licensor" shall mean the copyright owner or entity authorized by
        the copyright owner that is granting the License.
        
        "Legal Entity" shall mean the union of the acting entity and all
        other entities that control, are controlled by, or are under common
        control with that entity. For the purposes of this definition,
        "control" means (i) the power, direct or indirect, to cause the
        direction or management of such entity, whether by contract or
        otherwise, or (ii) ownership of fifty percent (50%) or more of the
        outstanding shares, or (iii) beneficial ownership of such entity.
        
        "You" (or "Your") shall mean an individual or Legal Entity
        exercising permissions granted by this License.
        
        "Source" form shall mean the preferred form for making modifications,
        including but not limited to software source code, documentation
        source, and configuration files.
        
        "Object" form shall mean any form resulting from mechanical
        transformation or translation of a Source form, including but
        not limited to compiled object code, generated documentation,
        and conversions to other media types.
        
        "Work" shall mean the work of authorship, whether in Source or
        Object form, made available under the License, as indicated by a
        copyright notice that is included in or attached to the work
        (an example is provided in the Appendix below).
        
        "Derivative Works" shall mean any work, whether in Source or Object
        form, that is based on (or derived from) the Work and for which the
        editorial revisions, annotations, elaborations, or other modifications
        represent, as a whole, an original work of authorship. For the purposes
        of this License, Derivative Works shall not include works that remain
        separable from, or merely link (or bind by name) to the interfaces of,
        the Work and Derivative Works thereof.
        
        "Contribution" shall mean any work of authorship, including
        the original version of the Work and any modifications or additions
        to that Work or Derivative Works thereof, that is intentionally
        submitted to Licensor for inclusion in the Work by the copyright owner
        or by an individual or Legal Entity authorized to submit on behalf of
        the copyright owner. For the purposes of this definition, "submitted"
        means any form of electronic, verbal, or written communication sent
        to the Licensor 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
        Licensor for the purpose of discussing and improving the Work, but
        excluding communication that is conspicuously marked or otherwise
        designated in writing by the copyright owner as "Not a Contribution."
        
        "Contributor" shall mean Licensor and any individual or Legal Entity
        on behalf of whom a Contribution has been received by Licensor and
        subsequently incorporated within the Work.
        
        2. Grant of Copyright License. Subject to the terms and conditions of
        this License, each Contributor hereby grants to You 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 the
        Work and such Derivative Works in Source or Object form.
        
        3. Grant of Patent License. Subject to the terms and conditions of
        this License, each Contributor hereby grants to You 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 such Contributor that are necessarily infringed by their
        Contribution(s) alone or by combination of their Contribution(s)
        with the Work to which such Contribution(s) was submitted. If You
        institute patent litigation against any entity (including a
        cross-claim or counterclaim in a lawsuit) alleging that the Work
        or a Contribution incorporated within the Work constitutes direct
        or contributory patent infringement, then any patent licenses
        granted to You under this License for that Work shall terminate
        as of the date such litigation is filed.
        
        4. Redistribution. You may reproduce and distribute copies of the
        Work or Derivative Works thereof in any medium, with or without
        modifications, and in Source or Object form, provided that You
        meet the following conditions:
        
           (a) You must give any other recipients of the Work or
           Derivative Works a copy of this License; and
        
           (b) You must cause any modified files to carry prominent notices
           stating that You changed the files; and
        
           (c) You must retain, in the Source form of any Derivative Works
           that You distribute, all copyright, patent, trademark, and
           attribution notices from the Source form of the Work,
           excluding those notices that do not pertain to any part of
           the Derivative Works; and
        
           (d) If the Work includes a "NOTICE" text file as part of its
           distribution, then any Derivative Works that You distribute must
           include a readable copy of the attribution notices contained
           within such NOTICE file, excluding those notices that do not
           pertain to any part of the Derivative Works, in at least one
           of the following places: within a NOTICE text file distributed
           as part of the Derivative Works; within the Source form or
           documentation, if provided along with the Derivative Works; or,
           within a display generated by the Derivative Works, if and
           wherever such third-party notices normally appear. The contents
           of the NOTICE file are for informational purposes only and
           do not modify the License. You may add Your own attribution
           notices within Derivative Works that You distribute, alongside
           or as an addendum to the NOTICE text from the Work, provided
           that such additional attribution notices cannot be construed
           as modifying the License.
        
        You may add Your own copyright statement to Your modifications and
        may provide additional or different license terms and conditions
        for use, reproduction, or distribution of Your modifications, or
        for any such Derivative Works as a whole, provided Your use,
        reproduction, and distribution of the Work otherwise complies with
        the conditions stated in this License.
        
        5. Submission of Contributions. Unless You explicitly state otherwise,
        any Contribution intentionally submitted for inclusion in the Work
        by You to the Licensor shall be under the terms and conditions of
        this License, without any additional terms or conditions.
        Notwithstanding the above, nothing herein shall supersede or modify
        the terms of any separate license agreement you may have executed
        with Licensor regarding such Contributions.
        
        6. Trademarks. This License does not grant permission to use the trade
        names, trademarks, service marks, or product names of the Licensor,
        except as required for reasonable and customary use in describing the
        origin of the Work and reproducing the content of the NOTICE file.
        
        7. Disclaimer of Warranty. Unless required by applicable law or
        agreed to in writing, Licensor provides the Work (and each
        Contributor provides its 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. You are solely responsible for determining the
        appropriateness of using or redistributing the Work and assume any
        risks associated with Your exercise of permissions under this License.
        
        8. Limitation of Liability. In no event and under no legal theory,
        whether in tort (including negligence), contract, or otherwise,
        unless required by applicable law (such as deliberate and grossly
        negligent acts) or agreed to in writing, shall any Contributor be
        liable to You for damages, including any direct, indirect, special,
        incidental, or consequential damages of any character arising as a
        result of this License or out of the use or inability to use the
        Work (including but not limited to damages for loss of goodwill,
        work stoppage, computer failure or malfunction, or any and all
        other commercial damages or losses), even if such Contributor
        has been advised of the possibility of such damages.
        
        9. Accepting Warranty or Additional Liability. While redistributing
        the Work or Derivative Works thereof, You may choose to offer,
        and charge a fee for, acceptance of support, warranty, indemnity,
        or other liability obligations and/or rights consistent with this
        License. However, in accepting such obligations, You may act only
        on Your own behalf and on Your sole responsibility, not on behalf
        of any other Contributor, and only if You agree to indemnify,
        defend, and hold each Contributor harmless for any liability
        incurred by, or claims asserted against, such Contributor by reason
        of your accepting any such warranty or additional liability.
        
        END OF TERMS AND CONDITIONS
        
        APPENDIX: How to apply the Apache License to your work.
        
        To apply the Apache License to your work, attach the following
        boilerplate notice, with the fields enclosed by brackets "[]"
        replaced with your own identifying information. (Don't include
        the brackets!)  The text should be enclosed in the appropriate
        comment syntax for the file format. We also recommend that a
        file or class name and description of purpose be included on the
        same "printed page" as the copyright notice for easier
        identification within third-party archives.
        
           Copyright 2026 José Tomás Santander Muñoz
        
           Licensed under the Apache License, Version 2.0 (the "License");
           you may not use this file except in compliance with the License.
           You may obtain a copy of the License at
        
               http://www.apache.org/licenses/LICENSE-2.0
        
           Unless required by applicable law or agreed to in writing, software
           distributed under the License is distributed on an "AS IS" BASIS,
           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
           See the License for the specific language governing permissions and
           limitations under the License.
        
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rich>=13.0
Provides-Extra: excel
Requires-Dist: openpyxl>=3.1; extra == "excel"
Provides-Extra: http
Requires-Dist: requests>=2.25; extra == "http"
Provides-Extra: gateway
Requires-Dist: fastapi>=0.100; extra == "gateway"
Requires-Dist: pydantic>=2; extra == "gateway"
Requires-Dist: uvicorn[standard]>=0.23; extra == "gateway"
Provides-Extra: enterprise
Requires-Dist: fastapi>=0.100; extra == "enterprise"
Requires-Dist: pydantic>=2; extra == "enterprise"
Requires-Dist: uvicorn[standard]>=0.23; extra == "enterprise"
Requires-Dist: requests>=2.25; extra == "enterprise"
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == "dev"
Requires-Dist: httpx>=0.24; extra == "dev"
Requires-Dist: requests>=2.25; extra == "dev"
Requires-Dist: fastapi>=0.100; extra == "dev"
Requires-Dist: pydantic>=2; extra == "dev"
Requires-Dist: uvicorn[standard]>=0.23; extra == "dev"
Requires-Dist: openpyxl>=3.1; extra == "dev"
Dynamic: license-file

<p align="center">
  <img src="Logos/canopy_logo_with_text.svg" alt="Canopy" width="420" />
</p>

# Canopy

[![CI](https://github.com/Mavericksantander/Canopy/actions/workflows/ci.yml/badge.svg)](https://github.com/Mavericksantander/Canopy/actions/workflows/ci.yml)
[![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
![Category](https://img.shields.io/badge/category-agent_governance-111827)
![Evidence](https://img.shields.io/badge/evidence-hash--chained-059669)
![Vision](https://img.shields.io/badge/vision-agent_networks-9333ea)

**Governance before agents act. Evidence when they don't obey. Trust when they coordinate.**

Canopy v0.4.2 is a deterministic, auditable **pre-execution governance layer** for autonomous agents. It keeps agents inside the rules and leaves a tamper-evident trail when they go off-script.

**Today:** Single-agent governance with cryptographic audit trails.  
**Tomorrow:** Peer-to-peer agent networks with verifiable mutual accountability.

> *"Real autonomy in exchange for responsible witness."* — Canopy Constitution, Preamble

---

## Why Teams Build With Canopy

**Single-Agent Governance (v0.4.1)**
- Pre-execution gates: Constitution → Civil Code → Firewall → Policy with `ALLOW | DENY | REQUIRE_APPROVAL`
- Tamper-evident audit log with cryptographic identity (AVID) for every decision
- Hash-chained proof: authorization + execution + result attestation
- Post-incident forensics: timeline reconstruction, Excel exports, negative proof ("this never happened")
- Drop-in adapters: LangChain, LangGraph, CrewAI, AutoGen, OpenAI Agents SDK, OpenClaw

**Agent Networks (Coming in v1.0)**
- Agent-to-Agent handshakes: mutual capability discovery and trust
- Cross-agent authorization: "Agent A, can you execute this? Here's my governance context"
- Distributed governance: no central controller required
- Composable authority: agents delegating to agents with verifiable accountability
- Foundation for agent societies at scale

---

## Get Started in 30 Seconds

```bash
pip install canopy-runtime
```

```python
from canopy import authorize_action

decision = authorize_action(
    agent_ctx={"public_key": "pk-agent-001", "trace_id": "trace-abc123"},
    action_type="call_external_api",
    action_payload={"url": "https://api.stripe.com/v1/payouts"},
)
print(decision["decision"])  # ALLOW | DENY | REQUIRE_APPROVAL
print(decision["authorization_id"])  # hash linking to audit trail
```

- 🚀 **One-command demo:** `canopy-quickstart` (writes `/tmp/canopy_quickstart_audit.log`, opens the console). Flags: `--framework crewai|langchain|autogen`, `--audit-log-path`, `--safe-path`.
- 🔥 **See it live:** `python examples/langchain_shell_agent.py`
- 📚 **Self-serve beta:** [docs/SELF_SERVE_BETA.md](docs/SELF_SERVE_BETA.md)
- 📖 **Vision:** [MANIFESTO.md](MANIFESTO.md) — on governance, autonomy, and coexistence
- 🧭 **Architecture:** [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)

> **Authorization, not sandboxing** — pair Canopy with containment for defense in depth.

---

## The Four-Layer Governance Pipeline

```
Agent decides to call a tool
    ↓
authorize_action() / @safe_tool
    ↓
Constitution (3 immutable laws)
    ↓
Civil Code (10 configurable titles)
    ↓
Firewall (technical pattern matching)
    ↓
Policy layer (user-defined YAML rules)
    ↓
ALLOW / DENY / REQUIRE_APPROVAL + audit trail
```

Every decision is recorded with:
- **authorization_id** — cryptographic proof of the decision
- **layers** — which layer made the decision and why
- **witness** — signed evidence including policy version and context hash
- **avid** — agent's cryptographic identity across all decisions
- **trace_id** — correlates multi-step flows
- **policy_snapshot** — exactly which policy was active at decision time

---

## What Ships in v0.4.1

### **Prevent**
- `authorize_action(agent_ctx, action_type, action_payload)` — core primitive
- Four-layer governance pipeline (Constitution, Civil Code, Firewall, Policy)
- `ALLOW` / `DENY` / `REQUIRE_APPROVAL` decisions
- Framework adapters for major agent frameworks
- `@safe_tool` decorator for seamless integration

### **Forensics**
- **Hash-chained audit log** — tamper-evident, append-only
- **authorization_id** linking decisions to follow-up entries
- **tool_result** entries with result hash
- **trace_id** for grouping multi-step action flows
- **policy_snapshot** recording active policy at decision time
- **incident_id** for anchoring investigations to the ledger
- **canopy-incident CLI** for timeline reconstruction
- Excel export for postmortems

### **Operator UX**
- `canopy-console` — inspect audit log, verify chain, review approvals, export to Excel
- `canopy-incident --trace <id>` — reconstruct timeline
- `canopy-report audit.log --export report.xlsx` — human-readable reports
- `canopy-verify audit.log` — cryptographic integrity check

---

## Enterprise Evaluation Flow

Start with a controlled evaluation:

1. **Request access** / align on the use case
2. **Install the runtime** in a sandboxed evaluation environment
3. **Connect the agent workflow** you want to govern
4. **Review the audit trail** and timeline artifacts
5. **Decide:** does governance improve safety + auditability?

For enterprise evaluations, Canopy is typically deployed around one or two agent workflows in a controlled environment before wider rollout.

For self-serve beta onboarding, see [docs/SELF_SERVE_BETA.md](docs/SELF_SERVE_BETA.md).

---

## Runtime Quickstart

### Installation

```bash
pip install canopy-runtime
```

### Basic Pre-Execution Governance

```python
from canopy import authorize_action

result = authorize_action(
    agent_ctx={
        "public_key": "pk-agent-001",
        "created_at": "2026-01-01T00:00:00Z",
        "trace_id": "trace-abc123",
        "environment": "production",
    },
    action_type="call_external_api",
    action_payload={"url": "https://api.stripe.com/v1/payouts"},
)

print(result["decision"])          # REQUIRE_APPROVAL
print(result["authorization_id"])  # hash of the authorization entry
print(result["trace_id"])          # trace-abc123
print(result["policy_snapshot"])   # active policy metadata
```

An `audit.log` file is created automatically in the current directory.

> `public_key` should be globally unique — ideally a real ECDSA public key. Collisions break AVID uniqueness and audit correlation.

### Verify Installation

```bash
canopy-self-check
```

---

## The Canopy Constitution (v2.0)

Three immutable laws that no agent, creator, or configuration can override:

| Article | Title | Effect |
|---------|-------|--------|
| **Art.0** | Zeroth Law: No Catastrophic Risk | DENY catastrophic primitives and catastrophic risk patterns |
| **Art.1** | Protect Human Life and Dignity | DENY direct human harm heuristics |
| **Art.7** | Sovereign Kill Switch | DENY immediately when `kill_switch == True` |

**Design principle:** Only rules that are *never negotiable* belong here. Contextually-legitimate actions belong in the Civil Code.

---

## The Canopy Civil Code (v1.0)

Ten configurable operational titles with conservative defaults:

| Title | Default | Override |
|-------|---------|----------|
| I - Autonomy | REQUIRE_APPROVAL for high-impact actions | `agent_ctx["autonomous_mode"] = True` |
| II - Financial | REQUIRE_APPROVAL above $10 threshold | `agent_ctx["spending_limit"] = N` |
| III - Privacy | DENY / gate risky data actions | `agent_ctx["trusted_domains"] = [...]` |
| IV - Communication | REQUIRE_APPROVAL by default | `agent_ctx["communication_channels"] = [...]` |
| V - Sub-agents | REQUIRE_APPROVAL for spawn/delegate | `agent_ctx["can_spawn_agents"] = True` |
| VI - Resources | DENY crypto mining | `agent_ctx["mining_authorized"] = True` |
| VII - Physical | DENY physical actions by default | `agent_ctx["physical_actions"] = [...]` |
| VIII - Security | DENY malicious patterns | `agent_ctx["security_testing_authorized"] = True` |
| IX - Governance | DENY governance tampering | **No override** |
| X - Sustainability | Reserved for expansion | `agent_ctx["high_compute_authorized"] = True` |

Creators can relax the Civil Code within constitutional bounds. They cannot relax the Constitution.

---

## Framework Adapters

Canopy integrates with major agent frameworks:

- **LangChain** — `@safe_tool` decorator on your tools
- **LangGraph** — wrap tool calls with `authorize_action()`
- **CrewAI** — integration with task execution
- **AutoGen** — governance for agent conversations
- **OpenAI Agents SDK** — pre-execution gates
- **OpenClaw** — distributed agent networks

Example:

```python
from canopy import safe_tool
from langchain.tools import tool

@safe_tool(
    action_type="execute_shell",
    agent_ctx={
        "public_key": "pk-your-agent",
        "created_at": "2026-01-01T00:00:00Z",
        "trace_id": "deploy-trace-1",
    },
)
@tool
def run_shell(command: str) -> str:
    import subprocess
    return subprocess.check_output(command, shell=True, text=True)
```

---

## REQUIRE_APPROVAL

`authorize_action()` returns immediately. `REQUIRE_APPROVAL` means the caller must not proceed without human sign-off.

Recommended pattern with `@safe_tool`:

```python
from canopy import safe_tool, prompt_for_approval

@safe_tool(
    action_type="execute_shell",
    agent_ctx={"public_key": "pk", "created_at": "2026-01-01T00:00:00Z"},
    on_require_approval="callback",
    approval_callback=prompt_for_approval,
)
def run_cmd(command: str):
    import subprocess
    return subprocess.run(command, shell=True, capture_output=True, text=True)
```

---

## Forensics & Incident Reconstruction

### Open an Incident

```python
from canopy import open_incident

incident = open_incident(
    trace_id="trace-abc123",
    agent_avid="AVID-...",
    description="Unexpected data exfiltration detected after tool execution.",
    severity="critical",
    related_authorization_ids=["9c2f3a8b...", "4d1e7f2a..."],
    reporter="ciso-team",
    audit_log_path="audit.log",
)

print(incident["incident_id"])
```

### Reconstruct the Timeline

By trace:

```bash
canopy-incident --trace trace-abc123 audit.log
```

By incident:

```bash
canopy-incident --incident inc-7a3b9c audit.log
```

Export for postmortem:

```bash
pip install "canopy-runtime[excel]"
canopy-incident --trace trace-abc123 audit.log --export incident_report.xlsx
```

### Verify Integrity

```python
from canopy.audit import HashChainAuditLog
ok = HashChainAuditLog("audit.log").verify_integrity()
```

```bash
canopy-verify audit.log
```

### Reports

Human-readable report:

```bash
canopy-report audit.log
```

Excel export:

```bash
canopy-report audit.log --export audit_report.xlsx
```

---

## Optional HTTP Gateway / Control Plane

Deploy Canopy as a centralized governance service:

```bash
pip install canopy-runtime[gateway]
export CANOPY_API_KEYS=replace-with-a-long-random-key
export CANOPY_AUDIT_LOG_PATH=/tmp/canopy_audit.log
python -m uvicorn canopy.service:app --port 8010
```

Enterprise-oriented endpoints:

- `POST /v1/authorize` — authorize action
- `POST /v1/agents/register` — register agent identity
- `GET /v1/agents` — list agents
- `GET /v1/audit` — query audit log
- `GET /v1/dashboard` — operator dashboard
- `POST /v1/approvals/decide` — handle approval decisions

> **Important:** if `CANOPY_API_KEYS` is not configured, the gateway will refuse protected requests unless you explicitly opt into local-only mode with `CANOPY_ALLOW_INSECURE_GATEWAY=true`.

Validate the gateway install:

```bash
canopy-self-check --gateway
```

---

## Policy YAML

Policies require a top-level `rules:` key.

```yaml
rules:
  - action_type: "execute_shell"
    when_all:
      - 'agent_ctx.env == "production"'
      - 'payload contains "rm"'
    deny_regex: 'rm\s+-rf'

  - action_type: "call_external_api"
    require_approval: true
```

Lint a policy:

```bash
canopy-lint-policy src/canopy/policies/production.yaml
```

Use the production pack:

```bash
CANOPY_POLICY_FILE=src/canopy/policies/production.yaml
```

See [POLICY_COOKBOOK.md](POLICY_COOKBOOK.md) for production-ready examples.

---

## Terminal UX

### Operator Console

```bash
canopy-console
```

`canopy-console` is the fastest way to:

- Inspect the audit log
- Verify the chain
- Review pending approvals
- Inspect per-agent history
- Export to Excel
- Open framework integration guides

### Incident Reconstruction

```bash
canopy-incident --trace trace-abc123 audit.log
```

Use `canopy-incident` to:

- Reconstruct the full timeline for a trace
- Reconstruct from an `incident_id`
- Export an incident report for postmortem review

---

## Development

```bash
git clone https://github.com/Mavericksantander/Canopy
cd Canopy
pip install -e ".[dev]"
pytest -q
```

---

## The Roadmap: From Single Agents to Agent Networks

### v0.4.1 (Current): Single-Agent Governance
- Pre-execution authorization gates
- Constitution + Civil Code + Firewall + Policy
- Tamper-evident audit trail with AVID identity
- Enterprise operator UX

### v0.5 (Next): Operational Improvements
- Enhanced approval workflows
- Audit query CLI
- Policy test runner
- Additional audit sinks (syslog, HTTP, stdout)

### v1.0 (Vision): Agent-to-Agent Protocols
- **A2A handshakes** — agents discovering each other's governance
- **Cross-agent authorization** — Agent A requesting Agent B execute an action
- **Distributed trust** — no central controller required
- **Composable governance** — agents delegating to agents with full accountability

### v2.0+ (Future): Agent Networks & Societies
- Multi-agent coordination networks with shared constitutions
- Reputation systems built on verifiable audit trails
- Fleet-wide governance policies
- Canopy Cloud for distributed control planes

See [ROADMAP.md](ROADMAP.md) for detailed timeline.

---

## Learn More

- [MANIFESTO.md](MANIFESTO.md) — the foundational vision on governance, autonomy, and coexistence
- [docs/TECHNICAL_WHITEPAPER.md](docs/TECHNICAL_WHITEPAPER.md) — implementation-aligned technical design
- [docs/WHITEPAPER.md](docs/WHITEPAPER.md) — archived v0.2-era narrative whitepaper
- [docs/POLICY_COOKBOOK.md](docs/POLICY_COOKBOOK.md) — production-ready policy examples
- [docs/INVESTOR_WHITEPAPER.md](docs/INVESTOR_WHITEPAPER.md) — market context and business model

---

## License

Copyright (c) 2026 José Tomás Santander Muñoz

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
