MemScope Software License Agreement (Interim v1)
==================================================

Copyright (c) 2026 Adrian Dumitrescu. All rights reserved.

This is a commercial software product. Use of this software is governed
by the terms below. By installing, copying, or otherwise using
MemScope ("the Software"), you ("the User") accept these terms.

If you have a separately-signed master agreement with the Licensor
that covers MemScope, that agreement governs your use and supersedes
this LICENSE file where the two conflict.

NOTE: this is a self-drafted interim license clearly identifying
MemScope as proprietary commercial software. A more complete
lawyer-reviewed End User License Agreement will replace this file
once the Licensor's commercial entity is registered. Until then,
this LICENSE establishes the baseline that the Software is NOT
released under any open-source or Free Software license.


1. DEFINITIONS
--------------

"Licensor" means Adrian Dumitrescu, the copyright holder.
"User" means the individual or entity installing or using the Software.
"License Key" means a unique activation token issued by the Licensor.
"Free Edition" means the operating mode available without a License Key
   (as described in Section 3 below).
"Trial" means the initial 14-day evaluation window during which all
   features are unlocked without a License Key.


2. GRANT OF LICENSE
-------------------

Subject to the User's compliance with this Agreement, the Licensor
grants the User a non-exclusive, non-transferable, revocable license
to install and use the Software:

  (a) on machines the User owns or is authorized to operate;
  (b) for the User's internal business purposes;
  (c) subject to the operating-mode restrictions in Section 3.

The Software is licensed, not sold. The Licensor retains all rights,
title, and interest in and to the Software, including all intellectual
property rights. No rights are granted under any license approved by
the Open Source Initiative or recognized as a Free Software license
by the Free Software Foundation.


3. OPERATING MODES
------------------

MemScope operates in one of three modes depending on activation state:

  TRIAL (first 14 days, automatic on first run): all features unlocked
    for evaluation. No License Key required.

  FREE EDITION (after Trial expires, no License Key): visibility-only
    mode. The `analyze` command and all reporting (terminal, JSON, HTML,
    diff visualization) remain available indefinitely without time
    limit, subject to a "FREE EDITION" watermark. Build-gating features
    (`--strict` enforcement, `validate` subcommand, custom `[budgets]`
    and `[policies]` config sections, CSV export) are disabled.

  PAID (active License Key): all features unlocked, watermark removed.
    Requires a valid License Key issued by the Licensor.


4. LICENSE KEYS
---------------

License Keys are:
  (a) issued by the Licensor in exchange for payment;
  (b) bound to a specific machine fingerprint at activation time;
  (c) valid for the duration printed in the key (typically one year);
  (d) subject to a 7-day offline grace window between online check-ins;
  (e) revocable by the Licensor in case of fraudulent use, breach of
      this Agreement, or chargeback.

Moving a License Key to a different machine requires running
`memscope license deactivate` on the original machine first, or
contacting the Licensor to release the seat manually.


5. RESTRICTIONS
---------------

The User shall NOT:

  (a) redistribute, resell, sublicense, rent, lease, or lend the
      Software or any License Key to any third party without prior
      written permission from the Licensor;
  (b) reverse engineer, decompile, disassemble, or attempt to derive
      the source code of the Software's licensing mechanism, license
      gates, or activation system, except to the extent expressly
      permitted by applicable law notwithstanding this restriction
      (including without limitation Article 6 of EU Directive
      2009/24/EC for interoperability purposes);
  (c) circumvent, disable, or otherwise interfere with the License Key
      validation, trial-clock, or feature-gating mechanisms;
  (d) remove, alter, or obscure any copyright, trademark, license, or
      proprietary notices included in the Software;
  (e) use the Software in any manner that violates applicable law.

Inspecting and modifying the Software's analyzer logic for the User's
own internal use is permitted; redistribution of any modified version
is not.


6. DATA + PRIVACY
-----------------

The Software runs analysis entirely on the User's machine. Build
artifacts (ELF, MAP, linker scripts) and analysis reports are NOT
transmitted to the Licensor or any third party in the course of
normal operation.

License Key activation and periodic re-validation contact the
Licensor's licensing backend (Keygen.sh) and transmit only:
  - The License Key
  - A machine fingerprint hash
  - The Software version

No analysis content, build artifacts, source code, or personally
identifying information beyond the above is transmitted by the
Software absent the User's explicit opt-in.


7. WARRANTY DISCLAIMER
----------------------

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND
NON-INFRINGEMENT. THIS DISCLAIMER DOES NOT EXCLUDE OR LIMIT
WARRANTIES THAT CANNOT BE EXCLUDED OR LIMITED UNDER APPLICABLE
CONSUMER PROTECTION LAW, INCLUDING WHERE THE USER IS A NATURAL
PERSON ACTING OUTSIDE THEIR TRADE, BUSINESS, OR PROFESSION.


8. LIMITATION OF LIABILITY
--------------------------

IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING
BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE. NOTHING IN THIS LIMITATION EXCLUDES
LIABILITY THAT CANNOT BE EXCLUDED UNDER APPLICABLE LAW.


9. TERMINATION
--------------

This license terminates automatically if the User materially breaches
any of its terms and fails to cure the breach within thirty (30) days
of written notice (where the breach is capable of being cured). Upon
termination, the User must cease all use of the Software and destroy
all copies in their possession.

The Licensor may revoke any License Key for material breach of this
Agreement, fraudulent use, or chargeback.


10. CONTACT
-----------

For license purchases, support inquiries, machine swaps, refunds,
or any questions about this Agreement:

    dumitrescu.adrian121@gmail.com


--------------------------------------------------------------------
INTERIM-VERSION NOTE: this LICENSE is a self-drafted v1 intended to
clearly identify MemScope as a paid commercial product (NOT open
source) and to set baseline terms during the period before the
Licensor's commercial entity is registered. It will be replaced by a
lawyer-reviewed final EULA before paid License Keys are sold to
external customers. Customers entering into significant commercial
relationships should request the Licensor's then-current
lawyer-reviewed master agreement.
--------------------------------------------------------------------
