@stigmer/protos 3.0.9-dev.20260616060535 → 3.1.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.
Files changed (43) hide show
  1. package/ai/stigmer/agentic/agentexecution/v1/api_pb.d.ts +81 -1
  2. package/ai/stigmer/agentic/agentexecution/v1/api_pb.js +2 -1
  3. package/ai/stigmer/agentic/agentexecution/v1/api_pb.js.map +1 -1
  4. package/ai/stigmer/agentic/agentexecution/v1/approval_pb.d.ts +325 -1
  5. package/ai/stigmer/agentic/agentexecution/v1/approval_pb.js +26 -1
  6. package/ai/stigmer/agentic/agentexecution/v1/approval_pb.js.map +1 -1
  7. package/ai/stigmer/agentic/agentexecution/v1/artifact_pb.d.ts +4 -8
  8. package/ai/stigmer/agentic/agentexecution/v1/artifact_pb.js +1 -1
  9. package/ai/stigmer/agentic/agentexecution/v1/artifact_pb.js.map +1 -1
  10. package/ai/stigmer/agentic/agentexecution/v1/command_connect.d.ts +39 -0
  11. package/ai/stigmer/agentic/agentexecution/v1/command_connect.js +40 -1
  12. package/ai/stigmer/agentic/agentexecution/v1/command_connect.js.map +1 -1
  13. package/ai/stigmer/agentic/agentexecution/v1/command_pb.d.ts +39 -1
  14. package/ai/stigmer/agentic/agentexecution/v1/command_pb.js +1 -1
  15. package/ai/stigmer/agentic/agentexecution/v1/command_pb.js.map +1 -1
  16. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +802 -29
  17. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +820 -31
  18. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
  19. package/ai/stigmer/agentic/agentexecution/v1/filereview_pb.d.ts +796 -0
  20. package/ai/stigmer/agentic/agentexecution/v1/filereview_pb.js +77 -0
  21. package/ai/stigmer/agentic/agentexecution/v1/filereview_pb.js.map +1 -0
  22. package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +92 -1
  23. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +33 -28
  24. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -1
  25. package/ai/stigmer/agentic/agentexecution/v1/message_pb.d.ts +220 -8
  26. package/ai/stigmer/agentic/agentexecution/v1/message_pb.js +11 -1
  27. package/ai/stigmer/agentic/agentexecution/v1/message_pb.js.map +1 -1
  28. package/ai/stigmer/agentic/mcpserver/v1/spec_pb.d.ts +17 -0
  29. package/ai/stigmer/agentic/mcpserver/v1/spec_pb.js +1 -1
  30. package/ai/stigmer/agentic/mcpserver/v1/spec_pb.js.map +1 -1
  31. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.d.ts +69 -0
  32. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js +7 -2
  33. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js.map +1 -1
  34. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.d.ts +50 -0
  35. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js +51 -1
  36. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js.map +1 -1
  37. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.d.ts +50 -1
  38. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js +1 -1
  39. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js.map +1 -1
  40. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.d.ts +141 -11
  41. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js +26 -21
  42. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js.map +1 -1
  43. package/package.json +1 -1
@@ -1,8 +1,9 @@
1
1
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
- import type { PendingApproval } from "./approval_pb.js";
2
+ import type { ApprovalEventStream, PendingApproval } from "./approval_pb.js";
3
3
  import type { ExecutionArtifact } from "./artifact_pb.js";
4
4
  import type { ContextInfo, ResolvedExecutionContext } from "./context_pb.js";
5
5
  import type { ExecutionPhase } from "./enum_pb.js";
6
+ import type { FileChangeSet, FileReviewEventStream } from "./filereview_pb.js";
6
7
  import type { AgentMessage } from "./message_pb.js";
7
8
  import type { AgentExecutionSpec } from "./spec_pb.js";
8
9
  import type { SubAgentExecution } from "./subagent_pb.js";
@@ -198,6 +199,41 @@ export type AgentExecutionStatus = Message<"ai.stigmer.agentic.agentexecution.v1
198
199
  * @generated from field: repeated ai.stigmer.agentic.agentexecution.v1.PendingApproval pending_approvals = 16;
199
200
  */
200
201
  pendingApprovals: PendingApproval[];
202
+ /**
203
+ * Server-authored, append-only record of every approval request and decision.
204
+ *
205
+ * @internal
206
+ *
207
+ * This is the persisted form of the append-only stream that is the target
208
+ * single source of truth for approvals (see ApprovalEventStream in
209
+ * approval.proto). It is NOT yet read by any surface: pending_approvals is
210
+ * still projected from the authoritative message scan, and the UI/SDK read
211
+ * that. The stream coexists as a parallel, independently-authored record so
212
+ * that (1) the message-scan vs event-stream projection parity check becomes a
213
+ * real cross-writer regression guard rather than a tautology, and (2) the
214
+ * approval audit trail — who decided, when, with what comment — has a home,
215
+ * since the flat ToolCall.approval_action / approval_decided_at fields cannot
216
+ * capture a decision comment at all.
217
+ *
218
+ * Field ownership (one writer per event type):
219
+ * - REQUESTED events are authored by the UpdateStatus handlers when a tool
220
+ * call enters WAITING_APPROVAL (seeded once from the message scan for
221
+ * executions that predate this field).
222
+ * - Decision events (APPROVED / REJECTED / SKIPPED) are authored by the
223
+ * SubmitApproval handler, carrying decided_by and the user's comment.
224
+ *
225
+ * Every append is keyed by the deterministic ApprovalEvent.event_id, so the
226
+ * stream is idempotent under retries and the rich decision event (authored in
227
+ * the same operation that records the decision on the message scan) can never
228
+ * be duplicated or overwritten by a coarse re-derivation.
229
+ *
230
+ * Because it is server-only, the agent-runner never sends it; it is preserved
231
+ * across UpdateStatus writes automatically (the merge starts from the loaded
232
+ * execution and only replaces runner-owned fields).
233
+ *
234
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ApprovalEventStream approval_event_stream = 22;
235
+ */
236
+ approvalEventStream?: ApprovalEventStream;
201
237
  /**
202
238
  * Context window utilization and summarization tracking.
203
239
  *
@@ -286,6 +322,50 @@ export type AgentExecutionStatus = Message<"ai.stigmer.agentic.agentexecution.v1
286
322
  * @generated from field: google.protobuf.Struct structured_output = 21;
287
323
  */
