@vertesia/common 1.5.0 → 1.6.0-dev.20260918.061604Z

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 (179) hide show
  1. package/lib/access-control-values.d.ts +13 -0
  2. package/lib/access-control-values.d.ts.map +1 -1
  3. package/lib/access-control-values.js +24 -0
  4. package/lib/access-control-values.js.map +1 -1
  5. package/lib/api-contract/components.generated.json +4446 -2194
  6. package/lib/api-schemas/account.d.ts +3 -10
  7. package/lib/api-schemas/account.d.ts.map +1 -1
  8. package/lib/api-schemas/account.js +5 -9
  9. package/lib/api-schemas/account.js.map +1 -1
  10. package/lib/api-schemas/adapter.d.ts.map +1 -1
  11. package/lib/api-schemas/adapter.js +8 -1
  12. package/lib/api-schemas/adapter.js.map +1 -1
  13. package/lib/api-schemas/agent-communication.d.ts +1 -0
  14. package/lib/api-schemas/agent-communication.d.ts.map +1 -1
  15. package/lib/api-schemas/agent-communication.js +6 -0
  16. package/lib/api-schemas/agent-communication.js.map +1 -1
  17. package/lib/api-schemas/agent-runs.d.ts +5286 -903
  18. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  19. package/lib/api-schemas/agent-runs.js +366 -1
  20. package/lib/api-schemas/agent-runs.js.map +1 -1
  21. package/lib/api-schemas/apikey.d.ts +55 -0
  22. package/lib/api-schemas/apikey.d.ts.map +1 -1
  23. package/lib/api-schemas/apikey.js +30 -0
  24. package/lib/api-schemas/apikey.js.map +1 -1
  25. package/lib/api-schemas/app-runtime.d.ts +1240 -22
  26. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  27. package/lib/api-schemas/content.d.ts +435 -0
  28. package/lib/api-schemas/content.d.ts.map +1 -1
  29. package/lib/api-schemas/delegation.d.ts +35 -0
  30. package/lib/api-schemas/delegation.d.ts.map +1 -0
  31. package/lib/api-schemas/delegation.js +21 -0
  32. package/lib/api-schemas/delegation.js.map +1 -0
  33. package/lib/api-schemas/document-processing.d.ts +261 -0
  34. package/lib/api-schemas/document-processing.d.ts.map +1 -1
  35. package/lib/api-schemas/emit-json-schema.d.ts +5 -0
  36. package/lib/api-schemas/emit-json-schema.d.ts.map +1 -0
  37. package/lib/api-schemas/emit-json-schema.js +37 -0
  38. package/lib/api-schemas/emit-json-schema.js.map +1 -0
  39. package/lib/api-schemas/environment.d.ts +18 -0
  40. package/lib/api-schemas/environment.d.ts.map +1 -1
  41. package/lib/api-schemas/events.d.ts +783 -0
  42. package/lib/api-schemas/events.d.ts.map +1 -1
  43. package/lib/api-schemas/index.d.ts +1 -0
  44. package/lib/api-schemas/index.d.ts.map +1 -1
  45. package/lib/api-schemas/index.js +1 -0
  46. package/lib/api-schemas/index.js.map +1 -1
  47. package/lib/api-schemas/interaction.d.ts +3939 -91
  48. package/lib/api-schemas/interaction.d.ts.map +1 -1
  49. package/lib/api-schemas/interaction.js +14 -3
  50. package/lib/api-schemas/interaction.js.map +1 -1
  51. package/lib/api-schemas/oauth-server.d.ts +1 -0
  52. package/lib/api-schemas/oauth-server.d.ts.map +1 -1
  53. package/lib/api-schemas/oauth-server.js +3 -0
  54. package/lib/api-schemas/oauth-server.js.map +1 -1
  55. package/lib/api-schemas/process-agent-policy.d.ts +69 -0
  56. package/lib/api-schemas/process-agent-policy.d.ts.map +1 -0
  57. package/lib/api-schemas/process-agent-policy.js +154 -0
  58. package/lib/api-schemas/process-agent-policy.js.map +1 -0
  59. package/lib/api-schemas/process.d.ts +1260 -0
  60. package/lib/api-schemas/process.d.ts.map +1 -1
  61. package/lib/api-schemas/process.js +29 -1
  62. package/lib/api-schemas/process.js.map +1 -1
  63. package/lib/api-schemas/project-configuration.d.ts +883 -8
  64. package/lib/api-schemas/project-configuration.d.ts.map +1 -1
  65. package/lib/api-schemas/project-configuration.js +3 -2
  66. package/lib/api-schemas/project-configuration.js.map +1 -1
  67. package/lib/api-schemas/project.d.ts +1330 -22
  68. package/lib/api-schemas/project.d.ts.map +1 -1
  69. package/lib/api-schemas/registry.d.ts +24347 -5694
  70. package/lib/api-schemas/registry.d.ts.map +1 -1
  71. package/lib/api-schemas/registry.js +50 -8
  72. package/lib/api-schemas/registry.js.map +1 -1
  73. package/lib/api-schemas/store.d.ts +4427 -77
  74. package/lib/api-schemas/store.d.ts.map +1 -1
  75. package/lib/api-schemas/sts.d.ts +6 -0
  76. package/lib/api-schemas/sts.d.ts.map +1 -1
  77. package/lib/api-schemas/sts.js +3 -0
  78. package/lib/api-schemas/sts.js.map +1 -1
  79. package/lib/api-schemas/workflow-runs.d.ts +189 -0
  80. package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
  81. package/lib/api-schemas/workflow-runs.js +14 -0
  82. package/lib/api-schemas/workflow-runs.js.map +1 -1
  83. package/lib/apikey.d.ts +8 -0
  84. package/lib/apikey.d.ts.map +1 -1
  85. package/lib/apikey.js.map +1 -1
  86. package/lib/delegation.d.ts +13 -0
  87. package/lib/delegation.d.ts.map +1 -0
  88. package/lib/delegation.js +2 -0
  89. package/lib/delegation.js.map +1 -0
  90. package/lib/environment.d.ts +1 -0
  91. package/lib/environment.d.ts.map +1 -1
  92. package/lib/index.d.ts +1 -0
  93. package/lib/index.d.ts.map +1 -1
  94. package/lib/index.js.map +1 -1
  95. package/lib/oauth-scopes.d.ts.map +1 -1
  96. package/lib/oauth-scopes.js +3 -1
  97. package/lib/oauth-scopes.js.map +1 -1
  98. package/lib/project-values.d.ts +1 -0
  99. package/lib/project-values.d.ts.map +1 -1
  100. package/lib/project-values.js +1 -0
  101. package/lib/project-values.js.map +1 -1
  102. package/lib/store/agent-run-values.d.ts +25 -0
  103. package/lib/store/agent-run-values.d.ts.map +1 -0
  104. package/lib/store/agent-run-values.js +25 -0
  105. package/lib/store/agent-run-values.js.map +1 -0
  106. package/lib/store/agent-run.d.ts +22 -2
  107. package/lib/store/agent-run.d.ts.map +1 -1
  108. package/lib/store/agent-run.js +1 -1
  109. package/lib/store/agent-run.js.map +1 -1
  110. package/lib/store/conversation-state.d.ts +1 -1
  111. package/lib/store/conversation-state.d.ts.map +1 -1
  112. package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
  113. package/lib/store/intake-policy-schema.generated.js +124 -0
  114. package/lib/store/intake-policy-schema.generated.js.map +1 -1
  115. package/lib/store/process.d.ts +17 -0
  116. package/lib/store/process.d.ts.map +1 -1
  117. package/lib/store/process.js.map +1 -1
  118. package/lib/store/schedule.d.ts +62 -25
  119. package/lib/store/schedule.d.ts.map +1 -1
  120. package/lib/store/schedule.js +2 -2
  121. package/lib/store/schedule.js.map +1 -1
  122. package/lib/store/workflow.d.ts +2 -0
  123. package/lib/store/workflow.d.ts.map +1 -1
  124. package/lib/store/workflow.js.map +1 -1
  125. package/lib/vertesia-common.js +2 -2
  126. package/lib/vertesia-common.js.map +1 -1
  127. package/lib/workflow-analytics.d.ts +230 -2
  128. package/lib/workflow-analytics.d.ts.map +1 -1
  129. package/lib/workflow-analytics.js +8 -0
  130. package/lib/workflow-analytics.js.map +1 -1
  131. package/package.json +8 -8
  132. package/src/access-control-values.ts +26 -0
  133. package/src/api-contract/components.contract.test.ts +2 -2
  134. package/src/api-contract/components.generated.json +4446 -2194
  135. package/src/api-schemas/account-apikey.test.ts +60 -0
  136. package/src/api-schemas/account.contract.test.ts +2 -1
  137. package/src/api-schemas/account.ts +5 -9
  138. package/src/api-schemas/adapter-edge-cases.test.ts +19 -0
  139. package/src/api-schemas/adapter.ts +8 -1
  140. package/src/api-schemas/agent-communication.ts +6 -0
  141. package/src/api-schemas/agent-history.contract.test.ts +42 -0
  142. package/src/api-schemas/agent-runs.contract.test.ts +240 -0
  143. package/src/api-schemas/agent-runs.ts +399 -0
  144. package/src/api-schemas/apikey.ts +31 -0
  145. package/src/api-schemas/bundle-isolation.test.ts +5 -41
  146. package/src/api-schemas/delegation.ts +21 -0
  147. package/src/api-schemas/emit-json-schema.test.ts +36 -0
  148. package/src/api-schemas/emit-json-schema.ts +40 -0
  149. package/src/api-schemas/environment.contract.test.ts +3 -0
  150. package/src/api-schemas/index.ts +1 -0
  151. package/src/api-schemas/interaction.contract.test.ts +23 -0
  152. package/src/api-schemas/interaction.ts +15 -3
  153. package/src/api-schemas/llumiverse.contract.test.ts +3 -9
  154. package/src/api-schemas/oauth-server.ts +4 -0
  155. package/src/api-schemas/process-agent-policy.ts +167 -0
  156. package/src/api-schemas/process.contract.test.ts +115 -0
  157. package/src/api-schemas/process.ts +31 -1
  158. package/src/api-schemas/project-configuration.ts +3 -2
  159. package/src/api-schemas/project.contract.test.ts +15 -0
  160. package/src/api-schemas/registry.ts +59 -10
  161. package/src/api-schemas/store.contract.test.ts +4 -126
  162. package/src/api-schemas/sts.ts +3 -0
  163. package/src/api-schemas/workflow-runs.ts +16 -0
  164. package/src/api-schemas/zeno-response-contracts.test.ts +36 -0
  165. package/src/apikey.ts +13 -0
  166. package/src/delegation.ts +18 -0
  167. package/src/index.ts +6 -0
  168. package/src/oauth-scopes.ts +3 -1
  169. package/src/project-values.ts +1 -0
  170. package/src/roles.test.ts +1 -0
  171. package/src/store/agent-run-values.ts +27 -0
  172. package/src/store/agent-run.ts +36 -0
  173. package/src/store/conversation-state.ts +1 -1
  174. package/src/store/intake-policy-schema.generated.ts +125 -0
  175. package/src/store/process.ts +22 -0
  176. package/src/store/schedule.test.ts +59 -0
  177. package/src/store/schedule.ts +91 -27
  178. package/src/store/workflow.ts +2 -0
  179. package/src/workflow-analytics.ts +274 -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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAuBE,CAAC"}
