@kungfu-tech/kfd 1.0.0-alpha.2 → 1.0.0-alpha.21

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.
Files changed (44) hide show
  1. package/.buildchain/kfd-1/contract-world.witness.json +753 -0
  2. package/.buildchain/kfd-2/kfd-foundation.trust-assessment.json +238 -0
  3. package/.buildchain/kfd-2/kfd-foundation.trust-claims.json +225 -0
  4. package/.buildchain/kfd-2/public-release-trust.claim.json +131 -0
  5. package/.buildchain/kfd-3/collaboration-interface.artifact.json +774 -0
  6. package/.buildchain/kfd-3/collaboration-interface.json +421 -0
  7. package/.buildchain/kfd-3/collaboration-interface.prebuild.json +1141 -0
  8. package/README.md +153 -29
  9. package/TRADEMARKS.md +60 -0
  10. package/buildchain.contract-lock.json +86 -0
  11. package/buildchain.release-propagation.json +32 -0
  12. package/decisions/{kfd-1.md → KFD-1.md} +77 -35
  13. package/decisions/{kfd-2.md → KFD-2.md} +63 -11
  14. package/decisions/{kfd-3.md → KFD-3.md} +54 -16
  15. package/decisions/KFD-4.md +209 -0
  16. package/docs/KFD-1-usage.md +37 -0
  17. package/docs/KFD-2-usage.md +123 -0
  18. package/docs/KFD-3-usage.md +98 -0
  19. package/docs/KFD-4-usage.md +45 -0
  20. package/docs/MAP.md +20 -3
  21. package/docs/release-governance.md +28 -0
  22. package/kfd.release.json +13 -0
  23. package/package.json +28 -2
  24. package/registry.json +15 -5
  25. package/release-impact.json +113 -0
  26. package/schemas/kfd-1/contract-world.schema.json +67 -4
  27. package/schemas/kfd-1/witness.schema.json +113 -0
  28. package/schemas/kfd-2/release-claims.schema.json +331 -0
  29. package/schemas/kfd-2/release-trust-passport.schema.json +276 -0
  30. package/schemas/kfd-2/trust-assessment.schema.json +313 -0
  31. package/schemas/kfd-2/trust-claims.schema.json +334 -0
  32. package/schemas/kfd-2/trust-taxonomy.schema.json +219 -0
  33. package/schemas/kfd-3/collaboration-interface.schema.json +542 -0
  34. package/schemas/kfd-3/witness.schema.json +167 -0
  35. package/schemas/kfd-4/observer-perspective.schema.json +300 -0
  36. package/schemas/kfd-standards.schema.json +163 -0
  37. package/scripts/check.mjs +930 -0
  38. package/scripts/npm-publish-transaction.mjs +220 -0
  39. package/scripts/update-kfd-1-witness.mjs +35 -0
  40. package/scripts/update-kfd-2-claim.mjs +304 -0
  41. package/scripts/update-kfd-3-witness.mjs +261 -0
  42. package/scripts/update-site-bundle.mjs +353 -0
  43. package/site/kfd-site.json +251 -12
  44. package/standards.json +776 -15
