@vorionsys/atsf-core 0.2.1 → 0.2.2

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 (80) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/LICENSE +190 -0
  3. package/README.md +300 -176
  4. package/dist/api/server.d.ts.map +1 -1
  5. package/dist/api/server.js +82 -0
  6. package/dist/api/server.js.map +1 -1
  7. package/dist/basis/parser.d.ts +26 -26
  8. package/dist/common/config.d.ts +63 -63
  9. package/dist/common/types.d.ts +3 -0
  10. package/dist/common/types.d.ts.map +1 -1
  11. package/dist/common/types.js.map +1 -1
  12. package/dist/governance/index.d.ts +2 -0
  13. package/dist/governance/index.d.ts.map +1 -1
  14. package/dist/governance/index.js +1 -0
  15. package/dist/governance/index.js.map +1 -1
  16. package/dist/governance/proof-bridge.d.ts +86 -0
  17. package/dist/governance/proof-bridge.d.ts.map +1 -0
  18. package/dist/governance/proof-bridge.js +139 -0
  19. package/dist/governance/proof-bridge.js.map +1 -0
  20. package/dist/index.d.ts +2 -1
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +3 -1
  23. package/dist/index.js.map +1 -1
  24. package/dist/phase6/index.d.ts +1 -1
  25. package/dist/phase6/index.d.ts.map +1 -1
  26. package/dist/phase6/index.js +2 -2
  27. package/dist/phase6/index.js.map +1 -1
  28. package/dist/phase6/presets.d.ts +13 -13
  29. package/dist/phase6/presets.d.ts.map +1 -1
  30. package/dist/phase6/presets.js +35 -35
  31. package/dist/phase6/presets.js.map +1 -1
  32. package/dist/phase6/types.d.ts +199 -197
  33. package/dist/phase6/types.d.ts.map +1 -1
  34. package/dist/phase6/types.js +19 -17
  35. package/dist/phase6/types.js.map +1 -1
  36. package/dist/proof/index.d.ts +4 -0
  37. package/dist/proof/index.d.ts.map +1 -1
  38. package/dist/proof/index.js +32 -6
  39. package/dist/proof/index.js.map +1 -1
  40. package/dist/sandbox-training/challenges.d.ts +16 -0
  41. package/dist/sandbox-training/challenges.d.ts.map +1 -0
  42. package/dist/sandbox-training/challenges.js +561 -0
  43. package/dist/sandbox-training/challenges.js.map +1 -0
  44. package/dist/sandbox-training/graduation.d.ts +25 -0
  45. package/dist/sandbox-training/graduation.d.ts.map +1 -0
  46. package/dist/sandbox-training/graduation.js +143 -0
  47. package/dist/sandbox-training/graduation.js.map +1 -0
  48. package/dist/sandbox-training/index.d.ts +19 -0
  49. package/dist/sandbox-training/index.d.ts.map +1 -0
  50. package/dist/sandbox-training/index.js +22 -0
  51. package/dist/sandbox-training/index.js.map +1 -0
  52. package/dist/sandbox-training/promotion-service.d.ts +76 -0
  53. package/dist/sandbox-training/promotion-service.d.ts.map +1 -0
  54. package/dist/sandbox-training/promotion-service.js +117 -0
  55. package/dist/sandbox-training/promotion-service.js.map +1 -0
  56. package/dist/sandbox-training/runner.d.ts +58 -0
  57. package/dist/sandbox-training/runner.d.ts.map +1 -0
  58. package/dist/sandbox-training/runner.js +388 -0
  59. package/dist/sandbox-training/runner.js.map +1 -0
  60. package/dist/sandbox-training/scorer.d.ts +40 -0
  61. package/dist/sandbox-training/scorer.d.ts.map +1 -0
  62. package/dist/sandbox-training/scorer.js +79 -0
  63. package/dist/sandbox-training/scorer.js.map +1 -0
  64. package/dist/sandbox-training/types.d.ts +162 -0
  65. package/dist/sandbox-training/types.d.ts.map +1 -0
  66. package/dist/sandbox-training/types.js +32 -0
  67. package/dist/sandbox-training/types.js.map +1 -0
  68. package/package.json +25 -7
  69. package/dist/audit/key-manager.d.ts +0 -118
  70. package/dist/audit/key-manager.d.ts.map +0 -1
  71. package/dist/audit/key-manager.js +0 -565
  72. package/dist/audit/key-manager.js.map +0 -1
  73. package/dist/carbon-aware/carbon-metrics.d.ts +0 -151
  74. package/dist/carbon-aware/carbon-metrics.d.ts.map +0 -1
  75. package/dist/carbon-aware/carbon-metrics.js +0 -370
  76. package/dist/carbon-aware/carbon-metrics.js.map +0 -1
  77. package/dist/carbon-aware/carbon-router.d.ts +0 -101
  78. package/dist/carbon-aware/carbon-router.d.ts.map +0 -1
  79. package/dist/carbon-aware/carbon-router.js +0 -400
  80. package/dist/carbon-aware/carbon-router.js.map +0 -1
@@ -99,22 +99,22 @@ export declare const deploymentContextSchema: z.ZodObject<{
99
99
  deployedBy: z.ZodString;
100
100
  immutable: z.ZodLiteral<true>;
101
101
  }, "strip", z.ZodTypeAny, {
102
- regulatoryFramework?: RegulatoryFramework;
103
102
  deploymentId?: string;
103
+ deploymentHash?: string;
104
+ regulatoryFramework?: RegulatoryFramework;
104
105
  maxAllowedTier?: TrustTier;
105
106
  allowedContextTypes?: ContextType[];
106
107
  deployedAt?: Date;
107
108
  deployedBy?: string;
108
- deploymentHash?: string;
109
109
  immutable?: true;
110
110
  }, {
111
- regulatoryFramework?: RegulatoryFramework;
112
111
  deploymentId?: string;
112
+ deploymentHash?: string;
113
+ regulatoryFramework?: RegulatoryFramework;
113
114
  maxAllowedTier?: TrustTier;
114
115
  allowedContextTypes?: ContextType[];
115
116
  deployedAt?: Date;
116
117
  deployedBy?: string;
117
- deploymentHash?: string;
118
118
  immutable?: true;
119
119
  }>;