288
324
  structuredOutput?: JsonObject;
325
+ /**
326
+ * Server-computed projection of file change sets awaiting or completing
327
+ * review for this execution.
328
+ *
329
+ * @internal
330
+ *
331
+ * Recomputed on every status write from file_review_event_stream (never
332
+ * merged), so it is always consistent with the authoritative ledger — exactly
333
+ * as pending_approvals is recomputed from the message scan / approval stream.
334
+ * Empty until the runner's capture activity authors events (Phase 2). A
335
+ * terminal execution projects no actionable review. See FileChangeSet.
336
+ *
337
+ * Field 23: appended after approval_event_stream (22), the prior maximum.
338
+ *
339
+ * @generated from field: repeated ai.stigmer.agentic.agentexecution.v1.FileChangeSet file_change_sets = 23;
340
+ */
341
+ fileChangeSets: FileChangeSet[];
342
+ /**
343
+ * Server-owned, append-only record of every file-review event (baseline /
344
+ * candidate capture, file decisions, reconcile, failures).
345
+ *
346
+ * @internal
347
+ *
348
+ * The persisted source of truth that file_change_sets is projected from — a
349
+ * sibling of approval_event_stream for the file-review lifecycle (the
350
+ * ApprovalEvent oneof is closed, so file events cannot ride it). Appends are
351
+ * keyed by the deterministic FileReviewEvent.event_id, so the stream is
352
+ * idempotent under retries.
353
+ *
354
+ * Write contract (one writer per event type): the runner CONTRIBUTES its
355
+ * capture/reconcile events (BASELINE_CAPTURED / CANDIDATE_CAPTURED /
356
+ * RECONCILED / FAILED) by carrying them here on UpdateStatus; the server folds
357
+ * them into the stored stream append-only, by event_id, on the freshly-loaded
358
+ * execution under the write lock. The runner can never replace an existing
359
+ * event and never authors FILE_DECIDED (the server drops a runner-sent
360
+ * decision); FILE_DECIDED is authored solely by SubmitFileDecision. The stored
361
+ * stream is otherwise preserved in place across writes. See
362
+ * FileReviewEventStream.
363
+ *
364
+ * Field 24: appended after file_change_sets (23), the prior maximum.
365
+ *
366
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.FileReviewEventStream file_review_event_stream = 24;
367
+ */
368
+ fileReviewEventStream?: FileReviewEventStream;
289
369
  };
290
370
  /**
291
371
  * Describes the message ai.stigmer.agentic.agentexecution.v1.AgentExecutionStatus.
@@ -6,6 +6,7 @@ import { file_ai_stigmer_agentic_agentexecution_v1_approval } from "./approval_p
6
6
  import { file_ai_stigmer_agentic_agentexecution_v1_artifact } from "./artifact_pb.js";
7
7
  import { file_ai_stigmer_agentic_agentexecution_v1_context } from "./context_pb.js";
8
8
  import { file_ai_stigmer_agentic_agentexecution_v1_enum } from "./enum_pb.js";
9
+ import { file_ai_stigmer_agentic_agentexecution_v1_filereview } from "./filereview_pb.js";
9
10
  import { file_ai_stigmer_agentic_agentexecution_v1_message } from "./message_pb.js";
10
11
  import { file_ai_stigmer_agentic_agentexecution_v1_spec } from "./spec_pb.js";
11
12
  import { file_ai_stigmer_agentic_agentexecution_v1_subagent } from "./subagent_pb.js";
@@ -19,7 +20,7 @@ import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt";
19
20
  /**
20
21
  * Describes the file ai/stigmer/agentic/agentexecution/v1/api.proto.
21
22
  */
