memgate 0.1.1 → 2026.11.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,12 +1,93 @@
1
- # MemSteward 全件统一许可声明 (2026-11-20, v1.3)
1
+ Elastic License 2.0
2
2
 
3
- **本软件全部文件** (插件 TS 面/Python 桥/部署脚本/calldecay-sdk/core/pvs-sdk)
4
- 统一依 **AI Research Source License — Version 1.3 (2026-11-20)** 授权,
5
- 全文见 core/LICENSE 或 src/kernel/core/LICENSE。
3
+ URL: https://www.elastic.co/licensing/elastic-license
6
4
 
7
- 要点: 非商用(研究/教学/验证/评估)免费 + 90 日非生产评估(含评估期专利不起诉);
8
- 非商业托管/团队部署允许; 商用与商业托管服务须事先书面授权; 专利一律保留(§4);
9
- 商标不随代码授权(§5.5)。商用授权联系: lipin5555@outlook.com
5
+ ## Acceptance
10
6
 
11
- > 变更注记 (2026-11-20): 全件统一依本许可授权。
12
- 第三方权利提示: 本软件不含第三方思想映射派生代码。
7
+ By using the software, you agree to all of the terms and conditions below.
8
+
9
+ ## Copyright License
10
+
11
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
12
+ non-sublicensable, non-transferable license to use, copy, distribute, make
13
+ available, and prepare derivative works of the software, in each case subject to
14
+ the limitations and conditions below.
15
+
16
+ ## Limitations
17
+
18
+ You may not provide the software to third parties as a hosted or managed
19
+ service, where the service provides users with access to any substantial set of
20
+ the features or functionality of the software.
21
+
22
+ You may not move, change, disable, or circumvent the license key functionality
23
+ in the software, and you may not remove or obscure any functionality in the
24
+ software that is protected by the license key.
25
+
26
+ You may not alter, remove, or obscure any licensing, copyright, or other notices
27
+ of the licensor in the software. Any use of the licensor’s trademarks is subject
28
+ to applicable law.
29
+
30
+ ## Patents
31
+
32
+ The licensor grants you a license, under any patent claims the licensor can
33
+ license, or becomes able to license, to make, have made, use, sell, offer for
34
+ sale, import and have imported the software, in each case subject to the
35
+ limitations and conditions in this license. This license does not cover any
36
+ patent claims that you cause to be infringed by modifications or additions to
37
+ the software. If you or your company make any written claim that the software
38
+ infringes or contributes to infringement of any patent, your patent license for
39
+ the software granted under these terms ends immediately. If your company makes
40
+ such a claim, your patent license ends immediately for work on behalf of your
41
+ company.
42
+
43
+ ## Notices
44
+
45
+ You must ensure that anyone who gets a copy of any part of the software from you
46
+ also gets a copy of these terms.
47
+
48
+ If you modify the software, you must include in any modified copies of the
49
+ software prominent notices stating that you have modified the software.
50
+
51
+ ## No Other Rights
52
+
53
+ These terms do not imply any licenses other than those expressly granted in
54
+ these terms.
55
+
56
+ ## Termination
57
+
58
+ If you use the software in violation of these terms, such use is not licensed,
59
+ and your licenses will automatically terminate. If the licensor provides you
60
+ with a notice of your violation, and you cease all violation of this license no
61
+ later than 30 days after you receive that notice, your licenses will be
62
+ reinstated retroactively. However, if you violate these terms after such
63
+ reinstatement, any additional violation of these terms will cause your licenses
64
+ to terminate automatically and permanently.
65
+
66
+ ## No Liability
67
+
68
+ *As far as the law allows, the software comes as is, without any warranty or
69
+ condition, and the licensor will not be liable to you for any damages arising
70
+ out of these terms or the use or nature of the software, under any kind of
71
+ legal claim.*
72
+
73
+ ## Definitions
74
+
75
+ The **licensor** is the entity offering these terms, and the **software** is the
76
+ software the licensor makes available under these terms, including any portion
77
+ of it.
78
+
79
+ **you** refers to the individual or entity agreeing to these terms.
80
+
81
+ **your company** is any legal entity, sole proprietorship, or other kind of
82
+ organization that you work for, plus all organizations that have control over,
83
+ are under the control of, or are under common control with that
84
+ organization. **control** means ownership of substantially all the assets of an
85
+ entity, or the power to direct its management and policies by vote, contract, or
86
+ otherwise. Control can be direct or indirect.
87
+
88
+ **your licenses** are all the licenses granted to you for the software under
89
+ these terms.
90
+
91
+ **use** means anything you do with the software requiring one of your licenses.
92
+
93
+ **trademark** means trademarks, service marks, and similar rights.
package/VERSIONS.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "product": "MemGate",
3
3
  "component": "memgate",
4
- "version": "0.1.1",
4
+ "version": "2026.11.22",
5
5
  "sdk": "0.1.0",
6
6
  "bridgeProtocol": 3,
7
7
  "levers": {
@@ -13,5 +13,5 @@
13
13
  "memorySlot": "memgate",
14
14
  "contextEngineSlot": "memgate"
15
15
  },
