memgate 0.1.2 → 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 +90 -9
- package/VERSIONS.json +3 -3
- package/openclaw.plugin.json +2 -2
- package/package.json +3 -3
- package/src/kernel/calldecay/__init__.py +1 -2
- package/src/kernel/calldecay/adapter.py +1 -1
- package/src/kernel/core/LICENSE +93 -228
- package/src/vendor/calldecay-sdk/calldecay/__init__.py +1 -2
- package/src/vendor/calldecay-sdk/calldecay/adapter.py +1 -1
- package/src/vendor/core/LICENSE +93 -228
package/LICENSE
CHANGED
|
@@ -1,12 +1,93 @@
|
|
|
1
|
-
|
|
1
|
+
Elastic License 2.0
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
8
|
-
非商业托管/团队部署允许; 商用与商业托管服务须事先书面授权; 专利一律保留(§4);
|
|
9
|
-
商标不随代码授权(§5.5)。商用授权联系: lipin5555@outlook.com
|
|
5
|
+
## Acceptance
|
|
10
6
|
|
|
11
|
-
|
|
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": "
|
|
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-
|
|
17
|
-
}
|
|
16
|
+
"assembledAt": "2026-11-22T09:45:00+0800"
|
|
17
|
+
}
|
package/openclaw.plugin.json
CHANGED
|
@@ -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": "
|
|
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": "
|
|
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": "
|
|
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
|
-
|
|
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/(
|
|
9
|
+
机制本体在 core/(Elastic License 2.0);本文件只是编排层:
|
|
10
10
|
known(查表直连,0 上游调用)→ llm(窄接口咨询)→ explore(回退)。
|
|
11
11
|
"""
|
|
12
12
|
|
package/src/kernel/core/LICENSE
CHANGED
|
@@ -1,228 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
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/(
|
|
9
|
+
机制本体在 core/(Elastic License 2.0);本文件只是编排层:
|
|
10
10
|
known(查表直连,0 上游调用)→ llm(窄接口咨询)→ explore(回退)。
|
|
11
11
|
"""
|
|
12
12
|
|
package/src/vendor/core/LICENSE
CHANGED
|
@@ -1,228 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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.
|