22
- export const file_ai_stigmer_agentic_agentexecution_v1_api = /*@__PURE__*/ fileDesc("Ci5haS9zdGlnbWVyL2FnZW50aWMvYWdlbnRleGVjdXRpb24vdjEvYXBpLnByb3RvEiRhaS5zdGlnbWVyLmFnZW50aWMuYWdlbnRleGVjdXRpb24udjEiywIKDkFnZW50RXhlY3V0aW9uEjEKC2FwaV92ZXJzaW9uGAEgASgJQhy6SBlyFwoVYWdlbnRpYy5zdGlnbWVyLmFpL3YxEiMKBGtpbmQYAiABKAlCFbpIEnIQCg5BZ2VudEV4ZWN1dGlvbhJNCghtZXRhZGF0YRgDIAEoCzIzLmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZU1ldGFkYXRhQga6SAPIAQESRg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W5nQXBwcm92YWwSRwoMY29udGV4dF9pbmZvGA4gASgLMjEuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50ZXhlY3V0aW9uLnYxLkNvbnRleHRJbmZvEkoKCWFydGlmYWN0cxgPIAMoCzI3LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MS5FeGVjdXRpb25BcnRpZmFjdBJXChV3b3Jrc3BhY2Vfd3JpdGVfYmFja3MYESADKAsyOC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRleGVjdXRpb24udjEuV29ya3NwYWNlV3JpdGVCYWNrEksKDnNldHVwX3Byb2dyZXNzGBIgASgLMjMuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50ZXhlY3V0aW9uLnYxLlNldHVwUHJvZ3Jlc3MSVAoPc3RyZWFtaW5nX3VzYWdlGBQgASgLMjsuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50ZXhlY3V0aW9uLnYxLlN0cmVhbWluZ1VzYWdlU3VtbWFyeRIyChFzdHJ1Y3R1cmVkX291dHB1dBgVIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QaXAoKVG9kb3NFbnRyeRILCgNrZXkYASABKAkSPQoFdmFsdWUYAiABKAsyLi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRleGVjdXRpb24udjEuVG9kb0l0ZW06AjgBIiYKDVNldHVwUHJvZ3Jlc3MSFQoNY3VycmVudF9waGFzZRgBIAEoCWIGcHJvdG8z", [file_ai_stigmer_agentic_agentexecution_v1_approval, file_ai_stigmer_agentic_agentexecution_v1_artifact, file_ai_stigmer_agentic_agentexecution_v1_context, file_ai_stigmer_agentic_agentexecution_v1_enum, file_ai_stigmer_agentic_agentexecution_v1_message, file_ai_stigmer_agentic_agentexecution_v1_spec, file_ai_stigmer_agentic_agentexecution_v1_subagent, file_ai_stigmer_agentic_agentexecution_v1_todo, file_ai_stigmer_agentic_agentexecution_v1_usage, file_ai_stigmer_agentic_agentexecution_v1_writeback, file_ai_stigmer_commons_apiresource_metadata, file_ai_stigmer_commons_apiresource_status, file_buf_validate_validate, file_google_protobuf_struct]);
23
+ export const file_ai_stigmer_agentic_agentexecution_v1_api = /*@__PURE__*/ fileDesc("Ci5haS9zdGlnbWVyL2FnZW50aWMvYWdlbnRleGVjdXRpb24vdjEvYXBpLnByb3RvEiRhaS5zdGlnbWVyLmFnZW50aWMuYWdlbnRleGVjdXRpb24udjEiywIKDkFnZW50RXhlY3V0aW9uEjEKC2FwaV92ZXJzaW9uGAEgASgJQhy6SBlyFwoVYWdlbnRpYy5zdGlnbWVyLmFpL3YxEiMKBGtpbmQYAiABKAlCFbpIEnIQCg5BZ2VudEV4ZWN1dGlvbhJNCghtZXRhZGF0YRgDIAEoCzIzLmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZU1ldGFkYXRhQga6SAPIAQESRgoEc3BlYxgEIAEoCzI4LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MS5BZ2VudEV4ZWN1dGlvblNwZWMSSgoGc3RhdHVzGAUgASgLMjouYWkuc3RpZ21lci5hZ2VudGljLmFnZW50ZXhlY3V0aW9uLnYxLkFnZW50RXhlY3V0aW9uU3RhdHVzIsELChRBZ2VudEV4ZWN1dGlvblN0YXR1cxI/CgVhdWRpdBhjIAEoCzIwLmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZUF1ZGl0EkQKCG1lc3NhZ2VzGAEgAygLMjIuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50ZXhlY3V0aW9uLnYxLkFnZW50TWVzc2FnZRJNCgVwaGFzZRgCIAEoDjI0LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MS5FeGVjdXRpb25QaGFzZUIIukgFggECEAESVQoUc3ViX2FnZW50X2V4ZWN1dGlvbnMYBCADKAsyNy5haS5zd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3VzYWdlGBQgASgLMjsuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50ZXhlY3V0aW9uLnYxLlN0cmVhbWluZ1VzYWdlU3VtbWFyeRIyChFzdHJ1Y3R1cmVkX291dHB1dBgVIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3QSTQoQZmlsZV9jaGFuZ2Vfc2V0cxgXIAMoCzIzLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MS5GaWxlQ2hhbmdlU2V0El0KGGZpbGVfcmV2aWV3X2V2ZW50X3N0cmVhbRgYIAEoCzI7LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MS5GaWxlUmV2aWV3RXZlbnRTdHJlYW0aXAoKVG9kb3NFbnRyeRILCgNrZXkYASABKAkSPQoFdmFsdWUYAiABKAsyLi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRleGVjdXRpb24udjEuVG9kb0l0ZW06AjgBIiYKDVNldHVwUHJvZ3Jlc3MSFQoNY3VycmVudF9waGFzZRgBIAEoCWIGcHJvdG8z", [file_ai_stigmer_agentic_agentexecution_v1_approval, file_ai_stigmer_agentic_agentexecution_v1_artifact, file_ai_stigmer_agentic_agentexecution_v1_context, file_ai_stigmer_agentic_agentexecution_v1_enum, file_ai_stigmer_agentic_agentexecution_v1_filereview, file_ai_stigmer_agentic_agentexecution_v1_message, file_ai_stigmer_agentic_agentexecution_v1_spec, file_ai_stigmer_agentic_agentexecution_v1_subagent, file_ai_stigmer_agentic_agentexecution_v1_todo, file_ai_stigmer_agentic_agentexecution_v1_usage, file_ai_stigmer_agentic_agentexecution_v1_writeback, file_ai_stigmer_commons_apiresource_metadata, file_ai_stigmer_commons_apiresource_status, file_buf_validate_validate, file_google_protobuf_struct]);
23
24
  /**
24
25
  * Describes the message ai.stigmer.agentic.agentexecution.v1.AgentExecution.
25
26
  * Use `create(AgentExecutionSchema)` to create a new message.
@@ -1 +1 @@
1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AA0C,EAAE,MAAM,2CAA2C,CAAC;AACvG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,6CAA6C,GAAY,aAAa,CACjF,QAAQ,CAAC,kiFAAkiF,EAAE,CAAC,kDAAkD,EAAE,kDAAkD,EAAE,iDAAiD,EAAE,8CAA8C,EAAE,oDAAoD,EAAE,iDAAiD,EAAE,8CAA8C,EAAE,kDAAkD,EAAE,8CAA8C,EAAE,+CAA+C,EAAE,mDAAmD,EAAE,4CAA4C,EAAE,0CAA0C,EAAE,0BAA0B,EAAE,2BAA2B,CAAC,CAAC,CAAC;AAgDlvG;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAC;AAoUhE;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAC;AAuBhE;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
- import type { ToolKind } from "./enum_pb.js";
2
+ import type { ApprovalAction, ApprovalEventType, ApprovalPolicySource, ApprovalRetractionReason, ToolKind } from "./enum_pb.js";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
5
5
  * Describes the file ai/stigmer/agentic/agentexecution/v1/approval.proto.
@@ -168,6 +168,16 @@ export type PendingApproval = Message<"ai.stigmer.agentic.agentexecution.v1.Pend
168
168
  * @generated from field: ai.stigmer.agentic.agentexecution.v1.ToolKind tool_kind = 13;
169
169
  */
