@vertesia/common 1.5.0-dev.20260910.052912Z → 1.6.0-dev.20260912.110338Z

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 (160) hide show
  1. package/lib/access-control-values.d.ts +1 -0
  2. package/lib/access-control-values.d.ts.map +1 -1
  3. package/lib/access-control-values.js +1 -0
  4. package/lib/access-control-values.js.map +1 -1
  5. package/lib/api-contract/components.generated.json +4188 -2267
  6. package/lib/api-schemas/adapter.d.ts.map +1 -1
  7. package/lib/api-schemas/adapter.js +8 -1
  8. package/lib/api-schemas/adapter.js.map +1 -1
  9. package/lib/api-schemas/agent-communication.d.ts +1 -0
  10. package/lib/api-schemas/agent-communication.d.ts.map +1 -1
  11. package/lib/api-schemas/agent-communication.js +6 -0
  12. package/lib/api-schemas/agent-communication.js.map +1 -1
  13. package/lib/api-schemas/agent-runs.d.ts +5271 -903
  14. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  15. package/lib/api-schemas/agent-runs.js +343 -1
  16. package/lib/api-schemas/agent-runs.js.map +1 -1
  17. package/lib/api-schemas/app-runtime.d.ts +1240 -22
  18. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  19. package/lib/api-schemas/content.d.ts +435 -0
  20. package/lib/api-schemas/content.d.ts.map +1 -1
  21. package/lib/api-schemas/data-store.d.ts +1 -0
  22. package/lib/api-schemas/data-store.d.ts.map +1 -1
  23. package/lib/api-schemas/data-store.js +7 -0
  24. package/lib/api-schemas/data-store.js.map +1 -1
  25. package/lib/api-schemas/delegation.d.ts +35 -0
  26. package/lib/api-schemas/delegation.d.ts.map +1 -0
  27. package/lib/api-schemas/delegation.js +21 -0
  28. package/lib/api-schemas/delegation.js.map +1 -0
  29. package/lib/api-schemas/document-processing.d.ts +261 -0
  30. package/lib/api-schemas/document-processing.d.ts.map +1 -1
  31. package/lib/api-schemas/emit-json-schema.d.ts +5 -0
  32. package/lib/api-schemas/emit-json-schema.d.ts.map +1 -0
  33. package/lib/api-schemas/emit-json-schema.js +37 -0
  34. package/lib/api-schemas/emit-json-schema.js.map +1 -0
  35. package/lib/api-schemas/environment.d.ts +18 -0
  36. package/lib/api-schemas/environment.d.ts.map +1 -1
  37. package/lib/api-schemas/events.d.ts +783 -0
  38. package/lib/api-schemas/events.d.ts.map +1 -1
  39. package/lib/api-schemas/index.d.ts +1 -0
  40. package/lib/api-schemas/index.d.ts.map +1 -1
  41. package/lib/api-schemas/index.js +1 -0
  42. package/lib/api-schemas/index.js.map +1 -1
  43. package/lib/api-schemas/interaction.d.ts +3939 -91
  44. package/lib/api-schemas/interaction.d.ts.map +1 -1
  45. package/lib/api-schemas/interaction.js +14 -3
  46. package/lib/api-schemas/interaction.js.map +1 -1
  47. package/lib/api-schemas/oauth-server.d.ts +1 -0
  48. package/lib/api-schemas/oauth-server.d.ts.map +1 -1
  49. package/lib/api-schemas/oauth-server.js +3 -0
  50. package/lib/api-schemas/oauth-server.js.map +1 -1
  51. package/lib/api-schemas/process-agent-policy.d.ts +69 -0
  52. package/lib/api-schemas/process-agent-policy.d.ts.map +1 -0
  53. package/lib/api-schemas/process-agent-policy.js +154 -0
  54. package/lib/api-schemas/process-agent-policy.js.map +1 -0
  55. package/lib/api-schemas/process.d.ts +1260 -0
  56. package/lib/api-schemas/process.d.ts.map +1 -1
  57. package/lib/api-schemas/process.js +29 -1
  58. package/lib/api-schemas/process.js.map +1 -1
  59. package/lib/api-schemas/project-configuration.d.ts +878 -8
  60. package/lib/api-schemas/project-configuration.d.ts.map +1 -1
  61. package/lib/api-schemas/project.d.ts +1327 -22
  62. package/lib/api-schemas/project.d.ts.map +1 -1
  63. package/lib/api-schemas/registry.d.ts +21836 -3256
  64. package/lib/api-schemas/registry.d.ts.map +1 -1
  65. package/lib/api-schemas/registry.js +40 -7
  66. package/lib/api-schemas/registry.js.map +1 -1
  67. package/lib/api-schemas/store.d.ts +4427 -77
  68. package/lib/api-schemas/store.d.ts.map +1 -1
  69. package/lib/api-schemas/sts.d.ts +6 -0
  70. package/lib/api-schemas/sts.d.ts.map +1 -1
  71. package/lib/api-schemas/sts.js +3 -0
  72. package/lib/api-schemas/sts.js.map +1 -1
  73. package/lib/api-schemas/workflow-runs.d.ts +189 -0
  74. package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
  75. package/lib/api-schemas/workflow-runs.js +14 -0
  76. package/lib/api-schemas/workflow-runs.js.map +1 -1
  77. package/lib/apikey.d.ts +1 -0
  78. package/lib/apikey.d.ts.map +1 -1
  79. package/lib/apikey.js.map +1 -1
  80. package/lib/delegation.d.ts +13 -0
  81. package/lib/delegation.d.ts.map +1 -0
  82. package/lib/delegation.js +2 -0
  83. package/lib/delegation.js.map +1 -0
  84. package/lib/environment.d.ts +1 -0
  85. package/lib/environment.d.ts.map +1 -1
  86. package/lib/index.d.ts +1 -0
  87. package/lib/index.d.ts.map +1 -1
  88. package/lib/index.js.map +1 -1
  89. package/lib/oauth-scopes.d.ts.map +1 -1
  90. package/lib/oauth-scopes.js +1 -0
  91. package/lib/oauth-scopes.js.map +1 -1
  92. package/lib/store/agent-run-values.d.ts +25 -0
  93. package/lib/store/agent-run-values.d.ts.map +1 -0
  94. package/lib/store/agent-run-values.js +25 -0
  95. package/lib/store/agent-run-values.js.map +1 -0
  96. package/lib/store/agent-run.d.ts +22 -2
  97. package/lib/store/agent-run.d.ts.map +1 -1
  98. package/lib/store/agent-run.js +1 -1
  99. package/lib/store/agent-run.js.map +1 -1
  100. package/lib/store/conversation-state.d.ts +1 -1
  101. package/lib/store/conversation-state.d.ts.map +1 -1
  102. package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
  103. package/lib/store/intake-policy-schema.generated.js +124 -0
  104. package/lib/store/intake-policy-schema.generated.js.map +1 -1
  105. package/lib/store/process.d.ts +17 -0
  106. package/lib/store/process.d.ts.map +1 -1
  107. package/lib/store/process.js.map +1 -1
  108. package/lib/store/schedule.d.ts +62 -25
  109. package/lib/store/schedule.d.ts.map +1 -1
  110. package/lib/store/schedule.js +2 -2
  111. package/lib/store/schedule.js.map +1 -1
  112. package/lib/store/workflow.d.ts +2 -0
  113. package/lib/store/workflow.d.ts.map +1 -1
  114. package/lib/store/workflow.js.map +1 -1
  115. package/lib/vertesia-common.js +2 -2
  116. package/lib/vertesia-common.js.map +1 -1
  117. package/lib/workflow-analytics.d.ts +198 -2
  118. package/lib/workflow-analytics.d.ts.map +1 -1
  119. package/lib/workflow-analytics.js +6 -0
  120. package/lib/workflow-analytics.js.map +1 -1
  121. package/package.json +8 -8
  122. package/src/access-control-values.ts +1 -0
  123. package/src/api-contract/components.generated.json +4188 -2267
  124. package/src/api-schemas/adapter-edge-cases.test.ts +19 -0
  125. package/src/api-schemas/adapter.ts +8 -1
  126. package/src/api-schemas/agent-communication.ts +6 -0
  127. package/src/api-schemas/agent-history.contract.test.ts +42 -0
  128. package/src/api-schemas/agent-runs.contract.test.ts +203 -0
  129. package/src/api-schemas/agent-runs.ts +374 -0
  130. package/src/api-schemas/data-store.contract.test.ts +6 -0
  131. package/src/api-schemas/data-store.ts +8 -0
  132. package/src/api-schemas/delegation.ts +21 -0
  133. package/src/api-schemas/emit-json-schema.test.ts +36 -0
  134. package/src/api-schemas/emit-json-schema.ts +40 -0
  135. package/src/api-schemas/environment.contract.test.ts +3 -0
  136. package/src/api-schemas/index.ts +1 -0
  137. package/src/api-schemas/interaction.contract.test.ts +23 -0
  138. package/src/api-schemas/interaction.ts +15 -3
  139. package/src/api-schemas/llumiverse.contract.test.ts +3 -9
  140. package/src/api-schemas/oauth-server.ts +4 -0
  141. package/src/api-schemas/process-agent-policy.ts +167 -0
  142. package/src/api-schemas/process.contract.test.ts +115 -0
  143. package/src/api-schemas/process.ts +31 -1
  144. package/src/api-schemas/registry.ts +43 -10
  145. package/src/api-schemas/sts.ts +3 -0
  146. package/src/api-schemas/workflow-runs.ts +16 -0
  147. package/src/api-schemas/zeno-response-contracts.test.ts +36 -0
  148. package/src/apikey.ts +1 -0
  149. package/src/delegation.ts +18 -0
  150. package/src/index.ts +6 -0
  151. package/src/oauth-scopes.ts +1 -0
  152. package/src/store/agent-run-values.ts +27 -0
  153. package/src/store/agent-run.ts +36 -0
  154. package/src/store/conversation-state.ts +1 -1
  155. package/src/store/intake-policy-schema.generated.ts +125 -0
  156. package/src/store/process.ts +22 -0
  157. package/src/store/schedule.test.ts +59 -0
  158. package/src/store/schedule.ts +91 -27
  159. package/src/store/workflow.ts +2 -0
  160. package/src/workflow-analytics.ts +238 -1