120
120
  /**
@@ -150,22 +150,22 @@ export declare const organizationalContextSchema: z.ZodObject<{
150
150
  deployedBy: z.ZodString;
151
151
  immutable: z.ZodLiteral<true>;
152
152
  }, "strip", z.ZodTypeAny, {
153
- regulatoryFramework?: RegulatoryFramework;
154
153
  deploymentId?: string;
154
+ deploymentHash?: string;
155
+ regulatoryFramework?: RegulatoryFramework;
155
156
  maxAllowedTier?: TrustTier;
156
157
  allowedContextTypes?: ContextType[];
157
158
  deployedAt?: Date;
158
159
  deployedBy?: string;
159
- deploymentHash?: string;
160
160
  immutable?: true;
161
161
  }, {
162
- regulatoryFramework?: RegulatoryFramework;
163
162
  deploymentId?: string;
163
+ deploymentHash?: string;
164
+ regulatoryFramework?: RegulatoryFramework;
164
165
  maxAllowedTier?: TrustTier;
165
166
  allowedContextTypes?: ContextType[];
166
167
  deployedAt?: Date;
167
168
  deployedBy?: string;
168
- deploymentHash?: string;
169
169
  immutable?: true;
170
170
  }>;
171
171
  lockedAt: z.ZodOptional<z.ZodDate>;
@@ -179,56 +179,56 @@ export declare const organizationalContextSchema: z.ZodObject<{
179
179
  maxTrustTier?: TrustTier;
180
180
  deniedDomains?: string[];
181
181
  requiredAttestations?: string[];
182
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
182
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
183
183
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
184
184
  }, {
185
185
  maxTrustTier?: TrustTier;
186
186
  deniedDomains?: string[];
187
187
  requiredAttestations?: string[];
188
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
188
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
189
189
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
190
190
  }>;
191
191
  orgHash: z.ZodString;
192
192
  }, "strip", z.ZodTypeAny, {
193
+ tenantId?: string;
193
194
  constraints?: {
194
195
  maxTrustTier?: TrustTier;
195
196
  deniedDomains?: string[];
196
197
  requiredAttestations?: string[];
197
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
198
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
198
199
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
199
200
  };
200
- tenantId?: string;
201
201
  orgId?: string;
202
202
  parentDeployment?: {
203
- regulatoryFramework?: RegulatoryFramework;
204
203
  deploymentId?: string;
204
+ deploymentHash?: string;
205
+ regulatoryFramework?: RegulatoryFramework;
205
206
  maxAllowedTier?: TrustTier;
206
207
  allowedContextTypes?: ContextType[];
207
208
  deployedAt?: Date;
208
209
  deployedBy?: string;
209
- deploymentHash?: string;
210
210
  immutable?: true;
211
211
  };
212
212
  lockedAt?: Date;
213
213
  orgHash?: string;
214
214
  }, {
215
+ tenantId?: string;
215
216
  constraints?: {
216
217
  maxTrustTier?: TrustTier;
217
218
  deniedDomains?: string[];
218
219
  requiredAttestations?: string[];
219
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
220
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
220
221
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
221
222
  };
222
- tenantId?: string;
223
223
  orgId?: string;
224
224
  parentDeployment?: {
225
- regulatoryFramework?: RegulatoryFramework;
226
225
  deploymentId?: string;
226
+ deploymentHash?: string;
227
+ regulatoryFramework?: RegulatoryFramework;
227
228
  maxAllowedTier?: TrustTier;
228
229
  allowedContextTypes?: ContextType[];
229
230
  deployedAt?: Date;
230
231
  deployedBy?: string;
231
- deploymentHash?: string;
232
232
  immutable?: true;
233
233
  };
234
234
  lockedAt?: Date;
@@ -262,22 +262,22 @@ export declare const agentContextSchema: z.ZodObject<{
262
262
  deployedBy: z.ZodString;
263
263
  immutable: z.ZodLiteral<true>;
264
264
  }, "strip", z.ZodTypeAny, {
265
- regulatoryFramework?: RegulatoryFramework;
266
265
  deploymentId?: string;
266
+ deploymentHash?: string;
267
+ regulatoryFramework?: RegulatoryFramework;
267
268
  maxAllowedTier?: TrustTier;
268
269
  allowedContextTypes?: ContextType[];
269
270
  deployedAt?: Date;
270
271
  deployedBy?: string;
271
- deploymentHash?: string;
272
272
  immutable?: true;
273
273
  }, {
274
- regulatoryFramework?: RegulatoryFramework;
275
274
  deploymentId?: string;
275
+ deploymentHash?: string;
276
+ regulatoryFramework?: RegulatoryFramework;
276
277
  maxAllowedTier?: TrustTier;
277
278
  allowedContextTypes?: ContextType[];
278
279
  deployedAt?: Date;
279
280
  deployedBy?: string;
280
- deploymentHash?: string;
281
281
  immutable?: true;
282
282
  }>;
283
283
  lockedAt: z.ZodOptional<z.ZodDate>;
@@ -291,56 +291,56 @@ export declare const agentContextSchema: z.ZodObject<{
291
291
  maxTrustTier?: TrustTier;
292
292
  deniedDomains?: string[];
293
293
  requiredAttestations?: string[];
294
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
294
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
295
295
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
296
296
  }, {
297
297
  maxTrustTier?: TrustTier;
298
298
  deniedDomains?: string[];
299
299
  requiredAttestations?: string[];
300
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
300
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
301
301
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
302
302
  }>;
303
303
  orgHash: z.ZodString;
304
304
  }, "strip", z.ZodTypeAny, {
305
+ tenantId?: string;
305
306
  constraints?: {
306
307
  maxTrustTier?: TrustTier;
307
308
  deniedDomains?: string[];
308
309
  requiredAttestations?: string[];
309
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
310
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
310
311
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
311
312
  };
312
- tenantId?: string;
313
313
  orgId?: string;
314
314
  parentDeployment?: {
315
- regulatoryFramework?: RegulatoryFramework;
316
315
  deploymentId?: string;
316
+ deploymentHash?: string;
317
+ regulatoryFramework?: RegulatoryFramework;
317
318
  maxAllowedTier?: TrustTier;
318
319
  allowedContextTypes?: ContextType[];
319
320
  deployedAt?: Date;
320
321
  deployedBy?: string;
321
- deploymentHash?: string;
322
322
  immutable?: true;
323
323
  };
324
324
  lockedAt?: Date;
325
325
  orgHash?: string;
326
326
  }, {
327
+ tenantId?: string;
327
328
  constraints?: {
328
329
  maxTrustTier?: TrustTier;
329
330
  deniedDomains?: string[];
330
331
  requiredAttestations?: string[];
331
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
332
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
332
333
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
333
334
  };
334
- tenantId?: string;
335
335
  orgId?: string;
336
336
  parentDeployment?: {
337
- regulatoryFramework?: RegulatoryFramework;
338
337
  deploymentId?: string;
338
+ deploymentHash?: string;
339
+ regulatoryFramework?: RegulatoryFramework;
339
340
  maxAllowedTier?: TrustTier;
340
341
  allowedContextTypes?: ContextType[];
341
342
  deployedAt?: Date;
342
343
  deployedBy?: string;
343
- deploymentHash?: string;
344
344
  immutable?: true;
345
345
  };
346
346
  lockedAt?: Date;
@@ -351,62 +351,62 @@ export declare const agentContextSchema: z.ZodObject<{
351
351
  createdBy: z.ZodString;
352
352
  contextHash: z.ZodString;
353
353
  }, "strip", z.ZodTypeAny, {
354
- agentId?: string;
355
- contextType?: ContextType;
356
354
  createdAt?: Date;
357
- createdBy?: string;
355
+ agentId?: string;
358
356
  parentOrg?: {
357
+ tenantId?: string;
359
358
  constraints?: {
360
359
  maxTrustTier?: TrustTier;
361
360
  deniedDomains?: string[];
362
361
  requiredAttestations?: string[];
363
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
362
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
364
363
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
365
364
  };
366
- tenantId?: string;
367
365
  orgId?: string;
368
366
  parentDeployment?: {
369
- regulatoryFramework?: RegulatoryFramework;
370
367
  deploymentId?: string;
368
+ deploymentHash?: string;
369
+ regulatoryFramework?: RegulatoryFramework;
371
370
  maxAllowedTier?: TrustTier;
372
371
  allowedContextTypes?: ContextType[];
373
372
  deployedAt?: Date;
374
373
  deployedBy?: string;
375
- deploymentHash?: string;
376
374
  immutable?: true;
377
375
  };
378
376
  lockedAt?: Date;
379
377
  orgHash?: string;
380
378
  };
379
+ contextType?: ContextType;
380
+ createdBy?: string;
381
381
  contextHash?: string;
382
382
  }, {
383
- agentId?: string;
384
- contextType?: ContextType;
385
383
  createdAt?: Date;
386
- createdBy?: string;
384
+ agentId?: string;
387
385
  parentOrg?: {
386
+ tenantId?: string;
388
387
  constraints?: {
389
388
  maxTrustTier?: TrustTier;
390
389
  deniedDomains?: string[];
391
390
  requiredAttestations?: string[];
392
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
391
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
393
392
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
394
393
  };
395
- tenantId?: string;
396
394
  orgId?: string;
397
395
  parentDeployment?: {
398
- regulatoryFramework?: RegulatoryFramework;
399
396
  deploymentId?: string;
397
+ deploymentHash?: string;
398
+ regulatoryFramework?: RegulatoryFramework;
400
399
  maxAllowedTier?: TrustTier;
401
400
  allowedContextTypes?: ContextType[];
402
401
  deployedAt?: Date;
403
402
  deployedBy?: string;
404
- deploymentHash?: string;
405
403
  immutable?: true;
406
404
  };
407
405
  lockedAt?: Date;
408
406
  orgHash?: string;
409
407
  };
408
+ contextType?: ContextType;
409
+ createdBy?: string;
410
410
  contextHash?: string;
411
411
  }>;
412
412
  /**
@@ -440,22 +440,22 @@ export declare const operationContextSchema: z.ZodObject<{
440
440
  deployedBy: z.ZodString;
441
441
  immutable: z.ZodLiteral<true>;
442
442
  }, "strip", z.ZodTypeAny, {
443
- regulatoryFramework?: RegulatoryFramework;
444
443
  deploymentId?: string;
444
+ deploymentHash?: string;
445
+ regulatoryFramework?: RegulatoryFramework;
445
446
  maxAllowedTier?: TrustTier;
446
447
  allowedContextTypes?: ContextType[];
447
448
  deployedAt?: Date;
448
449
  deployedBy?: string;
449
- deploymentHash?: string;
450
450
  immutable?: true;
451
451
  }, {
452
- regulatoryFramework?: RegulatoryFramework;
453
452
  deploymentId?: string;
453
+ deploymentHash?: string;
454
+ regulatoryFramework?: RegulatoryFramework;
454
455
  maxAllowedTier?: TrustTier;
455
456
  allowedContextTypes?: ContextType[];
456
457
  deployedAt?: Date;
457
458
  deployedBy?: string;
458
- deploymentHash?: string;
459
459
  immutable?: true;
460
460
  }>;
461
461
  lockedAt: z.ZodOptional<z.ZodDate>;
@@ -469,56 +469,56 @@ export declare const operationContextSchema: z.ZodObject<{
469
469
  maxTrustTier?: TrustTier;
470
470
  deniedDomains?: string[];
471
471
  requiredAttestations?: string[];
472
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
472
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
473
473
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
474
474
  }, {
475
475
  maxTrustTier?: TrustTier;
476
476
  deniedDomains?: string[];
477
477
  requiredAttestations?: string[];
478
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
478
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
479
479
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
480
480
  }>;
481
481
  orgHash: z.ZodString;
482
482
  }, "strip", z.ZodTypeAny, {
483
+ tenantId?: string;
483
484
  constraints?: {
484
485
  maxTrustTier?: TrustTier;
485
486
  deniedDomains?: string[];
486
487
  requiredAttestations?: string[];
487
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
488
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
488
489
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
489
490
  };
490
- tenantId?: string;
491
491
  orgId?: string;
492
492
  parentDeployment?: {
493
- regulatoryFramework?: RegulatoryFramework;
494
493
  deploymentId?: string;
494
+ deploymentHash?: string;
495
+ regulatoryFramework?: RegulatoryFramework;
495
496
  maxAllowedTier?: TrustTier;
496
497
  allowedContextTypes?: ContextType[];
497
498
  deployedAt?: Date;
498
499
  deployedBy?: string;
499
- deploymentHash?: string;
500
500
  immutable?: true;
501
501
  };
502
502
  lockedAt?: Date;
503
503
  orgHash?: string;
504
504
  }, {
505
+ tenantId?: string;
505
506
  constraints?: {
506
507
  maxTrustTier?: TrustTier;
507
508
  deniedDomains?: string[];
508
509
  requiredAttestations?: string[];
509
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
510
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
510
511
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
511
512
  };
512
- tenantId?: string;
513
513
  orgId?: string;
514
514
  parentDeployment?: {
515
- regulatoryFramework?: RegulatoryFramework;
516
515
  deploymentId?: string;
516
+ deploymentHash?: string;
517
+ regulatoryFramework?: RegulatoryFramework;
517
518
  maxAllowedTier?: TrustTier;
518
519
  allowedContextTypes?: ContextType[];
519
520
  deployedAt?: Date;
520
521
  deployedBy?: string;
521
- deploymentHash?: string;
522
522
  immutable?: true;
523
523
  };
524
524
  lockedAt?: Date;
@@ -529,62 +529,62 @@ export declare const operationContextSchema: z.ZodObject<{
529
529
  createdBy: z.ZodString;
530
530
  contextHash: z.ZodString;
531
531
  }, "strip", z.ZodTypeAny, {
532
- agentId?: string;
533
- contextType?: ContextType;
534
532
  createdAt?: Date;
535
- createdBy?: string;
533
+ agentId?: string;
536
534
  parentOrg?: {
535
+ tenantId?: string;
537
536
  constraints?: {
538
537
  maxTrustTier?: TrustTier;
539
538
  deniedDomains?: string[];
540
539
  requiredAttestations?: string[];
541
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
540
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
542
541
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
543
542
  };
544
- tenantId?: string;
545
543
  orgId?: string;
546
544
  parentDeployment?: {
547
- regulatoryFramework?: RegulatoryFramework;
548
545
  deploymentId?: string;
546
+ deploymentHash?: string;
547
+ regulatoryFramework?: RegulatoryFramework;
549
548
  maxAllowedTier?: TrustTier;
550
549
  allowedContextTypes?: ContextType[];
551
550
  deployedAt?: Date;
552
551
  deployedBy?: string;
553
- deploymentHash?: string;
554
552
  immutable?: true;
555
553
  };
556
554
  lockedAt?: Date;
557
555
  orgHash?: string;
558
556
  };
557
+ contextType?: ContextType;
558
+ createdBy?: string;
559
559
  contextHash?: string;
560
560
  }, {
561
- agentId?: string;
562
- contextType?: ContextType;
563
561
  createdAt?: Date;
564
- createdBy?: string;
562
+ agentId?: string;
565
563
  parentOrg?: {
564
+ tenantId?: string;
566
565
  constraints?: {
567
566
  maxTrustTier?: TrustTier;
568
567
  deniedDomains?: string[];
569
568
  requiredAttestations?: string[];
570
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
569
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
571
570
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
572
571
  };
573
- tenantId?: string;
574
572
  orgId?: string;
575
573
  parentDeployment?: {
576
- regulatoryFramework?: RegulatoryFramework;
577
574
  deploymentId?: string;
575
+ deploymentHash?: string;
576
+ regulatoryFramework?: RegulatoryFramework;
578
577
  maxAllowedTier?: TrustTier;
579
578
  allowedContextTypes?: ContextType[];
580
579
  deployedAt?: Date;
581
580
  deployedBy?: string;
582
- deploymentHash?: string;
583
581
  immutable?: true;
584
582
  };
585
583
  lockedAt?: Date;
586
584
  orgHash?: string;
587
585
  };
586
+ contextType?: ContextType;
587
+ createdBy?: string;
588
588
  contextHash?: string;
589
589
  }>;
590
590
  requestMetadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -594,74 +594,74 @@ export declare const operationContextSchema: z.ZodObject<{
594
594
  ephemeral: z.ZodLiteral<true>;
595
595
  }, "strip", z.ZodTypeAny, {
596
596
  correlationId?: string;
597
- expiresAt?: Date;
598
597
  startedAt?: Date;
598
+ expiresAt?: Date;
599
599
  operationId?: string;
600
600
  parentAgent?: {
601
- agentId?: string;
602
- contextType?: ContextType;
603
601
  createdAt?: Date;
604
- createdBy?: string;
602
+ agentId?: string;
605
603
  parentOrg?: {
604
+ tenantId?: string;
606
605
  constraints?: {
607
606
  maxTrustTier?: TrustTier;
608
607
  deniedDomains?: string[];
609
608
  requiredAttestations?: string[];
610
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
609
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
611
610
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
612
611
  };
613
- tenantId?: string;
614
612
  orgId?: string;
615
613
  parentDeployment?: {
616
- regulatoryFramework?: RegulatoryFramework;
617
614
  deploymentId?: string;
615
+ deploymentHash?: string;
616
+ regulatoryFramework?: RegulatoryFramework;
618
617
  maxAllowedTier?: TrustTier;
619
618
  allowedContextTypes?: ContextType[];
620
619
  deployedAt?: Date;
621
620
  deployedBy?: string;
622
- deploymentHash?: string;
623
621
  immutable?: true;
624
622
  };
625
623
  lockedAt?: Date;
626
624
  orgHash?: string;
627
625
  };
626
+ contextType?: ContextType;
627
+ createdBy?: string;
628
628
  contextHash?: string;
629
629
  };
630
630
  requestMetadata?: Record<string, unknown>;
631
631
  ephemeral?: true;
632
632
  }, {
633
633
  correlationId?: string;
634
- expiresAt?: Date;
635
634
  startedAt?: Date;
635
+ expiresAt?: Date;
636
636
  operationId?: string;
637
637
  parentAgent?: {
638
- agentId?: string;
639
- contextType?: ContextType;
640
638
  createdAt?: Date;
641
- createdBy?: string;
639
+ agentId?: string;
642
640
  parentOrg?: {
641
+ tenantId?: string;
643
642
  constraints?: {
644
643
  maxTrustTier?: TrustTier;
645
644
  deniedDomains?: string[];
646
645
  requiredAttestations?: string[];
647
- dataClassification?: "internal" | "public" | "confidential" | "restricted";
646
+ dataClassification?: "public" | "internal" | "confidential" | "restricted";
648
647
  auditLevel?: "minimal" | "standard" | "comprehensive" | "forensic";
649
648
  };
650
- tenantId?: string;
651
649
  orgId?: string;
652
650
  parentDeployment?: {
653
- regulatoryFramework?: RegulatoryFramework;
654
651
  deploymentId?: string;
652
+ deploymentHash?: string;
653
+ regulatoryFramework?: RegulatoryFramework;
655
654
  maxAllowedTier?: TrustTier;
656
655
  allowedContextTypes?: ContextType[];
657
656
  deployedAt?: Date;
658
657
  deployedBy?: string;
659
- deploymentHash?: string;
660
658
  immutable?: true;
661
659
  };
662
660
  lockedAt?: Date;
663
661
  orgHash?: string;
664
662
  };
663
+ contextType?: ContextType;
664
+ createdBy?: string;
665
665
  contextHash?: string;
666
666
  };
667
667
  requestMetadata?: Record<string, unknown>;
@@ -681,7 +681,7 @@ export interface ContextValidationResult {
681
681
  /**
682
682
  * Preset source tier
683
683
  */