170
170
  toolKind: ToolKind;
171
+ /**
172
+ * Policy layer that gated this tool call, copied from
173
+ * ToolCall.approval_policy_source by the server-side projection (exactly as
174
+ * tool_kind above is). Lets the approval surface explain WHY the tool requires
175
+ * approval (e.g. "required by agent override") without a client-side lookup.
176
+ * See ApprovalPolicySource.
177
+ *
178
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ApprovalPolicySource approval_policy_source = 15;
179
+ */
180
+ approvalPolicySource: ApprovalPolicySource;
171
181
  };
172
182
  /**
173
183
  * Describes the message ai.stigmer.agentic.agentexecution.v1.PendingApproval.
@@ -230,3 +240,317 @@ export type ChildApprovalNotification = Message<"ai.stigmer.agentic.agentexecuti
230
240
  * Use `create(ChildApprovalNotificationSchema)` to create a new message.
231
241
  */
232
242
  export declare const ChildApprovalNotificationSchema: GenMessage<ChildApprovalNotification>;
243
+ /**
244
+ * A tool call requesting approval — the "ask" recorded when a gated tool call
245
+ * enters WAITING_APPROVAL.
246
+ *
247
+ * Carries the same display-facing field set as PendingApproval so a REQUESTED
248
+ * event can fully reconstruct the pending-approval projection without joining
249
+ * back to the originating ToolCall (which, for workflow-parent approvals, is not
250
+ * co-located with the approval).
251
+ *
252
+ * @generated from message ai.stigmer.agentic.agentexecution.v1.ApprovalRequest
253
+ */
254
+ export type ApprovalRequest = Message<"ai.stigmer.agentic.agentexecution.v1.ApprovalRequest"> & {
255
+ /**
256
+ * Correlation id shared by every event for this approval. Equal to
257
+ * tool_call_id by a deliberate decision (see the file header); the reserved
258
+ * seam for a future independent id, not a temporary placeholder.
259
+ *
260
+ * @generated from field: string approval_request_id = 1;
261
+ */
262
+ approvalRequestId: string;
263
+ /**
264
+ * Harness tool-call id of the gated call. Matches ToolCall.id; the bridge
265
+ * between today's message scan and the event stream.
266
+ *
267
+ * @generated from field: string tool_call_id = 2;
268
+ */
269
+ toolCallId: string;
270
+ /**
271
+ * ISO 8601 timestamp when approval was requested. Copied from
272
+ * ToolCall.approval_requested_at.
273
+ *
274
+ * @generated from field: string requested_at = 3;
275
+ */
276
+ requestedAt: string;
277
+ /**
278
+ * Name of the tool requiring approval. Matches ToolCall.name.
279
+ *
280
+ * @generated from field: string tool_name = 4;
281
+ */
282
+ toolName: string;
283
+ /**
284
+ * Human-readable approval message for display. Copied from
285
+ * ToolCall.approval_message (placeholders already resolved).
286
+ *
287
+ * @generated from field: string message = 5;
288
+ */
289
+ message: string;
290
+ /**
291
+ * Sanitized preview of tool arguments. Copied from ToolCall.args_preview.
292
+ *
293
+ * @generated from field: string args_preview = 6;
294
+ */
295
+ argsPreview: string;
296
+ /**
297
+ * True if this approval originates from a sub-agent.
298
+ *
299
+ * @generated from field: bool from_sub_agent = 7;
300
+ */
301
+ fromSubAgent: boolean;
302
+ /**
303
+ * Name of the sub-agent when from_sub_agent is true; empty otherwise.
304
+ *
305
+ * @generated from field: string sub_agent_name = 8;
306
+ */
307
+ subAgentName: string;
308
+ /**
309
+ * Concise subject of the sub-agent's task when from_sub_agent is true; empty
310
+ * otherwise. Copied from SubAgentExecution.subject.
311
+ *
312
+ * @generated from field: string sub_agent_subject = 9;
313
+ */
314
+ subAgentSubject: string;
315
+ /**
316
+ * Slug of the MCP server providing this tool; empty for built-in tools.
317
+ * Copied from ToolCall.mcp_server_slug.
318
+ *
319
+ * @generated from field: string mcp_server_slug = 10;
320
+ */
321
+ mcpServerSlug: string;
322
+ /**
323
+ * Harness-agnostic tool category. Copied from ToolCall.tool_kind.
324
+ *
325
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ToolKind tool_kind = 11;
326
+ */
327
+ toolKind: ToolKind;
328
+ /**
329
+ * Policy layer that gated this call. Copied from
330
+ * ToolCall.approval_policy_source so the event-stream projection reconstructs
331
+ * the same PendingApproval as the message scan. See ApprovalPolicySource.
332
+ *
333
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ApprovalPolicySource approval_policy_source = 13;
334
+ */
335
+ approvalPolicySource: ApprovalPolicySource;
336
+ };
337
+ /**
338
+ * Describes the message ai.stigmer.agentic.agentexecution.v1.ApprovalRequest.
339
+ * Use `create(ApprovalRequestSchema)` to create a new message.
340
+ */
341
+ export declare const ApprovalRequestSchema: GenMessage<ApprovalRequest>;
342
+ /**
343
+ * The platform's withdrawal of an in-flight approval request — the system-actored
344
+ * terminal transition of the approval lifecycle, authored when a gated call
345
+ * becomes unreachable before any user decision (its sub-agent went terminal, or
346
+ * it was superseded on resume) while the execution is still live.
347
+ *
348
+ * It is distinct from ApprovalDecision (the three user actions). Terminal-execution
349
+ * gate-exits (cancel / fail / terminate) are NOT modeled here — a terminal
350
+ * execution simply has zero pending approvals by projection — so this event is
351
+ * reserved for the in-flight, per-call orphan case. See APPROVAL_EVENT_TYPE_RETRACTED.
352
+ *
353
+ * @generated from message ai.stigmer.agentic.agentexecution.v1.ApprovalRetraction
354
+ */
355
+ export type ApprovalRetraction = Message<"ai.stigmer.agentic.agentexecution.v1.ApprovalRetraction"> & {
356
+ /**
357
+ * Correlates this retraction to its ApprovalRequest.
358
+ *
359
+ * @generated from field: string approval_request_id = 1;
360
+ */
361
+ approvalRequestId: string;
362
+ /**
363
+ * Why the platform withdrew the request. Audit-trail metadata only; never
364
+ * affects control flow. See ApprovalRetractionReason.
365
+ *
366
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ApprovalRetractionReason reason = 2;
367
+ */
368
+ reason: ApprovalRetractionReason;
369
+ /**
370
+ * ISO 8601 timestamp when the request was retracted.
371
+ *
372
+ * @generated from field: string retracted_at = 3;
373
+ */
374
+ retractedAt: string;
375
+ };
376
+ /**
377
+ * Describes the message ai.stigmer.agentic.agentexecution.v1.ApprovalRetraction.
378
+ * Use `create(ApprovalRetractionSchema)` to create a new message.
379
+ */
380
+ export declare const ApprovalRetractionSchema: GenMessage<ApprovalRetraction>;
381
+ /**
382
+ * A user's decision on an approval request.
383
+ *
384
+ * @generated from message ai.stigmer.agentic.agentexecution.v1.ApprovalDecision
385
+ */
386
+ export type ApprovalDecision = Message<"ai.stigmer.agentic.agentexecution.v1.ApprovalDecision"> & {
387
+ /**
388
+ * Correlates this decision to its ApprovalRequest.
389
+ *
390
+ * @generated from field: string approval_request_id = 1;
391
+ */
392
+ approvalRequestId: string;
393
+ /**
394
+ * The precise user action (APPROVE / SKIP / REJECT / APPROVE_ALL).
395
+ * ApprovalEvent.event_type carries the coarse bucket; this carries fidelity.
396
+ *
397
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ApprovalAction action = 2;
398
+ */
399
+ action: ApprovalAction;
400
+ /**
401
+ * ISO 8601 timestamp when the decision was made.
402
+ *
403
+ * @generated from field: string decided_at = 3;
404
+ */
405
+ decidedAt: string;
406
+ /**
407
+ * Identity of the decider (principal). Empty when not attributed.
408
+ *
409
+ * @generated from field: string decided_by = 4;
410
+ */
411
+ decidedBy: string;
412
+ /**
413
+ * Optional free-text comment supplied with the decision (e.g. a rejection
414
+ * reason).
415
+ *
416
+ * @generated from field: string comment = 5;
417
+ */
418
+ comment: string;
419
+ };
420
+ /**
421
+ * Describes the message ai.stigmer.agentic.agentexecution.v1.ApprovalDecision.
422
+ * Use `create(ApprovalDecisionSchema)` to create a new message.
423
+ */
424
+ export declare const ApprovalDecisionSchema: GenMessage<ApprovalDecision>;
425
+ /**
426
+ * An immutable event in the approval lifecycle.
427
+ *
428
+ * The payload is a closed oneof so each event type is type-safe and
429
+ * self-documenting: REQUESTED carries an ApprovalRequest; APPROVED / REJECTED /
430
+ * SKIPPED carry an ApprovalDecision; RETRACTED carries an ApprovalRetraction.
431
+ *
432
+ * @generated from message ai.stigmer.agentic.agentexecution.v1.ApprovalEvent
433
+ */
434
+ export type ApprovalEvent = Message<"ai.stigmer.agentic.agentexecution.v1.ApprovalEvent"> & {
435
+ /**
436
+ * Unique id of this event, deterministic by design: derived from
437
+ * tool_call_id + event_type. This is the permanent idempotency key for
438
+ * append-only authoring (a single approval has at most one event per type), so
439
+ * re-deriving or re-authoring the stream never duplicates an event.
440
+ *
441
+ * @generated from field: string event_id = 1;
442
+ */
443
+ eventId: string;
444
+ /**
445
+ * Correlation id shared by every event for one approval (request + decision).
446
+ *
447
+ * @generated from field: string approval_request_id = 2;
448
+ */
449
+ approvalRequestId: string;
450
+ /**
451
+ * Coarse lifecycle bucket of this event. See ApprovalEventType.
452
+ *
453
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ApprovalEventType event_type = 3;
454
+ */
455
+ eventType: ApprovalEventType;
456
+ /**
457
+ * ISO 8601 timestamp of the event.
458
+ *
459
+ * @generated from field: string timestamp = 4;
460
+ */
461
+ timestamp: string;
462
+ /**
463
+ * Who produced the event: "system" for REQUESTED, "user" for decisions.
464
+ *
465
+ * @generated from field: string actor = 5;
466
+ */
467
+ actor: string;
468
+ /**
469
+ * Typed payload, selected by event_type.
470
+ *
471
+ * @generated from oneof ai.stigmer.agentic.agentexecution.v1.ApprovalEvent.payload
472
+ */
473
+ payload: {
474
+ /**
475
+ * Set when event_type == REQUESTED.
476
+ *
477
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ApprovalRequest requested = 6;
478
+ */
479
+ value: ApprovalRequest;
480
+ case: "requested";
481
+ } | {
482
+ /**
483
+ * Set for decision events (APPROVED / REJECTED / SKIPPED).
484
+ *
485
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ApprovalDecision decided = 7;
486
+ */
487
+ value: ApprovalDecision;
488
+ case: "decided";
489
+ } | {
490
+ /**
491
+ * Set when event_type == RETRACTED — the platform withdrew the request
492
+ * before any user decision. See ApprovalRetraction.
493
+ *
494
+ * @generated from field: ai.stigmer.agentic.agentexecution.v1.ApprovalRetraction retracted = 8;
495
+ */
496
+ value: ApprovalRetraction;
497
+ case: "retracted";
498
+ } | {
499
+ case: undefined;
500
+ value?: undefined;
501
+ };
502
+ };
503
+ /**
504
+ * Describes the message ai.stigmer.agentic.agentexecution.v1.ApprovalEvent.
505
+ * Use `create(ApprovalEventSchema)` to create a new message.
506
+ */
507
+ export declare const ApprovalEventSchema: GenMessage<ApprovalEvent>;
508
+ /**
509
+ * The ordered sequence of approval events for a single agent execution.
510
+ *
511
+ * Persisted on AgentExecutionStatus.approval_event_stream as a server-authored,
512
+ * append-only record that coexists with the authoritative message scan. The
513
+ * scan still feeds pending_approvals and the UI; this stream is the parallel,
514
+ * independently-written ledger that (1) turns the projection parity check into a
515
+ * real cross-writer guard and (2) holds the approval audit trail (decided_by +
516
+ * comment) the flat ToolCall fields cannot.
517
+ *
518
+ * The lifecycle is total: every REQUESTED is eventually resolved by a decision
519
+ * (APPROVED / REJECTED / SKIPPED) or by a RETRACTED event the reconciler authors
520
+ * when an in-flight gated call becomes unreachable without a decision. Combined
521
+ * with the projection treating a terminal execution as zero pending approvals,
522
+ * this makes ComputePendingApprovalsFromEvents over this stream agree with the
523
+ * message scan after every write — the equality property the eventual
524
+ * source-of-truth flip rides on. The source of truth does not flip in this
525
+ * phase; the scan remains authoritative and is retained as the permanent
526
+ * cross-writer guard.
527
+ *
528
+ * Appends are keyed by the deterministic ApprovalEvent.event_id: REQUESTED and
529
+ * RETRACTED events are authored by the UpdateStatus / SubmitApproval reconciler
530
+ * (REQUESTED seeded once from the scan for executions predating the field),
531
+ * decision events by SubmitApproval (with decided_by and comment). Authoring the
532
+ * rich decision event in the same operation that records the decision on the
533
+ * scan guarantees it can never be duplicated or clobbered by a coarse
534
+ * re-derivation.
535
+ *
536
+ * @generated from message ai.stigmer.agentic.agentexecution.v1.ApprovalEventStream
537
+ */
538
+ export type ApprovalEventStream = Message<"ai.stigmer.agentic.agentexecution.v1.ApprovalEventStream"> & {
539
+ /**
540
+ * AgentExecution.metadata.id this stream belongs to.
541
+ *
542
+ * @generated from field: string execution_id = 1;
543
+ */
544
+ executionId: string;
545
+ /**
546
+ * Events in lifecycle order.
547
+ *
548
+ * @generated from field: repeated ai.stigmer.agentic.agentexecution.v1.ApprovalEvent events = 2;
549
+ */
550
+ events: ApprovalEvent[];
551
+ };
552
+ /**
553
+ * Describes the message ai.stigmer.agentic.agentexecution.v1.ApprovalEventStream.
554
+ * Use `create(ApprovalEventStreamSchema)` to create a new message.
555
+ */
556
+ export declare const ApprovalEventStreamSchema: GenMessage<ApprovalEventStream>;
@@ -6,7 +6,7 @@ import { file_ai_stigmer_agentic_agentexecution_v1_enum } from "./enum_pb.js";
6
6
  /**
7
7
  * Describes the file ai/stigmer/agentic/agentexecution/v1/approval.proto.
8
8
  */
