@vorionsys/atsf-core 0.3.1 → 0.4.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/dist/basis/parser.d.ts +46 -46
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/phase6/provenance.d.ts +2 -2
- package/dist/phase6/provenance.js +2 -2
- package/dist/phase6/types.d.ts +196 -196
- package/dist/trust-engine/index.d.ts +1 -2
- package/dist/trust-engine/index.d.ts.map +1 -1
- package/dist/trust-engine/index.js.map +1 -1
- package/package.json +140 -140
package/dist/basis/parser.d.ts
CHANGED
|
@@ -22,28 +22,28 @@ declare const ruleSchema: z.ZodObject<{
|
|
|
22
22
|
operator: z.ZodEnum<["equals", "not_equals", "greater_than", "less_than", "greater_than_or_equal", "less_than_or_equal", "in", "not_in", "contains", "not_contains", "matches", "exists", "not_exists"]>;
|
|
23
23
|
value: z.ZodUnknown;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
value?: unknown;
|
|
26
25
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
26
|
+
value?: unknown;
|
|
27
27
|
field?: string;
|
|
28
28
|
}, {
|
|
29
|
-
value?: unknown;
|
|
30
29
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
30
|
+
value?: unknown;
|
|
31
31
|
field?: string;
|
|
32
32
|
}>, "many">>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
intentType?: string | string[];
|
|
35
35
|
entityType?: string | string[];
|
|
36
36
|
conditions?: {
|
|
37
|
-
value?: unknown;
|
|
38
37
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
38
|
+
value?: unknown;
|
|
39
39
|
field?: string;
|
|
40
40
|
}[];
|
|
41
41
|
}, {
|
|
42
42
|
intentType?: string | string[];
|
|
43
43
|
entityType?: string | string[];
|
|
44
44
|
conditions?: {
|
|
45
|
-
value?: unknown;
|
|
46
45
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
46
|
+
value?: unknown;
|
|
47
47
|
field?: string;
|
|
48
48
|
}[];
|
|
49
49
|
}>;
|
|
@@ -69,8 +69,8 @@ declare const ruleSchema: z.ZodObject<{
|
|
|
69
69
|
}>>;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
71
|
reason?: string;
|
|
72
|
-
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
73
72
|
condition?: string;
|
|
73
|
+
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
74
74
|
escalation?: {
|
|
75
75
|
timeout?: string;
|
|
76
76
|
to?: string;
|
|
@@ -79,8 +79,8 @@ declare const ruleSchema: z.ZodObject<{
|
|
|
79
79
|
};
|
|
80
80
|
}, {
|
|
81
81
|
reason?: string;
|
|
82
|
-
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
83
82
|
condition?: string;
|
|
83
|
+
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
84
84
|
escalation?: {
|
|
85
85
|
timeout?: string;
|
|
86
86
|
to?: string;
|
|
@@ -90,25 +90,25 @@ declare const ruleSchema: z.ZodObject<{
|
|
|
90
90
|
}>, "many">;
|
|
91
91
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
metadata?: Record<string, unknown>;
|
|
93
94
|
name?: string;
|
|
94
95
|
enabled?: boolean;
|
|
95
|
-
id?: string;
|
|
96
|
-
description?: string;
|
|
97
|
-
metadata?: Record<string, unknown>;
|
|
98
96
|
when?: {
|
|
99
97
|
intentType?: string | string[];
|
|
100
98
|
entityType?: string | string[];
|
|
101
99
|
conditions?: {
|
|
102
|
-
value?: unknown;
|
|
103
100
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
101
|
+
value?: unknown;
|
|
104
102
|
field?: string;
|
|
105
103
|
}[];
|
|
106
104
|
};
|
|
107
105
|
priority?: number;
|
|
106
|
+
id?: string;
|
|
107
|
+
description?: string;
|
|
108
108
|
evaluate?: {
|
|
109
109
|
reason?: string;
|
|
110
|
-
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
111
110
|
condition?: string;
|
|
111
|
+
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
112
112
|
escalation?: {
|
|
113
113
|
timeout?: string;
|
|
114
114
|
to?: string;
|
|
@@ -117,25 +117,25 @@ declare const ruleSchema: z.ZodObject<{
|
|
|
117
117
|
};
|
|
118
118
|
}[];
|
|
119
119
|
}, {
|
|
120
|
+
metadata?: Record<string, unknown>;
|
|
120
121
|
name?: string;
|
|
121
122
|
enabled?: boolean;
|
|
122
|
-
id?: string;
|
|
123
|
-
description?: string;
|
|
124
|
-
metadata?: Record<string, unknown>;
|
|
125
123
|
when?: {
|
|
126
124
|
intentType?: string | string[];
|
|
127
125
|
entityType?: string | string[];
|
|
128
126
|
conditions?: {
|
|
129
|
-
value?: unknown;
|
|
130
127
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
128
|
+
value?: unknown;
|
|
131
129
|
field?: string;
|
|
132
130
|
}[];
|
|
133
131
|
};
|
|
134
132
|
priority?: number;
|
|
133
|
+
id?: string;
|
|
134
|
+
description?: string;
|
|
135
135
|
evaluate?: {
|
|
136
136
|
reason?: string;
|
|
137
|
-
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
138
137
|
condition?: string;
|
|
138
|
+
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
139
139
|
escalation?: {
|
|
140
140
|
timeout?: string;
|
|
141
141
|
to?: string;
|
|
@@ -165,28 +165,28 @@ declare const namespaceSchema: z.ZodObject<{
|
|
|
165
165
|
operator: z.ZodEnum<["equals", "not_equals", "greater_than", "less_than", "greater_than_or_equal", "less_than_or_equal", "in", "not_in", "contains", "not_contains", "matches", "exists", "not_exists"]>;
|
|
166
166
|
value: z.ZodUnknown;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
|
-
value?: unknown;
|
|
169
168
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
169
|
+
value?: unknown;
|
|
170
170
|
field?: string;
|
|
171
171
|
}, {
|
|
172
|
-
value?: unknown;
|
|
173
172
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
173
|
+
value?: unknown;
|
|
174
174
|
field?: string;
|
|
175
175
|
}>, "many">>;
|
|
176
176
|
}, "strip", z.ZodTypeAny, {
|
|
177
177
|
intentType?: string | string[];
|
|
178
178
|
entityType?: string | string[];
|
|
179
179
|
conditions?: {
|
|
180
|
-
value?: unknown;
|
|
181
180
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
181
|
+
value?: unknown;
|
|
182
182
|
field?: string;
|
|
183
183
|
}[];
|
|
184
184
|
}, {
|
|
185
185
|
intentType?: string | string[];
|
|
186
186
|
entityType?: string | string[];
|
|
187
187
|
conditions?: {
|
|
188
|
-
value?: unknown;
|
|
189
188
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
189
|
+
value?: unknown;
|
|
190
190
|
field?: string;
|
|
191
191
|
}[];
|
|
192
192
|
}>;
|
|
@@ -212,8 +212,8 @@ declare const namespaceSchema: z.ZodObject<{
|
|
|
212
212
|
}>>;
|
|
213
213
|
}, "strip", z.ZodTypeAny, {
|
|
214
214
|
reason?: string;
|
|
215
|
-
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
216
215
|
condition?: string;
|
|
216
|
+
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
217
217
|
escalation?: {
|
|
218
218
|
timeout?: string;
|
|
219
219
|
to?: string;
|
|
@@ -222,8 +222,8 @@ declare const namespaceSchema: z.ZodObject<{
|
|
|
222
222
|
};
|
|
223
223
|
}, {
|
|
224
224
|
reason?: string;
|
|
225
|
-
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
226
225
|
condition?: string;
|
|
226
|
+
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
227
227
|
escalation?: {
|
|
228
228
|
timeout?: string;
|
|
229
229
|
to?: string;
|
|
@@ -233,25 +233,25 @@ declare const namespaceSchema: z.ZodObject<{
|
|
|
233
233
|
}>, "many">;
|
|
234
234
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
235
235
|
}, "strip", z.ZodTypeAny, {
|
|
236
|
+
metadata?: Record<string, unknown>;
|
|
236
237
|
name?: string;
|
|
237
238
|
enabled?: boolean;
|
|
238
|
-
id?: string;
|
|
239
|
-
description?: string;
|
|
240
|
-
metadata?: Record<string, unknown>;
|
|
241
239
|
when?: {
|
|
242
240
|
intentType?: string | string[];
|
|
243
241
|
entityType?: string | string[];
|
|
244
242
|
conditions?: {
|
|
245
|
-
value?: unknown;
|
|
246
243
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
244
|
+
value?: unknown;
|
|
247
245
|
field?: string;
|
|
248
246
|
}[];
|
|
249
247
|
};
|
|
250
248
|
priority?: number;
|
|
249
|
+
id?: string;
|
|
250
|
+
description?: string;
|
|
251
251
|
evaluate?: {
|
|
252
252
|
reason?: string;
|
|
253
|
-
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
254
253
|
condition?: string;
|
|
254
|
+
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
255
255
|
escalation?: {
|
|
256
256
|
timeout?: string;
|
|
257
257
|
to?: string;
|
|
@@ -260,25 +260,25 @@ declare const namespaceSchema: z.ZodObject<{
|
|
|
260
260
|
};
|
|
261
261
|
}[];
|
|
262
262
|
}, {
|
|
263
|
+
metadata?: Record<string, unknown>;
|
|
263
264
|
name?: string;
|
|
264
265
|
enabled?: boolean;
|
|
265
|
-
id?: string;
|
|
266
|
-
description?: string;
|
|
267
|
-
metadata?: Record<string, unknown>;
|
|
268
266
|
when?: {
|
|
269
267
|
intentType?: string | string[];
|
|
270
268
|
entityType?: string | string[];
|
|
271
269
|
conditions?: {
|
|
272
|
-
value?: unknown;
|
|
273
270
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
271
|
+
value?: unknown;
|
|
274
272
|
field?: string;
|
|
275
273
|
}[];
|
|
276
274
|
};
|
|
277
275
|
priority?: number;
|
|
276
|
+
id?: string;
|
|
277
|
+
description?: string;
|
|
278
278
|
evaluate?: {
|
|
279
279
|
reason?: string;
|
|
280
|
-
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
281
280
|
condition?: string;
|
|
281
|
+
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
282
282
|
escalation?: {
|
|
283
283
|
timeout?: string;
|
|
284
284
|
to?: string;
|
|
@@ -289,26 +289,28 @@ declare const namespaceSchema: z.ZodObject<{
|
|
|
289
289
|
}>, "many">;
|
|
290
290
|
}, "strip", z.ZodTypeAny, {
|
|
291
291
|
version?: string;
|
|
292
|
+
namespace?: string;
|
|
293
|
+
description?: string;
|
|
292
294
|
rules?: {
|
|
295
|
+
metadata?: Record<string, unknown>;
|
|
293
296
|
name?: string;
|
|
294
297
|
enabled?: boolean;
|
|
295
|
-
id?: string;
|
|
296
|
-
description?: string;
|
|
297
|
-
metadata?: Record<string, unknown>;
|
|
298
298
|
when?: {
|
|
299
299
|
intentType?: string | string[];
|
|
300
300
|
entityType?: string | string[];
|
|
301
301
|
conditions?: {
|
|
302
|
-
value?: unknown;
|
|
303
302
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
303
|
+
value?: unknown;
|
|
304
304
|
field?: string;
|
|
305
305
|
}[];
|
|
306
306
|
};
|
|
307
307
|
priority?: number;
|
|
308
|
+
id?: string;
|
|
309
|
+
description?: string;
|
|
308
310
|
evaluate?: {
|
|
309
311
|
reason?: string;
|
|
310
|
-
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
311
312
|
condition?: string;
|
|
313
|
+
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
312
314
|
escalation?: {
|
|
313
315
|
timeout?: string;
|
|
314
316
|
to?: string;
|
|
@@ -317,30 +319,30 @@ declare const namespaceSchema: z.ZodObject<{
|
|
|
317
319
|
};
|
|
318
320
|
}[];
|
|
319
321
|
}[];
|
|
320
|
-
description?: string;
|
|
321
|
-
namespace?: string;
|
|
322
322
|
}, {
|
|
323
323
|
version?: string;
|
|
324
|
+
namespace?: string;
|
|
325
|
+
description?: string;
|
|
324
326
|
rules?: {
|
|
327
|
+
metadata?: Record<string, unknown>;
|
|
325
328
|
name?: string;
|
|
326
329
|
enabled?: boolean;
|
|
327
|
-
id?: string;
|
|
328
|
-
description?: string;
|
|
329
|
-
metadata?: Record<string, unknown>;
|
|
330
330
|
when?: {
|
|
331
331
|
intentType?: string | string[];
|
|
332
332
|
entityType?: string | string[];
|
|
333
333
|
conditions?: {
|
|
334
|
-
value?: unknown;
|
|
335
334
|
operator?: "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in" | "contains" | "not_contains" | "matches" | "exists" | "not_exists";
|
|
335
|
+
value?: unknown;
|
|
336
336
|
field?: string;
|
|
337
337
|
}[];
|
|
338
338
|
};
|
|
339
339
|
priority?: number;
|
|
340
|
+
id?: string;
|
|
341
|
+
description?: string;
|
|
340
342
|
evaluate?: {
|
|
341
343
|
reason?: string;
|
|
342
|
-
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
343
344
|
condition?: string;
|
|
345
|
+
result?: "allow" | "deny" | "escalate" | "limit" | "monitor" | "terminate";
|
|
344
346
|
escalation?: {
|
|
345
347
|
timeout?: string;
|
|
346
348
|
to?: string;
|
|
@@ -349,8 +351,6 @@ declare const namespaceSchema: z.ZodObject<{
|
|
|
349
351
|
};
|
|
350
352
|
}[];
|
|
351
353
|
}[];
|
|
352
|
-
description?: string;
|
|
353
|
-
namespace?: string;
|
|
354
354
|
}>;
|
|
355
355
|
export type RuleDefinition = z.infer<typeof ruleSchema>;
|
|
356
356
|
export type NamespaceDefinition = z.infer<typeof namespaceSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export * from './proof/index.js';
|
|
|
16
16
|
export { POLYGON_NETWORKS, type NetworkName, type ChainAnchorConfig, type ProofToAnchor, type AnchorResult, sha256, keccak256Concat, computeMerkleRoot, computeMerkleProof, MockChainAnchorService, createChainAnchor, } from './chain/index.js';
|
|
17
17
|
export * from './provenance/index.js';
|
|
18
18
|
export * from './trust-engine/index.js';
|
|
19
|
-
export
|
|
19
|
+
export * from './trust-engine/trust-verifier.js';
|
|
20
20
|
export * from './layers/index.js';
|
|
21
21
|
export * from './layers/implementations/index.js';
|
|
22
22
|
export * from './arbitration/index.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAGH,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EACL,aAAa,EACb,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,EACd,YAAY,EACZ,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,IAAI,EACJ,aAAa,EACb,aAAa,IAAI,kBAAkB,EACnC,UAAU,EACV,iBAAiB,EACjB,gBAAgB,IAAI,qBAAqB,GAC1C,MAAM,kBAAkB,CAAC;AAG1B,cAAc,mBAAmB,CAAC;AAGlC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,sBAAsB,CAAC;AAGrC,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EACL,gBAAgB,EAChB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,YAAY,EAEjB,MAAM,EACN,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAElB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;AAG1B,cAAc,uBAAuB,CAAC;AAGtC,cAAc,yBAAyB,CAAC;AAGxC,
|
|
1
|
+
{"version":3,"file":"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B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACV,eAAe,EACf,mBAAmB,GACpB,MAAM,gCAAgC,CAAC;AAGxC,cAAc,wBAAwB,CAAC;AAGvC,cAAc,sBAAsB,CAAC;AAGrC,cAAc,mBAAmB,CAAC;AAGlC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAG3B,cAAc,6BAA6B,CAAC;AAG5C,cAAc,yBAAyB,CAAC;AAGxC,eAAO,MAAM,OAAO,UAAU,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG5D,cAAc,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ export * from './provenance/index.js';
|
|
|
31
31
|
// Trust Engine
|
|
32
32
|
export * from './trust-engine/index.js';
|
|
33
33
|
// Trust Verifier — cryptographic state commitment & independent verification
|
|
34
|
-
export
|
|
34
|
+
export * from './trust-engine/trust-verifier.js';
|
|
35
35
|
// Typed Security Layers
|
|
36
36
|
export * from './layers/index.js';
|
|
37
37
|
// Concrete Layer Implementations (L0-L5: Input Validation Tier)
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AAEjC;;;;;;GAMG;AAEH,iCAAiC;AACjC,cAAc,mBAAmB,CAAC;AAElC,8EAA8E;AAC9E,OAAO,EACL,aAAa,EACb,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,EACd,YAAY,EACZ,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAU3B,i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AAwB;AACxB,cAAc,mBAAmB,CAAC;AAElC,gEAAgE;AAChE,cAAc,mCAAmC,CAAC;AAElD,gCAAgC;AAChC,cAAc,wBAAwB,CAAC;AAEvC,0BAA0B;AAC1B,cAAc,wBAAwB,CAAC;AAEvC,oCAAoC;AACpC,cAAc,sBAAsB,CAAC;AAErC,qFAAqF;AACrF,uHAAuH;AACvH,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAiB/B,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,gCAAgC,CAAC;AAMxC,oBAAoB;AACpB,cAAc,wBAAwB,CAAC;AAEvC,wBAAwB;AACxB,cAAc,sBAAsB,CAAC;AAErC,qBAAqB;AACrB,cAAc,mBAAmB,CAAC;AAElC,kCAAkC;AAClC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,uBAAuB,EAGvB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAE3B,yCAAyC;AACzC,cAAc,6BAA6B,CAAC;AAE5C,uDAAuD;AACvD,cAAc,yBAAyB,CAAC;AAExC,UAAU;AACV,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAE/B,8BAA8B;AAC9B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE5D,kCAAkC;AAClC,cAAc,qBAAqB,CAAC"}
|
|
@@ -25,10 +25,10 @@ export declare function verifyProvenance(provenance: AgentProvenance): Promise<{
|
|
|
25
25
|
* Default modifiers per creation type — NEGATIVE ONLY.
|
|
26
26
|
*
|
|
27
27
|
* Trust is earned through demonstrated behavior, not inherited through lineage.
|
|
28
|
-
* Every agent starts at S(0) =
|
|
28
|
+
* Every agent starts at S(0) = 0 and must pass qualification to reach T1 (200).
|
|
29
29
|
* Modifiers can only penalize risky provenance, never reward good lineage.
|
|
30
30
|
*
|
|
31
|
-
* See ATD
|
|
31
|
+
* See ATD v3 §12.1: "Trust is earned through demonstrated behavior, not inherited."
|
|
32
32
|
*/
|
|
33
33
|
export declare const DEFAULT_CREATION_MODIFIERS: Record<CreationType, number>;
|
|
34
34
|
/**
|
|
@@ -102,10 +102,10 @@ export async function verifyProvenance(provenance) {
|
|
|
102
102
|
* Default modifiers per creation type — NEGATIVE ONLY.
|
|
103
103
|
*
|
|
104
104
|
* Trust is earned through demonstrated behavior, not inherited through lineage.
|
|
105
|
-
* Every agent starts at S(0) =
|
|
105
|
+
* Every agent starts at S(0) = 0 and must pass qualification to reach T1 (200).
|
|
106
106
|
* Modifiers can only penalize risky provenance, never reward good lineage.
|
|
107
107
|
*
|
|
108
|
-
* See ATD
|
|
108
|
+
* See ATD v3 §12.1: "Trust is earned through demonstrated behavior, not inherited."
|
|
109
109
|
*/
|
|
110
110
|
export const DEFAULT_CREATION_MODIFIERS = {
|
|
111
111
|
[CreationType.FRESH]: 0, // No modifier — baseline trust
|