684
- export type PresetSource = 'aci' | 'vorion' | 'axiom';
684
+ export type PresetSource = 'basis' | 'vorion' | 'axiom';
685
685
  /**
686
686
  * Trust dimension weights (sum to 1.0)
687
687
  */
@@ -699,27 +699,27 @@ export declare const trustWeightsSchema: z.ZodEffects<z.ZodObject<{
699
699
  governance: z.ZodNumber;
700
700
  context: z.ZodNumber;
701
701
  }, "strip", z.ZodTypeAny, {
702
+ context?: number;
702
703
  governance?: number;
703
704
  capability?: number;
704
- context?: number;
705
705
  observability?: number;
706
706
  behavior?: number;
707
707
  }, {
708
+ context?: number;
708
709
  governance?: number;
709
710
  capability?: number;
710
- context?: number;
711
711
  observability?: number;
712
712
  behavior?: number;
713
713
  }>, {
714
+ context?: number;
714
715
  governance?: number;
715
716
  capability?: number;
716
- context?: number;
717
717
  observability?: number;
718
718
  behavior?: number;
719
719
  }, {
720
+ context?: number;
720
721
  governance?: number;
721
722
  capability?: number;
722
- context?: number;
723
723
  observability?: number;
724
724
  behavior?: number;
725
725
  }>;