9
- export const file_ai_stigmer_agentic_agentexecution_v1_approval = /*@__PURE__*/ fileDesc("CjNhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRleGVjdXRpb24vdjEvYXBwcm92YWwucHJvdG8SJGFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MSLpAgoPUGVuZGluZ0FwcHJvdmFsEhQKDHRvb2xfY2FsbF9pZBgBIAEoCRIRCgl0b29sX25hbWUYAiABKAkSDwoHbWVzc2FnZRgDIAEoCRIUCgxhcmdzX3ByZXZpZXcYBCABKAkSFAoMcmVxdWVzdGVkX2F0GAUgASgJEhYKDmZyb21fc3ViX2FnZW50GAYgASgIEhYKDnN1Yl9hZ2VudF9uYW1lGAcgASgJEhcKD21jcF9zZXJ2ZXJfc2x1ZxgIIAEoCRIZChFzdWJfYWdlbnRfc3ViamVjdBgJIAEoCRIXCg9hZ2VudF9yYXRpb25hbGUYCiABKAkSFgoOYnJhbmNoX2F0X2RlbnkYCyABKAkSGAoQaGVhZF9zaGFfYXRfZGVueRgMIAEoCRJBCgl0b29sX2tpbmQYDSABKA4yLi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRleGVjdXRpb24udjEuVG9vbEtpbmQigwEKGUNoaWxkQXBwcm92YWxOb3RpZmljYXRpb24SFAoMZXhlY3V0aW9uX2lkGAEgASgJElAKEXBlbmRpbmdfYXBwcm92YWxzGAIgAygLMjUuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50ZXhlY3V0aW9uLnYxLlBlbmRpbmdBcHByb3ZhbGIGcHJvdG8z", [file_ai_stigmer_agentic_agentexecution_v1_enum]);
9
+ export const file_ai_stigmer_agentic_agentexecution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RIRCgl0aW1lc3RhbXAYBCABKAkSDQoFYWN0b3IYBSABKAkSSgoJcmVxdWVzdGVkGAYgASgLMjUuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50ZXhlY3V0aW9uLnYxLkFwcHJvdmFsUmVxdWVzdEgAEkkKB2RlY2lkZWQYByABKAsyNi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRleGVjdXRpb24udjEuQXBwcm92YWxEZWNpc2lvbkgAEk0KCXJldHJhY3RlZBgIIAEoCzI4LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MS5BcHByb3ZhbFJldHJhY3Rpb25IAEIJCgdwYXlsb2FkInAKE0FwcHJvdmFsRXZlbnRTdHJlYW0SFAoMZXhlY3V0aW9uX2lkGAEgASgJEkMKBmV2ZW50cxgCIAMoCzIzLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MS5BcHByb3ZhbEV2ZW50YgZwcm90bzM", [file_ai_stigmer_agentic_agentexecution_v1_enum]);
10
10
  /**
11
11
  * Describes the message ai.stigmer.agentic.agentexecution.v1.PendingApproval.
12
12
  * Use `create(PendingApprovalSchema)` to create a new message.
@@ -17,4 +17,29 @@ export const PendingApprovalSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_a
17
17
  * Use `create(ChildApprovalNotificationSchema)` to create a new message.
18
18
  */