@@ -1,15 +1,236 @@
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
+ 'circuit_breaker',
38
+ ])
39
+ .meta({ id: 'TurnEvaluationFlag', description: 'Reason behind an evaluation severity.' });
40
+ export const ToolErrorClassSchema = z
41
+ .enum(['schema', 'platform', 'config', 'environment', 'other'])
42
+ .meta({ id: 'ToolErrorClass', description: 'Coarse class of a tool error, derived from the error text.' });
43
+ const ToolErrorClassCountsSchema = z.strictObject({
44
+ schema: z.number().int().min(0),
45
+ platform: z.number().int().min(0),
46
+ config: z.number().int().min(0),
47
+ environment: z.number().int().min(0),
48
+ other: z.number().int().min(0),
49
+ });
50
+ const TelemetryDeploymentSchema = z.strictObject({
51
+ env: z.string(),
52
+ group: z.string(),
53
+ version: z.string(),
54
+ region: z.string().optional(),
55
+ });
56
+ const TelemetryProducerSchema = z.strictObject({
57
+ version: z.string(),
58
+ });
59
+ export const JudgeGateReasonSchema = z
60
+ .enum(['signal', 'sample'])
61
+ .meta({ id: 'JudgeGateReason', description: 'Why the judge looked at a run.' });
62
+ export const JudgeOutcomeSchema = z
63
+ .enum(['judged', 'skipped_unarchived', 'failed'])
64
+ .meta({ id: 'JudgeOutcome', description: 'What a judge run produced.' });
65
+ export const JudgeVerdictSchema = z
66
+ .enum(['success', 'partial', 'failure'])
67
+ .meta({ id: 'JudgeVerdict', description: "The judge's reading of a turn." });
68
+ // ----------------------------------------------------------------------------
69
+ // User feedback
70
+ // ----------------------------------------------------------------------------
71
+ /**
72
+ * How the user rated an agent run's work. Two values on purpose: a rating is a signal, not a score,
73
+ * and a wider scale invites a precision the reader does not have.
74
+ */
75
+ export const AgentRunFeedbackRatingSchema = z
76
+ .enum(['up', 'down'])
77
+ .meta({ id: 'AgentRunFeedbackRating', description: 'Thumbs up or thumbs down on an agent run.' });
78
+ /**
79
+ * The closed reason vocabulary. Closed rather than free text because the reason is the part that
80
+ * gets counted; the free-text `comment` stays with the tenant and is never aggregated.
81
+ */
82
+ export const AgentRunFeedbackReasonCodeSchema = z
83
+ .enum([
84
+ 'accurate',
85
+ 'helpful',
86
+ 'fast',
87
+ 'well_explained',
88
+ 'wrong_result',
89
+ 'incomplete',
90
+ 'misunderstood_request',
91
+ 'too_slow',
92
+ 'tool_failure',
93
+ 'unsafe_action',
94
+ 'other',
95
+ ])
96
+ .meta({ id: 'AgentRunFeedbackReasonCode', description: 'Why the run was rated the way it was.' });
97
+ export const AgentRunFeedbackPayloadSchema = z
98
+ .strictObject({
99
+ feedback_id: z.string().min(1).max(AGENT_RUN_FEEDBACK_ID_MAX_LENGTH).meta({
100
+ description: 'Client-generated idempotency key (a UUID). A retried request with the same id is a no-op.',
101
+ }),
102
+ rating: AgentRunFeedbackRatingSchema,
103
+ reason_code: AgentRunFeedbackReasonCodeSchema.optional(),
104
+ comment: z.string().max(AGENT_RUN_FEEDBACK_COMMENT_MAX_LENGTH).optional().meta({
105
+ description: 'Free-text comment. Stored with the tenant; only its presence is ever counted.',
106
+ }),
107
+ message_id: z.string().optional().meta({
108
+ description: 'Rate one message rather than the run as a whole.',
109
+ }),
110
+ message_seq: z.number().int().min(0).optional().meta({
111
+ description: 'Position of the rated message in the run, when a message is rated.',
112
+ }),
113
+ })
114
+ .meta({ id: 'AgentRunFeedbackPayload', description: 'A user rating on an agent run.' });
115
+ /**
116
+ * What happened to the rating. `recorded` and `replaced` both mean it counts; `replaced` says an
117
+ * earlier rating by the same user on the same scope was superseded. `disabled` means this
118
+ * deployment does not record feedback; it answers 200 because a rating is never the user's error.
119
+ */
120
+ export const AgentRunFeedbackStatusSchema = z
121
+ .enum(['recorded', 'replaced', 'disabled'])
122
+ .meta({ id: 'AgentRunFeedbackStatus', description: 'Whether the rating was recorded.' });
123
+ export const AgentRunFeedbackCountsSchema = z
124
+ .strictObject({
125
+ up: z.number().int().min(0),
126
+ down: z.number().int().min(0),
127
+ last_rating: AgentRunFeedbackRatingSchema.optional(),
128
+ last_reason_code: AgentRunFeedbackReasonCodeSchema.optional(),
129
+ })
130
+ .meta({
131
+ id: 'AgentRunFeedbackCounts',
132
+ description: 'Ratings over the retained feedback entries, one vote per rater: a user who rated the run and ' +
133
+ 'one of its answers counts once, by their latest rating.',
134
+ });
135
+ export const AgentRunFeedbackResponseSchema = z
136
+ .strictObject({
137
+ status: AgentRunFeedbackStatusSchema,
138
+ feedback_counts: AgentRunFeedbackCountsSchema.optional(),
139
+ })
140
+ .meta({ id: 'AgentRunFeedbackResponse', description: 'Result of rating an agent run.' });
141
+ export const AgentRunFeedbackEntrySchema = z
142
+ .strictObject({
143
+ feedback_id: z.string(),
144
+ rating: AgentRunFeedbackRatingSchema,
145
+ reason_code: AgentRunFeedbackReasonCodeSchema.optional(),
146
+ comment: z.string().optional(),
147
+ message_id: z.string().optional(),
148
+ message_seq: z.number().int().optional(),
149
+ message_scoped: z.boolean(),
150
+ user_id: z.string(),
151
+ rated_at: z.string().meta({ format: 'date-time' }),
152
+ replaced_at: z.string().meta({ format: 'date-time' }).optional(),
153
+ })
154
+ .meta({ id: 'AgentRunFeedbackEntry', description: 'One recorded rating on an agent run.' });
155
+ // ----------------------------------------------------------------------------
156
+ // Evaluation summary
157
+ // ----------------------------------------------------------------------------
158
+ const AgentRunEvaluationTotalsSchema = z.strictObject({
159
+ tool_calls: z.number().int(),
160
+ error_tool_results: z.number().int(),
161
+ unrecovered_tools: z.array(z.string()),
162
+ llm_calls: z.number().int(),
163
+ prompt_tokens: z.number(),
164
+ completion_tokens: z.number(),
165
+ cached_tokens: z.number(),
166
+ retry_completion_tokens: z.number(),
167
+ active_ms: z.number(),
168
+ ask_user_wait_ms: z.number(),
169
+ approval_wait_ms: z.number(),
170
+ followups: z.number().int(),
171
+ approvals_requested: z.number().int(),
172
+ approvals_denied: z.number().int(),
173
+ stop_requests: z.number().int(),
174
+ /** Absent on rollups written before the stall counters existed; read as 0. */
175
+ stall_trips: z.number().int().optional(),
176
+ });
177
+ /**
178
+ * What the workflow reports about a run: the fold of its turn evaluations. Owned by the workflow;
179
+ * it never carries feedback or judge fields, which the server owns.
180
+ */
181
+ export const AgentRunEvaluationRollupSchema = z
182
+ .strictObject({
183
+ seq: z.number().int().min(1).meta({
184
+ description: 'Monotonic per run; the server ignores a rollup older than the one it holds.',
185
+ }),
186
+ detector_version: z.number().int(),
187
+ turns: z.number().int(),
188
+ severity: EvaluationSeveritySchema,
189
+ flags: z.array(TurnEvaluationFlagSchema),
190
+ worst_turn_seq: z.number().int().optional(),
191
+ last_terminal_type: TurnTerminalTypeSchema.optional(),
192
+ terminal_error_class: z.string().optional(),
193
+ partial: z.boolean().optional(),
194
+ totals: AgentRunEvaluationTotalsSchema,
195
+ updated_at: z.string().meta({ format: 'date-time' }),
196
+ })
197
+ .meta({ id: 'AgentRunEvaluationRollup', description: 'Fold of the turn evaluations of a run.' });
198
+ export const AgentRunJudgeResultSchema = z
199
+ .strictObject({
200
+ rev: z.number().int(),
201
+ gate: JudgeGateReasonSchema,
202
+ sample_rate: z.number(),
203
+ selected_probability: z.number(),
204
+ outcome: JudgeOutcomeSchema,
205
+ verdict: JudgeVerdictSchema.optional(),
206
+ score: z.number().optional(),
207
+ model: z.string().optional(),
208
+ prompt_version: z.string(),
209
+ turns_judged: z.array(z.number().int()).optional(),
210
+ judged_at: z.string().meta({ format: 'date-time' }),
211
+ })
212
+ .meta({ id: 'AgentRunJudgeResult', description: 'Latest judge result for a run.' });
213
+ export const AgentRunContradictionReasonSchema = z
214
+ .enum(['feedback_down_on_clean_run', 'judge_failure_on_clean_run'])
215
+ .meta({ id: 'AgentRunContradictionReason' });
216
+ /**
217
+ * The server-owned evaluation summary of a run: the workflow rollup, the feedback counts and the
218
+ * judge result, plus the derived severity, flags and contradiction the run list filters on.
219
+ */
220
+ export const AgentRunEvaluationSchema = z
221
+ .strictObject({
222
+ rev: z.number().int().meta({ description: 'Bumped on every change to any part of the summary.' }),
223
+ rollup: AgentRunEvaluationRollupSchema.optional(),
224
+ feedback_counts: AgentRunFeedbackCountsSchema.optional(),
225
+ judge: AgentRunJudgeResultSchema.optional(),
226
+ severity: EvaluationSeveritySchema,
227
+ flags: z.array(TurnEvaluationFlagSchema),
228
+ contradicted: z.boolean(),
229
+ contradiction_reasons: z.array(AgentRunContradictionReasonSchema).optional(),
230
+ deployment_env: z.string().optional(),
231
+ updated_at: z.string().meta({ format: 'date-time' }),
232
+ })
233
+ .meta({ id: 'AgentRunEvaluation', description: 'Evaluation summary of an agent run.' });
13
234
  const agentEventBase = {
14
235
  timestamp: z.string(),
15
236
  runId: z.string(),
@@ -20,6 +241,9 @@ const agentEventBase = {
20
241
  interactionId: z.string(),
21
242
  parentRunId: z.string().optional(),
22
243
  ancestorRunIds: z.array(z.string()).optional(),
244
+ eventId: z.string().optional(),
245
+ deployment: TelemetryDeploymentSchema.optional(),
246
+ producer: TelemetryProducerSchema.optional(),
23
247
  };
24
248
  const AgentRunStartedEventSchema = z.strictObject({
25
249
  ...agentEventBase,
@@ -93,6 +317,107 @@ const ToolCallEventSchema = z.strictObject({
93
317
  errorType: z.string().optional(),
94
318
  errorMessage: z.string().optional(),
95
319
  spawnedChildWorkflow: z.boolean().optional(),
320
+ approvalClass: AgentToolApprovalClassSchema.optional(),
321
+ errorClass: ToolErrorClassSchema.optional(),
322
+ signatureHash: z.string().optional(),
323
+ workstreamId: z.string().optional(),
324
+ });
325
+ const TurnToolObservationSchema = z.strictObject({
326
+ seq: z.number().int().min(1),
327
+ toolUseId: z.string(),
328
+ name: z.string(),
329
+ approvalClass: AgentToolApprovalClassSchema.optional(),
330
+ ok: z.boolean(),
331
+ errorClass: ToolErrorClassSchema.optional(),
332
+ sig: z.string(),
333
+ durationMs: z.number(),
334
+ });
335
+ const TurnEvaluationEventSchema = z.strictObject({
336
+ ...agentEventBase,
337
+ eventType: z.literal(AgentEventType.TurnEvaluation),
338
+ schemaVersion: z.number().int(),
339
+ detectorVersion: z.number().int(),
340
+ workstreamId: z.string(),
341
+ turnSeq: z.number().int().min(1),
342
+ terminalType: TurnTerminalTypeSchema,
343
+ partial: z.boolean().optional(),
344
+ startedAt: z.string(),
345
+ endedAt: z.string(),
346
+ durationMs: z.number(),
347
+ activeMs: z.number(),
348
+ askUserWaitMs: z.number(),
349
+ approvalWaitMs: z.number(),
350
+ timeToFirstAnswerMs: z.number().optional(),
351
+ toolCalls: z.number().int(),
352
+ errorToolResults: z.number().int(),
353
+ maxFailStreak: z.number().int(),
354
+ identicalRetryCount: z.number().int(),
355
+ unrecoveredTools: z.array(z.string()),
356
+ errorClasses: ToolErrorClassCountsSchema,
357
+ gatherCalls: z.number().int(),
358
+ gatherRatio: z.number().optional(),
359
+ mutationAttempted: z.boolean(),
360
+ mutationSucceeded: z.boolean(),
361
+ rereadCount: z.number().int(),
362
+ overheadCalls: z.number().int(),
363
+ skillsLoaded: z.number().int(),
364
+ interruptedToolCalls: z.number().int(),
365
+ llmCalls: z.number().int(),
366
+ promptTokens: z.number(),
367
+ completionTokens: z.number(),
368
+ cachedTokens: z.number(),
369
+ retryCompletionTokens: z.number(),
370
+ approvalsRequested: z.number().int(),
371
+ approvalsDenied: z.number().int(),
372
+ stopRequests: z.number().int(),
373
+ /** Absent on events from producers that predate the stall counters; read as 0. */
374
+ stallCorrectives: z.number().int().optional(),
375
+ stallTrips: z.number().int().optional(),
376
+ followupAfterAnswer: z.boolean(),
377
+ severity: EvaluationSeveritySchema,
378
+ flags: z.array(TurnEvaluationFlagSchema),
379
+ terminalErrorClass: z.string().optional(),
380
+ tools: z.array(TurnToolObservationSchema),
381
+ toolsTruncated: z.number().int(),
382
+ });
383
+ const FeedbackEventSchema = z.strictObject({
384
+ ...agentEventBase,
385
+ eventType: z.literal(AgentEventType.Feedback),
386
+ feedbackId: z.string(),
387
+ rating: AgentRunFeedbackRatingSchema,
388
+ reasonCode: AgentRunFeedbackReasonCodeSchema.optional(),
389
+ hasComment: z.boolean(),
390
+ messageScoped: z.boolean(),
391
+ messageSeq: z.number().int().optional(),
392
+ replaced: z.boolean(),
393
+ });
394
+ const TurnJudgementEventSchema = z.strictObject({
395
+ ...agentEventBase,
396
+ eventType: z.literal(AgentEventType.TurnJudgement),
397
+ evaluationRev: z.number().int(),
398
+ workstreamId: z.string(),
399
+ turnSeq: z.number().int().min(0),
400
+ gate: JudgeGateReasonSchema,
401
+ sampleRate: z.number(),
402
+ selectedProbability: z.number(),
403
+ outcome: JudgeOutcomeSchema,
404
+ verdict: JudgeVerdictSchema.optional(),
405
+ score: z.number().optional(),
406
+ reasons: z.array(z.string()).optional(),
407
+ promptVersion: z.string(),
408
+ detectorVersion: z.number().int().optional(),
409
+ });
410
+ const StallBreakerEventSchema = z.strictObject({
411
+ ...agentEventBase,
412
+ eventType: z.literal(AgentEventType.StallBreaker),
413
+ action: z.enum(['corrective', 'trip']),
414
+ toolNames: z.array(z.string()),
415
+ repeatCount: z.number().int(),
416
+ stallMeasure: z.number().int(),
417
+ allErrored: z.boolean(),
418
+ iteration: z.number().int(),
419
+ interactive: z.boolean(),
420
+ workstreamId: z.string(),
96
421
  });
97
422
  export const AgentEventSchema = z
98
423
  .discriminatedUnion('eventType', [
@@ -100,6 +425,10 @@ export const AgentEventSchema = z
100
425
  AgentRunCompletedEventSchema,
101
426
  LlmCallEventSchema,
102
427
  ToolCallEventSchema,
428
+ TurnEvaluationEventSchema,
429
+ FeedbackEventSchema,
430
+ TurnJudgementEventSchema,
431
+ StallBreakerEventSchema,
103
432
  ])
104
433
  .meta({ id: 'AgentEvent' });
105
434
  export const IngestAgentEventsPayloadSchema = z
@@ -365,6 +694,11 @@ export const AutonomousRunResponseSchema = z
365
694
  .array(z.string())
366
695
  .meta({ description: 'Lessons learned from the conversation (extracted at completion)' })
367
696
  .optional(),
697
+ evaluation: AgentRunEvaluationSchema.meta({ description: 'Evaluation summary of the run.' }).optional(),
698
+ feedback: z
699
+ .array(AgentRunFeedbackEntrySchema)
700
+ .meta({ description: 'Retained user ratings on the run.' })
701
+ .optional(),
368
702
  archived_at: z
369
703
  .string()
370
704
  .meta({ description: 'When the last successful archive completed', format: 'date-time' })
@@ -508,6 +842,11 @@ export const AgentRunSchema = z
508
842
  .array(z.string())
509
843
  .meta({ description: 'Lessons learned from the conversation (extracted at completion)' })
510
844
  .optional(),
845
+ evaluation: AgentRunEvaluationSchema.meta({ description: 'Evaluation summary of the run.' }).optional(),
846
+ feedback: z
847
+ .array(AgentRunFeedbackEntrySchema)
848
+ .meta({ description: 'Retained user ratings on the run.' })
849
+ .optional(),
511
850
  archived_at: z
512
851
  .string()
513
852
  .meta({ description: 'When the last successful archive completed', format: 'date-time' })
@@ -903,6 +1242,13 @@ export const AgentRunArtifactQuerySchema = z
903
1242
  .meta({ id: 'AgentRunArtifactQuery' });
904
1243
  export const AgentRunDetailsQuerySchema = z
905
1244
  .object({
1245
+ from: z
1246
+ .string()
1247
+ .max(12000)
1248
+ .meta({
1249
+ description: 'Opaque history cursor from next_from; requires include_history. Invalid or expired cursors return a snapshot.',
1250
+ })
1251
+ .optional(),
906
1252
  include_history: z.boolean().optional(),
907
1253
  hydrate_payloads: z.boolean().optional(),
908
1254
  })
@@ -912,6 +1258,9 @@ export const AgentRunArtifactsQuerySchema = z
912
1258
  visibility: z.enum(['user', 'internal', 'all']).optional(),
913
1259
  })
914
1260
  .meta({ id: 'AgentRunArtifactsQuery' });
1261
+ export const ListAgentRunsEvaluationSeveritySchema = z
1262
+ .enum(['unrated', 'none', 'low', 'medium', 'high'])
1263
+ .meta({ id: 'ListAgentRunsEvaluationSeverity' });
915
1264
  export const ListAgentRunsQuerySchema = z
916
1265
  .object({
917
1266
  id: z.string().meta({ description: 'Filter by agent run ID' }).optional(),
@@ -935,6 +1284,21 @@ export const ListAgentRunsQuerySchema = z
935
1284
  run_kind: RunKindSchema.meta({ description: 'Filter by internal run discriminator' }).optional(),
936
1285
  sort: z.enum(['started_at', 'updated_at']).meta({ description: 'Field to sort by' }).optional(),
937
1286
  order: z.enum(['asc', 'desc']).meta({ description: 'Sort order' }).optional(),
1287
+ evaluation_severity: z
1288
+ .array(ListAgentRunsEvaluationSeveritySchema)
1289
+ .meta({ description: 'Filter by evaluation severity; `unrated` selects runs without an evaluation' })
1290
+ .optional(),
1291
+ evaluation_flag: z
1292
+ .array(TurnEvaluationFlagSchema)
1293
+ .meta({ description: 'Filter by evaluation flag (any of)' })
1294
+ .optional(),
1295
+ feedback_rating: AgentRunFeedbackRatingSchema.meta({
1296
+ description: 'Filter by last feedback rating',
1297
+ }).optional(),
1298
+ contradicted: z
1299
+ .boolean()
1300
+ .meta({ description: 'Only runs whose feedback or judge contradicts the detectors' })
1301
+ .optional(),
938
1302
  })
939
1303
  .meta({ id: 'ListAgentRunsQuery' });
940
1304
  export const AgentRunUpdatesQuerySchema = z
@@ -1013,6 +1377,7 @@ export const UpdateAgentRunStatusPayloadSchema = z
1013
1377
  last_archive_error: z.string().optional(),
1014
1378
  sequence: z.number().optional(),
1015
1379
  process_state: ProcessStateSchema.optional(),
1380
+ evaluation_rollup: AgentRunEvaluationRollupSchema.optional(),
1016
1381
  })
1017
1382
  .meta({ id: 'UpdateAgentRunStatusPayload' });
1018
1383
  export const AgentRunInternalsSchema = z