agent-contracts 0.10.0 → 0.11.1

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/index.d.ts CHANGED
@@ -94,6 +94,95 @@ declare const ArtifactSchema: z.ZodObject<{
94
94
  }, z.core.$loose>;
95
95
  type Artifact = z.infer<typeof ArtifactSchema>;
96
96
 
97
+ declare const MatcherSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
98
+ type: z.ZodLiteral<"command_regex">;
99
+ pattern: z.ZodString;
100
+ }, z.core.$strip>, z.ZodObject<{
101
+ type: z.ZodLiteral<"content_regex">;
102
+ pattern: z.ZodString;
103
+ file_glob: z.ZodOptional<z.ZodString>;
104
+ exclude_glob: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ type: z.ZodLiteral<"file_glob">;
107
+ pattern: z.ZodString;
108
+ }, z.core.$strip>], "type">;
109
+ type Matcher = z.infer<typeof MatcherSchema>;
110
+ declare const CheckSchema: z.ZodObject<{
111
+ matcher: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
112
+ type: z.ZodLiteral<"command_regex">;
113
+ pattern: z.ZodString;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ type: z.ZodLiteral<"content_regex">;
116
+ pattern: z.ZodString;
117
+ file_glob: z.ZodOptional<z.ZodString>;
118
+ exclude_glob: z.ZodOptional<z.ZodString>;
119
+ }, z.core.$strip>, z.ZodObject<{
120
+ type: z.ZodLiteral<"file_glob">;
121
+ pattern: z.ZodString;
122
+ }, z.core.$strip>], "type">>;
123
+ script: z.ZodOptional<z.ZodString>;
124
+ message: z.ZodOptional<z.ZodString>;
125
+ }, z.core.$loose>;
126
+ type Check = z.infer<typeof CheckSchema>;
127
+ declare const BindingOutputSchema: z.ZodObject<{
128
+ target: z.ZodString;
129
+ template: z.ZodOptional<z.ZodString>;
130
+ inline_template: z.ZodOptional<z.ZodString>;
131
+ mode: z.ZodDefault<z.ZodEnum<{
132
+ write: "write";
133
+ patch: "patch";
134
+ }>>;
135
+ group_by: z.ZodOptional<z.ZodString>;
136
+ executable: z.ZodOptional<z.ZodBoolean>;
137
+ }, z.core.$loose>;
138
+ type BindingOutput = z.infer<typeof BindingOutputSchema>;
139
+ declare const ReportingSchema: z.ZodObject<{
140
+ commands: z.ZodRecord<z.ZodString, z.ZodString>;
141
+ fail_open: z.ZodDefault<z.ZodBoolean>;
142
+ timeout_ms: z.ZodDefault<z.ZodNumber>;
143
+ }, z.core.$loose>;
144
+ type Reporting = z.infer<typeof ReportingSchema>;
145
+ declare const SoftwareBindingSchema: z.ZodObject<{
146
+ software: z.ZodString;
147
+ version: z.ZodLiteral<1>;
148
+ extends: z.ZodOptional<z.ZodString>;
149
+ guardrail_impl: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
150
+ checks: z.ZodArray<z.ZodObject<{
151
+ matcher: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
152
+ type: z.ZodLiteral<"command_regex">;
153
+ pattern: z.ZodString;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ type: z.ZodLiteral<"content_regex">;
156
+ pattern: z.ZodString;
157
+ file_glob: z.ZodOptional<z.ZodString>;
158
+ exclude_glob: z.ZodOptional<z.ZodString>;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ type: z.ZodLiteral<"file_glob">;
161
+ pattern: z.ZodString;
162
+ }, z.core.$strip>], "type">>;
163
+ script: z.ZodOptional<z.ZodString>;
164
+ message: z.ZodOptional<z.ZodString>;
165
+ }, z.core.$loose>>;
166
+ }, z.core.$strip>>>;
167
+ outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
168
+ target: z.ZodString;
169
+ template: z.ZodOptional<z.ZodString>;
170
+ inline_template: z.ZodOptional<z.ZodString>;
171
+ mode: z.ZodDefault<z.ZodEnum<{
172
+ write: "write";
173
+ patch: "patch";
174
+ }>>;
175
+ group_by: z.ZodOptional<z.ZodString>;
176
+ executable: z.ZodOptional<z.ZodBoolean>;
177
+ }, z.core.$loose>>>;
178
+ reporting: z.ZodOptional<z.ZodObject<{
179
+ commands: z.ZodRecord<z.ZodString, z.ZodString>;
180
+ fail_open: z.ZodDefault<z.ZodBoolean>;
181
+ timeout_ms: z.ZodDefault<z.ZodNumber>;
182
+ }, z.core.$loose>>;
183
+ }, z.core.$loose>;
184
+ type SoftwareBinding = z.infer<typeof SoftwareBindingSchema>;
185
+
97
186
  /**
98
187
  * Reusable schema components, following the OpenAPI `components` pattern.
99
188
  *
@@ -318,6 +407,43 @@ declare const DslSchema: z.ZodObject<{
318
407
  requires_validations: z.ZodOptional<z.ZodArray<z.ZodString>>;
319
408
  requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
320
409
  }, z.core.$loose>>>;
410
+ guardrails: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
411
+ description: z.ZodString;
412
+ scope: z.ZodObject<{
413
+ agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
414
+ tasks: z.ZodOptional<z.ZodArray<z.ZodString>>;
415
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
416
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
417
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString>>;
418
+ }, z.core.$loose>;
419
+ rationale: z.ZodOptional<z.ZodString>;
420
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
421
+ exemptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
422
+ }, z.core.$loose>>>;
423
+ guardrail_policies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
424
+ description: z.ZodOptional<z.ZodString>;
425
+ rules: z.ZodArray<z.ZodObject<{
426
+ guardrail: z.ZodString;
427
+ severity: z.ZodEnum<{
428
+ mandatory: "mandatory";
429
+ critical: "critical";
430
+ warning: "warning";
431
+ info: "info";
432
+ }>;
433
+ action: z.ZodEnum<{
434
+ info: "info";
435
+ block: "block";
436
+ warn: "warn";
437
+ shadow: "shadow";
438
+ }>;
439
+ allow_override: z.ZodDefault<z.ZodBoolean>;
440
+ override_requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
441
+ escalation: z.ZodOptional<z.ZodObject<{
442
+ target: z.ZodString;
443
+ condition: z.ZodOptional<z.ZodString>;
444
+ }, z.core.$loose>>;
445
+ }, z.core.$loose>>;
446
+ }, z.core.$loose>>>;
321
447
  components: z.ZodDefault<z.ZodObject<{
322
448
  schemas: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
323
449
  }, z.core.$loose>>;
@@ -339,6 +465,81 @@ declare const HandoffTypeSchema: z.ZodObject<{
339
465
  }, z.core.$loose>;
340
466
  type HandoffType = z.infer<typeof HandoffTypeSchema>;
341
467
 
468
+ declare const GuardrailScopeSchema: z.ZodObject<{
469
+ agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
470
+ tasks: z.ZodOptional<z.ZodArray<z.ZodString>>;
471
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
472
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
473
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString>>;
474
+ }, z.core.$loose>;
475
+ type GuardrailScope = z.infer<typeof GuardrailScopeSchema>;
476
+ declare const GuardrailSchema: z.ZodObject<{
477
+ description: z.ZodString;
478
+ scope: z.ZodObject<{
479
+ agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
480
+ tasks: z.ZodOptional<z.ZodArray<z.ZodString>>;
481
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
482
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodString>>;
483
+ workflows: z.ZodOptional<z.ZodArray<z.ZodString>>;
484
+ }, z.core.$loose>;
485
+ rationale: z.ZodOptional<z.ZodString>;
486
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
487
+ exemptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
488
+ }, z.core.$loose>;
489
+ type Guardrail = z.infer<typeof GuardrailSchema>;
490
+ declare const GuardrailPolicyRuleEscalationSchema: z.ZodObject<{
491
+ target: z.ZodString;
492
+ condition: z.ZodOptional<z.ZodString>;
493
+ }, z.core.$loose>;
494
+ type GuardrailPolicyRuleEscalation = z.infer<typeof GuardrailPolicyRuleEscalationSchema>;
495
+ declare const GuardrailPolicyRuleSchema: z.ZodObject<{
496
+ guardrail: z.ZodString;
497
+ severity: z.ZodEnum<{
498
+ mandatory: "mandatory";
499
+ critical: "critical";
500
+ warning: "warning";
501
+ info: "info";
502
+ }>;
503
+ action: z.ZodEnum<{
504
+ info: "info";
505
+ block: "block";
506
+ warn: "warn";
507
+ shadow: "shadow";
508
+ }>;
509
+ allow_override: z.ZodDefault<z.ZodBoolean>;
510
+ override_requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
511
+ escalation: z.ZodOptional<z.ZodObject<{
512
+ target: z.ZodString;
513
+ condition: z.ZodOptional<z.ZodString>;
514
+ }, z.core.$loose>>;
515
+ }, z.core.$loose>;
516
+ type GuardrailPolicyRule = z.infer<typeof GuardrailPolicyRuleSchema>;
517
+ declare const GuardrailPolicySchema: z.ZodObject<{
518
+ description: z.ZodOptional<z.ZodString>;
519
+ rules: z.ZodArray<z.ZodObject<{
520
+ guardrail: z.ZodString;
521
+ severity: z.ZodEnum<{
522
+ mandatory: "mandatory";
523
+ critical: "critical";
524
+ warning: "warning";
525
+ info: "info";
526
+ }>;
527
+ action: z.ZodEnum<{
528
+ info: "info";
529
+ block: "block";
530
+ warn: "warn";
531
+ shadow: "shadow";
532
+ }>;
533
+ allow_override: z.ZodDefault<z.ZodBoolean>;
534
+ override_requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
535
+ escalation: z.ZodOptional<z.ZodObject<{
536
+ target: z.ZodString;
537
+ condition: z.ZodOptional<z.ZodString>;
538
+ }, z.core.$loose>>;
539
+ }, z.core.$loose>>;
540
+ }, z.core.$loose>;
541
+ type GuardrailPolicy = z.infer<typeof GuardrailPolicySchema>;
542
+
342
543
  type AnyRecord$1 = Record<string, unknown>;
343
544
  /**
344
545
  * Shallow-merge an array of JSON Schema subschemas from an `allOf`.
@@ -710,31 +911,35 @@ declare function lint(dsl: Dsl, rules?: LintRule[]): LintDiagnostic[];
710
911
  */