16
- "assembledAt": "2026-11-19T18:48:41+0800"
17
- }
16
+ "assembledAt": "2026-11-22T09:45:00+0800"
17
+ }
@@ -2,7 +2,7 @@
2
2
  "id": "memgate",
3
3
  "name": "MemGate",
4
4
  "description": "Three-layer memory (hot/warm/cold) + governance gate tools, bridged to the Python single-source (CallDecay LandingStore + pvs.gate + accept_contract). Delegating compaction mode: official engine is the safety net.",
5
- "version": "2026.11.19",
5
+ "version": "2026.11.22",
6
6
  "kind": [
7
7
  "memory",
8
8
  "context-engine"
@@ -50,4 +50,4 @@
50
50
  }
51
51
  }
52
52
  }
53
- }
53
+ }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "memgate",
3
- "version": "0.1.1",
3
+ "version": "2026.11.22",
4
4
  "description": "OpenClaw governance middleware: three-layer memory (hot/warm/cold) + gate tools, bridged to the Python single-source (CallDecay LandingStore / pvs.gate / accept_contract).",
5
5
  "type": "module",
6
- "license": "SEE LICENSE IN LICENSE",
6
+ "license": "Elastic-2.0",
7
7
  "files": [
8
8
  "index.ts",
9
9
  "dist/",
@@ -37,4 +37,4 @@
37
37
  "url": "git+https://github.com/lipin007/memsteward.git"
38
38
  },
39
39
  "homepage": "https://github.com/lipin007/memsteward"
40
- }
40
+ }
@@ -6,8 +6,7 @@
6
6
  cd = CallDecay()
7
7
  d = cd.decide(obj="兔", goal="丰", current="兔", actions=["喂食", "放牧"])
8
8
 
9
- 许可:本包编排层 Apache-2.0;core/ 内核 AI Research Source License v1.2
10
- (非商用免费、商用需事先书面同意)。详见包内 LICENSE 与仓库 PATENTS.md。
9
+ 许可:全件 Elastic License 2.0 (SPDX: Elastic-2.0)。详见包内 LICENSE。
11
10
  """
12
11
 
13
12
  __version__ = "0.1.0"
@@ -6,7 +6,7 @@
6
6
  d = cd.decide(obj="兔", goal="丰", current="兔", actions=["喂食", "放牧"])
7
7
  cd.learn(obj="兔", act=d["act"], actual="丰", cur="兔")
8
8
 
9
- 机制本体在 core/(AI Research Source License v1.2);本文件只是编排层:
9
+ 机制本体在 core/(Elastic License 2.0);本文件只是编排层:
10
10
  known(查表直连,0 上游调用)→ llm(窄接口咨询)→ explore(回退)。
11
11
  """
12
12
 
