# LICENSE — VIETNAM LEGAL ADVISOR

**Status: IN FORCE from 2026-11-04. The Publisher approved and confirmed the choice of Apache 2.0 (code) and CC BY 4.0 (documents and content).**
Effective date: 2026-11-04 (the date the Publisher approved). Not retroactive, and it does not revoke rights lawfully granted for copies distributed earlier.

This document replaces the previous version (a conditional source license that required email approval before redistribution). The earlier text is preserved in the Git history.

## 1. License map by path

| Scope | License | Text |
|---|---|---|
| `scripts/`, `tests/run_integrity.py` | Apache License 2.0 | [LICENSE-Apache-2.0.txt](LICENSE-Apache-2.0.txt) and [NOTICE](NOTICE) |
| `plugin/` (skills, instructions, suggested prompts), `docs/`, `tests/cases.json`, `tests/fixtures.md`, `tests/EVALUATION.md`, the `*.md` files in the root directory | Creative Commons Attribution 4.0 International (CC BY 4.0) | [LICENSE-CC-BY-4.0.txt](LICENSE-CC-BY-4.0.txt) |
| The logo `vietnam-legal-advisor-icon-v4.png` (in `plugin/assets/` and `docs/assets/`); `tests/runs/`, `dist/` (test evidence, release packages, output generated by AI models) | Creative Commons Attribution 4.0 International (CC BY 4.0), to the extent the Publisher holds rights | [LICENSE-CC-BY-4.0.txt](LICENSE-CC-BY-4.0.txt); section 3 below |
| `terms-archive/` (copies of the terms of OpenAI, Anthropic, etc., kept locally and not pushed to Git; only `INDEX.md` is pushed) | Outside the scope of this license: copyright of the owner of the terms | [terms-archive/INDEX.md](terms-archive/INDEX.md) |
| Legal texts, third-party content, input data and users' results | Outside the scope of this license | Section 2 |

Rule of application: a more specific path prevails over a more general one; a file not listed in the table defaults to CC BY 4.0 if it is a document and to Apache 2.0 if it is code.

## 2. Scope and limits

1. The license applies only to what Thanh Nguyen owns or has the right to license. It does not cover third-party content, legal texts, public-domain content, input data or users' results.
2. Components granted under another valid license remain subject to that license (see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)).
3. Neither license grants trademark rights or the right to use the name "Vietnam Legal Advisor" or the Publisher's name to imply endorsement or that a copy is official. A modified version must state that it has been modified and must not claim to be official.
4. The tool's output is not guaranteed to be correct, complete or current, and does not replace licensed legal representation. No disclaimer is made to the extent it would be unlawful. Governing law, competent courts, mandatory rights and language are as set out in the Terms of Use (Vietnamese text, `docs/terms/vi/index.html`, which prevails; English translation, `docs/terms/index.html`).

## 3. Logo, test evidence and AI output; rights already granted

The logo and the test records, release packages and output generated by AI models are licensed under CC BY 4.0 only to the extent the Publisher holds rights under the law and the model providers' terms (see `PROVENANCE.md`). Rights in AI-generated output may not exist or may be unclear; the license does not grant rights the Publisher does not have, and it does not warrant the rights of third parties (for example, imagery that evokes territory; see `PROVENANCE.md`).

The consumer terms of both model providers prohibit the Publisher, as their user, from using their services to develop competing AI models (Anthropic Consumer Terms, prohibited uses; OpenAI Terms of Use, "Use Output to develop models that compete with OpenAI"). Those restrictions bind the Publisher's own use of the services and are not changed by this license; recipients of a copy are not parties to those terms, but the Publisher gives no warranty about recipients' use of AI output for that purpose. Whether this is a concern is a question for legal review.

**Note on rights already granted.**

Those who received a copy before the new license took effect keep the rights lawfully granted to them. An Apache 2.0 or CC BY 4.0 license, once granted for a copy, cannot be unilaterally revoked for that copy; the final decision should therefore be made deliberately before pushing to a public repository.

## 4. CC BY 4.0: text and attribution

The full legal code is in [LICENSE-CC-BY-4.0.txt](LICENSE-CC-BY-4.0.txt), copied from the SPDX license list repository (`spdx/license-list-data`, `text/CC-BY-4.0.txt`) on 2026-11-04, SHA-256 `d557539df68e771cc1eedcc91d13f70fca930e508d11eedcafa4b15db49e3744`. The operative text is the official Creative Commons version: https://creativecommons.org/licenses/by/4.0/legalcode (summary: https://creativecommons.org/licenses/by/4.0/).

Sample attribution notice:

> "Vietnam Legal Advisor" by Thanh Nguyen, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). It may have been modified; state so if you change it.
