                                 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.

   "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 made available under
   the License, as indicated by a copyright notice that is included in
   or attached to the work.

   "Derivative Works" shall mean any work that is based on the Work.

   "Contribution" shall mean any work of authorship submitted to the
   Licensor for inclusion in the Work.

   "Contributor" shall mean Licensor and any Legal Entity on behalf of
   whom a Contribution has been received by the Licensor.

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
   patent license to make, use, sell, offer for sale, import, and
   otherwise transfer the Work.

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; and

   (d) If the Work includes a "NOTICE" text file, You must include a
       readable copy of the attribution notices contained within.

5. Submission of Contributions. Unless You explicitly state otherwise,
   any Contribution submitted for inclusion in the Work shall be under
   the terms and conditions of this License.

6. Trademarks. This License does not grant permission to use the trade
   names, trademarks, service marks, or product names of the Licensor.

7. Disclaimer of Warranty. THE WORK IS PROVIDED "AS IS", WITHOUT
   WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.

8. Limitation of Liability. IN NO EVENT SHALL ANY CONTRIBUTOR BE
   LIABLE FOR ANY DAMAGES ARISING FROM USE OF THIS WORK.

9. Accepting Warranty or Additional Liability. You may offer additional
   warranty or liability obligations, but only on Your own behalf.

END OF TERMS AND CONDITIONS

---

SCOPE OF THIS LICENSE

This Apache 2.0 license applies to:
- SPEC.md (the jMRI specification)
- SDK client code (sdk/python/, sdk/typescript/)
- Benchmark suite (benchmark/)
- Example code (examples/)
- This repository's documentation

The reference server implementation (reference/server.py) requires a
jCodeMunch or jDocMunch commercial license for the underlying retrieval
engines. The reference server code is published for inspection; running
it in production requires a valid jMunch license.

Licenses: https://j.gravelle.us/jCodeMunch/

Copyright 2026 J. Gravelle