711
912
  declare function spectralLint(dslObject: Record<string, unknown>): Promise<LintDiagnostic[]>;
712
913
 
713
- declare const CONTEXT_TYPES: readonly ["agent", "task", "artifact", "tool", "validation", "handoff_type", "workflow", "policy", "system"];
914
+ declare const CONTEXT_TYPES: readonly ["agent", "task", "artifact", "tool", "validation", "handoff_type", "workflow", "policy", "guardrail", "guardrail_policy", "system"];
714
915
  declare const ContextTypeSchema: z.ZodEnum<{
916
+ guardrail: "guardrail";
715
917
  workflow: "workflow";
716
918
  tool: "tool";
717
919
  agent: "agent";
718
920
  task: "task";
719
921
  validation: "validation";
720
922
  system: "system";
923
+ policy: "policy";
721
924
  artifact: "artifact";
722
925
  handoff_type: "handoff_type";
723
- policy: "policy";
926
+ guardrail_policy: "guardrail_policy";
724
927
  }>;
725
928
  type ContextType = z.infer<typeof ContextTypeSchema>;
726
929
  declare const RenderTargetSchema: z.ZodObject<{
727
930
  template: z.ZodString;
728
931
  context: z.ZodEnum<{
932
+ guardrail: "guardrail";
729
933
  workflow: "workflow";
730
934
  tool: "tool";
731
935
  agent: "agent";
732
936
  task: "task";
733
937
  validation: "validation";
734
938
  system: "system";
939
+ policy: "policy";
735
940
  artifact: "artifact";
736
941
  handoff_type: "handoff_type";
737
- policy: "policy";
942
+ guardrail_policy: "guardrail_policy";
738
943
  }>;
739
944
  output: z.ZodString;
740
945
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -747,20 +952,25 @@ declare const AgentContractsConfigSchema: z.ZodObject<{
747
952
  renders: z.ZodArray<z.ZodObject<{
748
953
  template: z.ZodString;
749
954
  context: z.ZodEnum<{
955
+ guardrail: "guardrail";
750
956
  workflow: "workflow";
751
957
  tool: "tool";
752
958
  agent: "agent";
753
959
  task: "task";
754
960
  validation: "validation";
755
961
  system: "system";
962
+ policy: "policy";
756
963
  artifact: "artifact";
757
964
  handoff_type: "handoff_type";
758
- policy: "policy";
965
+ guardrail_policy: "guardrail_policy";
759
966
  }>;
760
967
  output: z.ZodString;
761
968
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
762
969
  exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
763
970
  }, z.core.$strip>>;
971
+ bindings: z.ZodDefault<z.ZodArray<z.ZodString>>;
972
+ active_guardrail_policy: z.ZodOptional<z.ZodString>;
973
+ paths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
764
974
  }, z.core.$strip>;
765
975
  type AgentContractsConfig = z.infer<typeof AgentContractsConfigSchema>;
766
976
  interface ResolvedRenderTarget {
@@ -775,6 +985,9 @@ interface ResolvedConfig {
775
985
  vars?: Record<string, string>;
776
986
  renders: ResolvedRenderTarget[];
777
987
  configDir: string;
988
+ bindings: string[];
989
+ activeGuardrailPolicy?: string;
990
+ paths?: Record<string, string>;
778
991
  }
779
992
 
780
993
  declare function renderFromConfig(dsl: Dsl, renderTargets: ResolvedRenderTarget[]): Promise<string[]>;
@@ -793,6 +1006,8 @@ interface GlobalContext {
793
1006
  handoff_types: Dsl["handoff_types"];
794
1007
  workflow: Dsl["workflow"];
795
1008
  policies: Dsl["policies"];
1009
+ guardrails: Dsl["guardrails"];
1010
+ guardrail_policies: Dsl["guardrail_policies"];
796
1011
  [key: string]: unknown;
797
1012
  }
798
1013
  interface SystemContext {
@@ -871,6 +1086,20 @@ interface PerPolicyContext {
871
1086
  dsl: Dsl;
872
1087
  [key: string]: unknown;
873
1088
  }
1089
+ interface PerGuardrailContext {
1090
+ guardrail: Guardrail & {
1091
+ id: string;
1092
+ };
1093
+ dsl: Dsl;
1094
+ [key: string]: unknown;
1095
+ }
1096
+ interface PerGuardrailPolicyContext {
1097
+ guardrail_policy: GuardrailPolicy & {
1098
+ id: string;
1099
+ };
1100
+ dsl: Dsl;
1101
+ [key: string]: unknown;
1102
+ }
874
1103
  interface MergedBehavioralSpec {
875
1104
  responsibilities: string[];
876
1105
  constraints: string[];
@@ -918,10 +1147,18 @@ declare function buildValidationContext(dsl: Dsl, validationId: string): PerVali
918
1147
  declare function buildHandoffTypeContext(dsl: Dsl, handoffTypeId: string): PerHandoffTypeContext;
919
1148
  declare function buildWorkflowContext(dsl: Dsl, workflowId: string): PerWorkflowContext;
920
1149
  declare function buildPolicyContext(dsl: Dsl, policyId: string): PerPolicyContext;
1150
+ declare function buildGuardrailContext(dsl: Dsl, guardrailId: string): PerGuardrailContext;
1151
+ declare function buildGuardrailPolicyContext(dsl: Dsl, policyId: string): PerGuardrailPolicyContext;
921
1152
  declare function buildPerAgentContext(dsl: Dsl, agent: Agent & {
922
1153
  id: string;
923
1154
  }): PerAgentContext;
924
1155
 
1156
+ interface LoadedBinding {
1157
+ filePath: string;
1158
+ binding: SoftwareBinding;
1159
+ }
1160
+ declare function loadBindings(bindingPaths: string[]): Promise<LoadedBinding[]>;
1161
+
925
1162
  declare class ConfigLoadError extends Error {
926
1163
  readonly filePath?: string | undefined;
927
1164
  constructor(message: string, filePath?: string | undefined);
@@ -929,4 +1166,59 @@ declare class ConfigLoadError extends Error {
929
1166
  declare function loadConfig(configPath?: string): Promise<ResolvedConfig | null>;
930
1167
  declare function resolveDslPath(dirArg: string | undefined, dirArgDefault: string, config: ResolvedConfig | null): string;
931
1168
 
932
- export { type Agent, type AgentContractsConfig, AgentContractsConfigSchema, AgentSchema, type AppendOperator, AppendOperatorSchema, type Artifact, ArtifactSchema, BaseResolveError, CONTEXT_TYPES, type Command, CommandSchema, type Components, ComponentsSchema, ConfigLoadError, type ContextType, ContextTypeSchema, type DelegatableTaskView, type DiagnosticMessage, type Dsl, DslLoadError, DslSchema, type EscalationCriterion, EscalationCriterionSchema, type ExecutionStep, ExecutionStepSchema, type Extends, ExtendsSchema, type ExternalParticipant, type GlobalContext, type HandoffType, HandoffTypeSchema, type InsertAfterOperator, InsertAfterOperatorSchema, type LintDiagnostic, type LintRule, type LoadResult, MergeError, type MergeableRecord, type MergedBehavioralSpec, type PerAgentContext, type PerArtifactContext, type PerHandoffTypeContext, type PerPolicyContext, type PerTaskContext, type PerToolContext, type PerValidationContext, type PerWorkflowContext, type Policy, PolicySchema, type PolicyWhen, PolicyWhenSchema, type PrependOperator, PrependOperatorSchema, type Prerequisite, PrerequisiteSchema, type ReferenceDiagnostic, type RemoveOperator, RemoveOperatorSchema, type RenderTarget, RenderTargetSchema, type ReplaceOperator, ReplaceOperatorSchema, type ResolveResult, type ResolvedConfig, type ResolvedRenderTarget, type Retry, type Rule, RuleSchema, type SchemaValidationResult, type Severity, type System, type SystemContext, SystemSchema, type Task, TaskSchema, type Tool, ToolSchema, type Validation, ValidationSchema, type VersionLiteral, VersionLiteralSchema, type Workflow, WorkflowSchema, type WorkflowStep, WorkflowStepSchema, buildArtifactContext, buildGlobalContext, buildHandoffTypeContext, buildPerAgentContext, buildPolicyContext, buildSystemContext, buildTaskContext, buildToolContext, buildValidationContext, buildWorkflowContext, builtinRules, checkDriftFromConfig, checkReferences, lint, loadConfig, loadDsl, mergeDsl, renderFromConfig, resolve, resolveAllOf, resolveBase, resolveDslPath, spectralLint, validateHandoffSchemas, validateSchema };
1169
+ interface ResolvedCheck {
1170
+ guardrail_id: string;
1171
+ guardrail: Guardrail;
1172
+ policy_rule: GuardrailPolicyRule;
1173
+ check: Check;
1174
+ }
1175
+ interface GuardrailGenerationContext {
1176
+ system: {
1177
+ id: string;
1178
+ name: string;
1179
+ };
1180
+ guardrails: Record<string, Guardrail>;
1181
+ policy: GuardrailPolicy;
1182
+ binding: SoftwareBinding;
1183
+ all_bindings: Record<string, SoftwareBinding>;
1184
+ vars: Record<string, string>;
1185
+ paths: Record<string, string>;
1186
+ reporting: {
1187
+ commands: Record<string, string>;
1188
+ fail_open: boolean;
1189
+ timeout_ms: number;
1190
+ } | null;
1191
+ resolved_checks: ResolvedCheck[];
1192
+ }
1193
+ interface GenerateResult {
1194
+ outputFiles: string[];
1195
+ diagnostics: GenerateDiagnostic[];
1196
+ }
1197
+ interface GenerateDiagnostic {
1198
+ path: string;
1199
+ message: string;
1200
+ severity: "error" | "warning" | "info";
1201
+ }
1202
+
1203
+ interface GenerateGuardrailsOptions {
1204
+ dsl: Dsl;
1205
+ config: ResolvedConfig;
1206
+ loadedBindings: LoadedBinding[];
1207
+ filterBindings?: string[];
1208
+ dryRun?: boolean;
1209
+ }
1210
+ declare function generateGuardrails(options: GenerateGuardrailsOptions): Promise<GenerateResult>;
1211
+
1212
+ interface ResolveChecksResult {
1213
+ resolved: ResolvedCheck[];
1214
+ diagnostics: GenerateDiagnostic[];
1215
+ }
1216
+ declare function resolveChecks(dsl: Dsl, binding: SoftwareBinding, policy: GuardrailPolicy): ResolveChecksResult;
1217
+
1218
+ interface PathResolveResult {
1219
+ resolved: string;
1220
+ diagnostics: GenerateDiagnostic[];
1221
+ }
1222
+ declare function resolveBindingTargetPath(target: string, paths: Record<string, string>, bindingSoftware: string): PathResolveResult;
1223
+
1224
+ export { type Agent, type AgentContractsConfig, AgentContractsConfigSchema, AgentSchema, type AppendOperator, AppendOperatorSchema, type Artifact, ArtifactSchema, BaseResolveError, type BindingOutput, BindingOutputSchema, CONTEXT_TYPES, type Check, CheckSchema, type Command, CommandSchema, type Components, ComponentsSchema, ConfigLoadError, type ContextType, ContextTypeSchema, type DelegatableTaskView, type DiagnosticMessage, type Dsl, DslLoadError, DslSchema, type EscalationCriterion, EscalationCriterionSchema, type ExecutionStep, ExecutionStepSchema, type Extends, ExtendsSchema, type ExternalParticipant, type GenerateDiagnostic, type GenerateGuardrailsOptions, type GenerateResult, type GlobalContext, type Guardrail, type GuardrailGenerationContext, type GuardrailPolicy, type GuardrailPolicyRule, type GuardrailPolicyRuleEscalation, GuardrailPolicyRuleEscalationSchema, GuardrailPolicyRuleSchema, GuardrailPolicySchema, GuardrailSchema, type GuardrailScope, GuardrailScopeSchema, type HandoffType, HandoffTypeSchema, type InsertAfterOperator, InsertAfterOperatorSchema, type LintDiagnostic, type LintRule, type LoadResult, type LoadedBinding, type Matcher, MatcherSchema, MergeError, type MergeableRecord, type MergedBehavioralSpec, type PathResolveResult, type PerAgentContext, type PerArtifactContext, type PerGuardrailContext, type PerGuardrailPolicyContext, type PerHandoffTypeContext, type PerPolicyContext, type PerTaskContext, type PerToolContext, type PerValidationContext, type PerWorkflowContext, type Policy, PolicySchema, type PolicyWhen, PolicyWhenSchema, type PrependOperator, PrependOperatorSchema, type Prerequisite, PrerequisiteSchema, type ReferenceDiagnostic, type RemoveOperator, RemoveOperatorSchema, type RenderTarget, RenderTargetSchema, type ReplaceOperator, ReplaceOperatorSchema, type Reporting, ReportingSchema, type ResolveChecksResult, type ResolveResult, type ResolvedCheck, type ResolvedConfig, type ResolvedRenderTarget, type Retry, type Rule, RuleSchema, type SchemaValidationResult, type Severity, type SoftwareBinding, SoftwareBindingSchema, type System, type SystemContext, SystemSchema, type Task, TaskSchema, type Tool, ToolSchema, type Validation, ValidationSchema, type VersionLiteral, VersionLiteralSchema, type Workflow, WorkflowSchema, type WorkflowStep, WorkflowStepSchema, buildArtifactContext, buildGlobalContext, buildGuardrailContext, buildGuardrailPolicyContext, buildHandoffTypeContext, buildPerAgentContext, buildPolicyContext, buildSystemContext, buildTaskContext, buildToolContext, buildValidationContext, buildWorkflowContext, builtinRules, checkDriftFromConfig, checkReferences, generateGuardrails, lint, loadBindings, loadConfig, loadDsl, mergeDsl, renderFromConfig, resolve, resolveAllOf, resolveBase, resolveBindingTargetPath, resolveChecks, resolveDslPath, spectralLint, validateHandoffSchemas, validateSchema };