diff --git a/docs/prds/control-plane-apply-status.md b/docs/prds/control-plane-apply-status.md index 8691de345..af77b5b9f 100644 --- a/docs/prds/control-plane-apply-status.md +++ b/docs/prds/control-plane-apply-status.md @@ -1,13 +1,14 @@ # Control-plane apply status -**Status:** Draft +**Status:** Approved **Date:** 2026-09-21 **Tracking:** `archie-core-pskb`, and `archie-core-nwa0` which depends on it ## Outcome An operator who edits a control-plane resource can see which processes are -running that version, which are still on an older one, and which rejected it. +running that version, which are still on an older one, which rejected it, and +which have stopped reporting. `docs/prds/runtime-control-plane.md` requires this and does not say where the report goes. This decides that. @@ -33,6 +34,11 @@ One record per process and resource kind, replaced in place. It holds the process name, the resource kind, the version applied, the error if the process could not apply it, and the time it reported. +Each process re-stamps its records every 30 seconds. A record is stale once it +is older than 90 seconds, and a stale record means the process that wrote it is +no longer running. The report time is therefore a liveness signal, not only a +write timestamp. + A process reports at the point it applies a resource, so the record says what happened rather than what was intended. Nothing probes. @@ -75,28 +81,20 @@ and a failed write is logged rather than turned into a failed reload. The settings page shows, per resource, the stored version beside each process's applied version, error, and report time. A process on an older version of a restart-required resource is pending a restart. A process with an error is -failed, with the error beside it. +failed, with the error beside it. A process whose record is stale is unknown, +never current. -## Open question: a record outlives the process that wrote it +## A record outlives the process that wrote it Records are replaced in place, so a process that applies a version and then -stops leaves a record asserting that version indefinitely. The settings page -would show a dead process as current. `docs/prds/status-health-surface.md` -faced the same choice and stamped the start of a poll pass so a wedged poller -reads as stale rather than healthy. +stops would otherwise leave a record asserting that version indefinitely, and +the settings page would show a dead process as current. +`docs/prds/status-health-surface.md` faced the same choice and stamped the start +of a poll pass so a wedged poller reads as stale rather than healthy. -This is not settled here, because the fix is a mechanism the tracking issue -does not ask for. Three options: - -1. Each process re-stamps its records on an interval, and a record that stops - being re-stamped reads as unknown. Costs a recurring write per process. -2. Records carry the instance identity generated at process start, and the UI - reads a changed identity as a restart. Detects restarts, not deaths. -3. Accept it. The page answers "what did each process apply" and not "is it - still running", and says so. - -Recommended: 1, because the question an operator brings to this page is whether -their change is live now. +Settled 2026-09-21: the re-stamp above. The alternatives considered were +carrying the instance identity generated at process start, which detects a +restart but not a death, and accepting the limitation with the page saying so. ## Verification @@ -108,6 +106,7 @@ their change is live now. test binding writer to reader. - A task-scoped credential is refused by both RPCs. - A failed report does not fail the reload that produced it. +- A record that stops being re-stamped renders as unknown rather than current. ## Not included diff --git a/internal/app/archied/state_store.go b/internal/app/archied/state_store.go index 7671f96ec..f59a26b6e 100644 --- a/internal/app/archied/state_store.go +++ b/internal/app/archied/state_store.go @@ -245,6 +245,9 @@ func (b *boot) stateStoreDeps(grants *staterpc.TaskGrants) staterpc.Deps { if css, ok := b.st.(storecontract.ConfigSnapshotStore); ok { deps.ConfigSnapshots = css } + if as, ok := b.st.(storecontract.ApplyStatusStore); ok { + deps.ApplyStatus = as + } return deps } diff --git a/internal/contracts/state/v1/state.pb.go b/internal/contracts/state/v1/state.pb.go index 557cad7cf..e30733539 100644 --- a/internal/contracts/state/v1/state.pb.go +++ b/internal/contracts/state/v1/state.pb.go @@ -4531,6 +4531,248 @@ func (x *GetConfigSnapshotResponse) GetFound() bool { return false } +// ApplyStatus is one process's report about one control-plane resource kind. +// applied_version is the version that process is running; error is set when it +// could not apply what the store returned, and leaves applied_version at the +// last version it did apply. reported_at is re-stamped on an interval, so a +// record older than the staleness window belongs to a process that has stopped +// running (docs/prds/control-plane-apply-status.md). +type ApplyStatus struct { + state protoimpl.MessageState `protogen:"open.v1"` + Process string `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"` + Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` + AppliedVersion int64 `protobuf:"varint,3,opt,name=applied_version,json=appliedVersion,proto3" json:"applied_version,omitempty"` + Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` + ReportedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=reported_at,json=reportedAt,proto3" json:"reported_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ApplyStatus) Reset() { + *x = ApplyStatus{} + mi := &file_state_v1_state_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ApplyStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplyStatus) ProtoMessage() {} + +func (x *ApplyStatus) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[81] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplyStatus.ProtoReflect.Descriptor instead. +func (*ApplyStatus) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{81} +} + +func (x *ApplyStatus) GetProcess() string { + if x != nil { + return x.Process + } + return "" +} + +func (x *ApplyStatus) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +func (x *ApplyStatus) GetAppliedVersion() int64 { + if x != nil { + return x.AppliedVersion + } + return 0 +} + +func (x *ApplyStatus) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +func (x *ApplyStatus) GetReportedAt() *timestamppb.Timestamp { + if x != nil { + return x.ReportedAt + } + return nil +} + +type PutApplyStatusRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Status *ApplyStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PutApplyStatusRequest) Reset() { + *x = PutApplyStatusRequest{} + mi := &file_state_v1_state_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PutApplyStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PutApplyStatusRequest) ProtoMessage() {} + +func (x *PutApplyStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[82] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PutApplyStatusRequest.ProtoReflect.Descriptor instead. +func (*PutApplyStatusRequest) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{82} +} + +func (x *PutApplyStatusRequest) GetStatus() *ApplyStatus { + if x != nil { + return x.Status + } + return nil +} + +type PutApplyStatusResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PutApplyStatusResponse) Reset() { + *x = PutApplyStatusResponse{} + mi := &file_state_v1_state_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PutApplyStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PutApplyStatusResponse) ProtoMessage() {} + +func (x *PutApplyStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[83] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PutApplyStatusResponse.ProtoReflect.Descriptor instead. +func (*PutApplyStatusResponse) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{83} +} + +type ListApplyStatusRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListApplyStatusRequest) Reset() { + *x = ListApplyStatusRequest{} + mi := &file_state_v1_state_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListApplyStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListApplyStatusRequest) ProtoMessage() {} + +func (x *ListApplyStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[84] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListApplyStatusRequest.ProtoReflect.Descriptor instead. +func (*ListApplyStatusRequest) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{84} +} + +type ListApplyStatusResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Statuses []*ApplyStatus `protobuf:"bytes,1,rep,name=statuses,proto3" json:"statuses,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListApplyStatusResponse) Reset() { + *x = ListApplyStatusResponse{} + mi := &file_state_v1_state_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListApplyStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListApplyStatusResponse) ProtoMessage() {} + +func (x *ListApplyStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[85] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListApplyStatusResponse.ProtoReflect.Descriptor instead. +func (*ListApplyStatusResponse) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{85} +} + +func (x *ListApplyStatusResponse) GetStatuses() []*ApplyStatus { + if x != nil { + return x.Statuses + } + return nil +} + // TaskLogEntry mirrors internal/logging.Entry: one decoded log line. fields // carries every remaining key as a JSON object string, the same way Event // carries its data, so structured context survives the hop without this @@ -4548,7 +4790,7 @@ type TaskLogEntry struct { func (x *TaskLogEntry) Reset() { *x = TaskLogEntry{} - mi := &file_state_v1_state_proto_msgTypes[81] + mi := &file_state_v1_state_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4560,7 +4802,7 @@ func (x *TaskLogEntry) String() string { func (*TaskLogEntry) ProtoMessage() {} func (x *TaskLogEntry) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[81] + mi := &file_state_v1_state_proto_msgTypes[86] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4573,7 +4815,7 @@ func (x *TaskLogEntry) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskLogEntry.ProtoReflect.Descriptor instead. func (*TaskLogEntry) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{81} + return file_state_v1_state_proto_rawDescGZIP(), []int{86} } func (x *TaskLogEntry) GetId() int64 { @@ -4638,7 +4880,7 @@ type ReadTaskLogRequest struct { func (x *ReadTaskLogRequest) Reset() { *x = ReadTaskLogRequest{} - mi := &file_state_v1_state_proto_msgTypes[82] + mi := &file_state_v1_state_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4650,7 +4892,7 @@ func (x *ReadTaskLogRequest) String() string { func (*ReadTaskLogRequest) ProtoMessage() {} func (x *ReadTaskLogRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[82] + mi := &file_state_v1_state_proto_msgTypes[87] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4663,7 +4905,7 @@ func (x *ReadTaskLogRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReadTaskLogRequest.ProtoReflect.Descriptor instead. func (*ReadTaskLogRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{82} + return file_state_v1_state_proto_rawDescGZIP(), []int{87} } func (x *ReadTaskLogRequest) GetTaskId() int64 { @@ -4749,7 +4991,7 @@ type ReadTaskLogResponse struct { func (x *ReadTaskLogResponse) Reset() { *x = ReadTaskLogResponse{} - mi := &file_state_v1_state_proto_msgTypes[83] + mi := &file_state_v1_state_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4761,7 +5003,7 @@ func (x *ReadTaskLogResponse) String() string { func (*ReadTaskLogResponse) ProtoMessage() {} func (x *ReadTaskLogResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[83] + mi := &file_state_v1_state_proto_msgTypes[88] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4774,7 +5016,7 @@ func (x *ReadTaskLogResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReadTaskLogResponse.ProtoReflect.Descriptor instead. func (*ReadTaskLogResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{83} + return file_state_v1_state_proto_rawDescGZIP(), []int{88} } func (x *ReadTaskLogResponse) GetEntries() []*TaskLogEntry { @@ -4833,7 +5075,7 @@ type StreamTaskLogContentRequest struct { func (x *StreamTaskLogContentRequest) Reset() { *x = StreamTaskLogContentRequest{} - mi := &file_state_v1_state_proto_msgTypes[84] + mi := &file_state_v1_state_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4845,7 +5087,7 @@ func (x *StreamTaskLogContentRequest) String() string { func (*StreamTaskLogContentRequest) ProtoMessage() {} func (x *StreamTaskLogContentRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[84] + mi := &file_state_v1_state_proto_msgTypes[89] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4858,7 +5100,7 @@ func (x *StreamTaskLogContentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamTaskLogContentRequest.ProtoReflect.Descriptor instead. func (*StreamTaskLogContentRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{84} + return file_state_v1_state_proto_rawDescGZIP(), []int{89} } func (x *StreamTaskLogContentRequest) GetTaskId() int64 { @@ -4886,7 +5128,7 @@ type StreamTaskLogContentResponse struct { func (x *StreamTaskLogContentResponse) Reset() { *x = StreamTaskLogContentResponse{} - mi := &file_state_v1_state_proto_msgTypes[85] + mi := &file_state_v1_state_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4898,7 +5140,7 @@ func (x *StreamTaskLogContentResponse) String() string { func (*StreamTaskLogContentResponse) ProtoMessage() {} func (x *StreamTaskLogContentResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[85] + mi := &file_state_v1_state_proto_msgTypes[90] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4911,7 +5153,7 @@ func (x *StreamTaskLogContentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamTaskLogContentResponse.ProtoReflect.Descriptor instead. func (*StreamTaskLogContentResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{85} + return file_state_v1_state_proto_rawDescGZIP(), []int{90} } func (x *StreamTaskLogContentResponse) GetChunk() []byte { @@ -4946,7 +5188,7 @@ type InsertCaptureRequest struct { func (x *InsertCaptureRequest) Reset() { *x = InsertCaptureRequest{} - mi := &file_state_v1_state_proto_msgTypes[86] + mi := &file_state_v1_state_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4958,7 +5200,7 @@ func (x *InsertCaptureRequest) String() string { func (*InsertCaptureRequest) ProtoMessage() {} func (x *InsertCaptureRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[86] + mi := &file_state_v1_state_proto_msgTypes[91] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4971,7 +5213,7 @@ func (x *InsertCaptureRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertCaptureRequest.ProtoReflect.Descriptor instead. func (*InsertCaptureRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{86} + return file_state_v1_state_proto_rawDescGZIP(), []int{91} } func (x *InsertCaptureRequest) GetCapture() *CapturedEvent { @@ -5004,7 +5246,7 @@ type InsertCaptureResponse struct { func (x *InsertCaptureResponse) Reset() { *x = InsertCaptureResponse{} - mi := &file_state_v1_state_proto_msgTypes[87] + mi := &file_state_v1_state_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5016,7 +5258,7 @@ func (x *InsertCaptureResponse) String() string { func (*InsertCaptureResponse) ProtoMessage() {} func (x *InsertCaptureResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[87] + mi := &file_state_v1_state_proto_msgTypes[92] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5029,7 +5271,7 @@ func (x *InsertCaptureResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertCaptureResponse.ProtoReflect.Descriptor instead. func (*InsertCaptureResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{87} + return file_state_v1_state_proto_rawDescGZIP(), []int{92} } func (x *InsertCaptureResponse) GetId() int64 { @@ -5048,7 +5290,7 @@ type ListCapturesRequest struct { func (x *ListCapturesRequest) Reset() { *x = ListCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[88] + mi := &file_state_v1_state_proto_msgTypes[93] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5060,7 +5302,7 @@ func (x *ListCapturesRequest) String() string { func (*ListCapturesRequest) ProtoMessage() {} func (x *ListCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[88] + mi := &file_state_v1_state_proto_msgTypes[93] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5073,7 +5315,7 @@ func (x *ListCapturesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListCapturesRequest.ProtoReflect.Descriptor instead. func (*ListCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{88} + return file_state_v1_state_proto_rawDescGZIP(), []int{93} } func (x *ListCapturesRequest) GetLimit() int64 { @@ -5092,7 +5334,7 @@ type ListCapturesResponse struct { func (x *ListCapturesResponse) Reset() { *x = ListCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[89] + mi := &file_state_v1_state_proto_msgTypes[94] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5104,7 +5346,7 @@ func (x *ListCapturesResponse) String() string { func (*ListCapturesResponse) ProtoMessage() {} func (x *ListCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[89] + mi := &file_state_v1_state_proto_msgTypes[94] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5117,7 +5359,7 @@ func (x *ListCapturesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListCapturesResponse.ProtoReflect.Descriptor instead. func (*ListCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{89} + return file_state_v1_state_proto_rawDescGZIP(), []int{94} } func (x *ListCapturesResponse) GetCaptures() []*CapturedEvent { @@ -5136,7 +5378,7 @@ type StreamCapturesRequest struct { func (x *StreamCapturesRequest) Reset() { *x = StreamCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[90] + mi := &file_state_v1_state_proto_msgTypes[95] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5148,7 +5390,7 @@ func (x *StreamCapturesRequest) String() string { func (*StreamCapturesRequest) ProtoMessage() {} func (x *StreamCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[90] + mi := &file_state_v1_state_proto_msgTypes[95] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5161,7 +5403,7 @@ func (x *StreamCapturesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamCapturesRequest.ProtoReflect.Descriptor instead. func (*StreamCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{90} + return file_state_v1_state_proto_rawDescGZIP(), []int{95} } func (x *StreamCapturesRequest) GetLimit() int64 { @@ -5181,7 +5423,7 @@ type StreamCapturesResponse struct { func (x *StreamCapturesResponse) Reset() { *x = StreamCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[91] + mi := &file_state_v1_state_proto_msgTypes[96] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5193,7 +5435,7 @@ func (x *StreamCapturesResponse) String() string { func (*StreamCapturesResponse) ProtoMessage() {} func (x *StreamCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[91] + mi := &file_state_v1_state_proto_msgTypes[96] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5206,7 +5448,7 @@ func (x *StreamCapturesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StreamCapturesResponse.ProtoReflect.Descriptor instead. func (*StreamCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{91} + return file_state_v1_state_proto_rawDescGZIP(), []int{96} } func (x *StreamCapturesResponse) GetCapture() *CapturedEvent { @@ -5225,7 +5467,7 @@ type InsertMappingRequest struct { func (x *InsertMappingRequest) Reset() { *x = InsertMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[92] + mi := &file_state_v1_state_proto_msgTypes[97] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5237,7 +5479,7 @@ func (x *InsertMappingRequest) String() string { func (*InsertMappingRequest) ProtoMessage() {} func (x *InsertMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[92] + mi := &file_state_v1_state_proto_msgTypes[97] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5250,7 +5492,7 @@ func (x *InsertMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertMappingRequest.ProtoReflect.Descriptor instead. func (*InsertMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{92} + return file_state_v1_state_proto_rawDescGZIP(), []int{97} } func (x *InsertMappingRequest) GetMapping() *Mapping { @@ -5269,7 +5511,7 @@ type InsertMappingResponse struct { func (x *InsertMappingResponse) Reset() { *x = InsertMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[93] + mi := &file_state_v1_state_proto_msgTypes[98] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5281,7 +5523,7 @@ func (x *InsertMappingResponse) String() string { func (*InsertMappingResponse) ProtoMessage() {} func (x *InsertMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[93] + mi := &file_state_v1_state_proto_msgTypes[98] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5294,7 +5536,7 @@ func (x *InsertMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertMappingResponse.ProtoReflect.Descriptor instead. func (*InsertMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{93} + return file_state_v1_state_proto_rawDescGZIP(), []int{98} } func (x *InsertMappingResponse) GetId() int64 { @@ -5313,7 +5555,7 @@ type GetMappingRequest struct { func (x *GetMappingRequest) Reset() { *x = GetMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[94] + mi := &file_state_v1_state_proto_msgTypes[99] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5325,7 +5567,7 @@ func (x *GetMappingRequest) String() string { func (*GetMappingRequest) ProtoMessage() {} func (x *GetMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[94] + mi := &file_state_v1_state_proto_msgTypes[99] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5338,7 +5580,7 @@ func (x *GetMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMappingRequest.ProtoReflect.Descriptor instead. func (*GetMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{94} + return file_state_v1_state_proto_rawDescGZIP(), []int{99} } func (x *GetMappingRequest) GetId() int64 { @@ -5358,7 +5600,7 @@ type GetMappingResponse struct { func (x *GetMappingResponse) Reset() { *x = GetMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[95] + mi := &file_state_v1_state_proto_msgTypes[100] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5370,7 +5612,7 @@ func (x *GetMappingResponse) String() string { func (*GetMappingResponse) ProtoMessage() {} func (x *GetMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[95] + mi := &file_state_v1_state_proto_msgTypes[100] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5383,7 +5625,7 @@ func (x *GetMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetMappingResponse.ProtoReflect.Descriptor instead. func (*GetMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{95} + return file_state_v1_state_proto_rawDescGZIP(), []int{100} } func (x *GetMappingResponse) GetMapping() *Mapping { @@ -5408,7 +5650,7 @@ type ListMappingsRequest struct { func (x *ListMappingsRequest) Reset() { *x = ListMappingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[96] + mi := &file_state_v1_state_proto_msgTypes[101] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5420,7 +5662,7 @@ func (x *ListMappingsRequest) String() string { func (*ListMappingsRequest) ProtoMessage() {} func (x *ListMappingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[96] + mi := &file_state_v1_state_proto_msgTypes[101] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5433,7 +5675,7 @@ func (x *ListMappingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMappingsRequest.ProtoReflect.Descriptor instead. func (*ListMappingsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{96} + return file_state_v1_state_proto_rawDescGZIP(), []int{101} } type ListMappingsResponse struct { @@ -5445,7 +5687,7 @@ type ListMappingsResponse struct { func (x *ListMappingsResponse) Reset() { *x = ListMappingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[97] + mi := &file_state_v1_state_proto_msgTypes[102] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5457,7 +5699,7 @@ func (x *ListMappingsResponse) String() string { func (*ListMappingsResponse) ProtoMessage() {} func (x *ListMappingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[97] + mi := &file_state_v1_state_proto_msgTypes[102] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5470,7 +5712,7 @@ func (x *ListMappingsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMappingsResponse.ProtoReflect.Descriptor instead. func (*ListMappingsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{97} + return file_state_v1_state_proto_rawDescGZIP(), []int{102} } func (x *ListMappingsResponse) GetMappings() []*Mapping { @@ -5489,7 +5731,7 @@ type UpdateMappingRequest struct { func (x *UpdateMappingRequest) Reset() { *x = UpdateMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[98] + mi := &file_state_v1_state_proto_msgTypes[103] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5501,7 +5743,7 @@ func (x *UpdateMappingRequest) String() string { func (*UpdateMappingRequest) ProtoMessage() {} func (x *UpdateMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[98] + mi := &file_state_v1_state_proto_msgTypes[103] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5514,7 +5756,7 @@ func (x *UpdateMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateMappingRequest.ProtoReflect.Descriptor instead. func (*UpdateMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{98} + return file_state_v1_state_proto_rawDescGZIP(), []int{103} } func (x *UpdateMappingRequest) GetMapping() *Mapping { @@ -5532,7 +5774,7 @@ type UpdateMappingResponse struct { func (x *UpdateMappingResponse) Reset() { *x = UpdateMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[99] + mi := &file_state_v1_state_proto_msgTypes[104] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5544,7 +5786,7 @@ func (x *UpdateMappingResponse) String() string { func (*UpdateMappingResponse) ProtoMessage() {} func (x *UpdateMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[99] + mi := &file_state_v1_state_proto_msgTypes[104] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5557,7 +5799,7 @@ func (x *UpdateMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateMappingResponse.ProtoReflect.Descriptor instead. func (*UpdateMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{99} + return file_state_v1_state_proto_rawDescGZIP(), []int{104} } type DeleteMappingRequest struct { @@ -5569,7 +5811,7 @@ type DeleteMappingRequest struct { func (x *DeleteMappingRequest) Reset() { *x = DeleteMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[100] + mi := &file_state_v1_state_proto_msgTypes[105] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5581,7 +5823,7 @@ func (x *DeleteMappingRequest) String() string { func (*DeleteMappingRequest) ProtoMessage() {} func (x *DeleteMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[100] + mi := &file_state_v1_state_proto_msgTypes[105] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5594,7 +5836,7 @@ func (x *DeleteMappingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteMappingRequest.ProtoReflect.Descriptor instead. func (*DeleteMappingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{100} + return file_state_v1_state_proto_rawDescGZIP(), []int{105} } func (x *DeleteMappingRequest) GetId() int64 { @@ -5612,7 +5854,7 @@ type DeleteMappingResponse struct { func (x *DeleteMappingResponse) Reset() { *x = DeleteMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[101] + mi := &file_state_v1_state_proto_msgTypes[106] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5624,7 +5866,7 @@ func (x *DeleteMappingResponse) String() string { func (*DeleteMappingResponse) ProtoMessage() {} func (x *DeleteMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[101] + mi := &file_state_v1_state_proto_msgTypes[106] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5637,7 +5879,7 @@ func (x *DeleteMappingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteMappingResponse.ProtoReflect.Descriptor instead. func (*DeleteMappingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{101} + return file_state_v1_state_proto_rawDescGZIP(), []int{106} } type InsertBindingRequest struct { @@ -5649,7 +5891,7 @@ type InsertBindingRequest struct { func (x *InsertBindingRequest) Reset() { *x = InsertBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[102] + mi := &file_state_v1_state_proto_msgTypes[107] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5661,7 +5903,7 @@ func (x *InsertBindingRequest) String() string { func (*InsertBindingRequest) ProtoMessage() {} func (x *InsertBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[102] + mi := &file_state_v1_state_proto_msgTypes[107] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5674,7 +5916,7 @@ func (x *InsertBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertBindingRequest.ProtoReflect.Descriptor instead. func (*InsertBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{102} + return file_state_v1_state_proto_rawDescGZIP(), []int{107} } func (x *InsertBindingRequest) GetBinding() *Binding { @@ -5693,7 +5935,7 @@ type InsertBindingResponse struct { func (x *InsertBindingResponse) Reset() { *x = InsertBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[103] + mi := &file_state_v1_state_proto_msgTypes[108] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5705,7 +5947,7 @@ func (x *InsertBindingResponse) String() string { func (*InsertBindingResponse) ProtoMessage() {} func (x *InsertBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[103] + mi := &file_state_v1_state_proto_msgTypes[108] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5718,7 +5960,7 @@ func (x *InsertBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertBindingResponse.ProtoReflect.Descriptor instead. func (*InsertBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{103} + return file_state_v1_state_proto_rawDescGZIP(), []int{108} } func (x *InsertBindingResponse) GetId() int64 { @@ -5737,7 +5979,7 @@ type GetBindingRequest struct { func (x *GetBindingRequest) Reset() { *x = GetBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[104] + mi := &file_state_v1_state_proto_msgTypes[109] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5749,7 +5991,7 @@ func (x *GetBindingRequest) String() string { func (*GetBindingRequest) ProtoMessage() {} func (x *GetBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[104] + mi := &file_state_v1_state_proto_msgTypes[109] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5762,7 +6004,7 @@ func (x *GetBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBindingRequest.ProtoReflect.Descriptor instead. func (*GetBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{104} + return file_state_v1_state_proto_rawDescGZIP(), []int{109} } func (x *GetBindingRequest) GetId() int64 { @@ -5782,7 +6024,7 @@ type GetBindingResponse struct { func (x *GetBindingResponse) Reset() { *x = GetBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[105] + mi := &file_state_v1_state_proto_msgTypes[110] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5794,7 +6036,7 @@ func (x *GetBindingResponse) String() string { func (*GetBindingResponse) ProtoMessage() {} func (x *GetBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[105] + mi := &file_state_v1_state_proto_msgTypes[110] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5807,7 +6049,7 @@ func (x *GetBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBindingResponse.ProtoReflect.Descriptor instead. func (*GetBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{105} + return file_state_v1_state_proto_rawDescGZIP(), []int{110} } func (x *GetBindingResponse) GetBinding() *Binding { @@ -5832,7 +6074,7 @@ type ListBindingsRequest struct { func (x *ListBindingsRequest) Reset() { *x = ListBindingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[106] + mi := &file_state_v1_state_proto_msgTypes[111] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5844,7 +6086,7 @@ func (x *ListBindingsRequest) String() string { func (*ListBindingsRequest) ProtoMessage() {} func (x *ListBindingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[106] + mi := &file_state_v1_state_proto_msgTypes[111] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5857,7 +6099,7 @@ func (x *ListBindingsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListBindingsRequest.ProtoReflect.Descriptor instead. func (*ListBindingsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{106} + return file_state_v1_state_proto_rawDescGZIP(), []int{111} } type ListBindingsResponse struct { @@ -5869,7 +6111,7 @@ type ListBindingsResponse struct { func (x *ListBindingsResponse) Reset() { *x = ListBindingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[107] + mi := &file_state_v1_state_proto_msgTypes[112] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5881,7 +6123,7 @@ func (x *ListBindingsResponse) String() string { func (*ListBindingsResponse) ProtoMessage() {} func (x *ListBindingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[107] + mi := &file_state_v1_state_proto_msgTypes[112] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5894,7 +6136,7 @@ func (x *ListBindingsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListBindingsResponse.ProtoReflect.Descriptor instead. func (*ListBindingsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{107} + return file_state_v1_state_proto_rawDescGZIP(), []int{112} } func (x *ListBindingsResponse) GetBindings() []*Binding { @@ -5913,7 +6155,7 @@ type UpdateBindingRequest struct { func (x *UpdateBindingRequest) Reset() { *x = UpdateBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[108] + mi := &file_state_v1_state_proto_msgTypes[113] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5925,7 +6167,7 @@ func (x *UpdateBindingRequest) String() string { func (*UpdateBindingRequest) ProtoMessage() {} func (x *UpdateBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[108] + mi := &file_state_v1_state_proto_msgTypes[113] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5938,7 +6180,7 @@ func (x *UpdateBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateBindingRequest.ProtoReflect.Descriptor instead. func (*UpdateBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{108} + return file_state_v1_state_proto_rawDescGZIP(), []int{113} } func (x *UpdateBindingRequest) GetBinding() *Binding { @@ -5956,7 +6198,7 @@ type UpdateBindingResponse struct { func (x *UpdateBindingResponse) Reset() { *x = UpdateBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[109] + mi := &file_state_v1_state_proto_msgTypes[114] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5968,7 +6210,7 @@ func (x *UpdateBindingResponse) String() string { func (*UpdateBindingResponse) ProtoMessage() {} func (x *UpdateBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[109] + mi := &file_state_v1_state_proto_msgTypes[114] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5981,7 +6223,7 @@ func (x *UpdateBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateBindingResponse.ProtoReflect.Descriptor instead. func (*UpdateBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{109} + return file_state_v1_state_proto_rawDescGZIP(), []int{114} } type DeleteBindingRequest struct { @@ -5993,7 +6235,7 @@ type DeleteBindingRequest struct { func (x *DeleteBindingRequest) Reset() { *x = DeleteBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[110] + mi := &file_state_v1_state_proto_msgTypes[115] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6005,7 +6247,7 @@ func (x *DeleteBindingRequest) String() string { func (*DeleteBindingRequest) ProtoMessage() {} func (x *DeleteBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[110] + mi := &file_state_v1_state_proto_msgTypes[115] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6018,7 +6260,7 @@ func (x *DeleteBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteBindingRequest.ProtoReflect.Descriptor instead. func (*DeleteBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{110} + return file_state_v1_state_proto_rawDescGZIP(), []int{115} } func (x *DeleteBindingRequest) GetId() int64 { @@ -6036,7 +6278,7 @@ type DeleteBindingResponse struct { func (x *DeleteBindingResponse) Reset() { *x = DeleteBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[111] + mi := &file_state_v1_state_proto_msgTypes[116] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6048,7 +6290,7 @@ func (x *DeleteBindingResponse) String() string { func (*DeleteBindingResponse) ProtoMessage() {} func (x *DeleteBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[111] + mi := &file_state_v1_state_proto_msgTypes[116] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6061,7 +6303,7 @@ func (x *DeleteBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteBindingResponse.ProtoReflect.Descriptor instead. func (*DeleteBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{111} + return file_state_v1_state_proto_rawDescGZIP(), []int{116} } type ApproveBindingRequest struct { @@ -6073,7 +6315,7 @@ type ApproveBindingRequest struct { func (x *ApproveBindingRequest) Reset() { *x = ApproveBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[112] + mi := &file_state_v1_state_proto_msgTypes[117] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6085,7 +6327,7 @@ func (x *ApproveBindingRequest) String() string { func (*ApproveBindingRequest) ProtoMessage() {} func (x *ApproveBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[112] + mi := &file_state_v1_state_proto_msgTypes[117] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6098,7 +6340,7 @@ func (x *ApproveBindingRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ApproveBindingRequest.ProtoReflect.Descriptor instead. func (*ApproveBindingRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{112} + return file_state_v1_state_proto_rawDescGZIP(), []int{117} } func (x *ApproveBindingRequest) GetId() int64 { @@ -6116,7 +6358,7 @@ type ApproveBindingResponse struct { func (x *ApproveBindingResponse) Reset() { *x = ApproveBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[113] + mi := &file_state_v1_state_proto_msgTypes[118] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6128,7 +6370,7 @@ func (x *ApproveBindingResponse) String() string { func (*ApproveBindingResponse) ProtoMessage() {} func (x *ApproveBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[113] + mi := &file_state_v1_state_proto_msgTypes[118] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6141,7 +6383,7 @@ func (x *ApproveBindingResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ApproveBindingResponse.ProtoReflect.Descriptor instead. func (*ApproveBindingResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{113} + return file_state_v1_state_proto_rawDescGZIP(), []int{118} } type ArmedBindingsForSourceRequest struct { @@ -6153,7 +6395,7 @@ type ArmedBindingsForSourceRequest struct { func (x *ArmedBindingsForSourceRequest) Reset() { *x = ArmedBindingsForSourceRequest{} - mi := &file_state_v1_state_proto_msgTypes[114] + mi := &file_state_v1_state_proto_msgTypes[119] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6165,7 +6407,7 @@ func (x *ArmedBindingsForSourceRequest) String() string { func (*ArmedBindingsForSourceRequest) ProtoMessage() {} func (x *ArmedBindingsForSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[114] + mi := &file_state_v1_state_proto_msgTypes[119] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6178,7 +6420,7 @@ func (x *ArmedBindingsForSourceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ArmedBindingsForSourceRequest.ProtoReflect.Descriptor instead. func (*ArmedBindingsForSourceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{114} + return file_state_v1_state_proto_rawDescGZIP(), []int{119} } func (x *ArmedBindingsForSourceRequest) GetSource() string { @@ -6197,7 +6439,7 @@ type ArmedBindingsForSourceResponse struct { func (x *ArmedBindingsForSourceResponse) Reset() { *x = ArmedBindingsForSourceResponse{} - mi := &file_state_v1_state_proto_msgTypes[115] + mi := &file_state_v1_state_proto_msgTypes[120] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6209,7 +6451,7 @@ func (x *ArmedBindingsForSourceResponse) String() string { func (*ArmedBindingsForSourceResponse) ProtoMessage() {} func (x *ArmedBindingsForSourceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[115] + mi := &file_state_v1_state_proto_msgTypes[120] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6222,7 +6464,7 @@ func (x *ArmedBindingsForSourceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ArmedBindingsForSourceResponse.ProtoReflect.Descriptor instead. func (*ArmedBindingsForSourceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{115} + return file_state_v1_state_proto_rawDescGZIP(), []int{120} } func (x *ArmedBindingsForSourceResponse) GetBindings() []*Binding { @@ -6244,7 +6486,7 @@ type RecordDispatchRequest struct { func (x *RecordDispatchRequest) Reset() { *x = RecordDispatchRequest{} - mi := &file_state_v1_state_proto_msgTypes[116] + mi := &file_state_v1_state_proto_msgTypes[121] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6256,7 +6498,7 @@ func (x *RecordDispatchRequest) String() string { func (*RecordDispatchRequest) ProtoMessage() {} func (x *RecordDispatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[116] + mi := &file_state_v1_state_proto_msgTypes[121] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6269,7 +6511,7 @@ func (x *RecordDispatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDispatchRequest.ProtoReflect.Descriptor instead. func (*RecordDispatchRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{116} + return file_state_v1_state_proto_rawDescGZIP(), []int{121} } func (x *RecordDispatchRequest) GetBindingId() int64 { @@ -6308,7 +6550,7 @@ type RecordDispatchResponse struct { func (x *RecordDispatchResponse) Reset() { *x = RecordDispatchResponse{} - mi := &file_state_v1_state_proto_msgTypes[117] + mi := &file_state_v1_state_proto_msgTypes[122] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6320,7 +6562,7 @@ func (x *RecordDispatchResponse) String() string { func (*RecordDispatchResponse) ProtoMessage() {} func (x *RecordDispatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[117] + mi := &file_state_v1_state_proto_msgTypes[122] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6333,7 +6575,7 @@ func (x *RecordDispatchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDispatchResponse.ProtoReflect.Descriptor instead. func (*RecordDispatchResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{117} + return file_state_v1_state_proto_rawDescGZIP(), []int{122} } type ListUndispatchedCapturesRequest struct { @@ -6346,7 +6588,7 @@ type ListUndispatchedCapturesRequest struct { func (x *ListUndispatchedCapturesRequest) Reset() { *x = ListUndispatchedCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[118] + mi := &file_state_v1_state_proto_msgTypes[123] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6358,7 +6600,7 @@ func (x *ListUndispatchedCapturesRequest) String() string { func (*ListUndispatchedCapturesRequest) ProtoMessage() {} func (x *ListUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[118] + mi := &file_state_v1_state_proto_msgTypes[123] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6371,7 +6613,7 @@ func (x *ListUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListUndispatchedCapturesRequest.ProtoReflect.Descriptor instead. func (*ListUndispatchedCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{118} + return file_state_v1_state_proto_rawDescGZIP(), []int{123} } func (x *ListUndispatchedCapturesRequest) GetSources() []string { @@ -6397,7 +6639,7 @@ type ListUndispatchedCapturesResponse struct { func (x *ListUndispatchedCapturesResponse) Reset() { *x = ListUndispatchedCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[119] + mi := &file_state_v1_state_proto_msgTypes[124] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6409,7 +6651,7 @@ func (x *ListUndispatchedCapturesResponse) String() string { func (*ListUndispatchedCapturesResponse) ProtoMessage() {} func (x *ListUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[119] + mi := &file_state_v1_state_proto_msgTypes[124] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6422,7 +6664,7 @@ func (x *ListUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListUndispatchedCapturesResponse.ProtoReflect.Descriptor instead. func (*ListUndispatchedCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{119} + return file_state_v1_state_proto_rawDescGZIP(), []int{124} } func (x *ListUndispatchedCapturesResponse) GetCaptures() []*CapturedEvent { @@ -6442,7 +6684,7 @@ type StreamUndispatchedCapturesRequest struct { func (x *StreamUndispatchedCapturesRequest) Reset() { *x = StreamUndispatchedCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[120] + mi := &file_state_v1_state_proto_msgTypes[125] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6454,7 +6696,7 @@ func (x *StreamUndispatchedCapturesRequest) String() string { func (*StreamUndispatchedCapturesRequest) ProtoMessage() {} func (x *StreamUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[120] + mi := &file_state_v1_state_proto_msgTypes[125] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6467,7 +6709,7 @@ func (x *StreamUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message // Deprecated: Use StreamUndispatchedCapturesRequest.ProtoReflect.Descriptor instead. func (*StreamUndispatchedCapturesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{120} + return file_state_v1_state_proto_rawDescGZIP(), []int{125} } func (x *StreamUndispatchedCapturesRequest) GetSources() []string { @@ -6494,7 +6736,7 @@ type StreamUndispatchedCapturesResponse struct { func (x *StreamUndispatchedCapturesResponse) Reset() { *x = StreamUndispatchedCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[121] + mi := &file_state_v1_state_proto_msgTypes[126] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6506,7 +6748,7 @@ func (x *StreamUndispatchedCapturesResponse) String() string { func (*StreamUndispatchedCapturesResponse) ProtoMessage() {} func (x *StreamUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[121] + mi := &file_state_v1_state_proto_msgTypes[126] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6519,7 +6761,7 @@ func (x *StreamUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message // Deprecated: Use StreamUndispatchedCapturesResponse.ProtoReflect.Descriptor instead. func (*StreamUndispatchedCapturesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{121} + return file_state_v1_state_proto_rawDescGZIP(), []int{126} } func (x *StreamUndispatchedCapturesResponse) GetCapture() *CapturedEvent { @@ -6545,7 +6787,7 @@ type EnqueueBindingTaskRequest struct { func (x *EnqueueBindingTaskRequest) Reset() { *x = EnqueueBindingTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[122] + mi := &file_state_v1_state_proto_msgTypes[127] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6557,7 +6799,7 @@ func (x *EnqueueBindingTaskRequest) String() string { func (*EnqueueBindingTaskRequest) ProtoMessage() {} func (x *EnqueueBindingTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[122] + mi := &file_state_v1_state_proto_msgTypes[127] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6570,7 +6812,7 @@ func (x *EnqueueBindingTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueBindingTaskRequest.ProtoReflect.Descriptor instead. func (*EnqueueBindingTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{122} + return file_state_v1_state_proto_rawDescGZIP(), []int{127} } func (x *EnqueueBindingTaskRequest) GetOwner() string { @@ -6638,7 +6880,7 @@ type EnqueueBindingTaskResponse struct { func (x *EnqueueBindingTaskResponse) Reset() { *x = EnqueueBindingTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[123] + mi := &file_state_v1_state_proto_msgTypes[128] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6650,7 +6892,7 @@ func (x *EnqueueBindingTaskResponse) String() string { func (*EnqueueBindingTaskResponse) ProtoMessage() {} func (x *EnqueueBindingTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[123] + mi := &file_state_v1_state_proto_msgTypes[128] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6663,7 +6905,7 @@ func (x *EnqueueBindingTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueBindingTaskResponse.ProtoReflect.Descriptor instead. func (*EnqueueBindingTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{123} + return file_state_v1_state_proto_rawDescGZIP(), []int{128} } func (x *EnqueueBindingTaskResponse) GetTask() *Task { @@ -6985,7 +7227,20 @@ const file_state_v1_state_proto_rawDesc = "" + "\x18GetConfigSnapshotRequest\"g\n" + "\x19GetConfigSnapshotResponse\x124\n" + "\bsnapshot\x18\x01 \x01(\v2\x18.state.v1.ConfigSnapshotR\bsnapshot\x12\x14\n" + - "\x05found\x18\x02 \x01(\bR\x05found\"\x97\x01\n" + + "\x05found\x18\x02 \x01(\bR\x05found\"\xb7\x01\n" + + "\vApplyStatus\x12\x18\n" + + "\aprocess\x18\x01 \x01(\tR\aprocess\x12\x12\n" + + "\x04kind\x18\x02 \x01(\tR\x04kind\x12'\n" + + "\x0fapplied_version\x18\x03 \x01(\x03R\x0eappliedVersion\x12\x14\n" + + "\x05error\x18\x04 \x01(\tR\x05error\x12;\n" + + "\vreported_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "reportedAt\"F\n" + + "\x15PutApplyStatusRequest\x12-\n" + + "\x06status\x18\x01 \x01(\v2\x15.state.v1.ApplyStatusR\x06status\"\x18\n" + + "\x16PutApplyStatusResponse\"\x18\n" + + "\x16ListApplyStatusRequest\"L\n" + + "\x17ListApplyStatusResponse\x121\n" + + "\bstatuses\x18\x01 \x03(\v2\x15.state.v1.ApplyStatusR\bstatuses\"\x97\x01\n" + "\fTaskLogEntry\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12.\n" + "\x04time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x04time\x12\x14\n" + @@ -7106,7 +7361,7 @@ const file_state_v1_state_proto_rawDesc = "" + "binding_id\x18\a \x01(\x03R\tbindingId\x12'\n" + "\x0fbinding_version\x18\b \x01(\x03R\x0ebindingVersion\"@\n" + "\x1aEnqueueBindingTaskResponse\x12\"\n" + - "\x04task\x18\x01 \x01(\v2\x0e.state.v1.TaskR\x04task2\xca#\n" + + "\x04task\x18\x01 \x01(\v2\x0e.state.v1.TaskR\x04task2\xf7$\n" + "\x11StateStoreService\x12\\\n" + "\x11RegisterTaskGrant\x12\".state.v1.RegisterTaskGrantRequest\x1a#.state.v1.RegisterTaskGrantResponse\x12V\n" + "\x0fRevokeTaskGrant\x12 .state.v1.RevokeTaskGrantRequest\x1a!.state.v1.RevokeTaskGrantResponse\x12S\n" + @@ -7144,7 +7399,9 @@ const file_state_v1_state_proto_rawDesc = "" + "StageStats\x12\x1b.state.v1.StageStatsRequest\x1a\x1c.state.v1.StageStatsResponse\x12J\n" + "\vTokensByDay\x12\x1c.state.v1.TokensByDayRequest\x1a\x1d.state.v1.TokensByDayResponse\x12\\\n" + "\x11PutConfigSnapshot\x12\".state.v1.PutConfigSnapshotRequest\x1a#.state.v1.PutConfigSnapshotResponse\x12\\\n" + - "\x11GetConfigSnapshot\x12\".state.v1.GetConfigSnapshotRequest\x1a#.state.v1.GetConfigSnapshotResponse\x12J\n" + + "\x11GetConfigSnapshot\x12\".state.v1.GetConfigSnapshotRequest\x1a#.state.v1.GetConfigSnapshotResponse\x12S\n" + + "\x0ePutApplyStatus\x12\x1f.state.v1.PutApplyStatusRequest\x1a .state.v1.PutApplyStatusResponse\x12V\n" + + "\x0fListApplyStatus\x12 .state.v1.ListApplyStatusRequest\x1a!.state.v1.ListApplyStatusResponse\x12J\n" + "\vReadTaskLog\x12\x1c.state.v1.ReadTaskLogRequest\x1a\x1d.state.v1.ReadTaskLogResponse\x12g\n" + "\x14StreamTaskLogContent\x12%.state.v1.StreamTaskLogContentRequest\x1a&.state.v1.StreamTaskLogContentResponse0\x01\x12P\n" + "\rInsertCapture\x12\x1e.state.v1.InsertCaptureRequest\x1a\x1f.state.v1.InsertCaptureResponse\x12R\n" + @@ -7183,7 +7440,7 @@ func file_state_v1_state_proto_rawDescGZIP() []byte { return file_state_v1_state_proto_rawDescData } -var file_state_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 125) +var file_state_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 130) var file_state_v1_state_proto_goTypes = []any{ (*RegisterTaskGrantRequest)(nil), // 0: state.v1.RegisterTaskGrantRequest (*RegisterTaskGrantResponse)(nil), // 1: state.v1.RegisterTaskGrantResponse @@ -7266,55 +7523,60 @@ var file_state_v1_state_proto_goTypes = []any{ (*PutConfigSnapshotResponse)(nil), // 78: state.v1.PutConfigSnapshotResponse (*GetConfigSnapshotRequest)(nil), // 79: state.v1.GetConfigSnapshotRequest (*GetConfigSnapshotResponse)(nil), // 80: state.v1.GetConfigSnapshotResponse - (*TaskLogEntry)(nil), // 81: state.v1.TaskLogEntry - (*ReadTaskLogRequest)(nil), // 82: state.v1.ReadTaskLogRequest - (*ReadTaskLogResponse)(nil), // 83: state.v1.ReadTaskLogResponse - (*StreamTaskLogContentRequest)(nil), // 84: state.v1.StreamTaskLogContentRequest - (*StreamTaskLogContentResponse)(nil), // 85: state.v1.StreamTaskLogContentResponse - (*InsertCaptureRequest)(nil), // 86: state.v1.InsertCaptureRequest - (*InsertCaptureResponse)(nil), // 87: state.v1.InsertCaptureResponse - (*ListCapturesRequest)(nil), // 88: state.v1.ListCapturesRequest - (*ListCapturesResponse)(nil), // 89: state.v1.ListCapturesResponse - (*StreamCapturesRequest)(nil), // 90: state.v1.StreamCapturesRequest - (*StreamCapturesResponse)(nil), // 91: state.v1.StreamCapturesResponse - (*InsertMappingRequest)(nil), // 92: state.v1.InsertMappingRequest - (*InsertMappingResponse)(nil), // 93: state.v1.InsertMappingResponse - (*GetMappingRequest)(nil), // 94: state.v1.GetMappingRequest - (*GetMappingResponse)(nil), // 95: state.v1.GetMappingResponse - (*ListMappingsRequest)(nil), // 96: state.v1.ListMappingsRequest - (*ListMappingsResponse)(nil), // 97: state.v1.ListMappingsResponse - (*UpdateMappingRequest)(nil), // 98: state.v1.UpdateMappingRequest - (*UpdateMappingResponse)(nil), // 99: state.v1.UpdateMappingResponse - (*DeleteMappingRequest)(nil), // 100: state.v1.DeleteMappingRequest - (*DeleteMappingResponse)(nil), // 101: state.v1.DeleteMappingResponse - (*InsertBindingRequest)(nil), // 102: state.v1.InsertBindingRequest - (*InsertBindingResponse)(nil), // 103: state.v1.InsertBindingResponse - (*GetBindingRequest)(nil), // 104: state.v1.GetBindingRequest - (*GetBindingResponse)(nil), // 105: state.v1.GetBindingResponse - (*ListBindingsRequest)(nil), // 106: state.v1.ListBindingsRequest - (*ListBindingsResponse)(nil), // 107: state.v1.ListBindingsResponse - (*UpdateBindingRequest)(nil), // 108: state.v1.UpdateBindingRequest - (*UpdateBindingResponse)(nil), // 109: state.v1.UpdateBindingResponse - (*DeleteBindingRequest)(nil), // 110: state.v1.DeleteBindingRequest - (*DeleteBindingResponse)(nil), // 111: state.v1.DeleteBindingResponse - (*ApproveBindingRequest)(nil), // 112: state.v1.ApproveBindingRequest - (*ApproveBindingResponse)(nil), // 113: state.v1.ApproveBindingResponse - (*ArmedBindingsForSourceRequest)(nil), // 114: state.v1.ArmedBindingsForSourceRequest - (*ArmedBindingsForSourceResponse)(nil), // 115: state.v1.ArmedBindingsForSourceResponse - (*RecordDispatchRequest)(nil), // 116: state.v1.RecordDispatchRequest - (*RecordDispatchResponse)(nil), // 117: state.v1.RecordDispatchResponse - (*ListUndispatchedCapturesRequest)(nil), // 118: state.v1.ListUndispatchedCapturesRequest - (*ListUndispatchedCapturesResponse)(nil), // 119: state.v1.ListUndispatchedCapturesResponse - (*StreamUndispatchedCapturesRequest)(nil), // 120: state.v1.StreamUndispatchedCapturesRequest - (*StreamUndispatchedCapturesResponse)(nil), // 121: state.v1.StreamUndispatchedCapturesResponse - (*EnqueueBindingTaskRequest)(nil), // 122: state.v1.EnqueueBindingTaskRequest - (*EnqueueBindingTaskResponse)(nil), // 123: state.v1.EnqueueBindingTaskResponse - nil, // 124: state.v1.StatusCountsResponse.CountsEntry - (*timestamppb.Timestamp)(nil), // 125: google.protobuf.Timestamp + (*ApplyStatus)(nil), // 81: state.v1.ApplyStatus + (*PutApplyStatusRequest)(nil), // 82: state.v1.PutApplyStatusRequest + (*PutApplyStatusResponse)(nil), // 83: state.v1.PutApplyStatusResponse + (*ListApplyStatusRequest)(nil), // 84: state.v1.ListApplyStatusRequest + (*ListApplyStatusResponse)(nil), // 85: state.v1.ListApplyStatusResponse + (*TaskLogEntry)(nil), // 86: state.v1.TaskLogEntry + (*ReadTaskLogRequest)(nil), // 87: state.v1.ReadTaskLogRequest + (*ReadTaskLogResponse)(nil), // 88: state.v1.ReadTaskLogResponse + (*StreamTaskLogContentRequest)(nil), // 89: state.v1.StreamTaskLogContentRequest + (*StreamTaskLogContentResponse)(nil), // 90: state.v1.StreamTaskLogContentResponse + (*InsertCaptureRequest)(nil), // 91: state.v1.InsertCaptureRequest + (*InsertCaptureResponse)(nil), // 92: state.v1.InsertCaptureResponse + (*ListCapturesRequest)(nil), // 93: state.v1.ListCapturesRequest + (*ListCapturesResponse)(nil), // 94: state.v1.ListCapturesResponse + (*StreamCapturesRequest)(nil), // 95: state.v1.StreamCapturesRequest + (*StreamCapturesResponse)(nil), // 96: state.v1.StreamCapturesResponse + (*InsertMappingRequest)(nil), // 97: state.v1.InsertMappingRequest + (*InsertMappingResponse)(nil), // 98: state.v1.InsertMappingResponse + (*GetMappingRequest)(nil), // 99: state.v1.GetMappingRequest + (*GetMappingResponse)(nil), // 100: state.v1.GetMappingResponse + (*ListMappingsRequest)(nil), // 101: state.v1.ListMappingsRequest + (*ListMappingsResponse)(nil), // 102: state.v1.ListMappingsResponse + (*UpdateMappingRequest)(nil), // 103: state.v1.UpdateMappingRequest + (*UpdateMappingResponse)(nil), // 104: state.v1.UpdateMappingResponse + (*DeleteMappingRequest)(nil), // 105: state.v1.DeleteMappingRequest + (*DeleteMappingResponse)(nil), // 106: state.v1.DeleteMappingResponse + (*InsertBindingRequest)(nil), // 107: state.v1.InsertBindingRequest + (*InsertBindingResponse)(nil), // 108: state.v1.InsertBindingResponse + (*GetBindingRequest)(nil), // 109: state.v1.GetBindingRequest + (*GetBindingResponse)(nil), // 110: state.v1.GetBindingResponse + (*ListBindingsRequest)(nil), // 111: state.v1.ListBindingsRequest + (*ListBindingsResponse)(nil), // 112: state.v1.ListBindingsResponse + (*UpdateBindingRequest)(nil), // 113: state.v1.UpdateBindingRequest + (*UpdateBindingResponse)(nil), // 114: state.v1.UpdateBindingResponse + (*DeleteBindingRequest)(nil), // 115: state.v1.DeleteBindingRequest + (*DeleteBindingResponse)(nil), // 116: state.v1.DeleteBindingResponse + (*ApproveBindingRequest)(nil), // 117: state.v1.ApproveBindingRequest + (*ApproveBindingResponse)(nil), // 118: state.v1.ApproveBindingResponse + (*ArmedBindingsForSourceRequest)(nil), // 119: state.v1.ArmedBindingsForSourceRequest + (*ArmedBindingsForSourceResponse)(nil), // 120: state.v1.ArmedBindingsForSourceResponse + (*RecordDispatchRequest)(nil), // 121: state.v1.RecordDispatchRequest + (*RecordDispatchResponse)(nil), // 122: state.v1.RecordDispatchResponse + (*ListUndispatchedCapturesRequest)(nil), // 123: state.v1.ListUndispatchedCapturesRequest + (*ListUndispatchedCapturesResponse)(nil), // 124: state.v1.ListUndispatchedCapturesResponse + (*StreamUndispatchedCapturesRequest)(nil), // 125: state.v1.StreamUndispatchedCapturesRequest + (*StreamUndispatchedCapturesResponse)(nil), // 126: state.v1.StreamUndispatchedCapturesResponse + (*EnqueueBindingTaskRequest)(nil), // 127: state.v1.EnqueueBindingTaskRequest + (*EnqueueBindingTaskResponse)(nil), // 128: state.v1.EnqueueBindingTaskResponse + nil, // 129: state.v1.StatusCountsResponse.CountsEntry + (*timestamppb.Timestamp)(nil), // 130: google.protobuf.Timestamp } var file_state_v1_state_proto_depIdxs = []int32{ - 125, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp - 125, // 1: state.v1.Identity.updated_at:type_name -> google.protobuf.Timestamp + 130, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp + 130, // 1: state.v1.Identity.updated_at:type_name -> google.protobuf.Timestamp 4, // 2: state.v1.ListIdentitiesResponse.identities:type_name -> state.v1.Identity 4, // 3: state.v1.GetIdentityResponse.identity:type_name -> state.v1.Identity 5, // 4: state.v1.CreateIdentityRequest.audit:type_name -> state.v1.IdentityAudit @@ -7327,16 +7589,16 @@ var file_state_v1_state_proto_depIdxs = []int32{ 4, // 11: state.v1.SuspendIdentityResponse.identity:type_name -> state.v1.Identity 4, // 12: state.v1.ReactivateIdentityResponse.identity:type_name -> state.v1.Identity 4, // 13: state.v1.RetireIdentityResponse.identity:type_name -> state.v1.Identity - 125, // 14: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp - 125, // 15: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp - 125, // 16: state.v1.Event.at:type_name -> google.protobuf.Timestamp - 125, // 17: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp + 130, // 14: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp + 130, // 15: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp + 130, // 16: state.v1.Event.at:type_name -> google.protobuf.Timestamp + 130, // 17: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp 23, // 18: state.v1.Mapping.fields:type_name -> state.v1.MappingField - 125, // 19: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp - 125, // 20: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp + 130, // 19: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp + 130, // 20: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp 25, // 21: state.v1.Binding.matcher:type_name -> state.v1.BindingMatcher - 125, // 22: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp - 125, // 23: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp + 130, // 22: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp + 130, // 23: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp 20, // 24: state.v1.EnqueueChatTaskResponse.task:type_name -> state.v1.Task 20, // 25: state.v1.ClaimNextResponse.task:type_name -> state.v1.Task 20, // 26: state.v1.ClaimByIssueResponse.task:type_name -> state.v1.Task @@ -7347,150 +7609,157 @@ var file_state_v1_state_proto_depIdxs = []int32{ 20, // 31: state.v1.TaskByIDResponse.task:type_name -> state.v1.Task 20, // 32: state.v1.OpenPRsResponse.tasks:type_name -> state.v1.Task 20, // 33: state.v1.TasksResponse.tasks:type_name -> state.v1.Task - 124, // 34: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry + 129, // 34: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry 21, // 35: state.v1.InsertEventRequest.event:type_name -> state.v1.Event 21, // 36: state.v1.EventsSinceResponse.events:type_name -> state.v1.Event 21, // 37: state.v1.TaskEventsResponse.events:type_name -> state.v1.Event 27, // 38: state.v1.WorkflowStatsResponse.stats:type_name -> state.v1.WorkflowStat 28, // 39: state.v1.StageStatsResponse.stats:type_name -> state.v1.StageStat 29, // 40: state.v1.TokensByDayResponse.tokens:type_name -> state.v1.DayTokens - 125, // 41: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp + 130, // 41: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp 76, // 42: state.v1.PutConfigSnapshotRequest.snapshot:type_name -> state.v1.ConfigSnapshot 76, // 43: state.v1.GetConfigSnapshotResponse.snapshot:type_name -> state.v1.ConfigSnapshot - 125, // 44: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp - 125, // 45: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp - 125, // 46: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp - 81, // 47: state.v1.ReadTaskLogResponse.entries:type_name -> state.v1.TaskLogEntry - 22, // 48: state.v1.InsertCaptureRequest.capture:type_name -> state.v1.CapturedEvent - 22, // 49: state.v1.ListCapturesResponse.captures:type_name -> state.v1.CapturedEvent - 22, // 50: state.v1.StreamCapturesResponse.capture:type_name -> state.v1.CapturedEvent - 24, // 51: state.v1.InsertMappingRequest.mapping:type_name -> state.v1.Mapping - 24, // 52: state.v1.GetMappingResponse.mapping:type_name -> state.v1.Mapping - 24, // 53: state.v1.ListMappingsResponse.mappings:type_name -> state.v1.Mapping - 24, // 54: state.v1.UpdateMappingRequest.mapping:type_name -> state.v1.Mapping - 26, // 55: state.v1.InsertBindingRequest.binding:type_name -> state.v1.Binding - 26, // 56: state.v1.GetBindingResponse.binding:type_name -> state.v1.Binding - 26, // 57: state.v1.ListBindingsResponse.bindings:type_name -> state.v1.Binding - 26, // 58: state.v1.UpdateBindingRequest.binding:type_name -> state.v1.Binding - 26, // 59: state.v1.ArmedBindingsForSourceResponse.bindings:type_name -> state.v1.Binding - 22, // 60: state.v1.ListUndispatchedCapturesResponse.captures:type_name -> state.v1.CapturedEvent - 22, // 61: state.v1.StreamUndispatchedCapturesResponse.capture:type_name -> state.v1.CapturedEvent - 20, // 62: state.v1.EnqueueBindingTaskResponse.task:type_name -> state.v1.Task - 0, // 63: state.v1.StateStoreService.RegisterTaskGrant:input_type -> state.v1.RegisterTaskGrantRequest - 2, // 64: state.v1.StateStoreService.RevokeTaskGrant:input_type -> state.v1.RevokeTaskGrantRequest - 6, // 65: state.v1.StateStoreService.ListIdentities:input_type -> state.v1.ListIdentitiesRequest - 8, // 66: state.v1.StateStoreService.GetIdentity:input_type -> state.v1.GetIdentityRequest - 10, // 67: state.v1.StateStoreService.CreateIdentity:input_type -> state.v1.CreateIdentityRequest - 11, // 68: state.v1.StateStoreService.RenameIdentity:input_type -> state.v1.RenameIdentityRequest - 12, // 69: state.v1.StateStoreService.SuspendIdentity:input_type -> state.v1.SuspendIdentityRequest - 13, // 70: state.v1.StateStoreService.ReactivateIdentity:input_type -> state.v1.ReactivateIdentityRequest - 14, // 71: state.v1.StateStoreService.RetireIdentity:input_type -> state.v1.RetireIdentityRequest - 30, // 72: state.v1.StateStoreService.EnqueueIssue:input_type -> state.v1.EnqueueIssueRequest - 32, // 73: state.v1.StateStoreService.EnqueueChatTask:input_type -> state.v1.EnqueueChatTaskRequest - 34, // 74: state.v1.StateStoreService.ClaimNext:input_type -> state.v1.ClaimNextRequest - 36, // 75: state.v1.StateStoreService.ClaimByIssue:input_type -> state.v1.ClaimByIssueRequest - 38, // 76: state.v1.StateStoreService.Transition:input_type -> state.v1.TransitionRequest - 40, // 77: state.v1.StateStoreService.Update:input_type -> state.v1.UpdateRequest - 42, // 78: state.v1.StateStoreService.Requeue:input_type -> state.v1.RequeueRequest - 44, // 79: state.v1.StateStoreService.RecoverStale:input_type -> state.v1.RecoverStaleRequest - 46, // 80: state.v1.StateStoreService.ArchiveTask:input_type -> state.v1.ArchiveTaskRequest - 48, // 81: state.v1.StateStoreService.RetryTask:input_type -> state.v1.RetryTaskRequest - 50, // 82: state.v1.StateStoreService.TaskByIssue:input_type -> state.v1.TaskByIssueRequest - 52, // 83: state.v1.StateStoreService.OpenTaskByPR:input_type -> state.v1.OpenTaskByPRRequest - 54, // 84: state.v1.StateStoreService.TaskByID:input_type -> state.v1.TaskByIDRequest - 56, // 85: state.v1.StateStoreService.OpenPRs:input_type -> state.v1.OpenPRsRequest - 58, // 86: state.v1.StateStoreService.ClearTerminalTasks:input_type -> state.v1.ClearTerminalTasksRequest - 60, // 87: state.v1.StateStoreService.Tasks:input_type -> state.v1.TasksRequest - 62, // 88: state.v1.StateStoreService.StatusCounts:input_type -> state.v1.StatusCountsRequest - 64, // 89: state.v1.StateStoreService.InsertEvent:input_type -> state.v1.InsertEventRequest - 66, // 90: state.v1.StateStoreService.EventsSince:input_type -> state.v1.EventsSinceRequest - 68, // 91: state.v1.StateStoreService.TaskEvents:input_type -> state.v1.TaskEventsRequest - 70, // 92: state.v1.StateStoreService.WorkflowStats:input_type -> state.v1.WorkflowStatsRequest - 72, // 93: state.v1.StateStoreService.StageStats:input_type -> state.v1.StageStatsRequest - 74, // 94: state.v1.StateStoreService.TokensByDay:input_type -> state.v1.TokensByDayRequest - 77, // 95: state.v1.StateStoreService.PutConfigSnapshot:input_type -> state.v1.PutConfigSnapshotRequest - 79, // 96: state.v1.StateStoreService.GetConfigSnapshot:input_type -> state.v1.GetConfigSnapshotRequest - 82, // 97: state.v1.StateStoreService.ReadTaskLog:input_type -> state.v1.ReadTaskLogRequest - 84, // 98: state.v1.StateStoreService.StreamTaskLogContent:input_type -> state.v1.StreamTaskLogContentRequest - 86, // 99: state.v1.StateStoreService.InsertCapture:input_type -> state.v1.InsertCaptureRequest - 88, // 100: state.v1.StateStoreService.ListCaptures:input_type -> state.v1.ListCapturesRequest - 90, // 101: state.v1.StateStoreService.StreamCaptures:input_type -> state.v1.StreamCapturesRequest - 92, // 102: state.v1.StateStoreService.InsertMapping:input_type -> state.v1.InsertMappingRequest - 94, // 103: state.v1.StateStoreService.GetMapping:input_type -> state.v1.GetMappingRequest - 96, // 104: state.v1.StateStoreService.ListMappings:input_type -> state.v1.ListMappingsRequest - 98, // 105: state.v1.StateStoreService.UpdateMapping:input_type -> state.v1.UpdateMappingRequest - 100, // 106: state.v1.StateStoreService.DeleteMapping:input_type -> state.v1.DeleteMappingRequest - 102, // 107: state.v1.StateStoreService.InsertBinding:input_type -> state.v1.InsertBindingRequest - 104, // 108: state.v1.StateStoreService.GetBinding:input_type -> state.v1.GetBindingRequest - 106, // 109: state.v1.StateStoreService.ListBindings:input_type -> state.v1.ListBindingsRequest - 108, // 110: state.v1.StateStoreService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest - 110, // 111: state.v1.StateStoreService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest - 112, // 112: state.v1.StateStoreService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest - 114, // 113: state.v1.StateStoreService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest - 116, // 114: state.v1.StateStoreService.RecordDispatch:input_type -> state.v1.RecordDispatchRequest - 118, // 115: state.v1.StateStoreService.ListUndispatchedCaptures:input_type -> state.v1.ListUndispatchedCapturesRequest - 120, // 116: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest - 122, // 117: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest - 1, // 118: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse - 3, // 119: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse - 7, // 120: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse - 9, // 121: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse - 15, // 122: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse - 16, // 123: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse - 17, // 124: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse - 18, // 125: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse - 19, // 126: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse - 31, // 127: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse - 33, // 128: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse - 35, // 129: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse - 37, // 130: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse - 39, // 131: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse - 41, // 132: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse - 43, // 133: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse - 45, // 134: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse - 47, // 135: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse - 49, // 136: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse - 51, // 137: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse - 53, // 138: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse - 55, // 139: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse - 57, // 140: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse - 59, // 141: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse - 61, // 142: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse - 63, // 143: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse - 65, // 144: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse - 67, // 145: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse - 69, // 146: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse - 71, // 147: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse - 73, // 148: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse - 75, // 149: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse - 78, // 150: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse - 80, // 151: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse - 83, // 152: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse - 85, // 153: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse - 87, // 154: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse - 89, // 155: state.v1.StateStoreService.ListCaptures:output_type -> state.v1.ListCapturesResponse - 91, // 156: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse - 93, // 157: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse - 95, // 158: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse - 97, // 159: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse - 99, // 160: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse - 101, // 161: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse - 103, // 162: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse - 105, // 163: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse - 107, // 164: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse - 109, // 165: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse - 111, // 166: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse - 113, // 167: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse - 115, // 168: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse - 117, // 169: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse - 119, // 170: state.v1.StateStoreService.ListUndispatchedCaptures:output_type -> state.v1.ListUndispatchedCapturesResponse - 121, // 171: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse - 123, // 172: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse - 118, // [118:173] is the sub-list for method output_type - 63, // [63:118] is the sub-list for method input_type - 63, // [63:63] is the sub-list for extension type_name - 63, // [63:63] is the sub-list for extension extendee - 0, // [0:63] is the sub-list for field type_name + 130, // 44: state.v1.ApplyStatus.reported_at:type_name -> google.protobuf.Timestamp + 81, // 45: state.v1.PutApplyStatusRequest.status:type_name -> state.v1.ApplyStatus + 81, // 46: state.v1.ListApplyStatusResponse.statuses:type_name -> state.v1.ApplyStatus + 130, // 47: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp + 130, // 48: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp + 130, // 49: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp + 86, // 50: state.v1.ReadTaskLogResponse.entries:type_name -> state.v1.TaskLogEntry + 22, // 51: state.v1.InsertCaptureRequest.capture:type_name -> state.v1.CapturedEvent + 22, // 52: state.v1.ListCapturesResponse.captures:type_name -> state.v1.CapturedEvent + 22, // 53: state.v1.StreamCapturesResponse.capture:type_name -> state.v1.CapturedEvent + 24, // 54: state.v1.InsertMappingRequest.mapping:type_name -> state.v1.Mapping + 24, // 55: state.v1.GetMappingResponse.mapping:type_name -> state.v1.Mapping + 24, // 56: state.v1.ListMappingsResponse.mappings:type_name -> state.v1.Mapping + 24, // 57: state.v1.UpdateMappingRequest.mapping:type_name -> state.v1.Mapping + 26, // 58: state.v1.InsertBindingRequest.binding:type_name -> state.v1.Binding + 26, // 59: state.v1.GetBindingResponse.binding:type_name -> state.v1.Binding + 26, // 60: state.v1.ListBindingsResponse.bindings:type_name -> state.v1.Binding + 26, // 61: state.v1.UpdateBindingRequest.binding:type_name -> state.v1.Binding + 26, // 62: state.v1.ArmedBindingsForSourceResponse.bindings:type_name -> state.v1.Binding + 22, // 63: state.v1.ListUndispatchedCapturesResponse.captures:type_name -> state.v1.CapturedEvent + 22, // 64: state.v1.StreamUndispatchedCapturesResponse.capture:type_name -> state.v1.CapturedEvent + 20, // 65: state.v1.EnqueueBindingTaskResponse.task:type_name -> state.v1.Task + 0, // 66: state.v1.StateStoreService.RegisterTaskGrant:input_type -> state.v1.RegisterTaskGrantRequest + 2, // 67: state.v1.StateStoreService.RevokeTaskGrant:input_type -> state.v1.RevokeTaskGrantRequest + 6, // 68: state.v1.StateStoreService.ListIdentities:input_type -> state.v1.ListIdentitiesRequest + 8, // 69: state.v1.StateStoreService.GetIdentity:input_type -> state.v1.GetIdentityRequest + 10, // 70: state.v1.StateStoreService.CreateIdentity:input_type -> state.v1.CreateIdentityRequest + 11, // 71: state.v1.StateStoreService.RenameIdentity:input_type -> state.v1.RenameIdentityRequest + 12, // 72: state.v1.StateStoreService.SuspendIdentity:input_type -> state.v1.SuspendIdentityRequest + 13, // 73: state.v1.StateStoreService.ReactivateIdentity:input_type -> state.v1.ReactivateIdentityRequest + 14, // 74: state.v1.StateStoreService.RetireIdentity:input_type -> state.v1.RetireIdentityRequest + 30, // 75: state.v1.StateStoreService.EnqueueIssue:input_type -> state.v1.EnqueueIssueRequest + 32, // 76: state.v1.StateStoreService.EnqueueChatTask:input_type -> state.v1.EnqueueChatTaskRequest + 34, // 77: state.v1.StateStoreService.ClaimNext:input_type -> state.v1.ClaimNextRequest + 36, // 78: state.v1.StateStoreService.ClaimByIssue:input_type -> state.v1.ClaimByIssueRequest + 38, // 79: state.v1.StateStoreService.Transition:input_type -> state.v1.TransitionRequest + 40, // 80: state.v1.StateStoreService.Update:input_type -> state.v1.UpdateRequest + 42, // 81: state.v1.StateStoreService.Requeue:input_type -> state.v1.RequeueRequest + 44, // 82: state.v1.StateStoreService.RecoverStale:input_type -> state.v1.RecoverStaleRequest + 46, // 83: state.v1.StateStoreService.ArchiveTask:input_type -> state.v1.ArchiveTaskRequest + 48, // 84: state.v1.StateStoreService.RetryTask:input_type -> state.v1.RetryTaskRequest + 50, // 85: state.v1.StateStoreService.TaskByIssue:input_type -> state.v1.TaskByIssueRequest + 52, // 86: state.v1.StateStoreService.OpenTaskByPR:input_type -> state.v1.OpenTaskByPRRequest + 54, // 87: state.v1.StateStoreService.TaskByID:input_type -> state.v1.TaskByIDRequest + 56, // 88: state.v1.StateStoreService.OpenPRs:input_type -> state.v1.OpenPRsRequest + 58, // 89: state.v1.StateStoreService.ClearTerminalTasks:input_type -> state.v1.ClearTerminalTasksRequest + 60, // 90: state.v1.StateStoreService.Tasks:input_type -> state.v1.TasksRequest + 62, // 91: state.v1.StateStoreService.StatusCounts:input_type -> state.v1.StatusCountsRequest + 64, // 92: state.v1.StateStoreService.InsertEvent:input_type -> state.v1.InsertEventRequest + 66, // 93: state.v1.StateStoreService.EventsSince:input_type -> state.v1.EventsSinceRequest + 68, // 94: state.v1.StateStoreService.TaskEvents:input_type -> state.v1.TaskEventsRequest + 70, // 95: state.v1.StateStoreService.WorkflowStats:input_type -> state.v1.WorkflowStatsRequest + 72, // 96: state.v1.StateStoreService.StageStats:input_type -> state.v1.StageStatsRequest + 74, // 97: state.v1.StateStoreService.TokensByDay:input_type -> state.v1.TokensByDayRequest + 77, // 98: state.v1.StateStoreService.PutConfigSnapshot:input_type -> state.v1.PutConfigSnapshotRequest + 79, // 99: state.v1.StateStoreService.GetConfigSnapshot:input_type -> state.v1.GetConfigSnapshotRequest + 82, // 100: state.v1.StateStoreService.PutApplyStatus:input_type -> state.v1.PutApplyStatusRequest + 84, // 101: state.v1.StateStoreService.ListApplyStatus:input_type -> state.v1.ListApplyStatusRequest + 87, // 102: state.v1.StateStoreService.ReadTaskLog:input_type -> state.v1.ReadTaskLogRequest + 89, // 103: state.v1.StateStoreService.StreamTaskLogContent:input_type -> state.v1.StreamTaskLogContentRequest + 91, // 104: state.v1.StateStoreService.InsertCapture:input_type -> state.v1.InsertCaptureRequest + 93, // 105: state.v1.StateStoreService.ListCaptures:input_type -> state.v1.ListCapturesRequest + 95, // 106: state.v1.StateStoreService.StreamCaptures:input_type -> state.v1.StreamCapturesRequest + 97, // 107: state.v1.StateStoreService.InsertMapping:input_type -> state.v1.InsertMappingRequest + 99, // 108: state.v1.StateStoreService.GetMapping:input_type -> state.v1.GetMappingRequest + 101, // 109: state.v1.StateStoreService.ListMappings:input_type -> state.v1.ListMappingsRequest + 103, // 110: state.v1.StateStoreService.UpdateMapping:input_type -> state.v1.UpdateMappingRequest + 105, // 111: state.v1.StateStoreService.DeleteMapping:input_type -> state.v1.DeleteMappingRequest + 107, // 112: state.v1.StateStoreService.InsertBinding:input_type -> state.v1.InsertBindingRequest + 109, // 113: state.v1.StateStoreService.GetBinding:input_type -> state.v1.GetBindingRequest + 111, // 114: state.v1.StateStoreService.ListBindings:input_type -> state.v1.ListBindingsRequest + 113, // 115: state.v1.StateStoreService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest + 115, // 116: state.v1.StateStoreService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest + 117, // 117: state.v1.StateStoreService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest + 119, // 118: state.v1.StateStoreService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest + 121, // 119: state.v1.StateStoreService.RecordDispatch:input_type -> state.v1.RecordDispatchRequest + 123, // 120: state.v1.StateStoreService.ListUndispatchedCaptures:input_type -> state.v1.ListUndispatchedCapturesRequest + 125, // 121: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest + 127, // 122: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest + 1, // 123: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse + 3, // 124: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse + 7, // 125: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse + 9, // 126: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse + 15, // 127: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse + 16, // 128: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse + 17, // 129: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse + 18, // 130: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse + 19, // 131: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse + 31, // 132: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse + 33, // 133: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse + 35, // 134: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse + 37, // 135: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse + 39, // 136: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse + 41, // 137: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse + 43, // 138: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse + 45, // 139: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse + 47, // 140: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse + 49, // 141: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse + 51, // 142: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse + 53, // 143: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse + 55, // 144: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse + 57, // 145: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse + 59, // 146: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse + 61, // 147: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse + 63, // 148: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse + 65, // 149: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse + 67, // 150: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse + 69, // 151: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse + 71, // 152: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse + 73, // 153: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse + 75, // 154: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse + 78, // 155: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse + 80, // 156: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse + 83, // 157: state.v1.StateStoreService.PutApplyStatus:output_type -> state.v1.PutApplyStatusResponse + 85, // 158: state.v1.StateStoreService.ListApplyStatus:output_type -> state.v1.ListApplyStatusResponse + 88, // 159: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse + 90, // 160: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse + 92, // 161: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse + 94, // 162: state.v1.StateStoreService.ListCaptures:output_type -> state.v1.ListCapturesResponse + 96, // 163: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse + 98, // 164: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse + 100, // 165: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse + 102, // 166: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse + 104, // 167: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse + 106, // 168: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse + 108, // 169: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse + 110, // 170: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse + 112, // 171: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse + 114, // 172: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse + 116, // 173: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse + 118, // 174: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse + 120, // 175: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse + 122, // 176: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse + 124, // 177: state.v1.StateStoreService.ListUndispatchedCaptures:output_type -> state.v1.ListUndispatchedCapturesResponse + 126, // 178: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse + 128, // 179: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse + 123, // [123:180] is the sub-list for method output_type + 66, // [66:123] is the sub-list for method input_type + 66, // [66:66] is the sub-list for extension type_name + 66, // [66:66] is the sub-list for extension extendee + 0, // [0:66] is the sub-list for field type_name } func init() { file_state_v1_state_proto_init() } @@ -7504,7 +7773,7 @@ func file_state_v1_state_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_state_proto_rawDesc), len(file_state_v1_state_proto_rawDesc)), NumEnums: 0, - NumMessages: 125, + NumMessages: 130, NumExtensions: 0, NumServices: 1, }, diff --git a/internal/contracts/state/v1/state_grpc.pb.go b/internal/contracts/state/v1/state_grpc.pb.go index ea6363fd4..c7f126549 100644 --- a/internal/contracts/state/v1/state_grpc.pb.go +++ b/internal/contracts/state/v1/state_grpc.pb.go @@ -53,6 +53,8 @@ const ( StateStoreService_TokensByDay_FullMethodName = "/state.v1.StateStoreService/TokensByDay" StateStoreService_PutConfigSnapshot_FullMethodName = "/state.v1.StateStoreService/PutConfigSnapshot" StateStoreService_GetConfigSnapshot_FullMethodName = "/state.v1.StateStoreService/GetConfigSnapshot" + StateStoreService_PutApplyStatus_FullMethodName = "/state.v1.StateStoreService/PutApplyStatus" + StateStoreService_ListApplyStatus_FullMethodName = "/state.v1.StateStoreService/ListApplyStatus" StateStoreService_ReadTaskLog_FullMethodName = "/state.v1.StateStoreService/ReadTaskLog" StateStoreService_StreamTaskLogContent_FullMethodName = "/state.v1.StateStoreService/StreamTaskLogContent" StateStoreService_InsertCapture_FullMethodName = "/state.v1.StateStoreService/InsertCapture" @@ -133,6 +135,12 @@ type StateStoreServiceClient interface { // configuration page"). PutConfigSnapshot(ctx context.Context, in *PutConfigSnapshotRequest, opts ...grpc.CallOption) (*PutConfigSnapshotResponse, error) GetConfigSnapshot(ctx context.Context, in *GetConfigSnapshotRequest, opts ...grpc.CallOption) (*GetConfigSnapshotResponse, error) + // Apply status: which version of a control-plane resource each process is + // running, and why it could not. Every process that applies a resource + // publishes; the UI process reads (docs/prds/control-plane-apply-status.md). + // Both are administrative. + PutApplyStatus(ctx context.Context, in *PutApplyStatusRequest, opts ...grpc.CallOption) (*PutApplyStatusResponse, error) + ListApplyStatus(ctx context.Context, in *ListApplyStatusRequest, opts ...grpc.CallOption) (*ListApplyStatusResponse, error) // Task log: one task attempt's persisted log. Task log files live in the // state directory this process owns, so the dashboard reads them over this // contract rather than opening them itself @@ -529,6 +537,26 @@ func (c *stateStoreServiceClient) GetConfigSnapshot(ctx context.Context, in *Get return out, nil } +func (c *stateStoreServiceClient) PutApplyStatus(ctx context.Context, in *PutApplyStatusRequest, opts ...grpc.CallOption) (*PutApplyStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PutApplyStatusResponse) + err := c.cc.Invoke(ctx, StateStoreService_PutApplyStatus_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *stateStoreServiceClient) ListApplyStatus(ctx context.Context, in *ListApplyStatusRequest, opts ...grpc.CallOption) (*ListApplyStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListApplyStatusResponse) + err := c.cc.Invoke(ctx, StateStoreService_ListApplyStatus_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *stateStoreServiceClient) ReadTaskLog(ctx context.Context, in *ReadTaskLogRequest, opts ...grpc.CallOption) (*ReadTaskLogResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReadTaskLogResponse) @@ -825,6 +853,12 @@ type StateStoreServiceServer interface { // configuration page"). PutConfigSnapshot(context.Context, *PutConfigSnapshotRequest) (*PutConfigSnapshotResponse, error) GetConfigSnapshot(context.Context, *GetConfigSnapshotRequest) (*GetConfigSnapshotResponse, error) + // Apply status: which version of a control-plane resource each process is + // running, and why it could not. Every process that applies a resource + // publishes; the UI process reads (docs/prds/control-plane-apply-status.md). + // Both are administrative. + PutApplyStatus(context.Context, *PutApplyStatusRequest) (*PutApplyStatusResponse, error) + ListApplyStatus(context.Context, *ListApplyStatusRequest) (*ListApplyStatusResponse, error) // Task log: one task attempt's persisted log. Task log files live in the // state directory this process owns, so the dashboard reads them over this // contract rather than opening them itself @@ -983,6 +1017,12 @@ func (UnimplementedStateStoreServiceServer) PutConfigSnapshot(context.Context, * func (UnimplementedStateStoreServiceServer) GetConfigSnapshot(context.Context, *GetConfigSnapshotRequest) (*GetConfigSnapshotResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetConfigSnapshot not implemented") } +func (UnimplementedStateStoreServiceServer) PutApplyStatus(context.Context, *PutApplyStatusRequest) (*PutApplyStatusResponse, error) { + return nil, status.Error(codes.Unimplemented, "method PutApplyStatus not implemented") +} +func (UnimplementedStateStoreServiceServer) ListApplyStatus(context.Context, *ListApplyStatusRequest) (*ListApplyStatusResponse, error) { + return nil, status.Error(codes.Unimplemented, "method ListApplyStatus not implemented") +} func (UnimplementedStateStoreServiceServer) ReadTaskLog(context.Context, *ReadTaskLogRequest) (*ReadTaskLogResponse, error) { return nil, status.Error(codes.Unimplemented, "method ReadTaskLog not implemented") } @@ -1679,6 +1719,42 @@ func _StateStoreService_GetConfigSnapshot_Handler(srv interface{}, ctx context.C return interceptor(ctx, in, info, handler) } +func _StateStoreService_PutApplyStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PutApplyStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StateStoreServiceServer).PutApplyStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: StateStoreService_PutApplyStatus_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StateStoreServiceServer).PutApplyStatus(ctx, req.(*PutApplyStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _StateStoreService_ListApplyStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListApplyStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StateStoreServiceServer).ListApplyStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: StateStoreService_ListApplyStatus_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StateStoreServiceServer).ListApplyStatus(ctx, req.(*ListApplyStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _StateStoreService_ReadTaskLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ReadTaskLogRequest) if err := dec(in); err != nil { @@ -2179,6 +2255,14 @@ var StateStoreService_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetConfigSnapshot", Handler: _StateStoreService_GetConfigSnapshot_Handler, }, + { + MethodName: "PutApplyStatus", + Handler: _StateStoreService_PutApplyStatus_Handler, + }, + { + MethodName: "ListApplyStatus", + Handler: _StateStoreService_ListApplyStatus_Handler, + }, { MethodName: "ReadTaskLog", Handler: _StateStoreService_ReadTaskLog_Handler, diff --git a/internal/domain/storecontract/storecontract.go b/internal/domain/storecontract/storecontract.go index dd137701d..985503ab1 100644 --- a/internal/domain/storecontract/storecontract.go +++ b/internal/domain/storecontract/storecontract.go @@ -109,6 +109,16 @@ type ConfigSnapshotStore interface { ConfigSnapshot(ctx context.Context) (ConfigSnapshot, bool, error) } +// ApplyStatusStore holds which version of each control-plane resource each +// process is running. Same split as ConfigSnapshotStore and for the same +// reason: the writers are the processes that apply a resource, the reader is +// the UI, and a task-scoped credential must reach neither. +// See docs/prds/control-plane-apply-status.md. +type ApplyStatusStore interface { + PutApplyStatus(ctx context.Context, status ApplyStatus) error + ListApplyStatus(ctx context.Context) ([]ApplyStatus, error) +} + // MappingStore persists payload field mappings (t2db.3). Deliberately // separate from TaskStore and CaptureStore for the same reason those are // split: the dashboard's mapping editor should only acquire the mapping @@ -214,6 +224,23 @@ type ConfigSnapshot struct { PublishedAt time.Time } +// ApplyStatus is one process's report about one control-plane resource kind. +// +// AppliedVersion is the version that process is running. Error is set when the +// process could not apply what the store returned, and leaves AppliedVersion +// at the last version it did apply, so a rejected edit never erases the fact +// that an older one is live. ReportedAt is re-stamped on an interval: a record +// older than the staleness window belongs to a process that has stopped +// running, which is the only way this surface can tell a live process from a +// dead one. +type ApplyStatus struct { + Process string `json:"process"` + Kind string `json:"kind"` + AppliedVersion int64 `json:"applied_version"` + Error string `json:"error,omitempty"` + ReportedAt time.Time `json:"reported_at"` +} + // WorkflowStat is one row of the per-workflow metrics table. type WorkflowStat struct { Workflow string `json:"workflow"` diff --git a/internal/infrastructure/staterpc/client.go b/internal/infrastructure/staterpc/client.go index ee3c417a9..09e1d6bc8 100644 --- a/internal/infrastructure/staterpc/client.go +++ b/internal/infrastructure/staterpc/client.go @@ -50,6 +50,7 @@ var ( _ storecontract.BindingDispatcher = (*Client)(nil) _ storecontract.BindingTaskCreator = (*Client)(nil) _ storecontract.ConfigSnapshotStore = (*Client)(nil) + _ storecontract.ApplyStatusStore = (*Client)(nil) _ identity.Repository = (*Client)(nil) ) @@ -289,6 +290,31 @@ func (c *Client) ConfigSnapshot(ctx context.Context) (storecontract.ConfigSnapsh return configSnapshotValue(reply.Snapshot), true, nil } +// PutApplyStatus reports what this process applied for one resource kind. +// Administrative, like the config snapshot pair: a task-scoped grant cannot +// reach it. +func (c *Client) PutApplyStatus(ctx context.Context, status storecontract.ApplyStatus) error { + _, err := c.client.PutApplyStatus(ctx, &pb.PutApplyStatusRequest{Status: applyStatusProto(status)}) + if err != nil { + return unmapError(err) + } + return nil +} + +// ListApplyStatus reads every process's report. An empty slice means nothing +// has reported yet, which is not an error. +func (c *Client) ListApplyStatus(ctx context.Context) ([]storecontract.ApplyStatus, error) { + reply, err := c.client.ListApplyStatus(ctx, &pb.ListApplyStatusRequest{}) + if err != nil { + return nil, unmapError(err) + } + statuses := make([]storecontract.ApplyStatus, 0, len(reply.Statuses)) + for _, status := range reply.Statuses { + statuses = append(statuses, applyStatusValue(status)) + } + return statuses, nil +} + func (c *Client) ListCaptures(ctx context.Context, limit int) ([]storecontract.CapturedEvent, error) { stream, err := c.client.StreamCaptures(ctx, &pb.StreamCapturesRequest{Limit: int64(limit)}) if err != nil { diff --git a/internal/infrastructure/staterpc/conformance_test.go b/internal/infrastructure/staterpc/conformance_test.go index 732d65bf0..3a9bcf644 100644 --- a/internal/infrastructure/staterpc/conformance_test.go +++ b/internal/infrastructure/staterpc/conformance_test.go @@ -29,6 +29,7 @@ type contract interface { store.BindingDispatcher store.BindingTaskCreator store.ConfigSnapshotStore + store.ApplyStatusStore } // taskLogContract is the task-log read group, driven separately because it is @@ -54,7 +55,7 @@ func remoteTaskStore(t *testing.T, local *store.Store, logs store.TaskLogStore) server := grpc.NewServer() RegisterServer(server, Deps{ Tasks: local, Captures: local, Mappings: local, Bindings: local, - BindingDispatcher: local, BindingTaskCreator: local, ConfigSnapshots: local, + BindingDispatcher: local, BindingTaskCreator: local, ConfigSnapshots: local, ApplyStatus: local, TaskLogs: logs, }) go func() { _ = server.Serve(listener) }() diff --git a/internal/infrastructure/staterpc/server.go b/internal/infrastructure/staterpc/server.go index 2bdd70be2..eea0d12aa 100644 --- a/internal/infrastructure/staterpc/server.go +++ b/internal/infrastructure/staterpc/server.go @@ -31,6 +31,7 @@ import ( var ( errCaptureUnavailable = status.Error(codes.Unavailable, "capture store unavailable") errConfigSnapshotsUnavailable = status.Error(codes.Unavailable, "config snapshot store unavailable") + errApplyStatusUnavailable = status.Error(codes.Unavailable, "apply status store unavailable") errMappingUnavailable = status.Error(codes.Unavailable, "mapping store unavailable") errBindingUnavailable = status.Error(codes.Unavailable, "binding store unavailable") errBindingDispatchUnavailable = status.Error(codes.Unavailable, "binding dispatcher unavailable") @@ -63,6 +64,7 @@ type Deps struct { Tasks storecontract.TaskStore Captures storecontract.CaptureStore ConfigSnapshots storecontract.ConfigSnapshotStore + ApplyStatus storecontract.ApplyStatusStore Mappings storecontract.MappingStore Bindings storecontract.BindingStore BindingDispatcher storecontract.BindingDispatcher @@ -315,6 +317,40 @@ func (s *server) capture() (storecontract.CaptureStore, error) { return s.deps.Captures, nil } +func (s *server) applyStatus() (storecontract.ApplyStatusStore, error) { + if s.deps.ApplyStatus == nil { + return nil, errApplyStatusUnavailable + } + return s.deps.ApplyStatus, nil +} + +func (s *server) PutApplyStatus(ctx context.Context, r *pb.PutApplyStatusRequest) (*pb.PutApplyStatusResponse, error) { + as, err := s.applyStatus() + if err != nil { + return nil, err + } + if err := as.PutApplyStatus(ctx, applyStatusValue(r.Status)); err != nil { + return nil, s.logErr("PutApplyStatus", err) + } + return &pb.PutApplyStatusResponse{}, nil +} + +func (s *server) ListApplyStatus(ctx context.Context, _ *pb.ListApplyStatusRequest) (*pb.ListApplyStatusResponse, error) { + as, err := s.applyStatus() + if err != nil { + return nil, err + } + statuses, err := as.ListApplyStatus(ctx) + if err != nil { + return nil, s.logErr("ListApplyStatus", err) + } + out := make([]*pb.ApplyStatus, 0, len(statuses)) + for _, status := range statuses { + out = append(out, applyStatusProto(status)) + } + return &pb.ListApplyStatusResponse{Statuses: out}, nil +} + func (s *server) configSnapshots() (storecontract.ConfigSnapshotStore, error) { if s.deps.ConfigSnapshots == nil { return nil, errConfigSnapshotsUnavailable diff --git a/internal/infrastructure/staterpc/task_grants_test.go b/internal/infrastructure/staterpc/task_grants_test.go index c3eca39bc..95abe7e7f 100644 --- a/internal/infrastructure/staterpc/task_grants_test.go +++ b/internal/infrastructure/staterpc/task_grants_test.go @@ -31,7 +31,7 @@ func grantsServer(t *testing.T, adminToken string) (grants *TaskGrants, dial fun grpc.ChainUnaryInterceptor(grants.UnaryInterceptor(adminToken)), grpc.ChainStreamInterceptor(grants.StreamInterceptor(adminToken)), ) - RegisterServer(server, Deps{Tasks: local, Captures: local, Bindings: local, BindingDispatcher: local, Grants: grants, ConfigSnapshots: local}) + RegisterServer(server, Deps{Tasks: local, Captures: local, Bindings: local, BindingDispatcher: local, Grants: grants, ConfigSnapshots: local, ApplyStatus: local}) go func() { _ = server.Serve(listener) }() t.Cleanup(func() { server.Stop(); _ = listener.Close() }) @@ -259,6 +259,42 @@ func TestOnlyAdminPublishesTheConfigSnapshot(t *testing.T) { } } +// TestOnlyAdminReportsApplyStatus: apply status says which process is running +// which settings version. A container's task-scoped credential must not be +// able to claim a process applied something, nor to read the deployment's +// process inventory. +func TestOnlyAdminReportsApplyStatus(t *testing.T) { + const adminToken = "daemon-admin-token" + _, dial := grantsServer(t, adminToken) + admin := dial(t, adminToken) + ctx := t.Context() + + task, err := admin.EnqueueChatTask(ctx, "acme", "widget", "a", "body", "implement", "") + if err != nil { + t.Fatal(err) + } + workerToken, err := admin.RegisterTaskGrant(ctx, task.ID, time.Hour) + if err != nil { + t.Fatalf("RegisterTaskGrant: %v", err) + } + worker := dial(t, workerToken) + + status := store.ApplyStatus{Process: "archied", Kind: "tool-settings", AppliedVersion: 2} + if err := admin.PutApplyStatus(ctx, status); err != nil { + t.Fatalf("admin PutApplyStatus: %v", err) + } + if err := worker.PutApplyStatus(ctx, status); err == nil { + t.Fatal("a task grant must not authorize reporting apply status") + } + if _, err := worker.ListApplyStatus(ctx); err == nil { + t.Fatal("a task grant must not authorize reading apply status") + } + got, err := admin.ListApplyStatus(ctx) + if err != nil || len(got) != 1 { + t.Fatalf("admin ListApplyStatus = (%d records, %v), want the reported one", len(got), err) + } +} + func TestOnlyAdminCanRegisterOrRevokeTaskGrants(t *testing.T) { const adminToken = "daemon-admin-token" _, dial := grantsServer(t, adminToken) diff --git a/internal/infrastructure/staterpc/values.go b/internal/infrastructure/staterpc/values.go index 1c1394570..d299ac49a 100644 --- a/internal/infrastructure/staterpc/values.go +++ b/internal/infrastructure/staterpc/values.go @@ -401,6 +401,29 @@ func configSnapshotValue(snapshot *pb.ConfigSnapshot) storecontract.ConfigSnapsh } } +func applyStatusProto(status storecontract.ApplyStatus) *pb.ApplyStatus { + return &pb.ApplyStatus{ + Process: status.Process, + Kind: status.Kind, + AppliedVersion: status.AppliedVersion, + Error: status.Error, + ReportedAt: timestamp(status.ReportedAt), + } +} + +func applyStatusValue(status *pb.ApplyStatus) storecontract.ApplyStatus { + if status == nil { + return storecontract.ApplyStatus{} + } + return storecontract.ApplyStatus{ + Process: status.Process, + Kind: status.Kind, + AppliedVersion: status.AppliedVersion, + Error: status.Error, + ReportedAt: timeValue(status.ReportedAt), + } +} + // taskLogEntryProto and taskLogEntryValue mirror internal/logging.Entry, whose // Fields map crosses as a JSON object string exactly as events.Event.Data does // (see eventDataJSON above). The logging package owns that format end to end; diff --git a/internal/store/apply_status.go b/internal/store/apply_status.go new file mode 100644 index 000000000..f9b493cee --- /dev/null +++ b/internal/store/apply_status.go @@ -0,0 +1,77 @@ +package store + +import ( + "context" + "fmt" + "time" +) + +const applyStatusSchema = ` +CREATE TABLE IF NOT EXISTS apply_status ( + process TEXT NOT NULL, + kind TEXT NOT NULL, + applied_version INTEGER NOT NULL DEFAULT 0, + error TEXT NOT NULL DEFAULT '', + reported_at TEXT NOT NULL, + PRIMARY KEY (process, kind) +); +` + +// applyStatusTimeLayout matches the rest of the store's timestamp columns. +const applyStatusTimeLayout = time.RFC3339 + +// PutApplyStatus records what one process applied for one resource kind. The +// key is (process, kind) and a report replaces its own row: a process +// re-stamps on an interval, and a history of re-stamps is not something any +// reader wants. +func (s *Store) PutApplyStatus(ctx context.Context, status ApplyStatus) error { + reported := status.ReportedAt + if reported.IsZero() { + reported = time.Now() + } + _, err := s.db.ExecContext(ctx, ` + INSERT INTO apply_status (process, kind, applied_version, error, reported_at) + VALUES (?, ?, ?, ?, ?) + ON CONFLICT(process, kind) DO UPDATE SET + applied_version=excluded.applied_version, + error=excluded.error, + reported_at=excluded.reported_at`, + status.Process, status.Kind, status.AppliedVersion, status.Error, + reported.UTC().Format(applyStatusTimeLayout)) + if err != nil { + return fmt.Errorf("store: put apply status: %w", err) + } + return nil +} + +// ListApplyStatus returns every process's report. An empty slice is the +// normal state of a store whose processes have not booted yet, not an error. +func (s *Store) ListApplyStatus(ctx context.Context) ([]ApplyStatus, error) { + rows, err := s.db.QueryContext(ctx, ` + SELECT process, kind, applied_version, error, reported_at + FROM apply_status ORDER BY process, kind`) + if err != nil { + return nil, fmt.Errorf("store: list apply status: %w", err) + } + defer rows.Close() + + statuses := []ApplyStatus{} + for rows.Next() { + var ( + status ApplyStatus + reported string + ) + if err := rows.Scan(&status.Process, &status.Kind, &status.AppliedVersion, &status.Error, &reported); err != nil { + return nil, fmt.Errorf("store: scan apply status: %w", err) + } + status.ReportedAt, err = time.Parse(applyStatusTimeLayout, reported) + if err != nil { + return nil, fmt.Errorf("store: parse apply status time: %w", err) + } + statuses = append(statuses, status) + } + if err := rows.Err(); err != nil { + return nil, fmt.Errorf("store: list apply status: %w", err) + } + return statuses, nil +} diff --git a/internal/store/apply_status_test.go b/internal/store/apply_status_test.go new file mode 100644 index 000000000..52fe51af7 --- /dev/null +++ b/internal/store/apply_status_test.go @@ -0,0 +1,92 @@ +package store + +import ( + "testing" + "time" +) + +// TestApplyStatusReplacesPerProcessAndKind pins the key: a process re-stamping +// its report must overwrite its own row, not append one, or the settings page +// accumulates a row per report and cannot say which is current. +func TestApplyStatusReplacesPerProcessAndKind(t *testing.T) { + s := openTest(t) + first := time.Date(2026, 9, 21, 10, 0, 0, 0, time.UTC) + + for _, status := range []ApplyStatus{ + {Process: "archied", Kind: "model-role-assignments", AppliedVersion: 3, ReportedAt: first}, + {Process: "archied", Kind: "repository-policies", AppliedVersion: 5, ReportedAt: first}, + {Process: "archie-gateway", Kind: "model-role-assignments", AppliedVersion: 2, ReportedAt: first}, + } { + if err := s.PutApplyStatus(t.Context(), status); err != nil { + t.Fatalf("PutApplyStatus(%s/%s): %v", status.Process, status.Kind, err) + } + } + + restamp := first.Add(30 * time.Second) + if err := s.PutApplyStatus(t.Context(), ApplyStatus{ + Process: "archied", Kind: "model-role-assignments", AppliedVersion: 4, ReportedAt: restamp, + }); err != nil { + t.Fatalf("re-stamp: %v", err) + } + + got, err := s.ListApplyStatus(t.Context()) + if err != nil { + t.Fatalf("ListApplyStatus: %v", err) + } + if len(got) != 3 { + t.Fatalf("ListApplyStatus returned %d records, want 3: %+v", len(got), got) + } + for _, record := range got { + if record.Process != "archied" || record.Kind != "model-role-assignments" { + continue + } + if record.AppliedVersion != 4 { + t.Errorf("AppliedVersion = %d, want the re-stamped 4", record.AppliedVersion) + } + if !record.ReportedAt.Equal(restamp) { + t.Errorf("ReportedAt = %v, want the re-stamped %v", record.ReportedAt, restamp) + } + } +} + +// TestApplyStatusKeepsAppliedVersionWhenReportingAnError pins that a rejected +// edit does not erase the fact that an older version is still live. +func TestApplyStatusKeepsAppliedVersionWhenReportingAnError(t *testing.T) { + s := openTest(t) + at := time.Date(2026, 9, 21, 10, 0, 0, 0, time.UTC) + if err := s.PutApplyStatus(t.Context(), ApplyStatus{ + Process: "archied", Kind: "tool-settings", AppliedVersion: 7, ReportedAt: at, + }); err != nil { + t.Fatalf("PutApplyStatus: %v", err) + } + if err := s.PutApplyStatus(t.Context(), ApplyStatus{ + Process: "archied", Kind: "tool-settings", AppliedVersion: 7, + Error: "validate database settings: bad policy", ReportedAt: at.Add(time.Minute), + }); err != nil { + t.Fatalf("PutApplyStatus with error: %v", err) + } + + got, err := s.ListApplyStatus(t.Context()) + if err != nil { + t.Fatalf("ListApplyStatus: %v", err) + } + if len(got) != 1 { + t.Fatalf("ListApplyStatus returned %d records, want 1", len(got)) + } + if got[0].AppliedVersion != 7 || got[0].Error == "" { + t.Fatalf("record = %+v, want version 7 still live alongside the error", got[0]) + } +} + +// TestListApplyStatusEmptyIsNotAnError pins the list convention: nothing has +// reported yet is the normal state of a store whose processes have not booted, +// and it is an empty slice rather than an error or a found=false. +func TestListApplyStatusEmptyIsNotAnError(t *testing.T) { + got, err := openTest(t).ListApplyStatus(t.Context()) + if err != nil { + t.Fatalf("ListApplyStatus on an empty store: %v", err) + } + if len(got) != 0 { + t.Fatalf("ListApplyStatus returned %d records, want none", len(got)) + } +} diff --git a/internal/store/interface.go b/internal/store/interface.go index bed66d142..435ba38ea 100644 --- a/internal/store/interface.go +++ b/internal/store/interface.go @@ -28,12 +28,14 @@ type ( TaskLogStore = storecontract.TaskLogStore CaptureStore = storecontract.CaptureStore ConfigSnapshotStore = storecontract.ConfigSnapshotStore + ApplyStatusStore = storecontract.ApplyStatusStore MappingStore = storecontract.MappingStore BindingStore = storecontract.BindingStore BindingDispatcher = storecontract.BindingDispatcher BindingTaskCreator = storecontract.BindingTaskCreator CapturedEvent = storecontract.CapturedEvent ConfigSnapshot = storecontract.ConfigSnapshot + ApplyStatus = storecontract.ApplyStatus WorkflowStat = storecontract.WorkflowStat StageStat = storecontract.StageStat DayTokens = storecontract.DayTokens diff --git a/internal/store/store.go b/internal/store/store.go index 1d2235048..9daea8ca5 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -54,7 +54,7 @@ func Open(ctx context.Context, path string, opts ...OpenOption) (*Store, error) return nil, err } db.SetMaxOpenConns(1) - if _, err := db.ExecContext(ctx, schema+eventsSchema+capturesSchema+mappingsSchema+bindingsSchema+configSnapshotSchema+resourcesSchema+identitiesSchema); err != nil { + if _, err := db.ExecContext(ctx, schema+eventsSchema+capturesSchema+mappingsSchema+bindingsSchema+configSnapshotSchema+applyStatusSchema+resourcesSchema+identitiesSchema); err != nil { return nil, errors.Join(fmt.Errorf("store: init schema: %w", err), db.Close()) } if err := migrateTasks(ctx, db); err != nil { diff --git a/proto/state/v1/state.proto b/proto/state/v1/state.proto index 2aa48846f..81946fefe 100644 --- a/proto/state/v1/state.proto +++ b/proto/state/v1/state.proto @@ -62,6 +62,13 @@ service StateStoreService { rpc PutConfigSnapshot(PutConfigSnapshotRequest) returns (PutConfigSnapshotResponse); rpc GetConfigSnapshot(GetConfigSnapshotRequest) returns (GetConfigSnapshotResponse); + // Apply status: which version of a control-plane resource each process is + // running, and why it could not. Every process that applies a resource + // publishes; the UI process reads (docs/prds/control-plane-apply-status.md). + // Both are administrative. + rpc PutApplyStatus(PutApplyStatusRequest) returns (PutApplyStatusResponse); + rpc ListApplyStatus(ListApplyStatusRequest) returns (ListApplyStatusResponse); + // Task log: one task attempt's persisted log. Task log files live in the // state directory this process owns, so the dashboard reads them over this // contract rather than opening them itself @@ -450,6 +457,24 @@ message GetConfigSnapshotResponse { bool found = 2; } +// ApplyStatus is one process's report about one control-plane resource kind. +// applied_version is the version that process is running; error is set when it +// could not apply what the store returned, and leaves applied_version at the +// last version it did apply. reported_at is re-stamped on an interval, so a +// record older than the staleness window belongs to a process that has stopped +// running (docs/prds/control-plane-apply-status.md). +message ApplyStatus { + string process = 1; + string kind = 2; + int64 applied_version = 3; + string error = 4; + google.protobuf.Timestamp reported_at = 5; +} +message PutApplyStatusRequest { ApplyStatus status = 1; } +message PutApplyStatusResponse {} +message ListApplyStatusRequest {} +message ListApplyStatusResponse { repeated ApplyStatus statuses = 1; } + // TaskLogEntry mirrors internal/logging.Entry: one decoded log line. fields // carries every remaining key as a JSON object string, the same way Event // carries its data, so structured context survives the hop without this