@@ -754,27 +754,27 @@ export declare const trustPresetSchema: z.ZodObject<{
754
754
  governance: z.ZodNumber;
755
755
  context: z.ZodNumber;
756
756
  }, "strip", z.ZodTypeAny, {
757
+ context?: number;
757
758
  governance?: number;
758
759
  capability?: number;
759
- context?: number;
760
760
  observability?: number;
761
761
  behavior?: number;
762
762
  }, {
763
+ context?: number;
763
764
  governance?: number;
764
765
  capability?: number;
765
- context?: number;
766
766
  observability?: number;
767
767
  behavior?: number;
768
768
  }>, {
769
+ context?: number;
769
770
  governance?: number;
770
771
  capability?: number;
771
- context?: number;
772
772
  observability?: number;
773
773
  behavior?: number;
774
774
  }, {
775
+ context?: number;
775
776
  governance?: number;
776
777
  capability?: number;
777
- context?: number;
778
778
  observability?: number;
779
779
  behavior?: number;
780
780
  }>;
@@ -787,15 +787,15 @@ export declare const trustPresetSchema: z.ZodObject<{
787
787
  governance: z.ZodOptional<z.ZodNumber>;
788
788
  context: z.ZodOptional<z.ZodNumber>;
789
789
  }, "strip", z.ZodTypeAny, {
790
+ context?: number;
790
791
  governance?: number;
791
792
  capability?: number;
792
- context?: number;
793
793
  observability?: number;
794
794
  behavior?: number;
795
795
  }, {
796
+ context?: number;
796
797
  governance?: number;
797
798
  capability?: number;
798
- context?: number;
799
799
  observability?: number;
800
800
  behavior?: number;
801
801
  }>>;
