@o11y-one/api-agentic 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,826 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { AgenticEvaluationCapabilitiesV1, EvaluationFreshnessV1, MetricAvailabilityV1, PrincipalRefV1 } from "./evaluation_pb.js";
4
+ import type { EvidenceAnchorV1 } from "./artifact_pb.js";
5
+ import type { Message } from "@bufbuild/protobuf";
6
+ /**
7
+ * Describes the file o11y_one/agentic/v1/agent_run.proto.
8
+ */
9
+ export declare const file_o11y_one_agentic_v1_agent_run: GenFile;
10
+ /**
11
+ * `P7-3`, verbatim in its four required fields: confidence carries its INPUTS,
12
+ * not just its verdict, so "explain confidence" is a rendering of returned data
13
+ * and never a frontend heuristic.
14
+ *
15
+ * @generated from message o11y_one.agentic.v1.GroupingConfidenceInputV1
16
+ */
17
+ export type GroupingConfidenceInputV1 = Message<"o11y_one.agentic.v1.GroupingConfidenceInputV1"> & {
18
+ /**
19
+ * @generated from field: o11y_one.agentic.v1.AgentRunGroupingSignalKindV1 signal_kind = 1;
20
+ */
21
+ signalKind: AgentRunGroupingSignalKindV1;
22
+ /**
23
+ * How many member traces this signal was observed on.
24
+ *
25
+ * @generated from field: uint32 observed_on_member_count = 2;
26
+ */
27
+ observedOnMemberCount: number;
28
+ /**
29
+ * How many member traces the run has. `observed == total` is what separates
30
+ * rung 1 from rung 2.
31
+ *
32
+ * @generated from field: uint32 total_member_count = 3;
33
+ */
34
+ totalMemberCount: number;
35
+ /**
36
+ * The rung this signal contributed. Present on every input, including inputs
37
+ * that did NOT win: a reader can see that a secondary identity agreed with the
38
+ * official one rather than only that the official one was used.
39
+ *
40
+ * @generated from field: o11y_one.agentic.v1.AgentRunGroupingConfidenceV1 contributed_rung = 4;
41
+ */
42
+ contributedRung: AgentRunGroupingConfidenceV1;
43
+ /**
44
+ * The fifth field, and not decoration. It is the only place the span-link
45
+ * posture can be told per run rather than per deployment: `_DEGRADED` with
46
+ * `span_link_attributes_dropped_at_ingest` says this signal is adjacency and
47
+ * not a stated relationship.
48
+ *
49
+ * @generated from field: o11y_one.agentic.v1.MetricAvailabilityV1 availability = 5;
50
+ */
51
+ availability?: MetricAvailabilityV1 | undefined;
52
+ };
53
+ /**
54
+ * Describes the message o11y_one.agentic.v1.GroupingConfidenceInputV1.
55
+ * Use `create(GroupingConfidenceInputV1Schema)` to create a new message.
56
+ */
57
+ export declare const GroupingConfidenceInputV1Schema: GenMessage<GroupingConfidenceInputV1>;
58
+ /**
59
+ * `P7-6`. Returned by ANY read addressed with a non-`_CURRENT` id, alongside the
60
+ * canonical run's content. Never instead of it, and never a `NOT_FOUND`.
61
+ *
62
+ * @generated from message o11y_one.agentic.v1.GroupingRedirectV1
63
+ */
64
+ export type GroupingRedirectV1 = Message<"o11y_one.agentic.v1.GroupingRedirectV1"> & {
65
+ /**
66
+ * The id the caller asked for.
67
+ *
68
+ * @generated from field: string from_id = 1;
69
+ */
70
+ fromId: string;
71
+ /**
72
+ * Where it went. Exactly one for a merge or a plain redirect; two or more for
73
+ * a split, which is why this is repeated rather than optional.
74
+ *
75
+ * @generated from field: repeated string to_ids = 2;
76
+ */
77
+ toIds: string[];
78
+ /**
79
+ * @generated from field: o11y_one.agentic.v1.AgentRunGroupingRedirectReasonV1 reason = 3;
80
+ */
81
+ reason: AgentRunGroupingRedirectReasonV1;
82
+ /**
83
+ * The grouping revision at which the move happened.
84
+ *
85
+ * @generated from field: uint64 revision = 4;
86
+ */
87
+ revision: bigint;
88
+ /**
89
+ * @generated from field: google.protobuf.Timestamp occurred_at = 5;
90
+ */
91
+ occurredAt?: Timestamp | undefined;
92
+ };
93
+ /**
94
+ * Describes the message o11y_one.agentic.v1.GroupingRedirectV1.
95
+ * Use `create(GroupingRedirectV1Schema)` to create a new message.
96
+ */
97
+ export declare const GroupingRedirectV1Schema: GenMessage<GroupingRedirectV1>;
98
+ /**
99
+ * The bounds, published as numbers on every run rather than described in prose
100
+ * on a capability nobody fetched.
101
+ *
102
+ * `P7-2` locks the RULE that three bounds exist and that breach means
103
+ * split-not-merge; the numbers are this lane's, and they are here so a client
104
+ * rendering "this group was split" can say what it was split by.
105
+ *
106
+ * @generated from message o11y_one.agentic.v1.AgentRunGroupingBoundsV1
107
+ */
108
+ export type AgentRunGroupingBoundsV1 = Message<"o11y_one.agentic.v1.AgentRunGroupingBoundsV1"> & {
109
+ /**
110
+ * Rung-4 bound 1: the most member traces a heuristic group may hold.
111
+ *
112
+ * @generated from field: uint32 max_member_traces = 1;
113
+ */
114
+ maxMemberTraces: number;
115
+ /**
116
+ * Rung-4 bound 2: the widest wall clock a heuristic group may span.
117
+ *
118
+ * @generated from field: uint64 max_wall_clock_seconds = 2;
119
+ */
120
+ maxWallClockSeconds: bigint;
121
+ /**
122
+ * Rung-4 bound 3: the longest silence between two members of one heuristic
123
+ * group. Deliberately EQUAL to the completeness inactivity window, so "this
124
+ * conversation went quiet" and "these are not the same conversation" cannot
125
+ * disagree about the same silence.
126
+ *
127
+ * @generated from field: uint64 max_inactivity_gap_seconds = 3;
128
+ */
129
+ maxInactivityGapSeconds: bigint;
130
+ /**
131
+ * The plane's own edge, not this surface's choice:
132
+ * `trace_partition_pruning_range` clamps every trace query to fourteen days.
133
+ *
134
+ * @generated from field: uint32 max_lookback_hours = 4;
135
+ */
136
+ maxLookbackHours: number;
137
+ /**
138
+ * The trace viewer's whole refusal, per MEMBER trace.
139
+ *
140
+ * @generated from field: uint32 max_spans_per_member_trace = 5;
141
+ */
142
+ maxSpansPerMemberTrace: number;
143
+ /**
144
+ * `max_member_traces` × `max_spans_per_member_trace`, published as a number
145
+ * because a member ceiling a client has to multiply out is a ceiling it will
146
+ * get wrong.
147
+ *
148
+ * @generated from field: uint64 max_member_span_ceiling = 6;
149
+ */
150
+ maxMemberSpanCeiling: bigint;
151
+ };
152
+ /**
153
+ * Describes the message o11y_one.agentic.v1.AgentRunGroupingBoundsV1.
154
+ * Use `create(AgentRunGroupingBoundsV1Schema)` to create a new message.
155
+ */
156
+ export declare const AgentRunGroupingBoundsV1Schema: GenMessage<AgentRunGroupingBoundsV1>;
157
+ /**
158
+ * The audited promotion, attached to the run it promoted.
159
+ *
160
+ * @generated from message o11y_one.agentic.v1.AgentRunGroupingConfirmationV1
161
+ */
162
+ export type AgentRunGroupingConfirmationV1 = Message<"o11y_one.agentic.v1.AgentRunGroupingConfirmationV1"> & {
163
+ /**
164
+ * @generated from field: o11y_one.agentic.v1.PrincipalRefV1 confirmed_by = 1;
165
+ */
166
+ confirmedBy?: PrincipalRefV1 | undefined;
167
+ /**
168
+ * @generated from field: o11y_one.agentic.v1.AgentRunGroupingConfirmationReasonV1 reason = 2;
169
+ */
170
+ reason: AgentRunGroupingConfirmationReasonV1;
171
+ /**
172
+ * @generated from field: optional string reason_note = 3;
173
+ */
174
+ reasonNote?: string | undefined;
175
+ /**
176
+ * @generated from field: google.protobuf.Timestamp confirmed_at = 4;
177
+ */
178
+ confirmedAt?: Timestamp | undefined;
179
+ /**
180
+ * The revision the confirmation minted. A confirmation is a grouping change
181
+ * like any other, so it advances the revision and appears in the audit chain.
182
+ *
183
+ * @generated from field: uint64 revision = 5;
184
+ */
185
+ revision: bigint;
186
+ };
187
+ /**
188
+ * Describes the message o11y_one.agentic.v1.AgentRunGroupingConfirmationV1.
189
+ * Use `create(AgentRunGroupingConfirmationV1Schema)` to create a new message.
190
+ */
191
+ export declare const AgentRunGroupingConfirmationV1Schema: GenMessage<AgentRunGroupingConfirmationV1>;
192
+ /**
193
+ * `P7-7` on the wire: what happened to the evidence anchored to this run.
194
+ *
195
+ * "Confirmed links survive a merge or a split" is a promise that is unfalsifiable
196
+ * unless the move is visible. An operator who linked a dataset draft to a run and
197
+ * then watched that run merge has exactly one question — *did my link follow?* —
198
+ * and this is the answer, as data rather than as documentation.
199
+ *
200
+ * `anchor` is the SAME `EvidenceAnchorV1` every other plane addresses evidence
201
+ * with (A1 §4.5, twelve arms, arm 7 `agent_run`), reused rather than twinned.
202
+ * `original_agent_run_id` is written once and never overwritten: the audit chain
203
+ * is the point, and a chain whose first link is editable is not a chain.
204
+ *
205
+ * @generated from message o11y_one.agentic.v1.AgentRunAnchorRebindV1
206
+ */
207
+ export type AgentRunAnchorRebindV1 = Message<"o11y_one.agentic.v1.AgentRunAnchorRebindV1"> & {
208
+ /**
209
+ * @generated from field: o11y_one.agentic.v1.EvidenceAnchorV1 anchor = 1;
210
+ */
211
+ anchor?: EvidenceAnchorV1 | undefined;
212
+ /**
213
+ * The run the anchor was FIRST created against. Immutable.
214
+ *
215
+ * @generated from field: string original_agent_run_id = 2;
216
+ */
217
+ originalAgentRunId: string;
218
+ /**
219
+ * The canonical run it points at now.
220
+ *
221
+ * @generated from field: string agent_run_id = 3;
222
+ */
223
+ agentRunId: string;
224
+ /**
225
+ * The grouping revision that moved it.
226
+ *
227
+ * @generated from field: uint64 revision = 4;
228
+ */
229
+ revision: bigint;
230
+ /**
231
+ * @generated from field: o11y_one.agentic.v1.AgentRunGroupingRedirectReasonV1 reason = 5;
232
+ */
233
+ reason: AgentRunGroupingRedirectReasonV1;
234
+ /**
235
+ * @generated from field: google.protobuf.Timestamp occurred_at = 6;
236
+ */
237
+ occurredAt?: Timestamp | undefined;
238
+ };
239
+ /**
240
+ * Describes the message o11y_one.agentic.v1.AgentRunAnchorRebindV1.
241
+ * Use `create(AgentRunAnchorRebindV1Schema)` to create a new message.
242
+ */
243
+ export declare const AgentRunAnchorRebindV1Schema: GenMessage<AgentRunAnchorRebindV1>;
244
+ /**
245
+ * The identity block. Lanes B and C embed this rather than re-deriving any part
246
+ * of it, so there is exactly one answer to "how sure are we about this run?".
247
+ *
248
+ * @generated from message o11y_one.agentic.v1.AgentRunGroupingV1
249
+ */
250
+ export type AgentRunGroupingV1 = Message<"o11y_one.agentic.v1.AgentRunGroupingV1"> & {
251
+ /**
252
+ * The CANONICAL id. When `redirect` is set, this is NOT the id the caller
253
+ * asked for — that one is in `redirect.from_id`.
254
+ *
255
+ * @generated from field: string agent_run_id = 1;
256
+ */
257
+ agentRunId: string;
258
+ /**
259
+ * @generated from field: o11y_one.agentic.v1.AgentRunGroupingStateV1 state = 2;
260
+ */
261
+ state: AgentRunGroupingStateV1;
262
+ /**
263
+ * @generated from field: o11y_one.agentic.v1.AgentRunGroupingConfidenceV1 confidence = 3;
264
+ */
265
+ confidence: AgentRunGroupingConfidenceV1;
266
+ /**
267
+ * The rung that produced this grouping, 1..5. Zero means unspecified.
268
+ *
269
+ * @generated from field: uint32 attached_rung = 4;
270
+ */
271
+ attachedRung: number;
272
+ /**
273
+ * Monotone. A grouping change advances it, so a cursor bound to it resyncs
274
+ * rather than reordering invisibly (`P7-9`, NN20).
275
+ *
276
+ * @generated from field: uint64 revision = 5;
277
+ */
278
+ revision: bigint;
279
+ /**
280
+ * @generated from field: repeated o11y_one.agentic.v1.GroupingConfidenceInputV1 confidence_inputs = 6;
281
+ */
282
+ confidenceInputs: GroupingConfidenceInputV1[];
283
+ /**
284
+ * The official conversation identity, when there is one. Absent for a rung-4
285
+ * or rung-5 run, and absent is not empty-string.
286
+ *
287
+ * @generated from field: optional string conversation_id = 7;
288
+ */
289
+ conversationId?: string | undefined;
290
+ /**
291
+ * @generated from field: uint32 member_trace_count = 8;
292
+ */
293
+ memberTraceCount: number;
294
+ /**
295
+ * @generated from field: o11y_one.agentic.v1.AgentRunGroupingBoundsV1 bounds = 9;
296
+ */
297
+ bounds?: AgentRunGroupingBoundsV1 | undefined;
298
+ /**
299
+ * Set when the read was addressed with a non-`_CURRENT` id.
300
+ *
301
+ * @generated from field: optional o11y_one.agentic.v1.GroupingRedirectV1 redirect = 10;
302
+ */
303
+ redirect?: GroupingRedirectV1 | undefined;
304
+ /**
305
+ * Set when this run reached `_CONFIRMED` through `ConfirmAgentRunGrouping`.
306
+ *
307
+ * @generated from field: optional o11y_one.agentic.v1.AgentRunGroupingConfirmationV1 confirmation = 11;
308
+ */
309
+ confirmation?: AgentRunGroupingConfirmationV1 | undefined;
310
+ /**
311
+ * Monotone, and it advances on a grouping change AND on late data. Lane C's
312
+ * timeline cursor binds to this; lane B's index pass joins against it.
313
+ *
314
+ * @generated from field: uint64 projection_version = 12;
315
+ */
316
+ projectionVersion: bigint;
317
+ /**
318
+ * Evidence that moved with this run, newest first, capped at
319
+ * `anchor_rebind_cap` on the `agent_run_grouping` posture. Empty means no
320
+ * anchor has ever moved — which for a run that has never merged or split is
321
+ * the true answer and not a missing field.
322
+ *
323
+ * @generated from field: repeated o11y_one.agentic.v1.AgentRunAnchorRebindV1 anchor_rebinds = 13;
324
+ */
325
+ anchorRebinds: AgentRunAnchorRebindV1[];
326
+ };
327
+ /**
328
+ * Describes the message o11y_one.agentic.v1.AgentRunGroupingV1.
329
+ * Use `create(AgentRunGroupingV1Schema)` to create a new message.
330
+ */
331
+ export declare const AgentRunGroupingV1Schema: GenMessage<AgentRunGroupingV1>;
332
+ /**
333
+ * SM-11's state, with the configuration that produced it.
334
+ *
335
+ * `P7-13`: the timeline's "this conversation is done" affordance READS this and
336
+ * computes no idle heuristic of its own. The window and grace ride along so a
337
+ * client can say "quiet for 15 minutes" without a second fetch.
338
+ *
339
+ * @generated from message o11y_one.agentic.v1.ConversationCompletenessV1
340
+ */
341
+ export type ConversationCompletenessV1 = Message<"o11y_one.agentic.v1.ConversationCompletenessV1"> & {
342
+ /**
343
+ * @generated from field: o11y_one.agentic.v1.ConversationCompletenessStateV1 state = 1;
344
+ */
345
+ state: ConversationCompletenessStateV1;
346
+ /**
347
+ * Increments on every `_REOPENED`. Evidence produced against a previous epoch
348
+ * stays valid and readable and is marked superseded-eligible; nothing is
349
+ * deleted (`P7-12`, NN13).
350
+ *
351
+ * @generated from field: uint32 epoch = 2;
352
+ */
353
+ epoch: number;
354
+ /**
355
+ * @generated from field: google.protobuf.Timestamp last_seen_at = 3;
356
+ */
357
+ lastSeenAt?: Timestamp | undefined;
358
+ /**
359
+ * @generated from field: uint64 inactivity_window_seconds = 4;
360
+ */
361
+ inactivityWindowSeconds: bigint;
362
+ /**
363
+ * @generated from field: uint64 late_arrival_grace_seconds = 5;
364
+ */
365
+ lateArrivalGraceSeconds: bigint;
366
+ /**
367
+ * True when this run has been reopened at least once, so evidence from an
368
+ * earlier epoch is superseded-eligible. False on epoch 1, where there is
369
+ * nothing to supersede.
370
+ *
371
+ * @generated from field: bool superseded_eligible = 6;
372
+ */
373
+ supersededEligible: boolean;
374
+ /**
375
+ * WHEN the state was decided, by Postgres's clock, inside the statement that
376
+ * stored it. On the wire so a reader can tell a stale projection from a quiet
377
+ * conversation.
378
+ *
379
+ * @generated from field: google.protobuf.Timestamp evaluated_at = 7;
380
+ */
381
+ evaluatedAt?: Timestamp | undefined;
382
+ };
383
+ /**
384
+ * Describes the message o11y_one.agentic.v1.ConversationCompletenessV1.
385
+ * Use `create(ConversationCompletenessV1Schema)` to create a new message.
386
+ */
387
+ export declare const ConversationCompletenessV1Schema: GenMessage<ConversationCompletenessV1>;
388
+ /**
389
+ * `PLAN:1675` / `PLAN:494`: the audited promotion of a provisional grouping when
390
+ * explicit telemetry identity is unavailable.
391
+ *
392
+ * @generated from message o11y_one.agentic.v1.ConfirmAgentRunGroupingRequest
393
+ */
394
+ export type ConfirmAgentRunGroupingRequest = Message<"o11y_one.agentic.v1.ConfirmAgentRunGroupingRequest"> & {
395
+ /**
396
+ * May be a stale id. It resolves to the canonical run and the response carries
397
+ * the redirect; it is never a `NOT_FOUND`.
398
+ *
399
+ * @generated from field: string agent_run_id = 1;
400
+ */
401
+ agentRunId: string;
402
+ /**
403
+ * @generated from field: o11y_one.agentic.v1.AgentRunGroupingConfirmationReasonV1 reason = 2;
404
+ */
405
+ reason: AgentRunGroupingConfirmationReasonV1;
406
+ /**
407
+ * @generated from field: optional string reason_note = 3;
408
+ */
409
+ reasonNote?: string | undefined;
410
+ /**
411
+ * Replaying one key returns the SAME run with `idempotent_replay` set and
412
+ * writes no second revision.
413
+ *
414
+ * @generated from field: string idempotency_key = 4;
415
+ */
416
+ idempotencyKey: string;
417
+ };
418
+ /**
419
+ * Describes the message o11y_one.agentic.v1.ConfirmAgentRunGroupingRequest.
420
+ * Use `create(ConfirmAgentRunGroupingRequestSchema)` to create a new message.
421
+ */
422
+ export declare const ConfirmAgentRunGroupingRequestSchema: GenMessage<ConfirmAgentRunGroupingRequest>;
423
+ /**
424
+ * @generated from message o11y_one.agentic.v1.ConfirmAgentRunGroupingResponse
425
+ */
426
+ export type ConfirmAgentRunGroupingResponse = Message<"o11y_one.agentic.v1.ConfirmAgentRunGroupingResponse"> & {
427
+ /**
428
+ * @generated from field: o11y_one.agentic.v1.AgentRunGroupingV1 grouping = 1;
429
+ */
430
+ grouping?: AgentRunGroupingV1 | undefined;
431
+ /**
432
+ * @generated from field: bool idempotent_replay = 2;
433
+ */
434
+ idempotentReplay: boolean;
435
+ /**
436
+ * @generated from field: o11y_one.agentic.v1.ConversationCompletenessV1 completeness = 3;
437
+ */
438
+ completeness?: ConversationCompletenessV1 | undefined;
439
+ /**
440
+ * @generated from field: o11y_one.agentic.v1.EvaluationFreshnessV1 freshness = 4;
441
+ */
442
+ freshness?: EvaluationFreshnessV1 | undefined;
443
+ /**
444
+ * @generated from field: o11y_one.agentic.v1.AgenticEvaluationCapabilitiesV1 capabilities = 5;
445
+ */
446
+ capabilities?: AgenticEvaluationCapabilitiesV1 | undefined;
447
+ };
448
+ /**
449
+ * Describes the message o11y_one.agentic.v1.ConfirmAgentRunGroupingResponse.
450
+ * Use `create(ConfirmAgentRunGroupingResponseSchema)` to create a new message.
451
+ */
452
+ export declare const ConfirmAgentRunGroupingResponseSchema: GenMessage<ConfirmAgentRunGroupingResponse>;
453
+ /**
454
+ * SM-9 (`0b:P7-1`), verbatim.
455
+ *
456
+ * Grouping resolves in strict precedence order and the FIRST rung that produces
457
+ * a group wins; the rung that produced it is recorded on the run and returned as
458
+ * `GroupingConfidenceInputV1.contributed_rung`.
459
+ *
460
+ * There is NO terminal value. Confidence is recomputed as identity arrives, with
461
+ * exactly one rule that behaves like a terminal and is a rule rather than a
462
+ * state: `_CONFIRMED` is never downgraded by the grouping pass. A human said
463
+ * these traces are one conversation, and a heuristic does not get to disagree
464
+ * with them silently.
465
+ *
466
+ * @generated from enum o11y_one.agentic.v1.AgentRunGroupingConfidenceV1
467
+ */
468
+ export declare enum AgentRunGroupingConfidenceV1 {
469
+ /**
470
+ * @generated from enum value: AGENT_RUN_GROUPING_CONFIDENCE_V1_UNSPECIFIED = 0;
471
+ */
472
+ UNSPECIFIED = 0,
473
+ /**
474
+ * Rung 1: official conversation identity (`gen_ai.conversation.id`) on EVERY
475
+ * member trace. Authoritative.
476
+ *
477
+ * @generated from enum value: AGENT_RUN_GROUPING_CONFIDENCE_V1_EXPLICIT = 1;
478
+ */
479
+ EXPLICIT = 1,
480
+ /**
481
+ * Rung 2: official identity on SOME members; the rest attached by span link.
482
+ * Authoritative, with the partial posture surfaced — and see
483
+ * `AGENT_RUN_GROUPING_SIGNAL_KIND_V1_SPAN_LINK`, whose availability says what
484
+ * a link can and cannot tell this build.
485
+ *
486
+ * @generated from enum value: AGENT_RUN_GROUPING_CONFIDENCE_V1_EXPLICIT_PARTIAL = 2;
487
+ */
488
+ EXPLICIT_PARTIAL = 2,
489
+ /**
490
+ * Rung 3: compatible SECONDARY identity only — the control plane's own
491
+ * `conversation_id`, recorded against a trace by a score, feedback, outcome or
492
+ * content manifest whose spans never carried the attribute. Authoritative.
493
+ *
494
+ * @generated from enum value: AGENT_RUN_GROUPING_CONFIDENCE_V1_DERIVED = 3;
495
+ */
496
+ DERIVED = 3,
497
+ /**
498
+ * Rung 4: bounded heuristic — same service AND deployment AND customer
499
+ * identity AND within the published bounds. NOT authoritative: see
500
+ * `AgentRunAuthorityCapabilityV1`.
501
+ *
502
+ * @generated from enum value: AGENT_RUN_GROUPING_CONFIDENCE_V1_PROVISIONAL = 4;
503
+ */
504
+ PROVISIONAL = 4,
505
+ /**
506
+ * Rung 5: no identity at all. One trace, one run — and VISIBLE in the agent-run
507
+ * index, unlike `ListSessions`, which excludes identity-less traces (0b docket
508
+ * B1-4, adopted). Not authoritative for CROSS-TRACE claims; a single-trace
509
+ * claim about a single-trace run is a claim about that trace.
510
+ *
511
+ * @generated from enum value: AGENT_RUN_GROUPING_CONFIDENCE_V1_UNGROUPED = 5;
512
+ */
513
+ UNGROUPED = 5,
514
+ /**
515
+ * A `_PROVISIONAL` group an authorized user confirmed through
516
+ * `ConfirmAgentRunGrouping`. Authoritative, with the audit record attached.
517
+ *
518
+ * @generated from enum value: AGENT_RUN_GROUPING_CONFIDENCE_V1_CONFIRMED = 6;
519
+ */
520
+ CONFIRMED = 6
521
+ }
522
+ /**
523
+ * Describes the enum o11y_one.agentic.v1.AgentRunGroupingConfidenceV1.
524
+ */
525
+ export declare const AgentRunGroupingConfidenceV1Schema: GenEnum<AgentRunGroupingConfidenceV1>;
526
+ /**
527
+ * SM-10 (`0b:P7-5`), verbatim.
528
+ *
529
+ * Three of the five are terminal, and ALL THREE REDIRECT. None of them is a
530
+ * `NOT_FOUND`: a read by a stale id returns the canonical run plus a
531
+ * `GroupingRedirectV1`, because an operator who followed a link from an incident
532
+ * ticket to a merged run has asked a reasonable question and deserves an answer
533
+ * rather than a 404.
534
+ *
535
+ * @generated from enum o11y_one.agentic.v1.AgentRunGroupingStateV1
536
+ */
537
+ export declare enum AgentRunGroupingStateV1 {
538
+ /**
539
+ * @generated from enum value: AGENT_RUN_GROUPING_STATE_V1_UNSPECIFIED = 0;
540
+ */
541
+ UNSPECIFIED = 0,
542
+ /**
543
+ * This id is the canonical grouping at this revision.
544
+ *
545
+ * @generated from enum value: AGENT_RUN_GROUPING_STATE_V1_CURRENT = 1;
546
+ */
547
+ CURRENT = 1,
548
+ /**
549
+ * Merged into another run; reads redirect to exactly one id.
550
+ *
551
+ * @generated from enum value: AGENT_RUN_GROUPING_STATE_V1_MERGED_AWAY = 2;
552
+ */
553
+ MERGED_AWAY = 2,
554
+ /**
555
+ * Split into two or more runs; reads redirect to a disambiguation set.
556
+ *
557
+ * @generated from enum value: AGENT_RUN_GROUPING_STATE_V1_SPLIT_AWAY = 3;
558
+ */
559
+ SPLIT_AWAY = 3,
560
+ /**
561
+ * The canonical id changed for another audited reason.
562
+ *
563
+ * @generated from enum value: AGENT_RUN_GROUPING_STATE_V1_REDIRECTED = 4;
564
+ */
565
+ REDIRECTED = 4
566
+ }
567
+ /**
568
+ * Describes the enum o11y_one.agentic.v1.AgentRunGroupingStateV1.
569
+ */
570
+ export declare const AgentRunGroupingStateV1Schema: GenEnum<AgentRunGroupingStateV1>;
571
+ /**
572
+ * SM-11 (`0b:P7-11`..`P7-13`), verbatim.
573
+ *
574
+ * NO terminal: `_COMPLETE` is reopenable by construction, because a late span is
575
+ * a fact about the customer's system and not a violation of ours.
576
+ *
577
+ * Every transition is decided by POSTGRES'S clock, inside the statement that
578
+ * stores it (wave 39 `DEV-3`). There is no Rust twin of this comparison, because
579
+ * two clocks answering "is this conversation over?" is how a conversation gets
580
+ * scored twice with two different answers.
581
+ *
582
+ * @generated from enum o11y_one.agentic.v1.ConversationCompletenessStateV1
583
+ */
584
+ export declare enum ConversationCompletenessStateV1 {
585
+ /**
586
+ * @generated from enum value: CONVERSATION_COMPLETENESS_STATE_V1_UNSPECIFIED = 0;
587
+ */
588
+ UNSPECIFIED = 0,
589
+ /**
590
+ * Within the configured inactivity window; more spans expected.
591
+ *
592
+ * @generated from enum value: CONVERSATION_COMPLETENESS_STATE_V1_OPEN = 1;
593
+ */
594
+ OPEN = 1,
595
+ /**
596
+ * Inactivity window elapsed; provisionally final. THIS is where
597
+ * conversation-subject scoring and conversation-scoped rules fire (`P7-11`) —
598
+ * firing at `_COMPLETE` makes the learning loop unusably slow, and firing at
599
+ * `_OPEN` scores a truncated conversation.
600
+ *
601
+ * @generated from enum value: CONVERSATION_COMPLETENESS_STATE_V1_INACTIVE = 2;
602
+ */
603
+ INACTIVE = 2,
604
+ /**
605
+ * Inactivity window plus late-arrival grace elapsed; finality claimed.
606
+ *
607
+ * @generated from enum value: CONVERSATION_COMPLETENESS_STATE_V1_COMPLETE = 3;
608
+ */
609
+ COMPLETE = 3,
610
+ /**
611
+ * A late span arrived after `_COMPLETE`. `completeness_epoch` increments;
612
+ * evidence produced against epoch n stays valid and readable, marked
613
+ * superseded-eligible. Nothing is retroactively deleted (NN13).
614
+ *
615
+ * @generated from enum value: CONVERSATION_COMPLETENESS_STATE_V1_REOPENED = 4;
616
+ */
617
+ REOPENED = 4
618
+ }
619
+ /**
620
+ * Describes the enum o11y_one.agentic.v1.ConversationCompletenessStateV1.
621
+ */
622
+ export declare const ConversationCompletenessStateV1Schema: GenEnum<ConversationCompletenessStateV1>;
623
+ /**
624
+ * Minted by wave 41 lane A: `P7-3`'s `signal_kind`.
625
+ *
626
+ * One value per source of identity this build can actually read. There is no
627
+ * value for a signal nothing produces — an enum arm for an unreadable signal is
628
+ * a promise a client would render an empty row for.
629
+ *
630
+ * @generated from enum o11y_one.agentic.v1.AgentRunGroupingSignalKindV1
631
+ */
632
+ export declare enum AgentRunGroupingSignalKindV1 {
633
+ /**
634
+ * @generated from enum value: AGENT_RUN_GROUPING_SIGNAL_KIND_V1_UNSPECIFIED = 0;
635
+ */
636
+ UNSPECIFIED = 0,
637
+ /**
638
+ * `gen_ai.conversation.id` on the span. The only declaration is
639
+ * `transformation/src/trace_registry.rs:587`; it is a typed Arrow column.
640
+ *
641
+ * @generated from enum value: AGENT_RUN_GROUPING_SIGNAL_KIND_V1_OFFICIAL_CONVERSATION_ID = 1;
642
+ */
643
+ OFFICIAL_CONVERSATION_ID = 1,
644
+ /**
645
+ * An OTel span link from a span in one trace to a span in another.
646
+ *
647
+ * ADJACENCY ONLY, and the availability field on the input says so per run:
648
+ * span links reach this lake with their ATTRIBUTES DROPPED
649
+ * (`transformation/src/otel_trace.rs:461-499` writes trace id, span id, trace
650
+ * state, dropped-attributes count and flags — and nothing else). So a link can
651
+ * say THAT it links and can never say WHY. "Continuation", "batch member" and
652
+ * "retry of" are indistinguishable here, and this build does not guess between
653
+ * them.
654
+ *
655
+ * @generated from enum value: AGENT_RUN_GROUPING_SIGNAL_KIND_V1_SPAN_LINK = 2;
656
+ */
657
+ SPAN_LINK = 2,
658
+ /**
659
+ * The control plane's own `conversation_id`, recorded beside a `trace_id` on a
660
+ * score, feedback event, outcome event, content manifest or dataset item
661
+ * (migration `20260416100000`). A genuinely second source: a customer can name
662
+ * the conversation on the SCORE for a trace whose spans never carried it.
663
+ *
664
+ * @generated from enum value: AGENT_RUN_GROUPING_SIGNAL_KIND_V1_CONTROL_PLANE_CONVERSATION_ID = 3;
665
+ */
666
+ CONTROL_PLANE_CONVERSATION_ID = 3,
667
+ /**
668
+ * Same service AND deployment AND customer identity AND inside the three
669
+ * published bounds. Rung 4, and never authoritative.
670
+ *
671
+ * @generated from enum value: AGENT_RUN_GROUPING_SIGNAL_KIND_V1_BOUNDED_HEURISTIC = 4;
672
+ */
673
+ BOUNDED_HEURISTIC = 4,
674
+ /**
675
+ * No identity of any kind was found for this trace. Recorded as a signal
676
+ * rather than as an absence, so "we looked and found none" appears in the
677
+ * confidence inputs instead of an empty list that reads as "we did not look".
678
+ *
679
+ * @generated from enum value: AGENT_RUN_GROUPING_SIGNAL_KIND_V1_NO_IDENTITY = 5;
680
+ */
681
+ NO_IDENTITY = 5
682
+ }
683
+ /**
684
+ * Describes the enum o11y_one.agentic.v1.AgentRunGroupingSignalKindV1.
685
+ */
686
+ export declare const AgentRunGroupingSignalKindV1Schema: GenEnum<AgentRunGroupingSignalKindV1>;
687
+ /**
688
+ * Minted by wave 41 lane A: why a stale id redirects.
689
+ *
690
+ * @generated from enum o11y_one.agentic.v1.AgentRunGroupingRedirectReasonV1
691
+ */
692
+ export declare enum AgentRunGroupingRedirectReasonV1 {
693
+ /**
694
+ * @generated from enum value: AGENT_RUN_GROUPING_REDIRECT_REASON_V1_UNSPECIFIED = 0;
695
+ */
696
+ UNSPECIFIED = 0,
697
+ /**
698
+ * Late explicit identity arrived and joined two runs into one.
699
+ *
700
+ * @generated from enum value: AGENT_RUN_GROUPING_REDIRECT_REASON_V1_LATE_EXPLICIT_IDENTITY_MERGE = 1;
701
+ */
702
+ LATE_EXPLICIT_IDENTITY_MERGE = 1,
703
+ /**
704
+ * Late explicit identity arrived and proved one run was two conversations.
705
+ *
706
+ * @generated from enum value: AGENT_RUN_GROUPING_REDIRECT_REASON_V1_LATE_EXPLICIT_IDENTITY_SPLIT = 2;
707
+ */
708
+ LATE_EXPLICIT_IDENTITY_SPLIT = 2,
709
+ /**
710
+ * A heuristic group grew past one of its three bounds and was split rather
711
+ * than enlarged (`P7-2`, split-not-merge).
712
+ *
713
+ * @generated from enum value: AGENT_RUN_GROUPING_REDIRECT_REASON_V1_BOUND_BREACH_SPLIT = 3;
714
+ */
715
+ BOUND_BREACH_SPLIT = 3,
716
+ /**
717
+ * The bounded heuristic folded runs that previously stood alone, or pulled
718
+ * them apart again. Distinct from the two `LATE_EXPLICIT_IDENTITY_*` reasons
719
+ * on purpose: an operator reading "your run moved" is owed the difference
720
+ * between "your application finally told us the conversation id" and "our
721
+ * heuristic changed its mind", because only the first of those is a fact
722
+ * about their system.
723
+ *
724
+ * @generated from enum value: AGENT_RUN_GROUPING_REDIRECT_REASON_V1_HEURISTIC_REGROUPED = 4;
725
+ */
726
+ HEURISTIC_REGROUPED = 4
727
+ }
728
+ /**
729
+ * Describes the enum o11y_one.agentic.v1.AgentRunGroupingRedirectReasonV1.
730
+ */
731
+ export declare const AgentRunGroupingRedirectReasonV1Schema: GenEnum<AgentRunGroupingRedirectReasonV1>;
732
+ /**
733
+ * Minted by wave 41 lane A: the audited reason `PLAN:1675` requires on a
734
+ * promotion. Typed rather than free text, because "why did somebody confirm
735
+ * this?" is a question the audit chain must answer without a human reading prose.
736
+ *
737
+ * @generated from enum o11y_one.agentic.v1.AgentRunGroupingConfirmationReasonV1
738
+ */
739
+ export declare enum AgentRunGroupingConfirmationReasonV1 {
740
+ /**
741
+ * @generated from enum value: AGENT_RUN_GROUPING_CONFIRMATION_REASON_V1_UNSPECIFIED = 0;
742
+ */
743
+ UNSPECIFIED = 0,
744
+ /**
745
+ * The operator checked the member traces and they are one conversation.
746
+ *
747
+ * @generated from enum value: AGENT_RUN_GROUPING_CONFIRMATION_REASON_V1_OPERATOR_VERIFIED_SAME_CONVERSATION = 1;
748
+ */
749
+ OPERATOR_VERIFIED_SAME_CONVERSATION = 1,
750
+ /**
751
+ * The application does not emit conversation identity, and the operator
752
+ * accepts the heuristic in its place until it does.
753
+ *
754
+ * @generated from enum value: AGENT_RUN_GROUPING_CONFIRMATION_REASON_V1_INSTRUMENTATION_GAP_ACKNOWLEDGED = 2;
755
+ */
756
+ INSTRUMENTATION_GAP_ACKNOWLEDGED = 2,
757
+ /**
758
+ * Confirmed inside an incident, to make the run usable as evidence now.
759
+ *
760
+ * @generated from enum value: AGENT_RUN_GROUPING_CONFIRMATION_REASON_V1_INCIDENT_INVESTIGATION = 3;
761
+ */
762
+ INCIDENT_INVESTIGATION = 3
763
+ }
764
+ /**
765
+ * Describes the enum o11y_one.agentic.v1.AgentRunGroupingConfirmationReasonV1.
766
+ */
767
+ export declare const AgentRunGroupingConfirmationReasonV1Schema: GenEnum<AgentRunGroupingConfirmationReasonV1>;
768
+ /**
769
+ * Minted by wave 41 lane A: `P7-10`'s six rows, addressable.
770
+ *
771
+ * The matrix is a table in the contract and prose everywhere else, which is how
772
+ * "provisional groups cannot drive automation" becomes five different guesses at
773
+ * five call sites. Here it is one enum and one function
774
+ * (`assert_grouping_authority`), and every refusal names the row it came from.
775
+ *
776
+ * @generated from enum o11y_one.agentic.v1.AgentRunAuthorityCapabilityV1
777
+ */
778
+ export declare enum AgentRunAuthorityCapabilityV1 {
779
+ /**
780
+ * @generated from enum value: AGENT_RUN_AUTHORITY_CAPABILITY_V1_UNSPECIFIED = 0;
781
+ */
782
+ UNSPECIFIED = 0,
783
+ /**
784
+ * Allowed at every confidence, labelled.
785
+ *
786
+ * @generated from enum value: AGENT_RUN_AUTHORITY_CAPABILITY_V1_RENDER = 1;
787
+ */
788
+ RENDER = 1,
789
+ /**
790
+ * Allowed at every confidence: a human chose it, and the draft records the
791
+ * confidence at selection. This row is the whole design — human selection
792
+ * permitted, automation forbidden — and it must survive into the UI.
793
+ *
794
+ * @generated from enum value: AGENT_RUN_AUTHORITY_CAPABILITY_V1_MANUAL_DRAFT_SELECTION = 2;
795
+ */
796
+ MANUAL_DRAFT_SELECTION = 2,
797
+ /**
798
+ * Refused for `_PROVISIONAL`; single-trace only for `_UNGROUPED`.
799
+ *
800
+ * @generated from enum value: AGENT_RUN_AUTHORITY_CAPABILITY_V1_AUTOMATIC_LINEAGE = 3;
801
+ */
802
+ AUTOMATIC_LINEAGE = 3,
803
+ /**
804
+ * Refused for `_PROVISIONAL`; single-trace only for `_UNGROUPED`.
805
+ *
806
+ * @generated from enum value: AGENT_RUN_AUTHORITY_CAPABILITY_V1_PRODUCTION_RULE_TRIGGER = 4;
807
+ */
808
+ PRODUCTION_RULE_TRIGGER = 4,
809
+ /**
810
+ * Refused for `_PROVISIONAL` AND for `_UNGROUPED`: a conversation of unknown
811
+ * membership has no conversation subject.
812
+ *
813
+ * @generated from enum value: AGENT_RUN_AUTHORITY_CAPABILITY_V1_CONVERSATION_SUBJECT_SCORING = 5;
814
+ */
815
+ CONVERSATION_SUBJECT_SCORING = 5,
816
+ /**
817
+ * Refused for `_PROVISIONAL` AND for `_UNGROUPED`.
818
+ *
819
+ * @generated from enum value: AGENT_RUN_AUTHORITY_CAPABILITY_V1_RELEASE_EVIDENCE = 6;
820
+ */
821
+ RELEASE_EVIDENCE = 6
822
+ }
823
+ /**
824
+ * Describes the enum o11y_one.agentic.v1.AgentRunAuthorityCapabilityV1.
825
+ */
826
+ export declare const AgentRunAuthorityCapabilityV1Schema: GenEnum<AgentRunAuthorityCapabilityV1>;