@stigmer/protos 3.0.9-dev.20260615153829 → 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
@@ -757,45 +757,49 @@ export declare enum ApprovalAction {
757
757
  */
758
758
  REJECT = 3,
759
759
  /**
760
- * Approve this tool call AND auto-approve every subsequent tool call for
761
- * the rest of this execution ("approve and don't ask again").
760
+ * Approve this tool call AND grant a run-lifetime lease that auto-approves
761
+ * every subsequent tool call of the SAME class for the rest of this execution
762
+ * ("approve all of this kind, don't ask again").
762
763
  *
763
- * This is the gate-time analog of AgentExecutionSpec.auto_approve_all: it
764
- * lets a human escalate from per-call approval to "trust the rest of this
765
- * run" at the moment of friction, instead of pre-arming a bypass before the
766
- * agent has done anything.
764
+ * This is the gate-time, scoped analog of AgentExecutionSpec.auto_approve_all:
765
+ * it lets a human escalate from per-call approval to "trust this whole class"
766
+ * at the moment of friction, without pre-arming a global bypass. The lease is
767
+ * scoped to one class — a built-in approval category (write / delete / shell,
768
+ * with write and edit collapsed) or a single MCP server — never the whole run.
767
769
  *
768
770
  * ## Canonical contract (every layer derives its behavior from this)
769
771
  *
770
- * 1. Control plane (SubmitApproval handler): record APPROVE_ALL on the
771
- * clicked tool call, and resolve the rest of the *current* approval gate
772
- * by setting every other tool call still in TOOL_CALL_WAITING_APPROVAL
773
- * (action UNSPECIFIED) including sub-agent tool calls to
774
- * APPROVAL_ACTION_APPROVE. pending_approvals is recomputed to empty, so
775
- * the standard "gate fully resolved" path sends the approvalGateResolved
776
- * signal. This keeps the audit trail honest: every tool that runs carries
777
- * an explicit approval_action.
778
- *
779
- * 2. Runner (native + cursor harness): on reinvocation, the presence of ANY
780
- * APPROVE_ALL decision in the persisted execution history means the
781
- * execution is auto-approved for the remainder of the run. New tool calls
782
- * (and sub-agent tool calls) skip the approval gate entirely, exactly as
783
- * if spec.auto_approve_all were true. The interrupted tool itself resumes
784
- * as an approval.
772
+ * 1. Control plane (SubmitApproval handler): record APPROVE_ALL on the clicked
773
+ * tool call, and resolve any other still-pending tool call that shares the
774
+ * clicked call's class including sub-agent tool calls to
775
+ * APPROVAL_ACTION_APPROVE. Pending tool calls of a DIFFERENT class stay in
776
+ * TOOL_CALL_WAITING_APPROVAL so the gate still holds for them. This keeps
777
+ * the audit trail honest: every tool that runs carries an explicit
778
+ * approval_action.
779
+ *
780
+ * 2. Runner (native + cursor harness): the lease is derived on read from the
781
+ * persisted APPROVE_ALL decision plus the tool's class there is no
782
+ * separately stored lease. On reinvocation, a new tool call (or sub-agent
783
+ * tool call) whose class matches an active lease skips the approval gate; a
784
+ * tool call of any other class is still gated. The interrupted tool itself
785
+ * resumes as an approval.
785
786
  *
786
787
  * ## Scope
787
788
  *
788
- * APPROVE_ALL covers the rest of THIS execution. It is NOT persisted to the
789
- * session or the agent; a subsequent execution starts gated again unless the
790
- * caller sets it anew (interactive clients may carry a session-scoped
791
- * preference forward in-memory, but that is a client concern, not a
792
- * server-persisted state).
789
+ * The lease covers the rest of THIS execution and only the matched class. It
790
+ * is NOT persisted to the session or the agent; a subsequent execution starts
791
+ * gated again unless the caller sets it anew (interactive clients may carry a
792
+ * session-scoped preference forward in-memory, but that is a client concern,
793
+ * not server-persisted state). AgentExecutionSpec.auto_approve_all remains the
794
+ * single, explicit whole-run global bypass.
793
795
  *
794
796
  * ## Audit
795
797
  *
796
- * Because this bypasses all remaining approval checks for the execution,
797
- * executions containing an APPROVE_ALL decision should be auditable. The
798
- * decision is recorded on ToolCall.approval_action like any other.
798
+ * Because it bypasses subsequent same-class approval checks, executions
799
+ * containing an APPROVE_ALL decision should be auditable. The decision is
800
+ * recorded on ToolCall.approval_action like any other; the policy layer that
801
+ * cleared each subsequent call is recorded on ToolCall.approval_policy_source
802
+ * (APPROVAL_POLICY_SOURCE_APPROVAL_LEASE).
799
803
  *
800
804
  * @generated from enum value: APPROVAL_ACTION_APPROVE_ALL = 4;
801
805
  */
@@ -805,6 +809,201 @@ export declare enum ApprovalAction {
805
809
  * Describes the enum ai.stigmer.agentic.agentexecution.v1.ApprovalAction.
806
810
  */
807
811
  export declare const ApprovalActionSchema: GenEnum<ApprovalAction>;
812
+ /**
813
+ * ApprovalPolicySource is the policy layer that decided a tool call's approval
814
+ * requirement — the provenance recorded on every gated or auto-approved tool
815
+ * call so an execution's authorizations are auditable.
816
+ *
817
+ * Set by the runner at the approval gate (the one component that evaluates the
818
+ * merged policy) and persisted on ToolCall.approval_policy_source, exactly as
819
+ * ToolCall.tool_kind is set and persisted. Clients render it to answer "why was
820
+ * this tool gated or auto-approved?".
821
+ *
822
+ * @internal
823
+ * Mirrors the runner's internal PolicySource union (approval-policy.ts) one for
824
+ * one. Layered precedence: a pinned or agent override wins over the classifier
825
+ * default; a lease or the global bypass clears an otherwise-required approval.
826
+ *
827
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.ApprovalPolicySource
828
+ */
829
+ export declare enum ApprovalPolicySource {
830
+ /**
831
+ * Default — the execution predates this field, or the tool was never evaluated
832
+ * by the approval gate (e.g. a read-only built-in). Clients show no provenance.
833
+ *
834
+ * @generated from enum value: APPROVAL_POLICY_SOURCE_UNSPECIFIED = 0;
835
+ */
836
+ UNSPECIFIED = 0,
837
+ /**
838
+ * Layer 1: the connect-time classifier's default for an MCP tool
839
+ * (McpServerStatus.tool_approvals).
840
+ *
841
+ * @generated from enum value: APPROVAL_POLICY_SOURCE_CLASSIFIER_DEFAULT = 1;
842
+ */
843
+ CLASSIFIER_DEFAULT = 1,
844
+ /**
845
+ * Layer 2: an operator's pinned override on the MCP server blueprint
846
+ * (McpServerSpec.pinned_tool_approvals).
847
+ *
848
+ * @generated from enum value: APPROVAL_POLICY_SOURCE_PINNED_OVERRIDE = 2;
849
+ */
850
+ PINNED_OVERRIDE = 2,
851
+ /**
852
+ * Layer 3: an agent-level override for an MCP tool
853
+ * (Agent McpServerUsage.tool_approval_overrides).
854
+ *
855
+ * @generated from enum value: APPROVAL_POLICY_SOURCE_AGENT_OVERRIDE = 3;
856
+ */
857
+ AGENT_OVERRIDE = 3,
858
+ /**
859
+ * Layer 4: the pre-armed AgentExecutionSpec.auto_approve_all whole-run global
860
+ * bypass cleared this call.
861
+ *
862
+ * @generated from enum value: APPROVAL_POLICY_SOURCE_AUTO_APPROVE_ALL = 4;
863
+ */
864
+ AUTO_APPROVE_ALL = 4,
865
+ /**
866
+ * Layer 4: a run-lifetime scoped lease (the successor to a global "approve
867
+ * all"; see APPROVAL_ACTION_APPROVE_ALL) cleared this call because it matched
868
+ * the leased class.
869
+ *
870
+ * @generated from enum value: APPROVAL_POLICY_SOURCE_APPROVAL_LEASE = 5;
871
+ */
872
+ APPROVAL_LEASE = 5,
873
+ /**
874
+ * A non-MCP built-in tool gated by the shared tool taxonomy
875
+ * (write / delete / shell).
876
+ *
877
+ * @generated from enum value: APPROVAL_POLICY_SOURCE_BUILTIN_CATEGORY = 6;
878
+ */
879
+ BUILTIN_CATEGORY = 6,
880
+ /**
881
+ * The connect-time MCP destructiveHint tightener forced this tool to require
882
+ * approval, overriding a more permissive classifier verdict. First-class
883
+ * provenance so a tightened tool is distinguishable from a plain classifier
884
+ * default. See applyDestructiveHintTightener.
885
+ *
886
+ * @generated from enum value: APPROVAL_POLICY_SOURCE_ANNOTATION_DESTRUCTIVE_TIGHTEN = 7;
887
+ */
888
+ ANNOTATION_DESTRUCTIVE_TIGHTEN = 7
889
+ }
890
+ /**
891
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.ApprovalPolicySource.
892
+ */
893
+ export declare const ApprovalPolicySourceSchema: GenEnum<ApprovalPolicySource>;
894
+ /**
895
+ * ApprovalEventType is the kind of event in the append-only approval-event
896
+ * stream (see ApprovalEvent in approval.proto).
897
+ *
898
+ * The event stream is the future single source of truth for HITL approvals. In
899
+ * Phase 1 of the approval re-architecture it is computed in *shadow* beside the
900
+ * existing message-scan projection (PendingApproval) and compared for parity in
901
+ * CI — it never feeds the UI yet, so introducing it changes no behavior.
902
+ *
903
+ * The set covers every way an approval request resolves: the three user
904
+ * decisions (APPROVED / REJECTED / SKIPPED) plus RETRACTED — the platform
905
+ * withdrawing an in-flight request whose gated call became unreachable before a
906
+ * decision. Together they make the lifecycle total, which is what lets the
907
+ * event-stream projection stand on its own. Lease-expiry events remain
908
+ * intentionally omitted until a component emits them; enums extend additively,
909
+ * so adding them later is non-breaking.
910
+ *
911
+ * event_type is the coarse lifecycle bucket; the precise user action (including
912
+ * APPROVE_ALL, which buckets as APPROVED) lives on ApprovalDecision.action.
913
+ *
914
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.ApprovalEventType
915
+ */
916
+ export declare enum ApprovalEventType {
917
+ /**
918
+ * Default value, not a valid event type.
919
+ *
920
+ * @generated from enum value: APPROVAL_EVENT_TYPE_UNSPECIFIED = 0;
921
+ */
922
+ UNSPECIFIED = 0,
923
+ /**
924
+ * A tool call was gated and is awaiting a user decision.
925
+ * Payload: ApprovalRequest.
926
+ *
927
+ * @generated from enum value: APPROVAL_EVENT_TYPE_REQUESTED = 1;
928
+ */
929
+ REQUESTED = 1,
930
+ /**
931
+ * The user approved the request (APPROVE or APPROVE_ALL); the tool may run.
932
+ * Payload: ApprovalDecision.
933
+ *
934
+ * @generated from enum value: APPROVAL_EVENT_TYPE_APPROVED = 2;
935
+ */
936
+ APPROVED = 2,
937
+ /**
938
+ * The user rejected the request; the execution fails.
939
+ * Payload: ApprovalDecision.
940
+ *
941
+ * @generated from enum value: APPROVAL_EVENT_TYPE_REJECTED = 3;
942
+ */
943
+ REJECTED = 3,
944
+ /**
945
+ * The user skipped the request; execution continues without the tool.
946
+ * Payload: ApprovalDecision.
947
+ *
948
+ * @generated from enum value: APPROVAL_EVENT_TYPE_SKIPPED = 4;
949
+ */
950
+ SKIPPED = 4,
951
+ /**
952
+ * The platform withdrew the request before any user decision because the gated
953
+ * call became unreachable while the execution was still live — its sub-agent
954
+ * reached a terminal state, or the call was superseded on resume. This is the
955
+ * system-actored terminal transition that makes the lifecycle total: a
956
+ * REQUESTED is resolved by exactly one of APPROVED / REJECTED / SKIPPED (user
957
+ * decisions) or RETRACTED (platform withdrawal). It is distinct from SKIPPED so
958
+ * the audit trail never conflates "the human skipped this" with "the platform
959
+ * withdrew it." Terminal-execution gate-exits (cancel / fail / terminate) are
960
+ * NOT modeled as per-call events — a terminal execution simply projects to zero
961
+ * pending approvals — so RETRACTED is reserved for the in-flight, per-call case.
962
+ * Payload: ApprovalRetraction.
963
+ *
964
+ * @generated from enum value: APPROVAL_EVENT_TYPE_RETRACTED = 5;
965
+ */
966
+ RETRACTED = 5
967
+ }
968
+ /**
969
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.ApprovalEventType.
970
+ */
971
+ export declare const ApprovalEventTypeSchema: GenEnum<ApprovalEventType>;
972
+ /**
973
+ * ApprovalRetractionReason explains why the platform withdrew an in-flight
974
+ * approval request (an APPROVAL_EVENT_TYPE_RETRACTED event). It is audit-trail
975
+ * metadata — it answers the user's question "why did my approval disappear?" —
976
+ * and never affects control flow.
977
+ *
978
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.ApprovalRetractionReason
979
+ */
980
+ export declare enum ApprovalRetractionReason {
981
+ /**
982
+ * Default value, not a valid reason.
983
+ *
984
+ * @generated from enum value: APPROVAL_RETRACTION_REASON_UNSPECIFIED = 0;
985
+ */
986
+ UNSPECIFIED = 0,
987
+ /**
988
+ * The gated call's sub-agent reached a terminal state (completed, failed, or
989
+ * cancelled) before the call was decided, orphaning the request.
990
+ *
991
+ * @generated from enum value: APPROVAL_RETRACTION_REASON_SUB_AGENT_TERMINAL = 1;
992
+ */
993
+ SUB_AGENT_TERMINAL = 1,
994
+ /**
995
+ * The gated call left the approval gate without a decision (the harness
996
+ * advanced past it or abandoned it on resume) while the execution was still
997
+ * live.
998
+ *
999
+ * @generated from enum value: APPROVAL_RETRACTION_REASON_SUPERSEDED = 2;
1000
+ */
1001
+ SUPERSEDED = 2
1002
+ }
1003
+ /**
1004
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.ApprovalRetractionReason.
1005
+ */
1006
+ export declare const ApprovalRetractionReasonSchema: GenEnum<ApprovalRetractionReason>;
808
1007
  /**
809
1008
  * InteractionMode controls the agent's behavioral posture for an execution.
810
1009
  *
@@ -859,3 +1058,577 @@ export declare enum InteractionMode {
859
1058
  * Describes the enum ai.stigmer.agentic.agentexecution.v1.InteractionMode.
860
1059
  */
861
1060
  export declare const InteractionModeSchema: GenEnum<InteractionMode>;
1061
+ /**
1062
+ * FileChangeType is the per-file outcome of a file mutation in a tool call.
1063
+ *
1064
+ * Distinct from ToolKind, which classifies the tool: a single tool call may
1065
+ * produce several FileChanges of different types (multi-file edits).
1066
+ *
1067
+ * @since First-Class Diff Review (#186)
1068
+ *
1069
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.FileChangeType
1070
+ */
1071
+ export declare enum FileChangeType {
1072
+ /**
1073
+ * Default value, not a valid file change type.
1074
+ *
1075
+ * @generated from enum value: FILE_CHANGE_TYPE_UNSPECIFIED = 0;
1076
+ */
1077
+ UNSPECIFIED = 0,
1078
+ /**
1079
+ * A new file was created.
1080
+ *
1081
+ * @generated from enum value: FILE_CHANGE_TYPE_CREATE = 1;
1082
+ */
1083
+ CREATE = 1,
1084
+ /**
1085
+ * An existing file's contents were modified.
1086
+ *
1087
+ * @generated from enum value: FILE_CHANGE_TYPE_MODIFY = 2;
1088
+ */
1089
+ MODIFY = 2,
1090
+ /**
1091
+ * A file was deleted.
1092
+ *
1093
+ * @generated from enum value: FILE_CHANGE_TYPE_DELETE = 3;
1094
+ */
1095
+ DELETE = 3,
1096
+ /**
1097
+ * A file was renamed or moved; FileChange.rename_from holds the source path.
1098
+ *
1099
+ * @generated from enum value: FILE_CHANGE_TYPE_RENAME = 4;
1100
+ */
1101
+ RENAME = 4
1102
+ }
1103
+ /**
1104
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.FileChangeType.
1105
+ */
1106
+ export declare const FileChangeTypeSchema: GenEnum<FileChangeType>;
1107
+ /**
1108
+ * FileChangeCaptureLevel describes how complete a FileChange's captured content
1109
+ * is, so clients render whole-file vs hunk-only diffs honestly per harness.
1110
+ *
1111
+ * @since First-Class Diff Review (#186)
1112
+ *
1113
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.FileChangeCaptureLevel
1114
+ */
1115
+ export declare enum FileChangeCaptureLevel {
1116
+ /**
1117
+ * Default value, not a valid capture level.
1118
+ *
1119
+ * @generated from enum value: FILE_CHANGE_CAPTURE_LEVEL_UNSPECIFIED = 0;
1120
+ */
1121
+ UNSPECIFIED = 0,
1122
+ /**
1123
+ * Full before+after content captured (native edit/write; future Cursor
1124
+ * pre-read). Clients render a true two-pane diff.
1125
+ *
1126
+ * @generated from enum value: FILE_CHANGE_CAPTURE_LEVEL_WHOLE_FILE = 1;
1127
+ */
1128
+ WHOLE_FILE = 1,
1129
+ /**
1130
+ * Only a hunk-level unified_diff is available (Cursor today). Clients render
1131
+ * the hunk diff; before/after whole-file content is absent.
1132
+ *
1133
+ * @generated from enum value: FILE_CHANGE_CAPTURE_LEVEL_HUNK_ONLY = 2;
1134
+ */
1135
+ HUNK_ONLY = 2
1136
+ }
1137
+ /**
1138
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.FileChangeCaptureLevel.
1139
+ */
1140
+ export declare const FileChangeCaptureLevelSchema: GenEnum<FileChangeCaptureLevel>;
1141
+ /**
1142
+ * FileChangeSetStatus is the state of a FileChangeSet, DERIVED by folding its
1143
+ * file-review events (never stored-mutable).
1144
+ *
1145
+ * @since File-Change HITL Redesign (Phase 1)
1146
+ *
1147
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.FileChangeSetStatus
1148
+ */
1149
+ export declare enum FileChangeSetStatus {
1150
+ /**
1151
+ * Default value, not a valid status.
1152
+ *
1153
+ * @generated from enum value: FILE_CHANGE_SET_STATUS_UNSPECIFIED = 0;
1154
+ */
1155
+ UNSPECIFIED = 0,
1156
+ /**
1157
+ * Baseline captured; the turn is executing and the candidate is not yet
1158
+ * captured. No diff to review yet.
1159
+ *
1160
+ * @generated from enum value: FILE_CHANGE_SET_STATUS_CAPTURING = 1;
1161
+ */
1162
+ CAPTURING = 1,
1163
+ /**
1164
+ * Candidate captured and the diff is reviewable; awaiting user decisions.
1165
+ * Partially-decided sets stay here (still actionable) until every change is
1166
+ * decided.
1167
+ *
1168
+ * @generated from enum value: FILE_CHANGE_SET_STATUS_AWAITING_REVIEW = 2;
1169
+ */
1170
+ AWAITING_REVIEW = 2,
1171
+ /**
1172
+ * All changes decided; awaiting the runner's reconcile.
1173
+ *
1174
+ * @generated from enum value: FILE_CHANGE_SET_STATUS_DECIDED = 3;
1175
+ */
1176
+ DECIDED = 3,
1177
+ /**
1178
+ * Approved bytes reconciled into the workspace and hash-verified. Terminal.
1179
+ *
1180
+ * @generated from enum value: FILE_CHANGE_SET_STATUS_RECONCILED = 4;
1181
+ */
1182
+ RECONCILED = 4,
1183
+ /**
1184
+ * A capture, diff, or reconcile failure halted the lifecycle. Terminal. See
1185
+ * FileReviewFailureKind for the precise cause.
1186
+ *
1187
+ * @generated from enum value: FILE_CHANGE_SET_STATUS_FAILED = 5;
1188
+ */
1189
+ FAILED = 5
1190
+ }
1191
+ /**
1192
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.FileChangeSetStatus.
1193
+ */
1194
+ export declare const FileChangeSetStatusSchema: GenEnum<FileChangeSetStatus>;
1195
+ /**
1196
+ * FileChangeKind is the per-file outcome within a FileChangeSet.
1197
+ *
1198
+ * The minimal set that covers the overwhelming majority of edits; COPY /
1199
+ * MODE_CHANGE / SYMLINK_CHANGE are deferred (adding enum values later is
1200
+ * non-breaking).
1201
+ *
1202
+ * @since File-Change HITL Redesign (Phase 1)
1203
+ *
1204
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.FileChangeKind
1205
+ */
1206
+ export declare enum FileChangeKind {
1207
+ /**
1208
+ * Default value, not a valid kind.
1209
+ *
1210
+ * @generated from enum value: FILE_CHANGE_KIND_UNSPECIFIED = 0;
1211
+ */
1212
+ UNSPECIFIED = 0,
1213
+ /**
1214
+ * A new file was created.
1215
+ *
1216
+ * @generated from enum value: FILE_CHANGE_KIND_ADD = 1;
1217
+ */
1218
+ ADD = 1,
1219
+ /**
1220
+ * An existing file's contents changed.
1221
+ *
1222
+ * @generated from enum value: FILE_CHANGE_KIND_MODIFY = 2;
1223
+ */
1224
+ MODIFY = 2,
1225
+ /**
1226
+ * A file was deleted.
1227
+ *
1228
+ * @generated from enum value: FILE_CHANGE_KIND_DELETE = 3;
1229
+ */
1230
+ DELETE = 3,
1231
+ /**
1232
+ * A file was renamed or moved; path_before holds the source, path_after the
1233
+ * destination.
1234
+ *
1235
+ * @generated from enum value: FILE_CHANGE_KIND_RENAME = 4;
1236
+ */
1237
+ RENAME = 4,
1238
+ /**
1239
+ * A binary file changed; rendered as "binary file changed" rather than a text
1240
+ * diff.
1241
+ *
1242
+ * @generated from enum value: FILE_CHANGE_KIND_BINARY_CHANGE = 5;
1243
+ */
1244
+ BINARY_CHANGE = 5
1245
+ }
1246
+ /**
1247
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.FileChangeKind.
1248
+ */
1249
+ export declare const FileChangeKindSchema: GenEnum<FileChangeKind>;
1250
+ /**
1251
+ * FileCaptureClass records how a file was captured, which governs which
1252
+ * substrate (git tree ref vs CAS) holds its bytes and whether it is reviewable
1253
+ * before CAS lands.
1254
+ *
1255
+ * @since File-Change HITL Redesign (Phase 1)
1256
+ *
1257
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.FileCaptureClass
1258
+ */
1259
+ export declare enum FileCaptureClass {
1260
+ /**
1261
+ * Default value, not a valid capture class.
1262
+ *
1263
+ * @generated from enum value: FILE_CAPTURE_CLASS_UNSPECIFIED = 0;
1264
+ */
1265
+ UNSPECIFIED = 0,
1266
+ /**
1267
+ * A git-tracked file; captured via the git no-commit tree snapshot.
1268
+ *
1269
+ * @generated from enum value: FILE_CAPTURE_CLASS_GIT_TRACKED = 1;
1270
+ */
1271
+ GIT_TRACKED = 1,
1272
+ /**
1273
+ * A git-untracked (but not ignored) file captured into the snapshot.
1274
+ *
1275
+ * @generated from enum value: FILE_CAPTURE_CLASS_GIT_UNTRACKED_CAPTURED = 2;
1276
+ */
1277
+ GIT_UNTRACKED_CAPTURED = 2,
1278
+ /**
1279
+ * A gitignored file captured via CAS (Phase 3).
1280
+ *
1281
+ * @generated from enum value: FILE_CAPTURE_CLASS_GIT_IGNORED_CAPTURED = 3;
1282
+ */
1283
+ GIT_IGNORED_CAPTURED = 3,
1284
+ /**
1285
+ * A file in a non-git workspace captured via CAS (Phase 3).
1286
+ *
1287
+ * @generated from enum value: FILE_CAPTURE_CLASS_NON_GIT_CAS = 4;
1288
+ */
1289
+ NON_GIT_CAS = 4
1290
+ }
1291
+ /**
1292
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.FileCaptureClass.
1293
+ */
1294
+ export declare const FileCaptureClassSchema: GenEnum<FileCaptureClass>;
1295
+ /**
1296
+ * DiffCompleteness describes whether a change set's rendered diff is complete
1297
+ * enough to approve safely. A non-COMPLETE value blocks normal approval so an
1298
+ * elided or binary-only diff can never be approved as if it were the whole
1299
+ * change. The value is a rollup the runner derives from the per-file
1300
+ * diff_complete + is_binary signals; it is an honest UI/audit signal, never the
1301
+ * enforcement boundary — the backend gate always re-derives the keep-all
1302
+ * condition from the per-file changes so a stale or mislabeled rollup can never
1303
+ * widen what may be approved.
1304
+ *
1305
+ * @since File-Change HITL Redesign (Phase 1)
1306
+ *
1307
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.DiffCompleteness
1308
+ */
1309
+ export declare enum DiffCompleteness {
1310
+ /**
1311
+ * Default value, not a valid completeness.
1312
+ *
1313
+ * @generated from enum value: DIFF_COMPLETENESS_UNSPECIFIED = 0;
1314
+ */
1315
+ UNSPECIFIED = 0,
1316
+ /**
1317
+ * Every file's full diff is available; safe to approve.
1318
+ *
1319
+ * @generated from enum value: DIFF_COMPLETENESS_COMPLETE = 1;
1320
+ */
1321
+ COMPLETE = 1,
1322
+ /**
1323
+ * At least one file has a non-binary incompleteness (elided/truncated/
1324
+ * secret-withheld/uncapturable) with no keepable bytes. The set cannot be
1325
+ * approved in one shot; it is resolved per file (keep the reviewable files,
1326
+ * discard the rest).
1327
+ *
1328
+ * @generated from enum value: DIFF_COMPLETENESS_PARTIAL_BLOCKED = 2;
1329
+ */
1330
+ PARTIAL_BLOCKED = 2,
1331
+ /**
1332
+ * The set's ONLY incompleteness is binary files: every non-binary file is
1333
+ * fully reviewable, and the remaining files are binary (a byte-true summary,
1334
+ * no text diff). Includes mixed sets (e.g. text edits + generated images).
1335
+ * Such a set can be kept in one action via a CHANGE_SET-scoped APPROVE
1336
+ * carrying acknowledge_unreviewable=true ("Keep all"). The acknowledgment
1337
+ * relaxes completeness only — never the expected_digest gate ("what you
1338
+ * approve is what gets applied").
1339
+ *
1340
+ * @generated from enum value: DIFF_COMPLETENESS_BINARY_SUMMARY_ONLY = 3;
1341
+ */
1342
+ BINARY_SUMMARY_ONLY = 3
1343
+ }
1344
+ /**
1345
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.DiffCompleteness.
1346
+ */
1347
+ export declare const DiffCompletenessSchema: GenEnum<DiffCompleteness>;
1348
+ /**
1349
+ * SnapshotKind is the substrate backing a SnapshotRef.
1350
+ *
1351
+ * @since File-Change HITL Redesign (Phase 1)
1352
+ *
1353
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.SnapshotKind
1354
+ */
1355
+ export declare enum SnapshotKind {
1356
+ /**
1357
+ * Default value, not a valid snapshot kind.
1358
+ *
1359
+ * @generated from enum value: SNAPSHOT_KIND_UNSPECIFIED = 0;
1360
+ */
1361
+ UNSPECIFIED = 0,
1362
+ /**
1363
+ * A git no-commit tree ref (git-tracked/untracked paths only).
1364
+ *
1365
+ * @generated from enum value: SNAPSHOT_KIND_GIT_TREE_REF = 1;
1366
+ */
1367
+ GIT_TREE_REF = 1,
1368
+ /**
1369
+ * A content-addressed manifest (ignored/non-git paths; Phase 3).
1370
+ *
1371
+ * @generated from enum value: SNAPSHOT_KIND_CAS_MANIFEST = 2;
1372
+ */
1373
+ CAS_MANIFEST = 2,
1374
+ /**
1375
+ * Both a git tree ref and a CAS manifest (mixed workspace).
1376
+ *
1377
+ * @generated from enum value: SNAPSHOT_KIND_HYBRID = 3;
1378
+ */
1379
+ HYBRID = 3
1380
+ }
1381
+ /**
1382
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.SnapshotKind.
1383
+ */
1384
+ export declare const SnapshotKindSchema: GenEnum<SnapshotKind>;
1385
+ /**
1386
+ * FileDecisionScope is the granularity a FileDecision applies to.
1387
+ *
1388
+ * HUNK is intentionally deferred — per-hunk approval is a derived approved
1389
+ * snapshot, not a new lease, and ships after file-level is stable.
1390
+ *
1391
+ * @since File-Change HITL Redesign (Phase 1)
1392
+ *
1393
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.FileDecisionScope
1394
+ */
1395
+ export declare enum FileDecisionScope {
1396
+ /**
1397
+ * Default value, not a valid scope.
1398
+ *
1399
+ * @generated from enum value: FILE_DECISION_SCOPE_UNSPECIFIED = 0;
1400
+ */
1401
+ UNSPECIFIED = 0,
1402
+ /**
1403
+ * The decision applies to the whole change set.
1404
+ *
1405
+ * @generated from enum value: FILE_DECISION_SCOPE_CHANGE_SET = 1;
1406
+ */
1407
+ CHANGE_SET = 1,
1408
+ /**
1409
+ * The decision applies to one CapturedFileChange (FileDecision.file_change_id).
1410
+ *
1411
+ * @generated from enum value: FILE_DECISION_SCOPE_FILE = 2;
1412
+ */
1413
+ FILE = 2
1414
+ }
1415
+ /**
1416
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.FileDecisionScope.
1417
+ */
1418
+ export declare const FileDecisionScopeSchema: GenEnum<FileDecisionScope>;
1419
+ /**
1420
+ * FileDecisionAction is a user's verdict on a change set or file.
1421
+ *
1422
+ * @since File-Change HITL Redesign (Phase 1)
1423
+ *
1424
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.FileDecisionAction
1425
+ */
1426
+ export declare enum FileDecisionAction {
1427
+ /**
1428
+ * Default value, not a valid action.
1429
+ *
1430
+ * @generated from enum value: FILE_DECISION_ACTION_UNSPECIFIED = 0;
1431
+ */
1432
+ UNSPECIFIED = 0,
1433
+ /**
1434
+ * Keep the change(s): reconcile the captured bytes into the workspace.
1435
+ *
1436
+ * @generated from enum value: FILE_DECISION_ACTION_APPROVE = 1;
1437
+ */
1438
+ APPROVE = 1,
1439
+ /**
1440
+ * Discard the change(s): reconcile back to baseline for the targeted scope.
1441
+ *
1442
+ * @generated from enum value: FILE_DECISION_ACTION_REJECT = 2;
1443
+ */
1444
+ REJECT = 2
1445
+ }
1446
+ /**
1447
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.FileDecisionAction.
1448
+ */
1449
+ export declare const FileDecisionActionSchema: GenEnum<FileDecisionAction>;
1450
+ /**
1451
+ * FileDecisionOrigin records which authority authored a FileDecision: a human
1452
+ * reviewer, or a platform policy acting on consent the human already gave.
1453
+ * Audit provenance carried on the decision so the record always shows WHO
1454
+ * decided — it is never an enforcement input, never a correlation key, and
1455
+ * never folded into any digest. UNSPECIFIED (decisions authored before this
1456
+ * field existed) reads as a human decision, the only author that existed then.
1457
+ *
1458
+ * @since File-Change HITL Redesign (DD-28 approved-command auto-keep)
1459
+ *
1460
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.FileDecisionOrigin
1461
+ */
1462
+ export declare enum FileDecisionOrigin {
1463
+ /**
1464
+ * Default value: a pre-DD-28 decision with no recorded origin. Treated as
1465
+ * USER by every consumer (the only author that existed before origins).
1466
+ *
1467
+ * @generated from enum value: FILE_DECISION_ORIGIN_UNSPECIFIED = 0;
1468
+ */
1469
+ UNSPECIFIED = 0,
1470
+ /**
1471
+ * A human reviewer decided via SubmitFileDecision.
1472
+ *
1473
+ * @generated from enum value: FILE_DECISION_ORIGIN_USER = 1;
1474
+ */
1475
+ USER = 1,
1476
+ /**
1477
+ * Platform policy auto-kept the set because every mutation in its turn came
1478
+ * from commands the human explicitly authorized (per-command approval,
1479
+ * APPROVE_ALL category lease, or spec.auto_approve_all) — consent verified
1480
+ * against server-authored approval records before authoring (DD-28). The
1481
+ * decision's actor is "policy", never the user.
1482
+ *
1483
+ * @generated from enum value: FILE_DECISION_ORIGIN_POLICY_APPROVED_COMMAND = 2;
1484
+ */
1485
+ POLICY_APPROVED_COMMAND = 2
1486
+ }
1487
+ /**
1488
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.FileDecisionOrigin.
1489
+ */
1490
+ export declare const FileDecisionOriginSchema: GenEnum<FileDecisionOrigin>;
1491
+ /**
1492
+ * FileReviewEventType is the kind of event in the append-only file-review
1493
+ * stream (see FileReviewEvent in filereview.proto). It is the coarse lifecycle
1494
+ * bucket; failure fidelity lives on FileReviewFailure.kind.
1495
+ *
1496
+ * @since File-Change HITL Redesign (Phase 1)
1497
+ *
1498
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.FileReviewEventType
1499
+ */
1500
+ export declare enum FileReviewEventType {
1501
+ /**
1502
+ * Default value, not a valid event type.
1503
+ *
1504
+ * @generated from enum value: FILE_REVIEW_EVENT_TYPE_UNSPECIFIED = 0;
1505
+ */
1506
+ UNSPECIFIED = 0,
1507
+ /**
1508
+ * Baseline captured at turn start. Payload: FileReviewBaselineCaptured.
1509
+ *
1510
+ * @generated from enum value: FILE_REVIEW_EVENT_TYPE_BASELINE_CAPTURED = 1;
1511
+ */
1512
+ BASELINE_CAPTURED = 1,
1513
+ /**
1514
+ * Candidate captured at the turn boundary, carrying the diff. Payload:
1515
+ * FileReviewCandidateCaptured.
1516
+ *
1517
+ * @generated from enum value: FILE_REVIEW_EVENT_TYPE_CANDIDATE_CAPTURED = 2;
1518
+ */
1519
+ CANDIDATE_CAPTURED = 2,
1520
+ /**
1521
+ * A user decided a change set or file. Payload: FileDecision.
1522
+ *
1523
+ * @generated from enum value: FILE_REVIEW_EVENT_TYPE_FILE_DECIDED = 3;
1524
+ */
1525
+ FILE_DECIDED = 3,
1526
+ /**
1527
+ * Approved bytes reconciled and verified. Payload: FileReviewReconciled.
1528
+ *
1529
+ * @generated from enum value: FILE_REVIEW_EVENT_TYPE_RECONCILED = 4;
1530
+ */
1531
+ RECONCILED = 4,
1532
+ /**
1533
+ * A capture/diff/reconcile failure. Payload: FileReviewFailure.
1534
+ *
1535
+ * @generated from enum value: FILE_REVIEW_EVENT_TYPE_FAILED = 5;
1536
+ */
1537
+ FAILED = 5
1538
+ }
1539
+ /**
1540
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.FileReviewEventType.
1541
+ */
1542
+ export declare const FileReviewEventTypeSchema: GenEnum<FileReviewEventType>;
1543
+ /**
1544
+ * FileReviewFailureKind is the precise cause carried by a FAILED file-review
1545
+ * event (FileReviewFailure.kind). Audit/control metadata for the failure
1546
+ * lifecycle.
1547
+ *
1548
+ * @since File-Change HITL Redesign (Phase 1)
1549
+ *
1550
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.FileReviewFailureKind
1551
+ */
1552
+ export declare enum FileReviewFailureKind {
1553
+ /**
1554
+ * Default value, not a valid failure kind.
1555
+ *
1556
+ * @generated from enum value: FILE_REVIEW_FAILURE_KIND_UNSPECIFIED = 0;
1557
+ */
1558
+ UNSPECIFIED = 0,
1559
+ /**
1560
+ * Capturing the baseline or candidate snapshot failed.
1561
+ *
1562
+ * @generated from enum value: FILE_REVIEW_FAILURE_KIND_CAPTURE_FAILED = 1;
1563
+ */
1564
+ CAPTURE_FAILED = 1,
1565
+ /**
1566
+ * The diff could not be rendered completely (uncapturable path); the change
1567
+ * set cannot become approvable.
1568
+ *
1569
+ * @generated from enum value: FILE_REVIEW_FAILURE_KIND_DIFF_UNREVIEWABLE = 2;
1570
+ */
1571
+ DIFF_UNREVIEWABLE = 2,
1572
+ /**
1573
+ * Reconciling approved bytes into the workspace failed.
1574
+ *
1575
+ * @generated from enum value: FILE_REVIEW_FAILURE_KIND_RECONCILE_FAILED = 3;
1576
+ */
1577
+ RECONCILE_FAILED = 3,
1578
+ /**
1579
+ * A post-reconcile filesystem hash did not match the approved digest.
1580
+ *
1581
+ * @generated from enum value: FILE_REVIEW_FAILURE_KIND_HASH_MISMATCH = 4;
1582
+ */
1583
+ HASH_MISMATCH = 4
1584
+ }
1585
+ /**
1586
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.FileReviewFailureKind.
1587
+ */
1588
+ export declare const FileReviewFailureKindSchema: GenEnum<FileReviewFailureKind>;
1589
+ /**
1590
+ * FileReviewBlockReason is the honest cause a captured file's diff is not fully
1591
+ * reviewable (carried on CapturedFileChange.blocked_reason, set only when
1592
+ * diff_complete == false). It is INFORMATIONAL provenance for the review UI —
1593
+ * never an enforcement input and never folded into file_digest/aggregate_digest.
1594
+ * Binary changes are conveyed by FileContent.is_binary, not here, so there is no
1595
+ * BINARY value (it would duplicate a signal the wire already carries).
1596
+ *
1597
+ * @since File-Change HITL Redesign (Phase 4)
1598
+ *
1599
+ * @generated from enum ai.stigmer.agentic.agentexecution.v1.FileReviewBlockReason
1600
+ */
1601
+ export declare enum FileReviewBlockReason {
1602
+ /**
1603
+ * Default: the file is reviewable, or diff_complete is false for a reason the
1604
+ * wire already conveys elsewhere (a binary side via FileContent.is_binary).
1605
+ *
1606
+ * @generated from enum value: FILE_REVIEW_BLOCK_REASON_UNSPECIFIED = 0;
1607
+ */
1608
+ UNSPECIFIED = 0,
1609
+ /**
1610
+ * A secret-like path (doc 12, DD-E): the bytes were deliberately never
1611
+ * captured, so there is nothing to review. Authored content-less by the runner.
1612
+ *
1613
+ * @generated from enum value: FILE_REVIEW_BLOCK_REASON_SECRET_WITHHELD = 1;
1614
+ */
1615
+ SECRET_WITHHELD = 1,
1616
+ /**
1617
+ * Captured, then its inline bodies were dropped to keep the persisted status
1618
+ * under its size limit. The content exists but is not inline for review.
1619
+ *
1620
+ * @generated from enum value: FILE_REVIEW_BLOCK_REASON_SIZE_ELIDED = 2;
1621
+ */
1622
+ SIZE_ELIDED = 2,
1623
+ /**
1624
+ * Generic non-capturable cause (forward-compat catch-all; e.g. a future
1625
+ * non-git path class). Mirrors the fail-open spirit of DIFF_UNREVIEWABLE.
1626
+ *
1627
+ * @generated from enum value: FILE_REVIEW_BLOCK_REASON_UNREVIEWABLE = 3;
1628
+ */
1629
+ UNREVIEWABLE = 3
1630
+ }
1631
+ /**
1632
+ * Describes the enum ai.stigmer.agentic.agentexecution.v1.FileReviewBlockReason.
1633
+ */
1634
+ export declare const FileReviewBlockReasonSchema: GenEnum<FileReviewBlockReason>;