@@ -1,228 +1,93 @@
1
- # 适用范围声明(2026-10-13 修订)
2
-
3
- 本目录(CallDecay/core,**内核层**)的全部文件,依据下述 **AI Research Source
4
- License — Version 1.3 (2026-11-20)** 授权,构成该协议所称 "Code"。要点:
5
- 非商用(研究/教学/验证/评估)免费,**90 日非生产评估明示**(§2.4,含评估期
6
- 专利不起诉承诺);**托管/管理服务明文禁止**(§2.3,无论是否收费);
7
- **商用需事先书面授权**(§2.2);**专利一律保留,本协议不授予任何专利许可**(§4);
8
- 对许可方提起专利主张 = 全部许可即刻永久终止(§4.5)。
9
-
10
- **父目录 `../LICENSE`(Apache-2.0)不适用于本目录。** 工具层(core/ 之外)
11
- 与内核层(core/)为分层许可,详见 `../PATENTS.md`、`../NOTICE`、`../CLA.md`。
12
- 本目录不含 Papers 资产,协议第 3 节(Papers)对本目录不适用。
13
- 若本目录以独立包分发而未随附仓库根 LICENSE,以下文本即完整条款。
14
-
15
- 联系:lipin5555@outlook.com
16
-
17
- ---
18
-
19
- # AI Research Source License — Version 1.3 (2026-11-20)
20
-
21
- Copyright (c) 2026 Li Pin. All rights reserved.
22
-
23
- This repository contains two distinct asset classes — **Code** and **Papers** —
24
- governed by the terms below, followed by a common **Patent Reservation**
25
- clause that applies to both.
26
-
27
- ---
28
-
29
- ## 1. Definitions
30
-
31
- - **"Code"** means the software in this repository, including but not
32
- limited to `minimal/minimal_caf.py` and its accompanying scripts,
33
- documentation files in source form, and any modifications thereof.
34
- - **"Papers"** means the scientific manuscripts in `papers/` (PDF and any
35
- HTML or source forms), including their abstracts, figures, tables, and
36
- Data Availability statements.
37
- - **"Commercial Use"** means any use intended for or directed toward
38
- commercial advantage or monetary compensation, including but not limited
39
- to: integrating the Code or Papers into a commercial product or service;
40
- selling, licensing, or distributing copies for a fee; or employing the
41
- Code or Papers in the production of goods or services offered for sale.
42
- Commercial Use **excludes** academic research, teaching, scholarly
43
- publication, verification/reproduction of reported results, and
44
- non-profit evaluation.
45
- - **"Hosted or Managed Service"** means providing the Code (original or
46
- modified, in whole or in part) to third parties as a service, where the
47
- service provides those third parties with access to any substantial set
48
- of the features or functionality of the Code, whether or not for a fee.
49
- - **"Evaluation"** means use of the Code solely to assess its
50
- functionality and performance, in non-production systems, for a
51
- continuous period of no more than ninety (90) days, by or on behalf of
52
- a single legal entity, without integration into any product or service
53
- offered to third parties.
54
- - **"Licensor"** means Li Pin.
55
- - **"You"** means any person or entity exercising the permissions granted
56
- below.
57
-
58
- ## 2. Code License (source-available; Commercial Use requires consent)
59
-
60
- ### 2.1 Grant for non-commercial use
61
-
62
- Subject to the terms of this License, the Licensor grants You a worldwide,
63
- royalty-free, non-exclusive, perpetual license to use, copy, modify,
64
- merge, and distribute the Code, and to run the Code, **for non-commercial
65
- purposes only** (research, teaching, personal study, verification, and
66
- evaluation), provided that:
67
-
68
- 1. The above copyright notice and this permission notice are included in
69
- all copies or substantial portions of the Code.
70
- 2. Modified versions are clearly marked as such.
71
-
72
- ### 2.2 Commercial Use requires prior written consent
73
-
74
- **Commercial Use of the Code — in whole or in part, original or modified —
75
- requires the prior written consent of the Licensor.** Without such
76
- consent, You may not: integrate the Code into a commercial product or
77
- service; sell or sublicense the Code or any work derived from it; or use
78
- the Code in the operation of a commercial offering.
79
-
80
- Requests for commercial consent may be directed to: lipin5555@outlook.com.
81
- The Licensor may grant, condition, or withhold consent at the Licensor's
82
- sole discretion.
83
-
84
- ### 2.3 Hosted or Managed Service
85
-
86
- **Non-commercial Hosted or Managed Service is permitted** — for example
87
- running the Code on a shared server for a team, classroom, research
88
- group, or non-profit community — provided the service is not offered for
89
- a fee and is not directed toward commercial advantage.
90
- **Providing the Code to third parties as a commercial Hosted or Managed
91
- Service requires the prior written consent of the Licensor**, whether the
92
- Code is original or modified. (Wording adapted from
93
- Elastic License 2.0, elastic.co, used as a drafting reference.)
94
-
95
- ### 2.4 Evaluation (90-day, non-production)
96
-
97
- Notwithstanding Sections 2.1 through 2.3, any entity may use the Code for
98
- an **Evaluation** without prior written consent. During the Evaluation
99
- period, the Licensor covenants not to assert any patent claim of the
100
- Licensor against Your exercise of the Section 2.1 license during that
101
- Evaluation. Conversion of an Evaluation to production use or Commercial
102
- Use requires the prior written consent of the Licensor under Section 2.2.
103
-
104
- ## 3. Papers License (Attribution + Integrity; Commercial Use requires consent)
105
-
106
- Subject to the terms of this License, the Licensor grants You a worldwide,
107
- royalty-free, non-exclusive, perpetual license to:
108
-
109
- 1. **Reproduce and distribute** the Papers for non-commercial purposes —
110
- scholarly sharing, teaching, and preprint circulation — provided You
111
- give appropriate credit to the Licensor (author name "Li Pin", the
112
- paper title, the ORCID iD 0009-0004-9509-9644, and a link to this
113
- repository or the preprint DOI).
114
- 2. **Translate, adapt, and create derivatives** of the Papers for
115
- scholarly, educational, or journalistic purposes, provided that any
116
- derivative clearly indicates it is a modification, that the original
117
- author attribution is preserved, and that no reported measurement,
118
- effect size, or verdict is altered or misrepresented.
119
- 3. **Quote and excerpt** the Papers under fair-use / fair-dealing rules.
120
-
121
- **Commercial Use of the Papers (including republication for profit or
122
- incorporation into a commercial product) requires the prior written
123
- consent of the Licensor**, except that inclusion in indexing services,
124
- citation databases, and academic aggregators is always permitted.
125
-
126
- ## 4. Patent Reservation (applies to Code AND Papers)
127
-
128
- 1. **Nothing in this License grants You any license or right under any
129
- patent** owned or controlled by the Licensor. All patent rights are
130
- expressly reserved.
131
- 2. The Licensor has filed patent applications (filing date 2026-09-05)
132
- covering the mechanisms described in the Papers and implemented in the
133
- Code, and such other subject matter as the claims may cover. The three
134
- operations (injection, decay, freezing) specified in the Papers and
135
- implemented in the Code are sufficient to verify every result reported
136
- there.
137
- 3. **Any Commercial Use that would fall within the scope of a claim of the
138
- Licensor's patents requires a separate patent license from the
139
- Licensor**, regardless of the terms of Sections 2 and 3. This License
140
- grants no implied patent license of any kind.
141
- 4. This reservation survives termination of any other provision of this
142
- License.
143
- 5. **Patent aggression terminates all licenses.** If You or Your company
144
- make any written claim that the Code, the Papers, or the mechanism
145
- disclosed therein infringes or contributes to infringement of any
146
- patent, all licenses granted to You under this License terminate
147
- immediately and permanently. (Adapted from Elastic License 2.0.)
148
-
149
- ## 5. Clarification: scope of this License
150
-
151
- For the avoidance of doubt:
152
-
153
- 1. **Scientific facts, ideas, formulas, mathematical relations, and laws**
154
- presented in the Papers or embodied in the Code are not subject to
155
- copyright and are **not restricted by this License**. This License
156
- restricts only the *expression* of the Code and Papers (copying,
157
- distributing, and modifying those specific files and texts).
158
- 2. This License therefore does not restrict Your right to **independently
159
- implement** the disclosed ideas (including the three operations) in
160
- your own code, written without copying from this repository.
161
- 3. However, an independent implementation does not avoid the patents
162
- referred to in Section 4: if Your use — commercial or otherwise — falls
163
- within the scope of a claim of the Licensor's patents, You need a
164
- patent license from the Licensor. **In particular, Commercial Use of
165
- the disclosed mechanism is subject to the Licensor's patent rights.**
166
- 4. Verification and reproduction of reported results, and citation,
167
- quotation, indexing, and academic aggregation, are always permitted
168
- and require no consent.
169
- 5. **No trademark license.** The names "MemSteward", "MemGate", and any
170
- related names, logos, or marks of the Licensor are not licensed under
171
- this License. No right to use these marks is granted; any use requires
172
- the prior written consent of the Licensor.
173
-
174
- ## 6. Disclaimer
175
-
176
- The Code and Papers are provided "as is", without warranty of any kind,
177
- express or implied, including but not limited to warranties of
178
- merchantability, fitness for a particular purpose, or non-infringement.
179
- In no event shall the Licensor be liable for any claim, damages, or other
180
- liability arising from, out of, or in connection with the Code or Papers.
181
-
182
- ## 7. Termination
183
-
184
- Any breach of Sections 2, 3, or 4 terminates Your rights under this
185
- License automatically. If the Licensor provides You with notice of Your
186
- violation, and You cease all violation of this License no later than
187
- thirty (30) days after You receive that notice, Your licenses will be
188
- reinstated retroactively; however, any violation after such reinstatement
189
- terminates all licenses automatically and permanently. The cure right of
190
- this Section does not apply to termination under Section 4.5, which is
191
- immediate and permanent. Sections 1, 4, 5, 6, and 7 survive any
192
- termination. (30-day cure wording adapted from Elastic License 2.0.)
193
-
194
- ---
195
-
196
- *This is a source-available license tailored to a research publication:
197
- non-commercial use (research, teaching, verification, 90-day
198
- non-production evaluation) is free; non-commercial team/teaching hosting is permitted while
199
- commercial hosted or managed service is prohibited; Commercial Use of
200
- the code, the papers, or the patented mechanism requires the author's
201
- written consent. For questions contact: lipin5555@outlook.com*
202
-
203
- ---
204
-
205
- **Plain-language summary**
206
-
207
- - **Code** (`minimal/`): free for research, teaching, verification, and
208
- 90-day non-production evaluation. Using it in a commercial product or
209
- service requires the author's written consent.
210
- - **Hosted/Managed Service**: non-commercial team/teaching hosting is
211
- permitted; offering this software to third parties as a commercial
212
- service requires written consent.
213
- - **Papers** (`papers/`): free to share, translate, quote, and build upon
214
- for scholarship. Commercial republication requires consent.
215
- - **Patents**: nothing here grants a patent license (except the evaluation
216
- covenant in §2.4). Commercial use of the disclosed mechanism falls under
217
- the author's patent rights (filed 2026-09-05). If you sue the author
218
- alleging patent infringement, all your licenses end immediately.
219
- - **The science is free to read and to verify**; the *commercial* use of
220
- the mechanism is what requires authorization.
221
-
222
- *Version history: 1.1 (2026-09-06) → 1.2 (2026-10-13): added §2.3
223
- hosted/managed-service prohibition, §2.4 evaluation covenant, §4.5
224
- patent-aggression termination, §7 30-day cure (§2.3/§4.5/§7 wording
225
- adapted from Elastic License 2.0). Core prohibitions unchanged.
226
- *1.2 → 1.3 (2026-11-20): §2.3 allows non-commercial hosted/managed
227
- service (commercial service still requires written consent); added §5.5
228
- no-trademark-license. Core prohibitions unchanged.*
1
+ Elastic License 2.0
2
+
3
+ URL: https://www.elastic.co/licensing/elastic-license
4
+
5
+ ## Acceptance
6
+
7
+ By using the software, you agree to all of the terms and conditions below.
8
+
9
+ ## Copyright License
10
+
11
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
12
+ non-sublicensable, non-transferable license to use, copy, distribute, make
13
+ available, and prepare derivative works of the software, in each case subject to
14
+ the limitations and conditions below.
15
+
16
+ ## Limitations
17
+
18
+ You may not provide the software to third parties as a hosted or managed
19
+ service, where the service provides users with access to any substantial set of
20
+ the features or functionality of the software.
21
+
22
+ You may not move, change, disable, or circumvent the license key functionality
23
+ in the software, and you may not remove or obscure any functionality in the
24
+ software that is protected by the license key.
25
+
26
+ You may not alter, remove, or obscure any licensing, copyright, or other notices
27
+ of the licensor in the software. Any use of the licensor’s trademarks is subject
28
+ to applicable law.
29
+
30
+ ## Patents
31
+
32
+ The licensor grants you a license, under any patent claims the licensor can
33
+ license, or becomes able to license, to make, have made, use, sell, offer for
34
+ sale, import and have imported the software, in each case subject to the
35
+ limitations and conditions in this license. This license does not cover any
36
+ patent claims that you cause to be infringed by modifications or additions to
37
+ the software. If you or your company make any written claim that the software
38
+ infringes or contributes to infringement of any patent, your patent license for
39
+ the software granted under these terms ends immediately. If your company makes
40
+ such a claim, your patent license ends immediately for work on behalf of your
41
+ company.
42
+
43
+ ## Notices
44
+
45
+ You must ensure that anyone who gets a copy of any part of the software from you
46
+ also gets a copy of these terms.
47
+
48
+ If you modify the software, you must include in any modified copies of the
49
+ software prominent notices stating that you have modified the software.
50
+
51
+ ## No Other Rights
52
+
53
+ These terms do not imply any licenses other than those expressly granted in
54
+ these terms.
55
+
56
+ ## Termination
57
+
58
+ If you use the software in violation of these terms, such use is not licensed,
59
+ and your licenses will automatically terminate. If the licensor provides you
60
+ with a notice of your violation, and you cease all violation of this license no
61
+ later than 30 days after you receive that notice, your licenses will be
62
+ reinstated retroactively. However, if you violate these terms after such
63
+ reinstatement, any additional violation of these terms will cause your licenses
64
+ to terminate automatically and permanently.
65
+
66
+ ## No Liability
67
+
68
+ *As far as the law allows, the software comes as is, without any warranty or
69
+ condition, and the licensor will not be liable to you for any damages arising
70
+ out of these terms or the use or nature of the software, under any kind of
71
+ legal claim.*
72
+
73
+ ## Definitions
74
+
75
+ The **licensor** is the entity offering these terms, and the **software** is the
76
+ software the licensor makes available under these terms, including any portion
77
+ of it.
78
+
79
+ **you** refers to the individual or entity agreeing to these terms.
80
+
81
+ **your company** is any legal entity, sole proprietorship, or other kind of
82
+ organization that you work for, plus all organizations that have control over,
83
+ are under the control of, or are under common control with that
84
+ organization. **control** means ownership of substantially all the assets of an
85
+ entity, or the power to direct its management and policies by vote, contract, or
86
+ otherwise. Control can be direct or indirect.
87
+
88
+ **your licenses** are all the licenses granted to you for the software under
89
+ these terms.
90
+
91
+ **use** means anything you do with the software requiring one of your licenses.
92
+
93
+ **trademark** means trademarks, service marks, and similar rights.
@@ -6,8 +6,7 @@
6
6
  cd = CallDecay()