@@ -0,0 +1,219 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://kfd.libkungfu.dev/schemas/kfd-2/trust-taxonomy.schema.json",
4
+ "title": "KFD-2 trust taxonomy",
5
+ "type": "object",
6
+ "required": [
7
+ "schemaVersion",
8
+ "contract",
9
+ "standard"
10
+ ],
11
+ "properties": {
12
+ "schemaVersion": {
13
+ "const": 1
14
+ },
15
+ "contract": {
16
+ "const": "kfd-2-trust-taxonomy"
17
+ },
18
+ "standard": {
19
+ "const": "kfd-2"
20
+ }
21
+ },
22
+ "additionalProperties": true,
23
+ "x-kfd": {
24
+ "contract": "kfd-2-trust-taxonomy",
25
+ "schemaVersion": 1,
26
+ "allowedValues": {
27
+ "riskType": [
28
+ "natural-language-semantic-risk",
29
+ "external-fact-risk",
30
+ "partial-machine-coverage-risk",
31
+ "time-sensitive-state-risk",
32
+ "manual-review-risk"
33
+ ],
34
+ "trustImpact": [
35
+ "none",
36
+ "downgrade-warning",
37
+ "fail",
38
+ "unverifiable"
39
+ ],
40
+ "machineProvability": [
41
+ "machine-verifiable",
42
+ "partially-machine-verifiable",
43
+ "not-machine-verifiable",
44
+ "not-exhaustively-enumerable"
45
+ ],
46
+ "agentAction": [
47
+ "accept-with-warning",
48
+ "semantic-review-required",
49
+ "verify-external-facts",
50
+ "request-maintainer-review",
51
+ "open-kfd-extension-issue",
52
+ "fail-release"
53
+ ]
54
+ },
55
+ "extensionPolicy": {
56
+ "unknownValuePolicy": "schema-validation-fail",
57
+ "standardAction": "open-kfd-extension-issue",
58
+ "requestPath": {
59
+ "kind": "github-issue",
60
+ "repository": "https://github.com/kungfu-systems/kfd",
61
+ "issueUrl": "https://github.com/kungfu-systems/kfd/issues/new?title=KFD-2%20trust%20taxonomy%20extension%20request",
62
+ "appliesTo": [
63
+ "riskType",
64
+ "trustImpact",
65
+ "machineProvability",
66
+ "agentAction"
67
+ ]
68
+ }
69
+ }
70
+ },
71
+ "$defs": {
72
+ "riskType": {
73
+ "enum": [
74
+ "natural-language-semantic-risk",
75
+ "external-fact-risk",
76
+ "partial-machine-coverage-risk",
77
+ "time-sensitive-state-risk",
78
+ "manual-review-risk"
79
+ ]
80
+ },
81
+ "trustImpact": {
82
+ "enum": [
83
+ "none",
84
+ "downgrade-warning",
85
+ "fail",
86
+ "unverifiable"
87
+ ]
88
+ },
89
+ "machineProvability": {
90
+ "enum": [
91
+ "machine-verifiable",
92
+ "partially-machine-verifiable",
93
+ "not-machine-verifiable",
94
+ "not-exhaustively-enumerable"
95
+ ]
96
+ },
97
+ "agentAction": {
98
+ "enum": [
99
+ "accept-with-warning",
100
+ "semantic-review-required",
101
+ "verify-external-facts",
102
+ "request-maintainer-review",
103
+ "open-kfd-extension-issue",
104
+ "fail-release"
105
+ ]
106
+ },
107
+ "extensionRequest": {
108
+ "type": "object",
109
+ "required": [
110
+ "kind",
111
+ "repository",
112
+ "issueUrl"
113
+ ],
114
+ "properties": {
115
+ "kind": {
116
+ "const": "github-issue"
117
+ },
118
+ "repository": {
119
+ "const": "https://github.com/kungfu-systems/kfd"
120
+ },
121
+ "issueUrl": {
122
+ "type": "string",
123
+ "format": "uri"
124
+ },
125
+ "appliesTo": {
126
+ "type": "array",
127
+ "items": {
128
+ "enum": [
129
+ "riskType",
130
+ "trustImpact",
131
+ "machineProvability",
132
+ "agentAction"
133
+ ]
134
+ }
135
+ }
136
+ },
137
+ "additionalProperties": true
138
+ },
139
+ "residualRisk": {
140
+ "type": "object",
141
+ "required": [
142
+ "id",
143
+ "definedBy",
144
+ "riskType",
145
+ "trustImpact",
146
+ "machineProvability",
147
+ "agentAction",
148
+ "reason",
149
+ "owner"
150
+ ],
151
+ "properties": {
152
+ "id": {
153
+ "type": "string",
154
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
155
+ },
156
+ "definedBy": {
157
+ "const": "https://kfd.libkungfu.dev/schemas/kfd-2/trust-taxonomy.schema.json#/$defs/residualRisk"
158
+ },
159
+ "riskType": {
160
+ "$ref": "#/$defs/riskType"
161
+ },
162
+ "trustImpact": {
163
+ "$ref": "#/$defs/trustImpact"
164
+ },
165
+ "machineProvability": {
166
+ "$ref": "#/$defs/machineProvability"
167
+ },
168
+ "agentAction": {
169
+ "$ref": "#/$defs/agentAction"
170
+ },
171
+ "reason": {
172
+ "type": "string",
173
+ "minLength": 1
174
+ },
175
+ "owner": {
176
+ "type": "string",
177
+ "minLength": 1
178
+ },
179
+ "extensionRequest": {
180
+ "$ref": "#/$defs/extensionRequest"
181
+ }
182
+ },
183
+ "additionalProperties": false
184
+ },
185
+ "downgradeReason": {
186
+ "type": "object",
187
+ "required": [
188
+ "id",
189
+ "riskType",
190
+ "trustImpact",
191
+ "reason"
192
+ ],
193
+ "properties": {
194
+ "id": {
195
+ "type": "string",
196
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
197
+ },
198
+ "riskType": {
199
+ "$ref": "#/$defs/riskType"
200
+ },
201
+ "trustImpact": {
202
+ "$ref": "#/$defs/trustImpact"
203
+ },
204
+ "reason": {
205
+ "type": "string",
206
+ "minLength": 1
207
+ },
208
+ "agentAction": {
209
+ "$ref": "#/$defs/agentAction"
210
+ },
211
+ "source": {
212
+ "type": "string",
213
+ "minLength": 1
214
+ }
215
+ },
216
+ "additionalProperties": false
217
+ }
218
+ }
219
+ }