19
19
  export const ChildApprovalNotificationSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_approval, 1);
20
+ /**
21
+ * Describes the message ai.stigmer.agentic.agentexecution.v1.ApprovalRequest.
22
+ * Use `create(ApprovalRequestSchema)` to create a new message.
23
+ */
24
+ export const ApprovalRequestSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_approval, 2);
25
+ /**
26
+ * Describes the message ai.stigmer.agentic.agentexecution.v1.ApprovalRetraction.
27
+ * Use `create(ApprovalRetractionSchema)` to create a new message.
28
+ */
29
+ export const ApprovalRetractionSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_approval, 3);
30
+ /**
31
+ * Describes the message ai.stigmer.agentic.agentexecution.v1.ApprovalDecision.
32
+ * Use `create(ApprovalDecisionSchema)` to create a new message.
33
+ */
34
+ export const ApprovalDecisionSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_approval, 4);
35
+ /**
36
+ * Describes the message ai.stigmer.agentic.agentexecution.v1.ApprovalEvent.
37
+ * Use `create(ApprovalEventSchema)` to create a new message.
38
+ */
39
+ export const ApprovalEventSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_approval, 5);
40
+ /**
41
+ * Describes the message ai.stigmer.agentic.agentexecution.v1.ApprovalEventStream.
42
+ * Use `create(ApprovalEventStreamSchema)` to create a new message.
43
+ */
44
+ export const ApprovalEventStreamSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_approval, 6);
20
45
  //# sourceMappingURL=approval_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"approval_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/approval_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,yIAAyI;AACzI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,8CAA8C,EAAE,MAAM,cAAc,CAAC;AAG9E;;GAEG;AACH,MAAM,CAAC,MAAM,kDAAkD,GAAY,aAAa,CACtF,QAAQ,CAAC,8xBAA8xB,EAAE,CAAC,8CAA8C,CAAC,CAAC,CAAC;AAmL71B;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC;AAuDrE;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAA0C,aAAa,CACjG,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58,13 @@ export type ExecutionArtifact = Message<"ai.stigmer.agentic.agentexecution.v1.Ex