@@ -804,56 +804,56 @@ export declare const trustPresetSchema: z.ZodObject<{
804
804
  presetHash: z.ZodString;
805
805
  comment: z.ZodOptional<z.ZodString>;
806
806
  }, "strip", z.ZodTypeAny, {
807
- source?: "vorion" | "aci" | "axiom";
808
807
  name?: string;
809
808
  version?: number;
810
809
  description?: string;
811
810
  createdAt?: Date;
812
811
  createdBy?: string;
813
- presetHash?: string;
814
812
  presetId?: string;
813
+ source?: "vorion" | "axiom" | "aci";
815
814
  weights?: {
815
+ context?: number;
816
816
  governance?: number;
817
817
  capability?: number;
818
- context?: number;
819
818
  observability?: number;
820
819
  behavior?: number;
821
820
  };
822
821
  parentPresetId?: string;
823
822
  parentHash?: string;
824
823
  derivationDelta?: {
824
+ context?: number;
825
825
  governance?: number;
826
826
  capability?: number;
827
- context?: number;
828
827
  observability?: number;
829
828
  behavior?: number;
830
829
  };
830
+ presetHash?: string;
831
831
  comment?: string;
832
832
  }, {
833
- source?: "vorion" | "aci" | "axiom";
834
833
  name?: string;
835
834
  version?: number;
836
835
  description?: string;
837
836
  createdAt?: Date;
838
837
  createdBy?: string;
839
- presetHash?: string;
840
838
  presetId?: string;
839
+ source?: "vorion" | "axiom" | "aci";
841
840
  weights?: {
841
+ context?: number;
842
842
  governance?: number;
843
843
  capability?: number;
844
- context?: number;
845
844
  observability?: number;
846
845
  behavior?: number;
847
846
  };
848
847
  parentPresetId?: string;
849
848
  parentHash?: string;
850
849
  derivationDelta?: {
850
+ context?: number;
851
851
  governance?: number;
852
852
  capability?: number;
853
- context?: number;
854
853
  observability?: number;
855
854
  behavior?: number;
856
855
  };
856
+ presetHash?: string;
857
857
  comment?: string;
858
858
  }>;
