From fa4566fb0d256fb1737fcfc0162f408c3ac20be0 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 27 Sep 2026 05:39:50 +1000 Subject: [PATCH] feat(statestore): step_executions, StartStep/FinishStep under the run credential Plan item 3 of docs/prds/execution-tree-state-machine.md (archie-core-1220), on top of the transition tables and ErrIllegalTransition enforcement (1214/1215, archie-core-qdbo.5): - Migration 0017 adds step_executions -- id, org_id, workspace_id, execution_id, attempt, parent_id, depth, kind, name, called_execution_id, status, detail, tokens_used, started_at, finished_at, indexed on (execution_id, attempt, id). Ownership fields are stamped from the execution's row; depth is derived from the parent, never supplied by a caller. Existing rows gain no backfilled steps. - task.Store (the workflow engine's mid-run facade) gains StartStep/FinishStep (5 methods, within the 8 cap), with storecontract.StepRecorder fronting them on the server; deadlineStore wraps both with its per-call timeout. - The store enforces each write as one transaction: the guarded row write under the shared step transition table plus the transition's own stage_start/stage_finish event row. Staleness is decided before legality, the way guardTransition decides it, and the store returns the persisted event for the caller's post-commit publish -- the EmitDurable convention (the daemon's event sink skips already-persisted rows by assigned ID), which is why workflow.Run stops emitting stage events beside the store and no longer discards step-write errors: a failed start or finish parks the execution, and the stage does not run unrecorded. An interrupted stage records interrupted rather than failed; a recording failure on that shutdown path is logged and left to RecoverStale, which owns the interrupted-execution sweep in plan item 6. - The run credential of docs/prds/orgs-and-access.md authorises StartStep and FinishStep on its own execution only: both requests carry the execution ID the grant check verifies (FinishStep carries it because the interceptor never reads the database), and FinishStep verifies handler-side that the step really is that execution's. authorizesTaskScopedCall's sanctioned widenings are now held as a lookup table so the next one stops growing a switch. - The PRD's wire contract is StartStep(execution, attempt, parent, kind, name) -> step id; the responses also carry the persisted event (needed for the post-commit publish) and FinishStep's request carries execution_id (needed for the grant check) -- both noted here as deliberate additions to the PRD's shorthand. called_execution_id exists in the table but not yet on the wire: its named consumer is the workflow-call recording of plan item 4 (#1216). Conformance drives both adapters; grant tests pin the own-execution scoping; the wire sentinel set gains ErrInvalidStep (InvalidArgument, "step execution invalid") for a step kind no consumer names. --- docs/data/generated/dev-docs.json | 2 +- docs/prds/state-store-contract.md | 21 +- .../app/agentworker/task_execution_test.go | 1 + internal/app/archied/state_store.go | 3 + internal/contracts/state/v1/state.pb.go | 2050 ++++++++++------- internal/contracts/state/v1/state_grpc.pb.go | 80 + .../domain/storecontract/storecontract.go | 16 + internal/domain/workflow/changes_test.go | 38 +- internal/domain/workflow/task/step.go | 59 + internal/domain/workflow/task/task.go | 11 + internal/domain/workflow/task_aliases.go | 12 + internal/domain/workflow/workflow.go | 86 +- .../domain/workflow/workflow_steps_test.go | 116 + .../agenttransport/nats/transport.go | 12 + .../migrations/0017_step_executions.sql | 32 + .../postgres/postgresdb/models.go | 18 + .../postgres/postgresdb/steps.sql.go | 165 ++ .../infrastructure/postgres/queries/steps.sql | 36 + internal/infrastructure/postgres/steps.go | 232 ++ .../infrastructure/postgres/steps_test.go | 249 ++ internal/infrastructure/postgres/store.go | 1 + internal/infrastructure/staterpc/client.go | 35 + .../staterpc/conformance_test.go | 60 +- .../infrastructure/staterpc/error_test.go | 1 + internal/infrastructure/staterpc/server.go | 40 + .../infrastructure/staterpc/task_grants.go | 82 +- .../staterpc/task_grants_test.go | 74 +- internal/infrastructure/staterpc/values.go | 2 + proto/state/v1/state.proto | 40 + 29 files changed, 2637 insertions(+), 937 deletions(-) create mode 100644 internal/domain/workflow/task/step.go create mode 100644 internal/domain/workflow/workflow_steps_test.go create mode 100644 internal/infrastructure/postgres/migrations/0017_step_executions.sql create mode 100644 internal/infrastructure/postgres/postgresdb/steps.sql.go create mode 100644 internal/infrastructure/postgres/queries/steps.sql create mode 100644 internal/infrastructure/postgres/steps.go create mode 100644 internal/infrastructure/postgres/steps_test.go diff --git a/docs/data/generated/dev-docs.json b/docs/data/generated/dev-docs.json index 9c602852d..e2f5168e0 100644 --- a/docs/data/generated/dev-docs.json +++ b/docs/data/generated/dev-docs.json @@ -484,7 +484,7 @@ "url": "/dev/prds/state-store-contract/", "title": "State Store — contract boundary \u0026 transport (ratification)", "section": "PRDs", - "body": "# State Store — contract boundary \u0026 transport (ratification)\n\n**Status:** Approved\n**Revision:** 2e\n**Date:** 2026-09-06\n\nThis is the pre-implementation design document that Phase 2 subtasks `.4.2` (generalise\n`storerpc` as the State Store gRPC contract) and `.4.3` (stand up `archie-state-store`)\nimplement against.\n**Beads milestone:** archie-core-8cda.4.1\n**Parent:** `docs/prds/service-decomposition.md` (open-question Q4 **RESOLVED**)\n\nThis document fixes the **contract boundary** and **transport** for the State Store service.\nIt does not redesign Archie's domain model, does not invent a second store, and does **not**\nsplit `archie.db`. It records method ownership, DTO/wire representation, error semantics,\nlimits, mode/config shape, local-adapter compatibility, and cutover/deletion rules so that\n`.4.2` and `.4.3` have exactly one authoritative surface to build against.\n\n\u003e **Storage superseded.** The store behind this contract is PostgreSQL:\n\u003e `internal/infrastructure/postgres` implements the producer-owned interfaces in\n\u003e `internal/domain/storecontract` and `workflow.Store`, over the database\n\u003e `database_url` names. `internal/store`, the SQLite file and the local adapter\n\u003e are gone; where this document says `archie.db`, `*store.Store` or\n\u003e `internal/store`, read the State Store's PostgreSQL database and\n\u003e `internal/infrastructure/postgres`. The contract, ownership split, error\n\u003e semantics and cutover rules stand.\n\n\u003e **Current state — read before `.4.2` starts.** The §12 step 2 relocation (`archie-core-8cda.\n4.8`) has landed: `Task`/`Status*`/`Source*` and the 3-method `workflow.Store` now live in\n\u003e `internal/domain/workflow`, the six production workflow files import no `internal/store`\n\u003e symbol, and `storerpc`/the NATS transport assert against `workflow.Store` instead of\n\u003e `store.WorkflowStore`. The broader Phase 2 acceptance criterion (State Store as its own\n\u003e service behind gRPC) is still open — that is what `.4.2`/`.4.3` build next.\n\n\u003e **Relationship to migration-decisions §4 — not replaced.** `docs/architecture/\nmigration-decisions.md` §4 (`store.Task → WorkflowExecution`, `mutable Stage →\nStepExecution history`, `RetryCount/Attempt → Attempt records`, versioned Workflow defs)\n\u003e **remains the authoritative, open document for the long-term Workflow migration.** This PRD\n\u003e does **not** replace it. It only pulls the minimal `Task`/`Status`/`Source` type + interface\n\u003e relocation forward as a Phase 2 prerequisite (because the acceptance criterion requires it);\n\u003e the rest of §4 stays its own migration and stays open.\n\n---\n\n## 1. Decision (the invariant everything follows)\n\nArchie is composed such that a single **`archie-state-store`** service owns the one existing\nSQLite file (`archie.db`) and exposes it over **gRPC behind narrow typed contracts**. There is\nexactly one store, one file, one service. No database-per-service, no distributed\ntransactions, no second store abstraction.\n\nTwo adapter families satisfy the contract interfaces:\n\n- **Local adapter** — `*store.Store` (the in-process SQLite implementation).\n- **Remote adapter** — `*staterpc.Client` (wraps the generated gRPC client).\n\nEach adapter carries an explicit compile-time assertion against the contract interfaces it\nserves. Composition picks local vs. remote by the presence of `[services.state].target`\n(empty = local; set = dial the gRPC service). Default is **local** (the State Store is not yet\nextracted), which is the PRD §3 posture; it differs from the gateway's remote-default only\nbecause the gateway is already a separate deployment and the State Store is not.\n\n\u003e **Contract-ownership fork, decided (rev. 2c — resolves the domain contradiction).**\n\u003e Ownership splits by the consumer's _layer_, per the dependency contract's rule #2\n\u003e (\"a domain defines the smallest interfaces required to perform its work\") and rule #7\n\u003e (\"database rows … MUST NOT leak into domain models\"):\n\u003e\n\u003e - The **workflow domain** (`internal/domain/workflow`) is the only domain-layer consumer of\n\u003e store state. It defines its own **consumer-owned** narrow `Store` interface\n\u003e (Update/Transition/InsertEvent) and its own **domain-owned** `Task` type plus\n\u003e `Status`/`Source` vocabulary. It imports **zero** `internal/store` symbols — satisfying the\n\u003e Phase 2 acceptance criterion. This is the minimal bound of migration-decisions §4\n\u003e (`store.Task → WorkflowExecution`), pulled forward **because** the acceptance criterion\n\u003e requires it.\n\u003e - The **daemon / webui / intake** store surfaces (`TaskStore`, `CaptureStore`,\n\u003e `MappingStore`, `BindingStore`, `BindingDispatcher`, `BindingTaskCreator`) stay\n\u003e **producer-owned** in `internal/store`, because those consumers are application and\n\u003e infrastructure layers, not domains — rule #2 does not apply to them.\n\nSo the State Store contract is **not** uniformly producer-owned: the domain-facing workflow\ncontract is consumer-owned (in the domain), while the daemon/webui store surfaces remain in\n`internal/store`. `internal/store` imports `internal/domain/workflow` for the `Task`/`Status`/\n`Source` types it persists (persistence → domain, the correct direction), and its `Store`\nimplementation satisfies `workflow.Store`. This is the single decision that makes the whole\nPhase 2 acceptance criterion and the architecture's rules simultaneously satisfiable.\n\n\u003e **`internal/store` is a TRANSITIONAL compatibility location (rev. 2c).** The repository's target\n\u003e architecture (`docs/architecture/dependencies-and-contracts.md`, `organisation.md`) places\n\u003e persistence implementations under `internal/infrastructure/\u003ccapability\u003e`. `internal/store`\n\u003e holding the task/capture/mapping/binding implementation and ALSO being the home of the\n\u003e producer-owned daemon/webui interfaces is acceptable **only as a transitional location**. The\n\u003e long-term home for the store implementation is `internal/infrastructure/store`; the\n\u003e producer-owned interfaces may move to the same infrastructure package (or an approved\n\u003e contract location) when the store implementation relocates. Agents must not treat\n\u003e `internal/store` as the final infrastructure boundary.\n\u003e\n\u003e **REV. 2d (archie-core-8cda.5.6): the producer-owned interfaces HAVE moved to an approved\n\u003e contract location** — `internal/domain/storecontract` (package `storecontract`), ahead of the\n\u003e store implementation's own relocation. The UI Service deletion gate required the archie-ui\n\u003e process to hold the contracts without linking `internal/store`'s SQL implementation, and\n\u003e `internal/contracts/` itself is ruled out: that tree is the `buf generate` output and\n\u003e `tools/proto.sh check` deletes hand-written files there. `internal/store` keeps type aliases\n\u003e (`type TaskStore = storecontract.TaskStore`, the sentinel `var`s, the value types) so\n\u003e daemon-side callers are unaffected; the sentinel message strings are unchanged and remain\n\u003e the wire contract (§4).\n\n---\n\n## 2. Contract boundary\n\n**Ownership split** (see the fork in §1): the **workflow-domain consumer contract** is\n`workflow.Store` (consumer-owned, in `internal/domain/workflow`); the **daemon/webui/intake\nstore surfaces** are the producer-owned interfaces in `internal/store/interface.go`.\n`store.WorkflowStore` is **superseded** — it is replaced by the domain-owned `workflow.Store`,\nand `internal/store`'s `Store` implementation satisfies `workflow.Store` directly. `TaskStore`\nremains the only composite; every other interface is flat. Narrow slices are split along\nconsumer-capability lines so no consumer acquires a surface it does not need\n(`interfacebloat` cap = 8).\n\n| Interface (owner) | Embeds | Methods | Local impl | Remote impl |\n| ---------------------------------- | --------------------------------------------------------------------------- | ---------- | ---------- | ------------------ |\n| `TaskStore` (store) | `TaskLifecycle`, `TaskEvents`, `TaskQueries`, `TaskArchiver`, `TaskRetryer` | 24 (union) | `*Store` | `*staterpc.Client` |\n| `TaskLifecycle` (store) | — | 8 | `*Store` | `*staterpc.Client` |\n| `TaskEvents` (store) | — | 7 | `*Store` | `*staterpc.Client` |\n| `TaskQueries` (store) | — | 7 | `*Store` | `*staterpc.Client` |\n| `TaskArchiver` (store) | — | 1 | `*Store` | `*staterpc.Client` |\n| `TaskRetryer` (store) | — | 1 | `*Store` | `*staterpc.Client` |\n| `workflow.Store` (workflow domain) | — | 3 | `*Store` | `*staterpc.Client` |\n| `CaptureStore` (store) | — | 2 | `*Store` | `*staterpc.Client` |\n| `MappingStore` (store) | — | 5 | `*Store` | `*staterpc.Client` |\n| `BindingStore` (store) | — | 6 | `*Store` | `*staterpc.Client` |\n| `BindingDispatcher` (store) | — | 3 | `*Store` | `*staterpc.Client` |\n| `BindingTaskCreator` (store) | — | 1 | `*Store` | `*staterpc.Client` |\n| `PlaybookDispatcher` (store) | — | 2 | `*Store` | `*staterpc.Client` |\n\n**Key property of the remote client:** `*staterpc.Client` is a _single_ adapter that wraps one\n`StateStoreClient` and is asserted against **whichever narrow Go interfaces its caller needs**\n(exactly as `gatewayrpc.Client` asserts both `gateway.ChatContract` and\n`gateway.SessionStore`). The Go contracts stay narrow (≤8, the `interfacebloat` cap); the wire\nis one service. `workflow.Store` introduces **no new RPCs** — it is a narrow consumer face over\nthe same `Update`/`Transition`/`InsertEvent` RPCs.\n\n---\n\n## 3. Method ownership\n\n`*Store` remains the single implementation of the daemon/webui store surfaces and of\n`workflow.Store`. Ownership below is about which **process** is the primary consumer of each\nmethod and therefore which methods are genuinely cross-process on the wire vs.\ndaemon-internal.\n\nProcess legend: **DAEMON** = `archied` (incl. in-process webui + gateway runtime +\n`storerpc.Server`); **AGENT** = `archie-agent` worker (no DB connection); **GATEWAY** = store\naccess through daemon-side narrow adapter interfaces.\n\n| Contract | Primary consumers (process) | Remote on the wire? |\n| ------------------------ | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |\n| `TaskLifecycle` (8) | DAEMON (dispatch, claim, action) + **AGENT** (`Transition`, `Update` via storerpc) | `Transition`/`Update` = **YES** (agent); rest DAEMON |\n| `TaskArchiver` (1) | DAEMON (`taskactions` archive) | not yet |\n| `TaskRetryer` (1) | DAEMON (`taskactions` retry) | not yet |\n| `TaskQueries` (7) | DAEMON + GATEWAY (status/list adapters) | not yet (`OpenPRs`/`Tasks`/`StatusCounts` cross to gateway adapters in-process) |\n| `TaskEvents` (7) | DAEMON + **AGENT** (`InsertEvent` via storerpc) | `InsertEvent` = **YES** (agent); rest DAEMON |\n| `workflow.Store` (3) | **AGENT** only | **YES** (the sole genuinely remote consumer) |\n| `CaptureStore` (2) | DAEMON (webhook intake + mapping editor) | not yet |\n| `MappingStore` (5) | DAEMON (dashboard editor + dispatch loop) | not yet |\n| `BindingStore` (6) | DAEMON (dashboard editor + dispatch loop) | not yet |\n| `BindingDispatcher` (3) | DAEMON (dispatch loop) | not yet |\n| `BindingTaskCreator` (1) | DAEMON (dispatch loop) | not yet |\n| `PlaybookDispatcher` (2) | DAEMON (EDA playbook dispatch loop) | **YES** (side-effecting-action idempotency ledger over gRPC) |\n\n**Consequence for migration order:** the **agent's `workflow.Store` is already cross-process\nalready** (via the NATS `storerpc` surrogate), so it is the first contract to move to gRPC. The\ndaemon-internal surfaces (`Capture`/`Mapping`/`Binding`) stay in-process until the daemon\nitself points at `archie-state-store`. `TaskStore` (the large composite) moves last.\n\n**Two orphan methods** — `TaskQueries.ClearTerminalTasks` and\n`TaskQueries.IncrementRetryCount` have **no production consumer** (only `*Store` tests). They\nremain part of the Go `TaskQueries`/`TaskStore` surface, and therefore part of the wire\ncontract, but are flagged for deletion: they must **not** gain dedicated consumers or wire\nmethods in this work. Do not add the rest of the codebase to them.\n\n---\n\n## 4. Domain-facing types \u0026 consumer-owned contract — resolves the contradiction\n\nThe Phase 2 acceptance criterion (\"`internal/domain/workflow` … no longer import\n`internal/store` directly — they call the State Store contract\") **cannot be met while**\n`store.Task`, `store.Status*`, `store.Source*`, and `store.WorkflowStore` live in\n`internal/store`. This section fixes where they move.\n\n**The relocation (a prerequisite that must land before or with `.4.2`):**\n\n| Current symbol (`internal/store`) | Moves to | Notes |\n| ------------------------------------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |\n| `Task` type | `internal/domain/workflow.Task` | The task-execution record the workflow domain operates on. `internal/store` persists this type (persistence → domain). |\n| `Status` + `Status*` constants | `internal/domain/workflow` | e.g. `StatusClosedWontDo`, `StatusMerged`, `StatusPROpen`, `StatusWaitingHuman`, `StatusRunning` — task-lifecycle vocabulary. |\n| `Source` + `Source*` constants | `internal/domain/workflow` | e.g. `SourceChat` — provenance vocabulary, follows `Task`. |\n| `WorkflowStore` interface (3 methods) | `internal/domain/workflow.Store` | **Consumer-owned** (dependency rule #2). Supersedes `store.WorkflowStore`. |\n\n**Resulting dependency direction (correct per the architecture):**\n\n- `internal/domain/workflow` imports **no** `internal/store` symbols → the acceptance\n criterion is satisfied. It consumes `store.Task`'s replacement as `workflow.Task`, uses\n `workflow.Status*`/`workflow.Source*`, and depends on its own `workflow.Store` interface.\n- `internal/store` imports `internal/domain/workflow` for the `Task`/`Status`/`Source` types it\n reads and writes (infrastructure → domain). **NOTE: `internal/store` is a transitional\n compatibility location only** — its long-term home is `internal/infrastructure/store` (see\n the callout in §1). Do not treat `internal/store` as the final infrastructure boundary.\n- Every store test that constructs `store.Task{…}` is updated to the relocated type as part of\n this prerequisite. This is a mechanical rename across ~6 workflow production files\n (`workflow.go`, `steps.go`, `triage.go`, `review.go`, `feasibility.go`, `implement.go`) and\n their tests plus the store tests. `TestRecordDispatchViaExplicitTx` is removed rather than\n updated — its non-nil `*sql.Tx` path has no production consumer (see §5's `RecordDispatch`\n blocker).\n\n**What this does NOT do:** it does not implement the full §4 Workflow migration\n(`mutable Stage → StepExecution history`, `RetryCount/Attempt → Attempt records`,\n`workflow.Registry → versioned Workflow definitions`, etc.). It lands only the minimal\ntask-type + `Status`/`Source` + consumer-owned-interface relocation that the Phase 2\ndomain-decoupling criterion requires. The residue of §4 remains its own migration.\n\n**Forward-compatibility:** because the wire DTOs are derived from the domain `Task`/`Status`\n(§5), when the full §4 migration later renames `workflow.Task` (or refines it into\n`WorkflowExecution`), only `values.go` and the proto field mapping change — the RPC surface and\nconsumer interfaces are unaffected. The wire contract is deliberately type-agnostic at this\nlevel.\n\n---\n\n## 5. DTO / wire representation\n\n### Proto layout\n\n- **Service:** `proto/state/v1/state.proto`, `package state.v1`, **one** `StateStore` service\n (mirrors the gateway's single `ChatService`; proto bypasses the Go `interfacebloat` cap, as\n `ChatContract` does via `//nolint:interfacebloat`).\n- **Codegen:** the existing buf v2 pipeline. `proto/buf.yaml` (module, lint STANDARD, breaking\n FILE against `main`), `proto/buf.gen.yaml` **managed mode** with\n `go_package_prefix → github.com/samcharles93/archie-core/internal/contracts`, plugins\n `protoc-gen-go` + `protoc-gen-go-grpc`, `out: ../internal/contracts`,\n `opt: paths=source_relative`. **No `go_package` in source** — managed mode owns it. Generated\n Go lands in `internal/contracts/state/v1/` (package `statev1`), committed (`proto:check`\n fails on uncommitted/unmodified generated files).\n- **Adapter package:** `internal/infrastructure/staterpc/` with `server.go` (registers the\n generated server over the store), `client.go` (wraps the generated client into `store.*` and\n `workflow.Store` facades), `values.go` (proto ⇄ domain mappers), and `conformance_test.go`\n (bufconn local-vs-grpc dual-adapter suite), mirroring `internal/infrastructure/gatewayrpc/`.\n- **Binary:** `cmd/archie-state-store/main.go`, mirroring `cmd/archie-gateway/main.go` and the\n serve pattern in `internal/app/archied/gateway.go` (`serveGateway`).\n\n### The `StateStore` RPC set (union of the contracts, grouped)\n\nMethods are named after the store methods so the mapping is unambiguous. `workflow.Store` is a\n_view_, not new RPCs — `Update`/`Transition`/`InsertEvent` are shared with\n`TaskLifecycle`/`TaskEvents` and appear once.\n\n| Group | RPCs |\n| ------------------ | -------------------------------------------------------------------------------------------------------------------------- |\n| Lifecycle | `EnqueueIssue`, `EnqueueChatTask`, `ClaimNext`, `ClaimByIssue`, `Transition`, `Update`, `Requeue`, `RecoverStale` |\n| Archive / Retry | `ArchiveTask`, `RetryTask` |\n| Queries | `TaskByIssue`, `OpenTaskByPR`, `TaskByID`, `OpenPRs`, `ClearTerminalTasks`, `Tasks`, `StatusCounts`, `IncrementRetryCount` |\n| Events | `InsertEvent`, `EventsSince`, `TaskEvents`, `WorkflowStats`, `StageStats`, `TokensByDay` |\n| Capture | `InsertCapture`, `ListCaptures` |\n| Mapping | `InsertMapping`, `GetMapping`, `ListMappings`, `UpdateMapping`, `DeleteMapping` |\n| Binding | `InsertBinding`, `GetBinding`, `ListBindings`, `UpdateBinding`, `DeleteBinding`, `ApproveBinding` |\n| Dispatch | `ArmedBindingsForSource`, `RecordDispatch`, `ListUndispatchedCaptures` |\n| Playbook | `RecordPlaybookDispatch`, `DeletePlaybookDispatches` |\n| WorkflowCaller | `EnqueueCallTask`, `WorkflowCallStatus` |\n| BindingTaskCreator | `EnqueueBindingTask` |\n| Config snapshot | `PutConfigSnapshot`, `GetConfigSnapshot` |\n| Apply status | `PutApplyStatus`, `ListApplyStatus` |\n| Channel status | `PutChannelStatus`, `ListChannelStatus` |\n| Task log | `ReadTaskLog`, `StreamTaskLogContent` |\n\nThat is **53 unique contract RPCs** across one service (the `TaskEvents.Close` method is dropped).\n`Close()` is **excluded** from the wire (it is server lifecycle, not a client call) — see §11.\n\nThe channel-status pair follows the config snapshot's split for the same reason: the writer is the process that HOSTS the channels -- the Messaging Service, which alone observes whether a channel is starting, running or failed -- and the reader is the UI process. Both RPCs are administrative, so a task-scoped grant reaches neither. A channel's state is runtime state rather than a settings document, which is why it is not a `ControlPlaneService` resource kind: a failed channel is not a document anybody edits. Asking for a reload travels on its own surface rather than through this one; see `docs/architecture/migration-decisions.md`, \"Channel state to the dashboard\".\n\nThe config-snapshot pair was added by `archie-core-ymut` (see\n`docs/architecture/migration-decisions.md`, \"Dashboard configuration page\"). It is the one\nsurface whose writer is the daemon and whose reader is the UI process, and both RPCs are\nadministrative: `authorizesTaskScopedCall` is deny-by-default, so a task-scoped grant reaches\nneither. `ConfigSnapshot.document` is opaque to this contract — the store neither parses nor\nvalidates it, and `schema` names the projection so a reader can refuse a shape it does not\nunderstand.\n\nThe apply-status pair was added by `archie-core-pskb` (see\n`docs/prds/control-plane-apply-status.md`). It is administrative for the same reason as the\nconfig-snapshot pair, and deny-by-default in `authorizesTaskScopedCall` covers it without a\nnew rule. Unlike that pair, the read is a list: `ListApplyStatus` returns every process's\nrecord and an empty slice means nothing has reported yet, so the `found=false` convention for\nabsent single rows does not apply. The rows are keyed on `(process, kind)` and replaced in\nplace, because each process re-stamps its record on an interval and no reader wants a history\nof re-stamps.\n\nThe task-log pair was added by `archie-core-iaqx` (see `docs/prds/ui-service-boundary.md`'s\nroute inventory). It is the one surface whose payload is not a row: the store service reads\nthem out of the state directory it owns with `internal/logging`'s own reader, so the wire\ncarries `logging.Entry`/`logging.Query` values and neither side restates the JSONL format.\n`ReadTaskLog` returns a decoded page and `StreamTaskLogContent` returns the raw bytes\nserver-streamed, because a log file rotates at 20 MB — past gRPC's 4 MiB unary cap — and the\nsame reasoning that made `StreamCaptures` supersede `ListCaptures` applies. `found=false` with\nno error means the attempt has no log; a service with no reader answers `Unavailable` instead,\nand the two answers are load-bearing for the dashboard: only the second is a deployment\ncondition, and the panel that collapsed them told operators task logging was switched off when\nit was not. The Go facade is `storecontract.TaskLogStore` (2 methods), carried by\n`*staterpc.Client` alongside the rest.\n\nThe workflow-caller pair was added by `archie-core-t2db.41` (see\n`docs/prds/workflow-calls.md`). It is the one surface a task-scoped grant\nreaches beyond the three task.Store RPCs: a `workflow.call` step must start\nits callee and, with `wait: true`, read it back, and the callee is the\ncaller's child. Both requests carry the caller's task ID, which the grant\ncheck verifies; `EnqueueCallTask` derives everything else from the caller's\nrow and refuses a caller that is not running or a call past the depth limit\n(`ErrCallCallerNotRunning` / `ErrCallDepthExceeded`), and `WorkflowCallStatus`\nre-checks the parent-child relation against the row before answering\n(`ErrCallNotYours`), so the interceptor itself never reads the database. The\nfacade is `workflow/task.Caller` (2 methods), carried by `*staterpc.Client`\nand the PostgreSQL store alike.\n\nThe playbook pair was added by `archie-core-t2db.17`'s implementation (see\n`docs/prds/eda-playbook-engine.md`, execution-time gap 2). It is administrative\nfor the same reason as the config-snapshot and apply-status pairs, and\ndeny-by-default in `authorizesTaskScopedCall` covers it without a new rule. The\nrow is the structural `(playbook_id, playbook_version, event_id, action_id)`\ntuple, written **before** the action's side effect fires (the reverse of\n`binding_dispatches`), so a duplicate returns `store.ErrAlreadyDispatched` and\nthe coordinator skips the invoke rather than repeating a non-revocable side\neffect. `DeletePlaybookDispatches` is the explicit reclamation primitive; nothing\ncalls it automatically, because a playbook file's absence at boot is not a\ndeliberate removal (`eda-playbook-engine.md`, \"Lifetime\"). The Go facade is\n`storecontract.PlaybookDispatcher` (2 methods), carried by `*staterpc.Client`\nalongside the rest.\n\n### Domain types and `values.go` mapping\n\n`values.go` maps proto ⇄ these types. The task model for the **agent** path is the domain-owned\n`workflow.Task` (§4); the daemon/webui store surfaces return the same `workflow.Task` (the store\npersists the domain type).\n\n| Domain type | Package | Notes for `values.go` |\n| ------------------------------------- | -------------------------- | -------------------------------------------------------------------------------------------------------------- |\n| `workflow.Task` | `internal/domain/workflow` | time fields stored as layout strings; convert to/from `google.protobuf.Timestamp` |\n| `events.Event` | `internal/events` | `Timestamp` → `google.protobuf.Timestamp` |\n| `store.CapturedEvent` | `internal/store` | headers/body/remote_addr; body capped 256 KiB |\n| `mapping.Mapping` | `internal/domain/mapping` | JSON-path field bindings |\n| `binding.Binding` | `internal/domain/binding` | secret is **already decrypted** before returning; keep decrypted form out of any durable/logged representation |\n| `workflow.Status` / `workflow.Source` | `internal/domain/workflow` | enum-like; map to proto enum or string, keeping the names stable for compatibility |\n| `store.WorkflowStat` | `internal/store` | aggregate row |\n| `store.StageStat` | `internal/store` | aggregate row |\n| `store.DayTokens` | `internal/store` | aggregate row |\n\n### Wire-contract blocker fixed here: `RecordDispatch`\n\n`store.BindingDispatcher.RecordDispatch(ctx, tx *sql.Tx, bindingID, bindingVersion int64,\ncaptureID int64, taskID int64) error` takes a **`*sql.Tx`** that cannot cross a gRPC boundary.\n\n**Evidence that the `*sql.Tx` is removable:** the dispatch loop calls `RecordDispatch(ctx, nil,\n…)` (`internal/daemon/daemon.go`). The implementation falls back to the store's own\n`*sql.DB` when `tx == nil` (\"best-effort, not atomic\"; the comment and the\n`TestRecordDispatchViaExplicitTx` test are the only consumers of the non-nil `tx` path).\nProduction never opens the explicit transaction.\n\n**Decision:** the contract drops `*sql.Tx` from `RecordDispatch` (the method becomes\n`RecordDispatch(ctx, bindingID, bindingVersion, captureID, taskID) error`). The store service\nowns any transaction boundary internally when atomicity is wanted; the at-most-once\nguarantee is the `INSERT OR IGNORE` dedup row, which is already transactionless in production.\n`TestRecordDispatchViaExplicitTx` is superseded by the store service's own internal-transaction\ntest. **This is a required interface migration that must land before or with `.4.2`** (the\ncurrent `interface.go` signature and test still use the transaction-bearing form).\n\n---\n\n## 6. Agent State Store client handoff\n\nMoving the agent from NATS `storerpc` to gRPC `workflow.Store` requires the agent process to\nreceive a State Store endpoint. The agent already receives its NATS connection settings via\nboot-time env/flags (see `cmd/archie-agent/main.go`: `-nats-url` / `NATS_URL`, `NATS_TOKEN`\nenv), and the daemon injects them into the task container. The State Store handoff follows the\nsame seam.\n\n**Boot handoff contract (additive, not replacing the NATS settings):**\n\n| Field | Where | Source | Notes |\n| ------------------ | ---------------------- | ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| `StateStoreTarget` | `agentworker.Settings` | env `STATE_STORE_URL` (or `-state-store-url` flag), set by the daemon in the container env | `host:port` of the State Store gRPC server. Loopback/Docker-bridge address — the agent reaches it the same way it reaches the daemon's NATS. |\n| `StateStoreToken` | `agentworker.Settings` | env `STATE_STORE_TOKEN` (or `-state-store-token` flag) | Per-task bearer token carried in gRPC metadata by a client interceptor (see §9). |\n| `StoreTimeout` | `agentworker.Settings` | a bounded per-call timeout | Mirrors `natsrpc.Client.Timeout` / the existing `rpcTimeout`; bounds each State Store call when the caller `ctx` has no deadline. |\n\n**Wiring change in the transport façade:**\n\n- `internal/infrastructure/agenttransport/nats.Transport` — `Store(timeout) store.WorkflowStore`\n returns `\u0026storerpc.Client{Conn: t.conn, Timeout: timeout}`. It becomes\n `Store(timeout) workflow.Store` and returns a _single long-lived_ `staterpc.Client` dialled to\n `settings.StateStoreTarget` (with the token interceptor and per-call timeout).\n- `internal/app/agentworker/worker.go` `Settings` gains the three fields above; `taskServiceTransport`\n and `taskDependencies` change their `store` type from `store.WorkflowStore` to\n `workflow.Store` (via `domain/workflow.TaskContext{Store: …}`).\n- Reconnect/deadline: `grpc.NewClient` (or the existing dial path) provides transparent reconnect;\n each RPC is bounded by the per-call context deadline (`StoreTimeout`), matching the\n request/reply timeout the NATS path used. No streaming is involved, so no server-sent\n reconnect semantics apply.\n\n**Deletion rule for the NATS path:** the NATS `storerpc` (Server, Client, subjects\n`archie.store.update|transition|insert_event`) is deleted **only after** the agent has fully\nmoved to gRPC and the container env carries `STATE_STORE_URL`. Until then both paths may coexist\n(agent flips when the daemon starts injecting `STATE_STORE_URL`); there is no dual-live window\nacross a single agent process, which is either NATS-backed or gRPC-backed, never both.\n\n### Operational specifics (in-process listener → address → per-task injection)\n\n- **Who binds the in-process State Store listener:** the daemon (`archied`), at bootstrap, when\n the State Store is served in-process/multiplexed (mirroring `serveGateway` in\n `internal/app/archied/gateway.go`): a `grpc.NewServer()` + `RegisterServer` + graceful stop on\n `ctx.Done()`.\n- **Address selection (Docker-bridge reachable):** reuse the host-gateway resolution already used\n for embedded NATS (`internal/container/network.go` `RequireHostGateway` /\n `resolveHostGateway`). Per §9's single listener-topology rule, the listener binds the\n **host-gateway bridge address** when agent containers consume it (the Phase 2 default), or\n loopback-only when the daemon is the sole consumer. The chosen address is stored on the daemon\n as `d.ConnectedStateStore.URL` (analogous to `d.ConnectedNATS.URL`).\n- **Per-task injection:** `containerEnv(task)` (`internal/daemon/daemon.go`) appends\n `STATE_STORE_URL=\u003cd.ConnectedStateStore.URL\u003e` and `STATE_STORE_TOKEN=\u003ctoken\u003e` alongside the\n existing `NATS_URL`/`NATS_TOKEN`. The agent reads them via env (`-state-store-url` /\n `STATE_STORE_URL`, `-state-store-token` / `STATE_STORE_TOKEN`), the same seam as `NATS_URL`. A\n reloaded `[services.state]` must not point new containers at a store the daemon is not serving\n — the same immutability rule as NATS.\n\n---\n\n## 7. Error semantics\n\n### Current state (both boundaries lose error identity)\n\n- **NATS `natsrpc.Envelope`** (`internal/natsrpc/natsrpc.go`) serialises any error to a single\n `err.Error()` string and rehydrates a fresh `errors.New(string)`. The original type, `%w`\n chain, and sentinel identity are lost → `errors.Is(err, store.ErrStaleTransition)` is\n **false** across the boundary.\n- **gRPC `gatewayrpc`** returns raw `err` from handlers; gRPC-Go converts to\n `codes.Unknown` with only the message. The **only** explicit code in the repo is\n `codes.Unavailable` for a missing session store (`server.go`). No status-code mapping for\n store errors exists.\n\n### Decision — structured mapping so `errors.Is` survives\n\nThe `StateStore` service must map the store's sentinel errors to canonical gRPC codes and\nrehydrate them to the _same_ sentinels on the client, so consumer `errors.Is` checks keep\nworking — an improvement over the flattening it replaces, not a regression.\n\n| Store sentinel / outcome | gRPC code | Client rehydrates to |\n| ------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | ---------------------------- |\n| `store.ErrStaleTransition` | `FailedPrecondition` | `store.ErrStaleTransition` |\n| `store.ErrBindingNotFound` | `NotFound` | `store.ErrBindingNotFound` |\n| `store.ErrMappingNotFound` | `NotFound` | `store.ErrMappingNotFound` |\n| `store.ErrBindingOverlap` | `FailedPrecondition` | `store.ErrBindingOverlap` |\n| `store.ErrBindingTransition` | `FailedPrecondition` | `store.ErrBindingTransition` |\n| `store.ErrAlreadyDispatched` | `AlreadyExists` | `store.ErrAlreadyDispatched` |\n| not-found-as-`(nil,nil)` (`TaskByID`, `GetBinding`, `GetMapping`, `ClaimNext`, `ClaimByIssue`, …) | `NotFound` with a `found=false` field (**not** an error) | `(nil, nil)` |\n| infra / wrapped error | `Internal` (**sanitised** message, see below) | wrapped `fmt.Errorf(...%w)` |\n| capability absent | `Unavailable` | context/typed error |\n\nThe `found=false`-not-error convention matters: the repo deliberately returns `(nil, nil)` for\nnot-found in reads and a sentinel for not-found in writes. The wire must preserve **both**\nconventions (a `GoogleRPCStatus` with `NotFound` is an _error_, which would wrongly surface to\ncallers that expect `(nil, nil)`). Implement `found` as an explicit boolean field on read\nresponses, and map `(nil,nil)` ⇄ `found=false` + `OK`.\n\n### Error-detail sanitisation (rev. 2c)\n\nFull internal error messages must **not** be placed in gRPC `details` for remote callers. SQL\npaths, provider/forge details, secrets, and stack traces are sensitive internals. The rule:\n\n- **Sentinel errors** — the client rehydrates the sentinel from the code; the message string in\n `status.Error` is a short, public, stable phrase (e.g. `\"stale transition\"`), not the raw\n wrapped chain.\n- **Infra errors** — the wire carries a **sanitised** public message + the `Internal` code.\n The **full** error (with `%w` chain, SQL, provider detail) is logged **server-side only** by\n the store service. The client rehydrates a generic wrapped error and must not surface the raw\n text to users.\n\n---\n\n## 8. Limits\n\n**Interface bloat (`interfacebloat` cap = 8)** — `.golangci.yml` `interfacebloat: max: 8`,\nwhich overrides the upstream default of 10. The Go consumer facades must stay ≤8 methods.\n`TaskLifecycle` is exactly 8 (at the cap); `TaskStore` is the 24-method composite that the cap\nis why it is decomposed; proto services bypass the cap (like `ChatContract`).\n\n**Payload caps:**\n\n- Capture body: `defaultCaptureMaxBodyBytes = 256 KiB` (may reduce further; the wire message\n must not exceed gRPC's default 4 MiB receive limit for a single capture). A single capture\n fits, but a _batch_ of them did not: the caller-side cap of up to 100 captures at 256 KiB each\n could exceed 4 MiB in one unary `ListCaptures`/`ListUndispatchedCaptures` response. `.4.7` adds\n `StreamCaptures`/`StreamUndispatchedCaptures` (server-streaming, one capture per message) as\n the path both `staterpc.Client` methods actually call; the original unary RPCs stay defined,\n unmodified and deprecated, only so `buf breaking` protects an in-flight rolling deploy.\n- Task `detail`/`park_reason`/event `Detail`: 4000-char hard cap (`clip(s, 4000)`).\n\n**Retention (stays server-side in the store; the wire does not carry pruning decisions):**\n\n- `events` table: **no prune, unbounded growth** — a known risk to revisit, not changed here.\n- `captured_events`: prune-on-write, default 7 days / 5000 events.\n\n**Pagination/arity:** store read methods take a raw `int limit` (no store-side cap); the\ncaller-side caps (task list 100, log 2000, captures 100, capture scan window 5000, binding\ndispatch batch 100, session list 20) remain caller-side. The wire passes `limit int` and returns\n`[]*` slices, mirroring the existing Go signatures — **no cursor/paging protocol is introduced**\nin this work (the current `EventsSince(sinceID, limit)` offset cursor is the only one, and it\nstays as-is).\n\n---\n\n## 9. Transport security boundary\n\nThe gateway precedent is loopback-only, unauthenticated gRPC. The State Store holds the\ncrown-jewel `archie.db` (task/event/capture/mapping/binding data), so its boundary must be\nstated explicitly rather than left implicit.\n\n**The State Store's equivalent boundary (rev. 2c):**\n\n- **Listener topology — single rule (rev. 2c).** One in-process listener; its bind address is\n chosen by the consumer set, never both at once:\n - _Agent containers consume it_ (the Phase 2 driver during multiplexed serving) → bind to the\n **host-gateway bridge address** so containers can reach it, and **token auth is mandatory**\n (a bridge host is reachable by any process on that bridge). A container **cannot reach the\n host's `127.0.0.1`**, so loopback-only is NOT usable for the agent-consumed path.\n - _Only the daemon consumes it_ (no agent) → bind **loopback-only** (`--listen 127.0.0.1`),\n `insecure` is fine because it is not network-reachable; no token required.\n - There is **no dual-listener** design. The practical default during `.4.2` (the reason\n in-process serving exists is to give the agent a gRPC target) is the **bridge address +\n token**. `127.0.0.1` is reserved for the daemon-local-only case.\n- **Agent access → the container bridge.** The agent runs in a task-scoped container on the\n host and reaches the State Store over the Docker bridge gateway (the bind address from the\n topology rule above), exactly as it reaches the daemon's NATS. To close the \"any host\n process could reach the store\" gap, the agent **authenticates with a per-task bearer token**\n carried in gRPC metadata by a client interceptor (`StateStoreToken`, §6). Network\n reachability + the token is the trust boundary for the default bridge topology.\n- **The daemon** uses the local adapter (`*store.Store`) in-process by default, so no network\n boundary exists until `[services.state].target` is set; when it is set, the daemon client\n authenticates with a token supplied alongside the target.\n- **Non-loopback / k8s:** TLS/mTLS is an **operator decision**, not a default. Any non-loopback\n exposure (e.g. `--listen 0.0.0.0`, a CDN, a cross-host service) requires an explicit decision\n and mTLS or token auth — mirroring the gateway's `--listen`/`--enable-cors-header`\n confirmation caveat. The NATS-KV discovery fallback supplies endpoints but does not add\n transport security; that stays the operator's responsibility.\n\n### Token lifecycle (rev. 2c; scoping added in `.4.7`)\n\n- **Generation:** the daemon generates a per-task bearer token when it acquires the container\n (or per incumbence) and injects it via `containerEnv` as `STATE_STORE_TOKEN`. A single token\n may cover a task's container lifetime.\n- **Registration (`.4.7`, post-standalone-cutover):** the State Store is now its own process\n (`.4.3`/`.4.6`), so the daemon can no longer just hold an in-process issued-token set for the\n server to check — it registers the token at the remote authority via the\n `RegisterTaskGrant`/`RevokeTaskGrant` RPCs (`staterpc.GrantIssuer`, `daemon.StateStoreGrantIssuer`),\n admin-token-authenticated calls a task-scoped token itself can never make.\n- **Lifetime:** tied to the task + container grace period; rotated on a new container acquisition\n for the same task; a token for a released container is invalidated (`RevokeTaskGrant`, deferred\n alongside `ContainerPool.Release`). An unrevoked grant still expires server-side (bounded by\n `RegisterTaskGrantRequest.lifetime_seconds`, capped at 7 days) so a daemon crash before revoke\n cannot leave a grant valid indefinitely.\n- **Validation and scope (`.4.7`):** a gRPC interceptor (`staterpc.TaskGrants.UnaryInterceptor`)\n validates the token against the State Store's own issued-grant set; missing/unknown/expired →\n `codes.Unauthenticated`. Unlike the daemon's own administrative token (full access to all RPCs),\n a task-scoped grant additionally authorises only `Update`/`Transition`/`InsertEvent` on\n its own task ID, plus the two workflow-caller RPCs naming that same task ID\n (`EnqueueCallTask`/`WorkflowCallStatus`, `docs/prds/workflow-calls.md` — the one\n sanctioned widening: the callee is the caller's child). Every other RPC, including the\n streaming capture surface and\n `RegisterTaskGrant`/`RevokeTaskGrant` themselves, is `codes.PermissionDenied` for a task-scoped\n caller. The token is carried in gRPC metadata, never in a URL.\n\n### Fail-closed on non-loopback (rev. 2c)\n\nIf `[services.state].target` points to a non-loopback address and **neither** TLS **nor** a token\nis configured, the State Store client (daemon or agent) **fails closed** — it refuses to\nstart/dial rather than fall back to a plaintext, unauthenticated remote connection. This mirrors\nthe gateway's `--listen`/`--enable-cors-header` confinement caveat and prevents a silent\nunauthenticated remote store. The loopback + token default is the only path that starts without\nan explicit operator decision.\n\n---\n\n## 10. Mode / config shape\n\n**Follow the gateway's presence-based `target` seam, not the NATS `mode` enum.**\n\n- **Services are keyed by name, not named as struct fields.** A\n `State ServiceConnection` field per service is the duplication\n `docs/prds/service-registry.md` removes, and this document's summary describes\n the seam as `[services.\u003cname\u003e]`:\n ```go\n type Services map[string]ServiceConnection\n ```\n registered once via `RegisterService(context, name, target, listen, tokenEnv)`. The TOML\n shape below is unchanged, so nothing else in this section is affected; read\n `cfg.Services.Get(\"state\")` wherever it says `cfg.Services.State`.\n- **Empty `Target` → startup error.** The local `*store.Store` adapter default was\n withdrawn when the State Store was extracted (§12 step 7): the standalone `archie-state-store` process\n exclusively owns `archie.db`, so both `archied` and `archie-gateway` now reject an empty\n target (`internal/app/archied/bootstrap.go` and `state_store_client.go`: `services.state.target\nis required`). **Set `Target` → dial gRPC** with `*staterpc.Client`; no client opens the\n database itself. This differs from the gateway, where `Target` is defaulted to\n `127.0.0.1:8585` because `archie-gateway` is already a separate process whose client and\n server share one default.\n- `[services.state]` is present and **uncommented** in `config.example.toml`, with `target`\n marked REQUIRED, because the value is load-bearing for every client. A commented-out\n `target` cannot boot, so the section ships uncommented.\n- Composition root: `internal/app/archied/bootstrap.go` (the daemon) and\n `internal/app/archieui/config.go` (the UI process) both read `cfg.Services.Get(\"state\")` and\n dial the remote State Store. The task store is built only in the standalone\n `archie-state-store` process (`internal/app/archied/state_store.go`), which is the only path\n that opens the task tables.\n\n\u003e **Mode fork, decided.** The gateway uses a single `target` address (no enum). The State Store\n\u003e boundary uses the same seam for symmetry, and **both now require a non-empty `target`**: the\n\u003e State Store's local-store default was withdrawn when the process was extracted (§12 step 7).\n\u003e No `mode` field is added. A companion `STATE_STORE_TOKEN` secret (or a\n\u003e `[services.state] target_token` key) carries authentication.\n\n---\n\n## 11. Local-adapter compatibility + conformance\n\n- `*store.Store` (local) and `*staterpc.Client` (remote) satisfy the **same** contract\n interfaces. Use **explicit** `var _` assertions on **both** adapters (the gateway's local\n adapters use only structural/return-type assertions; the store precedent's explicit `var _`\n style is stronger and should be adopted on both sides).\n ```go\n var _ workflow.Store = (*staterpc.Client)(nil) // first contract to move (agent)\n var _ store.TaskStore = (*staterpc.Client)(nil) // daemon path, added progressively\n var _ store.CaptureStore = (*staterpc.Client)(nil)\n var _ store.MappingStore = (*staterpc.Client)(nil)\n var _ store.BindingStore = (*staterpc.Client)(nil)\n var _ store.BindingDispatcher = (*staterpc.Client)(nil)\n var _ store.BindingTaskCreator = (*staterpc.Client)(nil)\n var _ store.PlaybookDispatcher = (*staterpc.Client)(nil)\n // local side (in store), already present:\n var _ workflow.Store = (*Store)(nil)\n ```\n- **Conformance suite:** a `staterpc/conformance_test.go` bufconn suite runs the **same**\n contract through both `\"local\"` and `\"grpc\"` adapters (mirroring\n `gatewayrpc/conformance_test.go`), asserting error-sentinel fidelity and the\n not-found-as-`(nil,nil)` convention both ways.\n- **`Close()`:** stays on the Go store interfaces (so `TaskStore`/`TaskEvents` remain fully\n satisfiable) but is **not** a `StateStore` RPC. The remote `staterpc.Client` implements\n `Close()` as a **no-op**; the store service owns its own DB lifecycle. When the daemon hands\n the store to `archie-state-store`, `b.cleanup()` no longer calls `store.Close()` on a remote\n client (it is the daemon's own lifecycle only when it owns the store in-process).\n\n---\n\n## 12. Cutover / deletion rules\n\n1. **Ratify the contract (this document).** No code.\n2. **Domain type + interface relocation (prerequisite, coupled with §4).** Move `Task`/`Status`/\n `Source` and the `WorkflowStore` interface into `internal/domain/workflow` (as\n `workflow.Task`/`workflow.Status`/`workflow.Source`/`workflow.Store`), so\n `internal/domain/workflow` imports no `internal/store`. Update the store tests and the 6\n workflow production files. **This must land before or with `.4.2`, because `.4.2` cannot move\n the agent's store contract off `store.WorkflowStore` while the domain still imports it.**\n3. **`.4.2` — generalise `storerpc` to the gRPC contract.** Move the agent's `workflow.Store`\n (`Update`/`Transition`/`InsertEvent`) from NATS JSON `storerpc` to `staterpc.Client` over\n gRPC, using the §6 handoff. The daemon serves the gRPC `StateStore` server **in-process\n (multiplexed)** first so the agent has a gRPC target before the standalone binary exists\n (PRD §3 \"multiplexed in-process is the migration default\"). Bind the in-process listener and\n inject `STATE_STORE_URL`/`STATE_STORE_TOKEN` per task (see §6 \"Operational specifics\"). Also\n land the `RecordDispatch` `*sql.Tx` drop (see §5) in the same span. Flip the agent's\n `Transport.Store` to a gRPC client once `STATE_STORE_URL` is injected.\n4. **Delete NATS `storerpc` only after the agent is fully on gRPC** — delete `internal/storerpc`\n (Server, Client, subjects `archie.store.update|transition|insert_event`), the\n `natsrpc.RegisterAll` registration, and the now-unused `store.WorkflowStore` NATS path in\n `internal/infrastructure/agenttransport/nats`, in the same commit.\n5. **`[services.state].target` stays empty (inproc)** through `.4.2`; the `archie-state-store`\n `cmd/` binary is **`.4.3`** and hosts the same `StateStore` gRPC service.\n6. **Swap daemon-internal contracts one at a time** (only once the daemon points at\n `archie-state-store`): `Capture → Mapping → Binding → TaskStore`. Each swap is independent —\n add the remote-client composition path, run the per-contract conformance suite, flip\n `[services.state].target`, delete the local use. A consumer mixes in-process and remote\n contracts for a contract-code (no dual-live _window_; each contract is either local or remote\n at a time).\n7. **Final flip / deletion of the in-process serving path:** when the daemon no longer owns the\n store (i.e. `TaskStore` has moved), delete the in-process task-store /\n `wireWebStoreSurfaces` path in the daemon in a **same-commit** deletion — no dual-store\n ownership. The single SQLite file remains owned by `archie-state-store`.\n8. **Never** split `archie.db` or add a second store. The gateway keeps its own already-separate\n session SQLite; that is unchanged and out of state-store scope.\n\n---\n\n## 13. Decisions recorded (for the review trail)\n\n- **`internal/store` is a transitional compatibility location** (target\n `internal/infrastructure/store`), not the final infrastructure boundary. The producer-owned\n daemon/webui store surfaces live there now but may relocate with the implementation.\n- **In-process listener + token lifecycle:** the daemon binds the in-process State Store\n listener to the **host-gateway bridge address** when agent containers consume it (the Phase 2\n default) or loopback-only when the daemon is the sole consumer — one listener, one address\n rule, never both (rev. 2c). It selects the bridge address by reusing the embedded-NATS\n host-gateway resolution and injects `STATE_STORE_URL`/`STATE_STORE_TOKEN` per task via\n `containerEnv`. Token is per-incumbence (task + container grace period) and validated by a\n gRPC interceptor → `codes.Unauthenticated` on missing/unknown/expired. Non-loopback targets\n fail closed without TLS or a token.\n- **§12 step 2 (domain type + interface relocation) is done** — `internal/domain/workflow`\n imports no `internal/store` symbol and `store.WorkflowStore` is gone from `TaskContext`. The\n broader Phase 2 acceptance criterion (State Store as its own gRPC service) is still open;\n `.4.2` picks up from here.\n- **Ownership split:** domain-facing workflow contract is **consumer-owned** in the domain\n (`workflow.Store` + `workflow.Task`/`Status`/`Source`, per dependency rules #2 and #7);\n daemon/webui store surfaces stay **producer-owned** in `internal/store`. `store.WorkflowStore`\n is superseded by `workflow.Store`.\n- **One `StateStore` gRPC service** (49 contract RPCs, grouped by contract) + narrow Go consumer facades\n (≤8) on `staterpc.Client` — mirrors the single-`ChatService` precedent.\n- **Domain type relocation** (`Task`/`Status`/`Source` → `internal/domain/workflow`) is a\n Phase 2 prerequisite, pulled forward from migration-decisions §4 (minimal bound,\n `Task → WorkflowExecution`); the rest of §4 stays a separate migration.\n- **`RecordDispatch` drops `*sql.Tx`** (wire-blocker; production passes `nil`) — a\n required interface migration landing before/with `.4.2`.\n- **`Close()` not on the wire**; remote client `Close()` is a no-op.\n- **Structured gRPC error codes** with client rehydration to store sentinels (preserves\n `errors.Is`), a `found=false` + `OK` convention for read not-found, and **sanitised public\n error details** (full detail logged server-side only).\n- **Agent handoff:** `agentworker.Settings` gains `StateStoreTarget`/`StateStoreToken`/\n `StoreTimeout`, injected as `STATE_STORE_URL`/`STATE_STORE_TOKEN` env (mirrors the NATS\n handoff); `Transport.Store` returns a long-lived gRPC `workflow.Store` client.\n- **Transport security + listener topology (rev. 2c):** one in-process listener, bound to the\n host-gateway bridge address when agent containers consume it (the Phase 2 default) or\n loopback-only for a daemon-local-only consumer. `insecure` only on loopback; mandatory\n per-task bearer-token auth on the bridge; TLS/mTLS is an operator choice for any\n non-loopback/k8s topology.\n- **Mode = presence-based `[services.state].target`**, default **local** (not yet extracted);\n add `[services.state]` to `config.example.toml`.\n- **Explicit `var _` assertions on both adapters**; per-contract bufconn conformance.\n- **Migration order:** domain type/interface relocation → `workflow.Store` (agent) → stand up\n `archie-state-store` → `Capture` → `Mapping` → `Binding` → `TaskStore`; NATS `storerpc`\n deleted once the agent is on gRPC; in-process store path deleted in a same-commit flip.\n- **Orphans `ClearTerminalTasks`/`IncrementRetryCount`** retained but not built upon.\n" + "body": "# State Store — contract boundary \u0026 transport (ratification)\n\n**Status:** Approved\n**Revision:** 2e\n**Date:** 2026-09-06\n\nThis is the pre-implementation design document that Phase 2 subtasks `.4.2` (generalise\n`storerpc` as the State Store gRPC contract) and `.4.3` (stand up `archie-state-store`)\nimplement against.\n**Beads milestone:** archie-core-8cda.4.1\n**Parent:** `docs/prds/service-decomposition.md` (open-question Q4 **RESOLVED**)\n\nThis document fixes the **contract boundary** and **transport** for the State Store service.\nIt does not redesign Archie's domain model, does not invent a second store, and does **not**\nsplit `archie.db`. It records method ownership, DTO/wire representation, error semantics,\nlimits, mode/config shape, local-adapter compatibility, and cutover/deletion rules so that\n`.4.2` and `.4.3` have exactly one authoritative surface to build against.\n\n\u003e **Storage superseded.** The store behind this contract is PostgreSQL:\n\u003e `internal/infrastructure/postgres` implements the producer-owned interfaces in\n\u003e `internal/domain/storecontract` and `workflow.Store`, over the database\n\u003e `database_url` names. `internal/store`, the SQLite file and the local adapter\n\u003e are gone; where this document says `archie.db`, `*store.Store` or\n\u003e `internal/store`, read the State Store's PostgreSQL database and\n\u003e `internal/infrastructure/postgres`. The contract, ownership split, error\n\u003e semantics and cutover rules stand.\n\n\u003e **Current state — read before `.4.2` starts.** The §12 step 2 relocation (`archie-core-8cda.\n4.8`) has landed: `Task`/`Status*`/`Source*` and the 3-method `workflow.Store` now live in\n\u003e `internal/domain/workflow`, the six production workflow files import no `internal/store`\n\u003e symbol, and `storerpc`/the NATS transport assert against `workflow.Store` instead of\n\u003e `store.WorkflowStore`. The broader Phase 2 acceptance criterion (State Store as its own\n\u003e service behind gRPC) is still open — that is what `.4.2`/`.4.3` build next.\n\n\u003e **Relationship to migration-decisions §4 — not replaced.** `docs/architecture/\nmigration-decisions.md` §4 (`store.Task → WorkflowExecution`, `mutable Stage →\nStepExecution history`, `RetryCount/Attempt → Attempt records`, versioned Workflow defs)\n\u003e **remains the authoritative, open document for the long-term Workflow migration.** This PRD\n\u003e does **not** replace it. It only pulls the minimal `Task`/`Status`/`Source` type + interface\n\u003e relocation forward as a Phase 2 prerequisite (because the acceptance criterion requires it);\n\u003e the rest of §4 stays its own migration and stays open.\n\n---\n\n## 1. Decision (the invariant everything follows)\n\nArchie is composed such that a single **`archie-state-store`** service owns the one existing\nSQLite file (`archie.db`) and exposes it over **gRPC behind narrow typed contracts**. There is\nexactly one store, one file, one service. No database-per-service, no distributed\ntransactions, no second store abstraction.\n\nTwo adapter families satisfy the contract interfaces:\n\n- **Local adapter** — `*store.Store` (the in-process SQLite implementation).\n- **Remote adapter** — `*staterpc.Client` (wraps the generated gRPC client).\n\nEach adapter carries an explicit compile-time assertion against the contract interfaces it\nserves. Composition picks local vs. remote by the presence of `[services.state].target`\n(empty = local; set = dial the gRPC service). Default is **local** (the State Store is not yet\nextracted), which is the PRD §3 posture; it differs from the gateway's remote-default only\nbecause the gateway is already a separate deployment and the State Store is not.\n\n\u003e **Contract-ownership fork, decided (rev. 2c — resolves the domain contradiction).**\n\u003e Ownership splits by the consumer's _layer_, per the dependency contract's rule #2\n\u003e (\"a domain defines the smallest interfaces required to perform its work\") and rule #7\n\u003e (\"database rows … MUST NOT leak into domain models\"):\n\u003e\n\u003e - The **workflow domain** (`internal/domain/workflow`) is the only domain-layer consumer of\n\u003e store state. It defines its own **consumer-owned** narrow `Store` interface\n\u003e (Update/Transition/InsertEvent) and its own **domain-owned** `Task` type plus\n\u003e `Status`/`Source` vocabulary. It imports **zero** `internal/store` symbols — satisfying the\n\u003e Phase 2 acceptance criterion. This is the minimal bound of migration-decisions §4\n\u003e (`store.Task → WorkflowExecution`), pulled forward **because** the acceptance criterion\n\u003e requires it.\n\u003e - The **daemon / webui / intake** store surfaces (`TaskStore`, `CaptureStore`,\n\u003e `MappingStore`, `BindingStore`, `BindingDispatcher`, `BindingTaskCreator`) stay\n\u003e **producer-owned** in `internal/store`, because those consumers are application and\n\u003e infrastructure layers, not domains — rule #2 does not apply to them.\n\nSo the State Store contract is **not** uniformly producer-owned: the domain-facing workflow\ncontract is consumer-owned (in the domain), while the daemon/webui store surfaces remain in\n`internal/store`. `internal/store` imports `internal/domain/workflow` for the `Task`/`Status`/\n`Source` types it persists (persistence → domain, the correct direction), and its `Store`\nimplementation satisfies `workflow.Store`. This is the single decision that makes the whole\nPhase 2 acceptance criterion and the architecture's rules simultaneously satisfiable.\n\n\u003e **`internal/store` is a TRANSITIONAL compatibility location (rev. 2c).** The repository's target\n\u003e architecture (`docs/architecture/dependencies-and-contracts.md`, `organisation.md`) places\n\u003e persistence implementations under `internal/infrastructure/\u003ccapability\u003e`. `internal/store`\n\u003e holding the task/capture/mapping/binding implementation and ALSO being the home of the\n\u003e producer-owned daemon/webui interfaces is acceptable **only as a transitional location**. The\n\u003e long-term home for the store implementation is `internal/infrastructure/store`; the\n\u003e producer-owned interfaces may move to the same infrastructure package (or an approved\n\u003e contract location) when the store implementation relocates. Agents must not treat\n\u003e `internal/store` as the final infrastructure boundary.\n\u003e\n\u003e **REV. 2d (archie-core-8cda.5.6): the producer-owned interfaces HAVE moved to an approved\n\u003e contract location** — `internal/domain/storecontract` (package `storecontract`), ahead of the\n\u003e store implementation's own relocation. The UI Service deletion gate required the archie-ui\n\u003e process to hold the contracts without linking `internal/store`'s SQL implementation, and\n\u003e `internal/contracts/` itself is ruled out: that tree is the `buf generate` output and\n\u003e `tools/proto.sh check` deletes hand-written files there. `internal/store` keeps type aliases\n\u003e (`type TaskStore = storecontract.TaskStore`, the sentinel `var`s, the value types) so\n\u003e daemon-side callers are unaffected; the sentinel message strings are unchanged and remain\n\u003e the wire contract (§4).\n\n---\n\n## 2. Contract boundary\n\n**Ownership split** (see the fork in §1): the **workflow-domain consumer contract** is\n`workflow.Store` (consumer-owned, in `internal/domain/workflow`); the **daemon/webui/intake\nstore surfaces** are the producer-owned interfaces in `internal/store/interface.go`.\n`store.WorkflowStore` is **superseded** — it is replaced by the domain-owned `workflow.Store`,\nand `internal/store`'s `Store` implementation satisfies `workflow.Store` directly. `TaskStore`\nremains the only composite; every other interface is flat. Narrow slices are split along\nconsumer-capability lines so no consumer acquires a surface it does not need\n(`interfacebloat` cap = 8).\n\n| Interface (owner) | Embeds | Methods | Local impl | Remote impl |\n| ---------------------------------- | --------------------------------------------------------------------------- | ---------- | ---------- | ------------------ |\n| `TaskStore` (store) | `TaskLifecycle`, `TaskEvents`, `TaskQueries`, `TaskArchiver`, `TaskRetryer` | 24 (union) | `*Store` | `*staterpc.Client` |\n| `TaskLifecycle` (store) | — | 8 | `*Store` | `*staterpc.Client` |\n| `TaskEvents` (store) | — | 7 | `*Store` | `*staterpc.Client` |\n| `TaskQueries` (store) | — | 7 | `*Store` | `*staterpc.Client` |\n| `TaskArchiver` (store) | — | 1 | `*Store` | `*staterpc.Client` |\n| `TaskRetryer` (store) | — | 1 | `*Store` | `*staterpc.Client` |\n| `workflow.Store` (workflow domain) | — | 3 | `*Store` | `*staterpc.Client` |\n| `CaptureStore` (store) | — | 2 | `*Store` | `*staterpc.Client` |\n| `MappingStore` (store) | — | 5 | `*Store` | `*staterpc.Client` |\n| `BindingStore` (store) | — | 6 | `*Store` | `*staterpc.Client` |\n| `BindingDispatcher` (store) | — | 3 | `*Store` | `*staterpc.Client` |\n| `BindingTaskCreator` (store) | — | 1 | `*Store` | `*staterpc.Client` |\n| `PlaybookDispatcher` (store) | — | 2 | `*Store` | `*staterpc.Client` |\n\n**Key property of the remote client:** `*staterpc.Client` is a _single_ adapter that wraps one\n`StateStoreClient` and is asserted against **whichever narrow Go interfaces its caller needs**\n(exactly as `gatewayrpc.Client` asserts both `gateway.ChatContract` and\n`gateway.SessionStore`). The Go contracts stay narrow (≤8, the `interfacebloat` cap); the wire\nis one service. `workflow.Store` introduces **no new RPCs** — it is a narrow consumer face over\nthe same `Update`/`Transition`/`InsertEvent` RPCs.\n\n---\n\n## 3. Method ownership\n\n`*Store` remains the single implementation of the daemon/webui store surfaces and of\n`workflow.Store`. Ownership below is about which **process** is the primary consumer of each\nmethod and therefore which methods are genuinely cross-process on the wire vs.\ndaemon-internal.\n\nProcess legend: **DAEMON** = `archied` (incl. in-process webui + gateway runtime +\n`storerpc.Server`); **AGENT** = `archie-agent` worker (no DB connection); **GATEWAY** = store\naccess through daemon-side narrow adapter interfaces.\n\n| Contract | Primary consumers (process) | Remote on the wire? |\n| ------------------------ | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |\n| `TaskLifecycle` (8) | DAEMON (dispatch, claim, action) + **AGENT** (`Transition`, `Update` via storerpc) | `Transition`/`Update` = **YES** (agent); rest DAEMON |\n| `TaskArchiver` (1) | DAEMON (`taskactions` archive) | not yet |\n| `TaskRetryer` (1) | DAEMON (`taskactions` retry) | not yet |\n| `TaskQueries` (7) | DAEMON + GATEWAY (status/list adapters) | not yet (`OpenPRs`/`Tasks`/`StatusCounts` cross to gateway adapters in-process) |\n| `TaskEvents` (7) | DAEMON + **AGENT** (`InsertEvent` via storerpc) | `InsertEvent` = **YES** (agent); rest DAEMON |\n| `workflow.Store` (3) | **AGENT** only | **YES** (the sole genuinely remote consumer) |\n| `CaptureStore` (2) | DAEMON (webhook intake + mapping editor) | not yet |\n| `MappingStore` (5) | DAEMON (dashboard editor + dispatch loop) | not yet |\n| `BindingStore` (6) | DAEMON (dashboard editor + dispatch loop) | not yet |\n| `BindingDispatcher` (3) | DAEMON (dispatch loop) | not yet |\n| `BindingTaskCreator` (1) | DAEMON (dispatch loop) | not yet |\n| `PlaybookDispatcher` (2) | DAEMON (EDA playbook dispatch loop) | **YES** (side-effecting-action idempotency ledger over gRPC) |\n\n**Consequence for migration order:** the **agent's `workflow.Store` is already cross-process\nalready** (via the NATS `storerpc` surrogate), so it is the first contract to move to gRPC. The\ndaemon-internal surfaces (`Capture`/`Mapping`/`Binding`) stay in-process until the daemon\nitself points at `archie-state-store`. `TaskStore` (the large composite) moves last.\n\n**Two orphan methods** — `TaskQueries.ClearTerminalTasks` and\n`TaskQueries.IncrementRetryCount` have **no production consumer** (only `*Store` tests). They\nremain part of the Go `TaskQueries`/`TaskStore` surface, and therefore part of the wire\ncontract, but are flagged for deletion: they must **not** gain dedicated consumers or wire\nmethods in this work. Do not add the rest of the codebase to them.\n\n---\n\n## 4. Domain-facing types \u0026 consumer-owned contract — resolves the contradiction\n\nThe Phase 2 acceptance criterion (\"`internal/domain/workflow` … no longer import\n`internal/store` directly — they call the State Store contract\") **cannot be met while**\n`store.Task`, `store.Status*`, `store.Source*`, and `store.WorkflowStore` live in\n`internal/store`. This section fixes where they move.\n\n**The relocation (a prerequisite that must land before or with `.4.2`):**\n\n| Current symbol (`internal/store`) | Moves to | Notes |\n| ------------------------------------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |\n| `Task` type | `internal/domain/workflow.Task` | The task-execution record the workflow domain operates on. `internal/store` persists this type (persistence → domain). |\n| `Status` + `Status*` constants | `internal/domain/workflow` | e.g. `StatusClosedWontDo`, `StatusMerged`, `StatusPROpen`, `StatusWaitingHuman`, `StatusRunning` — task-lifecycle vocabulary. |\n| `Source` + `Source*` constants | `internal/domain/workflow` | e.g. `SourceChat` — provenance vocabulary, follows `Task`. |\n| `WorkflowStore` interface (3 methods) | `internal/domain/workflow.Store` | **Consumer-owned** (dependency rule #2). Supersedes `store.WorkflowStore`. |\n\n**Resulting dependency direction (correct per the architecture):**\n\n- `internal/domain/workflow` imports **no** `internal/store` symbols → the acceptance\n criterion is satisfied. It consumes `store.Task`'s replacement as `workflow.Task`, uses\n `workflow.Status*`/`workflow.Source*`, and depends on its own `workflow.Store` interface.\n- `internal/store` imports `internal/domain/workflow` for the `Task`/`Status`/`Source` types it\n reads and writes (infrastructure → domain). **NOTE: `internal/store` is a transitional\n compatibility location only** — its long-term home is `internal/infrastructure/store` (see\n the callout in §1). Do not treat `internal/store` as the final infrastructure boundary.\n- Every store test that constructs `store.Task{…}` is updated to the relocated type as part of\n this prerequisite. This is a mechanical rename across ~6 workflow production files\n (`workflow.go`, `steps.go`, `triage.go`, `review.go`, `feasibility.go`, `implement.go`) and\n their tests plus the store tests. `TestRecordDispatchViaExplicitTx` is removed rather than\n updated — its non-nil `*sql.Tx` path has no production consumer (see §5's `RecordDispatch`\n blocker).\n\n**What this does NOT do:** it does not implement the full §4 Workflow migration\n(`mutable Stage → StepExecution history`, `RetryCount/Attempt → Attempt records`,\n`workflow.Registry → versioned Workflow definitions`, etc.). It lands only the minimal\ntask-type + `Status`/`Source` + consumer-owned-interface relocation that the Phase 2\ndomain-decoupling criterion requires. The residue of §4 remains its own migration.\n\n**Forward-compatibility:** because the wire DTOs are derived from the domain `Task`/`Status`\n(§5), when the full §4 migration later renames `workflow.Task` (or refines it into\n`WorkflowExecution`), only `values.go` and the proto field mapping change — the RPC surface and\nconsumer interfaces are unaffected. The wire contract is deliberately type-agnostic at this\nlevel.\n\n---\n\n## 5. DTO / wire representation\n\n### Proto layout\n\n- **Service:** `proto/state/v1/state.proto`, `package state.v1`, **one** `StateStore` service\n (mirrors the gateway's single `ChatService`; proto bypasses the Go `interfacebloat` cap, as\n `ChatContract` does via `//nolint:interfacebloat`).\n- **Codegen:** the existing buf v2 pipeline. `proto/buf.yaml` (module, lint STANDARD, breaking\n FILE against `main`), `proto/buf.gen.yaml` **managed mode** with\n `go_package_prefix → github.com/samcharles93/archie-core/internal/contracts`, plugins\n `protoc-gen-go` + `protoc-gen-go-grpc`, `out: ../internal/contracts`,\n `opt: paths=source_relative`. **No `go_package` in source** — managed mode owns it. Generated\n Go lands in `internal/contracts/state/v1/` (package `statev1`), committed (`proto:check`\n fails on uncommitted/unmodified generated files).\n- **Adapter package:** `internal/infrastructure/staterpc/` with `server.go` (registers the\n generated server over the store), `client.go` (wraps the generated client into `store.*` and\n `workflow.Store` facades), `values.go` (proto ⇄ domain mappers), and `conformance_test.go`\n (bufconn local-vs-grpc dual-adapter suite), mirroring `internal/infrastructure/gatewayrpc/`.\n- **Binary:** `cmd/archie-state-store/main.go`, mirroring `cmd/archie-gateway/main.go` and the\n serve pattern in `internal/app/archied/gateway.go` (`serveGateway`).\n\n### The `StateStore` RPC set (union of the contracts, grouped)\n\nMethods are named after the store methods so the mapping is unambiguous. `workflow.Store` is a\n_view_, not new RPCs — `Update`/`Transition`/`InsertEvent` are shared with\n`TaskLifecycle`/`TaskEvents` and appear once.\n\n| Group | RPCs |\n| ------------------ | -------------------------------------------------------------------------------------------------------------------------- |\n| Lifecycle | `EnqueueIssue`, `EnqueueChatTask`, `ClaimNext`, `ClaimByIssue`, `Transition`, `Update`, `Requeue`, `RecoverStale` |\n| Archive / Retry | `ArchiveTask`, `RetryTask` |\n| Queries | `TaskByIssue`, `OpenTaskByPR`, `TaskByID`, `OpenPRs`, `ClearTerminalTasks`, `Tasks`, `StatusCounts`, `IncrementRetryCount` |\n| Events | `InsertEvent`, `EventsSince`, `TaskEvents`, `WorkflowStats`, `StageStats`, `TokensByDay` |\n| Capture | `InsertCapture`, `ListCaptures` |\n| Mapping | `InsertMapping`, `GetMapping`, `ListMappings`, `UpdateMapping`, `DeleteMapping` |\n| Binding | `InsertBinding`, `GetBinding`, `ListBindings`, `UpdateBinding`, `DeleteBinding`, `ApproveBinding` |\n| Dispatch | `ArmedBindingsForSource`, `RecordDispatch`, `ListUndispatchedCaptures` |\n| Playbook | `RecordPlaybookDispatch`, `DeletePlaybookDispatches` |\n| WorkflowCaller | `EnqueueCallTask`, `WorkflowCallStatus` |\n| Step executions | `StartStep`, `FinishStep` |\n| BindingTaskCreator | `EnqueueBindingTask` |\n| Config snapshot | `PutConfigSnapshot`, `GetConfigSnapshot` |\n| Apply status | `PutApplyStatus`, `ListApplyStatus` |\n| Channel status | `PutChannelStatus`, `ListChannelStatus` |\n| Task log | `ReadTaskLog`, `StreamTaskLogContent` |\n\nThat is **55 unique contract RPCs** across one service (the `TaskEvents.Close` method is dropped).\n`Close()` is **excluded** from the wire (it is server lifecycle, not a client call) — see §11.\n\nThe channel-status pair follows the config snapshot's split for the same reason: the writer is the process that HOSTS the channels -- the Messaging Service, which alone observes whether a channel is starting, running or failed -- and the reader is the UI process. Both RPCs are administrative, so a task-scoped grant reaches neither. A channel's state is runtime state rather than a settings document, which is why it is not a `ControlPlaneService` resource kind: a failed channel is not a document anybody edits. Asking for a reload travels on its own surface rather than through this one; see `docs/architecture/migration-decisions.md`, \"Channel state to the dashboard\".\n\nThe config-snapshot pair was added by `archie-core-ymut` (see\n`docs/architecture/migration-decisions.md`, \"Dashboard configuration page\"). It is the one\nsurface whose writer is the daemon and whose reader is the UI process, and both RPCs are\nadministrative: `authorizesTaskScopedCall` is deny-by-default, so a task-scoped grant reaches\nneither. `ConfigSnapshot.document` is opaque to this contract — the store neither parses nor\nvalidates it, and `schema` names the projection so a reader can refuse a shape it does not\nunderstand.\n\nThe apply-status pair was added by `archie-core-pskb` (see\n`docs/prds/control-plane-apply-status.md`). It is administrative for the same reason as the\nconfig-snapshot pair, and deny-by-default in `authorizesTaskScopedCall` covers it without a\nnew rule. Unlike that pair, the read is a list: `ListApplyStatus` returns every process's\nrecord and an empty slice means nothing has reported yet, so the `found=false` convention for\nabsent single rows does not apply. The rows are keyed on `(process, kind)` and replaced in\nplace, because each process re-stamps its record on an interval and no reader wants a history\nof re-stamps.\n\nThe task-log pair was added by `archie-core-iaqx` (see `docs/prds/ui-service-boundary.md`'s\nroute inventory). It is the one surface whose payload is not a row: the store service reads\nthem out of the state directory it owns with `internal/logging`'s own reader, so the wire\ncarries `logging.Entry`/`logging.Query` values and neither side restates the JSONL format.\n`ReadTaskLog` returns a decoded page and `StreamTaskLogContent` returns the raw bytes\nserver-streamed, because a log file rotates at 20 MB — past gRPC's 4 MiB unary cap — and the\nsame reasoning that made `StreamCaptures` supersede `ListCaptures` applies. `found=false` with\nno error means the attempt has no log; a service with no reader answers `Unavailable` instead,\nand the two answers are load-bearing for the dashboard: only the second is a deployment\ncondition, and the panel that collapsed them told operators task logging was switched off when\nit was not. The Go facade is `storecontract.TaskLogStore` (2 methods), carried by\n`*staterpc.Client` alongside the rest.\n\nThe step-execution pair was added by the execution tree's plan item 3 (see\n`docs/prds/execution-tree-state-machine.md`), the surface a task-scoped grant reaches for\nits own execution beyond the three `task.Store` RPCs and the workflow-caller pair: the\ncontainer records its stages and its own agent calls with the run credential. Both requests\ncarry the caller's execution ID, which the grant check verifies; `FinishStep` additionally\nverifies, handler-side, that the step really is that execution's. The store writes each\ntransition's `stage_start`/`stage_finish` event row in the same transaction and returns it\nfor the caller's post-commit bus publish. `called_execution_id` is stored for the `call`\nkind but not yet carried on the wire: the named consumer is the workflow-call recording\nthat will set it.\n\nThe workflow-caller pair was added by `archie-core-t2db.41` (see everything else from the caller's\nrow and refuses a caller that is not running or a call past the depth limit\n(`ErrCallCallerNotRunning` / `ErrCallDepthExceeded`), and `WorkflowCallStatus`\nre-checks the parent-child relation against the row before answering\n(`ErrCallNotYours`), so the interceptor itself never reads the database. The\nfacade is `workflow/task.Caller` (2 methods), carried by `*staterpc.Client`\nand the PostgreSQL store alike.\n\nThe playbook pair was added by `archie-core-t2db.17`'s implementation (see\n`docs/prds/eda-playbook-engine.md`, execution-time gap 2). It is administrative\nfor the same reason as the config-snapshot and apply-status pairs, and\ndeny-by-default in `authorizesTaskScopedCall` covers it without a new rule. The\nrow is the structural `(playbook_id, playbook_version, event_id, action_id)`\ntuple, written **before** the action's side effect fires (the reverse of\n`binding_dispatches`), so a duplicate returns `store.ErrAlreadyDispatched` and\nthe coordinator skips the invoke rather than repeating a non-revocable side\neffect. `DeletePlaybookDispatches` is the explicit reclamation primitive; nothing\ncalls it automatically, because a playbook file's absence at boot is not a\ndeliberate removal (`eda-playbook-engine.md`, \"Lifetime\"). The Go facade is\n`storecontract.PlaybookDispatcher` (2 methods), carried by `*staterpc.Client`\nalongside the rest.\n\n### Domain types and `values.go` mapping\n\n`values.go` maps proto ⇄ these types. The task model for the **agent** path is the domain-owned\n`workflow.Task` (§4); the daemon/webui store surfaces return the same `workflow.Task` (the store\npersists the domain type).\n\n| Domain type | Package | Notes for `values.go` |\n| ------------------------------------- | -------------------------- | -------------------------------------------------------------------------------------------------------------- |\n| `workflow.Task` | `internal/domain/workflow` | time fields stored as layout strings; convert to/from `google.protobuf.Timestamp` |\n| `events.Event` | `internal/events` | `Timestamp` → `google.protobuf.Timestamp` |\n| `store.CapturedEvent` | `internal/store` | headers/body/remote_addr; body capped 256 KiB |\n| `mapping.Mapping` | `internal/domain/mapping` | JSON-path field bindings |\n| `binding.Binding` | `internal/domain/binding` | secret is **already decrypted** before returning; keep decrypted form out of any durable/logged representation |\n| `workflow.Status` / `workflow.Source` | `internal/domain/workflow` | enum-like; map to proto enum or string, keeping the names stable for compatibility |\n| `store.WorkflowStat` | `internal/store` | aggregate row |\n| `store.StageStat` | `internal/store` | aggregate row |\n| `store.DayTokens` | `internal/store` | aggregate row |\n\n### Wire-contract blocker fixed here: `RecordDispatch`\n\n`store.BindingDispatcher.RecordDispatch(ctx, tx *sql.Tx, bindingID, bindingVersion int64,\ncaptureID int64, taskID int64) error` takes a **`*sql.Tx`** that cannot cross a gRPC boundary.\n\n**Evidence that the `*sql.Tx` is removable:** the dispatch loop calls `RecordDispatch(ctx, nil,\n…)` (`internal/daemon/daemon.go`). The implementation falls back to the store's own\n`*sql.DB` when `tx == nil` (\"best-effort, not atomic\"; the comment and the\n`TestRecordDispatchViaExplicitTx` test are the only consumers of the non-nil `tx` path).\nProduction never opens the explicit transaction.\n\n**Decision:** the contract drops `*sql.Tx` from `RecordDispatch` (the method becomes\n`RecordDispatch(ctx, bindingID, bindingVersion, captureID, taskID) error`). The store service\nowns any transaction boundary internally when atomicity is wanted; the at-most-once\nguarantee is the `INSERT OR IGNORE` dedup row, which is already transactionless in production.\n`TestRecordDispatchViaExplicitTx` is superseded by the store service's own internal-transaction\ntest. **This is a required interface migration that must land before or with `.4.2`** (the\ncurrent `interface.go` signature and test still use the transaction-bearing form).\n\n---\n\n## 6. Agent State Store client handoff\n\nMoving the agent from NATS `storerpc` to gRPC `workflow.Store` requires the agent process to\nreceive a State Store endpoint. The agent already receives its NATS connection settings via\nboot-time env/flags (see `cmd/archie-agent/main.go`: `-nats-url` / `NATS_URL`, `NATS_TOKEN`\nenv), and the daemon injects them into the task container. The State Store handoff follows the\nsame seam.\n\n**Boot handoff contract (additive, not replacing the NATS settings):**\n\n| Field | Where | Source | Notes |\n| ------------------ | ---------------------- | ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| `StateStoreTarget` | `agentworker.Settings` | env `STATE_STORE_URL` (or `-state-store-url` flag), set by the daemon in the container env | `host:port` of the State Store gRPC server. Loopback/Docker-bridge address — the agent reaches it the same way it reaches the daemon's NATS. |\n| `StateStoreToken` | `agentworker.Settings` | env `STATE_STORE_TOKEN` (or `-state-store-token` flag) | Per-task bearer token carried in gRPC metadata by a client interceptor (see §9). |\n| `StoreTimeout` | `agentworker.Settings` | a bounded per-call timeout | Mirrors `natsrpc.Client.Timeout` / the existing `rpcTimeout`; bounds each State Store call when the caller `ctx` has no deadline. |\n\n**Wiring change in the transport façade:**\n\n- `internal/infrastructure/agenttransport/nats.Transport` — `Store(timeout) store.WorkflowStore`\n returns `\u0026storerpc.Client{Conn: t.conn, Timeout: timeout}`. It becomes\n `Store(timeout) workflow.Store` and returns a _single long-lived_ `staterpc.Client` dialled to\n `settings.StateStoreTarget` (with the token interceptor and per-call timeout).\n- `internal/app/agentworker/worker.go` `Settings` gains the three fields above; `taskServiceTransport`\n and `taskDependencies` change their `store` type from `store.WorkflowStore` to\n `workflow.Store` (via `domain/workflow.TaskContext{Store: …}`).\n- Reconnect/deadline: `grpc.NewClient` (or the existing dial path) provides transparent reconnect;\n each RPC is bounded by the per-call context deadline (`StoreTimeout`), matching the\n request/reply timeout the NATS path used. No streaming is involved, so no server-sent\n reconnect semantics apply.\n\n**Deletion rule for the NATS path:** the NATS `storerpc` (Server, Client, subjects\n`archie.store.update|transition|insert_event`) is deleted **only after** the agent has fully\nmoved to gRPC and the container env carries `STATE_STORE_URL`. Until then both paths may coexist\n(agent flips when the daemon starts injecting `STATE_STORE_URL`); there is no dual-live window\nacross a single agent process, which is either NATS-backed or gRPC-backed, never both.\n\n### Operational specifics (in-process listener → address → per-task injection)\n\n- **Who binds the in-process State Store listener:** the daemon (`archied`), at bootstrap, when\n the State Store is served in-process/multiplexed (mirroring `serveGateway` in\n `internal/app/archied/gateway.go`): a `grpc.NewServer()` + `RegisterServer` + graceful stop on\n `ctx.Done()`.\n- **Address selection (Docker-bridge reachable):** reuse the host-gateway resolution already used\n for embedded NATS (`internal/container/network.go` `RequireHostGateway` /\n `resolveHostGateway`). Per §9's single listener-topology rule, the listener binds the\n **host-gateway bridge address** when agent containers consume it (the Phase 2 default), or\n loopback-only when the daemon is the sole consumer. The chosen address is stored on the daemon\n as `d.ConnectedStateStore.URL` (analogous to `d.ConnectedNATS.URL`).\n- **Per-task injection:** `containerEnv(task)` (`internal/daemon/daemon.go`) appends\n `STATE_STORE_URL=\u003cd.ConnectedStateStore.URL\u003e` and `STATE_STORE_TOKEN=\u003ctoken\u003e` alongside the\n existing `NATS_URL`/`NATS_TOKEN`. The agent reads them via env (`-state-store-url` /\n `STATE_STORE_URL`, `-state-store-token` / `STATE_STORE_TOKEN`), the same seam as `NATS_URL`. A\n reloaded `[services.state]` must not point new containers at a store the daemon is not serving\n — the same immutability rule as NATS.\n\n---\n\n## 7. Error semantics\n\n### Current state (both boundaries lose error identity)\n\n- **NATS `natsrpc.Envelope`** (`internal/natsrpc/natsrpc.go`) serialises any error to a single\n `err.Error()` string and rehydrates a fresh `errors.New(string)`. The original type, `%w`\n chain, and sentinel identity are lost → `errors.Is(err, store.ErrStaleTransition)` is\n **false** across the boundary.\n- **gRPC `gatewayrpc`** returns raw `err` from handlers; gRPC-Go converts to\n `codes.Unknown` with only the message. The **only** explicit code in the repo is\n `codes.Unavailable` for a missing session store (`server.go`). No status-code mapping for\n store errors exists.\n\n### Decision — structured mapping so `errors.Is` survives\n\nThe `StateStore` service must map the store's sentinel errors to canonical gRPC codes and\nrehydrate them to the _same_ sentinels on the client, so consumer `errors.Is` checks keep\nworking — an improvement over the flattening it replaces, not a regression.\n\n| Store sentinel / outcome | gRPC code | Client rehydrates to |\n| ------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | ---------------------------- |\n| `store.ErrStaleTransition` | `FailedPrecondition` | `store.ErrStaleTransition` |\n| `store.ErrBindingNotFound` | `NotFound` | `store.ErrBindingNotFound` |\n| `store.ErrMappingNotFound` | `NotFound` | `store.ErrMappingNotFound` |\n| `store.ErrBindingOverlap` | `FailedPrecondition` | `store.ErrBindingOverlap` |\n| `store.ErrBindingTransition` | `FailedPrecondition` | `store.ErrBindingTransition` |\n| `store.ErrAlreadyDispatched` | `AlreadyExists` | `store.ErrAlreadyDispatched` |\n| not-found-as-`(nil,nil)` (`TaskByID`, `GetBinding`, `GetMapping`, `ClaimNext`, `ClaimByIssue`, …) | `NotFound` with a `found=false` field (**not** an error) | `(nil, nil)` |\n| infra / wrapped error | `Internal` (**sanitised** message, see below) | wrapped `fmt.Errorf(...%w)` |\n| capability absent | `Unavailable` | context/typed error |\n\nThe `found=false`-not-error convention matters: the repo deliberately returns `(nil, nil)` for\nnot-found in reads and a sentinel for not-found in writes. The wire must preserve **both**\nconventions (a `GoogleRPCStatus` with `NotFound` is an _error_, which would wrongly surface to\ncallers that expect `(nil, nil)`). Implement `found` as an explicit boolean field on read\nresponses, and map `(nil,nil)` ⇄ `found=false` + `OK`.\n\n### Error-detail sanitisation (rev. 2c)\n\nFull internal error messages must **not** be placed in gRPC `details` for remote callers. SQL\npaths, provider/forge details, secrets, and stack traces are sensitive internals. The rule:\n\n- **Sentinel errors** — the client rehydrates the sentinel from the code; the message string in\n `status.Error` is a short, public, stable phrase (e.g. `\"stale transition\"`), not the raw\n wrapped chain.\n- **Infra errors** — the wire carries a **sanitised** public message + the `Internal` code.\n The **full** error (with `%w` chain, SQL, provider detail) is logged **server-side only** by\n the store service. The client rehydrates a generic wrapped error and must not surface the raw\n text to users.\n\n---\n\n## 8. Limits\n\n**Interface bloat (`interfacebloat` cap = 8)** — `.golangci.yml` `interfacebloat: max: 8`,\nwhich overrides the upstream default of 10. The Go consumer facades must stay ≤8 methods.\n`TaskLifecycle` is exactly 8 (at the cap); `TaskStore` is the 24-method composite that the cap\nis why it is decomposed; proto services bypass the cap (like `ChatContract`).\n\n**Payload caps:**\n\n- Capture body: `defaultCaptureMaxBodyBytes = 256 KiB` (may reduce further; the wire message\n must not exceed gRPC's default 4 MiB receive limit for a single capture). A single capture\n fits, but a _batch_ of them did not: the caller-side cap of up to 100 captures at 256 KiB each\n could exceed 4 MiB in one unary `ListCaptures`/`ListUndispatchedCaptures` response. `.4.7` adds\n `StreamCaptures`/`StreamUndispatchedCaptures` (server-streaming, one capture per message) as\n the path both `staterpc.Client` methods actually call; the original unary RPCs stay defined,\n unmodified and deprecated, only so `buf breaking` protects an in-flight rolling deploy.\n- Task `detail`/`park_reason`/event `Detail`: 4000-char hard cap (`clip(s, 4000)`).\n\n**Retention (stays server-side in the store; the wire does not carry pruning decisions):**\n\n- `events` table: **no prune, unbounded growth** — a known risk to revisit, not changed here.\n- `captured_events`: prune-on-write, default 7 days / 5000 events.\n\n**Pagination/arity:** store read methods take a raw `int limit` (no store-side cap); the\ncaller-side caps (task list 100, log 2000, captures 100, capture scan window 5000, binding\ndispatch batch 100, session list 20) remain caller-side. The wire passes `limit int` and returns\n`[]*` slices, mirroring the existing Go signatures — **no cursor/paging protocol is introduced**\nin this work (the current `EventsSince(sinceID, limit)` offset cursor is the only one, and it\nstays as-is).\n\n---\n\n## 9. Transport security boundary\n\nThe gateway precedent is loopback-only, unauthenticated gRPC. The State Store holds the\ncrown-jewel `archie.db` (task/event/capture/mapping/binding data), so its boundary must be\nstated explicitly rather than left implicit.\n\n**The State Store's equivalent boundary (rev. 2c):**\n\n- **Listener topology — single rule (rev. 2c).** One in-process listener; its bind address is\n chosen by the consumer set, never both at once:\n - _Agent containers consume it_ (the Phase 2 driver during multiplexed serving) → bind to the\n **host-gateway bridge address** so containers can reach it, and **token auth is mandatory**\n (a bridge host is reachable by any process on that bridge). A container **cannot reach the\n host's `127.0.0.1`**, so loopback-only is NOT usable for the agent-consumed path.\n - _Only the daemon consumes it_ (no agent) → bind **loopback-only** (`--listen 127.0.0.1`),\n `insecure` is fine because it is not network-reachable; no token required.\n - There is **no dual-listener** design. The practical default during `.4.2` (the reason\n in-process serving exists is to give the agent a gRPC target) is the **bridge address +\n token**. `127.0.0.1` is reserved for the daemon-local-only case.\n- **Agent access → the container bridge.** The agent runs in a task-scoped container on the\n host and reaches the State Store over the Docker bridge gateway (the bind address from the\n topology rule above), exactly as it reaches the daemon's NATS. To close the \"any host\n process could reach the store\" gap, the agent **authenticates with a per-task bearer token**\n carried in gRPC metadata by a client interceptor (`StateStoreToken`, §6). Network\n reachability + the token is the trust boundary for the default bridge topology.\n- **The daemon** uses the local adapter (`*store.Store`) in-process by default, so no network\n boundary exists until `[services.state].target` is set; when it is set, the daemon client\n authenticates with a token supplied alongside the target.\n- **Non-loopback / k8s:** TLS/mTLS is an **operator decision**, not a default. Any non-loopback\n exposure (e.g. `--listen 0.0.0.0`, a CDN, a cross-host service) requires an explicit decision\n and mTLS or token auth — mirroring the gateway's `--listen`/`--enable-cors-header`\n confirmation caveat. The NATS-KV discovery fallback supplies endpoints but does not add\n transport security; that stays the operator's responsibility.\n\n### Token lifecycle (rev. 2c; scoping added in `.4.7`)\n\n- **Generation:** the daemon generates a per-task bearer token when it acquires the container\n (or per incumbence) and injects it via `containerEnv` as `STATE_STORE_TOKEN`. A single token\n may cover a task's container lifetime.\n- **Registration (`.4.7`, post-standalone-cutover):** the State Store is now its own process\n (`.4.3`/`.4.6`), so the daemon can no longer just hold an in-process issued-token set for the\n server to check — it registers the token at the remote authority via the\n `RegisterTaskGrant`/`RevokeTaskGrant` RPCs (`staterpc.GrantIssuer`, `daemon.StateStoreGrantIssuer`),\n admin-token-authenticated calls a task-scoped token itself can never make.\n- **Lifetime:** tied to the task + container grace period; rotated on a new container acquisition\n for the same task; a token for a released container is invalidated (`RevokeTaskGrant`, deferred\n alongside `ContainerPool.Release`). An unrevoked grant still expires server-side (bounded by\n `RegisterTaskGrantRequest.lifetime_seconds`, capped at 7 days) so a daemon crash before revoke\n cannot leave a grant valid indefinitely.\n- **Validation and scope (`.4.7`):** a gRPC interceptor (`staterpc.TaskGrants.UnaryInterceptor`)\n validates the token against the State Store's own issued-grant set; missing/unknown/expired →\n `codes.Unauthenticated`. Unlike the daemon's own administrative token (full access to all RPCs),\n a task-scoped grant additionally authorises only `Update`/`Transition`/`InsertEvent` on\n its own task ID, plus the two workflow-caller RPCs naming that same task ID\n (`EnqueueCallTask`/`WorkflowCallStatus`, `docs/prds/workflow-calls.md` — the one\n sanctioned widening: the callee is the caller's child). Every other RPC, including the\n streaming capture surface and\n `RegisterTaskGrant`/`RevokeTaskGrant` themselves, is `codes.PermissionDenied` for a task-scoped\n caller. The token is carried in gRPC metadata, never in a URL.\n\n### Fail-closed on non-loopback (rev. 2c)\n\nIf `[services.state].target` points to a non-loopback address and **neither** TLS **nor** a token\nis configured, the State Store client (daemon or agent) **fails closed** — it refuses to\nstart/dial rather than fall back to a plaintext, unauthenticated remote connection. This mirrors\nthe gateway's `--listen`/`--enable-cors-header` confinement caveat and prevents a silent\nunauthenticated remote store. The loopback + token default is the only path that starts without\nan explicit operator decision.\n\n---\n\n## 10. Mode / config shape\n\n**Follow the gateway's presence-based `target` seam, not the NATS `mode` enum.**\n\n- **Services are keyed by name, not named as struct fields.** A\n `State ServiceConnection` field per service is the duplication\n `docs/prds/service-registry.md` removes, and this document's summary describes\n the seam as `[services.\u003cname\u003e]`:\n ```go\n type Services map[string]ServiceConnection\n ```\n registered once via `RegisterService(context, name, target, listen, tokenEnv)`. The TOML\n shape below is unchanged, so nothing else in this section is affected; read\n `cfg.Services.Get(\"state\")` wherever it says `cfg.Services.State`.\n- **Empty `Target` → startup error.** The local `*store.Store` adapter default was\n withdrawn when the State Store was extracted (§12 step 7): the standalone `archie-state-store` process\n exclusively owns `archie.db`, so both `archied` and `archie-gateway` now reject an empty\n target (`internal/app/archied/bootstrap.go` and `state_store_client.go`: `services.state.target\nis required`). **Set `Target` → dial gRPC** with `*staterpc.Client`; no client opens the\n database itself. This differs from the gateway, where `Target` is defaulted to\n `127.0.0.1:8585` because `archie-gateway` is already a separate process whose client and\n server share one default.\n- `[services.state]` is present and **uncommented** in `config.example.toml`, with `target`\n marked REQUIRED, because the value is load-bearing for every client. A commented-out\n `target` cannot boot, so the section ships uncommented.\n- Composition root: `internal/app/archied/bootstrap.go` (the daemon) and\n `internal/app/archieui/config.go` (the UI process) both read `cfg.Services.Get(\"state\")` and\n dial the remote State Store. The task store is built only in the standalone\n `archie-state-store` process (`internal/app/archied/state_store.go`), which is the only path\n that opens the task tables.\n\n\u003e **Mode fork, decided.** The gateway uses a single `target` address (no enum). The State Store\n\u003e boundary uses the same seam for symmetry, and **both now require a non-empty `target`**: the\n\u003e State Store's local-store default was withdrawn when the process was extracted (§12 step 7).\n\u003e No `mode` field is added. A companion `STATE_STORE_TOKEN` secret (or a\n\u003e `[services.state] target_token` key) carries authentication.\n\n---\n\n## 11. Local-adapter compatibility + conformance\n\n- `*store.Store` (local) and `*staterpc.Client` (remote) satisfy the **same** contract\n interfaces. Use **explicit** `var _` assertions on **both** adapters (the gateway's local\n adapters use only structural/return-type assertions; the store precedent's explicit `var _`\n style is stronger and should be adopted on both sides).\n ```go\n var _ workflow.Store = (*staterpc.Client)(nil) // first contract to move (agent)\n var _ store.TaskStore = (*staterpc.Client)(nil) // daemon path, added progressively\n var _ store.CaptureStore = (*staterpc.Client)(nil)\n var _ store.MappingStore = (*staterpc.Client)(nil)\n var _ store.BindingStore = (*staterpc.Client)(nil)\n var _ store.BindingDispatcher = (*staterpc.Client)(nil)\n var _ store.BindingTaskCreator = (*staterpc.Client)(nil)\n var _ store.PlaybookDispatcher = (*staterpc.Client)(nil)\n // local side (in store), already present:\n var _ workflow.Store = (*Store)(nil)\n ```\n- **Conformance suite:** a `staterpc/conformance_test.go` bufconn suite runs the **same**\n contract through both `\"local\"` and `\"grpc\"` adapters (mirroring\n `gatewayrpc/conformance_test.go`), asserting error-sentinel fidelity and the\n not-found-as-`(nil,nil)` convention both ways.\n- **`Close()`:** stays on the Go store interfaces (so `TaskStore`/`TaskEvents` remain fully\n satisfiable) but is **not** a `StateStore` RPC. The remote `staterpc.Client` implements\n `Close()` as a **no-op**; the store service owns its own DB lifecycle. When the daemon hands\n the store to `archie-state-store`, `b.cleanup()` no longer calls `store.Close()` on a remote\n client (it is the daemon's own lifecycle only when it owns the store in-process).\n\n---\n\n## 12. Cutover / deletion rules\n\n1. **Ratify the contract (this document).** No code.\n2. **Domain type + interface relocation (prerequisite, coupled with §4).** Move `Task`/`Status`/\n `Source` and the `WorkflowStore` interface into `internal/domain/workflow` (as\n `workflow.Task`/`workflow.Status`/`workflow.Source`/`workflow.Store`), so\n `internal/domain/workflow` imports no `internal/store`. Update the store tests and the 6\n workflow production files. **This must land before or with `.4.2`, because `.4.2` cannot move\n the agent's store contract off `store.WorkflowStore` while the domain still imports it.**\n3. **`.4.2` — generalise `storerpc` to the gRPC contract.** Move the agent's `workflow.Store`\n (`Update`/`Transition`/`InsertEvent`) from NATS JSON `storerpc` to `staterpc.Client` over\n gRPC, using the §6 handoff. The daemon serves the gRPC `StateStore` server **in-process\n (multiplexed)** first so the agent has a gRPC target before the standalone binary exists\n (PRD §3 \"multiplexed in-process is the migration default\"). Bind the in-process listener and\n inject `STATE_STORE_URL`/`STATE_STORE_TOKEN` per task (see §6 \"Operational specifics\"). Also\n land the `RecordDispatch` `*sql.Tx` drop (see §5) in the same span. Flip the agent's\n `Transport.Store` to a gRPC client once `STATE_STORE_URL` is injected.\n4. **Delete NATS `storerpc` only after the agent is fully on gRPC** — delete `internal/storerpc`\n (Server, Client, subjects `archie.store.update|transition|insert_event`), the\n `natsrpc.RegisterAll` registration, and the now-unused `store.WorkflowStore` NATS path in\n `internal/infrastructure/agenttransport/nats`, in the same commit.\n5. **`[services.state].target` stays empty (inproc)** through `.4.2`; the `archie-state-store`\n `cmd/` binary is **`.4.3`** and hosts the same `StateStore` gRPC service.\n6. **Swap daemon-internal contracts one at a time** (only once the daemon points at\n `archie-state-store`): `Capture → Mapping → Binding → TaskStore`. Each swap is independent —\n add the remote-client composition path, run the per-contract conformance suite, flip\n `[services.state].target`, delete the local use. A consumer mixes in-process and remote\n contracts for a contract-code (no dual-live _window_; each contract is either local or remote\n at a time).\n7. **Final flip / deletion of the in-process serving path:** when the daemon no longer owns the\n store (i.e. `TaskStore` has moved), delete the in-process task-store /\n `wireWebStoreSurfaces` path in the daemon in a **same-commit** deletion — no dual-store\n ownership. The single SQLite file remains owned by `archie-state-store`.\n8. **Never** split `archie.db` or add a second store. The gateway keeps its own already-separate\n session SQLite; that is unchanged and out of state-store scope.\n\n---\n\n## 13. Decisions recorded (for the review trail)\n\n- **`internal/store` is a transitional compatibility location** (target\n `internal/infrastructure/store`), not the final infrastructure boundary. The producer-owned\n daemon/webui store surfaces live there now but may relocate with the implementation.\n- **In-process listener + token lifecycle:** the daemon binds the in-process State Store\n listener to the **host-gateway bridge address** when agent containers consume it (the Phase 2\n default) or loopback-only when the daemon is the sole consumer — one listener, one address\n rule, never both (rev. 2c). It selects the bridge address by reusing the embedded-NATS\n host-gateway resolution and injects `STATE_STORE_URL`/`STATE_STORE_TOKEN` per task via\n `containerEnv`. Token is per-incumbence (task + container grace period) and validated by a\n gRPC interceptor → `codes.Unauthenticated` on missing/unknown/expired. Non-loopback targets\n fail closed without TLS or a token.\n- **§12 step 2 (domain type + interface relocation) is done** — `internal/domain/workflow`\n imports no `internal/store` symbol and `store.WorkflowStore` is gone from `TaskContext`. The\n broader Phase 2 acceptance criterion (State Store as its own gRPC service) is still open;\n `.4.2` picks up from here.\n- **Ownership split:** domain-facing workflow contract is **consumer-owned** in the domain\n (`workflow.Store` + `workflow.Task`/`Status`/`Source`, per dependency rules #2 and #7);\n daemon/webui store surfaces stay **producer-owned** in `internal/store`. `store.WorkflowStore`\n is superseded by `workflow.Store`.\n- **One `StateStore` gRPC service** (49 contract RPCs, grouped by contract) + narrow Go consumer facades\n (≤8) on `staterpc.Client` — mirrors the single-`ChatService` precedent.\n- **Domain type relocation** (`Task`/`Status`/`Source` → `internal/domain/workflow`) is a\n Phase 2 prerequisite, pulled forward from migration-decisions §4 (minimal bound,\n `Task → WorkflowExecution`); the rest of §4 stays a separate migration.\n- **`RecordDispatch` drops `*sql.Tx`** (wire-blocker; production passes `nil`) — a\n required interface migration landing before/with `.4.2`.\n- **`Close()` not on the wire**; remote client `Close()` is a no-op.\n- **Structured gRPC error codes** with client rehydration to store sentinels (preserves\n `errors.Is`), a `found=false` + `OK` convention for read not-found, and **sanitised public\n error details** (full detail logged server-side only).\n- **Agent handoff:** `agentworker.Settings` gains `StateStoreTarget`/`StateStoreToken`/\n `StoreTimeout`, injected as `STATE_STORE_URL`/`STATE_STORE_TOKEN` env (mirrors the NATS\n handoff); `Transport.Store` returns a long-lived gRPC `workflow.Store` client.\n- **Transport security + listener topology (rev. 2c):** one in-process listener, bound to the\n host-gateway bridge address when agent containers consume it (the Phase 2 default) or\n loopback-only for a daemon-local-only consumer. `insecure` only on loopback; mandatory\n per-task bearer-token auth on the bridge; TLS/mTLS is an operator choice for any\n non-loopback/k8s topology.\n- **Mode = presence-based `[services.state].target`**, default **local** (not yet extracted);\n add `[services.state]` to `config.example.toml`.\n- **Explicit `var _` assertions on both adapters**; per-contract bufconn conformance.\n- **Migration order:** domain type/interface relocation → `workflow.Store` (agent) → stand up\n `archie-state-store` → `Capture` → `Mapping` → `Binding` → `TaskStore`; NATS `storerpc`\n deleted once the agent is on gRPC; in-process store path deleted in a same-commit flip.\n- **Orphans `ClearTerminalTasks`/`IncrementRetryCount`** retained but not built upon.\n" }, { "url": "/dev/prds/status-health-surface/", diff --git a/docs/prds/state-store-contract.md b/docs/prds/state-store-contract.md index 55e53d565..1939e1114 100644 --- a/docs/prds/state-store-contract.md +++ b/docs/prds/state-store-contract.md @@ -266,13 +266,14 @@ _view_, not new RPCs — `Update`/`Transition`/`InsertEvent` are shared with | Dispatch | `ArmedBindingsForSource`, `RecordDispatch`, `ListUndispatchedCaptures` | | Playbook | `RecordPlaybookDispatch`, `DeletePlaybookDispatches` | | WorkflowCaller | `EnqueueCallTask`, `WorkflowCallStatus` | +| Step executions | `StartStep`, `FinishStep` | | BindingTaskCreator | `EnqueueBindingTask` | | Config snapshot | `PutConfigSnapshot`, `GetConfigSnapshot` | | Apply status | `PutApplyStatus`, `ListApplyStatus` | | Channel status | `PutChannelStatus`, `ListChannelStatus` | | Task log | `ReadTaskLog`, `StreamTaskLogContent` | -That is **53 unique contract RPCs** across one service (the `TaskEvents.Close` method is dropped). +That is **55 unique contract RPCs** across one service (the `TaskEvents.Close` method is dropped). `Close()` is **excluded** from the wire (it is server lifecycle, not a client call) — see §11. The channel-status pair follows the config snapshot's split for the same reason: the writer is the process that HOSTS the channels -- the Messaging Service, which alone observes whether a channel is starting, running or failed -- and the reader is the UI process. Both RPCs are administrative, so a task-scoped grant reaches neither. A channel's state is runtime state rather than a settings document, which is why it is not a `ControlPlaneService` resource kind: a failed channel is not a document anybody edits. Asking for a reload travels on its own surface rather than through this one; see `docs/architecture/migration-decisions.md`, "Channel state to the dashboard". @@ -307,12 +308,18 @@ condition, and the panel that collapsed them told operators task logging was swi it was not. The Go facade is `storecontract.TaskLogStore` (2 methods), carried by `*staterpc.Client` alongside the rest. -The workflow-caller pair was added by `archie-core-t2db.41` (see -`docs/prds/workflow-calls.md`). It is the one surface a task-scoped grant -reaches beyond the three task.Store RPCs: a `workflow.call` step must start -its callee and, with `wait: true`, read it back, and the callee is the -caller's child. Both requests carry the caller's task ID, which the grant -check verifies; `EnqueueCallTask` derives everything else from the caller's +The step-execution pair was added by the execution tree's plan item 3 (see +`docs/prds/execution-tree-state-machine.md`), the surface a task-scoped grant reaches for +its own execution beyond the three `task.Store` RPCs and the workflow-caller pair: the +container records its stages and its own agent calls with the run credential. Both requests +carry the caller's execution ID, which the grant check verifies; `FinishStep` additionally +verifies, handler-side, that the step really is that execution's. The store writes each +transition's `stage_start`/`stage_finish` event row in the same transaction and returns it +for the caller's post-commit bus publish. `called_execution_id` is stored for the `call` +kind but not yet carried on the wire: the named consumer is the workflow-call recording +that will set it. + +The workflow-caller pair was added by `archie-core-t2db.41` (see everything else from the caller's row and refuses a caller that is not running or a call past the depth limit (`ErrCallCallerNotRunning` / `ErrCallDepthExceeded`), and `WorkflowCallStatus` re-checks the parent-child relation against the row before answering diff --git a/internal/app/agentworker/task_execution_test.go b/internal/app/agentworker/task_execution_test.go index b72e8da2f..88680e51c 100644 --- a/internal/app/agentworker/task_execution_test.go +++ b/internal/app/agentworker/task_execution_test.go @@ -383,6 +383,7 @@ func startStateStoreGRPC(t *testing.T, local *pgstore.TaskDB) string { staterpc.RegisterServer(server, staterpc.Deps{ Tasks: local, Captures: eda, Mappings: eda, Bindings: eda, BindingDispatcher: eda, BindingTaskCreator: local, WorkflowCalls: local, + Steps: local, }) go func() { _ = server.Serve(listener) }() t.Cleanup(func() { server.Stop(); _ = listener.Close() }) diff --git a/internal/app/archied/state_store.go b/internal/app/archied/state_store.go index 0bbfff103..6ebb4fcb0 100644 --- a/internal/app/archied/state_store.go +++ b/internal/app/archied/state_store.go @@ -346,6 +346,9 @@ func (b *boot) stateStoreDeps(grants *staterpc.TaskGrants) staterpc.Deps { if wc, ok := b.st.(storecontract.WorkflowCaller); ok { deps.WorkflowCalls = wc } + if sr, ok := b.st.(storecontract.StepRecorder); ok { + deps.Steps = sr + } b.accessDeps(&deps) if css, ok := b.st.(storecontract.ConfigSnapshotStore); ok { deps.ConfigSnapshots = css diff --git a/internal/contracts/state/v1/state.pb.go b/internal/contracts/state/v1/state.pb.go index 189fc3c35..36970096f 100644 --- a/internal/contracts/state/v1/state.pb.go +++ b/internal/contracts/state/v1/state.pb.go @@ -3381,6 +3381,274 @@ func (*TransitionResponse) Descriptor() ([]byte, []int) { return file_state_v1_state_proto_rawDescGZIP(), []int{47} } +type StartStepRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // execution_id is the WorkflowExecution (the tasks row) the step belongs + // to, and the task ID the run credential is scoped to. + ExecutionId int64 `protobuf:"varint,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + Attempt int64 `protobuf:"varint,2,opt,name=attempt,proto3" json:"attempt,omitempty"` + // parent_id is 0 when the step is a stage; otherwise it names the enclosing + // StepExecution, from which the store derives depth. + ParentId int64 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` + // kind is stage, agent or call. + Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartStepRequest) Reset() { + *x = StartStepRequest{} + mi := &file_state_v1_state_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartStepRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartStepRequest) ProtoMessage() {} + +func (x *StartStepRequest) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[48] + 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 StartStepRequest.ProtoReflect.Descriptor instead. +func (*StartStepRequest) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{48} +} + +func (x *StartStepRequest) GetExecutionId() int64 { + if x != nil { + return x.ExecutionId + } + return 0 +} + +func (x *StartStepRequest) GetAttempt() int64 { + if x != nil { + return x.Attempt + } + return 0 +} + +func (x *StartStepRequest) GetParentId() int64 { + if x != nil { + return x.ParentId + } + return 0 +} + +func (x *StartStepRequest) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +func (x *StartStepRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type StartStepResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + StepId int64 `protobuf:"varint,1,opt,name=step_id,json=stepId,proto3" json:"step_id,omitempty"` + // event is the transition's stage_start row, already persisted; the caller + // publishes it to its bus after the write commits (the daemon's event sink + // skips already-persisted rows by their assigned ID). + Event *Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StartStepResponse) Reset() { + *x = StartStepResponse{} + mi := &file_state_v1_state_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StartStepResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartStepResponse) ProtoMessage() {} + +func (x *StartStepResponse) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[49] + 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 StartStepResponse.ProtoReflect.Descriptor instead. +func (*StartStepResponse) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{49} +} + +func (x *StartStepResponse) GetStepId() int64 { + if x != nil { + return x.StepId + } + return 0 +} + +func (x *StartStepResponse) GetEvent() *Event { + if x != nil { + return x.Event + } + return nil +} + +type FinishStepRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // execution_id names the run the step belongs to. The grant check verifies + // it against the credential, and the store verifies the step really is that + // execution's, so a caller cannot move another run's step by naming it. + ExecutionId int64 `protobuf:"varint,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + StepId int64 `protobuf:"varint,2,opt,name=step_id,json=stepId,proto3" json:"step_id,omitempty"` + From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + Detail string `protobuf:"bytes,5,opt,name=detail,proto3" json:"detail,omitempty"` + TokensUsed int64 `protobuf:"varint,6,opt,name=tokens_used,json=tokensUsed,proto3" json:"tokens_used,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FinishStepRequest) Reset() { + *x = FinishStepRequest{} + mi := &file_state_v1_state_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FinishStepRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FinishStepRequest) ProtoMessage() {} + +func (x *FinishStepRequest) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[50] + 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 FinishStepRequest.ProtoReflect.Descriptor instead. +func (*FinishStepRequest) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{50} +} + +func (x *FinishStepRequest) GetExecutionId() int64 { + if x != nil { + return x.ExecutionId + } + return 0 +} + +func (x *FinishStepRequest) GetStepId() int64 { + if x != nil { + return x.StepId + } + return 0 +} + +func (x *FinishStepRequest) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *FinishStepRequest) GetTo() string { + if x != nil { + return x.To + } + return "" +} + +func (x *FinishStepRequest) GetDetail() string { + if x != nil { + return x.Detail + } + return "" +} + +func (x *FinishStepRequest) GetTokensUsed() int64 { + if x != nil { + return x.TokensUsed + } + return 0 +} + +type FinishStepResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // event is the transition's stage_finish row, already persisted. + Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FinishStepResponse) Reset() { + *x = FinishStepResponse{} + mi := &file_state_v1_state_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FinishStepResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FinishStepResponse) ProtoMessage() {} + +func (x *FinishStepResponse) ProtoReflect() protoreflect.Message { + mi := &file_state_v1_state_proto_msgTypes[51] + 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 FinishStepResponse.ProtoReflect.Descriptor instead. +func (*FinishStepResponse) Descriptor() ([]byte, []int) { + return file_state_v1_state_proto_rawDescGZIP(), []int{51} +} + +func (x *FinishStepResponse) GetEvent() *Event { + if x != nil { + return x.Event + } + return nil +} + type UpdateRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` @@ -3390,7 +3658,7 @@ type UpdateRequest struct { func (x *UpdateRequest) Reset() { *x = UpdateRequest{} - mi := &file_state_v1_state_proto_msgTypes[48] + mi := &file_state_v1_state_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3402,7 +3670,7 @@ func (x *UpdateRequest) String() string { func (*UpdateRequest) ProtoMessage() {} func (x *UpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[48] + mi := &file_state_v1_state_proto_msgTypes[52] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3415,7 +3683,7 @@ func (x *UpdateRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead. func (*UpdateRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{48} + return file_state_v1_state_proto_rawDescGZIP(), []int{52} } func (x *UpdateRequest) GetTask() *Task { @@ -3433,7 +3701,7 @@ type UpdateResponse struct { func (x *UpdateResponse) Reset() { *x = UpdateResponse{} - mi := &file_state_v1_state_proto_msgTypes[49] + mi := &file_state_v1_state_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3445,7 +3713,7 @@ func (x *UpdateResponse) String() string { func (*UpdateResponse) ProtoMessage() {} func (x *UpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[49] + mi := &file_state_v1_state_proto_msgTypes[53] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3458,7 +3726,7 @@ func (x *UpdateResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead. func (*UpdateResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{49} + return file_state_v1_state_proto_rawDescGZIP(), []int{53} } type RequeueRequest struct { @@ -3472,7 +3740,7 @@ type RequeueRequest struct { func (x *RequeueRequest) Reset() { *x = RequeueRequest{} - mi := &file_state_v1_state_proto_msgTypes[50] + mi := &file_state_v1_state_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3484,7 +3752,7 @@ func (x *RequeueRequest) String() string { func (*RequeueRequest) ProtoMessage() {} func (x *RequeueRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[50] + mi := &file_state_v1_state_proto_msgTypes[54] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3497,7 +3765,7 @@ func (x *RequeueRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RequeueRequest.ProtoReflect.Descriptor instead. func (*RequeueRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{50} + return file_state_v1_state_proto_rawDescGZIP(), []int{54} } func (x *RequeueRequest) GetTaskId() int64 { @@ -3529,7 +3797,7 @@ type RequeueResponse struct { func (x *RequeueResponse) Reset() { *x = RequeueResponse{} - mi := &file_state_v1_state_proto_msgTypes[51] + mi := &file_state_v1_state_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3541,7 +3809,7 @@ func (x *RequeueResponse) String() string { func (*RequeueResponse) ProtoMessage() {} func (x *RequeueResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[51] + mi := &file_state_v1_state_proto_msgTypes[55] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3554,7 +3822,7 @@ func (x *RequeueResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RequeueResponse.ProtoReflect.Descriptor instead. func (*RequeueResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{51} + return file_state_v1_state_proto_rawDescGZIP(), []int{55} } type ParkTaskRequest struct { @@ -3569,7 +3837,7 @@ type ParkTaskRequest struct { func (x *ParkTaskRequest) Reset() { *x = ParkTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[52] + mi := &file_state_v1_state_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3581,7 +3849,7 @@ func (x *ParkTaskRequest) String() string { func (*ParkTaskRequest) ProtoMessage() {} func (x *ParkTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[52] + mi := &file_state_v1_state_proto_msgTypes[56] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3594,7 +3862,7 @@ func (x *ParkTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkTaskRequest.ProtoReflect.Descriptor instead. func (*ParkTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{52} + return file_state_v1_state_proto_rawDescGZIP(), []int{56} } func (x *ParkTaskRequest) GetTaskId() int64 { @@ -3633,7 +3901,7 @@ type ParkTaskResponse struct { func (x *ParkTaskResponse) Reset() { *x = ParkTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[53] + mi := &file_state_v1_state_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3645,7 +3913,7 @@ func (x *ParkTaskResponse) String() string { func (*ParkTaskResponse) ProtoMessage() {} func (x *ParkTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[53] + mi := &file_state_v1_state_proto_msgTypes[57] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3658,7 +3926,7 @@ func (x *ParkTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ParkTaskResponse.ProtoReflect.Descriptor instead. func (*ParkTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{53} + return file_state_v1_state_proto_rawDescGZIP(), []int{57} } type RecoverStaleRequest struct { @@ -3669,7 +3937,7 @@ type RecoverStaleRequest struct { func (x *RecoverStaleRequest) Reset() { *x = RecoverStaleRequest{} - mi := &file_state_v1_state_proto_msgTypes[54] + mi := &file_state_v1_state_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3681,7 +3949,7 @@ func (x *RecoverStaleRequest) String() string { func (*RecoverStaleRequest) ProtoMessage() {} func (x *RecoverStaleRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[54] + mi := &file_state_v1_state_proto_msgTypes[58] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3694,7 +3962,7 @@ func (x *RecoverStaleRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecoverStaleRequest.ProtoReflect.Descriptor instead. func (*RecoverStaleRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{54} + return file_state_v1_state_proto_rawDescGZIP(), []int{58} } type RecoverStaleResponse struct { @@ -3706,7 +3974,7 @@ type RecoverStaleResponse struct { func (x *RecoverStaleResponse) Reset() { *x = RecoverStaleResponse{} - mi := &file_state_v1_state_proto_msgTypes[55] + mi := &file_state_v1_state_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3718,7 +3986,7 @@ func (x *RecoverStaleResponse) String() string { func (*RecoverStaleResponse) ProtoMessage() {} func (x *RecoverStaleResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[55] + mi := &file_state_v1_state_proto_msgTypes[59] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3731,7 +3999,7 @@ func (x *RecoverStaleResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecoverStaleResponse.ProtoReflect.Descriptor instead. func (*RecoverStaleResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{55} + return file_state_v1_state_proto_rawDescGZIP(), []int{59} } func (x *RecoverStaleResponse) GetCount() int64 { @@ -3752,7 +4020,7 @@ type ArchiveTaskRequest struct { func (x *ArchiveTaskRequest) Reset() { *x = ArchiveTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[56] + mi := &file_state_v1_state_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3764,7 +4032,7 @@ func (x *ArchiveTaskRequest) String() string { func (*ArchiveTaskRequest) ProtoMessage() {} func (x *ArchiveTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[56] + mi := &file_state_v1_state_proto_msgTypes[60] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3777,7 +4045,7 @@ func (x *ArchiveTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ArchiveTaskRequest.ProtoReflect.Descriptor instead. func (*ArchiveTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{56} + return file_state_v1_state_proto_rawDescGZIP(), []int{60} } func (x *ArchiveTaskRequest) GetTaskId() int64 { @@ -3810,7 +4078,7 @@ type ArchiveTaskResponse struct { func (x *ArchiveTaskResponse) Reset() { *x = ArchiveTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[57] + mi := &file_state_v1_state_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3822,7 +4090,7 @@ func (x *ArchiveTaskResponse) String() string { func (*ArchiveTaskResponse) ProtoMessage() {} func (x *ArchiveTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[57] + mi := &file_state_v1_state_proto_msgTypes[61] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3835,7 +4103,7 @@ func (x *ArchiveTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ArchiveTaskResponse.ProtoReflect.Descriptor instead. func (*ArchiveTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{57} + return file_state_v1_state_proto_rawDescGZIP(), []int{61} } func (x *ArchiveTaskResponse) GetEventId() int64 { @@ -3856,7 +4124,7 @@ type RetryTaskRequest struct { func (x *RetryTaskRequest) Reset() { *x = RetryTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[58] + mi := &file_state_v1_state_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3868,7 +4136,7 @@ func (x *RetryTaskRequest) String() string { func (*RetryTaskRequest) ProtoMessage() {} func (x *RetryTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[58] + mi := &file_state_v1_state_proto_msgTypes[62] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3881,7 +4149,7 @@ func (x *RetryTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RetryTaskRequest.ProtoReflect.Descriptor instead. func (*RetryTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{58} + return file_state_v1_state_proto_rawDescGZIP(), []int{62} } func (x *RetryTaskRequest) GetTaskId() int64 { @@ -3913,7 +4181,7 @@ type RetryTaskResponse struct { func (x *RetryTaskResponse) Reset() { *x = RetryTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[59] + mi := &file_state_v1_state_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3925,7 +4193,7 @@ func (x *RetryTaskResponse) String() string { func (*RetryTaskResponse) ProtoMessage() {} func (x *RetryTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[59] + mi := &file_state_v1_state_proto_msgTypes[63] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3938,7 +4206,7 @@ func (x *RetryTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RetryTaskResponse.ProtoReflect.Descriptor instead. func (*RetryTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{59} + return file_state_v1_state_proto_rawDescGZIP(), []int{63} } type BeginRemediationRequest struct { @@ -3951,7 +4219,7 @@ type BeginRemediationRequest struct { func (x *BeginRemediationRequest) Reset() { *x = BeginRemediationRequest{} - mi := &file_state_v1_state_proto_msgTypes[60] + mi := &file_state_v1_state_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3963,7 +4231,7 @@ func (x *BeginRemediationRequest) String() string { func (*BeginRemediationRequest) ProtoMessage() {} func (x *BeginRemediationRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[60] + mi := &file_state_v1_state_proto_msgTypes[64] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3976,7 +4244,7 @@ func (x *BeginRemediationRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BeginRemediationRequest.ProtoReflect.Descriptor instead. func (*BeginRemediationRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{60} + return file_state_v1_state_proto_rawDescGZIP(), []int{64} } func (x *BeginRemediationRequest) GetTaskId() int64 { @@ -4001,7 +4269,7 @@ type BeginRemediationResponse struct { func (x *BeginRemediationResponse) Reset() { *x = BeginRemediationResponse{} - mi := &file_state_v1_state_proto_msgTypes[61] + mi := &file_state_v1_state_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4013,7 +4281,7 @@ func (x *BeginRemediationResponse) String() string { func (*BeginRemediationResponse) ProtoMessage() {} func (x *BeginRemediationResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[61] + mi := &file_state_v1_state_proto_msgTypes[65] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4026,7 +4294,7 @@ func (x *BeginRemediationResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BeginRemediationResponse.ProtoReflect.Descriptor instead. func (*BeginRemediationResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{61} + return file_state_v1_state_proto_rawDescGZIP(), []int{65} } type UpdateReviewPayloadRequest struct { @@ -4039,7 +4307,7 @@ type UpdateReviewPayloadRequest struct { func (x *UpdateReviewPayloadRequest) Reset() { *x = UpdateReviewPayloadRequest{} - mi := &file_state_v1_state_proto_msgTypes[62] + mi := &file_state_v1_state_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4051,7 +4319,7 @@ func (x *UpdateReviewPayloadRequest) String() string { func (*UpdateReviewPayloadRequest) ProtoMessage() {} func (x *UpdateReviewPayloadRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[62] + mi := &file_state_v1_state_proto_msgTypes[66] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4064,7 +4332,7 @@ func (x *UpdateReviewPayloadRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateReviewPayloadRequest.ProtoReflect.Descriptor instead. func (*UpdateReviewPayloadRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{62} + return file_state_v1_state_proto_rawDescGZIP(), []int{66} } func (x *UpdateReviewPayloadRequest) GetTaskId() int64 { @@ -4089,7 +4357,7 @@ type UpdateReviewPayloadResponse struct { func (x *UpdateReviewPayloadResponse) Reset() { *x = UpdateReviewPayloadResponse{} - mi := &file_state_v1_state_proto_msgTypes[63] + mi := &file_state_v1_state_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4101,7 +4369,7 @@ func (x *UpdateReviewPayloadResponse) String() string { func (*UpdateReviewPayloadResponse) ProtoMessage() {} func (x *UpdateReviewPayloadResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[63] + mi := &file_state_v1_state_proto_msgTypes[67] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4114,7 +4382,7 @@ func (x *UpdateReviewPayloadResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateReviewPayloadResponse.ProtoReflect.Descriptor instead. func (*UpdateReviewPayloadResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{63} + return file_state_v1_state_proto_rawDescGZIP(), []int{67} } type SetReviewCursorsRequest struct { @@ -4128,7 +4396,7 @@ type SetReviewCursorsRequest struct { func (x *SetReviewCursorsRequest) Reset() { *x = SetReviewCursorsRequest{} - mi := &file_state_v1_state_proto_msgTypes[64] + mi := &file_state_v1_state_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4140,7 +4408,7 @@ func (x *SetReviewCursorsRequest) String() string { func (*SetReviewCursorsRequest) ProtoMessage() {} func (x *SetReviewCursorsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[64] + mi := &file_state_v1_state_proto_msgTypes[68] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4153,7 +4421,7 @@ func (x *SetReviewCursorsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetReviewCursorsRequest.ProtoReflect.Descriptor instead. func (*SetReviewCursorsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{64} + return file_state_v1_state_proto_rawDescGZIP(), []int{68} } func (x *SetReviewCursorsRequest) GetTaskId() int64 { @@ -4185,7 +4453,7 @@ type SetReviewCursorsResponse struct { func (x *SetReviewCursorsResponse) Reset() { *x = SetReviewCursorsResponse{} - mi := &file_state_v1_state_proto_msgTypes[65] + mi := &file_state_v1_state_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4197,7 +4465,7 @@ func (x *SetReviewCursorsResponse) String() string { func (*SetReviewCursorsResponse) ProtoMessage() {} func (x *SetReviewCursorsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[65] + mi := &file_state_v1_state_proto_msgTypes[69] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4210,7 +4478,7 @@ func (x *SetReviewCursorsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetReviewCursorsResponse.ProtoReflect.Descriptor instead. func (*SetReviewCursorsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{65} + return file_state_v1_state_proto_rawDescGZIP(), []int{69} } type TaskByIssueRequest struct { @@ -4224,7 +4492,7 @@ type TaskByIssueRequest struct { func (x *TaskByIssueRequest) Reset() { *x = TaskByIssueRequest{} - mi := &file_state_v1_state_proto_msgTypes[66] + mi := &file_state_v1_state_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4236,7 +4504,7 @@ func (x *TaskByIssueRequest) String() string { func (*TaskByIssueRequest) ProtoMessage() {} func (x *TaskByIssueRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[66] + mi := &file_state_v1_state_proto_msgTypes[70] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4249,7 +4517,7 @@ func (x *TaskByIssueRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskByIssueRequest.ProtoReflect.Descriptor instead. func (*TaskByIssueRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{66} + return file_state_v1_state_proto_rawDescGZIP(), []int{70} } func (x *TaskByIssueRequest) GetOwner() string { @@ -4283,7 +4551,7 @@ type TaskByIssueResponse struct { func (x *TaskByIssueResponse) Reset() { *x = TaskByIssueResponse{} - mi := &file_state_v1_state_proto_msgTypes[67] + mi := &file_state_v1_state_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4295,7 +4563,7 @@ func (x *TaskByIssueResponse) String() string { func (*TaskByIssueResponse) ProtoMessage() {} func (x *TaskByIssueResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[67] + mi := &file_state_v1_state_proto_msgTypes[71] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4308,7 +4576,7 @@ func (x *TaskByIssueResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskByIssueResponse.ProtoReflect.Descriptor instead. func (*TaskByIssueResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{67} + return file_state_v1_state_proto_rawDescGZIP(), []int{71} } func (x *TaskByIssueResponse) GetTask() *Task { @@ -4336,7 +4604,7 @@ type OpenTaskByPRRequest struct { func (x *OpenTaskByPRRequest) Reset() { *x = OpenTaskByPRRequest{} - mi := &file_state_v1_state_proto_msgTypes[68] + mi := &file_state_v1_state_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4348,7 +4616,7 @@ func (x *OpenTaskByPRRequest) String() string { func (*OpenTaskByPRRequest) ProtoMessage() {} func (x *OpenTaskByPRRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[68] + mi := &file_state_v1_state_proto_msgTypes[72] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4361,7 +4629,7 @@ func (x *OpenTaskByPRRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenTaskByPRRequest.ProtoReflect.Descriptor instead. func (*OpenTaskByPRRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{68} + return file_state_v1_state_proto_rawDescGZIP(), []int{72} } func (x *OpenTaskByPRRequest) GetOwner() string { @@ -4395,7 +4663,7 @@ type OpenTaskByPRResponse struct { func (x *OpenTaskByPRResponse) Reset() { *x = OpenTaskByPRResponse{} - mi := &file_state_v1_state_proto_msgTypes[69] + mi := &file_state_v1_state_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4407,7 +4675,7 @@ func (x *OpenTaskByPRResponse) String() string { func (*OpenTaskByPRResponse) ProtoMessage() {} func (x *OpenTaskByPRResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[69] + mi := &file_state_v1_state_proto_msgTypes[73] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4420,7 +4688,7 @@ func (x *OpenTaskByPRResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenTaskByPRResponse.ProtoReflect.Descriptor instead. func (*OpenTaskByPRResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{69} + return file_state_v1_state_proto_rawDescGZIP(), []int{73} } func (x *OpenTaskByPRResponse) GetTask() *Task { @@ -4446,7 +4714,7 @@ type TaskByIDRequest struct { func (x *TaskByIDRequest) Reset() { *x = TaskByIDRequest{} - mi := &file_state_v1_state_proto_msgTypes[70] + mi := &file_state_v1_state_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4458,7 +4726,7 @@ func (x *TaskByIDRequest) String() string { func (*TaskByIDRequest) ProtoMessage() {} func (x *TaskByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[70] + mi := &file_state_v1_state_proto_msgTypes[74] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4471,7 +4739,7 @@ func (x *TaskByIDRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskByIDRequest.ProtoReflect.Descriptor instead. func (*TaskByIDRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{70} + return file_state_v1_state_proto_rawDescGZIP(), []int{74} } func (x *TaskByIDRequest) GetTaskId() int64 { @@ -4491,7 +4759,7 @@ type TaskByIDResponse struct { func (x *TaskByIDResponse) Reset() { *x = TaskByIDResponse{} - mi := &file_state_v1_state_proto_msgTypes[71] + mi := &file_state_v1_state_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4503,7 +4771,7 @@ func (x *TaskByIDResponse) String() string { func (*TaskByIDResponse) ProtoMessage() {} func (x *TaskByIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[71] + mi := &file_state_v1_state_proto_msgTypes[75] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4516,7 +4784,7 @@ func (x *TaskByIDResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskByIDResponse.ProtoReflect.Descriptor instead. func (*TaskByIDResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{71} + return file_state_v1_state_proto_rawDescGZIP(), []int{75} } func (x *TaskByIDResponse) GetTask() *Task { @@ -4541,7 +4809,7 @@ type OpenPRsRequest struct { func (x *OpenPRsRequest) Reset() { *x = OpenPRsRequest{} - mi := &file_state_v1_state_proto_msgTypes[72] + mi := &file_state_v1_state_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4553,7 +4821,7 @@ func (x *OpenPRsRequest) String() string { func (*OpenPRsRequest) ProtoMessage() {} func (x *OpenPRsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[72] + mi := &file_state_v1_state_proto_msgTypes[76] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4566,7 +4834,7 @@ func (x *OpenPRsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenPRsRequest.ProtoReflect.Descriptor instead. func (*OpenPRsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{72} + return file_state_v1_state_proto_rawDescGZIP(), []int{76} } type OpenPRsResponse struct { @@ -4578,7 +4846,7 @@ type OpenPRsResponse struct { func (x *OpenPRsResponse) Reset() { *x = OpenPRsResponse{} - mi := &file_state_v1_state_proto_msgTypes[73] + mi := &file_state_v1_state_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4590,7 +4858,7 @@ func (x *OpenPRsResponse) String() string { func (*OpenPRsResponse) ProtoMessage() {} func (x *OpenPRsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[73] + mi := &file_state_v1_state_proto_msgTypes[77] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4603,7 +4871,7 @@ func (x *OpenPRsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenPRsResponse.ProtoReflect.Descriptor instead. func (*OpenPRsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{73} + return file_state_v1_state_proto_rawDescGZIP(), []int{77} } func (x *OpenPRsResponse) GetTasks() []*Task { @@ -4621,7 +4889,7 @@ type ClearTerminalTasksRequest struct { func (x *ClearTerminalTasksRequest) Reset() { *x = ClearTerminalTasksRequest{} - mi := &file_state_v1_state_proto_msgTypes[74] + mi := &file_state_v1_state_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4633,7 +4901,7 @@ func (x *ClearTerminalTasksRequest) String() string { func (*ClearTerminalTasksRequest) ProtoMessage() {} func (x *ClearTerminalTasksRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[74] + mi := &file_state_v1_state_proto_msgTypes[78] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4646,7 +4914,7 @@ func (x *ClearTerminalTasksRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ClearTerminalTasksRequest.ProtoReflect.Descriptor instead. func (*ClearTerminalTasksRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{74} + return file_state_v1_state_proto_rawDescGZIP(), []int{78} } type ClearTerminalTasksResponse struct { @@ -4658,7 +4926,7 @@ type ClearTerminalTasksResponse struct { func (x *ClearTerminalTasksResponse) Reset() { *x = ClearTerminalTasksResponse{} - mi := &file_state_v1_state_proto_msgTypes[75] + mi := &file_state_v1_state_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4670,7 +4938,7 @@ func (x *ClearTerminalTasksResponse) String() string { func (*ClearTerminalTasksResponse) ProtoMessage() {} func (x *ClearTerminalTasksResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[75] + mi := &file_state_v1_state_proto_msgTypes[79] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4683,7 +4951,7 @@ func (x *ClearTerminalTasksResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ClearTerminalTasksResponse.ProtoReflect.Descriptor instead. func (*ClearTerminalTasksResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{75} + return file_state_v1_state_proto_rawDescGZIP(), []int{79} } func (x *ClearTerminalTasksResponse) GetCount() int64 { @@ -4702,7 +4970,7 @@ type TasksRequest struct { func (x *TasksRequest) Reset() { *x = TasksRequest{} - mi := &file_state_v1_state_proto_msgTypes[76] + mi := &file_state_v1_state_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4714,7 +4982,7 @@ func (x *TasksRequest) String() string { func (*TasksRequest) ProtoMessage() {} func (x *TasksRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[76] + mi := &file_state_v1_state_proto_msgTypes[80] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4727,7 +4995,7 @@ func (x *TasksRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TasksRequest.ProtoReflect.Descriptor instead. func (*TasksRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{76} + return file_state_v1_state_proto_rawDescGZIP(), []int{80} } func (x *TasksRequest) GetLimit() int64 { @@ -4746,7 +5014,7 @@ type TasksResponse struct { func (x *TasksResponse) Reset() { *x = TasksResponse{} - mi := &file_state_v1_state_proto_msgTypes[77] + mi := &file_state_v1_state_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4758,7 +5026,7 @@ func (x *TasksResponse) String() string { func (*TasksResponse) ProtoMessage() {} func (x *TasksResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[77] + mi := &file_state_v1_state_proto_msgTypes[81] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4771,7 +5039,7 @@ func (x *TasksResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TasksResponse.ProtoReflect.Descriptor instead. func (*TasksResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{77} + return file_state_v1_state_proto_rawDescGZIP(), []int{81} } func (x *TasksResponse) GetTasks() []*Task { @@ -4789,7 +5057,7 @@ type StatusCountsRequest struct { func (x *StatusCountsRequest) Reset() { *x = StatusCountsRequest{} - mi := &file_state_v1_state_proto_msgTypes[78] + mi := &file_state_v1_state_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4801,7 +5069,7 @@ func (x *StatusCountsRequest) String() string { func (*StatusCountsRequest) ProtoMessage() {} func (x *StatusCountsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[78] + mi := &file_state_v1_state_proto_msgTypes[82] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4814,7 +5082,7 @@ func (x *StatusCountsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusCountsRequest.ProtoReflect.Descriptor instead. func (*StatusCountsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{78} + return file_state_v1_state_proto_rawDescGZIP(), []int{82} } type StatusCountsResponse struct { @@ -4826,7 +5094,7 @@ type StatusCountsResponse struct { func (x *StatusCountsResponse) Reset() { *x = StatusCountsResponse{} - mi := &file_state_v1_state_proto_msgTypes[79] + mi := &file_state_v1_state_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4838,7 +5106,7 @@ func (x *StatusCountsResponse) String() string { func (*StatusCountsResponse) ProtoMessage() {} func (x *StatusCountsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[79] + mi := &file_state_v1_state_proto_msgTypes[83] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4851,7 +5119,7 @@ func (x *StatusCountsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusCountsResponse.ProtoReflect.Descriptor instead. func (*StatusCountsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{79} + return file_state_v1_state_proto_rawDescGZIP(), []int{83} } func (x *StatusCountsResponse) GetCounts() map[string]int64 { @@ -4870,7 +5138,7 @@ type InsertEventRequest struct { func (x *InsertEventRequest) Reset() { *x = InsertEventRequest{} - mi := &file_state_v1_state_proto_msgTypes[80] + mi := &file_state_v1_state_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4882,7 +5150,7 @@ func (x *InsertEventRequest) String() string { func (*InsertEventRequest) ProtoMessage() {} func (x *InsertEventRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[80] + mi := &file_state_v1_state_proto_msgTypes[84] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4895,7 +5163,7 @@ func (x *InsertEventRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertEventRequest.ProtoReflect.Descriptor instead. func (*InsertEventRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{80} + return file_state_v1_state_proto_rawDescGZIP(), []int{84} } func (x *InsertEventRequest) GetEvent() *Event { @@ -4914,7 +5182,7 @@ type InsertEventResponse struct { func (x *InsertEventResponse) Reset() { *x = InsertEventResponse{} - mi := &file_state_v1_state_proto_msgTypes[81] + mi := &file_state_v1_state_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4926,7 +5194,7 @@ func (x *InsertEventResponse) String() string { func (*InsertEventResponse) ProtoMessage() {} func (x *InsertEventResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[81] + mi := &file_state_v1_state_proto_msgTypes[85] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4939,7 +5207,7 @@ func (x *InsertEventResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertEventResponse.ProtoReflect.Descriptor instead. func (*InsertEventResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{81} + return file_state_v1_state_proto_rawDescGZIP(), []int{85} } func (x *InsertEventResponse) GetId() int64 { @@ -4964,7 +5232,7 @@ type EventsSinceRequest struct { func (x *EventsSinceRequest) Reset() { *x = EventsSinceRequest{} - mi := &file_state_v1_state_proto_msgTypes[82] + mi := &file_state_v1_state_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4976,7 +5244,7 @@ func (x *EventsSinceRequest) String() string { func (*EventsSinceRequest) ProtoMessage() {} func (x *EventsSinceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[82] + mi := &file_state_v1_state_proto_msgTypes[86] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4989,7 +5257,7 @@ func (x *EventsSinceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EventsSinceRequest.ProtoReflect.Descriptor instead. func (*EventsSinceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{82} + return file_state_v1_state_proto_rawDescGZIP(), []int{86} } func (x *EventsSinceRequest) GetSinceId() string { @@ -5015,7 +5283,7 @@ type EventsSinceResponse struct { func (x *EventsSinceResponse) Reset() { *x = EventsSinceResponse{} - mi := &file_state_v1_state_proto_msgTypes[83] + mi := &file_state_v1_state_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5027,7 +5295,7 @@ func (x *EventsSinceResponse) String() string { func (*EventsSinceResponse) ProtoMessage() {} func (x *EventsSinceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[83] + mi := &file_state_v1_state_proto_msgTypes[87] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5040,7 +5308,7 @@ func (x *EventsSinceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EventsSinceResponse.ProtoReflect.Descriptor instead. func (*EventsSinceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{83} + return file_state_v1_state_proto_rawDescGZIP(), []int{87} } func (x *EventsSinceResponse) GetEvents() []*Event { @@ -5059,7 +5327,7 @@ type TaskEventsRequest struct { func (x *TaskEventsRequest) Reset() { *x = TaskEventsRequest{} - mi := &file_state_v1_state_proto_msgTypes[84] + mi := &file_state_v1_state_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5071,7 +5339,7 @@ func (x *TaskEventsRequest) String() string { func (*TaskEventsRequest) ProtoMessage() {} func (x *TaskEventsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[84] + mi := &file_state_v1_state_proto_msgTypes[88] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5084,7 +5352,7 @@ func (x *TaskEventsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskEventsRequest.ProtoReflect.Descriptor instead. func (*TaskEventsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{84} + return file_state_v1_state_proto_rawDescGZIP(), []int{88} } func (x *TaskEventsRequest) GetTaskId() int64 { @@ -5103,7 +5371,7 @@ type TaskEventsResponse struct { func (x *TaskEventsResponse) Reset() { *x = TaskEventsResponse{} - mi := &file_state_v1_state_proto_msgTypes[85] + mi := &file_state_v1_state_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5115,7 +5383,7 @@ func (x *TaskEventsResponse) String() string { func (*TaskEventsResponse) ProtoMessage() {} func (x *TaskEventsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[85] + mi := &file_state_v1_state_proto_msgTypes[89] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5128,7 +5396,7 @@ func (x *TaskEventsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TaskEventsResponse.ProtoReflect.Descriptor instead. func (*TaskEventsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{85} + return file_state_v1_state_proto_rawDescGZIP(), []int{89} } func (x *TaskEventsResponse) GetEvents() []*Event { @@ -5146,7 +5414,7 @@ type WorkflowStatsRequest struct { func (x *WorkflowStatsRequest) Reset() { *x = WorkflowStatsRequest{} - mi := &file_state_v1_state_proto_msgTypes[86] + mi := &file_state_v1_state_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5158,7 +5426,7 @@ func (x *WorkflowStatsRequest) String() string { func (*WorkflowStatsRequest) ProtoMessage() {} func (x *WorkflowStatsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[86] + mi := &file_state_v1_state_proto_msgTypes[90] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5171,7 +5439,7 @@ func (x *WorkflowStatsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowStatsRequest.ProtoReflect.Descriptor instead. func (*WorkflowStatsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{86} + return file_state_v1_state_proto_rawDescGZIP(), []int{90} } type WorkflowStatsResponse struct { @@ -5183,7 +5451,7 @@ type WorkflowStatsResponse struct { func (x *WorkflowStatsResponse) Reset() { *x = WorkflowStatsResponse{} - mi := &file_state_v1_state_proto_msgTypes[87] + mi := &file_state_v1_state_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5195,7 +5463,7 @@ func (x *WorkflowStatsResponse) String() string { func (*WorkflowStatsResponse) ProtoMessage() {} func (x *WorkflowStatsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[87] + mi := &file_state_v1_state_proto_msgTypes[91] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5208,7 +5476,7 @@ func (x *WorkflowStatsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowStatsResponse.ProtoReflect.Descriptor instead. func (*WorkflowStatsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{87} + return file_state_v1_state_proto_rawDescGZIP(), []int{91} } func (x *WorkflowStatsResponse) GetStats() []*WorkflowStat { @@ -5226,7 +5494,7 @@ type StageStatsRequest struct { func (x *StageStatsRequest) Reset() { *x = StageStatsRequest{} - mi := &file_state_v1_state_proto_msgTypes[88] + mi := &file_state_v1_state_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5238,7 +5506,7 @@ func (x *StageStatsRequest) String() string { func (*StageStatsRequest) ProtoMessage() {} func (x *StageStatsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[88] + mi := &file_state_v1_state_proto_msgTypes[92] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5251,7 +5519,7 @@ func (x *StageStatsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StageStatsRequest.ProtoReflect.Descriptor instead. func (*StageStatsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{88} + return file_state_v1_state_proto_rawDescGZIP(), []int{92} } type StageStatsResponse struct { @@ -5263,7 +5531,7 @@ type StageStatsResponse struct { func (x *StageStatsResponse) Reset() { *x = StageStatsResponse{} - mi := &file_state_v1_state_proto_msgTypes[89] + mi := &file_state_v1_state_proto_msgTypes[93] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5275,7 +5543,7 @@ func (x *StageStatsResponse) String() string { func (*StageStatsResponse) ProtoMessage() {} func (x *StageStatsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[89] + mi := &file_state_v1_state_proto_msgTypes[93] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5288,7 +5556,7 @@ func (x *StageStatsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StageStatsResponse.ProtoReflect.Descriptor instead. func (*StageStatsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{89} + return file_state_v1_state_proto_rawDescGZIP(), []int{93} } func (x *StageStatsResponse) GetStats() []*StageStat { @@ -5307,7 +5575,7 @@ type TokensByDayRequest struct { func (x *TokensByDayRequest) Reset() { *x = TokensByDayRequest{} - mi := &file_state_v1_state_proto_msgTypes[90] + mi := &file_state_v1_state_proto_msgTypes[94] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5319,7 +5587,7 @@ func (x *TokensByDayRequest) String() string { func (*TokensByDayRequest) ProtoMessage() {} func (x *TokensByDayRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[90] + mi := &file_state_v1_state_proto_msgTypes[94] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5332,7 +5600,7 @@ func (x *TokensByDayRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TokensByDayRequest.ProtoReflect.Descriptor instead. func (*TokensByDayRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{90} + return file_state_v1_state_proto_rawDescGZIP(), []int{94} } func (x *TokensByDayRequest) GetDays() int64 { @@ -5351,7 +5619,7 @@ type TokensByDayResponse struct { func (x *TokensByDayResponse) Reset() { *x = TokensByDayResponse{} - mi := &file_state_v1_state_proto_msgTypes[91] + mi := &file_state_v1_state_proto_msgTypes[95] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5363,7 +5631,7 @@ func (x *TokensByDayResponse) String() string { func (*TokensByDayResponse) ProtoMessage() {} func (x *TokensByDayResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[91] + mi := &file_state_v1_state_proto_msgTypes[95] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5376,7 +5644,7 @@ func (x *TokensByDayResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TokensByDayResponse.ProtoReflect.Descriptor instead. func (*TokensByDayResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{91} + return file_state_v1_state_proto_rawDescGZIP(), []int{95} } func (x *TokensByDayResponse) GetTokens() []*DayTokens { @@ -5403,7 +5671,7 @@ type ConfigSnapshot struct { func (x *ConfigSnapshot) Reset() { *x = ConfigSnapshot{} - mi := &file_state_v1_state_proto_msgTypes[92] + mi := &file_state_v1_state_proto_msgTypes[96] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5415,7 +5683,7 @@ func (x *ConfigSnapshot) String() string { func (*ConfigSnapshot) ProtoMessage() {} func (x *ConfigSnapshot) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[92] + mi := &file_state_v1_state_proto_msgTypes[96] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5428,7 +5696,7 @@ func (x *ConfigSnapshot) ProtoReflect() protoreflect.Message { // Deprecated: Use ConfigSnapshot.ProtoReflect.Descriptor instead. func (*ConfigSnapshot) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{92} + return file_state_v1_state_proto_rawDescGZIP(), []int{96} } func (x *ConfigSnapshot) GetSchema() string { @@ -5461,7 +5729,7 @@ type PutConfigSnapshotRequest struct { func (x *PutConfigSnapshotRequest) Reset() { *x = PutConfigSnapshotRequest{} - mi := &file_state_v1_state_proto_msgTypes[93] + mi := &file_state_v1_state_proto_msgTypes[97] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5473,7 +5741,7 @@ func (x *PutConfigSnapshotRequest) String() string { func (*PutConfigSnapshotRequest) ProtoMessage() {} func (x *PutConfigSnapshotRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[93] + mi := &file_state_v1_state_proto_msgTypes[97] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5486,7 +5754,7 @@ func (x *PutConfigSnapshotRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutConfigSnapshotRequest.ProtoReflect.Descriptor instead. func (*PutConfigSnapshotRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{93} + return file_state_v1_state_proto_rawDescGZIP(), []int{97} } func (x *PutConfigSnapshotRequest) GetSnapshot() *ConfigSnapshot { @@ -5504,7 +5772,7 @@ type PutConfigSnapshotResponse struct { func (x *PutConfigSnapshotResponse) Reset() { *x = PutConfigSnapshotResponse{} - mi := &file_state_v1_state_proto_msgTypes[94] + mi := &file_state_v1_state_proto_msgTypes[98] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5516,7 +5784,7 @@ func (x *PutConfigSnapshotResponse) String() string { func (*PutConfigSnapshotResponse) ProtoMessage() {} func (x *PutConfigSnapshotResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[94] + mi := &file_state_v1_state_proto_msgTypes[98] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5529,7 +5797,7 @@ func (x *PutConfigSnapshotResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutConfigSnapshotResponse.ProtoReflect.Descriptor instead. func (*PutConfigSnapshotResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{94} + return file_state_v1_state_proto_rawDescGZIP(), []int{98} } type GetConfigSnapshotRequest struct { @@ -5540,7 +5808,7 @@ type GetConfigSnapshotRequest struct { func (x *GetConfigSnapshotRequest) Reset() { *x = GetConfigSnapshotRequest{} - mi := &file_state_v1_state_proto_msgTypes[95] + mi := &file_state_v1_state_proto_msgTypes[99] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5552,7 +5820,7 @@ func (x *GetConfigSnapshotRequest) String() string { func (*GetConfigSnapshotRequest) ProtoMessage() {} func (x *GetConfigSnapshotRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[95] + mi := &file_state_v1_state_proto_msgTypes[99] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5565,7 +5833,7 @@ func (x *GetConfigSnapshotRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetConfigSnapshotRequest.ProtoReflect.Descriptor instead. func (*GetConfigSnapshotRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{95} + return file_state_v1_state_proto_rawDescGZIP(), []int{99} } type GetConfigSnapshotResponse struct { @@ -5578,7 +5846,7 @@ type GetConfigSnapshotResponse struct { func (x *GetConfigSnapshotResponse) Reset() { *x = GetConfigSnapshotResponse{} - mi := &file_state_v1_state_proto_msgTypes[96] + mi := &file_state_v1_state_proto_msgTypes[100] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5590,7 +5858,7 @@ func (x *GetConfigSnapshotResponse) String() string { func (*GetConfigSnapshotResponse) ProtoMessage() {} func (x *GetConfigSnapshotResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[96] + mi := &file_state_v1_state_proto_msgTypes[100] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5603,7 +5871,7 @@ func (x *GetConfigSnapshotResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetConfigSnapshotResponse.ProtoReflect.Descriptor instead. func (*GetConfigSnapshotResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{96} + return file_state_v1_state_proto_rawDescGZIP(), []int{100} } func (x *GetConfigSnapshotResponse) GetSnapshot() *ConfigSnapshot { @@ -5640,7 +5908,7 @@ type ChannelStatus struct { func (x *ChannelStatus) Reset() { *x = ChannelStatus{} - mi := &file_state_v1_state_proto_msgTypes[97] + mi := &file_state_v1_state_proto_msgTypes[101] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5652,7 +5920,7 @@ func (x *ChannelStatus) String() string { func (*ChannelStatus) ProtoMessage() {} func (x *ChannelStatus) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[97] + mi := &file_state_v1_state_proto_msgTypes[101] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5665,7 +5933,7 @@ func (x *ChannelStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelStatus.ProtoReflect.Descriptor instead. func (*ChannelStatus) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{97} + return file_state_v1_state_proto_rawDescGZIP(), []int{101} } func (x *ChannelStatus) GetId() string { @@ -5726,7 +5994,7 @@ type PutChannelStatusRequest struct { func (x *PutChannelStatusRequest) Reset() { *x = PutChannelStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[98] + mi := &file_state_v1_state_proto_msgTypes[102] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5738,7 +6006,7 @@ func (x *PutChannelStatusRequest) String() string { func (*PutChannelStatusRequest) ProtoMessage() {} func (x *PutChannelStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[98] + mi := &file_state_v1_state_proto_msgTypes[102] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5751,7 +6019,7 @@ func (x *PutChannelStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutChannelStatusRequest.ProtoReflect.Descriptor instead. func (*PutChannelStatusRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{98} + return file_state_v1_state_proto_rawDescGZIP(), []int{102} } func (x *PutChannelStatusRequest) GetChannels() []*ChannelStatus { @@ -5769,7 +6037,7 @@ type PutChannelStatusResponse struct { func (x *PutChannelStatusResponse) Reset() { *x = PutChannelStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[99] + mi := &file_state_v1_state_proto_msgTypes[103] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5781,7 +6049,7 @@ func (x *PutChannelStatusResponse) String() string { func (*PutChannelStatusResponse) ProtoMessage() {} func (x *PutChannelStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[99] + mi := &file_state_v1_state_proto_msgTypes[103] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5794,7 +6062,7 @@ func (x *PutChannelStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutChannelStatusResponse.ProtoReflect.Descriptor instead. func (*PutChannelStatusResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{99} + return file_state_v1_state_proto_rawDescGZIP(), []int{103} } type ListChannelStatusRequest struct { @@ -5805,7 +6073,7 @@ type ListChannelStatusRequest struct { func (x *ListChannelStatusRequest) Reset() { *x = ListChannelStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[100] + mi := &file_state_v1_state_proto_msgTypes[104] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5817,7 +6085,7 @@ func (x *ListChannelStatusRequest) String() string { func (*ListChannelStatusRequest) ProtoMessage() {} func (x *ListChannelStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[100] + mi := &file_state_v1_state_proto_msgTypes[104] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5830,7 +6098,7 @@ func (x *ListChannelStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListChannelStatusRequest.ProtoReflect.Descriptor instead. func (*ListChannelStatusRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{100} + return file_state_v1_state_proto_rawDescGZIP(), []int{104} } type ListChannelStatusResponse struct { @@ -5842,7 +6110,7 @@ type ListChannelStatusResponse struct { func (x *ListChannelStatusResponse) Reset() { *x = ListChannelStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[101] + mi := &file_state_v1_state_proto_msgTypes[105] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5854,7 +6122,7 @@ func (x *ListChannelStatusResponse) String() string { func (*ListChannelStatusResponse) ProtoMessage() {} func (x *ListChannelStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[101] + mi := &file_state_v1_state_proto_msgTypes[105] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5867,7 +6135,7 @@ func (x *ListChannelStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListChannelStatusResponse.ProtoReflect.Descriptor instead. func (*ListChannelStatusResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{101} + return file_state_v1_state_proto_rawDescGZIP(), []int{105} } func (x *ListChannelStatusResponse) GetChannels() []*ChannelStatus { @@ -5896,7 +6164,7 @@ type ApplyStatus struct { func (x *ApplyStatus) Reset() { *x = ApplyStatus{} - mi := &file_state_v1_state_proto_msgTypes[102] + mi := &file_state_v1_state_proto_msgTypes[106] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5908,7 +6176,7 @@ func (x *ApplyStatus) String() string { func (*ApplyStatus) ProtoMessage() {} func (x *ApplyStatus) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[102] + mi := &file_state_v1_state_proto_msgTypes[106] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5921,7 +6189,7 @@ func (x *ApplyStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use ApplyStatus.ProtoReflect.Descriptor instead. func (*ApplyStatus) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{102} + return file_state_v1_state_proto_rawDescGZIP(), []int{106} } func (x *ApplyStatus) GetProcess() string { @@ -5968,7 +6236,7 @@ type PutApplyStatusRequest struct { func (x *PutApplyStatusRequest) Reset() { *x = PutApplyStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[103] + mi := &file_state_v1_state_proto_msgTypes[107] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5980,7 +6248,7 @@ func (x *PutApplyStatusRequest) String() string { func (*PutApplyStatusRequest) ProtoMessage() {} func (x *PutApplyStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[103] + mi := &file_state_v1_state_proto_msgTypes[107] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5993,7 +6261,7 @@ func (x *PutApplyStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutApplyStatusRequest.ProtoReflect.Descriptor instead. func (*PutApplyStatusRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{103} + return file_state_v1_state_proto_rawDescGZIP(), []int{107} } func (x *PutApplyStatusRequest) GetStatus() *ApplyStatus { @@ -6011,7 +6279,7 @@ type PutApplyStatusResponse struct { func (x *PutApplyStatusResponse) Reset() { *x = PutApplyStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[104] + mi := &file_state_v1_state_proto_msgTypes[108] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6023,7 +6291,7 @@ func (x *PutApplyStatusResponse) String() string { func (*PutApplyStatusResponse) ProtoMessage() {} func (x *PutApplyStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[104] + mi := &file_state_v1_state_proto_msgTypes[108] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6036,7 +6304,7 @@ func (x *PutApplyStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutApplyStatusResponse.ProtoReflect.Descriptor instead. func (*PutApplyStatusResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{104} + return file_state_v1_state_proto_rawDescGZIP(), []int{108} } type ListApplyStatusRequest struct { @@ -6047,7 +6315,7 @@ type ListApplyStatusRequest struct { func (x *ListApplyStatusRequest) Reset() { *x = ListApplyStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[105] + mi := &file_state_v1_state_proto_msgTypes[109] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6059,7 +6327,7 @@ func (x *ListApplyStatusRequest) String() string { func (*ListApplyStatusRequest) ProtoMessage() {} func (x *ListApplyStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[105] + mi := &file_state_v1_state_proto_msgTypes[109] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6072,7 +6340,7 @@ func (x *ListApplyStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListApplyStatusRequest.ProtoReflect.Descriptor instead. func (*ListApplyStatusRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{105} + return file_state_v1_state_proto_rawDescGZIP(), []int{109} } type ListApplyStatusResponse struct { @@ -6084,7 +6352,7 @@ type ListApplyStatusResponse struct { func (x *ListApplyStatusResponse) Reset() { *x = ListApplyStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[106] + mi := &file_state_v1_state_proto_msgTypes[110] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6096,7 +6364,7 @@ func (x *ListApplyStatusResponse) String() string { func (*ListApplyStatusResponse) ProtoMessage() {} func (x *ListApplyStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[106] + mi := &file_state_v1_state_proto_msgTypes[110] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6109,7 +6377,7 @@ func (x *ListApplyStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListApplyStatusResponse.ProtoReflect.Descriptor instead. func (*ListApplyStatusResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{106} + return file_state_v1_state_proto_rawDescGZIP(), []int{110} } func (x *ListApplyStatusResponse) GetStatuses() []*ApplyStatus { @@ -6136,7 +6404,7 @@ type TaskLogEntry struct { func (x *TaskLogEntry) Reset() { *x = TaskLogEntry{} - mi := &file_state_v1_state_proto_msgTypes[107] + mi := &file_state_v1_state_proto_msgTypes[111] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6148,7 +6416,7 @@ func (x *TaskLogEntry) String() string { func (*TaskLogEntry) ProtoMessage() {} func (x *TaskLogEntry) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[107] + mi := &file_state_v1_state_proto_msgTypes[111] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6161,7 +6429,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{107} + return file_state_v1_state_proto_rawDescGZIP(), []int{111} } func (x *TaskLogEntry) GetId() int64 { @@ -6226,7 +6494,7 @@ type ReadTaskLogRequest struct { func (x *ReadTaskLogRequest) Reset() { *x = ReadTaskLogRequest{} - mi := &file_state_v1_state_proto_msgTypes[108] + mi := &file_state_v1_state_proto_msgTypes[112] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6238,7 +6506,7 @@ func (x *ReadTaskLogRequest) String() string { func (*ReadTaskLogRequest) ProtoMessage() {} func (x *ReadTaskLogRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[108] + mi := &file_state_v1_state_proto_msgTypes[112] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6251,7 +6519,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{108} + return file_state_v1_state_proto_rawDescGZIP(), []int{112} } func (x *ReadTaskLogRequest) GetTaskId() int64 { @@ -6337,7 +6605,7 @@ type ReadTaskLogResponse struct { func (x *ReadTaskLogResponse) Reset() { *x = ReadTaskLogResponse{} - mi := &file_state_v1_state_proto_msgTypes[109] + mi := &file_state_v1_state_proto_msgTypes[113] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6349,7 +6617,7 @@ func (x *ReadTaskLogResponse) String() string { func (*ReadTaskLogResponse) ProtoMessage() {} func (x *ReadTaskLogResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[109] + mi := &file_state_v1_state_proto_msgTypes[113] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6362,7 +6630,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{109} + return file_state_v1_state_proto_rawDescGZIP(), []int{113} } func (x *ReadTaskLogResponse) GetEntries() []*TaskLogEntry { @@ -6421,7 +6689,7 @@ type StreamTaskLogContentRequest struct { func (x *StreamTaskLogContentRequest) Reset() { *x = StreamTaskLogContentRequest{} - mi := &file_state_v1_state_proto_msgTypes[110] + mi := &file_state_v1_state_proto_msgTypes[114] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6433,7 +6701,7 @@ func (x *StreamTaskLogContentRequest) String() string { func (*StreamTaskLogContentRequest) ProtoMessage() {} func (x *StreamTaskLogContentRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[110] + mi := &file_state_v1_state_proto_msgTypes[114] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6446,7 +6714,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{110} + return file_state_v1_state_proto_rawDescGZIP(), []int{114} } func (x *StreamTaskLogContentRequest) GetTaskId() int64 { @@ -6474,7 +6742,7 @@ type StreamTaskLogContentResponse struct { func (x *StreamTaskLogContentResponse) Reset() { *x = StreamTaskLogContentResponse{} - mi := &file_state_v1_state_proto_msgTypes[111] + mi := &file_state_v1_state_proto_msgTypes[115] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6486,7 +6754,7 @@ func (x *StreamTaskLogContentResponse) String() string { func (*StreamTaskLogContentResponse) ProtoMessage() {} func (x *StreamTaskLogContentResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[111] + mi := &file_state_v1_state_proto_msgTypes[115] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6499,7 +6767,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{111} + return file_state_v1_state_proto_rawDescGZIP(), []int{115} } func (x *StreamTaskLogContentResponse) GetChunk() []byte { @@ -6534,7 +6802,7 @@ type InsertCaptureRequest struct { func (x *InsertCaptureRequest) Reset() { *x = InsertCaptureRequest{} - mi := &file_state_v1_state_proto_msgTypes[112] + mi := &file_state_v1_state_proto_msgTypes[116] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6546,7 +6814,7 @@ func (x *InsertCaptureRequest) String() string { func (*InsertCaptureRequest) ProtoMessage() {} func (x *InsertCaptureRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[112] + mi := &file_state_v1_state_proto_msgTypes[116] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6559,7 +6827,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{112} + return file_state_v1_state_proto_rawDescGZIP(), []int{116} } func (x *InsertCaptureRequest) GetCapture() *CapturedEvent { @@ -6592,7 +6860,7 @@ type InsertCaptureResponse struct { func (x *InsertCaptureResponse) Reset() { *x = InsertCaptureResponse{} - mi := &file_state_v1_state_proto_msgTypes[113] + mi := &file_state_v1_state_proto_msgTypes[117] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6604,7 +6872,7 @@ func (x *InsertCaptureResponse) String() string { func (*InsertCaptureResponse) ProtoMessage() {} func (x *InsertCaptureResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[113] + mi := &file_state_v1_state_proto_msgTypes[117] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6617,7 +6885,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{113} + return file_state_v1_state_proto_rawDescGZIP(), []int{117} } func (x *InsertCaptureResponse) GetId() string { @@ -6636,7 +6904,7 @@ type StreamCapturesRequest struct { func (x *StreamCapturesRequest) Reset() { *x = StreamCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[114] + mi := &file_state_v1_state_proto_msgTypes[118] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6648,7 +6916,7 @@ func (x *StreamCapturesRequest) String() string { func (*StreamCapturesRequest) ProtoMessage() {} func (x *StreamCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[114] + mi := &file_state_v1_state_proto_msgTypes[118] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6661,7 +6929,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{114} + return file_state_v1_state_proto_rawDescGZIP(), []int{118} } func (x *StreamCapturesRequest) GetLimit() int64 { @@ -6681,7 +6949,7 @@ type StreamCapturesResponse struct { func (x *StreamCapturesResponse) Reset() { *x = StreamCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[115] + mi := &file_state_v1_state_proto_msgTypes[119] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6693,7 +6961,7 @@ func (x *StreamCapturesResponse) String() string { func (*StreamCapturesResponse) ProtoMessage() {} func (x *StreamCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[115] + mi := &file_state_v1_state_proto_msgTypes[119] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6706,7 +6974,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{115} + return file_state_v1_state_proto_rawDescGZIP(), []int{119} } func (x *StreamCapturesResponse) GetCapture() *CapturedEvent { @@ -6725,7 +6993,7 @@ type InsertMappingRequest struct { func (x *InsertMappingRequest) Reset() { *x = InsertMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[116] + mi := &file_state_v1_state_proto_msgTypes[120] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6737,7 +7005,7 @@ func (x *InsertMappingRequest) String() string { func (*InsertMappingRequest) ProtoMessage() {} func (x *InsertMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[116] + mi := &file_state_v1_state_proto_msgTypes[120] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6750,7 +7018,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{116} + return file_state_v1_state_proto_rawDescGZIP(), []int{120} } func (x *InsertMappingRequest) GetMapping() *Mapping { @@ -6769,7 +7037,7 @@ type InsertMappingResponse struct { func (x *InsertMappingResponse) Reset() { *x = InsertMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[117] + mi := &file_state_v1_state_proto_msgTypes[121] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6781,7 +7049,7 @@ func (x *InsertMappingResponse) String() string { func (*InsertMappingResponse) ProtoMessage() {} func (x *InsertMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[117] + mi := &file_state_v1_state_proto_msgTypes[121] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6794,7 +7062,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{117} + return file_state_v1_state_proto_rawDescGZIP(), []int{121} } func (x *InsertMappingResponse) GetId() string { @@ -6813,7 +7081,7 @@ type GetMappingRequest struct { func (x *GetMappingRequest) Reset() { *x = GetMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[118] + mi := &file_state_v1_state_proto_msgTypes[122] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6825,7 +7093,7 @@ func (x *GetMappingRequest) String() string { func (*GetMappingRequest) ProtoMessage() {} func (x *GetMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[118] + mi := &file_state_v1_state_proto_msgTypes[122] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6838,7 +7106,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{118} + return file_state_v1_state_proto_rawDescGZIP(), []int{122} } func (x *GetMappingRequest) GetId() string { @@ -6858,7 +7126,7 @@ type GetMappingResponse struct { func (x *GetMappingResponse) Reset() { *x = GetMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[119] + mi := &file_state_v1_state_proto_msgTypes[123] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6870,7 +7138,7 @@ func (x *GetMappingResponse) String() string { func (*GetMappingResponse) ProtoMessage() {} func (x *GetMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[119] + mi := &file_state_v1_state_proto_msgTypes[123] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6883,7 +7151,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{119} + return file_state_v1_state_proto_rawDescGZIP(), []int{123} } func (x *GetMappingResponse) GetMapping() *Mapping { @@ -6908,7 +7176,7 @@ type ListMappingsRequest struct { func (x *ListMappingsRequest) Reset() { *x = ListMappingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[120] + mi := &file_state_v1_state_proto_msgTypes[124] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6920,7 +7188,7 @@ func (x *ListMappingsRequest) String() string { func (*ListMappingsRequest) ProtoMessage() {} func (x *ListMappingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[120] + mi := &file_state_v1_state_proto_msgTypes[124] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6933,7 +7201,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{120} + return file_state_v1_state_proto_rawDescGZIP(), []int{124} } type ListMappingsResponse struct { @@ -6945,7 +7213,7 @@ type ListMappingsResponse struct { func (x *ListMappingsResponse) Reset() { *x = ListMappingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[121] + mi := &file_state_v1_state_proto_msgTypes[125] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -6957,7 +7225,7 @@ func (x *ListMappingsResponse) String() string { func (*ListMappingsResponse) ProtoMessage() {} func (x *ListMappingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[121] + mi := &file_state_v1_state_proto_msgTypes[125] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6970,7 +7238,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{121} + return file_state_v1_state_proto_rawDescGZIP(), []int{125} } func (x *ListMappingsResponse) GetMappings() []*Mapping { @@ -6989,7 +7257,7 @@ type UpdateMappingRequest struct { func (x *UpdateMappingRequest) Reset() { *x = UpdateMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[122] + mi := &file_state_v1_state_proto_msgTypes[126] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7001,7 +7269,7 @@ func (x *UpdateMappingRequest) String() string { func (*UpdateMappingRequest) ProtoMessage() {} func (x *UpdateMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[122] + mi := &file_state_v1_state_proto_msgTypes[126] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7014,7 +7282,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{122} + return file_state_v1_state_proto_rawDescGZIP(), []int{126} } func (x *UpdateMappingRequest) GetMapping() *Mapping { @@ -7032,7 +7300,7 @@ type UpdateMappingResponse struct { func (x *UpdateMappingResponse) Reset() { *x = UpdateMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[123] + mi := &file_state_v1_state_proto_msgTypes[127] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7044,7 +7312,7 @@ func (x *UpdateMappingResponse) String() string { func (*UpdateMappingResponse) ProtoMessage() {} func (x *UpdateMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[123] + mi := &file_state_v1_state_proto_msgTypes[127] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7057,7 +7325,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{123} + return file_state_v1_state_proto_rawDescGZIP(), []int{127} } type DeleteMappingRequest struct { @@ -7069,7 +7337,7 @@ type DeleteMappingRequest struct { func (x *DeleteMappingRequest) Reset() { *x = DeleteMappingRequest{} - mi := &file_state_v1_state_proto_msgTypes[124] + mi := &file_state_v1_state_proto_msgTypes[128] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7081,7 +7349,7 @@ func (x *DeleteMappingRequest) String() string { func (*DeleteMappingRequest) ProtoMessage() {} func (x *DeleteMappingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[124] + mi := &file_state_v1_state_proto_msgTypes[128] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7094,7 +7362,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{124} + return file_state_v1_state_proto_rawDescGZIP(), []int{128} } func (x *DeleteMappingRequest) GetId() string { @@ -7112,7 +7380,7 @@ type DeleteMappingResponse struct { func (x *DeleteMappingResponse) Reset() { *x = DeleteMappingResponse{} - mi := &file_state_v1_state_proto_msgTypes[125] + mi := &file_state_v1_state_proto_msgTypes[129] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7124,7 +7392,7 @@ func (x *DeleteMappingResponse) String() string { func (*DeleteMappingResponse) ProtoMessage() {} func (x *DeleteMappingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[125] + mi := &file_state_v1_state_proto_msgTypes[129] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7137,7 +7405,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{125} + return file_state_v1_state_proto_rawDescGZIP(), []int{129} } type RecordMappingMatchRequest struct { @@ -7150,7 +7418,7 @@ type RecordMappingMatchRequest struct { func (x *RecordMappingMatchRequest) Reset() { *x = RecordMappingMatchRequest{} - mi := &file_state_v1_state_proto_msgTypes[126] + mi := &file_state_v1_state_proto_msgTypes[130] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7162,7 +7430,7 @@ func (x *RecordMappingMatchRequest) String() string { func (*RecordMappingMatchRequest) ProtoMessage() {} func (x *RecordMappingMatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[126] + mi := &file_state_v1_state_proto_msgTypes[130] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7175,7 +7443,7 @@ func (x *RecordMappingMatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordMappingMatchRequest.ProtoReflect.Descriptor instead. func (*RecordMappingMatchRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{126} + return file_state_v1_state_proto_rawDescGZIP(), []int{130} } func (x *RecordMappingMatchRequest) GetMappingId() string { @@ -7200,7 +7468,7 @@ type RecordMappingMatchResponse struct { func (x *RecordMappingMatchResponse) Reset() { *x = RecordMappingMatchResponse{} - mi := &file_state_v1_state_proto_msgTypes[127] + mi := &file_state_v1_state_proto_msgTypes[131] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7212,7 +7480,7 @@ func (x *RecordMappingMatchResponse) String() string { func (*RecordMappingMatchResponse) ProtoMessage() {} func (x *RecordMappingMatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[127] + mi := &file_state_v1_state_proto_msgTypes[131] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7225,7 +7493,7 @@ func (x *RecordMappingMatchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordMappingMatchResponse.ProtoReflect.Descriptor instead. func (*RecordMappingMatchResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{127} + return file_state_v1_state_proto_rawDescGZIP(), []int{131} } type InsertEventTypeRequest struct { @@ -7237,7 +7505,7 @@ type InsertEventTypeRequest struct { func (x *InsertEventTypeRequest) Reset() { *x = InsertEventTypeRequest{} - mi := &file_state_v1_state_proto_msgTypes[128] + mi := &file_state_v1_state_proto_msgTypes[132] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7249,7 +7517,7 @@ func (x *InsertEventTypeRequest) String() string { func (*InsertEventTypeRequest) ProtoMessage() {} func (x *InsertEventTypeRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[128] + mi := &file_state_v1_state_proto_msgTypes[132] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7262,7 +7530,7 @@ func (x *InsertEventTypeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertEventTypeRequest.ProtoReflect.Descriptor instead. func (*InsertEventTypeRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{128} + return file_state_v1_state_proto_rawDescGZIP(), []int{132} } func (x *InsertEventTypeRequest) GetEventType() *EventType { @@ -7281,7 +7549,7 @@ type InsertEventTypeResponse struct { func (x *InsertEventTypeResponse) Reset() { *x = InsertEventTypeResponse{} - mi := &file_state_v1_state_proto_msgTypes[129] + mi := &file_state_v1_state_proto_msgTypes[133] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7293,7 +7561,7 @@ func (x *InsertEventTypeResponse) String() string { func (*InsertEventTypeResponse) ProtoMessage() {} func (x *InsertEventTypeResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[129] + mi := &file_state_v1_state_proto_msgTypes[133] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7306,7 +7574,7 @@ func (x *InsertEventTypeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertEventTypeResponse.ProtoReflect.Descriptor instead. func (*InsertEventTypeResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{129} + return file_state_v1_state_proto_rawDescGZIP(), []int{133} } func (x *InsertEventTypeResponse) GetId() string { @@ -7325,7 +7593,7 @@ type UpdateEventTypeRequest struct { func (x *UpdateEventTypeRequest) Reset() { *x = UpdateEventTypeRequest{} - mi := &file_state_v1_state_proto_msgTypes[130] + mi := &file_state_v1_state_proto_msgTypes[134] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7337,7 +7605,7 @@ func (x *UpdateEventTypeRequest) String() string { func (*UpdateEventTypeRequest) ProtoMessage() {} func (x *UpdateEventTypeRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[130] + mi := &file_state_v1_state_proto_msgTypes[134] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7350,7 +7618,7 @@ func (x *UpdateEventTypeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateEventTypeRequest.ProtoReflect.Descriptor instead. func (*UpdateEventTypeRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{130} + return file_state_v1_state_proto_rawDescGZIP(), []int{134} } func (x *UpdateEventTypeRequest) GetEventType() *EventType { @@ -7368,7 +7636,7 @@ type UpdateEventTypeResponse struct { func (x *UpdateEventTypeResponse) Reset() { *x = UpdateEventTypeResponse{} - mi := &file_state_v1_state_proto_msgTypes[131] + mi := &file_state_v1_state_proto_msgTypes[135] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7380,7 +7648,7 @@ func (x *UpdateEventTypeResponse) String() string { func (*UpdateEventTypeResponse) ProtoMessage() {} func (x *UpdateEventTypeResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[131] + mi := &file_state_v1_state_proto_msgTypes[135] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7393,7 +7661,7 @@ func (x *UpdateEventTypeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateEventTypeResponse.ProtoReflect.Descriptor instead. func (*UpdateEventTypeResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{131} + return file_state_v1_state_proto_rawDescGZIP(), []int{135} } type DeleteEventTypeRequest struct { @@ -7405,7 +7673,7 @@ type DeleteEventTypeRequest struct { func (x *DeleteEventTypeRequest) Reset() { *x = DeleteEventTypeRequest{} - mi := &file_state_v1_state_proto_msgTypes[132] + mi := &file_state_v1_state_proto_msgTypes[136] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7417,7 +7685,7 @@ func (x *DeleteEventTypeRequest) String() string { func (*DeleteEventTypeRequest) ProtoMessage() {} func (x *DeleteEventTypeRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[132] + mi := &file_state_v1_state_proto_msgTypes[136] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7430,7 +7698,7 @@ func (x *DeleteEventTypeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteEventTypeRequest.ProtoReflect.Descriptor instead. func (*DeleteEventTypeRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{132} + return file_state_v1_state_proto_rawDescGZIP(), []int{136} } func (x *DeleteEventTypeRequest) GetId() string { @@ -7448,7 +7716,7 @@ type DeleteEventTypeResponse struct { func (x *DeleteEventTypeResponse) Reset() { *x = DeleteEventTypeResponse{} - mi := &file_state_v1_state_proto_msgTypes[133] + mi := &file_state_v1_state_proto_msgTypes[137] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7460,7 +7728,7 @@ func (x *DeleteEventTypeResponse) String() string { func (*DeleteEventTypeResponse) ProtoMessage() {} func (x *DeleteEventTypeResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[133] + mi := &file_state_v1_state_proto_msgTypes[137] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7473,7 +7741,7 @@ func (x *DeleteEventTypeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteEventTypeResponse.ProtoReflect.Descriptor instead. func (*DeleteEventTypeResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{133} + return file_state_v1_state_proto_rawDescGZIP(), []int{137} } type ListEventTypesRequest struct { @@ -7484,7 +7752,7 @@ type ListEventTypesRequest struct { func (x *ListEventTypesRequest) Reset() { *x = ListEventTypesRequest{} - mi := &file_state_v1_state_proto_msgTypes[134] + mi := &file_state_v1_state_proto_msgTypes[138] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7496,7 +7764,7 @@ func (x *ListEventTypesRequest) String() string { func (*ListEventTypesRequest) ProtoMessage() {} func (x *ListEventTypesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[134] + mi := &file_state_v1_state_proto_msgTypes[138] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7509,7 +7777,7 @@ func (x *ListEventTypesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEventTypesRequest.ProtoReflect.Descriptor instead. func (*ListEventTypesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{134} + return file_state_v1_state_proto_rawDescGZIP(), []int{138} } type ListEventTypesResponse struct { @@ -7521,7 +7789,7 @@ type ListEventTypesResponse struct { func (x *ListEventTypesResponse) Reset() { *x = ListEventTypesResponse{} - mi := &file_state_v1_state_proto_msgTypes[135] + mi := &file_state_v1_state_proto_msgTypes[139] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7533,7 +7801,7 @@ func (x *ListEventTypesResponse) String() string { func (*ListEventTypesResponse) ProtoMessage() {} func (x *ListEventTypesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[135] + mi := &file_state_v1_state_proto_msgTypes[139] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7546,7 +7814,7 @@ func (x *ListEventTypesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEventTypesResponse.ProtoReflect.Descriptor instead. func (*ListEventTypesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{135} + return file_state_v1_state_proto_rawDescGZIP(), []int{139} } func (x *ListEventTypesResponse) GetEventTypes() []*EventType { @@ -7565,7 +7833,7 @@ type InsertBindingRequest struct { func (x *InsertBindingRequest) Reset() { *x = InsertBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[136] + mi := &file_state_v1_state_proto_msgTypes[140] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7577,7 +7845,7 @@ func (x *InsertBindingRequest) String() string { func (*InsertBindingRequest) ProtoMessage() {} func (x *InsertBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[136] + mi := &file_state_v1_state_proto_msgTypes[140] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7590,7 +7858,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{136} + return file_state_v1_state_proto_rawDescGZIP(), []int{140} } func (x *InsertBindingRequest) GetBinding() *Binding { @@ -7609,7 +7877,7 @@ type InsertBindingResponse struct { func (x *InsertBindingResponse) Reset() { *x = InsertBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[137] + mi := &file_state_v1_state_proto_msgTypes[141] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7621,7 +7889,7 @@ func (x *InsertBindingResponse) String() string { func (*InsertBindingResponse) ProtoMessage() {} func (x *InsertBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[137] + mi := &file_state_v1_state_proto_msgTypes[141] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7634,7 +7902,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{137} + return file_state_v1_state_proto_rawDescGZIP(), []int{141} } func (x *InsertBindingResponse) GetId() string { @@ -7653,7 +7921,7 @@ type GetBindingRequest struct { func (x *GetBindingRequest) Reset() { *x = GetBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[138] + mi := &file_state_v1_state_proto_msgTypes[142] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7665,7 +7933,7 @@ func (x *GetBindingRequest) String() string { func (*GetBindingRequest) ProtoMessage() {} func (x *GetBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[138] + mi := &file_state_v1_state_proto_msgTypes[142] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7678,7 +7946,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{138} + return file_state_v1_state_proto_rawDescGZIP(), []int{142} } func (x *GetBindingRequest) GetId() string { @@ -7698,7 +7966,7 @@ type GetBindingResponse struct { func (x *GetBindingResponse) Reset() { *x = GetBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[139] + mi := &file_state_v1_state_proto_msgTypes[143] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7710,7 +7978,7 @@ func (x *GetBindingResponse) String() string { func (*GetBindingResponse) ProtoMessage() {} func (x *GetBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[139] + mi := &file_state_v1_state_proto_msgTypes[143] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7723,7 +7991,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{139} + return file_state_v1_state_proto_rawDescGZIP(), []int{143} } func (x *GetBindingResponse) GetBinding() *Binding { @@ -7748,7 +8016,7 @@ type ListBindingsRequest struct { func (x *ListBindingsRequest) Reset() { *x = ListBindingsRequest{} - mi := &file_state_v1_state_proto_msgTypes[140] + mi := &file_state_v1_state_proto_msgTypes[144] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7760,7 +8028,7 @@ func (x *ListBindingsRequest) String() string { func (*ListBindingsRequest) ProtoMessage() {} func (x *ListBindingsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[140] + mi := &file_state_v1_state_proto_msgTypes[144] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7773,7 +8041,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{140} + return file_state_v1_state_proto_rawDescGZIP(), []int{144} } type ListBindingsResponse struct { @@ -7785,7 +8053,7 @@ type ListBindingsResponse struct { func (x *ListBindingsResponse) Reset() { *x = ListBindingsResponse{} - mi := &file_state_v1_state_proto_msgTypes[141] + mi := &file_state_v1_state_proto_msgTypes[145] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7797,7 +8065,7 @@ func (x *ListBindingsResponse) String() string { func (*ListBindingsResponse) ProtoMessage() {} func (x *ListBindingsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[141] + mi := &file_state_v1_state_proto_msgTypes[145] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7810,7 +8078,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{141} + return file_state_v1_state_proto_rawDescGZIP(), []int{145} } func (x *ListBindingsResponse) GetBindings() []*Binding { @@ -7829,7 +8097,7 @@ type UpdateBindingRequest struct { func (x *UpdateBindingRequest) Reset() { *x = UpdateBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[142] + mi := &file_state_v1_state_proto_msgTypes[146] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7841,7 +8109,7 @@ func (x *UpdateBindingRequest) String() string { func (*UpdateBindingRequest) ProtoMessage() {} func (x *UpdateBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[142] + mi := &file_state_v1_state_proto_msgTypes[146] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7854,7 +8122,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{142} + return file_state_v1_state_proto_rawDescGZIP(), []int{146} } func (x *UpdateBindingRequest) GetBinding() *Binding { @@ -7872,7 +8140,7 @@ type UpdateBindingResponse struct { func (x *UpdateBindingResponse) Reset() { *x = UpdateBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[143] + mi := &file_state_v1_state_proto_msgTypes[147] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7884,7 +8152,7 @@ func (x *UpdateBindingResponse) String() string { func (*UpdateBindingResponse) ProtoMessage() {} func (x *UpdateBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[143] + mi := &file_state_v1_state_proto_msgTypes[147] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7897,7 +8165,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{143} + return file_state_v1_state_proto_rawDescGZIP(), []int{147} } type DeleteBindingRequest struct { @@ -7909,7 +8177,7 @@ type DeleteBindingRequest struct { func (x *DeleteBindingRequest) Reset() { *x = DeleteBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[144] + mi := &file_state_v1_state_proto_msgTypes[148] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7921,7 +8189,7 @@ func (x *DeleteBindingRequest) String() string { func (*DeleteBindingRequest) ProtoMessage() {} func (x *DeleteBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[144] + mi := &file_state_v1_state_proto_msgTypes[148] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7934,7 +8202,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{144} + return file_state_v1_state_proto_rawDescGZIP(), []int{148} } func (x *DeleteBindingRequest) GetId() string { @@ -7952,7 +8220,7 @@ type DeleteBindingResponse struct { func (x *DeleteBindingResponse) Reset() { *x = DeleteBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[145] + mi := &file_state_v1_state_proto_msgTypes[149] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -7964,7 +8232,7 @@ func (x *DeleteBindingResponse) String() string { func (*DeleteBindingResponse) ProtoMessage() {} func (x *DeleteBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[145] + mi := &file_state_v1_state_proto_msgTypes[149] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7977,7 +8245,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{145} + return file_state_v1_state_proto_rawDescGZIP(), []int{149} } type ApproveBindingRequest struct { @@ -7989,7 +8257,7 @@ type ApproveBindingRequest struct { func (x *ApproveBindingRequest) Reset() { *x = ApproveBindingRequest{} - mi := &file_state_v1_state_proto_msgTypes[146] + mi := &file_state_v1_state_proto_msgTypes[150] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8001,7 +8269,7 @@ func (x *ApproveBindingRequest) String() string { func (*ApproveBindingRequest) ProtoMessage() {} func (x *ApproveBindingRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[146] + mi := &file_state_v1_state_proto_msgTypes[150] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8014,7 +8282,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{146} + return file_state_v1_state_proto_rawDescGZIP(), []int{150} } func (x *ApproveBindingRequest) GetId() string { @@ -8032,7 +8300,7 @@ type ApproveBindingResponse struct { func (x *ApproveBindingResponse) Reset() { *x = ApproveBindingResponse{} - mi := &file_state_v1_state_proto_msgTypes[147] + mi := &file_state_v1_state_proto_msgTypes[151] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8044,7 +8312,7 @@ func (x *ApproveBindingResponse) String() string { func (*ApproveBindingResponse) ProtoMessage() {} func (x *ApproveBindingResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[147] + mi := &file_state_v1_state_proto_msgTypes[151] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8057,7 +8325,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{147} + return file_state_v1_state_proto_rawDescGZIP(), []int{151} } type InsertSourceRequest struct { @@ -8069,7 +8337,7 @@ type InsertSourceRequest struct { func (x *InsertSourceRequest) Reset() { *x = InsertSourceRequest{} - mi := &file_state_v1_state_proto_msgTypes[148] + mi := &file_state_v1_state_proto_msgTypes[152] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8081,7 +8349,7 @@ func (x *InsertSourceRequest) String() string { func (*InsertSourceRequest) ProtoMessage() {} func (x *InsertSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[148] + mi := &file_state_v1_state_proto_msgTypes[152] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8094,7 +8362,7 @@ func (x *InsertSourceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertSourceRequest.ProtoReflect.Descriptor instead. func (*InsertSourceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{148} + return file_state_v1_state_proto_rawDescGZIP(), []int{152} } func (x *InsertSourceRequest) GetSource() *Source { @@ -8112,7 +8380,7 @@ type InsertSourceResponse struct { func (x *InsertSourceResponse) Reset() { *x = InsertSourceResponse{} - mi := &file_state_v1_state_proto_msgTypes[149] + mi := &file_state_v1_state_proto_msgTypes[153] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8124,7 +8392,7 @@ func (x *InsertSourceResponse) String() string { func (*InsertSourceResponse) ProtoMessage() {} func (x *InsertSourceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[149] + mi := &file_state_v1_state_proto_msgTypes[153] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8137,7 +8405,7 @@ func (x *InsertSourceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InsertSourceResponse.ProtoReflect.Descriptor instead. func (*InsertSourceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{149} + return file_state_v1_state_proto_rawDescGZIP(), []int{153} } type GetSourceRequest struct { @@ -8149,7 +8417,7 @@ type GetSourceRequest struct { func (x *GetSourceRequest) Reset() { *x = GetSourceRequest{} - mi := &file_state_v1_state_proto_msgTypes[150] + mi := &file_state_v1_state_proto_msgTypes[154] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8161,7 +8429,7 @@ func (x *GetSourceRequest) String() string { func (*GetSourceRequest) ProtoMessage() {} func (x *GetSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[150] + mi := &file_state_v1_state_proto_msgTypes[154] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8174,7 +8442,7 @@ func (x *GetSourceRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSourceRequest.ProtoReflect.Descriptor instead. func (*GetSourceRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{150} + return file_state_v1_state_proto_rawDescGZIP(), []int{154} } func (x *GetSourceRequest) GetPath() string { @@ -8194,7 +8462,7 @@ type GetSourceResponse struct { func (x *GetSourceResponse) Reset() { *x = GetSourceResponse{} - mi := &file_state_v1_state_proto_msgTypes[151] + mi := &file_state_v1_state_proto_msgTypes[155] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8206,7 +8474,7 @@ func (x *GetSourceResponse) String() string { func (*GetSourceResponse) ProtoMessage() {} func (x *GetSourceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[151] + mi := &file_state_v1_state_proto_msgTypes[155] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8219,7 +8487,7 @@ func (x *GetSourceResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSourceResponse.ProtoReflect.Descriptor instead. func (*GetSourceResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{151} + return file_state_v1_state_proto_rawDescGZIP(), []int{155} } func (x *GetSourceResponse) GetSource() *Source { @@ -8244,7 +8512,7 @@ type ListSourcesRequest struct { func (x *ListSourcesRequest) Reset() { *x = ListSourcesRequest{} - mi := &file_state_v1_state_proto_msgTypes[152] + mi := &file_state_v1_state_proto_msgTypes[156] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8256,7 +8524,7 @@ func (x *ListSourcesRequest) String() string { func (*ListSourcesRequest) ProtoMessage() {} func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[152] + mi := &file_state_v1_state_proto_msgTypes[156] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8269,7 +8537,7 @@ func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSourcesRequest.ProtoReflect.Descriptor instead. func (*ListSourcesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{152} + return file_state_v1_state_proto_rawDescGZIP(), []int{156} } type ListSourcesResponse struct { @@ -8281,7 +8549,7 @@ type ListSourcesResponse struct { func (x *ListSourcesResponse) Reset() { *x = ListSourcesResponse{} - mi := &file_state_v1_state_proto_msgTypes[153] + mi := &file_state_v1_state_proto_msgTypes[157] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8293,7 +8561,7 @@ func (x *ListSourcesResponse) String() string { func (*ListSourcesResponse) ProtoMessage() {} func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[153] + mi := &file_state_v1_state_proto_msgTypes[157] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8306,7 +8574,7 @@ func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSourcesResponse.ProtoReflect.Descriptor instead. func (*ListSourcesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{153} + return file_state_v1_state_proto_rawDescGZIP(), []int{157} } func (x *ListSourcesResponse) GetSources() []*Source { @@ -8327,7 +8595,7 @@ type SetSourceSigningRequest struct { func (x *SetSourceSigningRequest) Reset() { *x = SetSourceSigningRequest{} - mi := &file_state_v1_state_proto_msgTypes[154] + mi := &file_state_v1_state_proto_msgTypes[158] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8339,7 +8607,7 @@ func (x *SetSourceSigningRequest) String() string { func (*SetSourceSigningRequest) ProtoMessage() {} func (x *SetSourceSigningRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[154] + mi := &file_state_v1_state_proto_msgTypes[158] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8352,7 +8620,7 @@ func (x *SetSourceSigningRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetSourceSigningRequest.ProtoReflect.Descriptor instead. func (*SetSourceSigningRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{154} + return file_state_v1_state_proto_rawDescGZIP(), []int{158} } func (x *SetSourceSigningRequest) GetPath() string { @@ -8384,7 +8652,7 @@ type SetSourceSigningResponse struct { func (x *SetSourceSigningResponse) Reset() { *x = SetSourceSigningResponse{} - mi := &file_state_v1_state_proto_msgTypes[155] + mi := &file_state_v1_state_proto_msgTypes[159] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8396,7 +8664,7 @@ func (x *SetSourceSigningResponse) String() string { func (*SetSourceSigningResponse) ProtoMessage() {} func (x *SetSourceSigningResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[155] + mi := &file_state_v1_state_proto_msgTypes[159] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8409,7 +8677,7 @@ func (x *SetSourceSigningResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetSourceSigningResponse.ProtoReflect.Descriptor instead. func (*SetSourceSigningResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{155} + return file_state_v1_state_proto_rawDescGZIP(), []int{159} } type SetSourceSecretRequest struct { @@ -8422,7 +8690,7 @@ type SetSourceSecretRequest struct { func (x *SetSourceSecretRequest) Reset() { *x = SetSourceSecretRequest{} - mi := &file_state_v1_state_proto_msgTypes[156] + mi := &file_state_v1_state_proto_msgTypes[160] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8434,7 +8702,7 @@ func (x *SetSourceSecretRequest) String() string { func (*SetSourceSecretRequest) ProtoMessage() {} func (x *SetSourceSecretRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[156] + mi := &file_state_v1_state_proto_msgTypes[160] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8447,7 +8715,7 @@ func (x *SetSourceSecretRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SetSourceSecretRequest.ProtoReflect.Descriptor instead. func (*SetSourceSecretRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{156} + return file_state_v1_state_proto_rawDescGZIP(), []int{160} } func (x *SetSourceSecretRequest) GetPath() string { @@ -8472,7 +8740,7 @@ type SetSourceSecretResponse struct { func (x *SetSourceSecretResponse) Reset() { *x = SetSourceSecretResponse{} - mi := &file_state_v1_state_proto_msgTypes[157] + mi := &file_state_v1_state_proto_msgTypes[161] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8484,7 +8752,7 @@ func (x *SetSourceSecretResponse) String() string { func (*SetSourceSecretResponse) ProtoMessage() {} func (x *SetSourceSecretResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[157] + mi := &file_state_v1_state_proto_msgTypes[161] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8497,7 +8765,7 @@ func (x *SetSourceSecretResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SetSourceSecretResponse.ProtoReflect.Descriptor instead. func (*SetSourceSecretResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{157} + return file_state_v1_state_proto_rawDescGZIP(), []int{161} } type ArmedBindingsForSourceRequest struct { @@ -8509,7 +8777,7 @@ type ArmedBindingsForSourceRequest struct { func (x *ArmedBindingsForSourceRequest) Reset() { *x = ArmedBindingsForSourceRequest{} - mi := &file_state_v1_state_proto_msgTypes[158] + mi := &file_state_v1_state_proto_msgTypes[162] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8521,7 +8789,7 @@ func (x *ArmedBindingsForSourceRequest) String() string { func (*ArmedBindingsForSourceRequest) ProtoMessage() {} func (x *ArmedBindingsForSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[158] + mi := &file_state_v1_state_proto_msgTypes[162] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8534,7 +8802,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{158} + return file_state_v1_state_proto_rawDescGZIP(), []int{162} } func (x *ArmedBindingsForSourceRequest) GetSource() string { @@ -8553,7 +8821,7 @@ type ArmedBindingsForSourceResponse struct { func (x *ArmedBindingsForSourceResponse) Reset() { *x = ArmedBindingsForSourceResponse{} - mi := &file_state_v1_state_proto_msgTypes[159] + mi := &file_state_v1_state_proto_msgTypes[163] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8565,7 +8833,7 @@ func (x *ArmedBindingsForSourceResponse) String() string { func (*ArmedBindingsForSourceResponse) ProtoMessage() {} func (x *ArmedBindingsForSourceResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[159] + mi := &file_state_v1_state_proto_msgTypes[163] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8578,7 +8846,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{159} + return file_state_v1_state_proto_rawDescGZIP(), []int{163} } func (x *ArmedBindingsForSourceResponse) GetBindings() []*Binding { @@ -8601,7 +8869,7 @@ type RecordDispatchRequest struct { func (x *RecordDispatchRequest) Reset() { *x = RecordDispatchRequest{} - mi := &file_state_v1_state_proto_msgTypes[160] + mi := &file_state_v1_state_proto_msgTypes[164] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8613,7 +8881,7 @@ func (x *RecordDispatchRequest) String() string { func (*RecordDispatchRequest) ProtoMessage() {} func (x *RecordDispatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[160] + mi := &file_state_v1_state_proto_msgTypes[164] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8626,7 +8894,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{160} + return file_state_v1_state_proto_rawDescGZIP(), []int{164} } func (x *RecordDispatchRequest) GetBindingId() string { @@ -8665,7 +8933,7 @@ type RecordDispatchResponse struct { func (x *RecordDispatchResponse) Reset() { *x = RecordDispatchResponse{} - mi := &file_state_v1_state_proto_msgTypes[161] + mi := &file_state_v1_state_proto_msgTypes[165] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8677,7 +8945,7 @@ func (x *RecordDispatchResponse) String() string { func (*RecordDispatchResponse) ProtoMessage() {} func (x *RecordDispatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[161] + mi := &file_state_v1_state_proto_msgTypes[165] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8690,7 +8958,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{161} + return file_state_v1_state_proto_rawDescGZIP(), []int{165} } type RecordPlaybookDispatchRequest struct { @@ -8705,7 +8973,7 @@ type RecordPlaybookDispatchRequest struct { func (x *RecordPlaybookDispatchRequest) Reset() { *x = RecordPlaybookDispatchRequest{} - mi := &file_state_v1_state_proto_msgTypes[162] + mi := &file_state_v1_state_proto_msgTypes[166] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8717,7 +8985,7 @@ func (x *RecordPlaybookDispatchRequest) String() string { func (*RecordPlaybookDispatchRequest) ProtoMessage() {} func (x *RecordPlaybookDispatchRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[162] + mi := &file_state_v1_state_proto_msgTypes[166] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8730,7 +8998,7 @@ func (x *RecordPlaybookDispatchRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordPlaybookDispatchRequest.ProtoReflect.Descriptor instead. func (*RecordPlaybookDispatchRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{162} + return file_state_v1_state_proto_rawDescGZIP(), []int{166} } func (x *RecordPlaybookDispatchRequest) GetPlaybookId() string { @@ -8769,7 +9037,7 @@ type RecordPlaybookDispatchResponse struct { func (x *RecordPlaybookDispatchResponse) Reset() { *x = RecordPlaybookDispatchResponse{} - mi := &file_state_v1_state_proto_msgTypes[163] + mi := &file_state_v1_state_proto_msgTypes[167] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8781,7 +9049,7 @@ func (x *RecordPlaybookDispatchResponse) String() string { func (*RecordPlaybookDispatchResponse) ProtoMessage() {} func (x *RecordPlaybookDispatchResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[163] + mi := &file_state_v1_state_proto_msgTypes[167] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8794,7 +9062,7 @@ func (x *RecordPlaybookDispatchResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordPlaybookDispatchResponse.ProtoReflect.Descriptor instead. func (*RecordPlaybookDispatchResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{163} + return file_state_v1_state_proto_rawDescGZIP(), []int{167} } type DeletePlaybookDispatchesRequest struct { @@ -8806,7 +9074,7 @@ type DeletePlaybookDispatchesRequest struct { func (x *DeletePlaybookDispatchesRequest) Reset() { *x = DeletePlaybookDispatchesRequest{} - mi := &file_state_v1_state_proto_msgTypes[164] + mi := &file_state_v1_state_proto_msgTypes[168] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8818,7 +9086,7 @@ func (x *DeletePlaybookDispatchesRequest) String() string { func (*DeletePlaybookDispatchesRequest) ProtoMessage() {} func (x *DeletePlaybookDispatchesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[164] + mi := &file_state_v1_state_proto_msgTypes[168] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8831,7 +9099,7 @@ func (x *DeletePlaybookDispatchesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePlaybookDispatchesRequest.ProtoReflect.Descriptor instead. func (*DeletePlaybookDispatchesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{164} + return file_state_v1_state_proto_rawDescGZIP(), []int{168} } func (x *DeletePlaybookDispatchesRequest) GetPlaybookId() string { @@ -8849,7 +9117,7 @@ type DeletePlaybookDispatchesResponse struct { func (x *DeletePlaybookDispatchesResponse) Reset() { *x = DeletePlaybookDispatchesResponse{} - mi := &file_state_v1_state_proto_msgTypes[165] + mi := &file_state_v1_state_proto_msgTypes[169] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8861,7 +9129,7 @@ func (x *DeletePlaybookDispatchesResponse) String() string { func (*DeletePlaybookDispatchesResponse) ProtoMessage() {} func (x *DeletePlaybookDispatchesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[165] + mi := &file_state_v1_state_proto_msgTypes[169] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8874,7 +9142,7 @@ func (x *DeletePlaybookDispatchesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePlaybookDispatchesResponse.ProtoReflect.Descriptor instead. func (*DeletePlaybookDispatchesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{165} + return file_state_v1_state_proto_rawDescGZIP(), []int{169} } type StreamUndispatchedCapturesRequest struct { @@ -8887,7 +9155,7 @@ type StreamUndispatchedCapturesRequest struct { func (x *StreamUndispatchedCapturesRequest) Reset() { *x = StreamUndispatchedCapturesRequest{} - mi := &file_state_v1_state_proto_msgTypes[166] + mi := &file_state_v1_state_proto_msgTypes[170] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8899,7 +9167,7 @@ func (x *StreamUndispatchedCapturesRequest) String() string { func (*StreamUndispatchedCapturesRequest) ProtoMessage() {} func (x *StreamUndispatchedCapturesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[166] + mi := &file_state_v1_state_proto_msgTypes[170] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8912,7 +9180,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{166} + return file_state_v1_state_proto_rawDescGZIP(), []int{170} } func (x *StreamUndispatchedCapturesRequest) GetSources() []string { @@ -8939,7 +9207,7 @@ type StreamUndispatchedCapturesResponse struct { func (x *StreamUndispatchedCapturesResponse) Reset() { *x = StreamUndispatchedCapturesResponse{} - mi := &file_state_v1_state_proto_msgTypes[167] + mi := &file_state_v1_state_proto_msgTypes[171] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8951,7 +9219,7 @@ func (x *StreamUndispatchedCapturesResponse) String() string { func (*StreamUndispatchedCapturesResponse) ProtoMessage() {} func (x *StreamUndispatchedCapturesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[167] + mi := &file_state_v1_state_proto_msgTypes[171] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8964,7 +9232,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{167} + return file_state_v1_state_proto_rawDescGZIP(), []int{171} } func (x *StreamUndispatchedCapturesResponse) GetCapture() *CapturedEvent { @@ -8991,7 +9259,7 @@ type EnqueueBindingTaskRequest struct { func (x *EnqueueBindingTaskRequest) Reset() { *x = EnqueueBindingTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[168] + mi := &file_state_v1_state_proto_msgTypes[172] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9003,7 +9271,7 @@ func (x *EnqueueBindingTaskRequest) String() string { func (*EnqueueBindingTaskRequest) ProtoMessage() {} func (x *EnqueueBindingTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[168] + mi := &file_state_v1_state_proto_msgTypes[172] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9016,7 +9284,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{168} + return file_state_v1_state_proto_rawDescGZIP(), []int{172} } func (x *EnqueueBindingTaskRequest) GetOwner() string { @@ -9091,7 +9359,7 @@ type EnqueueBindingTaskResponse struct { func (x *EnqueueBindingTaskResponse) Reset() { *x = EnqueueBindingTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[169] + mi := &file_state_v1_state_proto_msgTypes[173] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9103,7 +9371,7 @@ func (x *EnqueueBindingTaskResponse) String() string { func (*EnqueueBindingTaskResponse) ProtoMessage() {} func (x *EnqueueBindingTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[169] + mi := &file_state_v1_state_proto_msgTypes[173] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9116,7 +9384,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{169} + return file_state_v1_state_proto_rawDescGZIP(), []int{173} } func (x *EnqueueBindingTaskResponse) GetTask() *Task { @@ -9139,7 +9407,7 @@ type EnqueueCallTaskRequest struct { func (x *EnqueueCallTaskRequest) Reset() { *x = EnqueueCallTaskRequest{} - mi := &file_state_v1_state_proto_msgTypes[170] + mi := &file_state_v1_state_proto_msgTypes[174] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9151,7 +9419,7 @@ func (x *EnqueueCallTaskRequest) String() string { func (*EnqueueCallTaskRequest) ProtoMessage() {} func (x *EnqueueCallTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[170] + mi := &file_state_v1_state_proto_msgTypes[174] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9164,7 +9432,7 @@ func (x *EnqueueCallTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueCallTaskRequest.ProtoReflect.Descriptor instead. func (*EnqueueCallTaskRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{170} + return file_state_v1_state_proto_rawDescGZIP(), []int{174} } func (x *EnqueueCallTaskRequest) GetCallerTaskId() int64 { @@ -9198,7 +9466,7 @@ type EnqueueCallTaskResponse struct { func (x *EnqueueCallTaskResponse) Reset() { *x = EnqueueCallTaskResponse{} - mi := &file_state_v1_state_proto_msgTypes[171] + mi := &file_state_v1_state_proto_msgTypes[175] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9210,7 +9478,7 @@ func (x *EnqueueCallTaskResponse) String() string { func (*EnqueueCallTaskResponse) ProtoMessage() {} func (x *EnqueueCallTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[171] + mi := &file_state_v1_state_proto_msgTypes[175] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9223,7 +9491,7 @@ func (x *EnqueueCallTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EnqueueCallTaskResponse.ProtoReflect.Descriptor instead. func (*EnqueueCallTaskResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{171} + return file_state_v1_state_proto_rawDescGZIP(), []int{175} } func (x *EnqueueCallTaskResponse) GetTask() *Task { @@ -9250,7 +9518,7 @@ type WorkflowCallStatusRequest struct { func (x *WorkflowCallStatusRequest) Reset() { *x = WorkflowCallStatusRequest{} - mi := &file_state_v1_state_proto_msgTypes[172] + mi := &file_state_v1_state_proto_msgTypes[176] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9262,7 +9530,7 @@ func (x *WorkflowCallStatusRequest) String() string { func (*WorkflowCallStatusRequest) ProtoMessage() {} func (x *WorkflowCallStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[172] + mi := &file_state_v1_state_proto_msgTypes[176] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9275,7 +9543,7 @@ func (x *WorkflowCallStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowCallStatusRequest.ProtoReflect.Descriptor instead. func (*WorkflowCallStatusRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{172} + return file_state_v1_state_proto_rawDescGZIP(), []int{176} } func (x *WorkflowCallStatusRequest) GetCallerTaskId() int64 { @@ -9304,7 +9572,7 @@ type WorkflowCallStatusResponse struct { func (x *WorkflowCallStatusResponse) Reset() { *x = WorkflowCallStatusResponse{} - mi := &file_state_v1_state_proto_msgTypes[173] + mi := &file_state_v1_state_proto_msgTypes[177] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9316,7 +9584,7 @@ func (x *WorkflowCallStatusResponse) String() string { func (*WorkflowCallStatusResponse) ProtoMessage() {} func (x *WorkflowCallStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[173] + mi := &file_state_v1_state_proto_msgTypes[177] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9329,7 +9597,7 @@ func (x *WorkflowCallStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkflowCallStatusResponse.ProtoReflect.Descriptor instead. func (*WorkflowCallStatusResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{173} + return file_state_v1_state_proto_rawDescGZIP(), []int{177} } func (x *WorkflowCallStatusResponse) GetStatus() string { @@ -9361,7 +9629,7 @@ type InstalledPackage struct { func (x *InstalledPackage) Reset() { *x = InstalledPackage{} - mi := &file_state_v1_state_proto_msgTypes[174] + mi := &file_state_v1_state_proto_msgTypes[178] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9373,7 +9641,7 @@ func (x *InstalledPackage) String() string { func (*InstalledPackage) ProtoMessage() {} func (x *InstalledPackage) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[174] + mi := &file_state_v1_state_proto_msgTypes[178] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9386,7 +9654,7 @@ func (x *InstalledPackage) ProtoReflect() protoreflect.Message { // Deprecated: Use InstalledPackage.ProtoReflect.Descriptor instead. func (*InstalledPackage) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{174} + return file_state_v1_state_proto_rawDescGZIP(), []int{178} } func (x *InstalledPackage) GetOrgId() string { @@ -9450,7 +9718,7 @@ type InstallPackageRequest struct { func (x *InstallPackageRequest) Reset() { *x = InstallPackageRequest{} - mi := &file_state_v1_state_proto_msgTypes[175] + mi := &file_state_v1_state_proto_msgTypes[179] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9462,7 +9730,7 @@ func (x *InstallPackageRequest) String() string { func (*InstallPackageRequest) ProtoMessage() {} func (x *InstallPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[175] + mi := &file_state_v1_state_proto_msgTypes[179] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9475,7 +9743,7 @@ func (x *InstallPackageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use InstallPackageRequest.ProtoReflect.Descriptor instead. func (*InstallPackageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{175} + return file_state_v1_state_proto_rawDescGZIP(), []int{179} } func (x *InstallPackageRequest) GetOrgId() string { @@ -9515,7 +9783,7 @@ type InstallPackageResponse struct { func (x *InstallPackageResponse) Reset() { *x = InstallPackageResponse{} - mi := &file_state_v1_state_proto_msgTypes[176] + mi := &file_state_v1_state_proto_msgTypes[180] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9527,7 +9795,7 @@ func (x *InstallPackageResponse) String() string { func (*InstallPackageResponse) ProtoMessage() {} func (x *InstallPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[176] + mi := &file_state_v1_state_proto_msgTypes[180] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9540,7 +9808,7 @@ func (x *InstallPackageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use InstallPackageResponse.ProtoReflect.Descriptor instead. func (*InstallPackageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{176} + return file_state_v1_state_proto_rawDescGZIP(), []int{180} } func (x *InstallPackageResponse) GetPackage() *InstalledPackage { @@ -9560,7 +9828,7 @@ type GetInstalledPackageRequest struct { func (x *GetInstalledPackageRequest) Reset() { *x = GetInstalledPackageRequest{} - mi := &file_state_v1_state_proto_msgTypes[177] + mi := &file_state_v1_state_proto_msgTypes[181] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9572,7 +9840,7 @@ func (x *GetInstalledPackageRequest) String() string { func (*GetInstalledPackageRequest) ProtoMessage() {} func (x *GetInstalledPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[177] + mi := &file_state_v1_state_proto_msgTypes[181] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9585,7 +9853,7 @@ func (x *GetInstalledPackageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInstalledPackageRequest.ProtoReflect.Descriptor instead. func (*GetInstalledPackageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{177} + return file_state_v1_state_proto_rawDescGZIP(), []int{181} } func (x *GetInstalledPackageRequest) GetOrgId() string { @@ -9611,7 +9879,7 @@ type GetInstalledPackageResponse struct { func (x *GetInstalledPackageResponse) Reset() { *x = GetInstalledPackageResponse{} - mi := &file_state_v1_state_proto_msgTypes[178] + mi := &file_state_v1_state_proto_msgTypes[182] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9623,7 +9891,7 @@ func (x *GetInstalledPackageResponse) String() string { func (*GetInstalledPackageResponse) ProtoMessage() {} func (x *GetInstalledPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[178] + mi := &file_state_v1_state_proto_msgTypes[182] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9636,7 +9904,7 @@ func (x *GetInstalledPackageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetInstalledPackageResponse.ProtoReflect.Descriptor instead. func (*GetInstalledPackageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{178} + return file_state_v1_state_proto_rawDescGZIP(), []int{182} } func (x *GetInstalledPackageResponse) GetPackage() *InstalledPackage { @@ -9655,7 +9923,7 @@ type ListInstalledPackagesRequest struct { func (x *ListInstalledPackagesRequest) Reset() { *x = ListInstalledPackagesRequest{} - mi := &file_state_v1_state_proto_msgTypes[179] + mi := &file_state_v1_state_proto_msgTypes[183] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9667,7 +9935,7 @@ func (x *ListInstalledPackagesRequest) String() string { func (*ListInstalledPackagesRequest) ProtoMessage() {} func (x *ListInstalledPackagesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[179] + mi := &file_state_v1_state_proto_msgTypes[183] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9680,7 +9948,7 @@ func (x *ListInstalledPackagesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListInstalledPackagesRequest.ProtoReflect.Descriptor instead. func (*ListInstalledPackagesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{179} + return file_state_v1_state_proto_rawDescGZIP(), []int{183} } func (x *ListInstalledPackagesRequest) GetOrgId() string { @@ -9699,7 +9967,7 @@ type ListInstalledPackagesResponse struct { func (x *ListInstalledPackagesResponse) Reset() { *x = ListInstalledPackagesResponse{} - mi := &file_state_v1_state_proto_msgTypes[180] + mi := &file_state_v1_state_proto_msgTypes[184] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9711,7 +9979,7 @@ func (x *ListInstalledPackagesResponse) String() string { func (*ListInstalledPackagesResponse) ProtoMessage() {} func (x *ListInstalledPackagesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[180] + mi := &file_state_v1_state_proto_msgTypes[184] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9724,7 +9992,7 @@ func (x *ListInstalledPackagesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListInstalledPackagesResponse.ProtoReflect.Descriptor instead. func (*ListInstalledPackagesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{180} + return file_state_v1_state_proto_rawDescGZIP(), []int{184} } func (x *ListInstalledPackagesResponse) GetPackages() []*InstalledPackage { @@ -9744,7 +10012,7 @@ type RemoveInstalledPackageRequest struct { func (x *RemoveInstalledPackageRequest) Reset() { *x = RemoveInstalledPackageRequest{} - mi := &file_state_v1_state_proto_msgTypes[181] + mi := &file_state_v1_state_proto_msgTypes[185] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9756,7 +10024,7 @@ func (x *RemoveInstalledPackageRequest) String() string { func (*RemoveInstalledPackageRequest) ProtoMessage() {} func (x *RemoveInstalledPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[181] + mi := &file_state_v1_state_proto_msgTypes[185] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9769,7 +10037,7 @@ func (x *RemoveInstalledPackageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveInstalledPackageRequest.ProtoReflect.Descriptor instead. func (*RemoveInstalledPackageRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{181} + return file_state_v1_state_proto_rawDescGZIP(), []int{185} } func (x *RemoveInstalledPackageRequest) GetOrgId() string { @@ -9794,7 +10062,7 @@ type RemoveInstalledPackageResponse struct { func (x *RemoveInstalledPackageResponse) Reset() { *x = RemoveInstalledPackageResponse{} - mi := &file_state_v1_state_proto_msgTypes[182] + mi := &file_state_v1_state_proto_msgTypes[186] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9806,7 +10074,7 @@ func (x *RemoveInstalledPackageResponse) String() string { func (*RemoveInstalledPackageResponse) ProtoMessage() {} func (x *RemoveInstalledPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[182] + mi := &file_state_v1_state_proto_msgTypes[186] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9819,7 +10087,7 @@ func (x *RemoveInstalledPackageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveInstalledPackageResponse.ProtoReflect.Descriptor instead. func (*RemoveInstalledPackageResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{182} + return file_state_v1_state_proto_rawDescGZIP(), []int{186} } type GetPrincipalRequest struct { @@ -9831,7 +10099,7 @@ type GetPrincipalRequest struct { func (x *GetPrincipalRequest) Reset() { *x = GetPrincipalRequest{} - mi := &file_state_v1_state_proto_msgTypes[183] + mi := &file_state_v1_state_proto_msgTypes[187] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9843,7 +10111,7 @@ func (x *GetPrincipalRequest) String() string { func (*GetPrincipalRequest) ProtoMessage() {} func (x *GetPrincipalRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[183] + mi := &file_state_v1_state_proto_msgTypes[187] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9856,7 +10124,7 @@ func (x *GetPrincipalRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrincipalRequest.ProtoReflect.Descriptor instead. func (*GetPrincipalRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{183} + return file_state_v1_state_proto_rawDescGZIP(), []int{187} } func (x *GetPrincipalRequest) GetIdentityId() string { @@ -9879,7 +10147,7 @@ type PrincipalMembership struct { func (x *PrincipalMembership) Reset() { *x = PrincipalMembership{} - mi := &file_state_v1_state_proto_msgTypes[184] + mi := &file_state_v1_state_proto_msgTypes[188] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9891,7 +10159,7 @@ func (x *PrincipalMembership) String() string { func (*PrincipalMembership) ProtoMessage() {} func (x *PrincipalMembership) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[184] + mi := &file_state_v1_state_proto_msgTypes[188] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9904,7 +10172,7 @@ func (x *PrincipalMembership) ProtoReflect() protoreflect.Message { // Deprecated: Use PrincipalMembership.ProtoReflect.Descriptor instead. func (*PrincipalMembership) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{184} + return file_state_v1_state_proto_rawDescGZIP(), []int{188} } func (x *PrincipalMembership) GetOrgId() string { @@ -9939,7 +10207,7 @@ type AccessPrincipal struct { func (x *AccessPrincipal) Reset() { *x = AccessPrincipal{} - mi := &file_state_v1_state_proto_msgTypes[185] + mi := &file_state_v1_state_proto_msgTypes[189] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9951,7 +10219,7 @@ func (x *AccessPrincipal) String() string { func (*AccessPrincipal) ProtoMessage() {} func (x *AccessPrincipal) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[185] + mi := &file_state_v1_state_proto_msgTypes[189] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9964,7 +10232,7 @@ func (x *AccessPrincipal) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessPrincipal.ProtoReflect.Descriptor instead. func (*AccessPrincipal) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{185} + return file_state_v1_state_proto_rawDescGZIP(), []int{189} } func (x *AccessPrincipal) GetIdentityId() string { @@ -9997,7 +10265,7 @@ type GetPrincipalResponse struct { func (x *GetPrincipalResponse) Reset() { *x = GetPrincipalResponse{} - mi := &file_state_v1_state_proto_msgTypes[186] + mi := &file_state_v1_state_proto_msgTypes[190] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10009,7 +10277,7 @@ func (x *GetPrincipalResponse) String() string { func (*GetPrincipalResponse) ProtoMessage() {} func (x *GetPrincipalResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[186] + mi := &file_state_v1_state_proto_msgTypes[190] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10022,7 +10290,7 @@ func (x *GetPrincipalResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrincipalResponse.ProtoReflect.Descriptor instead. func (*GetPrincipalResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{186} + return file_state_v1_state_proto_rawDescGZIP(), []int{190} } func (x *GetPrincipalResponse) GetPrincipal() *AccessPrincipal { @@ -10049,7 +10317,7 @@ type AccessPolicy struct { func (x *AccessPolicy) Reset() { *x = AccessPolicy{} - mi := &file_state_v1_state_proto_msgTypes[187] + mi := &file_state_v1_state_proto_msgTypes[191] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10061,7 +10329,7 @@ func (x *AccessPolicy) String() string { func (*AccessPolicy) ProtoMessage() {} func (x *AccessPolicy) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[187] + mi := &file_state_v1_state_proto_msgTypes[191] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10074,7 +10342,7 @@ func (x *AccessPolicy) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessPolicy.ProtoReflect.Descriptor instead. func (*AccessPolicy) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{187} + return file_state_v1_state_proto_rawDescGZIP(), []int{191} } func (x *AccessPolicy) GetPolicyId() string { @@ -10134,7 +10402,7 @@ type ListPoliciesRequest struct { func (x *ListPoliciesRequest) Reset() { *x = ListPoliciesRequest{} - mi := &file_state_v1_state_proto_msgTypes[188] + mi := &file_state_v1_state_proto_msgTypes[192] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10146,7 +10414,7 @@ func (x *ListPoliciesRequest) String() string { func (*ListPoliciesRequest) ProtoMessage() {} func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[188] + mi := &file_state_v1_state_proto_msgTypes[192] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10159,7 +10427,7 @@ func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPoliciesRequest.ProtoReflect.Descriptor instead. func (*ListPoliciesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{188} + return file_state_v1_state_proto_rawDescGZIP(), []int{192} } type ListPoliciesResponse struct { @@ -10171,7 +10439,7 @@ type ListPoliciesResponse struct { func (x *ListPoliciesResponse) Reset() { *x = ListPoliciesResponse{} - mi := &file_state_v1_state_proto_msgTypes[189] + mi := &file_state_v1_state_proto_msgTypes[193] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10183,7 +10451,7 @@ func (x *ListPoliciesResponse) String() string { func (*ListPoliciesResponse) ProtoMessage() {} func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[189] + mi := &file_state_v1_state_proto_msgTypes[193] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10196,7 +10464,7 @@ func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPoliciesResponse.ProtoReflect.Descriptor instead. func (*ListPoliciesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{189} + return file_state_v1_state_proto_rawDescGZIP(), []int{193} } func (x *ListPoliciesResponse) GetPolicies() []*AccessPolicy { @@ -10215,7 +10483,7 @@ type PutPolicyRequest struct { func (x *PutPolicyRequest) Reset() { *x = PutPolicyRequest{} - mi := &file_state_v1_state_proto_msgTypes[190] + mi := &file_state_v1_state_proto_msgTypes[194] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10227,7 +10495,7 @@ func (x *PutPolicyRequest) String() string { func (*PutPolicyRequest) ProtoMessage() {} func (x *PutPolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[190] + mi := &file_state_v1_state_proto_msgTypes[194] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10240,7 +10508,7 @@ func (x *PutPolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PutPolicyRequest.ProtoReflect.Descriptor instead. func (*PutPolicyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{190} + return file_state_v1_state_proto_rawDescGZIP(), []int{194} } func (x *PutPolicyRequest) GetPolicy() *AccessPolicy { @@ -10259,7 +10527,7 @@ type PutPolicyResponse struct { func (x *PutPolicyResponse) Reset() { *x = PutPolicyResponse{} - mi := &file_state_v1_state_proto_msgTypes[191] + mi := &file_state_v1_state_proto_msgTypes[195] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10271,7 +10539,7 @@ func (x *PutPolicyResponse) String() string { func (*PutPolicyResponse) ProtoMessage() {} func (x *PutPolicyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[191] + mi := &file_state_v1_state_proto_msgTypes[195] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10284,7 +10552,7 @@ func (x *PutPolicyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PutPolicyResponse.ProtoReflect.Descriptor instead. func (*PutPolicyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{191} + return file_state_v1_state_proto_rawDescGZIP(), []int{195} } func (x *PutPolicyResponse) GetVersion() int64 { @@ -10303,7 +10571,7 @@ type DeletePolicyRequest struct { func (x *DeletePolicyRequest) Reset() { *x = DeletePolicyRequest{} - mi := &file_state_v1_state_proto_msgTypes[192] + mi := &file_state_v1_state_proto_msgTypes[196] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10315,7 +10583,7 @@ func (x *DeletePolicyRequest) String() string { func (*DeletePolicyRequest) ProtoMessage() {} func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[192] + mi := &file_state_v1_state_proto_msgTypes[196] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10328,7 +10596,7 @@ func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePolicyRequest.ProtoReflect.Descriptor instead. func (*DeletePolicyRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{192} + return file_state_v1_state_proto_rawDescGZIP(), []int{196} } func (x *DeletePolicyRequest) GetPolicy() *AccessPolicy { @@ -10346,7 +10614,7 @@ type DeletePolicyResponse struct { func (x *DeletePolicyResponse) Reset() { *x = DeletePolicyResponse{} - mi := &file_state_v1_state_proto_msgTypes[193] + mi := &file_state_v1_state_proto_msgTypes[197] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10358,7 +10626,7 @@ func (x *DeletePolicyResponse) String() string { func (*DeletePolicyResponse) ProtoMessage() {} func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[193] + mi := &file_state_v1_state_proto_msgTypes[197] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10371,7 +10639,7 @@ func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePolicyResponse.ProtoReflect.Descriptor instead. func (*DeletePolicyResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{193} + return file_state_v1_state_proto_rawDescGZIP(), []int{197} } type EnsureShippedOrgPoliciesRequest struct { @@ -10383,7 +10651,7 @@ type EnsureShippedOrgPoliciesRequest struct { func (x *EnsureShippedOrgPoliciesRequest) Reset() { *x = EnsureShippedOrgPoliciesRequest{} - mi := &file_state_v1_state_proto_msgTypes[194] + mi := &file_state_v1_state_proto_msgTypes[198] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10395,7 +10663,7 @@ func (x *EnsureShippedOrgPoliciesRequest) String() string { func (*EnsureShippedOrgPoliciesRequest) ProtoMessage() {} func (x *EnsureShippedOrgPoliciesRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[194] + mi := &file_state_v1_state_proto_msgTypes[198] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10408,7 +10676,7 @@ func (x *EnsureShippedOrgPoliciesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EnsureShippedOrgPoliciesRequest.ProtoReflect.Descriptor instead. func (*EnsureShippedOrgPoliciesRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{194} + return file_state_v1_state_proto_rawDescGZIP(), []int{198} } func (x *EnsureShippedOrgPoliciesRequest) GetOrgId() string { @@ -10426,7 +10694,7 @@ type EnsureShippedOrgPoliciesResponse struct { func (x *EnsureShippedOrgPoliciesResponse) Reset() { *x = EnsureShippedOrgPoliciesResponse{} - mi := &file_state_v1_state_proto_msgTypes[195] + mi := &file_state_v1_state_proto_msgTypes[199] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10438,7 +10706,7 @@ func (x *EnsureShippedOrgPoliciesResponse) String() string { func (*EnsureShippedOrgPoliciesResponse) ProtoMessage() {} func (x *EnsureShippedOrgPoliciesResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[195] + mi := &file_state_v1_state_proto_msgTypes[199] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10451,7 +10719,7 @@ func (x *EnsureShippedOrgPoliciesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EnsureShippedOrgPoliciesResponse.ProtoReflect.Descriptor instead. func (*EnsureShippedOrgPoliciesResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{195} + return file_state_v1_state_proto_rawDescGZIP(), []int{199} } // AccessDenial mirrors internal/domain/access.Denial: one refusal with the @@ -10474,7 +10742,7 @@ type AccessDenial struct { func (x *AccessDenial) Reset() { *x = AccessDenial{} - mi := &file_state_v1_state_proto_msgTypes[196] + mi := &file_state_v1_state_proto_msgTypes[200] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10486,7 +10754,7 @@ func (x *AccessDenial) String() string { func (*AccessDenial) ProtoMessage() {} func (x *AccessDenial) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[196] + mi := &file_state_v1_state_proto_msgTypes[200] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10499,7 +10767,7 @@ func (x *AccessDenial) ProtoReflect() protoreflect.Message { // Deprecated: Use AccessDenial.ProtoReflect.Descriptor instead. func (*AccessDenial) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{196} + return file_state_v1_state_proto_rawDescGZIP(), []int{200} } func (x *AccessDenial) GetOrgId() string { @@ -10574,7 +10842,7 @@ type RecordDenialRequest struct { func (x *RecordDenialRequest) Reset() { *x = RecordDenialRequest{} - mi := &file_state_v1_state_proto_msgTypes[197] + mi := &file_state_v1_state_proto_msgTypes[201] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10586,7 +10854,7 @@ func (x *RecordDenialRequest) String() string { func (*RecordDenialRequest) ProtoMessage() {} func (x *RecordDenialRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[197] + mi := &file_state_v1_state_proto_msgTypes[201] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10599,7 +10867,7 @@ func (x *RecordDenialRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDenialRequest.ProtoReflect.Descriptor instead. func (*RecordDenialRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{197} + return file_state_v1_state_proto_rawDescGZIP(), []int{201} } func (x *RecordDenialRequest) GetDenial() *AccessDenial { @@ -10617,7 +10885,7 @@ type RecordDenialResponse struct { func (x *RecordDenialResponse) Reset() { *x = RecordDenialResponse{} - mi := &file_state_v1_state_proto_msgTypes[198] + mi := &file_state_v1_state_proto_msgTypes[202] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10629,7 +10897,7 @@ func (x *RecordDenialResponse) String() string { func (*RecordDenialResponse) ProtoMessage() {} func (x *RecordDenialResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[198] + mi := &file_state_v1_state_proto_msgTypes[202] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10642,7 +10910,7 @@ func (x *RecordDenialResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RecordDenialResponse.ProtoReflect.Descriptor instead. func (*RecordDenialResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{198} + return file_state_v1_state_proto_rawDescGZIP(), []int{202} } type ListDenialsRequest struct { @@ -10655,7 +10923,7 @@ type ListDenialsRequest struct { func (x *ListDenialsRequest) Reset() { *x = ListDenialsRequest{} - mi := &file_state_v1_state_proto_msgTypes[199] + mi := &file_state_v1_state_proto_msgTypes[203] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10667,7 +10935,7 @@ func (x *ListDenialsRequest) String() string { func (*ListDenialsRequest) ProtoMessage() {} func (x *ListDenialsRequest) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[199] + mi := &file_state_v1_state_proto_msgTypes[203] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10680,7 +10948,7 @@ func (x *ListDenialsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDenialsRequest.ProtoReflect.Descriptor instead. func (*ListDenialsRequest) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{199} + return file_state_v1_state_proto_rawDescGZIP(), []int{203} } func (x *ListDenialsRequest) GetOrgId() string { @@ -10706,7 +10974,7 @@ type ListDenialsResponse struct { func (x *ListDenialsResponse) Reset() { *x = ListDenialsResponse{} - mi := &file_state_v1_state_proto_msgTypes[200] + mi := &file_state_v1_state_proto_msgTypes[204] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -10718,7 +10986,7 @@ func (x *ListDenialsResponse) String() string { func (*ListDenialsResponse) ProtoMessage() {} func (x *ListDenialsResponse) ProtoReflect() protoreflect.Message { - mi := &file_state_v1_state_proto_msgTypes[200] + mi := &file_state_v1_state_proto_msgTypes[204] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10731,7 +10999,7 @@ func (x *ListDenialsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListDenialsResponse.ProtoReflect.Descriptor instead. func (*ListDenialsResponse) Descriptor() ([]byte, []int) { - return file_state_v1_state_proto_rawDescGZIP(), []int{200} + return file_state_v1_state_proto_rawDescGZIP(), []int{204} } func (x *ListDenialsResponse) GetDenials() []*AccessDenial { @@ -11030,7 +11298,26 @@ const file_state_v1_state_proto_rawDesc = "" + "\x04from\x18\x02 \x01(\tR\x04from\x12\x0e\n" + "\x02to\x18\x03 \x01(\tR\x02to\x12\x16\n" + "\x06detail\x18\x04 \x01(\tR\x06detail\"\x14\n" + - "\x12TransitionResponse\"3\n" + + "\x12TransitionResponse\"\x94\x01\n" + + "\x10StartStepRequest\x12!\n" + + "\fexecution_id\x18\x01 \x01(\x03R\vexecutionId\x12\x18\n" + + "\aattempt\x18\x02 \x01(\x03R\aattempt\x12\x1b\n" + + "\tparent_id\x18\x03 \x01(\x03R\bparentId\x12\x12\n" + + "\x04kind\x18\x04 \x01(\tR\x04kind\x12\x12\n" + + "\x04name\x18\x05 \x01(\tR\x04name\"S\n" + + "\x11StartStepResponse\x12\x17\n" + + "\astep_id\x18\x01 \x01(\x03R\x06stepId\x12%\n" + + "\x05event\x18\x02 \x01(\v2\x0f.state.v1.EventR\x05event\"\xac\x01\n" + + "\x11FinishStepRequest\x12!\n" + + "\fexecution_id\x18\x01 \x01(\x03R\vexecutionId\x12\x17\n" + + "\astep_id\x18\x02 \x01(\x03R\x06stepId\x12\x12\n" + + "\x04from\x18\x03 \x01(\tR\x04from\x12\x0e\n" + + "\x02to\x18\x04 \x01(\tR\x02to\x12\x16\n" + + "\x06detail\x18\x05 \x01(\tR\x06detail\x12\x1f\n" + + "\vtokens_used\x18\x06 \x01(\x03R\n" + + "tokensUsed\";\n" + + "\x12FinishStepResponse\x12%\n" + + "\x05event\x18\x01 \x01(\v2\x0f.state.v1.EventR\x05event\"3\n" + "\rUpdateRequest\x12\"\n" + "\x04task\x18\x01 \x01(\v2\x0e.state.v1.TaskR\x04task\"\x10\n" + "\x0eUpdateResponse\"f\n" + @@ -11438,7 +11725,7 @@ const file_state_v1_state_proto_rawDesc = "" + "\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x14\n" + "\x05limit\x18\x02 \x01(\x05R\x05limit\"G\n" + "\x13ListDenialsResponse\x120\n" + - "\adenials\x18\x01 \x03(\v2\x16.state.v1.AccessDenialR\adenials2\xce:\n" + + "\adenials\x18\x01 \x03(\v2\x16.state.v1.AccessDenialR\adenials2\xdd;\n" + "\x11StateStoreService\x12S\n" + "\x0eInstallPackage\x12\x1f.state.v1.InstallPackageRequest\x1a .state.v1.InstallPackageResponse\x12b\n" + "\x13GetInstalledPackage\x12$.state.v1.GetInstalledPackageRequest\x1a%.state.v1.GetInstalledPackageResponse\x12h\n" + @@ -11461,7 +11748,10 @@ const file_state_v1_state_proto_rawDesc = "" + "\fClaimByIssue\x12\x1d.state.v1.ClaimByIssueRequest\x1a\x1e.state.v1.ClaimByIssueResponse\x12G\n" + "\n" + "Transition\x12\x1b.state.v1.TransitionRequest\x1a\x1c.state.v1.TransitionResponse\x12;\n" + - "\x06Update\x12\x17.state.v1.UpdateRequest\x1a\x18.state.v1.UpdateResponse\x12>\n" + + "\x06Update\x12\x17.state.v1.UpdateRequest\x1a\x18.state.v1.UpdateResponse\x12D\n" + + "\tStartStep\x12\x1a.state.v1.StartStepRequest\x1a\x1b.state.v1.StartStepResponse\x12G\n" + + "\n" + + "FinishStep\x12\x1b.state.v1.FinishStepRequest\x1a\x1c.state.v1.FinishStepResponse\x12>\n" + "\aRequeue\x12\x18.state.v1.RequeueRequest\x1a\x19.state.v1.RequeueResponse\x12A\n" + "\bParkTask\x12\x19.state.v1.ParkTaskRequest\x1a\x1a.state.v1.ParkTaskResponse\x12M\n" + "\fRecoverStale\x12\x1d.state.v1.RecoverStaleRequest\x1a\x1e.state.v1.RecoverStaleResponse\x12J\n" + @@ -11548,7 +11838,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, 203) +var file_state_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 207) var file_state_v1_state_proto_goTypes = []any{ (*RegisterTaskGrantRequest)(nil), // 0: state.v1.RegisterTaskGrantRequest (*RegisterTaskGrantResponse)(nil), // 1: state.v1.RegisterTaskGrantResponse @@ -11598,166 +11888,170 @@ var file_state_v1_state_proto_goTypes = []any{ (*ClaimByIssueResponse)(nil), // 45: state.v1.ClaimByIssueResponse (*TransitionRequest)(nil), // 46: state.v1.TransitionRequest (*TransitionResponse)(nil), // 47: state.v1.TransitionResponse - (*UpdateRequest)(nil), // 48: state.v1.UpdateRequest - (*UpdateResponse)(nil), // 49: state.v1.UpdateResponse - (*RequeueRequest)(nil), // 50: state.v1.RequeueRequest - (*RequeueResponse)(nil), // 51: state.v1.RequeueResponse - (*ParkTaskRequest)(nil), // 52: state.v1.ParkTaskRequest - (*ParkTaskResponse)(nil), // 53: state.v1.ParkTaskResponse - (*RecoverStaleRequest)(nil), // 54: state.v1.RecoverStaleRequest - (*RecoverStaleResponse)(nil), // 55: state.v1.RecoverStaleResponse - (*ArchiveTaskRequest)(nil), // 56: state.v1.ArchiveTaskRequest - (*ArchiveTaskResponse)(nil), // 57: state.v1.ArchiveTaskResponse - (*RetryTaskRequest)(nil), // 58: state.v1.RetryTaskRequest - (*RetryTaskResponse)(nil), // 59: state.v1.RetryTaskResponse - (*BeginRemediationRequest)(nil), // 60: state.v1.BeginRemediationRequest - (*BeginRemediationResponse)(nil), // 61: state.v1.BeginRemediationResponse - (*UpdateReviewPayloadRequest)(nil), // 62: state.v1.UpdateReviewPayloadRequest - (*UpdateReviewPayloadResponse)(nil), // 63: state.v1.UpdateReviewPayloadResponse - (*SetReviewCursorsRequest)(nil), // 64: state.v1.SetReviewCursorsRequest - (*SetReviewCursorsResponse)(nil), // 65: state.v1.SetReviewCursorsResponse - (*TaskByIssueRequest)(nil), // 66: state.v1.TaskByIssueRequest - (*TaskByIssueResponse)(nil), // 67: state.v1.TaskByIssueResponse - (*OpenTaskByPRRequest)(nil), // 68: state.v1.OpenTaskByPRRequest - (*OpenTaskByPRResponse)(nil), // 69: state.v1.OpenTaskByPRResponse - (*TaskByIDRequest)(nil), // 70: state.v1.TaskByIDRequest - (*TaskByIDResponse)(nil), // 71: state.v1.TaskByIDResponse - (*OpenPRsRequest)(nil), // 72: state.v1.OpenPRsRequest - (*OpenPRsResponse)(nil), // 73: state.v1.OpenPRsResponse - (*ClearTerminalTasksRequest)(nil), // 74: state.v1.ClearTerminalTasksRequest - (*ClearTerminalTasksResponse)(nil), // 75: state.v1.ClearTerminalTasksResponse - (*TasksRequest)(nil), // 76: state.v1.TasksRequest - (*TasksResponse)(nil), // 77: state.v1.TasksResponse - (*StatusCountsRequest)(nil), // 78: state.v1.StatusCountsRequest - (*StatusCountsResponse)(nil), // 79: state.v1.StatusCountsResponse - (*InsertEventRequest)(nil), // 80: state.v1.InsertEventRequest - (*InsertEventResponse)(nil), // 81: state.v1.InsertEventResponse - (*EventsSinceRequest)(nil), // 82: state.v1.EventsSinceRequest - (*EventsSinceResponse)(nil), // 83: state.v1.EventsSinceResponse - (*TaskEventsRequest)(nil), // 84: state.v1.TaskEventsRequest - (*TaskEventsResponse)(nil), // 85: state.v1.TaskEventsResponse - (*WorkflowStatsRequest)(nil), // 86: state.v1.WorkflowStatsRequest - (*WorkflowStatsResponse)(nil), // 87: state.v1.WorkflowStatsResponse - (*StageStatsRequest)(nil), // 88: state.v1.StageStatsRequest - (*StageStatsResponse)(nil), // 89: state.v1.StageStatsResponse - (*TokensByDayRequest)(nil), // 90: state.v1.TokensByDayRequest - (*TokensByDayResponse)(nil), // 91: state.v1.TokensByDayResponse - (*ConfigSnapshot)(nil), // 92: state.v1.ConfigSnapshot - (*PutConfigSnapshotRequest)(nil), // 93: state.v1.PutConfigSnapshotRequest - (*PutConfigSnapshotResponse)(nil), // 94: state.v1.PutConfigSnapshotResponse - (*GetConfigSnapshotRequest)(nil), // 95: state.v1.GetConfigSnapshotRequest - (*GetConfigSnapshotResponse)(nil), // 96: state.v1.GetConfigSnapshotResponse - (*ChannelStatus)(nil), // 97: state.v1.ChannelStatus - (*PutChannelStatusRequest)(nil), // 98: state.v1.PutChannelStatusRequest - (*PutChannelStatusResponse)(nil), // 99: state.v1.PutChannelStatusResponse - (*ListChannelStatusRequest)(nil), // 100: state.v1.ListChannelStatusRequest - (*ListChannelStatusResponse)(nil), // 101: state.v1.ListChannelStatusResponse - (*ApplyStatus)(nil), // 102: state.v1.ApplyStatus - (*PutApplyStatusRequest)(nil), // 103: state.v1.PutApplyStatusRequest - (*PutApplyStatusResponse)(nil), // 104: state.v1.PutApplyStatusResponse - (*ListApplyStatusRequest)(nil), // 105: state.v1.ListApplyStatusRequest - (*ListApplyStatusResponse)(nil), // 106: state.v1.ListApplyStatusResponse - (*TaskLogEntry)(nil), // 107: state.v1.TaskLogEntry - (*ReadTaskLogRequest)(nil), // 108: state.v1.ReadTaskLogRequest - (*ReadTaskLogResponse)(nil), // 109: state.v1.ReadTaskLogResponse - (*StreamTaskLogContentRequest)(nil), // 110: state.v1.StreamTaskLogContentRequest - (*StreamTaskLogContentResponse)(nil), // 111: state.v1.StreamTaskLogContentResponse - (*InsertCaptureRequest)(nil), // 112: state.v1.InsertCaptureRequest - (*InsertCaptureResponse)(nil), // 113: state.v1.InsertCaptureResponse - (*StreamCapturesRequest)(nil), // 114: state.v1.StreamCapturesRequest - (*StreamCapturesResponse)(nil), // 115: state.v1.StreamCapturesResponse - (*InsertMappingRequest)(nil), // 116: state.v1.InsertMappingRequest - (*InsertMappingResponse)(nil), // 117: state.v1.InsertMappingResponse - (*GetMappingRequest)(nil), // 118: state.v1.GetMappingRequest - (*GetMappingResponse)(nil), // 119: state.v1.GetMappingResponse - (*ListMappingsRequest)(nil), // 120: state.v1.ListMappingsRequest - (*ListMappingsResponse)(nil), // 121: state.v1.ListMappingsResponse - (*UpdateMappingRequest)(nil), // 122: state.v1.UpdateMappingRequest - (*UpdateMappingResponse)(nil), // 123: state.v1.UpdateMappingResponse - (*DeleteMappingRequest)(nil), // 124: state.v1.DeleteMappingRequest - (*DeleteMappingResponse)(nil), // 125: state.v1.DeleteMappingResponse - (*RecordMappingMatchRequest)(nil), // 126: state.v1.RecordMappingMatchRequest - (*RecordMappingMatchResponse)(nil), // 127: state.v1.RecordMappingMatchResponse - (*InsertEventTypeRequest)(nil), // 128: state.v1.InsertEventTypeRequest - (*InsertEventTypeResponse)(nil), // 129: state.v1.InsertEventTypeResponse - (*UpdateEventTypeRequest)(nil), // 130: state.v1.UpdateEventTypeRequest - (*UpdateEventTypeResponse)(nil), // 131: state.v1.UpdateEventTypeResponse - (*DeleteEventTypeRequest)(nil), // 132: state.v1.DeleteEventTypeRequest - (*DeleteEventTypeResponse)(nil), // 133: state.v1.DeleteEventTypeResponse - (*ListEventTypesRequest)(nil), // 134: state.v1.ListEventTypesRequest - (*ListEventTypesResponse)(nil), // 135: state.v1.ListEventTypesResponse - (*InsertBindingRequest)(nil), // 136: state.v1.InsertBindingRequest - (*InsertBindingResponse)(nil), // 137: state.v1.InsertBindingResponse - (*GetBindingRequest)(nil), // 138: state.v1.GetBindingRequest - (*GetBindingResponse)(nil), // 139: state.v1.GetBindingResponse - (*ListBindingsRequest)(nil), // 140: state.v1.ListBindingsRequest - (*ListBindingsResponse)(nil), // 141: state.v1.ListBindingsResponse - (*UpdateBindingRequest)(nil), // 142: state.v1.UpdateBindingRequest - (*UpdateBindingResponse)(nil), // 143: state.v1.UpdateBindingResponse - (*DeleteBindingRequest)(nil), // 144: state.v1.DeleteBindingRequest - (*DeleteBindingResponse)(nil), // 145: state.v1.DeleteBindingResponse - (*ApproveBindingRequest)(nil), // 146: state.v1.ApproveBindingRequest - (*ApproveBindingResponse)(nil), // 147: state.v1.ApproveBindingResponse - (*InsertSourceRequest)(nil), // 148: state.v1.InsertSourceRequest - (*InsertSourceResponse)(nil), // 149: state.v1.InsertSourceResponse - (*GetSourceRequest)(nil), // 150: state.v1.GetSourceRequest - (*GetSourceResponse)(nil), // 151: state.v1.GetSourceResponse - (*ListSourcesRequest)(nil), // 152: state.v1.ListSourcesRequest - (*ListSourcesResponse)(nil), // 153: state.v1.ListSourcesResponse - (*SetSourceSigningRequest)(nil), // 154: state.v1.SetSourceSigningRequest - (*SetSourceSigningResponse)(nil), // 155: state.v1.SetSourceSigningResponse - (*SetSourceSecretRequest)(nil), // 156: state.v1.SetSourceSecretRequest - (*SetSourceSecretResponse)(nil), // 157: state.v1.SetSourceSecretResponse - (*ArmedBindingsForSourceRequest)(nil), // 158: state.v1.ArmedBindingsForSourceRequest - (*ArmedBindingsForSourceResponse)(nil), // 159: state.v1.ArmedBindingsForSourceResponse - (*RecordDispatchRequest)(nil), // 160: state.v1.RecordDispatchRequest - (*RecordDispatchResponse)(nil), // 161: state.v1.RecordDispatchResponse - (*RecordPlaybookDispatchRequest)(nil), // 162: state.v1.RecordPlaybookDispatchRequest - (*RecordPlaybookDispatchResponse)(nil), // 163: state.v1.RecordPlaybookDispatchResponse - (*DeletePlaybookDispatchesRequest)(nil), // 164: state.v1.DeletePlaybookDispatchesRequest - (*DeletePlaybookDispatchesResponse)(nil), // 165: state.v1.DeletePlaybookDispatchesResponse - (*StreamUndispatchedCapturesRequest)(nil), // 166: state.v1.StreamUndispatchedCapturesRequest - (*StreamUndispatchedCapturesResponse)(nil), // 167: state.v1.StreamUndispatchedCapturesResponse - (*EnqueueBindingTaskRequest)(nil), // 168: state.v1.EnqueueBindingTaskRequest - (*EnqueueBindingTaskResponse)(nil), // 169: state.v1.EnqueueBindingTaskResponse - (*EnqueueCallTaskRequest)(nil), // 170: state.v1.EnqueueCallTaskRequest - (*EnqueueCallTaskResponse)(nil), // 171: state.v1.EnqueueCallTaskResponse - (*WorkflowCallStatusRequest)(nil), // 172: state.v1.WorkflowCallStatusRequest - (*WorkflowCallStatusResponse)(nil), // 173: state.v1.WorkflowCallStatusResponse - (*InstalledPackage)(nil), // 174: state.v1.InstalledPackage - (*InstallPackageRequest)(nil), // 175: state.v1.InstallPackageRequest - (*InstallPackageResponse)(nil), // 176: state.v1.InstallPackageResponse - (*GetInstalledPackageRequest)(nil), // 177: state.v1.GetInstalledPackageRequest - (*GetInstalledPackageResponse)(nil), // 178: state.v1.GetInstalledPackageResponse - (*ListInstalledPackagesRequest)(nil), // 179: state.v1.ListInstalledPackagesRequest - (*ListInstalledPackagesResponse)(nil), // 180: state.v1.ListInstalledPackagesResponse - (*RemoveInstalledPackageRequest)(nil), // 181: state.v1.RemoveInstalledPackageRequest - (*RemoveInstalledPackageResponse)(nil), // 182: state.v1.RemoveInstalledPackageResponse - (*GetPrincipalRequest)(nil), // 183: state.v1.GetPrincipalRequest - (*PrincipalMembership)(nil), // 184: state.v1.PrincipalMembership - (*AccessPrincipal)(nil), // 185: state.v1.AccessPrincipal - (*GetPrincipalResponse)(nil), // 186: state.v1.GetPrincipalResponse - (*AccessPolicy)(nil), // 187: state.v1.AccessPolicy - (*ListPoliciesRequest)(nil), // 188: state.v1.ListPoliciesRequest - (*ListPoliciesResponse)(nil), // 189: state.v1.ListPoliciesResponse - (*PutPolicyRequest)(nil), // 190: state.v1.PutPolicyRequest - (*PutPolicyResponse)(nil), // 191: state.v1.PutPolicyResponse - (*DeletePolicyRequest)(nil), // 192: state.v1.DeletePolicyRequest - (*DeletePolicyResponse)(nil), // 193: state.v1.DeletePolicyResponse - (*EnsureShippedOrgPoliciesRequest)(nil), // 194: state.v1.EnsureShippedOrgPoliciesRequest - (*EnsureShippedOrgPoliciesResponse)(nil), // 195: state.v1.EnsureShippedOrgPoliciesResponse - (*AccessDenial)(nil), // 196: state.v1.AccessDenial - (*RecordDenialRequest)(nil), // 197: state.v1.RecordDenialRequest - (*RecordDenialResponse)(nil), // 198: state.v1.RecordDenialResponse - (*ListDenialsRequest)(nil), // 199: state.v1.ListDenialsRequest - (*ListDenialsResponse)(nil), // 200: state.v1.ListDenialsResponse - nil, // 201: state.v1.EventType.SchemaEntry - nil, // 202: state.v1.StatusCountsResponse.CountsEntry - (*timestamppb.Timestamp)(nil), // 203: google.protobuf.Timestamp + (*StartStepRequest)(nil), // 48: state.v1.StartStepRequest + (*StartStepResponse)(nil), // 49: state.v1.StartStepResponse + (*FinishStepRequest)(nil), // 50: state.v1.FinishStepRequest + (*FinishStepResponse)(nil), // 51: state.v1.FinishStepResponse + (*UpdateRequest)(nil), // 52: state.v1.UpdateRequest + (*UpdateResponse)(nil), // 53: state.v1.UpdateResponse + (*RequeueRequest)(nil), // 54: state.v1.RequeueRequest + (*RequeueResponse)(nil), // 55: state.v1.RequeueResponse + (*ParkTaskRequest)(nil), // 56: state.v1.ParkTaskRequest + (*ParkTaskResponse)(nil), // 57: state.v1.ParkTaskResponse + (*RecoverStaleRequest)(nil), // 58: state.v1.RecoverStaleRequest + (*RecoverStaleResponse)(nil), // 59: state.v1.RecoverStaleResponse + (*ArchiveTaskRequest)(nil), // 60: state.v1.ArchiveTaskRequest + (*ArchiveTaskResponse)(nil), // 61: state.v1.ArchiveTaskResponse + (*RetryTaskRequest)(nil), // 62: state.v1.RetryTaskRequest + (*RetryTaskResponse)(nil), // 63: state.v1.RetryTaskResponse + (*BeginRemediationRequest)(nil), // 64: state.v1.BeginRemediationRequest + (*BeginRemediationResponse)(nil), // 65: state.v1.BeginRemediationResponse + (*UpdateReviewPayloadRequest)(nil), // 66: state.v1.UpdateReviewPayloadRequest + (*UpdateReviewPayloadResponse)(nil), // 67: state.v1.UpdateReviewPayloadResponse + (*SetReviewCursorsRequest)(nil), // 68: state.v1.SetReviewCursorsRequest + (*SetReviewCursorsResponse)(nil), // 69: state.v1.SetReviewCursorsResponse + (*TaskByIssueRequest)(nil), // 70: state.v1.TaskByIssueRequest + (*TaskByIssueResponse)(nil), // 71: state.v1.TaskByIssueResponse + (*OpenTaskByPRRequest)(nil), // 72: state.v1.OpenTaskByPRRequest + (*OpenTaskByPRResponse)(nil), // 73: state.v1.OpenTaskByPRResponse + (*TaskByIDRequest)(nil), // 74: state.v1.TaskByIDRequest + (*TaskByIDResponse)(nil), // 75: state.v1.TaskByIDResponse + (*OpenPRsRequest)(nil), // 76: state.v1.OpenPRsRequest + (*OpenPRsResponse)(nil), // 77: state.v1.OpenPRsResponse + (*ClearTerminalTasksRequest)(nil), // 78: state.v1.ClearTerminalTasksRequest + (*ClearTerminalTasksResponse)(nil), // 79: state.v1.ClearTerminalTasksResponse + (*TasksRequest)(nil), // 80: state.v1.TasksRequest + (*TasksResponse)(nil), // 81: state.v1.TasksResponse + (*StatusCountsRequest)(nil), // 82: state.v1.StatusCountsRequest + (*StatusCountsResponse)(nil), // 83: state.v1.StatusCountsResponse + (*InsertEventRequest)(nil), // 84: state.v1.InsertEventRequest + (*InsertEventResponse)(nil), // 85: state.v1.InsertEventResponse + (*EventsSinceRequest)(nil), // 86: state.v1.EventsSinceRequest + (*EventsSinceResponse)(nil), // 87: state.v1.EventsSinceResponse + (*TaskEventsRequest)(nil), // 88: state.v1.TaskEventsRequest + (*TaskEventsResponse)(nil), // 89: state.v1.TaskEventsResponse + (*WorkflowStatsRequest)(nil), // 90: state.v1.WorkflowStatsRequest + (*WorkflowStatsResponse)(nil), // 91: state.v1.WorkflowStatsResponse + (*StageStatsRequest)(nil), // 92: state.v1.StageStatsRequest + (*StageStatsResponse)(nil), // 93: state.v1.StageStatsResponse + (*TokensByDayRequest)(nil), // 94: state.v1.TokensByDayRequest + (*TokensByDayResponse)(nil), // 95: state.v1.TokensByDayResponse + (*ConfigSnapshot)(nil), // 96: state.v1.ConfigSnapshot + (*PutConfigSnapshotRequest)(nil), // 97: state.v1.PutConfigSnapshotRequest + (*PutConfigSnapshotResponse)(nil), // 98: state.v1.PutConfigSnapshotResponse + (*GetConfigSnapshotRequest)(nil), // 99: state.v1.GetConfigSnapshotRequest + (*GetConfigSnapshotResponse)(nil), // 100: state.v1.GetConfigSnapshotResponse + (*ChannelStatus)(nil), // 101: state.v1.ChannelStatus + (*PutChannelStatusRequest)(nil), // 102: state.v1.PutChannelStatusRequest + (*PutChannelStatusResponse)(nil), // 103: state.v1.PutChannelStatusResponse + (*ListChannelStatusRequest)(nil), // 104: state.v1.ListChannelStatusRequest + (*ListChannelStatusResponse)(nil), // 105: state.v1.ListChannelStatusResponse + (*ApplyStatus)(nil), // 106: state.v1.ApplyStatus + (*PutApplyStatusRequest)(nil), // 107: state.v1.PutApplyStatusRequest + (*PutApplyStatusResponse)(nil), // 108: state.v1.PutApplyStatusResponse + (*ListApplyStatusRequest)(nil), // 109: state.v1.ListApplyStatusRequest + (*ListApplyStatusResponse)(nil), // 110: state.v1.ListApplyStatusResponse + (*TaskLogEntry)(nil), // 111: state.v1.TaskLogEntry + (*ReadTaskLogRequest)(nil), // 112: state.v1.ReadTaskLogRequest + (*ReadTaskLogResponse)(nil), // 113: state.v1.ReadTaskLogResponse + (*StreamTaskLogContentRequest)(nil), // 114: state.v1.StreamTaskLogContentRequest + (*StreamTaskLogContentResponse)(nil), // 115: state.v1.StreamTaskLogContentResponse + (*InsertCaptureRequest)(nil), // 116: state.v1.InsertCaptureRequest + (*InsertCaptureResponse)(nil), // 117: state.v1.InsertCaptureResponse + (*StreamCapturesRequest)(nil), // 118: state.v1.StreamCapturesRequest + (*StreamCapturesResponse)(nil), // 119: state.v1.StreamCapturesResponse + (*InsertMappingRequest)(nil), // 120: state.v1.InsertMappingRequest + (*InsertMappingResponse)(nil), // 121: state.v1.InsertMappingResponse + (*GetMappingRequest)(nil), // 122: state.v1.GetMappingRequest + (*GetMappingResponse)(nil), // 123: state.v1.GetMappingResponse + (*ListMappingsRequest)(nil), // 124: state.v1.ListMappingsRequest + (*ListMappingsResponse)(nil), // 125: state.v1.ListMappingsResponse + (*UpdateMappingRequest)(nil), // 126: state.v1.UpdateMappingRequest + (*UpdateMappingResponse)(nil), // 127: state.v1.UpdateMappingResponse + (*DeleteMappingRequest)(nil), // 128: state.v1.DeleteMappingRequest + (*DeleteMappingResponse)(nil), // 129: state.v1.DeleteMappingResponse + (*RecordMappingMatchRequest)(nil), // 130: state.v1.RecordMappingMatchRequest + (*RecordMappingMatchResponse)(nil), // 131: state.v1.RecordMappingMatchResponse + (*InsertEventTypeRequest)(nil), // 132: state.v1.InsertEventTypeRequest + (*InsertEventTypeResponse)(nil), // 133: state.v1.InsertEventTypeResponse + (*UpdateEventTypeRequest)(nil), // 134: state.v1.UpdateEventTypeRequest + (*UpdateEventTypeResponse)(nil), // 135: state.v1.UpdateEventTypeResponse + (*DeleteEventTypeRequest)(nil), // 136: state.v1.DeleteEventTypeRequest + (*DeleteEventTypeResponse)(nil), // 137: state.v1.DeleteEventTypeResponse + (*ListEventTypesRequest)(nil), // 138: state.v1.ListEventTypesRequest + (*ListEventTypesResponse)(nil), // 139: state.v1.ListEventTypesResponse + (*InsertBindingRequest)(nil), // 140: state.v1.InsertBindingRequest + (*InsertBindingResponse)(nil), // 141: state.v1.InsertBindingResponse + (*GetBindingRequest)(nil), // 142: state.v1.GetBindingRequest + (*GetBindingResponse)(nil), // 143: state.v1.GetBindingResponse + (*ListBindingsRequest)(nil), // 144: state.v1.ListBindingsRequest + (*ListBindingsResponse)(nil), // 145: state.v1.ListBindingsResponse + (*UpdateBindingRequest)(nil), // 146: state.v1.UpdateBindingRequest + (*UpdateBindingResponse)(nil), // 147: state.v1.UpdateBindingResponse + (*DeleteBindingRequest)(nil), // 148: state.v1.DeleteBindingRequest + (*DeleteBindingResponse)(nil), // 149: state.v1.DeleteBindingResponse + (*ApproveBindingRequest)(nil), // 150: state.v1.ApproveBindingRequest + (*ApproveBindingResponse)(nil), // 151: state.v1.ApproveBindingResponse + (*InsertSourceRequest)(nil), // 152: state.v1.InsertSourceRequest + (*InsertSourceResponse)(nil), // 153: state.v1.InsertSourceResponse + (*GetSourceRequest)(nil), // 154: state.v1.GetSourceRequest + (*GetSourceResponse)(nil), // 155: state.v1.GetSourceResponse + (*ListSourcesRequest)(nil), // 156: state.v1.ListSourcesRequest + (*ListSourcesResponse)(nil), // 157: state.v1.ListSourcesResponse + (*SetSourceSigningRequest)(nil), // 158: state.v1.SetSourceSigningRequest + (*SetSourceSigningResponse)(nil), // 159: state.v1.SetSourceSigningResponse + (*SetSourceSecretRequest)(nil), // 160: state.v1.SetSourceSecretRequest + (*SetSourceSecretResponse)(nil), // 161: state.v1.SetSourceSecretResponse + (*ArmedBindingsForSourceRequest)(nil), // 162: state.v1.ArmedBindingsForSourceRequest + (*ArmedBindingsForSourceResponse)(nil), // 163: state.v1.ArmedBindingsForSourceResponse + (*RecordDispatchRequest)(nil), // 164: state.v1.RecordDispatchRequest + (*RecordDispatchResponse)(nil), // 165: state.v1.RecordDispatchResponse + (*RecordPlaybookDispatchRequest)(nil), // 166: state.v1.RecordPlaybookDispatchRequest + (*RecordPlaybookDispatchResponse)(nil), // 167: state.v1.RecordPlaybookDispatchResponse + (*DeletePlaybookDispatchesRequest)(nil), // 168: state.v1.DeletePlaybookDispatchesRequest + (*DeletePlaybookDispatchesResponse)(nil), // 169: state.v1.DeletePlaybookDispatchesResponse + (*StreamUndispatchedCapturesRequest)(nil), // 170: state.v1.StreamUndispatchedCapturesRequest + (*StreamUndispatchedCapturesResponse)(nil), // 171: state.v1.StreamUndispatchedCapturesResponse + (*EnqueueBindingTaskRequest)(nil), // 172: state.v1.EnqueueBindingTaskRequest + (*EnqueueBindingTaskResponse)(nil), // 173: state.v1.EnqueueBindingTaskResponse + (*EnqueueCallTaskRequest)(nil), // 174: state.v1.EnqueueCallTaskRequest + (*EnqueueCallTaskResponse)(nil), // 175: state.v1.EnqueueCallTaskResponse + (*WorkflowCallStatusRequest)(nil), // 176: state.v1.WorkflowCallStatusRequest + (*WorkflowCallStatusResponse)(nil), // 177: state.v1.WorkflowCallStatusResponse + (*InstalledPackage)(nil), // 178: state.v1.InstalledPackage + (*InstallPackageRequest)(nil), // 179: state.v1.InstallPackageRequest + (*InstallPackageResponse)(nil), // 180: state.v1.InstallPackageResponse + (*GetInstalledPackageRequest)(nil), // 181: state.v1.GetInstalledPackageRequest + (*GetInstalledPackageResponse)(nil), // 182: state.v1.GetInstalledPackageResponse + (*ListInstalledPackagesRequest)(nil), // 183: state.v1.ListInstalledPackagesRequest + (*ListInstalledPackagesResponse)(nil), // 184: state.v1.ListInstalledPackagesResponse + (*RemoveInstalledPackageRequest)(nil), // 185: state.v1.RemoveInstalledPackageRequest + (*RemoveInstalledPackageResponse)(nil), // 186: state.v1.RemoveInstalledPackageResponse + (*GetPrincipalRequest)(nil), // 187: state.v1.GetPrincipalRequest + (*PrincipalMembership)(nil), // 188: state.v1.PrincipalMembership + (*AccessPrincipal)(nil), // 189: state.v1.AccessPrincipal + (*GetPrincipalResponse)(nil), // 190: state.v1.GetPrincipalResponse + (*AccessPolicy)(nil), // 191: state.v1.AccessPolicy + (*ListPoliciesRequest)(nil), // 192: state.v1.ListPoliciesRequest + (*ListPoliciesResponse)(nil), // 193: state.v1.ListPoliciesResponse + (*PutPolicyRequest)(nil), // 194: state.v1.PutPolicyRequest + (*PutPolicyResponse)(nil), // 195: state.v1.PutPolicyResponse + (*DeletePolicyRequest)(nil), // 196: state.v1.DeletePolicyRequest + (*DeletePolicyResponse)(nil), // 197: state.v1.DeletePolicyResponse + (*EnsureShippedOrgPoliciesRequest)(nil), // 198: state.v1.EnsureShippedOrgPoliciesRequest + (*EnsureShippedOrgPoliciesResponse)(nil), // 199: state.v1.EnsureShippedOrgPoliciesResponse + (*AccessDenial)(nil), // 200: state.v1.AccessDenial + (*RecordDenialRequest)(nil), // 201: state.v1.RecordDenialRequest + (*RecordDenialResponse)(nil), // 202: state.v1.RecordDenialResponse + (*ListDenialsRequest)(nil), // 203: state.v1.ListDenialsRequest + (*ListDenialsResponse)(nil), // 204: state.v1.ListDenialsResponse + nil, // 205: state.v1.EventType.SchemaEntry + nil, // 206: state.v1.StatusCountsResponse.CountsEntry + (*timestamppb.Timestamp)(nil), // 207: google.protobuf.Timestamp } var file_state_v1_state_proto_depIdxs = []int32{ - 203, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp - 203, // 1: state.v1.Identity.updated_at:type_name -> google.protobuf.Timestamp + 207, // 0: state.v1.Identity.created_at:type_name -> google.protobuf.Timestamp + 207, // 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 @@ -11773,266 +12067,272 @@ var file_state_v1_state_proto_depIdxs = []int32{ 4, // 14: state.v1.ResolveIdentitySubjectResponse.identity:type_name -> state.v1.Identity 5, // 15: state.v1.BindIdentitySubjectRequest.audit:type_name -> state.v1.IdentityAudit 4, // 16: state.v1.BindIdentitySubjectResponse.identity:type_name -> state.v1.Identity - 203, // 17: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp - 203, // 18: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp - 203, // 19: state.v1.Event.at:type_name -> google.protobuf.Timestamp - 203, // 20: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp + 207, // 17: state.v1.Task.created_at:type_name -> google.protobuf.Timestamp + 207, // 18: state.v1.Task.updated_at:type_name -> google.protobuf.Timestamp + 207, // 19: state.v1.Event.at:type_name -> google.protobuf.Timestamp + 207, // 20: state.v1.CapturedEvent.received_at:type_name -> google.protobuf.Timestamp 27, // 21: state.v1.EventType.header_conditions:type_name -> state.v1.EventTypeHeaderCondition 28, // 22: state.v1.EventType.payload_conditions:type_name -> state.v1.EventTypePayloadCondition - 201, // 23: state.v1.EventType.schema:type_name -> state.v1.EventType.SchemaEntry - 203, // 24: state.v1.EventType.created_at:type_name -> google.protobuf.Timestamp - 203, // 25: state.v1.EventType.updated_at:type_name -> google.protobuf.Timestamp + 205, // 23: state.v1.EventType.schema:type_name -> state.v1.EventType.SchemaEntry + 207, // 24: state.v1.EventType.created_at:type_name -> google.protobuf.Timestamp + 207, // 25: state.v1.EventType.updated_at:type_name -> google.protobuf.Timestamp 30, // 26: state.v1.Mapping.fields:type_name -> state.v1.MappingField - 203, // 27: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp - 203, // 28: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp - 203, // 29: state.v1.Mapping.last_matched_at:type_name -> google.protobuf.Timestamp + 207, // 27: state.v1.Mapping.created_at:type_name -> google.protobuf.Timestamp + 207, // 28: state.v1.Mapping.updated_at:type_name -> google.protobuf.Timestamp + 207, // 29: state.v1.Mapping.last_matched_at:type_name -> google.protobuf.Timestamp 32, // 30: state.v1.Binding.matcher:type_name -> state.v1.BindingMatcher - 203, // 31: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp - 203, // 32: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp - 203, // 33: state.v1.Source.created_at:type_name -> google.protobuf.Timestamp - 203, // 34: state.v1.Source.updated_at:type_name -> google.protobuf.Timestamp + 207, // 31: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp + 207, // 32: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp + 207, // 33: state.v1.Source.created_at:type_name -> google.protobuf.Timestamp + 207, // 34: state.v1.Source.updated_at:type_name -> google.protobuf.Timestamp 24, // 35: state.v1.EnqueueChatTaskResponse.task:type_name -> state.v1.Task 24, // 36: state.v1.ClaimNextResponse.task:type_name -> state.v1.Task 24, // 37: state.v1.ClaimByIssueResponse.task:type_name -> state.v1.Task - 24, // 38: state.v1.UpdateRequest.task:type_name -> state.v1.Task - 25, // 39: state.v1.ArchiveTaskRequest.audit:type_name -> state.v1.Event - 24, // 40: state.v1.TaskByIssueResponse.task:type_name -> state.v1.Task - 24, // 41: state.v1.OpenTaskByPRResponse.task:type_name -> state.v1.Task - 24, // 42: state.v1.TaskByIDResponse.task:type_name -> state.v1.Task - 24, // 43: state.v1.OpenPRsResponse.tasks:type_name -> state.v1.Task - 24, // 44: state.v1.TasksResponse.tasks:type_name -> state.v1.Task - 202, // 45: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry - 25, // 46: state.v1.InsertEventRequest.event:type_name -> state.v1.Event - 25, // 47: state.v1.EventsSinceResponse.events:type_name -> state.v1.Event - 25, // 48: state.v1.TaskEventsResponse.events:type_name -> state.v1.Event - 35, // 49: state.v1.WorkflowStatsResponse.stats:type_name -> state.v1.WorkflowStat - 36, // 50: state.v1.StageStatsResponse.stats:type_name -> state.v1.StageStat - 37, // 51: state.v1.TokensByDayResponse.tokens:type_name -> state.v1.DayTokens - 203, // 52: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp - 92, // 53: state.v1.PutConfigSnapshotRequest.snapshot:type_name -> state.v1.ConfigSnapshot - 92, // 54: state.v1.GetConfigSnapshotResponse.snapshot:type_name -> state.v1.ConfigSnapshot - 203, // 55: state.v1.ChannelStatus.observed_at:type_name -> google.protobuf.Timestamp - 97, // 56: state.v1.PutChannelStatusRequest.channels:type_name -> state.v1.ChannelStatus - 97, // 57: state.v1.ListChannelStatusResponse.channels:type_name -> state.v1.ChannelStatus - 203, // 58: state.v1.ApplyStatus.reported_at:type_name -> google.protobuf.Timestamp - 102, // 59: state.v1.PutApplyStatusRequest.status:type_name -> state.v1.ApplyStatus - 102, // 60: state.v1.ListApplyStatusResponse.statuses:type_name -> state.v1.ApplyStatus - 203, // 61: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp - 203, // 62: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp - 203, // 63: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp - 107, // 64: state.v1.ReadTaskLogResponse.entries:type_name -> state.v1.TaskLogEntry - 26, // 65: state.v1.InsertCaptureRequest.capture:type_name -> state.v1.CapturedEvent - 26, // 66: state.v1.StreamCapturesResponse.capture:type_name -> state.v1.CapturedEvent - 31, // 67: state.v1.InsertMappingRequest.mapping:type_name -> state.v1.Mapping - 31, // 68: state.v1.GetMappingResponse.mapping:type_name -> state.v1.Mapping - 31, // 69: state.v1.ListMappingsResponse.mappings:type_name -> state.v1.Mapping - 31, // 70: state.v1.UpdateMappingRequest.mapping:type_name -> state.v1.Mapping - 29, // 71: state.v1.InsertEventTypeRequest.event_type:type_name -> state.v1.EventType - 29, // 72: state.v1.UpdateEventTypeRequest.event_type:type_name -> state.v1.EventType - 29, // 73: state.v1.ListEventTypesResponse.event_types:type_name -> state.v1.EventType - 33, // 74: state.v1.InsertBindingRequest.binding:type_name -> state.v1.Binding - 33, // 75: state.v1.GetBindingResponse.binding:type_name -> state.v1.Binding - 33, // 76: state.v1.ListBindingsResponse.bindings:type_name -> state.v1.Binding - 33, // 77: state.v1.UpdateBindingRequest.binding:type_name -> state.v1.Binding - 34, // 78: state.v1.InsertSourceRequest.source:type_name -> state.v1.Source - 34, // 79: state.v1.GetSourceResponse.source:type_name -> state.v1.Source - 34, // 80: state.v1.ListSourcesResponse.sources:type_name -> state.v1.Source - 33, // 81: state.v1.ArmedBindingsForSourceResponse.bindings:type_name -> state.v1.Binding - 26, // 82: state.v1.StreamUndispatchedCapturesResponse.capture:type_name -> state.v1.CapturedEvent - 24, // 83: state.v1.EnqueueBindingTaskResponse.task:type_name -> state.v1.Task - 24, // 84: state.v1.EnqueueCallTaskResponse.task:type_name -> state.v1.Task - 174, // 85: state.v1.InstallPackageResponse.package:type_name -> state.v1.InstalledPackage - 174, // 86: state.v1.GetInstalledPackageResponse.package:type_name -> state.v1.InstalledPackage - 174, // 87: state.v1.ListInstalledPackagesResponse.packages:type_name -> state.v1.InstalledPackage - 184, // 88: state.v1.AccessPrincipal.memberships:type_name -> state.v1.PrincipalMembership - 185, // 89: state.v1.GetPrincipalResponse.principal:type_name -> state.v1.AccessPrincipal - 187, // 90: state.v1.ListPoliciesResponse.policies:type_name -> state.v1.AccessPolicy - 187, // 91: state.v1.PutPolicyRequest.policy:type_name -> state.v1.AccessPolicy - 187, // 92: state.v1.DeletePolicyRequest.policy:type_name -> state.v1.AccessPolicy - 203, // 93: state.v1.AccessDenial.at:type_name -> google.protobuf.Timestamp - 196, // 94: state.v1.RecordDenialRequest.denial:type_name -> state.v1.AccessDenial - 196, // 95: state.v1.ListDenialsResponse.denials:type_name -> state.v1.AccessDenial - 175, // 96: state.v1.StateStoreService.InstallPackage:input_type -> state.v1.InstallPackageRequest - 177, // 97: state.v1.StateStoreService.GetInstalledPackage:input_type -> state.v1.GetInstalledPackageRequest - 179, // 98: state.v1.StateStoreService.ListInstalledPackages:input_type -> state.v1.ListInstalledPackagesRequest - 181, // 99: state.v1.StateStoreService.RemoveInstalledPackage:input_type -> state.v1.RemoveInstalledPackageRequest - 0, // 100: state.v1.StateStoreService.RegisterTaskGrant:input_type -> state.v1.RegisterTaskGrantRequest - 2, // 101: state.v1.StateStoreService.RevokeTaskGrant:input_type -> state.v1.RevokeTaskGrantRequest - 6, // 102: state.v1.StateStoreService.ListIdentities:input_type -> state.v1.ListIdentitiesRequest - 8, // 103: state.v1.StateStoreService.GetIdentity:input_type -> state.v1.GetIdentityRequest - 10, // 104: state.v1.StateStoreService.CreateIdentity:input_type -> state.v1.CreateIdentityRequest - 11, // 105: state.v1.StateStoreService.RenameIdentity:input_type -> state.v1.RenameIdentityRequest - 12, // 106: state.v1.StateStoreService.SuspendIdentity:input_type -> state.v1.SuspendIdentityRequest - 13, // 107: state.v1.StateStoreService.ReactivateIdentity:input_type -> state.v1.ReactivateIdentityRequest - 14, // 108: state.v1.StateStoreService.RetireIdentity:input_type -> state.v1.RetireIdentityRequest - 20, // 109: state.v1.StateStoreService.ResolveIdentitySubject:input_type -> state.v1.ResolveIdentitySubjectRequest - 22, // 110: state.v1.StateStoreService.BindIdentitySubject:input_type -> state.v1.BindIdentitySubjectRequest - 38, // 111: state.v1.StateStoreService.EnqueueIssue:input_type -> state.v1.EnqueueIssueRequest - 40, // 112: state.v1.StateStoreService.EnqueueChatTask:input_type -> state.v1.EnqueueChatTaskRequest - 42, // 113: state.v1.StateStoreService.ClaimNext:input_type -> state.v1.ClaimNextRequest - 44, // 114: state.v1.StateStoreService.ClaimByIssue:input_type -> state.v1.ClaimByIssueRequest - 46, // 115: state.v1.StateStoreService.Transition:input_type -> state.v1.TransitionRequest - 48, // 116: state.v1.StateStoreService.Update:input_type -> state.v1.UpdateRequest - 50, // 117: state.v1.StateStoreService.Requeue:input_type -> state.v1.RequeueRequest - 52, // 118: state.v1.StateStoreService.ParkTask:input_type -> state.v1.ParkTaskRequest - 54, // 119: state.v1.StateStoreService.RecoverStale:input_type -> state.v1.RecoverStaleRequest - 56, // 120: state.v1.StateStoreService.ArchiveTask:input_type -> state.v1.ArchiveTaskRequest - 58, // 121: state.v1.StateStoreService.RetryTask:input_type -> state.v1.RetryTaskRequest - 60, // 122: state.v1.StateStoreService.BeginRemediation:input_type -> state.v1.BeginRemediationRequest - 62, // 123: state.v1.StateStoreService.UpdateReviewPayload:input_type -> state.v1.UpdateReviewPayloadRequest - 64, // 124: state.v1.StateStoreService.SetReviewCursors:input_type -> state.v1.SetReviewCursorsRequest - 66, // 125: state.v1.StateStoreService.TaskByIssue:input_type -> state.v1.TaskByIssueRequest - 68, // 126: state.v1.StateStoreService.OpenTaskByPR:input_type -> state.v1.OpenTaskByPRRequest - 70, // 127: state.v1.StateStoreService.TaskByID:input_type -> state.v1.TaskByIDRequest - 72, // 128: state.v1.StateStoreService.OpenPRs:input_type -> state.v1.OpenPRsRequest - 74, // 129: state.v1.StateStoreService.ClearTerminalTasks:input_type -> state.v1.ClearTerminalTasksRequest - 76, // 130: state.v1.StateStoreService.Tasks:input_type -> state.v1.TasksRequest - 78, // 131: state.v1.StateStoreService.StatusCounts:input_type -> state.v1.StatusCountsRequest - 80, // 132: state.v1.StateStoreService.InsertEvent:input_type -> state.v1.InsertEventRequest - 82, // 133: state.v1.StateStoreService.EventsSince:input_type -> state.v1.EventsSinceRequest - 84, // 134: state.v1.StateStoreService.TaskEvents:input_type -> state.v1.TaskEventsRequest - 86, // 135: state.v1.StateStoreService.WorkflowStats:input_type -> state.v1.WorkflowStatsRequest - 88, // 136: state.v1.StateStoreService.StageStats:input_type -> state.v1.StageStatsRequest - 90, // 137: state.v1.StateStoreService.TokensByDay:input_type -> state.v1.TokensByDayRequest - 93, // 138: state.v1.StateStoreService.PutConfigSnapshot:input_type -> state.v1.PutConfigSnapshotRequest - 95, // 139: state.v1.StateStoreService.GetConfigSnapshot:input_type -> state.v1.GetConfigSnapshotRequest - 98, // 140: state.v1.StateStoreService.PutChannelStatus:input_type -> state.v1.PutChannelStatusRequest - 100, // 141: state.v1.StateStoreService.ListChannelStatus:input_type -> state.v1.ListChannelStatusRequest - 103, // 142: state.v1.StateStoreService.PutApplyStatus:input_type -> state.v1.PutApplyStatusRequest - 105, // 143: state.v1.StateStoreService.ListApplyStatus:input_type -> state.v1.ListApplyStatusRequest - 108, // 144: state.v1.StateStoreService.ReadTaskLog:input_type -> state.v1.ReadTaskLogRequest - 110, // 145: state.v1.StateStoreService.StreamTaskLogContent:input_type -> state.v1.StreamTaskLogContentRequest - 112, // 146: state.v1.StateStoreService.InsertCapture:input_type -> state.v1.InsertCaptureRequest - 114, // 147: state.v1.StateStoreService.StreamCaptures:input_type -> state.v1.StreamCapturesRequest - 116, // 148: state.v1.StateStoreService.InsertMapping:input_type -> state.v1.InsertMappingRequest - 118, // 149: state.v1.StateStoreService.GetMapping:input_type -> state.v1.GetMappingRequest - 120, // 150: state.v1.StateStoreService.ListMappings:input_type -> state.v1.ListMappingsRequest - 122, // 151: state.v1.StateStoreService.UpdateMapping:input_type -> state.v1.UpdateMappingRequest - 124, // 152: state.v1.StateStoreService.DeleteMapping:input_type -> state.v1.DeleteMappingRequest - 126, // 153: state.v1.StateStoreService.RecordMappingMatch:input_type -> state.v1.RecordMappingMatchRequest - 128, // 154: state.v1.StateStoreService.InsertEventType:input_type -> state.v1.InsertEventTypeRequest - 130, // 155: state.v1.StateStoreService.UpdateEventType:input_type -> state.v1.UpdateEventTypeRequest - 132, // 156: state.v1.StateStoreService.DeleteEventType:input_type -> state.v1.DeleteEventTypeRequest - 134, // 157: state.v1.StateStoreService.ListEventTypes:input_type -> state.v1.ListEventTypesRequest - 136, // 158: state.v1.StateStoreService.InsertBinding:input_type -> state.v1.InsertBindingRequest - 138, // 159: state.v1.StateStoreService.GetBinding:input_type -> state.v1.GetBindingRequest - 140, // 160: state.v1.StateStoreService.ListBindings:input_type -> state.v1.ListBindingsRequest - 142, // 161: state.v1.StateStoreService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest - 144, // 162: state.v1.StateStoreService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest - 146, // 163: state.v1.StateStoreService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest - 148, // 164: state.v1.StateStoreService.InsertSource:input_type -> state.v1.InsertSourceRequest - 150, // 165: state.v1.StateStoreService.GetSource:input_type -> state.v1.GetSourceRequest - 152, // 166: state.v1.StateStoreService.ListSources:input_type -> state.v1.ListSourcesRequest - 154, // 167: state.v1.StateStoreService.SetSourceSigning:input_type -> state.v1.SetSourceSigningRequest - 156, // 168: state.v1.StateStoreService.SetSourceSecret:input_type -> state.v1.SetSourceSecretRequest - 158, // 169: state.v1.StateStoreService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest - 160, // 170: state.v1.StateStoreService.RecordDispatch:input_type -> state.v1.RecordDispatchRequest - 162, // 171: state.v1.StateStoreService.RecordPlaybookDispatch:input_type -> state.v1.RecordPlaybookDispatchRequest - 164, // 172: state.v1.StateStoreService.DeletePlaybookDispatches:input_type -> state.v1.DeletePlaybookDispatchesRequest - 166, // 173: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest - 168, // 174: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest - 170, // 175: state.v1.StateStoreService.EnqueueCallTask:input_type -> state.v1.EnqueueCallTaskRequest - 172, // 176: state.v1.StateStoreService.WorkflowCallStatus:input_type -> state.v1.WorkflowCallStatusRequest - 183, // 177: state.v1.StateStoreService.GetPrincipal:input_type -> state.v1.GetPrincipalRequest - 188, // 178: state.v1.StateStoreService.ListPolicies:input_type -> state.v1.ListPoliciesRequest - 190, // 179: state.v1.StateStoreService.PutPolicy:input_type -> state.v1.PutPolicyRequest - 192, // 180: state.v1.StateStoreService.DeletePolicy:input_type -> state.v1.DeletePolicyRequest - 194, // 181: state.v1.StateStoreService.EnsureShippedOrgPolicies:input_type -> state.v1.EnsureShippedOrgPoliciesRequest - 197, // 182: state.v1.StateStoreService.RecordDenial:input_type -> state.v1.RecordDenialRequest - 199, // 183: state.v1.StateStoreService.ListDenials:input_type -> state.v1.ListDenialsRequest - 176, // 184: state.v1.StateStoreService.InstallPackage:output_type -> state.v1.InstallPackageResponse - 178, // 185: state.v1.StateStoreService.GetInstalledPackage:output_type -> state.v1.GetInstalledPackageResponse - 180, // 186: state.v1.StateStoreService.ListInstalledPackages:output_type -> state.v1.ListInstalledPackagesResponse - 182, // 187: state.v1.StateStoreService.RemoveInstalledPackage:output_type -> state.v1.RemoveInstalledPackageResponse - 1, // 188: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse - 3, // 189: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse - 7, // 190: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse - 9, // 191: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse - 15, // 192: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse - 16, // 193: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse - 17, // 194: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse - 18, // 195: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse - 19, // 196: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse - 21, // 197: state.v1.StateStoreService.ResolveIdentitySubject:output_type -> state.v1.ResolveIdentitySubjectResponse - 23, // 198: state.v1.StateStoreService.BindIdentitySubject:output_type -> state.v1.BindIdentitySubjectResponse - 39, // 199: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse - 41, // 200: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse - 43, // 201: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse - 45, // 202: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse - 47, // 203: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse - 49, // 204: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse - 51, // 205: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse - 53, // 206: state.v1.StateStoreService.ParkTask:output_type -> state.v1.ParkTaskResponse - 55, // 207: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse - 57, // 208: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse - 59, // 209: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse - 61, // 210: state.v1.StateStoreService.BeginRemediation:output_type -> state.v1.BeginRemediationResponse - 63, // 211: state.v1.StateStoreService.UpdateReviewPayload:output_type -> state.v1.UpdateReviewPayloadResponse - 65, // 212: state.v1.StateStoreService.SetReviewCursors:output_type -> state.v1.SetReviewCursorsResponse - 67, // 213: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse - 69, // 214: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse - 71, // 215: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse - 73, // 216: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse - 75, // 217: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse - 77, // 218: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse - 79, // 219: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse - 81, // 220: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse - 83, // 221: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse - 85, // 222: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse - 87, // 223: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse - 89, // 224: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse - 91, // 225: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse - 94, // 226: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse - 96, // 227: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse - 99, // 228: state.v1.StateStoreService.PutChannelStatus:output_type -> state.v1.PutChannelStatusResponse - 101, // 229: state.v1.StateStoreService.ListChannelStatus:output_type -> state.v1.ListChannelStatusResponse - 104, // 230: state.v1.StateStoreService.PutApplyStatus:output_type -> state.v1.PutApplyStatusResponse - 106, // 231: state.v1.StateStoreService.ListApplyStatus:output_type -> state.v1.ListApplyStatusResponse - 109, // 232: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse - 111, // 233: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse - 113, // 234: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse - 115, // 235: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse - 117, // 236: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse - 119, // 237: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse - 121, // 238: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse - 123, // 239: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse - 125, // 240: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse - 127, // 241: state.v1.StateStoreService.RecordMappingMatch:output_type -> state.v1.RecordMappingMatchResponse - 129, // 242: state.v1.StateStoreService.InsertEventType:output_type -> state.v1.InsertEventTypeResponse - 131, // 243: state.v1.StateStoreService.UpdateEventType:output_type -> state.v1.UpdateEventTypeResponse - 133, // 244: state.v1.StateStoreService.DeleteEventType:output_type -> state.v1.DeleteEventTypeResponse - 135, // 245: state.v1.StateStoreService.ListEventTypes:output_type -> state.v1.ListEventTypesResponse - 137, // 246: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse - 139, // 247: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse - 141, // 248: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse - 143, // 249: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse - 145, // 250: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse - 147, // 251: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse - 149, // 252: state.v1.StateStoreService.InsertSource:output_type -> state.v1.InsertSourceResponse - 151, // 253: state.v1.StateStoreService.GetSource:output_type -> state.v1.GetSourceResponse - 153, // 254: state.v1.StateStoreService.ListSources:output_type -> state.v1.ListSourcesResponse - 155, // 255: state.v1.StateStoreService.SetSourceSigning:output_type -> state.v1.SetSourceSigningResponse - 157, // 256: state.v1.StateStoreService.SetSourceSecret:output_type -> state.v1.SetSourceSecretResponse - 159, // 257: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse - 161, // 258: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse - 163, // 259: state.v1.StateStoreService.RecordPlaybookDispatch:output_type -> state.v1.RecordPlaybookDispatchResponse - 165, // 260: state.v1.StateStoreService.DeletePlaybookDispatches:output_type -> state.v1.DeletePlaybookDispatchesResponse - 167, // 261: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse - 169, // 262: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse - 171, // 263: state.v1.StateStoreService.EnqueueCallTask:output_type -> state.v1.EnqueueCallTaskResponse - 173, // 264: state.v1.StateStoreService.WorkflowCallStatus:output_type -> state.v1.WorkflowCallStatusResponse - 186, // 265: state.v1.StateStoreService.GetPrincipal:output_type -> state.v1.GetPrincipalResponse - 189, // 266: state.v1.StateStoreService.ListPolicies:output_type -> state.v1.ListPoliciesResponse - 191, // 267: state.v1.StateStoreService.PutPolicy:output_type -> state.v1.PutPolicyResponse - 193, // 268: state.v1.StateStoreService.DeletePolicy:output_type -> state.v1.DeletePolicyResponse - 195, // 269: state.v1.StateStoreService.EnsureShippedOrgPolicies:output_type -> state.v1.EnsureShippedOrgPoliciesResponse - 198, // 270: state.v1.StateStoreService.RecordDenial:output_type -> state.v1.RecordDenialResponse - 200, // 271: state.v1.StateStoreService.ListDenials:output_type -> state.v1.ListDenialsResponse - 184, // [184:272] is the sub-list for method output_type - 96, // [96:184] is the sub-list for method input_type - 96, // [96:96] is the sub-list for extension type_name - 96, // [96:96] is the sub-list for extension extendee - 0, // [0:96] is the sub-list for field type_name + 25, // 38: state.v1.StartStepResponse.event:type_name -> state.v1.Event + 25, // 39: state.v1.FinishStepResponse.event:type_name -> state.v1.Event + 24, // 40: state.v1.UpdateRequest.task:type_name -> state.v1.Task + 25, // 41: state.v1.ArchiveTaskRequest.audit:type_name -> state.v1.Event + 24, // 42: state.v1.TaskByIssueResponse.task:type_name -> state.v1.Task + 24, // 43: state.v1.OpenTaskByPRResponse.task:type_name -> state.v1.Task + 24, // 44: state.v1.TaskByIDResponse.task:type_name -> state.v1.Task + 24, // 45: state.v1.OpenPRsResponse.tasks:type_name -> state.v1.Task + 24, // 46: state.v1.TasksResponse.tasks:type_name -> state.v1.Task + 206, // 47: state.v1.StatusCountsResponse.counts:type_name -> state.v1.StatusCountsResponse.CountsEntry + 25, // 48: state.v1.InsertEventRequest.event:type_name -> state.v1.Event + 25, // 49: state.v1.EventsSinceResponse.events:type_name -> state.v1.Event + 25, // 50: state.v1.TaskEventsResponse.events:type_name -> state.v1.Event + 35, // 51: state.v1.WorkflowStatsResponse.stats:type_name -> state.v1.WorkflowStat + 36, // 52: state.v1.StageStatsResponse.stats:type_name -> state.v1.StageStat + 37, // 53: state.v1.TokensByDayResponse.tokens:type_name -> state.v1.DayTokens + 207, // 54: state.v1.ConfigSnapshot.published_at:type_name -> google.protobuf.Timestamp + 96, // 55: state.v1.PutConfigSnapshotRequest.snapshot:type_name -> state.v1.ConfigSnapshot + 96, // 56: state.v1.GetConfigSnapshotResponse.snapshot:type_name -> state.v1.ConfigSnapshot + 207, // 57: state.v1.ChannelStatus.observed_at:type_name -> google.protobuf.Timestamp + 101, // 58: state.v1.PutChannelStatusRequest.channels:type_name -> state.v1.ChannelStatus + 101, // 59: state.v1.ListChannelStatusResponse.channels:type_name -> state.v1.ChannelStatus + 207, // 60: state.v1.ApplyStatus.reported_at:type_name -> google.protobuf.Timestamp + 106, // 61: state.v1.PutApplyStatusRequest.status:type_name -> state.v1.ApplyStatus + 106, // 62: state.v1.ListApplyStatusResponse.statuses:type_name -> state.v1.ApplyStatus + 207, // 63: state.v1.TaskLogEntry.time:type_name -> google.protobuf.Timestamp + 207, // 64: state.v1.ReadTaskLogRequest.since:type_name -> google.protobuf.Timestamp + 207, // 65: state.v1.ReadTaskLogRequest.until:type_name -> google.protobuf.Timestamp + 111, // 66: state.v1.ReadTaskLogResponse.entries:type_name -> state.v1.TaskLogEntry + 26, // 67: state.v1.InsertCaptureRequest.capture:type_name -> state.v1.CapturedEvent + 26, // 68: state.v1.StreamCapturesResponse.capture:type_name -> state.v1.CapturedEvent + 31, // 69: state.v1.InsertMappingRequest.mapping:type_name -> state.v1.Mapping + 31, // 70: state.v1.GetMappingResponse.mapping:type_name -> state.v1.Mapping + 31, // 71: state.v1.ListMappingsResponse.mappings:type_name -> state.v1.Mapping + 31, // 72: state.v1.UpdateMappingRequest.mapping:type_name -> state.v1.Mapping + 29, // 73: state.v1.InsertEventTypeRequest.event_type:type_name -> state.v1.EventType + 29, // 74: state.v1.UpdateEventTypeRequest.event_type:type_name -> state.v1.EventType + 29, // 75: state.v1.ListEventTypesResponse.event_types:type_name -> state.v1.EventType + 33, // 76: state.v1.InsertBindingRequest.binding:type_name -> state.v1.Binding + 33, // 77: state.v1.GetBindingResponse.binding:type_name -> state.v1.Binding + 33, // 78: state.v1.ListBindingsResponse.bindings:type_name -> state.v1.Binding + 33, // 79: state.v1.UpdateBindingRequest.binding:type_name -> state.v1.Binding + 34, // 80: state.v1.InsertSourceRequest.source:type_name -> state.v1.Source + 34, // 81: state.v1.GetSourceResponse.source:type_name -> state.v1.Source + 34, // 82: state.v1.ListSourcesResponse.sources:type_name -> state.v1.Source + 33, // 83: state.v1.ArmedBindingsForSourceResponse.bindings:type_name -> state.v1.Binding + 26, // 84: state.v1.StreamUndispatchedCapturesResponse.capture:type_name -> state.v1.CapturedEvent + 24, // 85: state.v1.EnqueueBindingTaskResponse.task:type_name -> state.v1.Task + 24, // 86: state.v1.EnqueueCallTaskResponse.task:type_name -> state.v1.Task + 178, // 87: state.v1.InstallPackageResponse.package:type_name -> state.v1.InstalledPackage + 178, // 88: state.v1.GetInstalledPackageResponse.package:type_name -> state.v1.InstalledPackage + 178, // 89: state.v1.ListInstalledPackagesResponse.packages:type_name -> state.v1.InstalledPackage + 188, // 90: state.v1.AccessPrincipal.memberships:type_name -> state.v1.PrincipalMembership + 189, // 91: state.v1.GetPrincipalResponse.principal:type_name -> state.v1.AccessPrincipal + 191, // 92: state.v1.ListPoliciesResponse.policies:type_name -> state.v1.AccessPolicy + 191, // 93: state.v1.PutPolicyRequest.policy:type_name -> state.v1.AccessPolicy + 191, // 94: state.v1.DeletePolicyRequest.policy:type_name -> state.v1.AccessPolicy + 207, // 95: state.v1.AccessDenial.at:type_name -> google.protobuf.Timestamp + 200, // 96: state.v1.RecordDenialRequest.denial:type_name -> state.v1.AccessDenial + 200, // 97: state.v1.ListDenialsResponse.denials:type_name -> state.v1.AccessDenial + 179, // 98: state.v1.StateStoreService.InstallPackage:input_type -> state.v1.InstallPackageRequest + 181, // 99: state.v1.StateStoreService.GetInstalledPackage:input_type -> state.v1.GetInstalledPackageRequest + 183, // 100: state.v1.StateStoreService.ListInstalledPackages:input_type -> state.v1.ListInstalledPackagesRequest + 185, // 101: state.v1.StateStoreService.RemoveInstalledPackage:input_type -> state.v1.RemoveInstalledPackageRequest + 0, // 102: state.v1.StateStoreService.RegisterTaskGrant:input_type -> state.v1.RegisterTaskGrantRequest + 2, // 103: state.v1.StateStoreService.RevokeTaskGrant:input_type -> state.v1.RevokeTaskGrantRequest + 6, // 104: state.v1.StateStoreService.ListIdentities:input_type -> state.v1.ListIdentitiesRequest + 8, // 105: state.v1.StateStoreService.GetIdentity:input_type -> state.v1.GetIdentityRequest + 10, // 106: state.v1.StateStoreService.CreateIdentity:input_type -> state.v1.CreateIdentityRequest + 11, // 107: state.v1.StateStoreService.RenameIdentity:input_type -> state.v1.RenameIdentityRequest + 12, // 108: state.v1.StateStoreService.SuspendIdentity:input_type -> state.v1.SuspendIdentityRequest + 13, // 109: state.v1.StateStoreService.ReactivateIdentity:input_type -> state.v1.ReactivateIdentityRequest + 14, // 110: state.v1.StateStoreService.RetireIdentity:input_type -> state.v1.RetireIdentityRequest + 20, // 111: state.v1.StateStoreService.ResolveIdentitySubject:input_type -> state.v1.ResolveIdentitySubjectRequest + 22, // 112: state.v1.StateStoreService.BindIdentitySubject:input_type -> state.v1.BindIdentitySubjectRequest + 38, // 113: state.v1.StateStoreService.EnqueueIssue:input_type -> state.v1.EnqueueIssueRequest + 40, // 114: state.v1.StateStoreService.EnqueueChatTask:input_type -> state.v1.EnqueueChatTaskRequest + 42, // 115: state.v1.StateStoreService.ClaimNext:input_type -> state.v1.ClaimNextRequest + 44, // 116: state.v1.StateStoreService.ClaimByIssue:input_type -> state.v1.ClaimByIssueRequest + 46, // 117: state.v1.StateStoreService.Transition:input_type -> state.v1.TransitionRequest + 52, // 118: state.v1.StateStoreService.Update:input_type -> state.v1.UpdateRequest + 48, // 119: state.v1.StateStoreService.StartStep:input_type -> state.v1.StartStepRequest + 50, // 120: state.v1.StateStoreService.FinishStep:input_type -> state.v1.FinishStepRequest + 54, // 121: state.v1.StateStoreService.Requeue:input_type -> state.v1.RequeueRequest + 56, // 122: state.v1.StateStoreService.ParkTask:input_type -> state.v1.ParkTaskRequest + 58, // 123: state.v1.StateStoreService.RecoverStale:input_type -> state.v1.RecoverStaleRequest + 60, // 124: state.v1.StateStoreService.ArchiveTask:input_type -> state.v1.ArchiveTaskRequest + 62, // 125: state.v1.StateStoreService.RetryTask:input_type -> state.v1.RetryTaskRequest + 64, // 126: state.v1.StateStoreService.BeginRemediation:input_type -> state.v1.BeginRemediationRequest + 66, // 127: state.v1.StateStoreService.UpdateReviewPayload:input_type -> state.v1.UpdateReviewPayloadRequest + 68, // 128: state.v1.StateStoreService.SetReviewCursors:input_type -> state.v1.SetReviewCursorsRequest + 70, // 129: state.v1.StateStoreService.TaskByIssue:input_type -> state.v1.TaskByIssueRequest + 72, // 130: state.v1.StateStoreService.OpenTaskByPR:input_type -> state.v1.OpenTaskByPRRequest + 74, // 131: state.v1.StateStoreService.TaskByID:input_type -> state.v1.TaskByIDRequest + 76, // 132: state.v1.StateStoreService.OpenPRs:input_type -> state.v1.OpenPRsRequest + 78, // 133: state.v1.StateStoreService.ClearTerminalTasks:input_type -> state.v1.ClearTerminalTasksRequest + 80, // 134: state.v1.StateStoreService.Tasks:input_type -> state.v1.TasksRequest + 82, // 135: state.v1.StateStoreService.StatusCounts:input_type -> state.v1.StatusCountsRequest + 84, // 136: state.v1.StateStoreService.InsertEvent:input_type -> state.v1.InsertEventRequest + 86, // 137: state.v1.StateStoreService.EventsSince:input_type -> state.v1.EventsSinceRequest + 88, // 138: state.v1.StateStoreService.TaskEvents:input_type -> state.v1.TaskEventsRequest + 90, // 139: state.v1.StateStoreService.WorkflowStats:input_type -> state.v1.WorkflowStatsRequest + 92, // 140: state.v1.StateStoreService.StageStats:input_type -> state.v1.StageStatsRequest + 94, // 141: state.v1.StateStoreService.TokensByDay:input_type -> state.v1.TokensByDayRequest + 97, // 142: state.v1.StateStoreService.PutConfigSnapshot:input_type -> state.v1.PutConfigSnapshotRequest + 99, // 143: state.v1.StateStoreService.GetConfigSnapshot:input_type -> state.v1.GetConfigSnapshotRequest + 102, // 144: state.v1.StateStoreService.PutChannelStatus:input_type -> state.v1.PutChannelStatusRequest + 104, // 145: state.v1.StateStoreService.ListChannelStatus:input_type -> state.v1.ListChannelStatusRequest + 107, // 146: state.v1.StateStoreService.PutApplyStatus:input_type -> state.v1.PutApplyStatusRequest + 109, // 147: state.v1.StateStoreService.ListApplyStatus:input_type -> state.v1.ListApplyStatusRequest + 112, // 148: state.v1.StateStoreService.ReadTaskLog:input_type -> state.v1.ReadTaskLogRequest + 114, // 149: state.v1.StateStoreService.StreamTaskLogContent:input_type -> state.v1.StreamTaskLogContentRequest + 116, // 150: state.v1.StateStoreService.InsertCapture:input_type -> state.v1.InsertCaptureRequest + 118, // 151: state.v1.StateStoreService.StreamCaptures:input_type -> state.v1.StreamCapturesRequest + 120, // 152: state.v1.StateStoreService.InsertMapping:input_type -> state.v1.InsertMappingRequest + 122, // 153: state.v1.StateStoreService.GetMapping:input_type -> state.v1.GetMappingRequest + 124, // 154: state.v1.StateStoreService.ListMappings:input_type -> state.v1.ListMappingsRequest + 126, // 155: state.v1.StateStoreService.UpdateMapping:input_type -> state.v1.UpdateMappingRequest + 128, // 156: state.v1.StateStoreService.DeleteMapping:input_type -> state.v1.DeleteMappingRequest + 130, // 157: state.v1.StateStoreService.RecordMappingMatch:input_type -> state.v1.RecordMappingMatchRequest + 132, // 158: state.v1.StateStoreService.InsertEventType:input_type -> state.v1.InsertEventTypeRequest + 134, // 159: state.v1.StateStoreService.UpdateEventType:input_type -> state.v1.UpdateEventTypeRequest + 136, // 160: state.v1.StateStoreService.DeleteEventType:input_type -> state.v1.DeleteEventTypeRequest + 138, // 161: state.v1.StateStoreService.ListEventTypes:input_type -> state.v1.ListEventTypesRequest + 140, // 162: state.v1.StateStoreService.InsertBinding:input_type -> state.v1.InsertBindingRequest + 142, // 163: state.v1.StateStoreService.GetBinding:input_type -> state.v1.GetBindingRequest + 144, // 164: state.v1.StateStoreService.ListBindings:input_type -> state.v1.ListBindingsRequest + 146, // 165: state.v1.StateStoreService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest + 148, // 166: state.v1.StateStoreService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest + 150, // 167: state.v1.StateStoreService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest + 152, // 168: state.v1.StateStoreService.InsertSource:input_type -> state.v1.InsertSourceRequest + 154, // 169: state.v1.StateStoreService.GetSource:input_type -> state.v1.GetSourceRequest + 156, // 170: state.v1.StateStoreService.ListSources:input_type -> state.v1.ListSourcesRequest + 158, // 171: state.v1.StateStoreService.SetSourceSigning:input_type -> state.v1.SetSourceSigningRequest + 160, // 172: state.v1.StateStoreService.SetSourceSecret:input_type -> state.v1.SetSourceSecretRequest + 162, // 173: state.v1.StateStoreService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest + 164, // 174: state.v1.StateStoreService.RecordDispatch:input_type -> state.v1.RecordDispatchRequest + 166, // 175: state.v1.StateStoreService.RecordPlaybookDispatch:input_type -> state.v1.RecordPlaybookDispatchRequest + 168, // 176: state.v1.StateStoreService.DeletePlaybookDispatches:input_type -> state.v1.DeletePlaybookDispatchesRequest + 170, // 177: state.v1.StateStoreService.StreamUndispatchedCaptures:input_type -> state.v1.StreamUndispatchedCapturesRequest + 172, // 178: state.v1.StateStoreService.EnqueueBindingTask:input_type -> state.v1.EnqueueBindingTaskRequest + 174, // 179: state.v1.StateStoreService.EnqueueCallTask:input_type -> state.v1.EnqueueCallTaskRequest + 176, // 180: state.v1.StateStoreService.WorkflowCallStatus:input_type -> state.v1.WorkflowCallStatusRequest + 187, // 181: state.v1.StateStoreService.GetPrincipal:input_type -> state.v1.GetPrincipalRequest + 192, // 182: state.v1.StateStoreService.ListPolicies:input_type -> state.v1.ListPoliciesRequest + 194, // 183: state.v1.StateStoreService.PutPolicy:input_type -> state.v1.PutPolicyRequest + 196, // 184: state.v1.StateStoreService.DeletePolicy:input_type -> state.v1.DeletePolicyRequest + 198, // 185: state.v1.StateStoreService.EnsureShippedOrgPolicies:input_type -> state.v1.EnsureShippedOrgPoliciesRequest + 201, // 186: state.v1.StateStoreService.RecordDenial:input_type -> state.v1.RecordDenialRequest + 203, // 187: state.v1.StateStoreService.ListDenials:input_type -> state.v1.ListDenialsRequest + 180, // 188: state.v1.StateStoreService.InstallPackage:output_type -> state.v1.InstallPackageResponse + 182, // 189: state.v1.StateStoreService.GetInstalledPackage:output_type -> state.v1.GetInstalledPackageResponse + 184, // 190: state.v1.StateStoreService.ListInstalledPackages:output_type -> state.v1.ListInstalledPackagesResponse + 186, // 191: state.v1.StateStoreService.RemoveInstalledPackage:output_type -> state.v1.RemoveInstalledPackageResponse + 1, // 192: state.v1.StateStoreService.RegisterTaskGrant:output_type -> state.v1.RegisterTaskGrantResponse + 3, // 193: state.v1.StateStoreService.RevokeTaskGrant:output_type -> state.v1.RevokeTaskGrantResponse + 7, // 194: state.v1.StateStoreService.ListIdentities:output_type -> state.v1.ListIdentitiesResponse + 9, // 195: state.v1.StateStoreService.GetIdentity:output_type -> state.v1.GetIdentityResponse + 15, // 196: state.v1.StateStoreService.CreateIdentity:output_type -> state.v1.CreateIdentityResponse + 16, // 197: state.v1.StateStoreService.RenameIdentity:output_type -> state.v1.RenameIdentityResponse + 17, // 198: state.v1.StateStoreService.SuspendIdentity:output_type -> state.v1.SuspendIdentityResponse + 18, // 199: state.v1.StateStoreService.ReactivateIdentity:output_type -> state.v1.ReactivateIdentityResponse + 19, // 200: state.v1.StateStoreService.RetireIdentity:output_type -> state.v1.RetireIdentityResponse + 21, // 201: state.v1.StateStoreService.ResolveIdentitySubject:output_type -> state.v1.ResolveIdentitySubjectResponse + 23, // 202: state.v1.StateStoreService.BindIdentitySubject:output_type -> state.v1.BindIdentitySubjectResponse + 39, // 203: state.v1.StateStoreService.EnqueueIssue:output_type -> state.v1.EnqueueIssueResponse + 41, // 204: state.v1.StateStoreService.EnqueueChatTask:output_type -> state.v1.EnqueueChatTaskResponse + 43, // 205: state.v1.StateStoreService.ClaimNext:output_type -> state.v1.ClaimNextResponse + 45, // 206: state.v1.StateStoreService.ClaimByIssue:output_type -> state.v1.ClaimByIssueResponse + 47, // 207: state.v1.StateStoreService.Transition:output_type -> state.v1.TransitionResponse + 53, // 208: state.v1.StateStoreService.Update:output_type -> state.v1.UpdateResponse + 49, // 209: state.v1.StateStoreService.StartStep:output_type -> state.v1.StartStepResponse + 51, // 210: state.v1.StateStoreService.FinishStep:output_type -> state.v1.FinishStepResponse + 55, // 211: state.v1.StateStoreService.Requeue:output_type -> state.v1.RequeueResponse + 57, // 212: state.v1.StateStoreService.ParkTask:output_type -> state.v1.ParkTaskResponse + 59, // 213: state.v1.StateStoreService.RecoverStale:output_type -> state.v1.RecoverStaleResponse + 61, // 214: state.v1.StateStoreService.ArchiveTask:output_type -> state.v1.ArchiveTaskResponse + 63, // 215: state.v1.StateStoreService.RetryTask:output_type -> state.v1.RetryTaskResponse + 65, // 216: state.v1.StateStoreService.BeginRemediation:output_type -> state.v1.BeginRemediationResponse + 67, // 217: state.v1.StateStoreService.UpdateReviewPayload:output_type -> state.v1.UpdateReviewPayloadResponse + 69, // 218: state.v1.StateStoreService.SetReviewCursors:output_type -> state.v1.SetReviewCursorsResponse + 71, // 219: state.v1.StateStoreService.TaskByIssue:output_type -> state.v1.TaskByIssueResponse + 73, // 220: state.v1.StateStoreService.OpenTaskByPR:output_type -> state.v1.OpenTaskByPRResponse + 75, // 221: state.v1.StateStoreService.TaskByID:output_type -> state.v1.TaskByIDResponse + 77, // 222: state.v1.StateStoreService.OpenPRs:output_type -> state.v1.OpenPRsResponse + 79, // 223: state.v1.StateStoreService.ClearTerminalTasks:output_type -> state.v1.ClearTerminalTasksResponse + 81, // 224: state.v1.StateStoreService.Tasks:output_type -> state.v1.TasksResponse + 83, // 225: state.v1.StateStoreService.StatusCounts:output_type -> state.v1.StatusCountsResponse + 85, // 226: state.v1.StateStoreService.InsertEvent:output_type -> state.v1.InsertEventResponse + 87, // 227: state.v1.StateStoreService.EventsSince:output_type -> state.v1.EventsSinceResponse + 89, // 228: state.v1.StateStoreService.TaskEvents:output_type -> state.v1.TaskEventsResponse + 91, // 229: state.v1.StateStoreService.WorkflowStats:output_type -> state.v1.WorkflowStatsResponse + 93, // 230: state.v1.StateStoreService.StageStats:output_type -> state.v1.StageStatsResponse + 95, // 231: state.v1.StateStoreService.TokensByDay:output_type -> state.v1.TokensByDayResponse + 98, // 232: state.v1.StateStoreService.PutConfigSnapshot:output_type -> state.v1.PutConfigSnapshotResponse + 100, // 233: state.v1.StateStoreService.GetConfigSnapshot:output_type -> state.v1.GetConfigSnapshotResponse + 103, // 234: state.v1.StateStoreService.PutChannelStatus:output_type -> state.v1.PutChannelStatusResponse + 105, // 235: state.v1.StateStoreService.ListChannelStatus:output_type -> state.v1.ListChannelStatusResponse + 108, // 236: state.v1.StateStoreService.PutApplyStatus:output_type -> state.v1.PutApplyStatusResponse + 110, // 237: state.v1.StateStoreService.ListApplyStatus:output_type -> state.v1.ListApplyStatusResponse + 113, // 238: state.v1.StateStoreService.ReadTaskLog:output_type -> state.v1.ReadTaskLogResponse + 115, // 239: state.v1.StateStoreService.StreamTaskLogContent:output_type -> state.v1.StreamTaskLogContentResponse + 117, // 240: state.v1.StateStoreService.InsertCapture:output_type -> state.v1.InsertCaptureResponse + 119, // 241: state.v1.StateStoreService.StreamCaptures:output_type -> state.v1.StreamCapturesResponse + 121, // 242: state.v1.StateStoreService.InsertMapping:output_type -> state.v1.InsertMappingResponse + 123, // 243: state.v1.StateStoreService.GetMapping:output_type -> state.v1.GetMappingResponse + 125, // 244: state.v1.StateStoreService.ListMappings:output_type -> state.v1.ListMappingsResponse + 127, // 245: state.v1.StateStoreService.UpdateMapping:output_type -> state.v1.UpdateMappingResponse + 129, // 246: state.v1.StateStoreService.DeleteMapping:output_type -> state.v1.DeleteMappingResponse + 131, // 247: state.v1.StateStoreService.RecordMappingMatch:output_type -> state.v1.RecordMappingMatchResponse + 133, // 248: state.v1.StateStoreService.InsertEventType:output_type -> state.v1.InsertEventTypeResponse + 135, // 249: state.v1.StateStoreService.UpdateEventType:output_type -> state.v1.UpdateEventTypeResponse + 137, // 250: state.v1.StateStoreService.DeleteEventType:output_type -> state.v1.DeleteEventTypeResponse + 139, // 251: state.v1.StateStoreService.ListEventTypes:output_type -> state.v1.ListEventTypesResponse + 141, // 252: state.v1.StateStoreService.InsertBinding:output_type -> state.v1.InsertBindingResponse + 143, // 253: state.v1.StateStoreService.GetBinding:output_type -> state.v1.GetBindingResponse + 145, // 254: state.v1.StateStoreService.ListBindings:output_type -> state.v1.ListBindingsResponse + 147, // 255: state.v1.StateStoreService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse + 149, // 256: state.v1.StateStoreService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse + 151, // 257: state.v1.StateStoreService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse + 153, // 258: state.v1.StateStoreService.InsertSource:output_type -> state.v1.InsertSourceResponse + 155, // 259: state.v1.StateStoreService.GetSource:output_type -> state.v1.GetSourceResponse + 157, // 260: state.v1.StateStoreService.ListSources:output_type -> state.v1.ListSourcesResponse + 159, // 261: state.v1.StateStoreService.SetSourceSigning:output_type -> state.v1.SetSourceSigningResponse + 161, // 262: state.v1.StateStoreService.SetSourceSecret:output_type -> state.v1.SetSourceSecretResponse + 163, // 263: state.v1.StateStoreService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse + 165, // 264: state.v1.StateStoreService.RecordDispatch:output_type -> state.v1.RecordDispatchResponse + 167, // 265: state.v1.StateStoreService.RecordPlaybookDispatch:output_type -> state.v1.RecordPlaybookDispatchResponse + 169, // 266: state.v1.StateStoreService.DeletePlaybookDispatches:output_type -> state.v1.DeletePlaybookDispatchesResponse + 171, // 267: state.v1.StateStoreService.StreamUndispatchedCaptures:output_type -> state.v1.StreamUndispatchedCapturesResponse + 173, // 268: state.v1.StateStoreService.EnqueueBindingTask:output_type -> state.v1.EnqueueBindingTaskResponse + 175, // 269: state.v1.StateStoreService.EnqueueCallTask:output_type -> state.v1.EnqueueCallTaskResponse + 177, // 270: state.v1.StateStoreService.WorkflowCallStatus:output_type -> state.v1.WorkflowCallStatusResponse + 190, // 271: state.v1.StateStoreService.GetPrincipal:output_type -> state.v1.GetPrincipalResponse + 193, // 272: state.v1.StateStoreService.ListPolicies:output_type -> state.v1.ListPoliciesResponse + 195, // 273: state.v1.StateStoreService.PutPolicy:output_type -> state.v1.PutPolicyResponse + 197, // 274: state.v1.StateStoreService.DeletePolicy:output_type -> state.v1.DeletePolicyResponse + 199, // 275: state.v1.StateStoreService.EnsureShippedOrgPolicies:output_type -> state.v1.EnsureShippedOrgPoliciesResponse + 202, // 276: state.v1.StateStoreService.RecordDenial:output_type -> state.v1.RecordDenialResponse + 204, // 277: state.v1.StateStoreService.ListDenials:output_type -> state.v1.ListDenialsResponse + 188, // [188:278] is the sub-list for method output_type + 98, // [98:188] is the sub-list for method input_type + 98, // [98:98] is the sub-list for extension type_name + 98, // [98:98] is the sub-list for extension extendee + 0, // [0:98] is the sub-list for field type_name } func init() { file_state_v1_state_proto_init() } @@ -12046,7 +12346,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: 203, + NumMessages: 207, 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 6c5ae245a..58d7ecbed 100644 --- a/internal/contracts/state/v1/state_grpc.pb.go +++ b/internal/contracts/state/v1/state_grpc.pb.go @@ -40,6 +40,8 @@ const ( StateStoreService_ClaimByIssue_FullMethodName = "/state.v1.StateStoreService/ClaimByIssue" StateStoreService_Transition_FullMethodName = "/state.v1.StateStoreService/Transition" StateStoreService_Update_FullMethodName = "/state.v1.StateStoreService/Update" + StateStoreService_StartStep_FullMethodName = "/state.v1.StateStoreService/StartStep" + StateStoreService_FinishStep_FullMethodName = "/state.v1.StateStoreService/FinishStep" StateStoreService_Requeue_FullMethodName = "/state.v1.StateStoreService/Requeue" StateStoreService_ParkTask_FullMethodName = "/state.v1.StateStoreService/ParkTask" StateStoreService_RecoverStale_FullMethodName = "/state.v1.StateStoreService/RecoverStale" @@ -149,6 +151,10 @@ type StateStoreServiceClient interface { ClaimByIssue(ctx context.Context, in *ClaimByIssueRequest, opts ...grpc.CallOption) (*ClaimByIssueResponse, error) Transition(ctx context.Context, in *TransitionRequest, opts ...grpc.CallOption) (*TransitionResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) + // Step executions (docs/prds/execution-tree-state-machine.md). The run + // credential authorises both on its own execution only. + StartStep(ctx context.Context, in *StartStepRequest, opts ...grpc.CallOption) (*StartStepResponse, error) + FinishStep(ctx context.Context, in *FinishStepRequest, opts ...grpc.CallOption) (*FinishStepResponse, error) Requeue(ctx context.Context, in *RequeueRequest, opts ...grpc.CallOption) (*RequeueResponse, error) ParkTask(ctx context.Context, in *ParkTaskRequest, opts ...grpc.CallOption) (*ParkTaskResponse, error) RecoverStale(ctx context.Context, in *RecoverStaleRequest, opts ...grpc.CallOption) (*RecoverStaleResponse, error) @@ -492,6 +498,26 @@ func (c *stateStoreServiceClient) Update(ctx context.Context, in *UpdateRequest, return out, nil } +func (c *stateStoreServiceClient) StartStep(ctx context.Context, in *StartStepRequest, opts ...grpc.CallOption) (*StartStepResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(StartStepResponse) + err := c.cc.Invoke(ctx, StateStoreService_StartStep_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *stateStoreServiceClient) FinishStep(ctx context.Context, in *FinishStepRequest, opts ...grpc.CallOption) (*FinishStepResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(FinishStepResponse) + err := c.cc.Invoke(ctx, StateStoreService_FinishStep_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *stateStoreServiceClient) Requeue(ctx context.Context, in *RequeueRequest, opts ...grpc.CallOption) (*RequeueResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RequeueResponse) @@ -1229,6 +1255,10 @@ type StateStoreServiceServer interface { ClaimByIssue(context.Context, *ClaimByIssueRequest) (*ClaimByIssueResponse, error) Transition(context.Context, *TransitionRequest) (*TransitionResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) + // Step executions (docs/prds/execution-tree-state-machine.md). The run + // credential authorises both on its own execution only. + StartStep(context.Context, *StartStepRequest) (*StartStepResponse, error) + FinishStep(context.Context, *FinishStepRequest) (*FinishStepResponse, error) Requeue(context.Context, *RequeueRequest) (*RequeueResponse, error) ParkTask(context.Context, *ParkTaskRequest) (*ParkTaskResponse, error) RecoverStale(context.Context, *RecoverStaleRequest) (*RecoverStaleResponse, error) @@ -1425,6 +1455,12 @@ func (UnimplementedStateStoreServiceServer) Transition(context.Context, *Transit func (UnimplementedStateStoreServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) { return nil, status.Error(codes.Unimplemented, "method Update not implemented") } +func (UnimplementedStateStoreServiceServer) StartStep(context.Context, *StartStepRequest) (*StartStepResponse, error) { + return nil, status.Error(codes.Unimplemented, "method StartStep not implemented") +} +func (UnimplementedStateStoreServiceServer) FinishStep(context.Context, *FinishStepRequest) (*FinishStepResponse, error) { + return nil, status.Error(codes.Unimplemented, "method FinishStep not implemented") +} func (UnimplementedStateStoreServiceServer) Requeue(context.Context, *RequeueRequest) (*RequeueResponse, error) { return nil, status.Error(codes.Unimplemented, "method Requeue not implemented") } @@ -2025,6 +2061,42 @@ func _StateStoreService_Update_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _StateStoreService_StartStep_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartStepRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StateStoreServiceServer).StartStep(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: StateStoreService_StartStep_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StateStoreServiceServer).StartStep(ctx, req.(*StartStepRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _StateStoreService_FinishStep_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FinishStepRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StateStoreServiceServer).FinishStep(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: StateStoreService_FinishStep_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StateStoreServiceServer).FinishStep(ctx, req.(*FinishStepRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _StateStoreService_Requeue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RequeueRequest) if err := dec(in); err != nil { @@ -3301,6 +3373,14 @@ var StateStoreService_ServiceDesc = grpc.ServiceDesc{ MethodName: "Update", Handler: _StateStoreService_Update_Handler, }, + { + MethodName: "StartStep", + Handler: _StateStoreService_StartStep_Handler, + }, + { + MethodName: "FinishStep", + Handler: _StateStoreService_FinishStep_Handler, + }, { MethodName: "Requeue", Handler: _StateStoreService_Requeue_Handler, diff --git a/internal/domain/storecontract/storecontract.go b/internal/domain/storecontract/storecontract.go index c577891d7..947fedc60 100644 --- a/internal/domain/storecontract/storecontract.go +++ b/internal/domain/storecontract/storecontract.go @@ -65,6 +65,16 @@ type TaskParker interface { ParkTask(ctx context.Context, taskID int64, from, detail, class string) error } +// StepRecorder records the StepExecutions of one running WorkflowExecution +// (docs/prds/execution-tree-state-machine.md). It is deliberately separate +// from TaskLifecycle, which is exactly at the interfacebloat cap: the same +// two methods also sit on the workflow engine's mid-run facade (task.Store), +// which is what a container's run credential calls. +type StepRecorder interface { + StartStep(ctx context.Context, s task.StepStart) (int64, events.Event, error) + FinishStep(ctx context.Context, s task.StepFinish) (events.Event, error) +} + // TaskArchiver removes one terminal task's local record with an optimistic // status guard. It is separate from the already broad lifecycle contract so // consumers that only run tasks do not acquire an operator-only capability. @@ -415,6 +425,12 @@ var ( // it. Distinct from ErrStaleTransition, which covers a from that does // not match the row's actual status. ErrIllegalTransition = errors.New("store: illegal transition: status pair is not in the transition table") + // ErrInvalidStep is returned when a step-execution request names a kind + // the store does not record (docs/prds/execution-tree-state-machine.md: + // stage, agent or call; a new kind needs a named consumer before it is + // added) or a step whose identifying fields do not resolve. Distinct from + // the transition sentinels, which cover a row's state. + ErrInvalidStep = errors.New("store: invalid step execution request") // ErrBindingNotFound is returned when a binding ID does not exist. ErrBindingNotFound = errors.New("store: binding not found") // ErrBindingOverlap is returned when a binding's matcher overlaps an diff --git a/internal/domain/workflow/changes_test.go b/internal/domain/workflow/changes_test.go index 204b64d51..29bcd62b1 100644 --- a/internal/domain/workflow/changes_test.go +++ b/internal/domain/workflow/changes_test.go @@ -21,9 +21,14 @@ import ( // events it was asked to persist. A capture is durable provenance, so the // assertions below read this and not the lossy bus. type recordingStore struct { - events []events.Event - transitions []transition - insertEr error + events []events.Event + transitions []transition + steps []StepStart + finishes []StepFinish + insertEr error + stepEr error + stepNames map[int64]string + stepAttempts map[int64]int } // transition is one status change the engine asked the store for. Parking is @@ -46,6 +51,33 @@ func (s *recordingStore) InsertEvent(_ context.Context, e events.Event) (int64, return int64(len(s.events)), nil } +func (s *recordingStore) StartStep(_ context.Context, start StepStart) (int64, events.Event, error) { + if s.stepEr != nil { + return 0, events.Event{}, s.stepEr + } + s.steps = append(s.steps, start) + id := int64(len(s.steps)) + if s.stepNames == nil { + s.stepNames = map[int64]string{} + s.stepAttempts = map[int64]int{} + } + s.stepNames[id] = start.Name + s.stepAttempts[id] = start.Attempt + return id, events.Event{ID: id, Kind: events.KindStageStart, Stage: start.Name, Attempt: start.Attempt}, nil +} + +func (s *recordingStore) FinishStep(_ context.Context, finish StepFinish) (events.Event, error) { + if s.stepEr != nil { + return events.Event{}, s.stepEr + } + s.finishes = append(s.finishes, finish) + id := int64(len(s.finishes)) + return events.Event{ + ID: id, Kind: events.KindStageFinish, + Stage: s.stepNames[finish.StepID], Attempt: s.stepAttempts[finish.StepID], + }, nil +} + func (s *recordingStore) ofKind(kind string) []events.Event { var out []events.Event for _, e := range s.events { diff --git a/internal/domain/workflow/task/step.go b/internal/domain/workflow/task/step.go new file mode 100644 index 000000000..79b863c94 --- /dev/null +++ b/internal/domain/workflow/task/step.go @@ -0,0 +1,59 @@ +package task + +import "github.com/samcharles93/archie-core/internal/taskstate" + +// The step-execution vocabulary of docs/prds/execution-tree-state-machine.md: +// one stage run, or one agent or workflow.call step an execution's tree +// records, started and finished through the State Store under the run's own +// credential. + +// Step kinds. `stage` is what workflow.Run records for every stage it runs; +// `agent` is what the agent runtime records for one agent call; `call` is the +// workflow.call step in a caller's tree, which names its callee's execution. +// A new kind needs a named consumer before it is added. +const ( + StepKindStage = "stage" + StepKindAgent = "agent" + StepKindCall = "call" +) + +// ValidStepKind reports whether kind is one the store records. +func ValidStepKind(kind string) bool { + switch kind { + case StepKindStage, StepKindAgent, StepKindCall: + return true + default: + return false + } +} + +// StepStart names the step a caller is starting. ExecutionID is the +// WorkflowExecution (the tasks row); Attempt is the run of it the step +// belongs to; ParentID is 0 for a stage and names the enclosing StepExecution +// otherwise, from which the store derives depth. +type StepStart struct { + ExecutionID int64 + Attempt int + // ParentID is 0 when the step is a stage at the tree's root. + ParentID int64 + Kind string + Name string +} + +// StepFinish moves one step from From to its outcome. ExecutionID names the +// run the step belongs to: the task-scoped grant check verifies it, and the +// store verifies the step really is that execution's, so a caller cannot move +// another run's step by naming it. +type StepFinish struct { + StepID int64 + ExecutionID int64 + // From and To are the step transition table's statuses (taskstate). + From taskstate.StepStatus + To taskstate.StepStatus + // Detail is the step's outcome line: an error's text for a failed step, a + // summary otherwise. Clipped store-side like every detail. + Detail string + // TokensUsed is the usage the step itself accounted. Stages record none; + // the agent runtime records its own calls' usage. + TokensUsed int64 +} diff --git a/internal/domain/workflow/task/task.go b/internal/domain/workflow/task/task.go index 2cdbd0070..1805902db 100644 --- a/internal/domain/workflow/task/task.go +++ b/internal/domain/workflow/task/task.go @@ -160,6 +160,17 @@ type Store interface { Update(ctx context.Context, t *Task) error Transition(ctx context.Context, taskID int64, from, to, detail string) error InsertEvent(ctx context.Context, e events.Event) (int64, error) + // StartStep records a StepExecution entering running + // (docs/prds/execution-tree-state-machine.md): the store creates the row, + // enforces the step transition table and the execution's own status, and + // writes the transition's stage_start event in the same transaction. It + // returns the step's id and the persisted event, which the caller publishes + // to its bus after the write commits. + StartStep(ctx context.Context, s StepStart) (int64, events.Event, error) + // FinishStep moves one step to its outcome under the same table, writing + // the stage_finish event in the same transaction, and returns that event + // for the caller's post-commit publish. + FinishStep(ctx context.Context, s StepFinish) (events.Event, error) } // Definition is the operator-safe snapshot of an executable workflow. It diff --git a/internal/domain/workflow/task_aliases.go b/internal/domain/workflow/task_aliases.go index 356923e94..ab985cc5c 100644 --- a/internal/domain/workflow/task_aliases.go +++ b/internal/domain/workflow/task_aliases.go @@ -14,10 +14,22 @@ type ( // Store is the narrow, consumer-owned subset of the State Store // contract that workflow stages call mid-run. Store = task.Store + // StepStart and StepFinish are the step-execution writes the store + // records mid-run (docs/prds/execution-tree-state-machine.md). + StepStart = task.StepStart + StepFinish = task.StepFinish // Definition is the operator-safe snapshot of an executable workflow. Definition = task.Definition ) +// Step-execution kinds, defined beside the step writes in internal/domain/ +// workflow/task with the same aliasing reason. +const ( + StepKindStage = task.StepKindStage + StepKindAgent = task.StepKindAgent + StepKindCall = task.StepKindCall +) + // Task lifecycle statuses. Defined in internal/taskstate; these names are // the workflow domain's public spelling. const ( diff --git a/internal/domain/workflow/workflow.go b/internal/domain/workflow/workflow.go index 5e893cdd4..339e1bc36 100644 --- a/internal/domain/workflow/workflow.go +++ b/internal/domain/workflow/workflow.go @@ -7,7 +7,6 @@ package workflow import ( "context" - "errors" "fmt" "log/slog" "regexp" @@ -20,6 +19,7 @@ import ( "github.com/samcharles93/archie-core/internal/domain/workflow/task" "github.com/samcharles93/archie-core/internal/events" "github.com/samcharles93/archie-core/internal/skill" + "github.com/samcharles93/archie-core/internal/taskstate" "github.com/samcharles93/archie-core/internal/tools" ) @@ -304,6 +304,20 @@ func Run(ctx context.Context, wf Workflow, tc *TaskContext) { for _, stage := range wf.Stages { t.Stage = stage.Name _ = tc.Store.Update(ctx, t) + // Every stage is a StepExecution (docs/prds/execution-tree-state-machine.md): + // the store records pending -> running and writes the stage_start event + // in the same transaction, and refuses a start the state machine + // forbids. A failed recording write parks the execution -- the step + // does not run unrecorded, because a stage whose record never landed + // would park on a reason no dashboard can trace to a step row. + stepID, startEvent, err := tc.Store.StartStep(ctx, StepStart{ + ExecutionID: t.ID, Attempt: t.Attempt, Kind: task.StepKindStage, Name: stage.Name, + }) + if err != nil { + park(ctx, tc, fmt.Sprintf("stage %s could not be recorded: %v", stage.Name, err)) + return + } + publishEvent(tc, startEvent) // The stage is bound onto the task logger for exactly the stage's own // execution and removed afterwards, so every line a stage's code writes // is selectable by stage (internal/logging.Query.Stage). It is restored @@ -315,28 +329,52 @@ func Run(ctx context.Context, wf Workflow, tc *TaskContext) { stageLog := previousLog.With("stage", stage.Name) tc.Log = stageLog stageLog.Info("stage starting") - tc.Emit(events.KindStageStart, stage.Name, "", nil) - started := time.Now() - err := stage.Run(ctx, tc) - data := map[string]any{"duration_ms": time.Since(started).Milliseconds()} - if err != nil { - data["error"] = err.Error() - if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) { - data["interrupted"] = true - } - } - tc.Emit(events.KindStageFinish, stage.Name, "", data) + err = stage.Run(ctx, tc) tc.Log = previousLog - if err != nil { - // Daemon shutdown is not a workflow failure. Leave the task running - // so Startup's existing crash recovery requeues it; parking here - // would publish a false failure and require manual intervention. - if ctx.Err() != nil { - stageLog.Info("stage interrupted", "err", err) - return + // Daemon shutdown is not a workflow failure. The step records the + // table's interrupted outcome -- the process knows the step it is + // giving up -- and returns without parking: Startup's existing crash + // recovery requeues the execution, and the next attempt starts fresh + // steps. A recording failure on this path is logged and left to the + // same recovery: the process is on its way out either way. + if ctx.Err() != nil && err != nil { + if finishEvent, recordErr := tc.Store.FinishStep(ctx, StepFinish{ + StepID: stepID, ExecutionID: t.ID, + From: taskstate.StepRunning, To: taskstate.StepInterrupted, Detail: err.Error(), + }); recordErr != nil { + stageLog.Warn("interrupted step finish could not be recorded", "stage", stage.Name, "err", recordErr) + } else { + publishEvent(tc, finishEvent) } + stageLog.Info("stage interrupted", "err", err) + return + } + + finishTo := taskstate.StepSucceeded + finishDetail := "" + if err != nil { + finishTo = taskstate.StepFailed + finishDetail = err.Error() + } + // The outcome event is the store's own stage_finish row, written in the + // FinishStep transaction -- not a second copy emitted beside it. A + // failed recording write parks the execution, like a failed start. + finishEvent, recordErr := tc.Store.FinishStep(ctx, StepFinish{ + StepID: stepID, ExecutionID: t.ID, + From: taskstate.StepRunning, To: finishTo, Detail: finishDetail, + }) + if recordErr != nil { + stageLog.Error("stage finish could not be recorded", "stage", stage.Name, "err", recordErr) + park(ctx, tc, fmt.Sprintf("stage %s could not be recorded: %v", stage.Name, recordErr)) + return + } + publishEvent(tc, finishEvent) + + if err != nil { + // Parking here publishes the failure; the store has already + // recorded the step that produced it. t.ParkReason = fmt.Sprintf("stage %s: %v", stage.Name, err) park(ctx, tc, t.ParkReason) return @@ -351,6 +389,16 @@ func Run(ctx context.Context, wf Workflow, tc *TaskContext) { park(ctx, tc, "workflow ended without an outcome (definition bug)") } +// publishEvent puts an already-persisted event on the run's bus after its +// write committed: the assigned ID is what the daemon's event sink reads to +// skip the second insert, the same convention EmitDurable established. +func publishEvent(tc *TaskContext, e events.Event) { + if tc.Bus == nil || e.ID == 0 { + return + } + tc.Bus.Publish(e) +} + func finish(ctx context.Context, tc *TaskContext, log *slog.Logger) { t := tc.Task if tc.Outcome.Status == StatusParked { diff --git a/internal/domain/workflow/workflow_steps_test.go b/internal/domain/workflow/workflow_steps_test.go new file mode 100644 index 000000000..d76dc79cc --- /dev/null +++ b/internal/domain/workflow/workflow_steps_test.go @@ -0,0 +1,116 @@ +package workflow + +import ( + "context" + "errors" + "log/slog" + "slices" + "testing" + + task "github.com/samcharles93/archie-core/internal/domain/workflow/task" + "github.com/samcharles93/archie-core/internal/events" +) + +// The stage-recording half of docs/prds/execution-tree-state-machine.md: +// workflow.Run records every stage it runs as a StepExecution through the +// store, and a failed step write parks the execution -- the step does not run +// unrecorded. + +// TestRunRecordsEveryStageAsAStepExecution pins the recording shape: one +// StartStep before each stage's body and one FinishStep with that stage's +// outcome, both of kind stage, against the task's own execution and attempt. +func TestRunRecordsEveryStageAsAStepExecution(t *testing.T) { + store := &recordingStore{} + stage := func(name string) Stage { + return Stage{Name: name, Run: func(context.Context, *TaskContext) error { return nil }} + } + wf := Workflow{Name: "recording", Stages: []Stage{stage("plan"), stage("implement")}} + tc := &TaskContext{ + Task: &Task{ID: 41, Attempt: 3, Owner: "acme", Repo: "widgets", Status: StatusRunning}, + Store: store, Log: slog.New(slog.DiscardHandler), + } + + Run(context.Background(), wf, tc) + + if len(store.steps) != 2 || len(store.finishes) != 2 { + t.Fatalf("steps = %+v finishes = %+v, want one recorded start and finish per stage", store.steps, store.finishes) + } + for i, step := range store.steps { + if step.ExecutionID != 41 || step.Attempt != 3 { + t.Errorf("stage %d: ExecutionID/Attempt = %d/%d, want the run's own 41/3", i, step.ExecutionID, step.Attempt) + } + if step.Kind != task.StepKindStage { + t.Errorf("stage %d: kind = %q, want %q", i, step.Kind, task.StepKindStage) + } + if want := []string{"plan", "implement"}[i]; step.Name != want { + t.Errorf("stage %d: name = %q, want %q", i, step.Name, want) + } + } + if got := store.finishes[0].To; got != "succeeded" { + t.Errorf("stage finish to = %q, want succeeded", got) + } +} + +// TestRunPublishesTheRecordedEvents pins the post-commit half: the events the +// store returned, already persisted, are what reach the bus -- not a second, +// unpersisted copy emitted beside the store write. +func TestRunPublishesThePersistedStepEvents(t *testing.T) { + store := &recordingStore{} + wf := Workflow{Name: "recording", Stages: []Stage{{ + Name: "implement", Run: func(context.Context, *TaskContext) error { return nil }, + }}} + bus := events.NewBus() + sub := bus.Subscribe(16) + defer sub.Close() + tc := &TaskContext{ + Task: &Task{ID: 7, Attempt: 1, Owner: "acme", Repo: "widgets", Status: StatusRunning}, + Store: store, Bus: bus, Log: slog.New(slog.DiscardHandler), + } + + Run(context.Background(), wf, tc) + + var seen []string + ids := map[string]int64{} + for len(sub.C) > 0 { + e := <-sub.C + seen = append(seen, e.Kind) + ids[e.Kind] = e.ID + } + for _, want := range []string{events.KindStageStart, events.KindStageFinish} { + if !slices.Contains(seen, want) { + t.Errorf("bus saw %v, want %q among them: the persisted events are what reach the bus", seen, want) + } + if ids[want] == 0 { + t.Errorf("bus event %q carries no ID: an event without the store's assigned ID would be inserted a second time by the daemon's event sink", want) + } + } +} + +// TestRunParksWhenAStepWriteFails is the PRD's persistence rule: a failed +// step write parks the execution, and the step does not run unrecorded. +func TestRunParksWhenAStepWriteFails(t *testing.T) { + store := &recordingStore{stepEr: errStepWrite} + stageRan := false + wf := Workflow{Name: "recording", Stages: []Stage{{ + Name: "implement", + Run: func(context.Context, *TaskContext) error { stageRan = true; return nil }, + }}} + tc := &TaskContext{ + Task: &Task{ID: 9, Attempt: 1, Owner: "acme", Repo: "widgets", Status: StatusRunning}, + Store: store, Log: slog.New(slog.DiscardHandler), + } + + Run(context.Background(), wf, tc) + + if stageRan { + t.Fatal("the stage ran despite its recording write failing; the step must not run unrecorded") + } + if len(store.transitions) == 0 || store.transitions[0].to != StatusParked { + t.Fatalf("transitions = %+v, want the execution parked", store.transitions) + } + if len(store.finishes) != 0 { + t.Errorf("finishes = %+v, want none: the stage never ran", store.finishes) + } +} + +var errStepWrite = errors.New("recording write failed") diff --git a/internal/infrastructure/agenttransport/nats/transport.go b/internal/infrastructure/agenttransport/nats/transport.go index 6d53ad787..f3478b008 100644 --- a/internal/infrastructure/agenttransport/nats/transport.go +++ b/internal/infrastructure/agenttransport/nats/transport.go @@ -221,6 +221,18 @@ func (d deadlineStore) InsertEvent(ctx context.Context, e events.Event) (int64, return d.Store.InsertEvent(ctx, e) } +func (d deadlineStore) StartStep(ctx context.Context, s task.StepStart) (int64, events.Event, error) { + ctx, cancel := d.withDeadline(ctx) + defer cancel() + return d.Store.StartStep(ctx, s) +} + +func (d deadlineStore) FinishStep(ctx context.Context, s task.StepFinish) (events.Event, error) { + ctx, cancel := d.withDeadline(ctx) + defer cancel() + return d.Store.FinishStep(ctx, s) +} + // Trees constructs the identity-scoped worktree RPC client. func (t *Transport) Trees(identity, grant string, timeout time.Duration) RemoteTrees { return &worktreerpc.Client{Conn: t.conn, Timeout: timeout, Identity: identity, Grant: grant} diff --git a/internal/infrastructure/postgres/migrations/0017_step_executions.sql b/internal/infrastructure/postgres/migrations/0017_step_executions.sql new file mode 100644 index 000000000..0c0ce64fd --- /dev/null +++ b/internal/infrastructure/postgres/migrations/0017_step_executions.sql @@ -0,0 +1,32 @@ +-- Step executions: one durable record per stage run and per agent or +-- workflow.call step inside a WorkflowExecution +-- (docs/prds/execution-tree-state-machine.md). Statuses are taskstate's +-- StepStatus vocabulary and move only through the step transition table the +-- store enforces; depth is derived from parent_id, never supplied by a +-- caller. Existing rows gain no backfilled steps: their stage history stays +-- in transitions and events. + +-- +goose Up + +CREATE TABLE step_executions ( + id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, + org_id text NOT NULL DEFAULT 'default', + workspace_id text NOT NULL DEFAULT 'default', + execution_id bigint NOT NULL, + attempt bigint NOT NULL, + parent_id bigint, + depth int NOT NULL DEFAULT 0, + kind text NOT NULL, + name text NOT NULL, + called_execution_id bigint NOT NULL DEFAULT 0, + status text NOT NULL DEFAULT 'pending', + detail text NOT NULL DEFAULT '', + tokens_used bigint NOT NULL DEFAULT 0, + started_at timestamptz, + finished_at timestamptz +); +CREATE INDEX idx_step_executions_attempt ON step_executions (execution_id, attempt, id); + +-- +goose Down + +DROP TABLE step_executions; \ No newline at end of file diff --git a/internal/infrastructure/postgres/postgresdb/models.go b/internal/infrastructure/postgres/postgresdb/models.go index 002a7774d..dccce791e 100644 --- a/internal/infrastructure/postgres/postgresdb/models.go +++ b/internal/infrastructure/postgres/postgresdb/models.go @@ -306,6 +306,24 @@ type Source struct { WorkspaceID string } +type StepExecution struct { + ID int64 + OrgID string + WorkspaceID string + ExecutionID int64 + Attempt int64 + ParentID pgtype.Int8 + Depth int32 + Kind string + Name string + CalledExecutionID int64 + Status string + Detail string + TokensUsed int64 + StartedAt pgtype.Timestamptz + FinishedAt pgtype.Timestamptz +} + type SysAudit struct { ID int64 At time.Time diff --git a/internal/infrastructure/postgres/postgresdb/steps.sql.go b/internal/infrastructure/postgres/postgresdb/steps.sql.go new file mode 100644 index 000000000..1f9088cd4 --- /dev/null +++ b/internal/infrastructure/postgres/postgresdb/steps.sql.go @@ -0,0 +1,165 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.31.1 +// source: steps.sql + +package postgresdb + +import ( + "context" + + "github.com/jackc/pgx/v5/pgtype" +) + +const finishStepExecution = `-- name: FinishStepExecution :execrows +UPDATE step_executions +SET status = $1, detail = $2, tokens_used = $3, finished_at = now() +WHERE id = $4 AND status = $5 +` + +type FinishStepExecutionParams struct { + Status string + Detail string + TokensUsed int64 + ID int64 + Status_2 string +} + +func (q *Queries) FinishStepExecution(ctx context.Context, arg FinishStepExecutionParams) (int64, error) { + result, err := q.db.Exec(ctx, finishStepExecution, + arg.Status, + arg.Detail, + arg.TokensUsed, + arg.ID, + arg.Status_2, + ) + if err != nil { + return 0, err + } + return result.RowsAffected(), nil +} + +const insertStepExecution = `-- name: InsertStepExecution :one +INSERT INTO step_executions (org_id, workspace_id, execution_id, attempt, parent_id, depth, kind, name, called_execution_id, status) +VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, 'pending') +RETURNING id +` + +type InsertStepExecutionParams struct { + OrgID string + WorkspaceID string + ExecutionID int64 + Attempt int64 + ParentID pgtype.Int8 + Depth int32 + Kind string + Name string + CalledExecutionID int64 +} + +func (q *Queries) InsertStepExecution(ctx context.Context, arg InsertStepExecutionParams) (int64, error) { + row := q.db.QueryRow(ctx, insertStepExecution, + arg.OrgID, + arg.WorkspaceID, + arg.ExecutionID, + arg.Attempt, + arg.ParentID, + arg.Depth, + arg.Kind, + arg.Name, + arg.CalledExecutionID, + ) + var id int64 + err := row.Scan(&id) + return id, err +} + +const lockExecutionForStep = `-- name: LockExecutionForStep :one + +SELECT id, status, org_id, workspace_id, owner, repo, issue_number, workflow, attempt +FROM tasks WHERE id = $1 FOR UPDATE +` + +type LockExecutionForStepRow struct { + ID int64 + Status string + OrgID string + WorkspaceID string + Owner string + Repo string + IssueNumber int64 + Workflow string + Attempt int64 +} + +// Step-execution queries (docs/prds/execution-tree-state-machine.md). The +// store method owns the transaction that pairs each step transition with its +// event row; these are only the guarded row writes and reads. +// FOR UPDATE locks the execution's row, so the status check, the step insert +// and the event append are one serialized operation per execution -- the way +// guardTransition locks a task's row for its transition. The row also carries +// every field the transition's event needs (org, workspace, the task +// identity) and the attempt the step must belong to. +func (q *Queries) LockExecutionForStep(ctx context.Context, id int64) (LockExecutionForStepRow, error) { + row := q.db.QueryRow(ctx, lockExecutionForStep, id) + var i LockExecutionForStepRow + err := row.Scan( + &i.ID, + &i.Status, + &i.OrgID, + &i.WorkspaceID, + &i.Owner, + &i.Repo, + &i.IssueNumber, + &i.Workflow, + &i.Attempt, + ) + return i, err +} + +const lockStepExecution = `-- name: LockStepExecution :one +SELECT id, org_id, workspace_id, execution_id, attempt, parent_id, depth, kind, name, called_execution_id, status, detail, tokens_used, started_at, finished_at +FROM step_executions WHERE id = $1 FOR UPDATE +` + +// FOR UPDATE, shared by a start's parent check and a finish's guarded write: +// the row is held for the caller's transaction, so the state a check reads is +// the state the guarded write sees. +func (q *Queries) LockStepExecution(ctx context.Context, id int64) (StepExecution, error) { + row := q.db.QueryRow(ctx, lockStepExecution, id) + var i StepExecution + err := row.Scan( + &i.ID, + &i.OrgID, + &i.WorkspaceID, + &i.ExecutionID, + &i.Attempt, + &i.ParentID, + &i.Depth, + &i.Kind, + &i.Name, + &i.CalledExecutionID, + &i.Status, + &i.Detail, + &i.TokensUsed, + &i.StartedAt, + &i.FinishedAt, + ) + return i, err +} + +const startStepExecution = `-- name: StartStepExecution :execrows +UPDATE step_executions SET status = 'running', started_at = now() +WHERE id = $1 AND status = 'pending' +` + +// The pending -> running half of StartStep, guarded by the row's own status: +// the step transition table routes the pair, so a row that is not pending is +// stale rather than silently restarted. +func (q *Queries) StartStepExecution(ctx context.Context, id int64) (int64, error) { + result, err := q.db.Exec(ctx, startStepExecution, id) + if err != nil { + return 0, err + } + return result.RowsAffected(), nil +} diff --git a/internal/infrastructure/postgres/queries/steps.sql b/internal/infrastructure/postgres/queries/steps.sql new file mode 100644 index 000000000..7ba83a959 --- /dev/null +++ b/internal/infrastructure/postgres/queries/steps.sql @@ -0,0 +1,36 @@ +-- Step-execution queries (docs/prds/execution-tree-state-machine.md). The +-- store method owns the transaction that pairs each step transition with its +-- event row; these are only the guarded row writes and reads. + +-- name: LockExecutionForStep :one +-- FOR UPDATE locks the execution's row, so the status check, the step insert +-- and the event append are one serialized operation per execution -- the way +-- guardTransition locks a task's row for its transition. The row also carries +-- every field the transition's event needs (org, workspace, the task +-- identity) and the attempt the step must belong to. +SELECT id, status, org_id, workspace_id, owner, repo, issue_number, workflow, attempt +FROM tasks WHERE id = $1 FOR UPDATE; + +-- name: InsertStepExecution :one +INSERT INTO step_executions (org_id, workspace_id, execution_id, attempt, parent_id, depth, kind, name, called_execution_id, status) +VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, 'pending') +RETURNING id; + +-- name: StartStepExecution :execrows +-- The pending -> running half of StartStep, guarded by the row's own status: +-- the step transition table routes the pair, so a row that is not pending is +-- stale rather than silently restarted. +UPDATE step_executions SET status = 'running', started_at = now() +WHERE id = $1 AND status = 'pending'; + +-- name: LockStepExecution :one +-- FOR UPDATE, shared by a start's parent check and a finish's guarded write: +-- the row is held for the caller's transaction, so the state a check reads is +-- the state the guarded write sees. +SELECT id, org_id, workspace_id, execution_id, attempt, parent_id, depth, kind, name, called_execution_id, status, detail, tokens_used, started_at, finished_at +FROM step_executions WHERE id = $1 FOR UPDATE; + +-- name: FinishStepExecution :execrows +UPDATE step_executions +SET status = $1, detail = $2, tokens_used = $3, finished_at = now() +WHERE id = $4 AND status = $5; \ No newline at end of file diff --git a/internal/infrastructure/postgres/steps.go b/internal/infrastructure/postgres/steps.go new file mode 100644 index 000000000..3a01cac30 --- /dev/null +++ b/internal/infrastructure/postgres/steps.go @@ -0,0 +1,232 @@ +package postgres + +import ( + "context" + "errors" + "fmt" + "time" + + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgtype" + + "github.com/samcharles93/archie-core/internal/domain/storecontract" + task "github.com/samcharles93/archie-core/internal/domain/workflow/task" + "github.com/samcharles93/archie-core/internal/events" + "github.com/samcharles93/archie-core/internal/infrastructure/postgres/postgresdb" + "github.com/samcharles93/archie-core/internal/taskstate" +) + +// The step-execution writes of docs/prds/execution-tree-state-machine.md. +// Each is one transaction: the guarded row write, and the domain event row +// the step transition produces, so the events table records exactly the +// transitions the step row does. The events land in the table; the caller +// publishes the returned event to its bus after the write commits, and the +// daemon's event sink skips already-persisted rows by their assigned ID -- +// the EmitDurable convention. + +// StartStep records a StepExecution entering running: the row is created +// pending, guarded into running under the shared step transition table, and +// the stage_start event is appended in the same transaction. The execution's +// row is locked for the whole write, so its status check cannot race the +// guarded updates, and org and workspace are stamped from it -- the request's +// ownership fields are ignored, like every owned record. +func (s *Store) StartStep(ctx context.Context, start task.StepStart) (int64, events.Event, error) { + if !task.ValidStepKind(start.Kind) { + return 0, events.Event{}, fmt.Errorf("%w: unknown step kind %q", storecontract.ErrInvalidStep, start.Kind) + } + + tx, err := s.pool.Begin(ctx) + if err != nil { + return 0, events.Event{}, err + } + defer func() { _ = tx.Rollback(ctx) }() + q := postgresdb.New(tx) + + execution, err := q.LockExecutionForStep(ctx, start.ExecutionID) + if errors.Is(err, pgx.ErrNoRows) { + // The execution the caller names does not exist: its view of the run + // is stale, matching what guardTransition returns for a missing row. + return 0, events.Event{}, storecontract.ErrStaleTransition + } + if err != nil { + return 0, events.Event{}, err + } + if execution.Attempt != int64(start.Attempt) { + // A step belongs to exactly one attempt; a caller naming one the + // execution no longer runs is describing a run that is over. + return 0, events.Event{}, storecontract.ErrStaleTransition + } + + depth, err := s.startParent(ctx, q, start) + if err != nil { + return 0, events.Event{}, err + } + // A step cannot reach running while its execution is not running, and + // never under a terminal parent. Both are the state machine's rules, so + // they refuse as illegal transitions. + if err := taskstate.CheckStepStart(execution.Status, depth.underTerminal); err != nil { + return 0, events.Event{}, fmt.Errorf("%w: %w", storecontract.ErrIllegalTransition, err) + } + + stepID, err := q.InsertStepExecution(ctx, postgresdb.InsertStepExecutionParams{ + OrgID: execution.OrgID, WorkspaceID: execution.WorkspaceID, + ExecutionID: execution.ID, Attempt: execution.Attempt, + ParentID: stepParentID(start.ParentID), Depth: int32(depth.depth), + Kind: start.Kind, Name: start.Name, CalledExecutionID: 0, + }) + if err != nil { + return 0, events.Event{}, err + } + n, err := q.StartStepExecution(ctx, stepID) + if err != nil { + return 0, events.Event{}, err + } + if n == 0 { + return 0, events.Event{}, storecontract.ErrStaleTransition + } + + event := stepEvent(events.KindStageStart, execution.ID, + execution.Owner, execution.Repo, execution.IssueNumber, execution.Workflow, + int(execution.Attempt), start.Name, nil) + eventID, err := insertEventQ(ctx, q, event) + if err != nil { + return 0, events.Event{}, err + } + event.ID = eventID + if err := tx.Commit(ctx); err != nil { + return 0, events.Event{}, err + } + return stepID, event, nil +} + +// stepParent resolves the enclosing StepExecution a child step names: its +// row is locked in the same transaction, the tree must stay inside one +// execution and one attempt, and depth is derived from the parent, never +// supplied by the caller. +func (s *Store) startParent(ctx context.Context, q *postgresdb.Queries, start task.StepStart) (stepParentState, error) { + if start.ParentID == 0 { + return stepParentState{}, nil + } + parent, err := q.LockStepExecution(ctx, start.ParentID) + if errors.Is(err, pgx.ErrNoRows) { + return stepParentState{}, storecontract.ErrStaleTransition + } + if err != nil { + return stepParentState{}, err + } + if parent.ExecutionID != start.ExecutionID || parent.Attempt != int64(start.Attempt) { + // Trees never nest across executions, and a parent from another + // attempt is a tree the caller is not running. + return stepParentState{}, storecontract.ErrStaleTransition + } + return stepParentState{ + depth: int(parent.Depth) + 1, + underTerminal: taskstate.StepTerminal(taskstate.StepStatus(parent.Status)), + }, nil +} + +type stepParentState struct { + depth int + underTerminal bool +} + +// FinishStep moves one step to its outcome under the shared step transition +// table, writing the stage_finish event in the same transaction and returning +// it for the caller's post-commit publish. A step that is missing, that is +// not the named execution's, or whose status does not match from is stale; an +// off-table from->to pair is refused as an illegal transition. +func (s *Store) FinishStep(ctx context.Context, finish task.StepFinish) (events.Event, error) { + tx, err := s.pool.Begin(ctx) + if err != nil { + return events.Event{}, err + } + defer func() { _ = tx.Rollback(ctx) }() + q := postgresdb.New(tx) + + step, err := q.LockStepExecution(ctx, finish.StepID) + if errors.Is(err, pgx.ErrNoRows) { + return events.Event{}, storecontract.ErrStaleTransition + } + if err != nil { + return events.Event{}, err + } + // The step belongs to another run, or the caller believes a state the row + // does not hold. Either way its view is stale, and writing would move + // another execution's record. + if step.ExecutionID != finish.ExecutionID || taskstate.StepStatus(step.Status) != finish.From { + return events.Event{}, storecontract.ErrStaleTransition + } + // Staleness is decided first, the way guardTransition decides it: a caller + // that is wrong about the row's state gets the stale sentinel even when + // its pair is also unroutable. + if !taskstate.CanStepTransition(finish.From, finish.To) { + return events.Event{}, fmt.Errorf("%w: %s -> %s is not a step transition", + storecontract.ErrIllegalTransition, finish.From, finish.To) + } + execution, err := q.TaskByID(ctx, step.ExecutionID) + if err != nil { + return events.Event{}, err + } + + durationMS := int64(0) + if step.StartedAt.Valid { + durationMS = time.Since(step.StartedAt.Time).Milliseconds() + } + n, err := q.FinishStepExecution(ctx, postgresdb.FinishStepExecutionParams{ + Status: string(finish.To), Detail: clip(finish.Detail, 4000), TokensUsed: finish.TokensUsed, + ID: finish.StepID, Status_2: string(finish.From), + }) + if err != nil { + return events.Event{}, err + } + if n == 0 { + return events.Event{}, storecontract.ErrStaleTransition + } + + event := stepEvent(events.KindStageFinish, execution.ID, + execution.Owner, execution.Repo, execution.IssueNumber, execution.Workflow, + int(step.Attempt), step.Name, + stepEventData(finish.To, durationMS, finish.Detail)) + eventID, err := insertEventQ(ctx, q, event) + if err != nil { + return events.Event{}, err + } + event.ID = eventID + if err := tx.Commit(ctx); err != nil { + return events.Event{}, err + } + return event, nil +} + +// stepEvent builds the event row one step transition writes, stamped with the +// execution's identity the way TaskContext.Emit stamped it -- the same fields +// the timeline and the stage statistics read back. +func stepEvent(kind string, executionID int64, owner, repo string, issue int64, wf string, attempt int, stage string, data map[string]any) events.Event { + return events.Event{ + Kind: kind, TaskID: executionID, + Repo: owner + "/" + repo, Issue: int(issue), Workflow: wf, + Attempt: attempt, Stage: stage, Data: data, + } +} + +// stepEventData reads a stage_finish event's data the way the dashboard +// (stageOutcome) and the stage statistics (StageStats) do: duration always, +// the error text only when the step reported failure, and the interruption +// marker only for an interrupted step. +func stepEventData(to taskstate.StepStatus, durationMS int64, detail string) map[string]any { + data := map[string]any{"duration_ms": durationMS} + switch to { + case taskstate.StepFailed: + data["error"] = detail + case taskstate.StepInterrupted: + data["interrupted"] = true + } + return data +} + +// stepParentID encodes the nullable parent id an insert takes: 0 means "no +// parent" -- a stage at the tree's root -- which the column stores as NULL +// rather than as a reference to a row that does not exist. +func stepParentID(parentID int64) pgtype.Int8 { + return pgtype.Int8{Int64: parentID, Valid: parentID != 0} +} diff --git a/internal/infrastructure/postgres/steps_test.go b/internal/infrastructure/postgres/steps_test.go new file mode 100644 index 000000000..167a52ab5 --- /dev/null +++ b/internal/infrastructure/postgres/steps_test.go @@ -0,0 +1,249 @@ +package postgres + +import ( + "errors" + "testing" + + "github.com/samcharles93/archie-core/internal/domain/storecontract" + "github.com/samcharles93/archie-core/internal/domain/workflow" + task "github.com/samcharles93/archie-core/internal/domain/workflow/task" + "github.com/samcharles93/archie-core/internal/events" + "github.com/samcharles93/archie-core/internal/taskstate" +) + +// The step-execution writes (docs/prds/execution-tree-state-machine.md): each +// of StartStep and FinishStep is one transaction -- guarded row write plus the +// domain event row -- under the step transition table, with the execution's +// own status gating whether a step may run at all. + +// runningExecution enqueues and claims one task, the state a step runs in. +func runningExecution(t *testing.T, s *Store) *workflow.Task { + t.Helper() + seed, err := s.EnqueueChatTask(t.Context(), "acme", "widgets", "t", "b", "implement", "") + if err != nil || seed == nil { + t.Fatalf("EnqueueChatTask: %+v %v", seed, err) + } + claimed, err := s.ClaimNext(t.Context()) + if err != nil || claimed == nil { + t.Fatalf("ClaimNext: %+v %v", claimed, err) + } + return claimed +} + +func TestStartStepRecordsAStageEnteringRunning(t *testing.T) { + s := storeFor(t) + execution := runningExecution(t, s) + + stepID, startEvent, err := s.StartStep(t.Context(), task.StepStart{ + ExecutionID: execution.ID, Attempt: execution.Attempt, Kind: task.StepKindStage, Name: "implement", + }) + if err != nil { + t.Fatalf("StartStep: %v", err) + } + if startEvent.Kind != events.KindStageStart || startEvent.Stage != "implement" || + startEvent.TaskID != execution.ID || startEvent.Attempt != execution.Attempt || + startEvent.Repo != "acme/widgets" || startEvent.ID == 0 { + t.Fatalf("stage_start event = %+v, want the transition's row", startEvent) + } + + eventsForTask, err := s.TaskEvents(t.Context(), execution.ID) + if err != nil { + t.Fatalf("TaskEvents: %v", err) + } + if n := len(eventsForTask); n != 1 { + t.Fatalf("events after StartStep = %d, want exactly the one the transition wrote", n) + } + + step, err := s.FinishStep(t.Context(), task.StepFinish{ + StepID: stepID, ExecutionID: execution.ID, + From: taskstate.StepRunning, To: taskstate.StepSucceeded, Detail: "implemented", + }) + if err != nil { + t.Fatalf("FinishStep: %v", err) + } + if step.Kind != events.KindStageFinish || step.Stage != "implement" || step.ID == 0 { + t.Fatalf("stage_finish event = %+v, want the transition's row", step) + } + if _, ok := step.Data["duration_ms"]; !ok { + t.Errorf("stage_finish data = %v, want duration_ms: the stage statistics read it", step.Data) + } + if _, has := step.Data["error"]; has { + t.Errorf("stage_finish data = %v, want no error key for a succeeded step", step.Data) + } +} + +func TestFinishStepFailedCarriesTheErrorTheDashboardRenders(t *testing.T) { + s := storeFor(t) + execution := runningExecution(t, s) + + stepID, _, err := s.StartStep(t.Context(), task.StepStart{ + ExecutionID: execution.ID, Attempt: execution.Attempt, Kind: task.StepKindStage, Name: "review", + }) + if err != nil { + t.Fatalf("StartStep: %v", err) + } + step, err := s.FinishStep(t.Context(), task.StepFinish{ + StepID: stepID, ExecutionID: execution.ID, + From: taskstate.StepRunning, To: taskstate.StepFailed, Detail: "review found 3 findings", + }) + if err != nil { + t.Fatalf("FinishStep: %v", err) + } + if step.Data["error"] != "review found 3 findings" { + t.Errorf("stage_finish data = %v, want the error text stageOutcome renders", step.Data) + } +} + +func TestStartStepRefusesWhatTheStateMachineForbids(t *testing.T) { + tests := []struct { + name string + seed func(s *Store, taskID int64) error + start task.StepStart + want error + }{ + { + name: "an execution that is not running", + start: task.StepStart{Kind: task.StepKindStage, Name: "plan", Attempt: 1}, + want: storecontract.ErrIllegalTransition, + }, + { + name: "an execution that does not exist", + start: task.StepStart{Kind: task.StepKindStage, Name: "plan", Attempt: 1}, + want: storecontract.ErrStaleTransition, + }, + { + name: "an attempt the execution no longer runs", + start: task.StepStart{Kind: task.StepKindStage, Name: "plan", Attempt: 99}, + want: storecontract.ErrStaleTransition, + }, + { + name: "an unknown step kind", + start: task.StepStart{Kind: "quantum", Name: "plan", Attempt: 1}, + want: storecontract.ErrInvalidStep, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + s := storeFor(t) + execution := runningExecution(t, s) + if tt.name == "an execution that is not running" { + // Back on the queue: nothing may run under it. The seed rides + // the legal running->queued edge, not a hand-written pair. + if err := s.Transition(t.Context(), execution.ID, taskstate.Running, taskstate.Queued, "requeue"); err != nil { + t.Fatalf("seed queued: %v", err) + } + } + start := tt.start + start.ExecutionID = execution.ID + if tt.name == "an execution that does not exist" { + start.ExecutionID = execution.ID + 999999 + } + if _, _, err := s.StartStep(t.Context(), start); !errors.Is(err, tt.want) { + t.Fatalf("StartStep = %v, want %v", err, tt.want) + } + }) + } +} + +func TestStartStepUnderATerminalParentIsIllegal(t *testing.T) { + s := storeFor(t) + execution := runningExecution(t, s) + + parentID, _, err := s.StartStep(t.Context(), task.StepStart{ + ExecutionID: execution.ID, Attempt: execution.Attempt, Kind: task.StepKindStage, Name: "review", + }) + if err != nil { + t.Fatalf("StartStep parent: %v", err) + } + if _, err := s.FinishStep(t.Context(), task.StepFinish{ + StepID: parentID, ExecutionID: execution.ID, + From: taskstate.StepRunning, To: taskstate.StepSucceeded, Detail: "done", + }); err != nil { + t.Fatalf("FinishStep parent: %v", err) + } + + _, _, err = s.StartStep(t.Context(), task.StepStart{ + ExecutionID: execution.ID, Attempt: execution.Attempt, + ParentID: parentID, Kind: task.StepKindAgent, Name: "review:2", + }) + if !errors.Is(err, storecontract.ErrIllegalTransition) { + t.Fatalf("StartStep under a terminal parent = %v, want ErrIllegalTransition", err) + } +} + +func TestStepDepthIsDerivedFromTheParent(t *testing.T) { + s := storeFor(t) + execution := runningExecution(t, s) + + parentID, _, err := s.StartStep(t.Context(), task.StepStart{ + ExecutionID: execution.ID, Attempt: execution.Attempt, Kind: task.StepKindStage, Name: "implement", + }) + if err != nil { + t.Fatalf("StartStep stage: %v", err) + } + childID, _, err := s.StartStep(t.Context(), task.StepStart{ + ExecutionID: execution.ID, Attempt: execution.Attempt, + ParentID: parentID, Kind: task.StepKindAgent, Name: "implement", + }) + if err != nil { + t.Fatalf("StartStep agent child: %v", err) + } + var depths map[int64]int + if err := s.pool.QueryRow(t.Context(), + `SELECT jsonb_object_agg(id, depth) FROM step_executions WHERE execution_id = $1`, + execution.ID).Scan(&depths); err != nil { + t.Fatalf("read depths: %v", err) + } + if depths[parentID] != 0 || depths[childID] != 1 { + t.Fatalf("depths = %v, want the stage at 0 and its child at 1", depths) + } +} + +func TestFinishStepRefusesStaleAndForeign(t *testing.T) { + s := storeFor(t) + execution := runningExecution(t, s) + other := runningExecution(t, s) + + stepID, _, err := s.StartStep(t.Context(), task.StepStart{ + ExecutionID: execution.ID, Attempt: execution.Attempt, Kind: task.StepKindStage, Name: "plan", + }) + if err != nil { + t.Fatalf("StartStep: %v", err) + } + + if _, err := s.FinishStep(t.Context(), task.StepFinish{ + StepID: stepID, ExecutionID: other.ID, + From: taskstate.StepRunning, To: taskstate.StepSucceeded, + }); !errors.Is(err, storecontract.ErrStaleTransition) { + t.Fatalf("FinishStep naming another execution = %v, want ErrStaleTransition", err) + } + if _, err := s.FinishStep(t.Context(), task.StepFinish{ + StepID: stepID, ExecutionID: execution.ID, + From: taskstate.StepSucceeded, To: taskstate.StepFailed, + }); !errors.Is(err, storecontract.ErrStaleTransition) { + t.Fatalf("FinishStep with an untruthful from = %v, want ErrStaleTransition", err) + } + if _, err := s.FinishStep(t.Context(), task.StepFinish{ + StepID: stepID, ExecutionID: execution.ID, + From: taskstate.StepRunning, To: taskstate.StepPending, + }); !errors.Is(err, storecontract.ErrIllegalTransition) { + t.Fatalf("FinishStep off-table pair = %v, want ErrIllegalTransition", err) + } + if _, err := s.FinishStep(t.Context(), task.StepFinish{ + StepID: stepID + 999999, ExecutionID: execution.ID, + From: taskstate.StepRunning, To: taskstate.StepSucceeded, + }); !errors.Is(err, storecontract.ErrStaleTransition) { + t.Fatalf("FinishStep on a missing step = %v, want ErrStaleTransition", err) + } +} + +// A late FinishStep for a step another path already finished is stale, the +// PRD's named wire behaviour: errors.Is matches on the client too. +func TestFinishStepOffTablePairIsIllegalOverTheTable(t *testing.T) { + if !taskstate.CanStepTransition(taskstate.StepPending, taskstate.StepRunning) { + t.Fatal("pending -> running must be in the step transition table") + } + if taskstate.CanStepTransition(taskstate.StepSucceeded, taskstate.StepRunning) { + t.Fatal("succeeded -> running must not be in the step transition table: terminal is terminal") + } +} diff --git a/internal/infrastructure/postgres/store.go b/internal/infrastructure/postgres/store.go index 1b5fbeaf3..b72e9e94b 100644 --- a/internal/infrastructure/postgres/store.go +++ b/internal/infrastructure/postgres/store.go @@ -124,6 +124,7 @@ func taskFromRow(t postgresdb.Task) *workflow.Task { // Compile-time checks: *Store satisfies every surface the SQLite store did. var ( _ storecontract.TaskStore = (*Store)(nil) + _ storecontract.StepRecorder = (*Store)(nil) _ storecontract.BindingTaskCreator = (*Store)(nil) _ storecontract.ConfigSnapshotStore = (*Store)(nil) _ storecontract.ChannelStatusStore = (*Store)(nil) diff --git a/internal/infrastructure/staterpc/client.go b/internal/infrastructure/staterpc/client.go index 2c7efc6e0..38c6b0ac6 100644 --- a/internal/infrastructure/staterpc/client.go +++ b/internal/infrastructure/staterpc/client.go @@ -107,6 +107,41 @@ func (c *Client) Transition(ctx context.Context, taskID int64, from, to, detail return unmapError(err) } +// StartStep and FinishStep record the run's step executions +// (docs/prds/execution-tree-state-machine.md) under the run credential, which +// the State Store's grant interceptor scopes to the execution the requests +// name. Each returns the transition's persisted event for the caller's +// post-commit publish. +func (c *Client) StartStep(ctx context.Context, s task.StepStart) (int64, events.Event, error) { + r, err := c.client.StartStep(ctx, &pb.StartStepRequest{ + ExecutionId: s.ExecutionID, Attempt: int64(s.Attempt), + ParentId: s.ParentID, Kind: s.Kind, Name: s.Name, + }) + if err != nil { + return 0, events.Event{}, unmapError(err) + } + event := events.Event{} + if r.Event != nil { + event = eventValue(r.Event) + } + return r.StepId, event, nil +} + +func (c *Client) FinishStep(ctx context.Context, s task.StepFinish) (events.Event, error) { + r, err := c.client.FinishStep(ctx, &pb.FinishStepRequest{ + ExecutionId: s.ExecutionID, StepId: s.StepID, + From: string(s.From), To: string(s.To), Detail: s.Detail, TokensUsed: s.TokensUsed, + }) + if err != nil { + return events.Event{}, unmapError(err) + } + event := events.Event{} + if r.Event != nil { + event = eventValue(r.Event) + } + return event, nil +} + func (c *Client) Update(ctx context.Context, t *task.Task) error { _, err := c.client.Update(ctx, &pb.UpdateRequest{Task: taskProto(t)}) return unmapError(err) diff --git a/internal/infrastructure/staterpc/conformance_test.go b/internal/infrastructure/staterpc/conformance_test.go index 938c9cbd4..5e0566e04 100644 --- a/internal/infrastructure/staterpc/conformance_test.go +++ b/internal/infrastructure/staterpc/conformance_test.go @@ -14,6 +14,7 @@ import ( "github.com/samcharles93/archie-core/internal/domain/binding" "github.com/samcharles93/archie-core/internal/domain/mapping" "github.com/samcharles93/archie-core/internal/domain/storecontract" + "github.com/samcharles93/archie-core/internal/domain/workflow" "github.com/samcharles93/archie-core/internal/events" "github.com/samcharles93/archie-core/internal/infrastructure/postgres" "github.com/samcharles93/archie-core/internal/infrastructure/postgres/pgstore" @@ -26,6 +27,7 @@ import ( // docs/prds/state-store-contract.md §11's conformance requirement. type contract interface { storecontract.TaskStore + storecontract.StepRecorder storecontract.BindingTaskCreator storecontract.ConfigSnapshotStore storecontract.ApplyStatusStore @@ -81,7 +83,7 @@ func remoteTaskStore(t *testing.T, local *pgstore.TaskDB, logs storecontract.Tas listener := bufconn.Listen(1 << 20) server := grpc.NewServer() deps := Deps{ - Tasks: local, BindingTaskCreator: local, WorkflowCalls: local, + Tasks: local, BindingTaskCreator: local, WorkflowCalls: local, Steps: local, ConfigSnapshots: local, ApplyStatus: local, TaskLogs: logs, } @@ -133,6 +135,37 @@ func TestStateStoreConformance(t *testing.T) { if err := c.Transition(ctx, task.ID, task.Status, "running", "started"); err != nil { t.Fatalf("Transition: %v", err) } + current, err := c.TaskByID(ctx, task.ID) + if err != nil || current == nil { + t.Fatalf("TaskByID: %+v %v", current, err) + } + // The step-execution writes (docs/prds/execution-tree-state-machine.md): + // both adapters record the same guarded pair, and each response + // carries the transition's own persisted event. + stepID, startEvent, err := c.StartStep(ctx, workflow.StepStart{ + ExecutionID: task.ID, Attempt: current.Attempt, Kind: workflow.StepKindStage, Name: "implement", + }) + if err != nil || stepID == 0 { + t.Fatalf("StartStep: %d %v", stepID, err) + } + if startEvent.Kind != "stage_start" || startEvent.TaskID != task.ID || startEvent.ID == 0 { + t.Fatalf("StartStep event = %+v, want the persisted stage_start row", startEvent) + } + finishEvent, err := c.FinishStep(ctx, workflow.StepFinish{ + StepID: stepID, ExecutionID: task.ID, + From: "running", To: "succeeded", Detail: "done", TokensUsed: 12, + }) + if err != nil { + t.Fatalf("FinishStep: %v", err) + } + if finishEvent.Kind != "stage_finish" || finishEvent.ID == 0 || finishEvent.Data["duration_ms"] == nil { + t.Fatalf("FinishStep event = %+v, want the persisted stage_finish row with a duration", finishEvent) + } + if _, err := c.FinishStep(ctx, workflow.StepFinish{ + StepID: stepID, ExecutionID: task.ID, From: "running", To: "succeeded", + }); !errors.Is(err, storecontract.ErrStaleTransition) { + t.Fatalf("replayed FinishStep = %v, want ErrStaleTransition over both adapters", err) + } task.Plan = "the plan" task.Status = "running" task.PRNumber = 401 @@ -256,24 +289,29 @@ func TestStateStoreConformance(t *testing.T) { t.Fatalf("OpenPRs: %v", err) } - // TaskEvents / EventsSince / stats. + // TaskEvents / EventsSince / stats. The two step events the + // battery's step half wrote come first (their transitions ran + // first), then the two the battery inserted directly. evs, err := c.TaskEvents(ctx, task.ID) - if err != nil || len(evs) != 2 || evs[0].Data["duration_ms"] != 12.0 { + if err != nil || len(evs) != 4 { t.Fatalf("TaskEvents: %+v %v", evs, err) } - if evs[0].Attempt != 2 { - t.Errorf("TaskEvents attempt = %d, want 2 (provenance must survive the wire)", evs[0].Attempt) + if evs[2].Data["duration_ms"] != 12.0 { + t.Fatalf("TaskEvents stage_finish = %+v, want the battery's own duration_ms", evs[2]) } - if evs[1].Kind != events.KindConfigCaptured || evs[1].Attempt != 2 || evs[1].Data["schema"] != events.ConfigCapturedSchema { - t.Errorf("config_captured event = %+v, want its kind, attempt and schema preserved", evs[1]) + if evs[2].Attempt != 2 { + t.Errorf("TaskEvents attempt = %d, want 2 (provenance must survive the wire)", evs[2].Attempt) } - if _, renamed := evs[1].Data["config"]; renamed { + if evs[3].Kind != events.KindConfigCaptured || evs[3].Attempt != 2 || evs[3].Data["schema"] != events.ConfigCapturedSchema { + t.Errorf("config_captured event = %+v, want its kind, attempt and schema preserved", evs[3]) + } + if _, renamed := evs[3].Data["config"]; renamed { t.Error(`the document crossed under "config"; the producer writes it under "document"`) } - if len(evs[1].Data) != 2 { + if len(evs[3].Data) != 2 { t.Errorf("config_captured data keys = %v, want exactly schema and document", evs[1].Data) } - doc, ok := evs[1].Data["document"].(map[string]any) + doc, ok := evs[3].Data["document"].(map[string]any) if !ok || doc["bot_user"] != "archie" { t.Errorf("config_captured payload = %#v, want the decoded document under its own key", evs[1].Data) } @@ -365,7 +403,7 @@ func TestStateStoreConformance(t *testing.T) { // Archive. RecoverStale above may have requeued task if it was // still running, so re-fetch its current status rather than // trusting the in-memory snapshot. - current, err := c.TaskByID(ctx, task.ID) + current, err = c.TaskByID(ctx, task.ID) if err != nil || current == nil { t.Fatalf("TaskByID before archive: %+v %v", current, err) } diff --git a/internal/infrastructure/staterpc/error_test.go b/internal/infrastructure/staterpc/error_test.go index a1b1d03b4..8351b9061 100644 --- a/internal/infrastructure/staterpc/error_test.go +++ b/internal/infrastructure/staterpc/error_test.go @@ -77,6 +77,7 @@ func TestUnmapErrorSentinelFidelity(t *testing.T) { }{ {name: "stale transition", store: storecontract.ErrStaleTransition, rehyd: storecontract.ErrStaleTransition}, {name: "illegal transition", store: storecontract.ErrIllegalTransition, rehyd: storecontract.ErrIllegalTransition}, + {name: "invalid step", store: storecontract.ErrInvalidStep, rehyd: storecontract.ErrInvalidStep}, {name: "binding not found", store: storecontract.ErrBindingNotFound, rehyd: storecontract.ErrBindingNotFound}, {name: "mapping not found", store: storecontract.ErrMappingNotFound, rehyd: storecontract.ErrMappingNotFound}, {name: "binding overlap", store: storecontract.ErrBindingOverlap, rehyd: storecontract.ErrBindingOverlap}, diff --git a/internal/infrastructure/staterpc/server.go b/internal/infrastructure/staterpc/server.go index 5b71e72be..3175f0184 100644 --- a/internal/infrastructure/staterpc/server.go +++ b/internal/infrastructure/staterpc/server.go @@ -26,6 +26,7 @@ import ( "github.com/samcharles93/archie-core/internal/domain/storepkg" "github.com/samcharles93/archie-core/internal/domain/workflow/task" "github.com/samcharles93/archie-core/internal/logging" + "github.com/samcharles93/archie-core/internal/taskstate" ) // Unavailable-capability errors, mirroring gatewayrpc's missing-session-store @@ -96,6 +97,11 @@ type Deps struct { // answers both RPCs with codes.Unavailable, which is the honest answer // for a store that owns no task table. WorkflowCalls storecontract.WorkflowCaller + // Steps is the step-execution write surface + // (docs/prds/execution-tree-state-machine.md): the guarded row writes the + // workflow engine's run credential calls. Optional: nil answers both RPCs + // with codes.Unavailable. + Steps storecontract.StepRecorder // PlaybookDispatcher is the side-effecting-action idempotency ledger // (docs/prds/eda-playbook-engine.md gap 2). Optional: nil disables the // two playbook dispatch RPCs with codes.Unavailable. @@ -189,6 +195,40 @@ func (s *server) Transition(ctx context.Context, r *pb.TransitionRequest) (*pb.T return &pb.TransitionResponse{}, nil } +// StartStep and FinishStep are the step-execution writes +// (docs/prds/execution-tree-state-machine.md). Each is the store's own +// transaction -- guarded row write plus the event row -- and the store's +// response carries the persisted event back for the caller's post-commit +// publish. +func (s *server) StartStep(ctx context.Context, r *pb.StartStepRequest) (*pb.StartStepResponse, error) { + if s.deps.Steps == nil { + return nil, status.Error(codes.Unavailable, "step recorder unavailable") + } + stepID, event, err := s.deps.Steps.StartStep(ctx, task.StepStart{ + ExecutionID: r.ExecutionId, Attempt: int(r.Attempt), + ParentID: r.ParentId, Kind: r.Kind, Name: r.Name, + }) + if err != nil { + return nil, s.logErr("StartStep", err) + } + return &pb.StartStepResponse{StepId: stepID, Event: eventProto(event)}, nil +} + +func (s *server) FinishStep(ctx context.Context, r *pb.FinishStepRequest) (*pb.FinishStepResponse, error) { + if s.deps.Steps == nil { + return nil, status.Error(codes.Unavailable, "step recorder unavailable") + } + event, err := s.deps.Steps.FinishStep(ctx, task.StepFinish{ + StepID: r.StepId, ExecutionID: r.ExecutionId, + From: taskstate.StepStatus(r.From), To: taskstate.StepStatus(r.To), + Detail: r.Detail, TokensUsed: r.TokensUsed, + }) + if err != nil { + return nil, s.logErr("FinishStep", err) + } + return &pb.FinishStepResponse{Event: eventProto(event)}, nil +} + func (s *server) Update(ctx context.Context, r *pb.UpdateRequest) (*pb.UpdateResponse, error) { if r.Task == nil { return nil, status.Error(codes.InvalidArgument, "task is required") diff --git a/internal/infrastructure/staterpc/task_grants.go b/internal/infrastructure/staterpc/task_grants.go index ccbb4ebc4..2fe7c4f18 100644 --- a/internal/infrastructure/staterpc/task_grants.go +++ b/internal/infrastructure/staterpc/task_grants.go @@ -95,32 +95,74 @@ func (g *TaskGrants) taskFor(token string) int64 { // (including RegisterTaskGrant/RevokeTaskGrant themselves) falls through to // false: a task grant can only ever narrow, never expand. // -// The two workflow.call RPCs are the one sanctioned widening -// (docs/prds/workflow-calls.md): a workflow.call step must start its callee -// and read it back, and the callee is the caller's child. Both requests -// carry the caller's own task ID, which the grant check verifies; the -// parent-child relation is a handler-side row check, so this interceptor -// never reads the database. +// The two workflow.call RPCs and the two step-execution writes are the +// sanctioned widenings: a workflow.call step must start its callee and read it +// back, the callee being the caller's child (docs/prds/workflow-calls.md), and +// the container records its stages and its own agent calls under the run +// credential of docs/prds/execution-tree-state-machine.md. The step requests +// carry the caller's own task ID, which the grant check verifies; the step's +// membership in that execution is a handler-side row check, so this +// interceptor never reads the database. func authorizesTaskScopedCall(fullMethod string, req any, taskID int64) bool { - switch fullMethod { - case pb.StateStoreService_Update_FullMethodName: + target := taskScopedTargets[fullMethod] + return target != nil && target(req) == taskID +} + +// taskScopedTargets maps each RPC a task grant may ever authorize to the +// function naming the task ID its request targets (0 for a request it cannot +// read). Held as data so the sanctioned widenings stop growing a switch: a +// new authorized RPC registers one row here, and the deny-by-default rule +// above covers everything else. +var taskScopedTargets = map[string]func(any) int64{ + pb.StateStoreService_Update_FullMethodName: func(req any) int64 { r, ok := req.(*pb.UpdateRequest) - return ok && r.Task != nil && r.Task.Id == taskID - case pb.StateStoreService_Transition_FullMethodName: + if !ok || r.Task == nil { + return 0 + } + return r.Task.Id + }, + pb.StateStoreService_Transition_FullMethodName: func(req any) int64 { r, ok := req.(*pb.TransitionRequest) - return ok && r.TaskId == taskID - case pb.StateStoreService_InsertEvent_FullMethodName: + if !ok { + return 0 + } + return r.TaskId + }, + pb.StateStoreService_InsertEvent_FullMethodName: func(req any) int64 { r, ok := req.(*pb.InsertEventRequest) - return ok && r.Event != nil && r.Event.TaskId == taskID - case pb.StateStoreService_EnqueueCallTask_FullMethodName: + if !ok || r.Event == nil { + return 0 + } + return r.Event.TaskId + }, + pb.StateStoreService_StartStep_FullMethodName: func(req any) int64 { + r, ok := req.(*pb.StartStepRequest) + if !ok { + return 0 + } + return r.ExecutionId + }, + pb.StateStoreService_FinishStep_FullMethodName: func(req any) int64 { + r, ok := req.(*pb.FinishStepRequest) + if !ok { + return 0 + } + return r.ExecutionId + }, + pb.StateStoreService_EnqueueCallTask_FullMethodName: func(req any) int64 { r, ok := req.(*pb.EnqueueCallTaskRequest) - return ok && r.CallerTaskId == taskID - case pb.StateStoreService_WorkflowCallStatus_FullMethodName: + if !ok { + return 0 + } + return r.CallerTaskId + }, + pb.StateStoreService_WorkflowCallStatus_FullMethodName: func(req any) int64 { r, ok := req.(*pb.WorkflowCallStatusRequest) - return ok && r.CallerTaskId == taskID - default: - return false - } + if !ok { + return 0 + } + return r.CallerTaskId + }, } // UnaryInterceptor separates administrator access from task-scoped worker diff --git a/internal/infrastructure/staterpc/task_grants_test.go b/internal/infrastructure/staterpc/task_grants_test.go index 3f37b5933..0139fde8c 100644 --- a/internal/infrastructure/staterpc/task_grants_test.go +++ b/internal/infrastructure/staterpc/task_grants_test.go @@ -17,8 +17,10 @@ import ( "github.com/samcharles93/archie-core/internal/domain/mapping" "github.com/samcharles93/archie-core/internal/domain/storecontract" "github.com/samcharles93/archie-core/internal/domain/workflow" + task "github.com/samcharles93/archie-core/internal/domain/workflow/task" "github.com/samcharles93/archie-core/internal/events" "github.com/samcharles93/archie-core/internal/infrastructure/postgres/pgstore" + "github.com/samcharles93/archie-core/internal/taskstate" ) // grantsServer wires TaskGrants' Unary/Stream interceptors -- the same @@ -41,7 +43,7 @@ func grantsServer(t *testing.T, adminToken string) (grants *TaskGrants, dial fun Tasks: local, ConfigSnapshots: local, ApplyStatus: local, Captures: eda, Mappings: eda, Bindings: eda, BindingDispatcher: eda, PlaybookDispatcher: eda, EventTypes: eda, - BindingTaskCreator: local, WorkflowCalls: local, + BindingTaskCreator: local, WorkflowCalls: local, Steps: local, Grants: grants, }) go func() { _ = server.Serve(listener) }() @@ -385,3 +387,73 @@ func TestOnlyAdminCanRegisterOrRevokeTaskGrants(t *testing.T) { t.Fatal("a task-scoped grant must not be able to revoke grants") } } + +// TestRunCredentialRecordsItsOwnSteps: the run credential of +// docs/prds/execution-tree-state-machine.md authorises StartStep and +// FinishStep on its own execution only -- the container records its stages +// and its own agent calls with it -- and never another execution's. +func TestRunCredentialRecordsItsOwnSteps(t *testing.T) { + const adminToken = "daemon-admin-token" + grants, dial := grantsServer(t, adminToken) + _ = grants + admin := dial(t, adminToken) + ctx := t.Context() + + own, err := admin.EnqueueChatTask(ctx, "acme", "widget", "a", "body", "implement", "") + if err != nil { + t.Fatal(err) + } + if _, err := admin.ClaimNext(ctx); err != nil { + t.Fatalf("ClaimNext: %v", err) + } + // The claim increments the attempt, so the run the grant names is read + // back after it, the way the container's own request does. + own, err = admin.TaskByID(ctx, own.ID) + if err != nil || own == nil { + t.Fatalf("TaskByID: %+v %v", own, err) + } + other, err := admin.EnqueueChatTask(ctx, "acme", "widget", "b", "body", "implement", "") + if err != nil { + t.Fatal(err) + } + + workerToken, err := admin.RegisterTaskGrant(ctx, own.ID, time.Hour) + if err != nil { + t.Fatalf("RegisterTaskGrant: %v", err) + } + worker := dial(t, workerToken) + + stepID, startEvent, err := worker.StartStep(ctx, task.StepStart{ + ExecutionID: own.ID, Attempt: own.Attempt, Kind: task.StepKindStage, Name: "implement", + }) + if err != nil { + t.Fatalf("task grant should authorize StartStep on its own execution: %v", err) + } + if startEvent.Kind != events.KindStageStart || startEvent.TaskID != own.ID { + t.Fatalf("start event = %+v, want the transition's stage_start row", startEvent) + } + finishEvent, err := worker.FinishStep(ctx, task.StepFinish{ + StepID: stepID, ExecutionID: own.ID, + From: taskstate.StepRunning, To: taskstate.StepSucceeded, + }) + if err != nil { + t.Fatalf("task grant should authorize FinishStep on its own execution: %v", err) + } + if finishEvent.Kind != events.KindStageFinish { + t.Fatalf("finish event = %+v, want the transition's stage_finish row", finishEvent) + } + + // The refusal is the interceptor's, not the store's: the codes tell the + // difference, so a store-level refusal could not mask a missing grant rule. + if _, _, err := worker.StartStep(ctx, task.StepStart{ + ExecutionID: other.ID, Attempt: other.Attempt, Kind: task.StepKindStage, Name: "plan", + }); status.Code(err) != codes.PermissionDenied { + t.Fatalf("StartStep on another execution = %v, want PermissionDenied from the grant check", err) + } + if _, err := worker.FinishStep(ctx, task.StepFinish{ + StepID: stepID, ExecutionID: other.ID, + From: taskstate.StepRunning, To: taskstate.StepSucceeded, + }); status.Code(err) != codes.PermissionDenied { + t.Fatalf("FinishStep naming another execution = %v, want PermissionDenied from the grant check", err) + } +} diff --git a/internal/infrastructure/staterpc/values.go b/internal/infrastructure/staterpc/values.go index dcffa1128..7f12b8179 100644 --- a/internal/infrastructure/staterpc/values.go +++ b/internal/infrastructure/staterpc/values.go @@ -334,6 +334,7 @@ func dayTokensValue(d *pb.DayTokens) storecontract.DayTokens { const ( msgStaleTransition = "stale transition" msgIllegalTransition = "illegal transition" + msgInvalidStep = "step execution invalid" msgBindingNotFound = "binding not found" msgMappingNotFound = "mapping not found" msgEventTypeNotFound = "event type not found" @@ -447,6 +448,7 @@ var wireErrors = []struct { }{ {storecontract.ErrStaleTransition, codes.FailedPrecondition, msgStaleTransition}, {storecontract.ErrIllegalTransition, codes.FailedPrecondition, msgIllegalTransition}, + {storecontract.ErrInvalidStep, codes.InvalidArgument, msgInvalidStep}, {storecontract.ErrBindingOverlap, codes.FailedPrecondition, msgBindingOverlap}, {storecontract.ErrBindingTransition, codes.FailedPrecondition, msgBindingTransition}, {storecontract.ErrSourceSigningStale, codes.FailedPrecondition, msgSourceSigning}, diff --git a/proto/state/v1/state.proto b/proto/state/v1/state.proto index 2db3d049d..c9c1307f9 100644 --- a/proto/state/v1/state.proto +++ b/proto/state/v1/state.proto @@ -40,6 +40,10 @@ service StateStoreService { rpc ClaimByIssue(ClaimByIssueRequest) returns (ClaimByIssueResponse); rpc Transition(TransitionRequest) returns (TransitionResponse); rpc Update(UpdateRequest) returns (UpdateResponse); + // Step executions (docs/prds/execution-tree-state-machine.md). The run + // credential authorises both on its own execution only. + rpc StartStep(StartStepRequest) returns (StartStepResponse); + rpc FinishStep(FinishStepRequest) returns (FinishStepResponse); rpc Requeue(RequeueRequest) returns (RequeueResponse); rpc ParkTask(ParkTaskRequest) returns (ParkTaskResponse); rpc RecoverStale(RecoverStaleRequest) returns (RecoverStaleResponse); @@ -518,6 +522,42 @@ message TransitionRequest { } message TransitionResponse {} +message StartStepRequest { + // execution_id is the WorkflowExecution (the tasks row) the step belongs + // to, and the task ID the run credential is scoped to. + int64 execution_id = 1; + int64 attempt = 2; + // parent_id is 0 when the step is a stage; otherwise it names the enclosing + // StepExecution, from which the store derives depth. + int64 parent_id = 3; + // kind is stage, agent or call. + string kind = 4; + string name = 5; +} +message StartStepResponse { + int64 step_id = 1; + // event is the transition's stage_start row, already persisted; the caller + // publishes it to its bus after the write commits (the daemon's event sink + // skips already-persisted rows by their assigned ID). + Event event = 2; +} + +message FinishStepRequest { + // execution_id names the run the step belongs to. The grant check verifies + // it against the credential, and the store verifies the step really is that + // execution's, so a caller cannot move another run's step by naming it. + int64 execution_id = 1; + int64 step_id = 2; + string from = 3; + string to = 4; + string detail = 5; + int64 tokens_used = 6; +} +message FinishStepResponse { + // event is the transition's stage_finish row, already persisted. + Event event = 1; +} + message UpdateRequest { Task task = 1; } message UpdateResponse {}