@@ -1 +1 @@
1
- {"version":3,"file":"agent-runs.d.ts","sourceRoot":"","sources":["../../src/api-schemas/agent-runs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,KAAK,UAAU,EAAkD,MAAM,0BAA0B,CAAC;AA0H3G,eAAO,MAAM,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAOpB,CAAC;AAEhC,eAAO,MAAM,8BAA8B;;kBAIE,CAAC;AAE9C,eAAO,MAAM,+BAA+B;;;;kBAME,CAAC;AAE/C,eAAO,MAAM,sBAAsB,EAuBzB,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAEtC,eAAO,MAAM,+BAA+B,yBAAgE,CAAC;AAE7G,eAAO,MAAM,wCAAwC;;;kBAKiE,CAAC;AAEvH,eAAO,MAAM,uCAAuC;;;kBAKiE,CAAC;AAEtH,eAAO,MAAM,+BAA+B;;;kBAK0D,CAAC;AAEvG,eAAO,MAAM,wBAAwB,gCAInC,CAAC;AAIH,eAAO,MAAM,gCAAgC;;kBAIyD,CAAC;AAEvG,eAAO,MAAM,0BAA0B,EAGjC,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAEtC,eAAO,MAAM,0BAA0B;;;;;;EAIrC,CAAC;AAEH,eAAO,MAAM,iBAAi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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAuBE,CAAC"}
@@ -1,15 +1,229 @@
1
1
  // Runtime schemas for the agent runs API domain.
2
2
  import { ExecutionTokenUsageSchema, ReasoningEffortSchema } from '@llumiverse/common/schemas';
3
3
  import { z } from 'zod';
4
+ import { AGENT_RUN_FEEDBACK_COMMENT_MAX_LENGTH, AGENT_RUN_FEEDBACK_ID_MAX_LENGTH } from '../store/agent-run-values.js';
4
5
  import { AgentEventType, LlmCallType, TelemetryToolType } from '../workflow-analytics.js';
5
6
  import * as AppLifecycleSchemas from './app-lifecycle.js';
6
- import { AgentRunStatusSchema, ContentObjectTypeRefSchema, ConversationActivityStateSchema, EventRefSchema, RunKindSchema, RunTypeSchema, } from './app-lifecycle.js';
7
+ import { AgentRunStatusSchema, AgentToolApprovalClassSchema, ContentObjectTypeRefSchema, ConversationActivityStateSchema, EventRefSchema, RunKindSchema, RunTypeSchema, } from './app-lifecycle.js';
7
8
  import { AgentResourceReferenceSchema, AgentSearchScopeSchema, AgentToolApprovalModeSchema, ConversationEnrichmentFields, ConversationVisibilitySchema, InitialToolCallSchema, InteractionRefSchema, PlanTaskSchema, RunSourceSchema, UserChannelSchema, } from './interaction.js';
8
9
  import * as ProcessSchemas from './process.js';
9
10
  import { ProcessDefinitionBodySchema, ProcessRunConfigSchema, ProcessStateSchema, RecordProcessRunPayloadSchema, } from './process.js';
10
11
  import { AgentCheckpointConfigurationSchema } from './project-configuration.js';
11
12
  import { nullableStringSchema } from './schema-primitives.js';
12
13
  import { InteractionExecutionConfigurationSchema } from './store.js';
14
+ // ----------------------------------------------------------------------------
15
+ // Evaluation vocabularies
16
+ // ----------------------------------------------------------------------------
17
+ export const TurnTerminalTypeSchema = z
18
+ .enum(['answer', 'user_stopped', 'completed', 'failed', 'cancelled', 'interrupted'])
19
+ .meta({ id: 'TurnTerminalType', description: 'How an agent turn ended.' });
20
+ export const EvaluationSeveritySchema = z.enum(['none', 'low', 'medium', 'high']).meta({
21
+ id: 'EvaluationSeverity',
22
+ description: 'Worst deterministic detector level. `none` means no detector fired, not success.',
23
+ });
24
+ export const TurnEvaluationFlagSchema = z
25
+ .enum([
26
+ 'user_stopped_after_failure',
27
+ 'mutation_unsuccessful',
28
+ 'run_failed',
29
+ 'unrecovered_tool',
30
+ 'fail_streak',
31
+ 'identical_retry',
32
+ 'reread',
33
+ 'high_gather',
34
+ 'overhead',
35
+ 'followup_after_answer',
36
+ 'approval_denied',
37
+ ])
38
+ .meta({ id: 'TurnEvaluationFlag', description: 'Reason behind an evaluation severity.' });
39
+ export const ToolErrorClassSchema = z
40
+ .enum(['schema', 'platform', 'config', 'environment', 'other'])
41
+ .meta({ id: 'ToolErrorClass', description: 'Coarse class of a tool error, derived from the error text.' });
42
+ const ToolErrorClassCountsSchema = z.strictObject({
43
+ schema: z.number().int().min(0),
44
+ platform: z.number().int().min(0),
45
+ config: z.number().int().min(0),
46
+ environment: z.number().int().min(0),
47
+ other: z.number().int().min(0),
48
+ });
49
+ const TelemetryDeploymentSchema = z.strictObject({
50
+ env: z.string(),
51
+ group: z.string(),
52
+ version: z.string(),
53
+ region: z.string().optional(),
54
+ });
55
+ const TelemetryProducerSchema = z.strictObject({
56
+ version: z.string(),
57
+ });
58
+ export const JudgeGateReasonSchema = z
59
+ .enum(['signal', 'sample'])
60
+ .meta({ id: 'JudgeGateReason', description: 'Why the judge looked at a run.' });
61
+ export const JudgeOutcomeSchema = z
62
+ .enum(['judged', 'skipped_unarchived', 'failed'])
63
+ .meta({ id: 'JudgeOutcome', description: 'What a judge run produced.' });
64
+ export const JudgeVerdictSchema = z
65
+ .enum(['success', 'partial', 'failure'])
66
+ .meta({ id: 'JudgeVerdict', description: "The judge's reading of a turn." });
67
+ // ----------------------------------------------------------------------------
68
+ // User feedback
69
+ // ----------------------------------------------------------------------------
70
+ /**
71
+ * How the user rated an agent run's work. Two values on purpose: a rating is a signal, not a score,
72
+ * and a wider scale invites a precision the reader does not have.
73
+ */
74
+ export const AgentRunFeedbackRatingSchema = z
75
+ .enum(['up', 'down'])
76
+ .meta({ id: 'AgentRunFeedbackRating', description: 'Thumbs up or thumbs down on an agent run.' });
77
+ /**
78
+ * The closed reason vocabulary. Closed rather than free text because the reason is the part that
79
+ * gets counted; the free-text `comment` stays with the tenant and is never aggregated.
80
+ */
81
+ export const AgentRunFeedbackReasonCodeSchema = z
82
+ .enum([
83
+ 'accurate',
84
+ 'helpful',
85
+ 'fast',
86
+ 'well_explained',
87
+ 'wrong_result',
88
+ 'incomplete',
89
+ 'misunderstood_request',
90
+ 'too_slow',
91
+ 'tool_failure',
92
+ 'unsafe_action',
93
+ 'other',
94
+ ])
95
+ .meta({ id: 'AgentRunFeedbackReasonCode', description: 'Why the run was rated the way it was.' });
96
+ export const AgentRunFeedbackPayloadSchema = z
97
+ .strictObject({
98
+ feedback_id: z.string().min(1).max(AGENT_RUN_FEEDBACK_ID_MAX_LENGTH).meta({
99
+ description: 'Client-generated idempotency key (a UUID). A retried request with the same id is a no-op.',
100
+ }),
101
+ rating: AgentRunFeedbackRatingSchema,
102
+ reason_code: AgentRunFeedbackReasonCodeSchema.optional(),
103
+ comment: z.string().max(AGENT_RUN_FEEDBACK_COMMENT_MAX_LENGTH).optional().meta({
104
+ description: 'Free-text comment. Stored with the tenant; only its presence is ever counted.',
105
+ }),
106
+ message_id: z.string().optional().meta({
107
+ description: 'Rate one message rather than the run as a whole.',
108
+ }),
109
+ message_seq: z.number().int().min(0).optional().meta({
110
+ description: 'Position of the rated message in the run, when a message is rated.',
111
+ }),
112
+ })
113
+ .meta({ id: 'AgentRunFeedbackPayload', description: 'A user rating on an agent run.' });
114
+ /**
115
+ * What happened to the rating. `recorded` and `replaced` both mean it counts; `replaced` says an
116
+ * earlier rating by the same user on the same scope was superseded. `disabled` means this
117
+ * deployment does not record feedback; it answers 200 because a rating is never the user's error.
118
+ */
119
+ export const AgentRunFeedbackStatusSchema = z
120
+ .enum(['recorded', 'replaced', 'disabled'])
121
+ .meta({ id: 'AgentRunFeedbackStatus', description: 'Whether the rating was recorded.' });
122
+ export const AgentRunFeedbackCountsSchema = z
123
+ .strictObject({
124
+ up: z.number().int().min(0),
125
+ down: z.number().int().min(0),
126
+ last_rating: AgentRunFeedbackRatingSchema.optional(),
127
+ last_reason_code: AgentRunFeedbackReasonCodeSchema.optional(),
128
+ })
129
+ .meta({ id: 'AgentRunFeedbackCounts', description: 'Ratings over the retained feedback entries.' });
130
+ export const AgentRunFeedbackResponseSchema = z
131
+ .strictObject({
132
+ status: AgentRunFeedbackStatusSchema,
133
+ feedback_counts: AgentRunFeedbackCountsSchema.optional(),
134
+ })
135
+ .meta({ id: 'AgentRunFeedbackResponse', description: 'Result of rating an agent run.' });
136
+ export const AgentRunFeedbackEntrySchema = z
137
+ .strictObject({
138
+ feedback_id: z.string(),
139
+ rating: AgentRunFeedbackRatingSchema,
140
+ reason_code: AgentRunFeedbackReasonCodeSchema.optional(),
141
+ comment: z.string().optional(),
142
+ message_id: z.string().optional(),
143
+ message_seq: z.number().int().optional(),
144
+ message_scoped: z.boolean(),
145
+ user_id: z.string(),
146
+ rated_at: z.string().meta({ format: 'date-time' }),
147
+ replaced_at: z.string().meta({ format: 'date-time' }).optional(),
148
+ })
149
+ .meta({ id: 'AgentRunFeedbackEntry', description: 'One recorded rating on an agent run.' });
150
+ // ----------------------------------------------------------------------------
151
+ // Evaluation summary
152
+ // ----------------------------------------------------------------------------
153
+ const AgentRunEvaluationTotalsSchema = z.strictObject({
154
+ tool_calls: z.number().int(),
155
+ error_tool_results: z.number().int(),
156
+ unrecovered_tools: z.array(z.string()),
157
+ llm_calls: z.number().int(),
158
+ prompt_tokens: z.number(),
159
+ completion_tokens: z.number(),
160
+ cached_tokens: z.number(),
161
+ retry_completion_tokens: z.number(),
162
+ active_ms: z.number(),
163
+ ask_user_wait_ms: z.number(),
164
+ approval_wait_ms: z.number(),
165
+ followups: z.number().int(),
166
+ approvals_requested: z.number().int(),
167
+ approvals_denied: z.number().int(),
168
+ stop_requests: z.number().int(),
169
+ });
170
+ /**
171
+ * What the workflow reports about a run: the fold of its turn evaluations. Owned by the workflow;
172
+ * it never carries feedback or judge fields, which the server owns.
173
+ */
174
+ export const AgentRunEvaluationRollupSchema = z
175
+ .strictObject({
176
+ seq: z.number().int().min(1).meta({
177
+ description: 'Monotonic per run; the server ignores a rollup older than the one it holds.',
178
+ }),
179
+ detector_version: z.number().int(),
180
+ turns: z.number().int(),
181
+ severity: EvaluationSeveritySchema,
182
+ flags: z.array(TurnEvaluationFlagSchema),
183
+ worst_turn_seq: z.number().int().optional(),
184
+ last_terminal_type: TurnTerminalTypeSchema.optional(),
185
+ terminal_error_class: z.string().optional(),
186
+ partial: z.boolean().optional(),
187
+ totals: AgentRunEvaluationTotalsSchema,
188
+ updated_at: z.string().meta({ format: 'date-time' }),
189
+ })
190
+ .meta({ id: 'AgentRunEvaluationRollup', description: 'Fold of the turn evaluations of a run.' });
191
+ export const AgentRunJudgeResultSchema = z
192
+ .strictObject({
193
+ rev: z.number().int(),
194
+ gate: JudgeGateReasonSchema,
195
+ sample_rate: z.number(),
196
+ selected_probability: z.number(),
197
+ outcome: JudgeOutcomeSchema,
198
+ verdict: JudgeVerdictSchema.optional(),
199
+ score: z.number().optional(),
200
+ model: z.string().optional(),
201
+ prompt_version: z.string(),
202
+ turns_judged: z.array(z.number().int()).optional(),
203
+ judged_at: z.string().meta({ format: 'date-time' }),
204
+ })
205
+ .meta({ id: 'AgentRunJudgeResult', description: 'Latest judge result for a run.' });
206
+ export const AgentRunContradictionReasonSchema = z
207
+ .enum(['feedback_down_on_clean_run', 'judge_failure_on_clean_run'])
208
+ .meta({ id: 'AgentRunContradictionReason' });
209
+ /**
210
+ * The server-owned evaluation summary of a run: the workflow rollup, the feedback counts and the
211
+ * judge result, plus the derived severity, flags and contradiction the run list filters on.
212
+ */
213
+ export const AgentRunEvaluationSchema = z
214
+ .strictObject({
215
+ rev: z.number().int().meta({ description: 'Bumped on every change to any part of the summary.' }),
216
+ rollup: AgentRunEvaluationRollupSchema.optional(),
217
+ feedback_counts: AgentRunFeedbackCountsSchema.optional(),
218
+ judge: AgentRunJudgeResultSchema.optional(),
219
+ severity: EvaluationSeveritySchema,
220
+ flags: z.array(TurnEvaluationFlagSchema),
221
+ contradicted: z.boolean(),
222
+ contradiction_reasons: z.array(AgentRunContradictionReasonSchema).optional(),
223
+ deployment_env: z.string().optional(),
224
+ updated_at: z.string().meta({ format: 'date-time' }),
225
+ })
226
+ .meta({ id: 'AgentRunEvaluation', description: 'Evaluation summary of an agent run.' });
13
227
  const agentEventBase = {
14
228
  timestamp: z.string(),
15
229
  runId: z.string(),
@@ -20,6 +234,9 @@ const agentEventBase = {
20
234
  interactionId: z.string(),
21
235
  parentRunId: z.string().optional(),
22
236
  ancestorRunIds: z.array(z.string()).optional(),
237
+ eventId: z.string().optional(),
238
+ deployment: TelemetryDeploymentSchema.optional(),
239
+ producer: TelemetryProducerSchema.optional(),
23
240
  };
24
241
  const AgentRunStartedEventSchema = z.strictObject({
25
242
  ...agentEventBase,
@@ -93,6 +310,92 @@ const ToolCallEventSchema = z.strictObject({
93
310
  errorType: z.string().optional(),
94
311
  errorMessage: z.string().optional(),
95
312
  spawnedChildWorkflow: z.boolean().optional(),
313
+ approvalClass: AgentToolApprovalClassSchema.optional(),
314
+ errorClass: ToolErrorClassSchema.optional(),
315
+ signatureHash: z.string().optional(),
316
+ workstreamId: z.string().optional(),
317
+ });
318
+ const TurnToolObservationSchema = z.strictObject({
319
+ seq: z.number().int().min(1),
320
+ toolUseId: z.string(),
321
+ name: z.string(),
322
+ approvalClass: AgentToolApprovalClassSchema.optional(),
323
+ ok: z.boolean(),
324
+ errorClass: ToolErrorClassSchema.optional(),
325
+ sig: z.string(),
326
+ durationMs: z.number(),
327
+ });
328
+ const TurnEvaluationEventSchema = z.strictObject({
329
+ ...agentEventBase,
330
+ eventType: z.literal(AgentEventType.TurnEvaluation),
331
+ schemaVersion: z.number().int(),
332
+ detectorVersion: z.number().int(),
333
+ workstreamId: z.string(),
334
+ turnSeq: z.number().int().min(1),
335
+ terminalType: TurnTerminalTypeSchema,
336
+ partial: z.boolean().optional(),
337
+ startedAt: z.string(),
338
+ endedAt: z.string(),
339
+ durationMs: z.number(),
340
+ activeMs: z.number(),
341
+ askUserWaitMs: z.number(),
342
+ approvalWaitMs: z.number(),
343
+ timeToFirstAnswerMs: z.number().optional(),
344
+ toolCalls: z.number().int(),
345
+ errorToolResults: z.number().int(),
346
+ maxFailStreak: z.number().int(),
347
+ identicalRetryCount: z.number().int(),
348
+ unrecoveredTools: z.array(z.string()),
349
+ errorClasses: ToolErrorClassCountsSchema,
350
+ gatherCalls: z.number().int(),
351
+ gatherRatio: z.number().optional(),
352
+ mutationAttempted: z.boolean(),
353
+ mutationSucceeded: z.boolean(),
354
+ rereadCount: z.number().int(),
355
+ overheadCalls: z.number().int(),
356
+ skillsLoaded: z.number().int(),
357
+ interruptedToolCalls: z.number().int(),
358
+ llmCalls: z.number().int(),
359
+ promptTokens: z.number(),
360
+ completionTokens: z.number(),
361
+ cachedTokens: z.number(),
362
+ retryCompletionTokens: z.number(),
363
+ approvalsRequested: z.number().int(),
364
+ approvalsDenied: z.number().int(),
365
+ stopRequests: z.number().int(),
366
+ followupAfterAnswer: z.boolean(),
367
+ severity: EvaluationSeveritySchema,
368
+ flags: z.array(TurnEvaluationFlagSchema),
369
+ terminalErrorClass: z.string().optional(),
370
+ tools: z.array(TurnToolObservationSchema),
371
+ toolsTruncated: z.number().int(),
372
+ });
373
+ const FeedbackEventSchema = z.strictObject({
374
+ ...agentEventBase,
375
+ eventType: z.literal(AgentEventType.Feedback),
376
+ feedbackId: z.string(),
377
+ rating: AgentRunFeedbackRatingSchema,
378
+ reasonCode: AgentRunFeedbackReasonCodeSchema.optional(),
379
+ hasComment: z.boolean(),
380
+ messageScoped: z.boolean(),
381
+ messageSeq: z.number().int().optional(),
382
+ replaced: z.boolean(),
383
+ });
384
+ const TurnJudgementEventSchema = z.strictObject({
385
+ ...agentEventBase,
386
+ eventType: z.literal(AgentEventType.TurnJudgement),
387
+ evaluationRev: z.number().int(),
388
+ workstreamId: z.string(),
389
+ turnSeq: z.number().int().min(0),
390
+ gate: JudgeGateReasonSchema,
391
+ sampleRate: z.number(),
392
+ selectedProbability: z.number(),
393
+ outcome: JudgeOutcomeSchema,
394
+ verdict: JudgeVerdictSchema.optional(),
395
+ score: z.number().optional(),
396
+ reasons: z.array(z.string()).optional(),
397
+ promptVersion: z.string(),
398
+ detectorVersion: z.number().int().optional(),
96
399
  });
97
400
  export const AgentEventSchema = z
98
401
  .discriminatedUnion('eventType', [
@@ -100,6 +403,9 @@ export const AgentEventSchema = z
100
403
  AgentRunCompletedEventSchema,
101
404
  LlmCallEventSchema,
102
405
  ToolCallEventSchema,
406
+ TurnEvaluationEventSchema,
407
+ FeedbackEventSchema,
408
+ TurnJudgementEventSchema,
103
409
  ])
104
410
  .meta({ id: 'AgentEvent' });
105
411
  export const IngestAgentEventsPayloadSchema = z
@@ -365,6 +671,11 @@ export const AutonomousRunResponseSchema = z
365
671
  .array(z.string())
366
672
  .meta({ description: 'Lessons learned from the conversation (extracted at completion)' })
367
673
  .optional(),
674
+ evaluation: AgentRunEvaluationSchema.meta({ description: 'Evaluation summary of the run.' }).optional(),
675
+ feedback: z
676
+ .array(AgentRunFeedbackEntrySchema)
677
+ .meta({ description: 'Retained user ratings on the run.' })
678
+ .optional(),
368
679
  archived_at: z
369
680
  .string()
370
681
  .meta({ description: 'When the last successful archive completed', format: 'date-time' })
@@ -508,6 +819,11 @@ export const AgentRunSchema = z
508
819
  .array(z.string())
509
820
  .meta({ description: 'Lessons learned from the conversation (extracted at completion)' })
510
821
  .optional(),
822
+ evaluation: AgentRunEvaluationSchema.meta({ description: 'Evaluation summary of the run.' }).optional(),
823
+ feedback: z
824
+ .array(AgentRunFeedbackEntrySchema)
825
+ .meta({ description: 'Retained user ratings on the run.' })
826
+ .optional(),
511
827
  archived_at: z
512
828
  .string()
513
829
  .meta({ description: 'When the last successful archive completed', format: 'date-time' })
@@ -903,6 +1219,13 @@ export const AgentRunArtifactQuerySchema = z
903
1219
  .meta({ id: 'AgentRunArtifactQuery' });
904
1220
  export const AgentRunDetailsQuerySchema = z
905
1221
  .object({
1222
+ from: z
1223
+ .string()
1224
+ .max(12000)
1225
+ .meta({
1226
+ description: 'Opaque history cursor from next_from; requires include_history. Invalid or expired cursors return a snapshot.',
1227
+ })
1228
+ .optional(),
906
1229
  include_history: z.boolean().optional(),
907
1230
  hydrate_payloads: z.boolean().optional(),
908
1231
  })
@@ -912,6 +1235,9 @@ export const AgentRunArtifactsQuerySchema = z
912
1235
  visibility: z.enum(['user', 'internal', 'all']).optional(),
913
1236
  })
914
1237
  .meta({ id: 'AgentRunArtifactsQuery' });
1238
+ export const ListAgentRunsEvaluationSeveritySchema = z
1239
+ .enum(['unrated', 'none', 'low', 'medium', 'high'])
1240
+ .meta({ id: 'ListAgentRunsEvaluationSeverity' });
915
1241
  export const ListAgentRunsQuerySchema = z
916
1242
  .object({
917
1243
  id: z.string().meta({ description: 'Filter by agent run ID' }).optional(),
@@ -935,6 +1261,21 @@ export const ListAgentRunsQuerySchema = z
935
1261
  run_kind: RunKindSchema.meta({ description: 'Filter by internal run discriminator' }).optional(),
936
1262
  sort: z.enum(['started_at', 'updated_at']).meta({ description: 'Field to sort by' }).optional(),
937
1263
  order: z.enum(['asc', 'desc']).meta({ description: 'Sort order' }).optional(),
1264
+ evaluation_severity: z
1265
+ .array(ListAgentRunsEvaluationSeveritySchema)
1266
+ .meta({ description: 'Filter by evaluation severity; `unrated` selects runs without an evaluation' })
1267
+ .optional(),
1268
+ evaluation_flag: z
1269
+ .array(TurnEvaluationFlagSchema)
1270
+ .meta({ description: 'Filter by evaluation flag (any of)' })
1271
+ .optional(),
1272
+ feedback_rating: AgentRunFeedbackRatingSchema.meta({
1273
+ description: 'Filter by last feedback rating',
1274
+ }).optional(),
1275
+ contradicted: z
1276
+ .boolean()
1277
+ .meta({ description: 'Only runs whose feedback or judge contradicts the detectors' })
1278
+ .optional(),
938
1279
  })
939
1280
  .meta({ id: 'ListAgentRunsQuery' });
940
1281
  export const AgentRunUpdatesQuerySchema = z
@@ -1013,6 +1354,7 @@ export const UpdateAgentRunStatusPayloadSchema = z
1013
1354
  last_archive_error: z.string().optional(),
1014
1355
  sequence: z.number().optional(),
1015
1356
  process_state: ProcessStateSchema.optional(),
1357
+ evaluation_rollup: AgentRunEvaluationRollupSchema.optional(),
1016
1358
  })
1017
1359
  .meta({ id: 'UpdateAgentRunStatusPayload' });
1018
1360
  export const AgentRunInternalsSchema = z