58
58
  * Storage location in R2.
59
59
  * Format: "artifacts/{execution_id}/{filename}"
60
60
  *
61
+ * Clients resolve a download URL on demand from this stable key (via
62
+ * getArtifactDownloadUrl) — there is deliberately no persisted URL, since a
63
+ * pre-signed URL would expire while the reference does not.
64
+ *
61
65
  * @generated from field: string storage_key = 5;
62
66
  */
63
67
  storageKey: string;
64
- /**
65
- * Pre-signed URL for downloading the artifact.
66
- * Expires after a configured period (default: 7 days).
67
- * Clients can call the refresh endpoint to get a new URL if expired.
68
- *
69
- * @generated from field: string download_url = 6;
70
- */
71
- downloadUrl: string;
72
68
  /**
73
69
  * ISO 8601 timestamp when the artifact was created.
74
70
  * Example: "2026-02-13T10:30:00Z"
@@ -7,7 +7,7 @@ import { file_buf_validate_validate } from "../../../../../buf/validate/validate
7
7
  /**
8
8
  * Describes the file ai/stigmer/agentic/agentexecution/v1/artifact.proto.
9
9
  */
10
- export const file_ai_stigmer_agentic_agentexecution_v1_artifact = /*@__PURE__*/ fileDesc("CjNhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRleGVjdXRpb24vdjEvYXJ0aWZhY3QucHJvdG8SJGFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MSKaAgoRRXhlY3V0aW9uQXJ0aWZhY3QSDAoEbmFtZRgBIAEoCRIUCgxzYW5kYm94X3BhdGgYAiABKAkSUwoEa2luZBgDIAEoDjI7LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MS5FeGVjdXRpb25BcnRpZmFjdEtpbmRCCLpIBYIBAhABEhIKCnNpemVfYnl0ZXMYBCABKAMSEwoLc3RvcmFnZV9rZXkYBSABKAkSFAoMZG93bmxvYWRfdXJsGAYgASgJEhIKCmNyZWF0ZWRfYXQYByABKAkSEgoKZXhwaXJlc19hdBgIIAEoCRIPCgdlbnRyaWVzGAkgAygJEhQKDGNvbnRlbnRfaGFzaBgKIAEoCWIGcHJvdG8z", [file_ai_stigmer_agentic_agentexecution_v1_enum, file_buf_validate_validate]);
10
+ export const file_ai_stigmer_agentic_agentexecution_v1_artifact = /*@__PURE__*/ fileDesc("CjNhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRleGVjdXRpb24vdjEvYXJ0aWZhY3QucHJvdG8SJGFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MSKEAgoRRXhlY3V0aW9uQXJ0aWZhY3QSDAoEbmFtZRgBIAEoCRIUCgxzYW5kYm94X3BhdGgYAiABKAkSUwoEa2luZBgDIAEoDjI7LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MS5FeGVjdXRpb25BcnRpZmFjdEtpbmRCCLpIBYIBAhABEhIKCnNpemVfYnl0ZXMYBCABKAMSEwoLc3RvcmFnZV9rZXkYBSABKAkSEgoKY3JlYXRlZF9hdBgHIAEoCRISCgpleHBpcmVzX2F0GAggASgJEg8KB2VudHJpZXMYCSADKAkSFAoMY29udGVudF9oYXNoGAogASgJYgZwcm90bzM", [file_ai_stigmer_agentic_agentexecution_v1_enum, file_buf_validate_validate]);
11
11
  /**
12
12
  * Describes the message ai.stigmer.agentic.agentexecution.v1.ExecutionArtifact.
13
13
  * Use `create(ExecutionArtifactSchema)` to create a new message.
@@ -1 +1 @@
1
- {"version":3,"file":"artifact_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/artifact_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,yIAAyI;AACzI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,8CAA8C,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,kDAAkD,GAAY,aAAa,CACtF,QAAQ,CAAC,kgBAAkgB,EAAE,CAAC,8CAA8C,EAAE,0BAA0B,CAAC,CAAC,CAAC;AA2H7lB;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAkC,aAAa,CACjF,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"artifact_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/artifact_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,yIAAyI;AACzI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,8CAA8C,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,kDAAkD,GAAY,aAAa,CACtF,QAAQ,CAAC,qeAAqe,EAAE,CAAC,8CAA8C,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAsHhkB;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAkC,aAAa,CACjF,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC"}
@@ -114,6 +114,45 @@ export declare const AgentExecutionCommandController: {
114
114
  readonly O: any;
115
115
  readonly kind: any;
116
116
  };
117
+ /**
118
+ * Submit a keep/discard decision on a file change set (or a single file).
119
+ *
120
+ * Records a FILE_DECIDED event in the append-only file_review stream;
121
+ * FileChangeSet.decisions is the derived projection. The runner reconciles
122
+ * the approved bytes (Phase 2) — this RPC records the decision and enforces
123
+ * that expected_digest still matches the captured content the user reviewed.
124
+ *
125
+ * ## Preconditions
126
+ *
127
+ * - Execution must exist and be non-terminal
128
+ * - change_set_id must match a status.file_change_sets[].id; for FILE scope,
129
+ * file_change_id must match a CapturedFileChange.id within it
130
+ * - expected_digest must match the target's current digest
131
+ * - User must have can_edit permission on the execution
132
+ *
133
+ * @internal
134
+ *
135
+ * ## Error Conditions
136
+ *
137
+ * - NOT_FOUND: Execution doesn't exist
138
+ * - FAILED_PRECONDITION: Execution terminal, or change set/file not found
139
+ * - INVALID_ARGUMENT: scope/action UNSPECIFIED, missing file_change_id for
140
+ * FILE scope, or expected_digest mismatch
141
+ * - PERMISSION_DENIED: User lacks can_edit permission
142
+ *
143
+ * ## Idempotency
144
+ *
145
+ * Re-submitting the same decision (same change set, scope, target) is a no-op
146
+ * and returns the current state — appends are keyed by FileReviewEvent.event_id.
147
+ *
148
+ * @generated from rpc ai.stigmer.agentic.agentexecution.v1.AgentExecutionCommandController.submitFileDecision
149
+ */
150
+ readonly submitFileDecision: {
151
+ readonly name: "submitFileDecision";
152
+ readonly I: any;
153
+ readonly O: any;
154
+ readonly kind: any;
155
+ };
117
156
  /**
118
157
  * Cancel a running agent execution gracefully.
119
158
  *