euthyna 0.1.0 → 0.2.0
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/.agents/skills/euthyna/SKILL.md +256 -0
- package/.agents/skills/euthyna/references/bug-classes.md +130 -0
- package/.agents/skills/euthyna/references/change-audit.md +219 -0
- package/.agents/skills/euthyna/references/dependency-audit.md +116 -0
- package/.agents/skills/euthyna/references/fact-contract.md +129 -0
- package/.agents/skills/euthyna/references/fact-producers.md +274 -0
- package/.agents/skills/euthyna/references/meta-mechanisms.md +173 -0
- package/.agents/skills/euthyna/references/verification-gates.md +293 -0
- package/LICENSE +202 -202
- package/README.md +65 -17
- package/cordis.patch.yml +4 -0
- package/package.json +23 -3
- package/plugin/index.js +60 -0
- package/src/cli.js +157 -6
- package/src/contract.js +2 -1
- package/src/facts/coverage.js +55 -2
- package/src/facts/deps.js +366 -0
- package/src/facts/history.js +322 -25
- package/src/gate.js +381 -0
package/LICENSE
CHANGED
|
@@ -1,202 +1,202 @@
|
|
|
1
|
-
|
|
2
|
-
Apache License
|
|
3
|
-
Version 2.0, January 2004
|
|
4
|
-
http://www.apache.org/licenses/
|
|
5
|
-
|
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
-
|
|
8
|
-
1. Definitions.
|
|
9
|
-
|
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
-
|
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
-
the copyright owner that is granting the License.
|
|
15
|
-
|
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
-
other entities that control, are controlled by, or are under common
|
|
18
|
-
control with that entity. For the purposes of this definition,
|
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
-
direction or management of such entity, whether by contract or
|
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
-
|
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
-
exercising permissions granted by this License.
|
|
26
|
-
|
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
-
including but not limited to software source code, documentation
|
|
29
|
-
source, and configuration files.
|
|
30
|
-
|
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
|
32
|
-
transformation or translation of a Source form, including but
|
|
33
|
-
not limited to compiled object code, generated documentation,
|
|
34
|
-
and conversions to other media types.
|
|
35
|
-
|
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
-
Object form, made available under the License, as indicated by a
|
|
38
|
-
copyright notice that is included in or attached to the work
|
|
39
|
-
(an example is provided in the Appendix below).
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
-
the Work and Derivative Works thereof.
|
|
48
|
-
|
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
|
50
|
-
the original version of the Work and any modifications or additions
|
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "printed page" as the copyright notice for easier
|
|
188
|
-
identification within third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright 2026 euthyna contributors
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
See the License for the specific language governing permissions and
|
|
202
|
-
limitations under the License.
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 euthyna contributors
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -46,11 +46,14 @@ between you and the agent:
|
|
|
46
46
|
|
|
47
47
|
### 1. It measures what a model cannot
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
- **`history`** — for every line a change deletes, it
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
Three fact producers — a zero-dependency Node CLI:
|
|
50
|
+
|
|
51
|
+
- **`history`** — for every line a change deletes, it attributes the line to a commit
|
|
52
|
+
and classifies that commit from its message, its own diff, and the deleted line's
|
|
53
|
+
content (a deleted `if (!authorized)` is flagged even under a "tweaks" subject). By
|
|
54
|
+
default the attribution is blame's "last touched"; `--origins` digs for the commit
|
|
55
|
+
that *first introduced* the content with `git log -S`. If the deleted code came from
|
|
56
|
+
a security fix, that is flagged. This is git archaeology no model can do from
|
|
54
57
|
reading a diff.
|
|
55
58
|
- **`coverage`** — was this symbol *ever actually invoked* by a test? It has exactly two
|
|
56
59
|
answers: never invoked (established), or entered but that proves nothing about any
|
|
@@ -58,6 +61,12 @@ Two fact producers — a zero-dependency Node CLI:
|
|
|
58
61
|
unreachable code as covered, and "line covered → call ran" is wrong in exactly the
|
|
59
62
|
direction an audit cannot afford. The reasoning is in
|
|
60
63
|
[`docs/fact-contract.md`](https://github.com/slow-stack/euthyna/blob/main/docs/fact-contract.md) §6.2.
|
|
64
|
+
- **`deps`** — what version is a dependency *actually* pinned to? It reads the lockfile
|
|
65
|
+
(package-lock.json / Cargo.lock / go.mod) and reports the resolved versions, or that a
|
|
66
|
+
dependency is absent from the tree entirely. This is the fact that resolves
|
|
67
|
+
supply-chain claims ("the app uses a vulnerable version of X"): the version-to-CVE
|
|
68
|
+
mapping is left to the adjudication layer, exactly as the fact contract requires. See
|
|
69
|
+
[`docs/fact-contract.md`](https://github.com/slow-stack/euthyna/blob/main/docs/fact-contract.md) §6.3.
|
|
61
70
|
|
|
62
71
|
### 2. It gates what the agent claims
|
|
63
72
|
|
|
@@ -67,6 +76,14 @@ impact, and their counterparts. A claim that cannot produce evidence is **downgr
|
|
|
67
76
|
an observation**, not reported as a finding. "I'm done" becomes a package: claims,
|
|
68
77
|
evidence, and the commands that reproduce both.
|
|
69
78
|
|
|
79
|
+
The gates are not only prose. `euthyna gate <report>` reads an adjudication report and
|
|
80
|
+
mechanically checks every finding against its verdict — evidence down to `path:L123`, a
|
|
81
|
+
reproduce command, an impact statement, consistent gate statuses — and downgrades
|
|
82
|
+
whatever does not measure up. `--verify` re-runs the reproduce commands: `git` commands
|
|
83
|
+
by default, interpreter commands (`node`/`npm`/`python`) only with the explicit
|
|
84
|
+
`--allow-exec`, because an interpreter command from a report is arbitrary code and the
|
|
85
|
+
flag is the caller vouching for that report.
|
|
86
|
+
|
|
70
87
|
---
|
|
71
88
|
|
|
72
89
|
## 🖥️ Which tools it works in, and how to install
|
|
@@ -79,6 +96,8 @@ the project is deliberately zero-dependency.
|
|
|
79
96
|
| **DSH** | Copy `.agents/skills/euthyna/` into `~/.agents/skills/` (user-wide) or `<project>/.agents/skills/`. Markdown hot-reloads; no restart needed. | `npm install -g euthyna` — runs in any terminal |
|
|
80
97
|
| **Claude Code** | Copy the same folder into `~/.claude/skills/` | Same |
|
|
81
98
|
| **Codex** | The same Markdown layer works; packaging goes through Codex's plugin/marketplace format | Same |
|
|
99
|
+
| **Hermes** | Copy the same folder into `~/.hermes/skills/` under a category folder (Hermes reads the open skill standard; or install from a repo with `hermes skills install`) | Same |
|
|
100
|
+
| **OpenCode** | Copy the same folder into `~/.agents/skills/` or `~/.config/opencode/skills/` (OpenCode loads both; unknown frontmatter fields are ignored) | Same |
|
|
82
101
|
| **Any terminal** | — | `npm install -g euthyna`, then `euthyna …` |
|
|
83
102
|
|
|
84
103
|
Two honest notes:
|
|
@@ -98,8 +117,10 @@ Two honest notes:
|
|
|
98
117
|
|
|
99
118
|
```sh
|
|
100
119
|
npm install -g euthyna
|
|
101
|
-
euthyna history --repo <path> --base main --head HEAD
|
|
120
|
+
euthyna history --repo <path> --base main --head HEAD # add --origins to chase the first introducer
|
|
102
121
|
euthyna coverage --coverage coverage/coverage-final.json --symbol <name>
|
|
122
|
+
euthyna deps --repo <path> --dep <name>
|
|
123
|
+
euthyna gate <adjudication-report.md> --verify --cwd <repo> # mechanically check the six gates
|
|
103
124
|
```
|
|
104
125
|
|
|
105
126
|
Or without a global install: `npx euthyna history --repo <path> --base main`.
|
|
@@ -108,7 +129,7 @@ From a checkout instead (development):
|
|
|
108
129
|
|
|
109
130
|
```sh
|
|
110
131
|
git clone https://github.com/slow-stack/euthyna
|
|
111
|
-
cd euthyna && npm test #
|
|
132
|
+
cd euthyna && npm test # 178 tests; no install step exists
|
|
112
133
|
node bin/euthyna.js history --repo <path> --base main --head HEAD
|
|
113
134
|
```
|
|
114
135
|
|
|
@@ -122,10 +143,11 @@ What `history` reports looks like this:
|
|
|
122
143
|
复现: git blame --porcelain -L 104,104 -L 114,114 <base> -- lib/checks/.../evaluate.js
|
|
123
144
|
```
|
|
124
145
|
|
|
125
|
-
Every deleted line is blamed back to
|
|
146
|
+
Every deleted line is blamed back to a commit, and the `复现`
|
|
126
147
|
(Reproduce) command lets you re-derive the claim yourself without trusting the report.
|
|
127
|
-
Add `--json` for the structured fact report,
|
|
128
|
-
removed and are now being added back
|
|
148
|
+
Add `--json` for the structured fact report, `--pickaxe` to detect lines that were
|
|
149
|
+
removed and are now being added back, and `--origins` to attribute deleted lines to the
|
|
150
|
+
commit that first introduced their content rather than to blame's last modifier.
|
|
129
151
|
|
|
130
152
|
### Exit codes are part of the contract
|
|
131
153
|
|
|
@@ -134,10 +156,10 @@ process exit code**, which makes their output unusable as a CI gate. This one do
|
|
|
134
156
|
|
|
135
157
|
| Code | Meaning |
|
|
136
158
|
|---|---|
|
|
137
|
-
| `0` | Measured; nothing security-classified found |
|
|
138
|
-
| `10` | Measured; at least one `security`-classified fact exists |
|
|
159
|
+
| `0` | Measured; nothing security-classified found — or a `gate` report fully passes |
|
|
160
|
+
| `10` | Measured; at least one `security`-classified fact exists — or a `gate` report has findings downgraded to observations |
|
|
139
161
|
| `1` | Usage error |
|
|
140
|
-
| `2` | **Could not measure at all** — must not be read as clean |
|
|
162
|
+
| `2` | **Could not measure at all** — must not be read as clean (also: a `gate` report that cannot be read or has no findings) |
|
|
141
163
|
|
|
142
164
|
`2` being distinct from `0` is the whole point: *failing to measure* and *measuring and
|
|
143
165
|
finding nothing* are different things.
|
|
@@ -148,9 +170,9 @@ finding nothing* are different things.
|
|
|
148
170
|
|
|
149
171
|
| Piece | What it is | Status |
|
|
150
172
|
|---|---|---|
|
|
151
|
-
| **Fact producers** | A zero-dependency Node CLI that answers
|
|
173
|
+
| **Fact producers** | A zero-dependency Node CLI that answers three questions deterministically | Working, tested |
|
|
152
174
|
| **The skill** | The audit discipline itself, as loadable Markdown | Working, loadable |
|
|
153
|
-
| **The benchmark** | A blind recall measurement for the adjudication layer | Four rounds complete |
|
|
175
|
+
| **The benchmark** | A blind recall measurement for the adjudication layer | Four rounds complete; the loop is one command (`bench/adjudicate.js`), with a deterministic golden round on CI |
|
|
154
176
|
|
|
155
177
|
---
|
|
156
178
|
|
|
@@ -165,8 +187,14 @@ This project tries to be explicit about the difference. Current state:
|
|
|
165
187
|
[crewAI](https://github.com/crewAIInc/crewAI) (Python); deleted lines attributed to the
|
|
166
188
|
commits that introduced them, then checked **by hand** against `git blame`. The checks
|
|
167
189
|
developed for that comparison now run as regression tests in the suite.
|
|
168
|
-
- **`coverage` on real output in
|
|
169
|
-
distinguishing all three states correctly
|
|
190
|
+
- **`coverage` on real output in three formats** — c8/V8 JSON, classic istanbul (jest/nyc, same
|
|
191
|
+
fnMap/f shape) and coverage.py JSON (format 3) — distinguishing all three states correctly, and
|
|
192
|
+
refusing anything that is not a recognizable coverage report instead of answering "symbol not
|
|
193
|
+
located" against it.
|
|
194
|
+
- **`deps` against a real lockfile** — resolved versions reported with a line-level evidence
|
|
195
|
+
pointer into the lockfile, and absent dependencies reported as established absences rather
|
|
196
|
+
than silent skips. Verified against a populated npm v3 lockfile and fixture lockfiles for
|
|
197
|
+
Cargo.lock and go.mod.
|
|
170
198
|
- **Adjudication recall and specificity**, measured blind: **10/10 cases**, 4 real
|
|
171
199
|
vulnerabilities all caught, 6 non-vulnerabilities all correctly cleared, no abstentions.
|
|
172
200
|
Round 2 repeated every case three times — **30 adjudications, zero flips**, four of them
|
|
@@ -186,6 +214,16 @@ This project tries to be explicit about the difference. Current state:
|
|
|
186
214
|
and [`bench/RESULTS-round4.md`](https://github.com/slow-stack/euthyna/blob/main/bench/RESULTS-round4.md).
|
|
187
215
|
- **The delivery-gate mechanism**, by running the real host plugin: blocking works, and the two
|
|
188
216
|
documented ways of getting it wrong do not. See [`docs/dsh-stop-gate.md`](https://github.com/slow-stack/euthyna/blob/main/docs/dsh-stop-gate.md).
|
|
217
|
+
- **The gate discipline, mechanically.** `euthyna gate` is not a claim in prose: the suite
|
|
218
|
+
pins the contract per verdict (a TRUE POSITIVE without `path:L123` evidence, a reproduce
|
|
219
|
+
command or all six gates passing is downgraded; a FALSE POSITIVE needs a failing gate with
|
|
220
|
+
a reason), and `--verify` is tested to *not* execute an interpreter command without
|
|
221
|
+
`--allow-exec`. `test/skill.test.js` fails CI if the skill text stops declaring the six
|
|
222
|
+
gates, the three verdicts, or the command that enforces them.
|
|
223
|
+
- **The adjudication loop, end to end and on CI.** `bench/adjudicate.js` runs a whole round —
|
|
224
|
+
blind tree, one adjudicator process per case, machine-validated reports, scoring — and a
|
|
225
|
+
deterministic `golden` round runs on every push, so the pipeline (and `score.js` going red
|
|
226
|
+
on a wrong verdict) is checked without a model.
|
|
189
227
|
|
|
190
228
|
### Not verified
|
|
191
229
|
|
|
@@ -197,6 +235,16 @@ This project tries to be explicit about the difference. Current state:
|
|
|
197
235
|
- **Recall in the field.** The benchmark's real-bug cases are constructed; whether the
|
|
198
236
|
discipline helps on code nobody staged for it is unmeasured.
|
|
199
237
|
- **Source maps, bundlers, monorepos** for the coverage producer. Untested.
|
|
238
|
+
- **A real model round on CI.** The golden round is deterministic plumbing, not an
|
|
239
|
+
adjudication: it writes the ground truth into the reports by design. A model round needs
|
|
240
|
+
credentials and is non-deterministic by nature, so it stays a local/manual step
|
|
241
|
+
(`bench/README.md` documents the command) rather than a CI gate that could flake.
|
|
242
|
+
- **`--verify` as a sandbox.** It is not one, and does not claim to be: it executes the
|
|
243
|
+
report's commands with your privileges, `git` only unless `--allow-exec` is passed.
|
|
244
|
+
- **`deps` beyond three formats and version facts only.** pnpm/yarn/poetry lockfiles are
|
|
245
|
+
detected but not parsed (reported as *not evaluated*, never guessed at); go.mod reports the
|
|
246
|
+
*declared* requirement, not the resolved build version; and the producer never maps a version
|
|
247
|
+
to a CVE — that mapping is deliberately left to the adjudication layer.
|
|
200
248
|
- **Anything about the case-study targets' security** — the runs found nothing to endorse or
|
|
201
249
|
condemn; that is not a statement about either project. See
|
|
202
250
|
[`docs/case-study-crewai.md`](https://github.com/slow-stack/euthyna/blob/main/docs/case-study-crewai.md) and
|
package/cordis.patch.yml
ADDED
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "euthyna",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Deterministic fact producers for security auditing: which deleted code came from a security fix, and which changed symbols no test ever executed.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "./plugin/index.js",
|
|
6
7
|
"bin": {
|
|
7
8
|
"euthyna": "./bin/euthyna.js"
|
|
8
9
|
},
|
|
9
10
|
"files": [
|
|
10
11
|
"bin/",
|
|
11
12
|
"src/",
|
|
13
|
+
"plugin/",
|
|
14
|
+
"cordis.patch.yml",
|
|
15
|
+
".agents/skills/euthyna/",
|
|
12
16
|
"assets/euthyna.png",
|
|
13
17
|
"NOTICE.md"
|
|
14
18
|
],
|
|
@@ -25,7 +29,10 @@
|
|
|
25
29
|
"code-review",
|
|
26
30
|
"coverage",
|
|
27
31
|
"ai-agents",
|
|
28
|
-
"ai-coding-agents"
|
|
32
|
+
"ai-coding-agents",
|
|
33
|
+
"dsh-plugin",
|
|
34
|
+
"deepseek-harness",
|
|
35
|
+
"skill"
|
|
29
36
|
],
|
|
30
37
|
"author": "modusensus",
|
|
31
38
|
"license": "Apache-2.0",
|
|
@@ -36,5 +43,18 @@
|
|
|
36
43
|
"bugs": {
|
|
37
44
|
"url": "https://github.com/slow-stack/euthyna/issues"
|
|
38
45
|
},
|
|
39
|
-
"homepage": "https://github.com/slow-stack/euthyna#readme"
|
|
46
|
+
"homepage": "https://github.com/slow-stack/euthyna#readme",
|
|
47
|
+
"dsh": {
|
|
48
|
+
"bundle": {
|
|
49
|
+
"patch": "./cordis.patch.yml"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@deepseek-ai/dsh-skill-filesystem": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"@deepseek-ai/dsh-skill-filesystem": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
59
|
+
}
|
|
40
60
|
}
|