859
859
  /**
@@ -875,18 +875,18 @@ export declare const presetLineageSchema: z.ZodObject<{
875
875
  verifiedAt: z.ZodOptional<z.ZodDate>;
876
876
  verifiedBy: z.ZodOptional<z.ZodString>;
877
877
  }, "strip", z.ZodTypeAny, {
878
+ verifiedAt?: Date;
878
879
  chain?: string[];
879
880
  leafPresetId?: string;
880
881
  hashes?: string[];
881
882
  verified?: boolean;
882
- verifiedAt?: Date;
883
883
  verifiedBy?: string;
884
884
  }, {
885
+ verifiedAt?: Date;
885
886
  chain?: string[];
886
887
  leafPresetId?: string;
887
888
  hashes?: string[];
888
889
  verified?: boolean;
889
- verifiedAt?: Date;
890
890
  verifiedBy?: string;
891
891
  }>;
892
892
  /**
@@ -910,21 +910,21 @@ export declare const agentProvenanceSchema: z.ZodObject<{
910
910
  createdBy: z.ZodString;
911
911
  provenanceHash: z.ZodString;
912
912
  }, "strip", z.ZodTypeAny, {
913
- agentId?: string;
914
913
  createdAt?: Date;
914
+ provenanceHash?: string;
915
+ agentId?: string;
915
916
  createdBy?: string;
916
917
  creationType?: CreationType;
917
918
  parentAgentId?: string;
918
919
  parentProvenanceHash?: string;
919
- provenanceHash?: string;
920
920
  }, {
921
- agentId?: string;
922
921
  createdAt?: Date;
922
+ provenanceHash?: string;
923
+ agentId?: string;
923
924
  createdBy?: string;
924
925
  creationType?: CreationType;
925
926
  parentAgentId?: string;
926
927
  parentProvenanceHash?: string;
927
- provenanceHash?: string;
928
928
  }>;
929
929
  /**
930
930
  * Creation modifier policy (MUTABLE - can evolve independently)
@@ -962,11 +962,11 @@ export declare const creationModifierPolicySchema: z.ZodObject<{
962
962
  min: z.ZodNumber;
963
963
  max: z.ZodNumber;
964
964
  }, "strip", z.ZodTypeAny, {
965
- max?: number;
966
965
  min?: number;
967
- }, {
968
966
  max?: number;
967
+ }, {
969
968
  min?: number;
969
+ max?: number;
970
970
  }>>;
971
971
  trustedSources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
972
972
  requiredAttestations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -974,16 +974,16 @@ export declare const creationModifierPolicySchema: z.ZodObject<{
974
974
  requiredAttestations?: string[];
975
975
  parentCreationType?: CreationType;
976
976
  parentTrustScore?: {
977
- max?: number;
978
977
  min?: number;
978
+ max?: number;
979
979
  };
980
980
  trustedSources?: string[];
981
981
  }, {
982
982
  requiredAttestations?: string[];
983
983
  parentCreationType?: CreationType;
984
984
  parentTrustScore?: {
985
- max?: number;
986
985
  min?: number;
986
+ max?: number;
987
987
  };
988
988
  trustedSources?: string[];
989
989
  }>>;
@@ -999,8 +999,8 @@ export declare const creationModifierPolicySchema: z.ZodObject<{
999
999
  requiredAttestations?: string[];
1000
1000
  parentCreationType?: CreationType;
1001
1001
  parentTrustScore?: {
1002
- max?: number;
1003
1002
  min?: number;
1003
+ max?: number;
1004
1004
  };
1005
1005
  trustedSources?: string[];
1006
1006
  };
@@ -1019,8 +1019,8 @@ export declare const creationModifierPolicySchema: z.ZodObject<{
1019
1019
  requiredAttestations?: string[];
1020
1020
  parentCreationType?: CreationType;
1021
1021
  parentTrustScore?: {
1022
- max?: number;
1023
1022
  min?: number;
1023
+ max?: number;
1024
1024
  };
1025
1025
  trustedSources?: string[];
1026
1026
  };
@@ -1059,9 +1059,9 @@ export declare const modifierEvaluationRecordSchema: z.ZodObject<{
1059
1059
  evaluatedAt: z.ZodDate;
1060
1060
  evaluationHash: z.ZodString;
1061
1061
  }, "strip", z.ZodTypeAny, {
1062
- agentId?: string;
1063
1062
  evaluatedAt?: Date;
1064
1063
  provenanceHash?: string;
1064
+ agentId?: string;
1065
1065
  policyId?: string;
1066
1066
  evaluationId?: string;
1067
1067
  policyVersion?: number;
@@ -1069,9 +1069,9 @@ export declare const modifierEvaluationRecordSchema: z.ZodObject<{
1069
1069
  conditionsMatched?: string[];
1070
1070
  evaluationHash?: string;
1071
1071
  }, {
1072
- agentId?: string;
1073
1072
  evaluatedAt?: Date;
1074
1073
  provenanceHash?: string;
1074
+ agentId?: string;
1075
1075
  policyId?: string;
1076
1076
  evaluationId?: string;
1077
1077
  policyVersion?: number;
@@ -1122,11 +1122,11 @@ export declare const trustComputationEventSchema: z.ZodObject<{
1122
1122
  constraint: z.ZodString;
1123
1123
  }, "strip", z.ZodTypeAny, {
1124
1124
  value?: number;
1125
- type?: "context" | "organizational" | "deployment" | "attestation";
1125
+ type?: "context" | "deployment" | "organizational" | "attestation";
1126
1126
  constraint?: string;
1127
1127
  }, {
1128
1128
  value?: number;
1129
- type?: "context" | "organizational" | "deployment" | "attestation";
1129
+ type?: "context" | "deployment" | "organizational" | "attestation";
1130
1130
  constraint?: string;
1131
1131
  }>>;
1132
1132
  enforcementLayer: z.ZodEnum<["kernel", "policy", "regulatory"]>;
@@ -1141,20 +1141,20 @@ export declare const trustComputationEventSchema: z.ZodObject<{
1141
1141
  }, "strip", z.ZodTypeAny, {
1142
1142
  timestamp?: Date;
1143
1143
  agentId?: string;
1144
+ contextType?: ContextType;
1144
1145
  eventId?: string;
1145
1146
  rawScore?: number;
1146
1147
  clampedScore?: number;
1147
1148
  ceilingApplied?: boolean;
1148
1149
  ceilingSource?: {
1149
1150
  value?: number;
1150
- type?: "context" | "organizational" | "deployment" | "attestation";
1151
+ type?: "context" | "deployment" | "organizational" | "attestation";
1151
1152
  constraint?: string;
1152
1153
  };
1153
1154
  enforcementLayer?: "policy" | "kernel" | "regulatory";
1154
1155
  kernelValidated?: boolean;
1155
1156
  policyValidated?: boolean;
1156
1157
  regulatoryLogged?: boolean;
1157
- contextType?: ContextType;
1158
1158
  contextCeiling?: number;
1159
1159
  effectiveTier?: TrustTier;
1160
1160
  eventHash?: string;
@@ -1162,20 +1162,20 @@ export declare const trustComputationEventSchema: z.ZodObject<{
1162
1162
  }, {
1163
1163
  timestamp?: Date;
1164
1164
  agentId?: string;
1165
+ contextType?: ContextType;
1165
1166
  eventId?: string;
1166
1167
  rawScore?: number;
1167
1168
  clampedScore?: number;
1168
1169
  ceilingApplied?: boolean;
1169
1170
  ceilingSource?: {
1170
1171
  value?: number;
1171
- type?: "context" | "organizational" | "deployment" | "attestation";
1172
+ type?: "context" | "deployment" | "organizational" | "attestation";
1172
1173
  constraint?: string;
1173
1174
  };
1174
1175
  enforcementLayer?: "policy" | "kernel" | "regulatory";
1175
1176
  kernelValidated?: boolean;
1176
1177
  policyValidated?: boolean;
1177
1178
  regulatoryLogged?: boolean;
1178
- contextType?: ContextType;
1179
1179
  contextCeiling?: number;
1180
1180
  effectiveTier?: TrustTier;
1181
1181
  eventHash?: string;
@@ -1222,15 +1222,15 @@ export declare const regulatoryAuditEntrySchema: z.ZodObject<{
1222
1222
  }, "strip", z.ZodTypeAny, {
1223
1223
  timestamp?: Date;
1224
1224
  agentId?: string;
1225
+ regulatoryFramework?: RegulatoryFramework;
1225
1226
  rawScore?: number;
1226
1227
  clampedScore?: number;
1227
- complianceStatus?: "violation" | "warning" | "compliant";
1228
1228
  entryId?: string;
1229
1229
  variance?: number;
1230
1230
  varianceAnomaly?: boolean;
1231
1231
  frequencyAnomaly?: boolean;
1232
1232
  patternAnomaly?: boolean;
1233
- regulatoryFramework?: RegulatoryFramework;
1233
+ complianceStatus?: "warning" | "compliant" | "violation";
1234
1234
  retentionRequired?: boolean;
1235
1235
  retentionUntil?: Date;
1236
1236
  entryHash?: string;
@@ -1239,15 +1239,15 @@ export declare const regulatoryAuditEntrySchema: z.ZodObject<{
1239
1239
  }, {
1240
1240
  timestamp?: Date;
1241
1241
  agentId?: string;
1242
+ regulatoryFramework?: RegulatoryFramework;
1242
1243
  rawScore?: number;
1243
1244
  clampedScore?: number;
1244
- complianceStatus?: "violation" | "warning" | "compliant";
1245
1245
  entryId?: string;
1246
1246
  variance?: number;
1247
1247
  varianceAnomaly?: boolean;
1248
1248
  frequencyAnomaly?: boolean;
1249
1249
  patternAnomaly?: boolean;
1250
- regulatoryFramework?: RegulatoryFramework;
1250
+ complianceStatus?: "warning" | "compliant" | "violation";
1251
1251
  retentionRequired?: boolean;
1252
1252
  retentionUntil?: Date;
1253
1253
  entryHash?: string;
@@ -1322,62 +1322,62 @@ export declare const roleGatePolicySchema: z.ZodObject<{
1322
1322
  }>>;
1323
1323
  requiresAttestation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1324
1324
  }, "strip", z.ZodTypeAny, {
1325
+ roles?: AgentRole[];
1326
+ tiers?: TrustTier[];
1327
+ contextTypes?: ContextType[];
1328
+ domains?: string[];
1325
1329
  timeWindow?: {
1326
1330
  start?: string;
1327
1331
  end?: string;
1328
1332
  };
1329
- domains?: string[];
1330
1333
  requiresAttestation?: string[];
1334
+ }, {
1331
1335
  roles?: AgentRole[];
1332
1336
  tiers?: TrustTier[];
1333
1337
  contextTypes?: ContextType[];
1334
- }, {
1338
+ domains?: string[];
1335
1339
  timeWindow?: {
1336
1340
  start?: string;
1337
1341
  end?: string;
1338
1342
  };
1339
- domains?: string[];
1340
1343
  requiresAttestation?: string[];
1341
- roles?: AgentRole[];
1342
- tiers?: TrustTier[];
1343
- contextTypes?: ContextType[];
1344
1344
  }>;
1345
1345
  action: z.ZodEnum<["ALLOW", "DENY", "ESCALATE"]>;
1346
1346
  priority: z.ZodNumber;
1347
1347
  reason: z.ZodString;
1348
1348
  }, "strip", z.ZodTypeAny, {
1349
- action?: "ALLOW" | "DENY" | "ESCALATE";
1350
1349
  name?: string;
1351
- reason?: string;
1352
1350
  ruleId?: string;
1351
+ action?: "ALLOW" | "DENY" | "ESCALATE";
1352
+ reason?: string;
1353
1353
  priority?: number;
1354
1354
  condition?: {
1355
+ roles?: AgentRole[];
1356
+ tiers?: TrustTier[];
1357
+ contextTypes?: ContextType[];
1358
+ domains?: string[];
1355
1359
  timeWindow?: {
1356
1360
  start?: string;
1357
1361
  end?: string;
1358
1362
  };
1359
- domains?: string[];
1360
1363
  requiresAttestation?: string[];
1361
- roles?: AgentRole[];
1362
- tiers?: TrustTier[];
1363
- contextTypes?: ContextType[];
1364
1364
  };
1365
1365
  }, {
1366
- action?: "ALLOW" | "DENY" | "ESCALATE";
1367
1366
  name?: string;
1368
- reason?: string;
1369
1367
  ruleId?: string;
1368
+ action?: "ALLOW" | "DENY" | "ESCALATE";
1369
+ reason?: string;
1370
1370
  priority?: number;
1371
1371
  condition?: {
1372
+ roles?: AgentRole[];
1373
+ tiers?: TrustTier[];
1374
+ contextTypes?: ContextType[];
1375
+ domains?: string[];
1372
1376
  timeWindow?: {
1373
1377
  start?: string;
1374
1378
  end?: string;
1375
1379
  };
1376
- domains?: string[];
1377
1380
  requiresAttestation?: string[];
1378
- roles?: AgentRole[];
1379
- tiers?: TrustTier[];
1380
- contextTypes?: ContextType[];
1381
1381
  };
1382
1382
  }>, "many">;
1383
1383
  effectiveFrom: z.ZodDate;
@@ -1388,21 +1388,21 @@ export declare const roleGatePolicySchema: z.ZodObject<{
1388
1388
  }, "strip", z.ZodTypeAny, {
1389
1389
  version?: number;
1390
1390
  rules?: {
1391
- action?: "ALLOW" | "DENY" | "ESCALATE";
1392
1391
  name?: string;
1393
- reason?: string;
1394
1392
  ruleId?: string;
1393
+ action?: "ALLOW" | "DENY" | "ESCALATE";
1394
+ reason?: string;
1395
1395
  priority?: number;
1396
1396
  condition?: {
1397
+ roles?: AgentRole[];
1398
+ tiers?: TrustTier[];
1399
+ contextTypes?: ContextType[];
1400
+ domains?: string[];
1397
1401
  timeWindow?: {
1398
1402
  start?: string;
1399
1403
  end?: string;
1400
1404
  };
1401
- domains?: string[];
1402
1405
  requiresAttestation?: string[];
1403
- roles?: AgentRole[];
1404
- tiers?: TrustTier[];
1405
- contextTypes?: ContextType[];
1406
1406
  };
1407
1407
  }[];
1408
1408
  createdAt?: Date;
@@ -1414,21 +1414,21 @@ export declare const roleGatePolicySchema: z.ZodObject<{
1414
1414
  }, {
1415
1415
  version?: number;
1416
1416
  rules?: {
1417
- action?: "ALLOW" | "DENY" | "ESCALATE";
1418
1417
  name?: string;
1419
- reason?: string;
1420
1418
  ruleId?: string;
1419
+ action?: "ALLOW" | "DENY" | "ESCALATE";
1420
+ reason?: string;
1421
1421
  priority?: number;
1422
1422
  condition?: {
1423
+ roles?: AgentRole[];
1424
+ tiers?: TrustTier[];
1425
+ contextTypes?: ContextType[];
1426
+ domains?: string[];
1423
1427
  timeWindow?: {
1424
1428
  start?: string;
1425
1429
  end?: string;
1426
1430
  };
1427
- domains?: string[];
1428
1431
  requiresAttestation?: string[];
1429
- roles?: AgentRole[];
1430
- tiers?: TrustTier[];
1431
- contextTypes?: ContextType[];
1432
1432
  };
1433
1433
  }[];
1434
1434
  createdAt?: Date;
@@ -1481,12 +1481,12 @@ export declare const roleGateEvaluationSchema: z.ZodObject<{
1481
1481
  matrixAllows: z.ZodBoolean;
1482
1482
  reason: z.ZodOptional<z.ZodString>;
1483
1483
  }, "strip", z.ZodTypeAny, {
1484
- valid?: boolean;
1485
1484
  reason?: string;
1485
+ valid?: boolean;
1486
1486
  matrixAllows?: boolean;
1487
1487
  }, {
1488
- valid?: boolean;
1489
1488
  reason?: string;
1489
+ valid?: boolean;
1490
1490
  matrixAllows?: boolean;
1491
1491
  }>;
1492
1492
  policyResult: z.ZodObject<{
@@ -1497,14 +1497,14 @@ export declare const roleGateEvaluationSchema: z.ZodObject<{
1497
1497
  reason: z.ZodString;
1498
1498
  }, "strip", z.ZodTypeAny, {
1499
1499
  action?: "ALLOW" | "DENY" | "ESCALATE";
1500
- valid?: boolean;
1501
1500
  reason?: string;
1501
+ valid?: boolean;
1502
1502
  appliedRuleId?: string;
1503
1503
  appliedPolicyVersion?: number;
1504
1504
  }, {
1505
1505
  action?: "ALLOW" | "DENY" | "ESCALATE";
1506
- valid?: boolean;
1507
1506
  reason?: string;
1507
+ valid?: boolean;
1508
1508
  appliedRuleId?: string;
1509
1509
  appliedPolicyVersion?: number;
1510
1510
  }>;
@@ -1515,14 +1515,14 @@ export declare const roleGateEvaluationSchema: z.ZodObject<{
1515
1515
  contextConstraintsMet: z.ZodBoolean;
1516
1516
  reason: z.ZodOptional<z.ZodString>;
1517
1517
  }, "strip", z.ZodTypeAny, {
1518
- valid?: boolean;
1519
1518
  reason?: string;
1519
+ valid?: boolean;
1520
1520
  requiresOverride?: boolean;
1521
1521
  overrideSignatures?: string[];
1522
1522
  contextConstraintsMet?: boolean;
1523
1523
  }, {
1524
- valid?: boolean;
1525
1524
  reason?: string;
1525
+ valid?: boolean;
1526
1526
  requiresOverride?: boolean;
1527
1527
  overrideSignatures?: string[];
1528
1528
  contextConstraintsMet?: boolean;
@@ -1533,59 +1533,59 @@ export declare const roleGateEvaluationSchema: z.ZodObject<{
1533
1533
  }, "strip", z.ZodTypeAny, {
1534
1534
  timestamp?: Date;
1535
1535
  tier?: TrustTier;
1536
- agentId?: string;
1537
1536
  decision?: "ALLOW" | "DENY" | "ESCALATE";
1537
+ decidedAt?: Date;
1538
+ agentId?: string;
1538
1539
  role?: AgentRole;
1539
1540
  evaluationId?: string;
1540
1541
  evaluationHash?: string;
1541
1542
  kernelResult?: {
1542
- valid?: boolean;
1543
1543
  reason?: string;
1544
+ valid?: boolean;
1544
1545
  matrixAllows?: boolean;
1545
1546
  };
1546
1547
  policyResult?: {
1547
1548
  action?: "ALLOW" | "DENY" | "ESCALATE";
1548
- valid?: boolean;
1549
1549
  reason?: string;
1550
+ valid?: boolean;
1550
1551
  appliedRuleId?: string;
1551
1552
  appliedPolicyVersion?: number;
1552
1553
  };
1553
1554
  basisResult?: {
1554
- valid?: boolean;
1555
1555
  reason?: string;
1556
+ valid?: boolean;
1556
1557
  requiresOverride?: boolean;
1557
1558
  overrideSignatures?: string[];
1558
1559
  contextConstraintsMet?: boolean;
1559
1560
  };
1560
- decidedAt?: Date;
1561
1561
  }, {
1562
1562
  timestamp?: Date;
1563
1563
  tier?: TrustTier;
1564
- agentId?: string;
1565
1564
  decision?: "ALLOW" | "DENY" | "ESCALATE";
1565
+ decidedAt?: Date;
1566
+ agentId?: string;
1566
1567
  role?: AgentRole;
1567
1568
  evaluationId?: string;
1568
1569
  evaluationHash?: string;
1569
1570
  kernelResult?: {
1570
- valid?: boolean;
1571
1571
  reason?: string;
1572
+ valid?: boolean;
1572
1573
  matrixAllows?: boolean;
1573
1574
  };
1574
1575
  policyResult?: {
1575
1576
  action?: "ALLOW" | "DENY" | "ESCALATE";
1576
- valid?: boolean;
1577
1577
  reason?: string;
1578
+ valid?: boolean;
1578
1579
  appliedRuleId?: string;
1579
1580
  appliedPolicyVersion?: number;
1580
1581
  };
1581
1582
  basisResult?: {
1582
- valid?: boolean;
1583
1583
  reason?: string;
1584
+ valid?: boolean;
1584
1585
  requiresOverride?: boolean;
1585
1586
  overrideSignatures?: string[];
1586
1587
  contextConstraintsMet?: boolean;
1587
1588
  };
1588
- decidedAt?: Date;
1589
1589
  }>;
1590
1590
  /**
1591
1591
  * Trust score computation configuration
@@ -1613,15 +1613,15 @@ export declare const trustMetricsSchema: z.ZodObject<{
1613
1613
  governance: z.ZodNumber;
1614
1614
  context: z.ZodNumber;
1615
1615
  }, "strip", z.ZodTypeAny, {
1616
+ context?: number;
1616
1617
  governance?: number;
1617
1618
  capability?: number;
1618
- context?: number;
1619
1619
  observability?: number;
1620
1620
  behavior?: number;
1621
1621
  }, {
1622
+ context?: number;
1622
1623
  governance?: number;
1623
1624
  capability?: number;
1624
- context?: number;
1625
1625
  observability?: number;
1626
1626
  behavior?: number;
1627
1627
  }>;
@@ -1662,11 +1662,11 @@ export declare const trustComputationResultSchema: z.ZodObject<{
1662
1662
  constraint: z.ZodString;
1663
1663
  }, "strip", z.ZodTypeAny, {
1664
1664
  value?: number;
1665
- type?: "context" | "organizational" | "deployment" | "attestation";
1665
+ type?: "context" | "deployment" | "organizational" | "attestation";
1666
1666
  constraint?: string;
1667
1667
  }, {
1668
1668
  value?: number;
1669
- type?: "context" | "organizational" | "deployment" | "attestation";
1669
+ type?: "context" | "deployment" | "organizational" | "attestation";
1670
1670
  constraint?: string;
1671
1671
  }>;
1672
1672
  creationModifier: z.ZodNumber;
@@ -1678,27 +1678,27 @@ export declare const trustComputationResultSchema: z.ZodObject<{
1678
1678
  governance: z.ZodNumber;
1679
1679
  context: z.ZodNumber;
1680
1680
  }, "strip", z.ZodTypeAny, {
1681
+ context?: number;
1681
1682
  governance?: number;
1682
1683
  capability?: number;
1683
- context?: number;
1684
1684
  observability?: number;
1685
1685
  behavior?: number;
1686
1686
  }, {
1687
+ context?: number;
1687
1688
  governance?: number;
1688
1689
  capability?: number;
1689
- context?: number;
1690
1690
  observability?: number;
1691
1691
  behavior?: number;
1692
1692
  }>, {
1693
+ context?: number;
1693
1694
  governance?: number;
1694
1695
  capability?: number;
1695
- context?: number;
1696
1696
  observability?: number;
1697
1697
  behavior?: number;
1698
1698
  }, {
1699
+ context?: number;
1699
1700
  governance?: number;
1700
1701
  capability?: number;
1701
- context?: number;
1702
1702
  observability?: number;
1703
1703
  behavior?: number;
1704
1704
  }>;
@@ -1711,18 +1711,18 @@ export declare const trustComputationResultSchema: z.ZodObject<{
1711
1711
  verifiedAt: z.ZodOptional<z.ZodDate>;
1712
1712
  verifiedBy: z.ZodOptional<z.ZodString>;
1713
1713
  }, "strip", z.ZodTypeAny, {
1714
+ verifiedAt?: Date;
1714
1715
  chain?: string[];
1715
1716
  leafPresetId?: string;
1716
1717
  hashes?: string[];
1717
1718
  verified?: boolean;
1718
- verifiedAt?: Date;
1719
1719
  verifiedBy?: string;
1720
1720
  }, {
1721
+ verifiedAt?: Date;
1721
1722
  chain?: string[];
1722
1723
  leafPresetId?: string;
1723
1724
  hashes?: string[];
1724
1725
  verified?: boolean;
1725
- verifiedAt?: Date;
1726
1726
  verifiedBy?: string;
1727
1727
  }>;
1728
1728
  contextValid: z.ZodBoolean;
@@ -1733,32 +1733,32 @@ export declare const trustComputationResultSchema: z.ZodObject<{
1733
1733
  }, "strip", z.ZodTypeAny, {
1734
1734
  agentId?: string;
1735
1735
  finalScore?: number;
1736
+ presetId?: string;
1736
1737
  rawScore?: number;
1737
1738
  ceilingApplied?: boolean;
1738
1739
  ceilingSource?: {
1739
1740
  value?: number;
1740
- type?: "context" | "organizational" | "deployment" | "attestation";
1741
+ type?: "context" | "deployment" | "organizational" | "attestation";
1741
1742
  constraint?: string;
1742
1743
  };
1743
1744
  effectiveTier?: TrustTier;
1744
- presetId?: string;
1745
1745
  computedAt?: Date;
1746
1746
  ceilingValue?: number;
1747
1747
  creationModifier?: number;
1748
1748
  modifierPolicyVersion?: number;
1749
1749
  weightsUsed?: {
1750
+ context?: number;
1750
1751
  governance?: number;
1751
1752
  capability?: number;
1752
- context?: number;
1753
1753
  observability?: number;
1754
1754
  behavior?: number;
1755
1755
  };
1756
1756
  presetLineage?: {
1757
+ verifiedAt?: Date;
1757
1758
  chain?: string[];
1758
1759
  leafPresetId?: string;
1759
1760
  hashes?: string[];
1760
1761
  verified?: boolean;
1761
- verifiedAt?: Date;
1762
1762
  verifiedBy?: string;
1763
1763
  };
1764
1764
  contextValid?: boolean;
@@ -1769,32 +1769,32 @@ export declare const trustComputationResultSchema: z.ZodObject<{
1769
1769
  }, {
1770
1770
  agentId?: string;
1771
1771
  finalScore?: number;
1772
+ presetId?: string;
1772
1773
  rawScore?: number;
1773
1774
  ceilingApplied?: boolean;
1774
1775
  ceilingSource?: {
1775
1776
  value?: number;
1776
- type?: "context" | "organizational" | "deployment" | "attestation";
1777
+ type?: "context" | "deployment" | "organizational" | "attestation";
1777
1778
  constraint?: string;
1778
1779
  };
1779
1780
  effectiveTier?: TrustTier;
1780
- presetId?: string;
1781
1781
  computedAt?: Date;
1782
1782
  ceilingValue?: number;
1783
1783
  creationModifier?: number;
1784
1784
  modifierPolicyVersion?: number;
1785
1785
  weightsUsed?: {
1786
+ context?: number;
1786
1787
  governance?: number;
1787
1788
  capability?: number;
1788
- context?: number;
1789
1789
  observability?: number;
1790
1790
  behavior?: number;
1791
1791
  };
1792
1792
  presetLineage?: {
1793
+ verifiedAt?: Date;
1793
1794
  chain?: string[];
1794
1795
  leafPresetId?: string;
1795
1796
  hashes?: string[];
1796
1797
  verified?: boolean;
1797
- verifiedAt?: Date;
1798
1798
  verifiedBy?: string;
1799
1799
  };
1800
1800
  contextValid?: boolean;
@@ -1803,6 +1803,8 @@ export declare const trustComputationResultSchema: z.ZodObject<{
1803
1803
  computationHash?: string;
1804
1804
  auditTrail?: string[];
1805
1805
  }>;
1806
+ export declare const BASIS_CANONICAL_PRESETS: Record<string, TrustPreset>;
1807
+ /** @deprecated Use BASIS_CANONICAL_PRESETS instead */
1806
1808
  export declare const ACI_CANONICAL_PRESETS: Record<string, TrustPreset>;
1807
1809
  /**
1808
1810
  * Get trust tier from score