7
7
  d = cd.decide(obj="兔", goal="丰", current="兔", actions=["喂食", "放牧"])
8
8
 
9
- 许可:本包编排层 Apache-2.0;core/ 内核 AI Research Source License v1.2
10
- (非商用免费、商用需事先书面同意)。详见包内 LICENSE 与仓库 PATENTS.md。
9
+ 许可:全件 Elastic License 2.0 (SPDX: Elastic-2.0)。详见包内 LICENSE。
11
10
  """
12
11
 
13
12
  __version__ = "0.1.0"
@@ -6,7 +6,7 @@
6
6
  d = cd.decide(obj="兔", goal="丰", current="兔", actions=["喂食", "放牧"])
7
7
  cd.learn(obj="兔", act=d["act"], actual="丰", cur="兔")
8
8
 
9
- 机制本体在 core/(AI Research Source License v1.2);本文件只是编排层:
9
+ 机制本体在 core/(Elastic License 2.0);本文件只是编排层:
10
10
  known(查表直连,0 上游调用)→ llm(窄接口咨询)→ explore(回退)。
11
11
  """
12
12
 
@@ -1,228 +1,93 @@
1
- # 适用范围声明(2026-10-13 修订)
2
-
3
- 本目录(CallDecay/core,**内核层**)的全部文件,依据下述 **AI Research Source
4
- License — Version 1.3 (2026-11-20)** 授权,构成该协议所称 "Code"。要点:
5
- 非商用(研究/教学/验证/评估)免费,**90 日非生产评估明示**(§2.4,含评估期
6
- 专利不起诉承诺);**托管/管理服务明文禁止**(§2.3,无论是否收费);
7
- **商用需事先书面授权**(§2.2);**专利一律保留,本协议不授予任何专利许可**(§4);
8
- 对许可方提起专利主张 = 全部许可即刻永久终止(§4.5)。
9
-
10
- **父目录 `../LICENSE`(Apache-2.0)不适用于本目录。** 工具层(core/ 之外)
11
- 与内核层(core/)为分层许可,详见 `../PATENTS.md`、`../NOTICE`、`../CLA.md`。
12
- 本目录不含 Papers 资产,协议第 3 节(Papers)对本目录不适用。
13
- 若本目录以独立包分发而未随附仓库根 LICENSE,以下文本即完整条款。
14
-
15
- 联系:lipin5555@outlook.com
16
-
17
- ---
18
-
19
- # AI Research Source License — Version 1.3 (2026-11-20)
20
-
21
- Copyright (c) 2026 Li Pin. All rights reserved.
22
-
23
- This repository contains two distinct asset classes — **Code** and **Papers** —
24
- governed by the terms below, followed by a common **Patent Reservation**
25
- clause that applies to both.
26
-
27
- ---
28
-
29
- ## 1. Definitions
30
-
31
- - **"Code"** means the software in this repository, including but not
32
- limited to `minimal/minimal_caf.py` and its accompanying scripts,
33
- documentation files in source form, and any modifications thereof.
34
- - **"Papers"** means the scientific manuscripts in `papers/` (PDF and any
35
- HTML or source forms), including their abstracts, figures, tables, and
36
- Data Availability statements.
37
- - **"Commercial Use"** means any use intended for or directed toward
38
- commercial advantage or monetary compensation, including but not limited
39
- to: integrating the Code or Papers into a commercial product or service;
40
- selling, licensing, or distributing copies for a fee; or employing the
41
- Code or Papers in the production of goods or services offered for sale.
42
- Commercial Use **excludes** academic research, teaching, scholarly
43
- publication, verification/reproduction of reported results, and
44
- non-profit evaluation.
45
- - **"Hosted or Managed Service"** means providing the Code (original or
46
- modified, in whole or in part) to third parties as a service, where the
47
- service provides those third parties with access to any substantial set
48
- of the features or functionality of the Code, whether or not for a fee.
49
- - **"Evaluation"** means use of the Code solely to assess its
50
- functionality and performance, in non-production systems, for a
51
- continuous period of no more than ninety (90) days, by or on behalf of
52
- a single legal entity, without integration into any product or service
53
- offered to third parties.
54
- - **"Licensor"** means Li Pin.
55
- - **"You"** means any person or entity exercising the permissions granted
56
- below.
57
-
58
- ## 2. Code License (source-available; Commercial Use requires consent)
59
-
60
- ### 2.1 Grant for non-commercial use
61
-
62
- Subject to the terms of this License, the Licensor grants You a worldwide,
63
- royalty-free, non-exclusive, perpetual license to use, copy, modify,
64
- merge, and distribute the Code, and to run the Code, **for non-commercial
65
- purposes only** (research, teaching, personal study, verification, and
66
- evaluation), provided that:
67
-
68
- 1. The above copyright notice and this permission notice are included in
69
- all copies or substantial portions of the Code.
70
- 2. Modified versions are clearly marked as such.
71
-
72
- ### 2.2 Commercial Use requires prior written consent
73
-
74
- **Commercial Use of the Code — in whole or in part, original or modified —
75
- requires the prior written consent of the Licensor.** Without such
76
- consent, You may not: integrate the Code into a commercial product or
77
- service; sell or sublicense the Code or any work derived from it; or use
78
- the Code in the operation of a commercial offering.
79
-
80
- Requests for commercial consent may be directed to: lipin5555@outlook.com.
81
- The Licensor may grant, condition, or withhold consent at the Licensor's
82
- sole discretion.
83
-
84
- ### 2.3 Hosted or Managed Service
85
-
86
- **Non-commercial Hosted or Managed Service is permitted** — for example
87
- running the Code on a shared server for a team, classroom, research
88
- group, or non-profit community — provided the service is not offered for
89
- a fee and is not directed toward commercial advantage.
90
- **Providing the Code to third parties as a commercial Hosted or Managed
91
- Service requires the prior written consent of the Licensor**, whether the
92
- Code is original or modified. (Wording adapted from
93
- Elastic License 2.0, elastic.co, used as a drafting reference.)
94
-
95
- ### 2.4 Evaluation (90-day, non-production)
96
-
97
- Notwithstanding Sections 2.1 through 2.3, any entity may use the Code for
98
- an **Evaluation** without prior written consent. During the Evaluation
99
- period, the Licensor covenants not to assert any patent claim of the
100
- Licensor against Your exercise of the Section 2.1 license during that
101
- Evaluation. Conversion of an Evaluation to production use or Commercial
102
- Use requires the prior written consent of the Licensor under Section 2.2.
103
-
104
- ## 3. Papers License (Attribution + Integrity; Commercial Use requires consent)
105
-
106
- Subject to the terms of this License, the Licensor grants You a worldwide,
107
- royalty-free, non-exclusive, perpetual license to:
108
-
109
- 1. **Reproduce and distribute** the Papers for non-commercial purposes —
110
- scholarly sharing, teaching, and preprint circulation — provided You
111
- give appropriate credit to the Licensor (author name "Li Pin", the
112
- paper title, the ORCID iD 0009-0004-9509-9644, and a link to this
113
- repository or the preprint DOI).
114
- 2. **Translate, adapt, and create derivatives** of the Papers for
115
- scholarly, educational, or journalistic purposes, provided that any
116
- derivative clearly indicates it is a modification, that the original
117
- author attribution is preserved, and that no reported measurement,
118
- effect size, or verdict is altered or misrepresented.
119
- 3. **Quote and excerpt** the Papers under fair-use / fair-dealing rules.
120
-
121
- **Commercial Use of the Papers (including republication for profit or
122
- incorporation into a commercial product) requires the prior written
123
- consent of the Licensor**, except that inclusion in indexing services,
124
- citation databases, and academic aggregators is always permitted.
125
-
126
- ## 4. Patent Reservation (applies to Code AND Papers)
127
-
128
- 1. **Nothing in this License grants You any license or right under any
129
- patent** owned or controlled by the Licensor. All patent rights are
130
- expressly reserved.
131
- 2. The Licensor has filed patent applications (filing date 2026-09-05)
132
- covering the mechanisms described in the Papers and implemented in the
133
- Code, and such other subject matter as the claims may cover. The three
134
- operations (injection, decay, freezing) specified in the Papers and
135
- implemented in the Code are sufficient to verify every result reported
136
- there.
137
- 3. **Any Commercial Use that would fall within the scope of a claim of the
138
- Licensor's patents requires a separate patent license from the
139
- Licensor**, regardless of the terms of Sections 2 and 3. This License
140
- grants no implied patent license of any kind.
141
- 4. This reservation survives termination of any other provision of this
142
- License.
143
- 5. **Patent aggression terminates all licenses.** If You or Your company
144
- make any written claim that the Code, the Papers, or the mechanism
145
- disclosed therein infringes or contributes to infringement of any
146
- patent, all licenses granted to You under this License terminate
147
- immediately and permanently. (Adapted from Elastic License 2.0.)
148
-
149
- ## 5. Clarification: scope of this License
150
-
151
- For the avoidance of doubt:
152
-
153
- 1. **Scientific facts, ideas, formulas, mathematical relations, and laws**
154
- presented in the Papers or embodied in the Code are not subject to
155
- copyright and are **not restricted by this License**. This License
156
- restricts only the *expression* of the Code and Papers (copying,
157
- distributing, and modifying those specific files and texts).
158
- 2. This License therefore does not restrict Your right to **independently
159
- implement** the disclosed ideas (including the three operations) in
160
- your own code, written without copying from this repository.
161
- 3. However, an independent implementation does not avoid the patents
162
- referred to in Section 4: if Your use — commercial or otherwise — falls
163
- within the scope of a claim of the Licensor's patents, You need a
164
- patent license from the Licensor. **In particular, Commercial Use of
165
- the disclosed mechanism is subject to the Licensor's patent rights.**
166
- 4. Verification and reproduction of reported results, and citation,
167
- quotation, indexing, and academic aggregation, are always permitted
168
- and require no consent.
169
- 5. **No trademark license.** The names "MemSteward", "MemGate", and any
170
- related names, logos, or marks of the Licensor are not licensed under
171
- this License. No right to use these marks is granted; any use requires
172
- the prior written consent of the Licensor.
173
-
174
- ## 6. Disclaimer
175
-
176
- The Code and Papers are provided "as is", without warranty of any kind,
177
- express or implied, including but not limited to warranties of
178
- merchantability, fitness for a particular purpose, or non-infringement.
179
- In no event shall the Licensor be liable for any claim, damages, or other
180
- liability arising from, out of, or in connection with the Code or Papers.
181
-
182
- ## 7. Termination
183
-
184
- Any breach of Sections 2, 3, or 4 terminates Your rights under this
185
- License automatically. If the Licensor provides You with notice of Your
186
- violation, and You cease all violation of this License no later than
187
- thirty (30) days after You receive that notice, Your licenses will be
188
- reinstated retroactively; however, any violation after such reinstatement
189
- terminates all licenses automatically and permanently. The cure right of
190
- this Section does not apply to termination under Section 4.5, which is
191
- immediate and permanent. Sections 1, 4, 5, 6, and 7 survive any
192
- termination. (30-day cure wording adapted from Elastic License 2.0.)
193
-
194
- ---
195
-
196
- *This is a source-available license tailored to a research publication:
197
- non-commercial use (research, teaching, verification, 90-day
198
- non-production evaluation) is free; non-commercial team/teaching hosting is permitted while
199
- commercial hosted or managed service is prohibited; Commercial Use of
200
- the code, the papers, or the patented mechanism requires the author's
201
- written consent. For questions contact: lipin5555@outlook.com*
202
-
203
- ---
204
-
205
- **Plain-language summary**
206
-
207
- - **Code** (`minimal/`): free for research, teaching, verification, and
208
- 90-day non-production evaluation. Using it in a commercial product or
209
- service requires the author's written consent.
210
- - **Hosted/Managed Service**: non-commercial team/teaching hosting is
211
- permitted; offering this software to third parties as a commercial
212
- service requires written consent.
213
- - **Papers** (`papers/`): free to share, translate, quote, and build upon
214
- for scholarship. Commercial republication requires consent.
215
- - **Patents**: nothing here grants a patent license (except the evaluation
216
- covenant in §2.4). Commercial use of the disclosed mechanism falls under
217
- the author's patent rights (filed 2026-09-05). If you sue the author
218
- alleging patent infringement, all your licenses end immediately.
219
- - **The science is free to read and to verify**; the *commercial* use of
220
- the mechanism is what requires authorization.
221
-
222
- *Version history: 1.1 (2026-09-06) → 1.2 (2026-10-13): added §2.3
223
- hosted/managed-service prohibition, §2.4 evaluation covenant, §4.5
224
- patent-aggression termination, §7 30-day cure (§2.3/§4.5/§7 wording
225
- adapted from Elastic License 2.0). Core prohibitions unchanged.
226
- *1.2 → 1.3 (2026-11-20): §2.3 allows non-commercial hosted/managed
227
- service (commercial service still requires written consent); added §5.5
228
- no-trademark-license. Core prohibitions unchanged.*
1
+ Elastic License 2.0
2
+
3
+ URL: https://www.elastic.co/licensing/elastic-license
4
+
5
+ ## Acceptance
6
+
7
+ By using the software, you agree to all of the terms and conditions below.
8
+
9
+ ## Copyright License
10
+
11
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
12
+ non-sublicensable, non-transferable license to use, copy, distribute, make
13
+ available, and prepare derivative works of the software, in each case subject to
14
+ the limitations and conditions below.
15
+
16
+ ## Limitations
17
+
18
+ You may not provide the software to third parties as a hosted or managed
19
+ service, where the service provides users with access to any substantial set of
20
+ the features or functionality of the software.
21
+
22
+ You may not move, change, disable, or circumvent the license key functionality
23
+ in the software, and you may not remove or obscure any functionality in the
24
+ software that is protected by the license key.
25
+
26
+ You may not alter, remove, or obscure any licensing, copyright, or other notices
27
+ of the licensor in the software. Any use of the licensor’s trademarks is subject
28
+ to applicable law.
29
+
30
+ ## Patents
31
+
32
+ The licensor grants you a license, under any patent claims the licensor can
33
+ license, or becomes able to license, to make, have made, use, sell, offer for
34
+ sale, import and have imported the software, in each case subject to the
35
+ limitations and conditions in this license. This license does not cover any
36
+ patent claims that you cause to be infringed by modifications or additions to
37
+ the software. If you or your company make any written claim that the software
38
+ infringes or contributes to infringement of any patent, your patent license for
39
+ the software granted under these terms ends immediately. If your company makes
40
+ such a claim, your patent license ends immediately for work on behalf of your
41
+ company.
42
+
43
+ ## Notices
44
+
45
+ You must ensure that anyone who gets a copy of any part of the software from you
46
+ also gets a copy of these terms.
47
+
48
+ If you modify the software, you must include in any modified copies of the
49
+ software prominent notices stating that you have modified the software.
50
+
51
+ ## No Other Rights
52
+
53
+ These terms do not imply any licenses other than those expressly granted in
54
+ these terms.
55
+
56
+ ## Termination
57
+
58
+ If you use the software in violation of these terms, such use is not licensed,
59
+ and your licenses will automatically terminate. If the licensor provides you
60
+ with a notice of your violation, and you cease all violation of this license no
61
+ later than 30 days after you receive that notice, your licenses will be
62
+ reinstated retroactively. However, if you violate these terms after such
63
+ reinstatement, any additional violation of these terms will cause your licenses
64
+ to terminate automatically and permanently.
65
+
66
+ ## No Liability
67
+
68
+ *As far as the law allows, the software comes as is, without any warranty or
69
+ condition, and the licensor will not be liable to you for any damages arising
70
+ out of these terms or the use or nature of the software, under any kind of
71
+ legal claim.*
72
+
73
+ ## Definitions
74
+
75
+ The **licensor** is the entity offering these terms, and the **software** is the
76
+ software the licensor makes available under these terms, including any portion
77
+ of it.
78
+
79
+ **you** refers to the individual or entity agreeing to these terms.
80
+
81
+ **your company** is any legal entity, sole proprietorship, or other kind of
82
+ organization that you work for, plus all organizations that have control over,
83
+ are under the control of, or are under common control with that
84
+ organization. **control** means ownership of substantially all the assets of an
85
+ entity, or the power to direct its management and policies by vote, contract, or
86
+ otherwise. Control can be direct or indirect.
87
+
88
+ **your licenses** are all the licenses granted to you for the software under
89
+ these terms.
90
+
91
+ **use** means anything you do with the software requiring one of your licenses.
92
+
93
+ **trademark** means trademarks, service marks, and similar rights.