@the-open-engine/zeroshot 6.38.0 → 6.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/event-copy.js +8 -7
- package/cli/event-copy.ts +12 -0
- package/cli/index.js +7 -31
- package/cli/json-export.js +61 -64
- package/cli/json-export.ts +112 -0
- package/cli/message-formatter-utils.js +68 -56
- package/cli/message-formatter-utils.ts +121 -0
- package/cli/message-formatters-normal.js +124 -259
- package/cli/message-formatters-normal.ts +250 -0
- package/cli/message-formatters-watch.js +81 -84
- package/cli/message-formatters-watch.ts +189 -0
- package/lib/agent-cli-provider/adapters/codex.d.ts.map +1 -1
- package/lib/agent-cli-provider/adapters/codex.js +3 -1
- package/lib/agent-cli-provider/adapters/codex.js.map +1 -1
- package/lib/cluster/generated/protocol-schema.cjs +1 -1
- package/lib/cluster/generated/protocol-schema.mjs +1 -1
- package/lib/cluster/generated/protocol.d.cts +8 -0
- package/lib/cluster/generated/protocol.d.mts +8 -0
- package/lib/cluster/generated/protocol.d.ts +8 -0
- package/lib/clusters-registry.d.ts +23 -0
- package/lib/clusters-registry.js +17 -29
- package/lib/completion.d.ts +12 -0
- package/lib/completion.js +84 -94
- package/lib/compose-utils.d.ts +32 -0
- package/lib/compose-utils.js +57 -72
- package/lib/detached-startup.d.ts +83 -0
- package/lib/detached-startup.js +231 -302
- package/lib/docker-config.d.ts +43 -0
- package/lib/docker-config.js +150 -325
- package/lib/docker-env-auth.d.ts +17 -0
- package/lib/docker-env-auth.js +75 -0
- package/lib/git-remote-utils.d.ts +48 -0
- package/lib/git-remote-utils.js +147 -213
- package/lib/id-detector.d.ts +15 -0
- package/lib/id-detector.js +37 -41
- package/lib/path-check.d.ts +30 -0
- package/lib/path-check.js +42 -45
- package/lib/process-liveness.d.ts +16 -0
- package/lib/process-liveness.js +19 -12
- package/lib/provider-credential-path.d.ts +16 -0
- package/lib/provider-credential-path.js +31 -29
- package/lib/provider-defaults.d.ts +30 -0
- package/lib/provider-defaults.js +47 -42
- package/lib/provider-detection.d.ts +11 -0
- package/lib/provider-detection.js +91 -54
- package/lib/provider-names.d.ts +38 -0
- package/lib/provider-names.js +56 -64
- package/lib/repo-settings.d.ts +28 -0
- package/lib/repo-settings.js +83 -59
- package/lib/run-mode.d.ts +21 -0
- package/lib/run-mode.js +21 -20
- package/lib/run-plan.d.ts +28 -0
- package/lib/run-plan.js +17 -16
- package/lib/settings/claude-auth.d.ts +35 -0
- package/lib/settings/claude-auth.js +30 -47
- package/lib/settings-defaults.d.ts +20 -0
- package/lib/settings-defaults.js +149 -0
- package/lib/settings-error.d.ts +7 -0
- package/lib/settings-error.js +8 -0
- package/lib/settings-issue-providers.d.ts +10 -0
- package/lib/settings-issue-providers.js +12 -0
- package/lib/settings-models.d.ts +22 -0
- package/lib/settings-models.js +93 -0
- package/lib/settings-storage.d.ts +23 -0
- package/lib/settings-storage.js +205 -0
- package/lib/settings-validation.d.ts +7 -0
- package/lib/settings-validation.js +182 -0
- package/lib/settings.d.ts +29 -0
- package/lib/settings.js +41 -736
- package/lib/setup-apply-types.d.ts +66 -0
- package/lib/setup-apply-types.js +2 -0
- package/lib/setup-apply.d.ts +39 -0
- package/lib/setup-apply.js +267 -264
- package/lib/setup-journal.d.ts +41 -0
- package/lib/setup-journal.js +119 -76
- package/lib/setup-plan-types.d.ts +102 -0
- package/lib/setup-plan-types.js +2 -0
- package/lib/setup-plan.d.ts +30 -0
- package/lib/setup-plan.js +300 -324
- package/lib/setup-undo.d.ts +44 -0
- package/lib/setup-undo.js +61 -74
- package/lib/start-cluster-config.d.ts +26 -0
- package/lib/start-cluster-config.js +56 -0
- package/lib/start-cluster-environment.d.ts +40 -0
- package/lib/start-cluster-environment.js +134 -0
- package/lib/start-cluster-run-options.d.ts +53 -0
- package/lib/start-cluster-run-options.js +147 -0
- package/lib/start-cluster.d.ts +64 -0
- package/lib/start-cluster.js +98 -454
- package/lib/stream-json-parser.d.ts +17 -0
- package/lib/stream-json-parser.js +51 -52
- package/npm-shrinkwrap.json +2 -2
- package/package.json +12 -6
- package/scripts/postinstall.js +27 -0
- package/scripts/rust-distribution.js +23 -14
- package/src/agent/agent-command-proofs-context.js +35 -45
- package/src/agent/agent-command-proofs-context.ts +87 -0
- package/src/agent/agent-config-settings.js +19 -0
- package/src/agent/agent-config-settings.ts +41 -0
- package/src/agent/agent-config.js +122 -231
- package/src/agent/agent-config.ts +285 -0
- package/src/agent/agent-context-builder.js +38 -273
- package/src/agent/agent-context-builder.ts +51 -0
- package/src/agent/agent-context-environment-sections.js +105 -0
- package/src/agent/agent-context-environment-sections.ts +134 -0
- package/src/agent/agent-context-packs.js +165 -0
- package/src/agent/agent-context-packs.ts +296 -0
- package/src/agent/agent-context-prompt-sections.js +100 -0
- package/src/agent/agent-context-prompt-sections.ts +148 -0
- package/src/agent/agent-context-sections.js +25 -334
- package/src/agent/agent-context-sections.ts +36 -0
- package/src/agent/agent-context-sources.js +96 -149
- package/src/agent/agent-context-sources.ts +253 -0
- package/src/agent/agent-context-types.js +2 -0
- package/src/agent/agent-context-types.ts +132 -0
- package/src/agent/agent-context-validation-sections.js +73 -0
- package/src/agent/agent-context-validation-sections.ts +129 -0
- package/src/agent/agent-input-injector.js +99 -118
- package/src/agent/agent-input-injector.ts +195 -0
- package/src/agent/agent-liveness-poll.js +74 -78
- package/src/agent/agent-liveness-poll.ts +163 -0
- package/src/agent/agent-quality-gate-schema.js +77 -86
- package/src/agent/agent-quality-gate-schema.ts +135 -0
- package/src/agent/agent-quality-gates-context.js +44 -50
- package/src/agent/agent-quality-gates-context.ts +91 -0
- package/src/agent/agent-stuck-detector.js +171 -239
- package/src/agent/agent-stuck-detector.ts +288 -0
- package/src/agent/agent-trigger-evaluator.js +29 -46
- package/src/agent/agent-trigger-evaluator.ts +98 -0
- package/src/agent/context-metrics.js +110 -141
- package/src/agent/context-metrics.ts +261 -0
- package/src/agent/context-pack-builder.js +72 -358
- package/src/agent/context-pack-builder.ts +105 -0
- package/src/agent/context-pack-core.js +70 -0
- package/src/agent/context-pack-core.ts +96 -0
- package/src/agent/context-pack-selection.js +119 -0
- package/src/agent/context-pack-selection.ts +187 -0
- package/src/agent/context-pack-truncation.js +139 -0
- package/src/agent/context-pack-truncation.ts +208 -0
- package/src/agent/context-pack-types.js +2 -0
- package/src/agent/context-pack-types.ts +98 -0
- package/src/agent/context-replay-policy.js +30 -39
- package/src/agent/context-replay-policy.ts +71 -0
- package/src/agent/critical-agent-policy.js +6 -10
- package/src/agent/critical-agent-policy.ts +20 -0
- package/src/agent/guidance-queue.js +74 -87
- package/src/agent/guidance-queue.ts +166 -0
- package/src/agent/output-extraction-error-detail.js +45 -0
- package/src/agent/output-extraction-error-detail.ts +49 -0
- package/src/agent/output-extraction-failures.js +125 -0
- package/src/agent/output-extraction-failures.ts +149 -0
- package/src/agent/output-extraction-json.js +234 -0
- package/src/agent/output-extraction-json.ts +235 -0
- package/src/agent/output-extraction-pi.js +124 -0
- package/src/agent/output-extraction-pi.ts +137 -0
- package/src/agent/output-extraction-types.js +2 -0
- package/src/agent/output-extraction-types.ts +49 -0
- package/src/agent/output-extraction.js +17 -617
- package/src/agent/output-extraction.ts +30 -0
- package/src/agent/output-reformatter-errors.js +83 -0
- package/src/agent/output-reformatter-errors.ts +106 -0
- package/src/agent/output-reformatter-types.js +2 -0
- package/src/agent/output-reformatter-types.ts +86 -0
- package/src/agent/output-reformatter.js +140 -185
- package/src/agent/output-reformatter.ts +238 -0
- package/src/agent/pi-terminal-lifecycle-types.js +2 -0
- package/src/agent/pi-terminal-lifecycle-types.ts +41 -0
- package/src/agent/pi-terminal-lifecycle.js +186 -206
- package/src/agent/pi-terminal-lifecycle.ts +297 -0
- package/src/agent/provider-control-plane.js +22 -21
- package/src/agent/provider-control-plane.ts +52 -0
- package/src/agent/provider-terminal-failure-types.js +2 -0
- package/src/agent/provider-terminal-failure-types.ts +60 -0
- package/src/agent/provider-terminal-failure.js +194 -191
- package/src/agent/provider-terminal-failure.ts +262 -0
- package/src/agent/rate-limit-backoff.js +31 -74
- package/src/agent/rate-limit-backoff.ts +71 -0
- package/src/agent/schema-utils.js +85 -125
- package/src/agent/schema-utils.ts +148 -0
- package/src/agent/structured-output-error.js +34 -33
- package/src/agent/structured-output-error.ts +105 -0
- package/src/agent/validation-platform.js +27 -27
- package/src/agent/validation-platform.ts +49 -0
- package/src/agent-cli-provider/adapters/codex.ts +3 -1
- package/src/attach/attach-client.js +232 -405
- package/src/attach/attach-client.ts +300 -0
- package/src/attach/attach-server-cleanup.js +43 -0
- package/src/attach/attach-server-cleanup.ts +39 -0
- package/src/attach/attach-server-clients.js +117 -0
- package/src/attach/attach-server-clients.ts +122 -0
- package/src/attach/attach-server-events.js +38 -0
- package/src/attach/attach-server-events.ts +36 -0
- package/src/attach/attach-server-pty.js +45 -0
- package/src/attach/attach-server-pty.ts +64 -0
- package/src/attach/attach-server-runtime.js +73 -0
- package/src/attach/attach-server-runtime.ts +62 -0
- package/src/attach/attach-server-socket.js +28 -0
- package/src/attach/attach-server-socket.ts +23 -0
- package/src/attach/attach-server-types.js +2 -0
- package/src/attach/attach-server-types.ts +82 -0
- package/src/attach/attach-server.js +106 -523
- package/src/attach/attach-server.ts +158 -0
- package/src/attach/index.js +18 -35
- package/src/attach/index.ts +18 -0
- package/src/attach/protocol.js +95 -184
- package/src/attach/protocol.ts +181 -0
- package/src/attach/ring-buffer.js +76 -102
- package/src/attach/ring-buffer.ts +109 -0
- package/src/attach/send-input.js +64 -75
- package/src/attach/send-input.ts +94 -0
- package/src/attach/socket-discovery.js +164 -218
- package/src/attach/socket-discovery.ts +230 -0
- package/src/attach/socket-paths.js +42 -61
- package/src/attach/socket-paths.ts +81 -0
- package/src/claude-credentials.js +51 -54
- package/src/claude-credentials.ts +89 -0
- package/src/cluster/generated/protocol-schema.ts +1 -1
- package/src/cluster/generated/protocol.ts +2 -1
- package/src/command-proofs.js +110 -141
- package/src/command-proofs.ts +216 -0
- package/src/config-router.js +81 -73
- package/src/config-router.ts +131 -0
- package/src/copy-worker.js +53 -29
- package/src/copy-worker.ts +75 -0
- package/src/darwin-keychain-boundary.js +80 -111
- package/src/darwin-keychain-boundary.ts +148 -0
- package/src/guidance-topics.js +4 -5
- package/src/guidance-topics.ts +10 -0
- package/src/input-helpers.js +33 -54
- package/src/input-helpers.ts +58 -0
- package/src/ledger-sequence.js +45 -48
- package/src/ledger-sequence.ts +63 -0
- package/src/legacy-lib/clusters-registry.ts +40 -0
- package/src/legacy-lib/completion.ts +148 -0
- package/src/legacy-lib/compose-utils.ts +102 -0
- package/src/legacy-lib/detached-startup.ts +449 -0
- package/src/legacy-lib/docker-config.ts +282 -0
- package/src/legacy-lib/docker-env-auth.ts +116 -0
- package/src/legacy-lib/git-remote-utils.ts +244 -0
- package/src/legacy-lib/id-detector.ts +57 -0
- package/src/legacy-lib/js-yaml.d.ts +3 -0
- package/src/legacy-lib/omelette.d.ts +15 -0
- package/src/legacy-lib/path-check.ts +89 -0
- package/src/legacy-lib/process-liveness.ts +36 -0
- package/src/legacy-lib/provider-credential-path.ts +57 -0
- package/src/legacy-lib/provider-defaults.ts +114 -0
- package/src/legacy-lib/provider-detection.ts +67 -0
- package/src/legacy-lib/provider-names.ts +126 -0
- package/src/legacy-lib/repo-settings.ts +88 -0
- package/src/legacy-lib/run-mode.ts +58 -0
- package/src/legacy-lib/run-plan.ts +49 -0
- package/src/legacy-lib/settings/claude-auth.ts +80 -0
- package/src/legacy-lib/settings-defaults.ts +212 -0
- package/src/legacy-lib/settings-error.ts +8 -0
- package/src/legacy-lib/settings-issue-providers.ts +18 -0
- package/src/legacy-lib/settings-models.ts +124 -0
- package/src/legacy-lib/settings-storage.ts +277 -0
- package/src/legacy-lib/settings-validation.ts +220 -0
- package/src/legacy-lib/settings.ts +87 -0
- package/src/legacy-lib/setup-apply-types.ts +70 -0
- package/src/legacy-lib/setup-apply.ts +456 -0
- package/src/legacy-lib/setup-journal.ts +185 -0
- package/src/legacy-lib/setup-plan-types.ts +96 -0
- package/src/legacy-lib/setup-plan.ts +500 -0
- package/src/legacy-lib/setup-undo.ts +142 -0
- package/src/legacy-lib/start-cluster-config.ts +124 -0
- package/src/legacy-lib/start-cluster-environment.ts +165 -0
- package/src/legacy-lib/start-cluster-run-options.ts +279 -0
- package/src/legacy-lib/start-cluster.ts +237 -0
- package/src/legacy-lib/stream-json-parser.ts +88 -0
- package/src/message-buffer.js +55 -71
- package/src/message-buffer.ts +107 -0
- package/src/message-bus-bridge.js +92 -133
- package/src/message-bus-bridge.ts +149 -0
- package/src/name-generator-shared.js +220 -0
- package/src/name-generator-shared.ts +231 -0
- package/src/name-generator.js +8 -217
- package/src/name-generator.ts +27 -0
- package/src/omp-blob-root.js +83 -64
- package/src/omp-blob-root.ts +116 -0
- package/src/omp-config-overlay.js +65 -38
- package/src/omp-config-overlay.ts +110 -0
- package/src/omp-execution-fingerprint.js +38 -43
- package/src/omp-execution-fingerprint.ts +92 -0
- package/src/omp-session-limits.js +10 -15
- package/src/omp-session-limits.ts +53 -0
- package/src/omp-session-partition.js +2 -2
- package/src/omp-session-verifier.js +1 -1
- package/src/orchestrator.js +19 -4
- package/src/providers/anthropic/index.js +3 -1
- package/src/providers/anthropic/index.ts +13 -0
- package/src/providers/capabilities.js +19 -27
- package/src/providers/capabilities.ts +44 -0
- package/src/providers/google/index.js +3 -1
- package/src/providers/google/index.ts +13 -0
- package/src/providers/openai/index.js +3 -1
- package/src/providers/openai/index.ts +13 -0
- package/src/providers/opencode/index.js +3 -1
- package/src/providers/opencode/index.ts +13 -0
- package/src/quality-gates.js +67 -127
- package/src/quality-gates.ts +149 -0
- package/src/repo-settings-access.js +40 -0
- package/src/repo-settings-access.ts +64 -0
- package/src/schemas/sub-cluster.js +127 -183
- package/src/schemas/sub-cluster.ts +238 -0
- package/src/state-snapshot-normalization.js +224 -0
- package/src/state-snapshot-normalization.ts +222 -0
- package/src/state-snapshot.js +192 -359
- package/src/state-snapshot.ts +291 -0
- package/src/state-snapshotter.js +118 -130
- package/src/state-snapshotter.ts +167 -0
- package/src/sub-cluster-wrapper.js +4 -13
- package/src/task-run-model-args.js +87 -124
- package/src/task-run-model-args.ts +204 -0
- package/src/task-runner.js +5 -25
- package/src/task-runner.ts +28 -0
- package/src/task-startup-error.js +73 -58
- package/src/task-startup-error.ts +126 -0
- package/src/template-validation/consensus-gate-contracts.js +2 -0
- package/src/template-validation/consensus-gate-contracts.ts +70 -0
- package/src/template-validation/consensus-gate-scenarios.js +76 -0
- package/src/template-validation/consensus-gate-scenarios.ts +130 -0
- package/src/template-validation/consensus-gate-stage.js +34 -0
- package/src/template-validation/consensus-gate-stage.ts +56 -0
- package/src/template-validation/random-topology-contracts.js +2 -0
- package/src/template-validation/random-topology-contracts.ts +54 -0
- package/src/template-validation/random-topology-dispatch.js +25 -0
- package/src/template-validation/random-topology-dispatch.ts +33 -0
- package/src/template-validation/random-topology-message-loop.js +53 -0
- package/src/template-validation/random-topology-message-loop.ts +73 -0
- package/src/template-validation/random-topology-operations.js +79 -0
- package/src/template-validation/random-topology-operations.ts +101 -0
- package/src/template-validation/random-topology-runtime.js +25 -0
- package/src/template-validation/random-topology-runtime.ts +43 -0
- package/src/template-validation/random-topology-scenario.js +52 -0
- package/src/template-validation/random-topology-scenario.ts +57 -0
- package/src/template-validation/random-topology-schema.js +159 -0
- package/src/template-validation/random-topology-schema.ts +190 -0
- package/src/template-validation/random-topology-state.js +28 -0
- package/src/template-validation/random-topology-state.ts +30 -0
- package/src/template-validation/random-topology-trigger-evaluation.js +45 -0
- package/src/template-validation/random-topology-trigger-evaluation.ts +65 -0
- package/src/template-validation/random-topology-trigger.js +75 -0
- package/src/template-validation/random-topology-trigger.ts +88 -0
- package/src/template-validation/report-formatter.js +40 -46
- package/src/template-validation/report-formatter.ts +101 -0
- package/src/template-validation/simulate-consensus-gates.js +111 -302
- package/src/template-validation/simulate-consensus-gates.ts +196 -0
- package/src/template-validation/simulate-random-topology.js +26 -519
- package/src/template-validation/simulate-random-topology.ts +57 -0
- package/src/template-validation/simulate-two-stage-validation.js +41 -265
- package/src/template-validation/simulate-two-stage-validation.ts +55 -0
- package/src/template-validation/simulation-agent-runtime.js +25 -0
- package/src/template-validation/simulation-agent-runtime.ts +40 -0
- package/src/template-validation/simulation-agent.js +29 -0
- package/src/template-validation/simulation-agent.ts +73 -0
- package/src/template-validation/simulation-runtime.js +34 -0
- package/src/template-validation/simulation-runtime.ts +72 -0
- package/src/template-validation/two-stage-contracts.js +2 -0
- package/src/template-validation/two-stage-contracts.ts +41 -0
- package/src/template-validation/two-stage-inputs.js +21 -0
- package/src/template-validation/two-stage-inputs.ts +29 -0
- package/src/template-validation/two-stage-results.js +30 -0
- package/src/template-validation/two-stage-results.ts +40 -0
- package/src/template-validation/two-stage-scenario.js +86 -0
- package/src/template-validation/two-stage-scenario.ts +120 -0
- package/src/worktree-claude-config.js +182 -220
- package/src/worktree-claude-config.ts +272 -0
- package/src/worktree-tooling-env.js +103 -125
- package/src/worktree-tooling-env.ts +142 -0
- package/task-lib/completion.js +2 -3
- package/task-lib/completion.ts +9 -0
- package/task-lib/config.js +1 -4
- package/task-lib/config.ts +11 -0
- package/task-lib/name-generator.js +4 -226
- package/task-lib/name-generator.ts +11 -0
- package/task-lib/omp-session-cleanup.js +1 -1
- package/task-lib/omp-storage-root.js +8 -12
- package/task-lib/omp-storage-root.ts +62 -0
- package/task-lib/process-termination.js +143 -166
- package/task-lib/process-termination.ts +268 -0
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CLUSTER_PROTOCOL_SCHEMA = void 0;
|
|
4
4
|
// Generated from protocol/openengine-cluster/v1/schema.json. Do not edit.
|
|
5
|
-
exports.CLUSTER_PROTOCOL_SCHEMA = { "$defs": { "AdmissionTransition": { "additionalProperties": false, "properties": { "runId": { "type": "string" }, "seedInput": true, "spec": { "$ref": "#/$defs/GraphSpec" } }, "required": ["runId", "spec", "seedInput"], "type": "object" }, "AgentAttachClosedNotification": { "additionalProperties": false, "description": "Wire body of the terminal `subscription/closed` server notification for an `agent/attach`\nsubscription. Deliberately carries no cursor field -- `agent/attach` gives a type-level\n\"cursorless\" guarantee, unlike [`crate::SubscriptionClosedNotification`].", "properties": { "reason": { "$ref": "#/$defs/SubscriptionCloseReason" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "reason"], "type": "object" }, "AgentAttachEvent": { "description": "The closed public agent-attach progress algebra. This is the only representable shape:\nreasoning, tools, provider frames, usage, and session identifiers have no variant. `Working`\nand `Settled` are empty struct variants rather than bare units: serde's internally tagged enum\ndeserialization silently ignores unknown fields on a unit variant regardless of\n`deny_unknown_fields`, which would otherwise let an unrepresentable field ride along\nundetected on either of these two variants.", "oneOf": [{ "additionalProperties": false, "properties": { "type": { "const": "working", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "properties": { "text": { "maxLength": 16384, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]*$", "type": "string" }, "type": { "const": "output", "type": "string" } }, "required": ["type", "text"], "type": "object" }, { "additionalProperties": false, "properties": { "type": { "const": "settled", "type": "string" } }, "required": ["type"], "type": "object" }] }, "AgentAttachEventNotification": { "$ref": "#/$defs/AgentAttachEventNotificationWire" }, "AgentAttachEventNotificationWire": { "additionalProperties": false, "properties": { "event": { "$ref": "#/$defs/AgentAttachEvent" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "event"], "type": "object" }, "AgentAttachParams": { "additionalProperties": false, "description": "`agent/attach` establishment parameters: the named `{execution}` request. Deliberately closed,\nrejecting any unknown field.", "properties": { "execution": { "maxLength": 128, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" } }, "required": ["execution"], "type": "object" }, "AgentAttachResult": { "additionalProperties": false, "description": "The `agent/attach` establishment result: only a `subscriptionId`. Deliberately carries no\n`runId` or `atCursor` -- `agent/attach` is not run-scoped and has no cursor.", "properties": { "subscriptionId": { "type": "string" } }, "required": ["subscriptionId"], "type": "object" }, "ApplyParams": { "additionalProperties": false, "properties": { "dryRun": { "default": false, "type": "boolean" }, "graph": { "$ref": "#/$defs/GraphSpec" }, "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "input": true }, "required": ["graph"], "type": "object" }, "ApplyResult": { "additionalProperties": false, "properties": { "deduped": { "type": "boolean" }, "diff": { "anyOf": [{ "$ref": "#/$defs/GraphDiff" }, { "type": "null" }] }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] }, "phase": { "$ref": "#/$defs/Phase" }, "runId": { "type": ["string", "null"] } }, "required": ["phase", "deduped"], "type": "object" }, "ArtifactLineage": { "additionalProperties": false, "properties": { "attempt": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "runId": { "type": "string" } }, "required": ["generation", "runId", "attempt"], "type": "object" }, "ArtifactProducer": { "additionalProperties": false, "properties": { "node": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "worker": { "maxLength": 256, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*@[1-9][0-9]*$", "type": "string" } }, "required": ["node", "worker"], "type": "object" }, "ArtifactRef": { "additionalProperties": false, "properties": { "artifactId": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "byteLength": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "lineage": { "$ref": "#/$defs/ArtifactLineage" }, "mediaType": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "producer": { "$ref": "#/$defs/ArtifactProducer" }, "redaction": { "$ref": "#/$defs/RedactionClass" }, "sha256": { "pattern": "^[0-9a-f]{64}$", "type": "string" }, "typeId": { "maxLength": 256, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*@[1-9][0-9]*$", "type": "string" } }, "required": ["artifactId", "sha256", "byteLength", "mediaType", "typeId", "producer", "lineage", "redaction"], "type": "object" }, "BackendFault": { "$ref": "#/$defs/BackendFaultWire" }, "BackendFaultWire": { "additionalProperties": false, "properties": { "action": { "$ref": "#/$defs/FaultAction" }, "code": { "$ref": "#/$defs/FaultCode" }, "consequence": { "$ref": "#/$defs/FaultConsequence" }, "eventId": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "executionRef": { "default": null, "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": ["string", "null"] }, "retry": { "$ref": "#/$defs/FaultRetryDisposition" }, "severity": { "$ref": "#/$defs/FaultSeverity" }, "source": { "items": { "$ref": "#/$defs/FaultSourceFrame" }, "maxItems": 8, "type": "array" }, "summary": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" } }, "required": ["eventId", "code", "consequence", "retry", "action", "severity", "summary", "source"], "type": "object" }, "CancelRequestParams": { "additionalProperties": false, "description": "Wire body of the `$/cancelRequest` client notification: best-effort cancellation of an\nin-flight unary request by its `RequestId`. Unknown or already-completed ids are a silent\nno-op; cancelling after the backend has committed leaves that committed state unchanged and\nemits no response or compensation.", "properties": { "id": { "$ref": "#/$defs/RequestId" } }, "required": ["id"], "type": "object" }, "ChoiceBranch": { "additionalProperties": false, "properties": { "node": { "$ref": "#/$defs/GraphNode" }, "when": { "$ref": "#/$defs/Guard" } }, "required": ["when", "node"], "type": "object" }, "ClusterStatus": { "properties": { "atCursor": { "type": ["string", "null"] }, "currentRunId": { "type": ["string", "null"] }, "observedGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] }, "operational": { "anyOf": [{ "$ref": "#/$defs/OperationalStatus" }, { "type": "null" }] }, "phase": { "$ref": "#/$defs/Phase" } }, "required": ["phase"], "type": "object" }, "ControlSelector": { "additionalProperties": false, "properties": { "field": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": ["string", "null"] }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "source": { "$ref": "#/$defs/ControlSource" } }, "required": ["name", "source"], "type": "object" }, "ControlSource": { "enum": ["signal", "error", "group"], "type": "string" }, "DataSelector": { "oneOf": [{ "additionalProperties": false, "properties": { "path": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "source": { "const": "state", "type": "string" } }, "required": ["source", "path"], "type": "object" }, { "additionalProperties": false, "properties": { "path": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "source": { "const": "item", "type": "string" } }, "required": ["source", "path"], "type": "object" }] }, "DeleteParams": { "additionalProperties": false, "properties": { "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "ifRunId": { "type": ["string", "null"] } }, "required": ["ifGeneration", "idempotencyKey"], "type": "object" }, "DeleteResult": { "additionalProperties": false, "properties": { "atCursor": { "type": ["string", "null"] }, "deduped": { "type": "boolean" }, "deleted": { "type": "boolean" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] }, "phase": { "$ref": "#/$defs/Phase" }, "runId": { "type": ["string", "null"] } }, "required": ["deleted", "phase", "deduped"], "type": "object" }, "DiagnosticPathSegment": { "oneOf": [{ "additionalProperties": false, "properties": { "kind": { "const": "field", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" } }, "required": ["kind", "name"], "type": "object" }, { "additionalProperties": false, "properties": { "index": { "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "kind": { "const": "index", "type": "string" } }, "required": ["kind", "index"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "node", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" } }, "required": ["kind", "name"], "type": "object" }] }, "DiagnosticSeverity": { "enum": ["error", "warning", "info"], "type": "string" }, "DispatchState": { "enum": ["active", "suspended", "draining", "force_stopping", "stopped"], "type": "string" }, "DomainErrorData": { "properties": { "code": { "type": "string" }, "details": true }, "required": ["code"], "type": "object" }, "EventNotification": { "additionalProperties": false, "description": "Wire body of the generic `event` server notification.", "properties": { "cursor": { "type": "string" }, "event": { "$ref": "#/$defs/WatchEvent" }, "runId": { "type": "string" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "runId", "cursor", "event"], "type": "object" }, "FaultAction": { "description": "Descriptive only, like [`FaultRetryDisposition`]: naming `Retry` never itself retries or\nauthorizes a retry.", "enum": ["none", "retry", "wait", "escalate", "abort"], "type": "string" }, "FaultCode": { "enum": ["unavailable", "resource_exhausted", "deadline_exceeded", "permission_denied", "failed_precondition", "not_found", "aborted", "internal", "unknown"], "type": "string" }, "FaultConsequence": { "enum": ["turn_failed", "run_failed", "run_degraded", "no_observable_effect"], "type": "string" }, "FaultRetryDisposition": { "description": "Descriptive only: no `BackendFault` and no `fault` event ever performs or authorizes a retry.\nEvent ordering and emission never themselves change terminal semantics.", "enum": ["retryable", "retryable_after_backoff", "not_retryable", "indeterminate"], "type": "string" }, "FaultSeverity": { "enum": ["info", "warning", "error", "critical"], "type": "string" }, "FaultSourceFrame": { "additionalProperties": false, "properties": { "component": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" } }, "required": ["component"], "type": "object" }, "GetParams": { "additionalProperties": false, "properties": { "atCursor": { "default": null, "type": ["string", "null"] } }, "type": "object" }, "GetResult": { "properties": { "atCursor": { "type": ["string", "null"] }, "spec": { "anyOf": [{ "$ref": "#/$defs/GraphSpec" }, { "type": "null" }] }, "status": { "$ref": "#/$defs/ClusterStatus" } }, "required": ["status"], "type": "object" }, "GraphDiagnostic": { "additionalProperties": false, "properties": { "code": { "$ref": "#/$defs/GraphDiagnosticCode" }, "message": { "type": "string" }, "path": { "items": { "$ref": "#/$defs/DiagnosticPathSegment" }, "type": "array" }, "relatedNodes": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "array" }, "severity": { "$ref": "#/$defs/DiagnosticSeverity" } }, "required": ["severity", "code", "message", "path", "relatedNodes"], "type": "object" }, "GraphDiagnosticCode": { "enum": ["schema_safety", "reachability", "choice_exhaustiveness", "loop_exit_satisfiability", "missing_bound", "write_conflict", "ceiling_exceeded", "cyclic_reference", "undefined_read", "invalid_graph_shape"], "type": "string" }, "GraphDiff": { "additionalProperties": false, "properties": { "added": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "array" }, "changed": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "array" }, "removed": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "array" } }, "required": ["added", "removed", "changed"], "type": "object" }, "GraphNode": { "oneOf": [{ "additionalProperties": false, "properties": { "attempts": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "input": { "$ref": "#/$defs/PayloadType" }, "inputBindings": { "items": { "$ref": "#/$defs/InputBinding" }, "type": "array" }, "kind": { "const": "step", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "output": { "$ref": "#/$defs/PayloadType" }, "timeoutMs": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "worker": { "maxLength": 256, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*@[1-9][0-9]*$", "type": "string" }, "writeBindings": { "items": { "$ref": "#/$defs/WriteBinding" }, "type": "array" } }, "required": ["kind", "name", "worker", "input", "output", "inputBindings", "writeBindings", "timeoutMs", "attempts"], "type": "object" }, { "additionalProperties": false, "properties": { "attempts": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "diagnostic": { "$ref": "#/$defs/PayloadType" }, "input": { "$ref": "#/$defs/PayloadType" }, "inputBindings": { "items": { "$ref": "#/$defs/InputBinding" }, "type": "array" }, "kind": { "const": "verifier", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "output": { "$ref": "#/$defs/PayloadType" }, "signals": { "additionalProperties": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array", "uniqueItems": true }, "propertyNames": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "object" }, "timeoutMs": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "worker": { "maxLength": 256, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*@[1-9][0-9]*$", "type": "string" }, "writeBindings": { "items": { "$ref": "#/$defs/WriteBinding" }, "type": "array" } }, "required": ["kind", "name", "worker", "input", "output", "inputBindings", "writeBindings", "timeoutMs", "attempts", "signals", "diagnostic"], "type": "object" }, { "additionalProperties": false, "properties": { "children": { "$ref": "#/$defs/NonEmptyVec_of_GraphNode" }, "kind": { "const": "seq", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "promotedStatePaths": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "type": "array" }, "state": { "$ref": "#/$defs/PayloadType" } }, "required": ["kind", "name", "state", "children", "promotedStatePaths"], "type": "object" }, { "additionalProperties": false, "properties": { "branches": { "$ref": "#/$defs/NonEmptyVec_of_ChoiceBranch" }, "kind": { "const": "choice", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "otherwise": { "anyOf": [{ "$ref": "#/$defs/GraphNode" }, { "type": "null" }] }, "promotedStatePaths": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "type": "array" }, "state": { "$ref": "#/$defs/PayloadType" } }, "required": ["kind", "name", "state", "branches", "promotedStatePaths"], "type": "object" }, { "additionalProperties": false, "properties": { "branches": { "$ref": "#/$defs/NonEmptyVec_of_GraphNode" }, "join": { "$ref": "#/$defs/Join" }, "kind": { "const": "par", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "promotedStatePaths": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "type": "array" }, "state": { "$ref": "#/$defs/PayloadType" } }, "required": ["kind", "name", "state", "branches", "promotedStatePaths", "join"], "type": "object" }, { "additionalProperties": false, "properties": { "body": { "$ref": "#/$defs/GraphNode" }, "kind": { "const": "loop", "type": "string" }, "maxIterations": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "promotedStatePaths": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "type": "array" }, "state": { "$ref": "#/$defs/PayloadType" }, "until": { "$ref": "#/$defs/Guard" } }, "required": ["kind", "name", "state", "body", "until", "maxIterations", "promotedStatePaths"], "type": "object" }, { "additionalProperties": false, "properties": { "body": { "$ref": "#/$defs/GraphNode" }, "kind": { "const": "map", "type": "string" }, "maxItems": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "over": { "$ref": "#/$defs/DataSelector" }, "promotedStatePaths": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "type": "array" }, "state": { "$ref": "#/$defs/PayloadType" } }, "required": ["kind", "name", "state", "body", "over", "maxItems", "promotedStatePaths"], "type": "object" }, { "additionalProperties": false, "properties": { "bindings": { "items": { "$ref": "#/$defs/InputBinding" }, "type": "array" }, "kind": { "const": "succeed", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "output": { "$ref": "#/$defs/PayloadType" } }, "required": ["kind", "name", "output", "bindings"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "fail", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "reason": { "maxLength": 128, "minLength": 1, "pattern": "^(?!unhandled$)[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" } }, "required": ["kind", "name", "reason"], "type": "object" }] }, "GraphProfile": { "enum": ["openengine.graph.full/v1", "openengine.graph.single-worker/v1"], "type": "string" }, "GraphSpec": { "additionalProperties": false, "properties": { "initialInput": { "$ref": "#/$defs/PayloadType" }, "policy": { "$ref": "#/$defs/PolicyBinding" }, "profile": { "$ref": "#/$defs/GraphProfile" }, "root": { "$ref": "#/$defs/GraphNode" } }, "required": ["profile", "initialInput", "policy", "root"], "type": "object" }, "Guard": { "oneOf": [{ "additionalProperties": false, "properties": { "kind": { "const": "in", "type": "string" }, "labels": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array", "uniqueItems": true }, "value": { "$ref": "#/$defs/ControlSelector" } }, "required": ["kind", "value", "labels"], "type": "object" }, { "additionalProperties": false, "properties": { "guards": { "$ref": "#/$defs/NonEmptyVec_of_Guard" }, "kind": { "const": "all", "type": "string" } }, "required": ["kind", "guards"], "type": "object" }, { "additionalProperties": false, "properties": { "guards": { "$ref": "#/$defs/NonEmptyVec_of_Guard" }, "kind": { "const": "any", "type": "string" } }, "required": ["kind", "guards"], "type": "object" }, { "additionalProperties": false, "properties": { "guard": { "$ref": "#/$defs/Guard" }, "kind": { "const": "not", "type": "string" } }, "required": ["kind", "guard"], "type": "object" }, { "additionalProperties": false, "properties": { "count": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "kind": { "const": "k_of_n", "type": "string" }, "labels": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array", "uniqueItems": true }, "values": { "$ref": "#/$defs/NonEmptyVec_of_ControlSelector" } }, "required": ["kind", "count", "values", "labels"], "type": "object" }, { "additionalProperties": false, "properties": { "count": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "kind": { "const": "k_of_map", "type": "string" }, "labels": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array", "uniqueItems": true }, "value": { "$ref": "#/$defs/ControlSelector" } }, "required": ["kind", "count", "value", "labels"], "type": "object" }] }, "InitializeParams": { "additionalProperties": false, "properties": { "protocolVersion": { "const": "openengine.cluster/v1", "type": "string" } }, "required": ["protocolVersion"], "type": "object" }, "InitializeResult": { "properties": { "capabilities": { "$ref": "#/$defs/ServerCapabilities" }, "protocolVersion": { "const": "openengine.cluster/v1", "type": "string" }, "status": { "$ref": "#/$defs/ClusterStatus" } }, "required": ["protocolVersion", "capabilities", "status"], "type": "object" }, "InputBinding": { "additionalProperties": false, "properties": { "target": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "value": { "$ref": "#/$defs/DataSelector" } }, "required": ["target", "value"], "type": "object" }, "Join": { "oneOf": [{ "additionalProperties": false, "properties": { "kind": { "const": "all", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "any", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "count": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "kind": { "const": "quorum", "type": "string" } }, "required": ["kind", "count"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "first", "type": "string" }, "when": { "$ref": "#/$defs/Guard" } }, "required": ["kind", "when"], "type": "object" }] }, "JsonRpcError": { "properties": { "code": { "format": "int64", "type": "integer" }, "data": { "anyOf": [{ "$ref": "#/$defs/DomainErrorData" }, { "type": "null" }] }, "message": { "type": "string" } }, "required": ["code", "message"], "type": "object" }, "JsonRpcErrorResponse": { "properties": { "error": { "$ref": "#/$defs/JsonRpcError" }, "id": { "anyOf": [{ "$ref": "#/$defs/RequestId" }, { "type": "null" }] }, "jsonrpc": { "type": "string" } }, "required": ["jsonrpc", "error"], "type": "object" }, "JsonRpcNotification": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/EventNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification2": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/SubscriptionCancelParams" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification3": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/SubscriptionClosedNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification4": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/CancelRequestParams" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification5": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/LogEventNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification6": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/LogsClosedNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification7": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/AgentAttachEventNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification8": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/AgentAttachClosedNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcRequest": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/InitializeParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest10": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/WatchParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest11": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/LogsParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest12": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/AgentAttachParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest2": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/PlanParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest3": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/ApplyParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest4": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/GetParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest5": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/UpdateParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest6": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/StopParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest7": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/RetryParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest8": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/ResubmitParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest9": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/DeleteParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcResponse": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse10": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess10" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse11": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess11" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse12": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess12" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse2": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess2" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse3": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess3" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse4": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess4" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse5": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess5" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse6": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess6" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse7": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess7" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse8": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess8" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse9": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess9" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcSuccess": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/InitializeResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess10": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/WatchResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess11": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/LogsResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess12": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/AgentAttachResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess2": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/PlanResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess3": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/ApplyResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess4": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/GetResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess5": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/UpdateResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess6": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/StopResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess7": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/RetryResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess8": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/ResubmitResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess9": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/DeleteResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "Labels": { "additionalProperties": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "maxProperties": 64, "propertyNames": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "type": "object" }, "LogEventNotification": { "$ref": "#/$defs/LogEventNotificationWire" }, "LogEventNotificationWire": { "additionalProperties": false, "properties": { "record": { "$ref": "#/$defs/LogRecord" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "record"], "type": "object" }, "LogLevel": { "enum": ["trace", "debug", "info", "warn", "error"], "type": "string" }, "LogRecord": { "additionalProperties": false, "description": "The closed public log record shape: a level, a bounded target, and a bounded (possibly\nredacted) message. No raw bytes, reasoning, tools, credentials, env, or provider/session IDs\nare representable.", "properties": { "level": { "$ref": "#/$defs/LogLevel" }, "message": { "maxLength": 16384, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]*$", "type": "string" }, "target": { "maxLength": 128, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" } }, "required": ["level", "target", "message"], "type": "object" }, "LogsClosedNotification": { "additionalProperties": false, "description": "Wire body of the terminal `subscription/closed` server notification for a `logs` subscription.\nDeliberately carries no cursor field -- `logs` gives a type-level \"cursorless\" guarantee, unlike\n[`crate::SubscriptionClosedNotification`].", "properties": { "reason": { "$ref": "#/$defs/SubscriptionCloseReason" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "reason"], "type": "object" }, "LogsParams": { "additionalProperties": false, "description": "`logs` establishment parameters. v1 has zero caller filters: this is deliberately empty and\nclosed, rejecting any unknown field.", "type": "object" }, "LogsResult": { "additionalProperties": false, "description": "The `logs` establishment result: only a `subscriptionId`. Deliberately carries no `runId` or\n`atCursor` -- `logs` is not run-scoped and has no cursor.", "properties": { "subscriptionId": { "type": "string" } }, "required": ["subscriptionId"], "type": "object" }, "NodeAddress": { "additionalProperties": false, "properties": { "attempt": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "node": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" } }, "required": ["node", "attempt"], "type": "object" }, "NodeOutputChannel": { "enum": ["out", "signal", "diagnostic"], "type": "string" }, "NodeOutputSelector": { "additionalProperties": false, "properties": { "channel": { "$ref": "#/$defs/NodeOutputChannel" }, "node": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "path": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" } }, "required": ["node", "channel", "path"], "type": "object" }, "NonEmptyVec_of_ChoiceBranch": { "items": { "$ref": "#/$defs/ChoiceBranch" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "NonEmptyVec_of_ControlSelector": { "items": { "$ref": "#/$defs/ControlSelector" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "NonEmptyVec_of_FieldPath": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "NonEmptyVec_of_GraphNode": { "items": { "$ref": "#/$defs/GraphNode" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "NonEmptyVec_of_Guard": { "items": { "$ref": "#/$defs/Guard" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "NonEmptyVec_of_NodeName": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "OperationalStatus": { "additionalProperties": false, "properties": { "dispatchState": { "$ref": "#/$defs/DispatchState" }, "inFlight": { "format": "uint32", "minimum": 0, "type": "integer" }, "labels": { "$ref": "#/$defs/Labels" }, "logLevel": { "$ref": "#/$defs/LogLevel" }, "stopMode": { "anyOf": [{ "$ref": "#/$defs/StopMode" }, { "type": "null" }] } }, "required": ["labels", "logLevel", "dispatchState", "inFlight"], "type": "object" }, "PayloadType": { "oneOf": [{ "additionalProperties": false, "properties": { "kind": { "const": "null", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "boolean", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "integer", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "number", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "string", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "fields": { "additionalProperties": { "$ref": "#/$defs/RecordField" }, "propertyNames": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "object" }, "kind": { "const": "record", "type": "string" } }, "required": ["kind", "fields"], "type": "object" }, { "additionalProperties": false, "properties": { "items": { "$ref": "#/$defs/PayloadType" }, "kind": { "const": "array", "type": "string" } }, "required": ["kind", "items"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "enum", "type": "string" }, "values": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array", "uniqueItems": true } }, "required": ["kind", "values"], "type": "object" }] }, "Phase": { "enum": ["empty", "admitting", "running", "finished", "deleting"], "type": "string" }, "PlanParams": { "additionalProperties": false, "properties": { "graph": { "$ref": "#/$defs/GraphSpec" } }, "required": ["graph"], "type": "object" }, "PlanResult": { "additionalProperties": false, "properties": { "bounds": { "anyOf": [{ "$ref": "#/$defs/StructuralBounds" }, { "type": "null" }] }, "diagnostics": { "items": { "$ref": "#/$defs/GraphDiagnostic" }, "type": "array" }, "ok": { "type": "boolean" } }, "required": ["ok", "diagnostics"], "type": "object" }, "PolicyBinding": { "additionalProperties": false, "properties": { "default": { "$ref": "#/$defs/PolicyDefault" }, "policy": { "maxLength": 256, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*@[1-9][0-9]*$", "type": "string" } }, "required": ["policy", "default"], "type": "object" }, "PolicyDefault": { "enum": ["deny"], "type": "string" }, "RecordField": { "additionalProperties": false, "properties": { "required": { "type": "boolean" }, "type": { "$ref": "#/$defs/PayloadType" } }, "required": ["type", "required"], "type": "object" }, "RedactionClass": { "enum": ["public", "internal", "confidential", "restricted"], "type": "string" }, "RequestId": { "anyOf": [{ "type": "string" }, { "format": "int64", "type": "integer" }] }, "ResubmitParams": { "additionalProperties": false, "properties": { "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "ifRunId": { "type": "string" }, "replacementInput": true }, "required": ["ifGeneration", "ifRunId", "idempotencyKey"], "type": "object" }, "ResubmitResult": { "additionalProperties": false, "properties": { "atCursor": { "type": "string" }, "deduped": { "type": "boolean" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "operational": { "$ref": "#/$defs/OperationalStatus" }, "phase": { "$ref": "#/$defs/Phase" }, "priorRunId": { "type": "string" }, "runId": { "type": "string" } }, "required": ["generation", "priorRunId", "runId", "phase", "operational", "atCursor", "deduped"], "type": "object" }, "RetryParams": { "additionalProperties": false, "properties": { "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" } }, "required": ["ifGeneration", "idempotencyKey"], "type": "object" }, "RetryResult": { "additionalProperties": false, "properties": { "atCursor": { "type": "string" }, "deduped": { "type": "boolean" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "operational": { "$ref": "#/$defs/OperationalStatus" }, "phase": { "$ref": "#/$defs/Phase" }, "retriedTurnId": { "type": "string" }, "retryTurnId": { "type": "string" }, "runId": { "type": "string" } }, "required": ["generation", "runId", "phase", "retriedTurnId", "retryTurnId", "operational", "atCursor", "deduped"], "type": "object" }, "ServerCapabilities": { "additionalProperties": false, "properties": { "agentAttach": { "default": false, "type": "boolean" }, "graphProfiles": { "default": [], "items": { "$ref": "#/$defs/GraphProfile" }, "maxItems": 2, "not": { "minItems": 2, "prefixItems": [{ "const": "openengine.graph.single-worker/v1" }, { "const": "openengine.graph.full/v1" }] }, "type": "array", "uniqueItems": true }, "logs": { "default": false, "type": "boolean" } }, "type": "object" }, "StopMode": { "enum": ["drain", "force"], "type": "string" }, "StopParams": { "additionalProperties": false, "properties": { "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "mode": { "$ref": "#/$defs/StopMode" } }, "required": ["mode", "ifGeneration", "idempotencyKey"], "type": "object" }, "StopResult": { "additionalProperties": false, "properties": { "acceptedMode": { "$ref": "#/$defs/StopMode" }, "atCursor": { "type": "string" }, "deduped": { "type": "boolean" }, "effectiveMode": { "$ref": "#/$defs/StopMode" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "operational": { "$ref": "#/$defs/OperationalStatus" }, "phase": { "$ref": "#/$defs/Phase" }, "runId": { "type": "string" } }, "required": ["generation", "runId", "phase", "acceptedMode", "effectiveMode", "operational", "atCursor", "deduped"], "type": "object" }, "StructuralBounds": { "additionalProperties": false, "properties": { "attemptsPerNode": { "additionalProperties": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "propertyNames": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "object" }, "maxNodeExecutions": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "peakConcurrency": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "termination": { "$ref": "#/$defs/TerminationWitness" } }, "required": ["termination", "maxNodeExecutions", "peakConcurrency", "attemptsPerNode"], "type": "object" }, "SubscriptionCancelParams": { "additionalProperties": false, "description": "Wire body of the generic `subscription/cancel` client notification.", "properties": { "subscriptionId": { "type": "string" } }, "required": ["subscriptionId"], "type": "object" }, "SubscriptionCloseReason": { "enum": ["done", "SLOW_CONSUMER"], "type": "string" }, "SubscriptionClosedNotification": { "additionalProperties": false, "description": "Wire body of the terminal `subscription/closed` server notification.", "properties": { "lastDeliveredCursor": { "type": ["string", "null"] }, "reason": { "$ref": "#/$defs/SubscriptionCloseReason" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "reason"], "type": "object" }, "TerminationWitness": { "oneOf": [{ "additionalProperties": false, "properties": { "kind": { "const": "acyclic", "type": "string" }, "order": { "$ref": "#/$defs/NonEmptyVec_of_NodeName" } }, "required": ["kind", "order"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "bounded", "type": "string" }, "maxIterations": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "ranking": { "$ref": "#/$defs/NonEmptyVec_of_FieldPath" } }, "required": ["kind", "ranking", "maxIterations"], "type": "object" }] }, "UpdateParams": { "additionalProperties": false, "anyOf": [{ "required": ["labels"] }, { "required": ["logLevel"] }, { "required": ["suspended"] }], "properties": { "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "labels": { "$ref": "#/$defs/Labels" }, "logLevel": { "$ref": "#/$defs/LogLevel" }, "suspended": { "type": "boolean" } }, "required": ["ifGeneration", "idempotencyKey"], "type": "object" }, "UpdateResult": { "additionalProperties": false, "properties": { "atCursor": { "type": "string" }, "deduped": { "type": "boolean" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "operational": { "$ref": "#/$defs/OperationalStatus" }, "phase": { "$ref": "#/$defs/Phase" }, "runId": { "type": "string" } }, "required": ["generation", "runId", "phase", "operational", "atCursor", "deduped"], "type": "object" }, "WatchEvent": { "description": "The closed public event algebra. `Phase` folds the observable cluster status (admission\ncommit, update, suspend/resume, stop-request); `NodeBegin`/`NodeEnd` are a testkit-only\nsynthetic hook decoupled from the real dispatch/lease turn mechanism, since no native graph\nexecutor exists yet; `Bookmark` advances the cursor without changing folded public state;\n`Fault` carries a durable, backend-neutral projected `BackendFault`: it correlates to the\nenclosing `EventNotification.run_id` plus its own optional opaque `executionRef`, and its\nordering/emission never itself authorizes a retry or changes terminal semantics -- it folds to\nno public status change, exactly like `Bookmark`; `Finished` is always the last event for a\nrun.", "oneOf": [{ "additionalProperties": false, "properties": { "admission": { "anyOf": [{ "$ref": "#/$defs/AdmissionTransition" }, { "type": "null" }] }, "status": { "$ref": "#/$defs/ClusterStatus" }, "type": { "const": "phase", "type": "string" } }, "required": ["type", "status"], "type": "object" }, { "additionalProperties": false, "properties": { "input": true, "node": { "$ref": "#/$defs/NodeAddress" }, "type": { "const": "node_begin", "type": "string" } }, "required": ["type", "node", "input"], "type": "object" }, { "additionalProperties": false, "properties": { "node": { "$ref": "#/$defs/NodeAddress" }, "outcome": { "$ref": "#/$defs/WorkerOutcome" }, "type": { "const": "node_end", "type": "string" } }, "required": ["type", "node", "outcome"], "type": "object" }, { "additionalProperties": false, "properties": { "type": { "const": "bookmark", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "properties": { "fault": { "$ref": "#/$defs/BackendFault" }, "type": { "const": "fault", "type": "string" } }, "required": ["type", "fault"], "type": "object" }, { "additionalProperties": false, "properties": { "final_status": { "$ref": "#/$defs/ClusterStatus" }, "stop_mode": { "anyOf": [{ "$ref": "#/$defs/StopMode" }, { "type": "null" }] }, "type": { "const": "finished", "type": "string" } }, "required": ["type", "final_status"], "type": "object" }] }, "WatchParams": { "additionalProperties": false, "properties": { "fromCursor": { "default": null, "type": ["string", "null"] }, "runId": { "default": null, "type": ["string", "null"] } }, "type": "object" }, "WatchResult": { "properties": { "atCursor": { "type": ["string", "null"] }, "runId": { "type": ["string", "null"] }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId"], "type": "object" }, "WorkerErrorCode": { "enum": ["timeout", "crash", "malformed", "refusal"], "type": "string" }, "WorkerFailureReason": { "enum": ["declared_failure", "policy_denied", "interactive_input_required", "authentication_required", "malformed_result"], "type": "string" }, "WorkerOutcome": { "allOf": [{ "$ref": "#/$defs/WorkerOutcomeWire" }, { "if": { "properties": { "status": { "const": "error" } }, "required": ["status"] }, "then": { "oneOf": [{ "properties": { "reason": { "const": "declared_failure" } }, "required": ["reason"] }, { "properties": { "code": { "const": "refusal" }, "reason": { "enum": ["policy_denied", "interactive_input_required", "authentication_required"] } }, "required": ["code", "reason"] }, { "properties": { "code": { "const": "malformed" }, "reason": { "const": "malformed_result" } }, "required": ["code", "reason"] }] } }] }, "WorkerOutcomeWire": { "oneOf": [{ "additionalProperties": false, "properties": { "artifacts": { "items": { "$ref": "#/$defs/ArtifactRef" }, "type": "array" }, "output": true, "status": { "const": "verified", "type": "string" } }, "required": ["status", "output", "artifacts"], "type": "object" }, { "additionalProperties": false, "properties": { "artifacts": { "items": { "$ref": "#/$defs/ArtifactRef" }, "type": "array" }, "diagnostic": true, "output": true, "signals": { "additionalProperties": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "propertyNames": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "object" }, "status": { "const": "verifier", "type": "string" } }, "required": ["status", "output", "signals", "diagnostic", "artifacts"], "type": "object" }, { "additionalProperties": false, "properties": { "code": { "$ref": "#/$defs/WorkerErrorCode" }, "reason": { "$ref": "#/$defs/WorkerFailureReason" }, "status": { "const": "error", "type": "string" } }, "required": ["status", "code", "reason"], "type": "object" }] }, "WriteBinding": { "additionalProperties": false, "properties": { "target": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "value": { "$ref": "#/$defs/NodeOutputSelector" } }, "required": ["value", "target"], "type": "object" } }, "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "agent_attach_closed_notification": { "$ref": "#/$defs/JsonRpcNotification8" }, "agent_attach_event_notification": { "$ref": "#/$defs/JsonRpcNotification7" }, "agent_attach_request": { "$ref": "#/$defs/JsonRpcRequest12" }, "agent_attach_response": { "$ref": "#/$defs/JsonRpcResponse12" }, "apply_request": { "$ref": "#/$defs/JsonRpcRequest3" }, "apply_response": { "$ref": "#/$defs/JsonRpcResponse3" }, "cancel_request_notification": { "$ref": "#/$defs/JsonRpcNotification4" }, "delete_request": { "$ref": "#/$defs/JsonRpcRequest9" }, "delete_response": { "$ref": "#/$defs/JsonRpcResponse9" }, "event_notification": { "$ref": "#/$defs/JsonRpcNotification" }, "get_request": { "$ref": "#/$defs/JsonRpcRequest4" }, "get_response": { "$ref": "#/$defs/JsonRpcResponse4" }, "initialize_request": { "$ref": "#/$defs/JsonRpcRequest" }, "initialize_response": { "$ref": "#/$defs/JsonRpcResponse" }, "log_event_notification": { "$ref": "#/$defs/JsonRpcNotification5" }, "logs_closed_notification": { "$ref": "#/$defs/JsonRpcNotification6" }, "logs_request": { "$ref": "#/$defs/JsonRpcRequest11" }, "logs_response": { "$ref": "#/$defs/JsonRpcResponse11" }, "plan_request": { "$ref": "#/$defs/JsonRpcRequest2" }, "plan_response": { "$ref": "#/$defs/JsonRpcResponse2" }, "resubmit_request": { "$ref": "#/$defs/JsonRpcRequest8" }, "resubmit_response": { "$ref": "#/$defs/JsonRpcResponse8" }, "retry_request": { "$ref": "#/$defs/JsonRpcRequest7" }, "retry_response": { "$ref": "#/$defs/JsonRpcResponse7" }, "stop_request": { "$ref": "#/$defs/JsonRpcRequest6" }, "stop_response": { "$ref": "#/$defs/JsonRpcResponse6" }, "subscription_cancel_notification": { "$ref": "#/$defs/JsonRpcNotification2" }, "subscription_closed_notification": { "$ref": "#/$defs/JsonRpcNotification3" }, "update_request": { "$ref": "#/$defs/JsonRpcRequest5" }, "update_response": { "$ref": "#/$defs/JsonRpcResponse5" }, "watch_request": { "$ref": "#/$defs/JsonRpcRequest10" }, "watch_response": { "$ref": "#/$defs/JsonRpcResponse10" } }, "required": ["initialize_request", "initialize_response", "plan_request", "plan_response", "apply_request", "apply_response", "get_request", "get_response", "update_request", "update_response", "stop_request", "stop_response", "retry_request", "retry_response", "resubmit_request", "resubmit_response", "delete_request", "delete_response", "watch_request", "watch_response", "event_notification", "subscription_cancel_notification", "subscription_closed_notification", "cancel_request_notification", "logs_request", "logs_response", "log_event_notification", "logs_closed_notification", "agent_attach_request", "agent_attach_response", "agent_attach_event_notification", "agent_attach_closed_notification"], "title": "ImplementedProtocolSchema", "type": "object" };
|
|
5
|
+
exports.CLUSTER_PROTOCOL_SCHEMA = { "$defs": { "AdmissionTransition": { "additionalProperties": false, "properties": { "runId": { "type": "string" }, "seedInput": true, "spec": { "$ref": "#/$defs/GraphSpec" } }, "required": ["runId", "spec", "seedInput"], "type": "object" }, "AgentAttachClosedNotification": { "additionalProperties": false, "description": "Wire body of the terminal `subscription/closed` server notification for an `agent/attach`\nsubscription. Deliberately carries no cursor field -- `agent/attach` gives a type-level\n\"cursorless\" guarantee, unlike [`crate::SubscriptionClosedNotification`].", "properties": { "reason": { "$ref": "#/$defs/SubscriptionCloseReason" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "reason"], "type": "object" }, "AgentAttachEvent": { "description": "The closed public agent-attach progress algebra. This is the only representable shape:\nreasoning, tools, provider frames, usage, and session identifiers have no variant. `Working`\nand `Settled` are empty struct variants rather than bare units: serde's internally tagged enum\ndeserialization silently ignores unknown fields on a unit variant regardless of\n`deny_unknown_fields`, which would otherwise let an unrepresentable field ride along\nundetected on either of these two variants.", "oneOf": [{ "additionalProperties": false, "properties": { "type": { "const": "working", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "properties": { "text": { "maxLength": 16384, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]*$", "type": "string" }, "type": { "const": "output", "type": "string" } }, "required": ["type", "text"], "type": "object" }, { "additionalProperties": false, "properties": { "type": { "const": "settled", "type": "string" } }, "required": ["type"], "type": "object" }] }, "AgentAttachEventNotification": { "$ref": "#/$defs/AgentAttachEventNotificationWire" }, "AgentAttachEventNotificationWire": { "additionalProperties": false, "properties": { "event": { "$ref": "#/$defs/AgentAttachEvent" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "event"], "type": "object" }, "AgentAttachParams": { "additionalProperties": false, "description": "`agent/attach` establishment parameters: the named `{execution}` request. Deliberately closed,\nrejecting any unknown field.", "properties": { "execution": { "maxLength": 128, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" } }, "required": ["execution"], "type": "object" }, "AgentAttachResult": { "additionalProperties": false, "description": "The `agent/attach` establishment result: only a `subscriptionId`. Deliberately carries no\n`runId` or `atCursor` -- `agent/attach` is not run-scoped and has no cursor.", "properties": { "subscriptionId": { "type": "string" } }, "required": ["subscriptionId"], "type": "object" }, "ApplyParams": { "additionalProperties": false, "properties": { "dryRun": { "default": false, "type": "boolean" }, "graph": { "$ref": "#/$defs/GraphSpec" }, "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "input": true }, "required": ["graph"], "type": "object" }, "ApplyResult": { "additionalProperties": false, "properties": { "deduped": { "type": "boolean" }, "diff": { "anyOf": [{ "$ref": "#/$defs/GraphDiff" }, { "type": "null" }] }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] }, "phase": { "$ref": "#/$defs/Phase" }, "runId": { "type": ["string", "null"] } }, "required": ["phase", "deduped"], "type": "object" }, "ArtifactLineage": { "additionalProperties": false, "properties": { "attempt": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "runId": { "type": "string" } }, "required": ["generation", "runId", "attempt"], "type": "object" }, "ArtifactProducer": { "additionalProperties": false, "properties": { "node": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "worker": { "maxLength": 256, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*@[1-9][0-9]*$", "type": "string" } }, "required": ["node", "worker"], "type": "object" }, "ArtifactRef": { "additionalProperties": false, "properties": { "artifactId": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "byteLength": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "lineage": { "$ref": "#/$defs/ArtifactLineage" }, "mediaType": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "producer": { "$ref": "#/$defs/ArtifactProducer" }, "redaction": { "$ref": "#/$defs/RedactionClass" }, "sha256": { "pattern": "^[0-9a-f]{64}$", "type": "string" }, "typeId": { "maxLength": 256, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*@[1-9][0-9]*$", "type": "string" } }, "required": ["artifactId", "sha256", "byteLength", "mediaType", "typeId", "producer", "lineage", "redaction"], "type": "object" }, "BackendFault": { "$ref": "#/$defs/BackendFaultWire" }, "BackendFaultWire": { "additionalProperties": false, "properties": { "action": { "$ref": "#/$defs/FaultAction" }, "code": { "$ref": "#/$defs/FaultCode" }, "consequence": { "$ref": "#/$defs/FaultConsequence" }, "eventId": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "executionRef": { "default": null, "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": ["string", "null"] }, "retry": { "$ref": "#/$defs/FaultRetryDisposition" }, "severity": { "$ref": "#/$defs/FaultSeverity" }, "source": { "items": { "$ref": "#/$defs/FaultSourceFrame" }, "maxItems": 8, "type": "array" }, "summary": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" } }, "required": ["eventId", "code", "consequence", "retry", "action", "severity", "summary", "source"], "type": "object" }, "CancelRequestParams": { "additionalProperties": false, "description": "Wire body of the `$/cancelRequest` client notification: best-effort cancellation of an\nin-flight unary request by its `RequestId`. Unknown or already-completed ids are a silent\nno-op; cancelling after the backend has committed leaves that committed state unchanged and\nemits no response or compensation.", "properties": { "id": { "$ref": "#/$defs/RequestId" } }, "required": ["id"], "type": "object" }, "ChoiceBranch": { "additionalProperties": false, "properties": { "node": { "$ref": "#/$defs/GraphNode" }, "when": { "$ref": "#/$defs/Guard" } }, "required": ["when", "node"], "type": "object" }, "ClusterStatus": { "properties": { "atCursor": { "type": ["string", "null"] }, "currentRunId": { "type": ["string", "null"] }, "observedGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] }, "operational": { "anyOf": [{ "$ref": "#/$defs/OperationalStatus" }, { "type": "null" }] }, "phase": { "$ref": "#/$defs/Phase" } }, "required": ["phase"], "type": "object" }, "ControlSelector": { "additionalProperties": false, "properties": { "field": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": ["string", "null"] }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "source": { "$ref": "#/$defs/ControlSource" } }, "required": ["name", "source"], "type": "object" }, "ControlSource": { "enum": ["signal", "error", "group"], "type": "string" }, "DataSelector": { "oneOf": [{ "additionalProperties": false, "properties": { "path": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "source": { "const": "state", "type": "string" } }, "required": ["source", "path"], "type": "object" }, { "additionalProperties": false, "properties": { "path": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "source": { "const": "item", "type": "string" } }, "required": ["source", "path"], "type": "object" }] }, "DeleteParams": { "additionalProperties": false, "properties": { "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "ifRunId": { "type": ["string", "null"] } }, "required": ["ifGeneration", "idempotencyKey"], "type": "object" }, "DeleteResult": { "additionalProperties": false, "properties": { "atCursor": { "type": ["string", "null"] }, "deduped": { "type": "boolean" }, "deleted": { "type": "boolean" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": ["integer", "null"] }, "phase": { "$ref": "#/$defs/Phase" }, "runId": { "type": ["string", "null"] } }, "required": ["deleted", "phase", "deduped"], "type": "object" }, "DiagnosticPathSegment": { "oneOf": [{ "additionalProperties": false, "properties": { "kind": { "const": "field", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" } }, "required": ["kind", "name"], "type": "object" }, { "additionalProperties": false, "properties": { "index": { "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "kind": { "const": "index", "type": "string" } }, "required": ["kind", "index"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "node", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" } }, "required": ["kind", "name"], "type": "object" }] }, "DiagnosticSeverity": { "enum": ["error", "warning", "info"], "type": "string" }, "DispatchState": { "enum": ["active", "suspended", "draining", "force_stopping", "stopped"], "type": "string" }, "DomainErrorData": { "properties": { "code": { "type": "string" }, "details": true }, "required": ["code"], "type": "object" }, "EventNotification": { "additionalProperties": false, "description": "Wire body of the generic `event` server notification.", "properties": { "cursor": { "type": "string" }, "event": { "$ref": "#/$defs/WatchEvent" }, "runId": { "type": "string" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "runId", "cursor", "event"], "type": "object" }, "FaultAction": { "description": "Descriptive only, like [`FaultRetryDisposition`]: naming `Retry` never itself retries or\nauthorizes a retry.", "enum": ["none", "retry", "wait", "escalate", "abort"], "type": "string" }, "FaultCode": { "enum": ["unavailable", "resource_exhausted", "deadline_exceeded", "permission_denied", "failed_precondition", "not_found", "aborted", "internal", "unknown"], "type": "string" }, "FaultConsequence": { "enum": ["turn_failed", "run_failed", "run_degraded", "no_observable_effect"], "type": "string" }, "FaultRetryDisposition": { "description": "Descriptive only: no `BackendFault` and no `fault` event ever performs or authorizes a retry.\nEvent ordering and emission never themselves change terminal semantics.", "enum": ["retryable", "retryable_after_backoff", "not_retryable", "indeterminate"], "type": "string" }, "FaultSeverity": { "enum": ["info", "warning", "error", "critical"], "type": "string" }, "FaultSourceFrame": { "additionalProperties": false, "properties": { "component": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" } }, "required": ["component"], "type": "object" }, "GetParams": { "additionalProperties": false, "properties": { "atCursor": { "default": null, "type": ["string", "null"] } }, "type": "object" }, "GetResult": { "properties": { "atCursor": { "type": ["string", "null"] }, "spec": { "anyOf": [{ "$ref": "#/$defs/GraphSpec" }, { "type": "null" }] }, "status": { "$ref": "#/$defs/ClusterStatus" }, "terminalResult": { "anyOf": [{ "$ref": "#/$defs/TerminalResult" }, { "type": "null" }] } }, "required": ["status"], "type": "object" }, "GraphDiagnostic": { "additionalProperties": false, "properties": { "code": { "$ref": "#/$defs/GraphDiagnosticCode" }, "message": { "type": "string" }, "path": { "items": { "$ref": "#/$defs/DiagnosticPathSegment" }, "type": "array" }, "relatedNodes": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "array" }, "severity": { "$ref": "#/$defs/DiagnosticSeverity" } }, "required": ["severity", "code", "message", "path", "relatedNodes"], "type": "object" }, "GraphDiagnosticCode": { "enum": ["schema_safety", "reachability", "choice_exhaustiveness", "loop_exit_satisfiability", "missing_bound", "write_conflict", "ceiling_exceeded", "cyclic_reference", "undefined_read", "invalid_graph_shape"], "type": "string" }, "GraphDiff": { "additionalProperties": false, "properties": { "added": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "array" }, "changed": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "array" }, "removed": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "array" } }, "required": ["added", "removed", "changed"], "type": "object" }, "GraphNode": { "oneOf": [{ "additionalProperties": false, "properties": { "attempts": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "input": { "$ref": "#/$defs/PayloadType" }, "inputBindings": { "items": { "$ref": "#/$defs/InputBinding" }, "type": "array" }, "kind": { "const": "step", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "output": { "$ref": "#/$defs/PayloadType" }, "timeoutMs": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "worker": { "maxLength": 256, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*@[1-9][0-9]*$", "type": "string" }, "writeBindings": { "items": { "$ref": "#/$defs/WriteBinding" }, "type": "array" } }, "required": ["kind", "name", "worker", "input", "output", "inputBindings", "writeBindings", "timeoutMs", "attempts"], "type": "object" }, { "additionalProperties": false, "properties": { "attempts": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "diagnostic": { "$ref": "#/$defs/PayloadType" }, "input": { "$ref": "#/$defs/PayloadType" }, "inputBindings": { "items": { "$ref": "#/$defs/InputBinding" }, "type": "array" }, "kind": { "const": "verifier", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "output": { "$ref": "#/$defs/PayloadType" }, "signals": { "additionalProperties": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array", "uniqueItems": true }, "propertyNames": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "object" }, "timeoutMs": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "worker": { "maxLength": 256, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*@[1-9][0-9]*$", "type": "string" }, "writeBindings": { "items": { "$ref": "#/$defs/WriteBinding" }, "type": "array" } }, "required": ["kind", "name", "worker", "input", "output", "inputBindings", "writeBindings", "timeoutMs", "attempts", "signals", "diagnostic"], "type": "object" }, { "additionalProperties": false, "properties": { "children": { "$ref": "#/$defs/NonEmptyVec_of_GraphNode" }, "kind": { "const": "seq", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "promotedStatePaths": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "type": "array" }, "state": { "$ref": "#/$defs/PayloadType" } }, "required": ["kind", "name", "state", "children", "promotedStatePaths"], "type": "object" }, { "additionalProperties": false, "properties": { "branches": { "$ref": "#/$defs/NonEmptyVec_of_ChoiceBranch" }, "kind": { "const": "choice", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "otherwise": { "anyOf": [{ "$ref": "#/$defs/GraphNode" }, { "type": "null" }] }, "promotedStatePaths": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "type": "array" }, "state": { "$ref": "#/$defs/PayloadType" } }, "required": ["kind", "name", "state", "branches", "promotedStatePaths"], "type": "object" }, { "additionalProperties": false, "properties": { "branches": { "$ref": "#/$defs/NonEmptyVec_of_GraphNode" }, "join": { "$ref": "#/$defs/Join" }, "kind": { "const": "par", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "promotedStatePaths": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "type": "array" }, "state": { "$ref": "#/$defs/PayloadType" } }, "required": ["kind", "name", "state", "branches", "promotedStatePaths", "join"], "type": "object" }, { "additionalProperties": false, "properties": { "body": { "$ref": "#/$defs/GraphNode" }, "kind": { "const": "loop", "type": "string" }, "maxIterations": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "promotedStatePaths": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "type": "array" }, "state": { "$ref": "#/$defs/PayloadType" }, "until": { "$ref": "#/$defs/Guard" } }, "required": ["kind", "name", "state", "body", "until", "maxIterations", "promotedStatePaths"], "type": "object" }, { "additionalProperties": false, "properties": { "body": { "$ref": "#/$defs/GraphNode" }, "kind": { "const": "map", "type": "string" }, "maxItems": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "over": { "$ref": "#/$defs/DataSelector" }, "promotedStatePaths": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "type": "array" }, "state": { "$ref": "#/$defs/PayloadType" } }, "required": ["kind", "name", "state", "body", "over", "maxItems", "promotedStatePaths"], "type": "object" }, { "additionalProperties": false, "properties": { "bindings": { "items": { "$ref": "#/$defs/InputBinding" }, "type": "array" }, "kind": { "const": "succeed", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "output": { "$ref": "#/$defs/PayloadType" } }, "required": ["kind", "name", "output", "bindings"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "fail", "type": "string" }, "name": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "reason": { "maxLength": 128, "minLength": 1, "pattern": "^(?!unhandled$)[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" } }, "required": ["kind", "name", "reason"], "type": "object" }] }, "GraphProfile": { "enum": ["openengine.graph.full/v1", "openengine.graph.single-worker/v1"], "type": "string" }, "GraphSpec": { "additionalProperties": false, "properties": { "initialInput": { "$ref": "#/$defs/PayloadType" }, "policy": { "$ref": "#/$defs/PolicyBinding" }, "profile": { "$ref": "#/$defs/GraphProfile" }, "root": { "$ref": "#/$defs/GraphNode" } }, "required": ["profile", "initialInput", "policy", "root"], "type": "object" }, "Guard": { "oneOf": [{ "additionalProperties": false, "properties": { "kind": { "const": "in", "type": "string" }, "labels": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array", "uniqueItems": true }, "value": { "$ref": "#/$defs/ControlSelector" } }, "required": ["kind", "value", "labels"], "type": "object" }, { "additionalProperties": false, "properties": { "guards": { "$ref": "#/$defs/NonEmptyVec_of_Guard" }, "kind": { "const": "all", "type": "string" } }, "required": ["kind", "guards"], "type": "object" }, { "additionalProperties": false, "properties": { "guards": { "$ref": "#/$defs/NonEmptyVec_of_Guard" }, "kind": { "const": "any", "type": "string" } }, "required": ["kind", "guards"], "type": "object" }, { "additionalProperties": false, "properties": { "guard": { "$ref": "#/$defs/Guard" }, "kind": { "const": "not", "type": "string" } }, "required": ["kind", "guard"], "type": "object" }, { "additionalProperties": false, "properties": { "count": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "kind": { "const": "k_of_n", "type": "string" }, "labels": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array", "uniqueItems": true }, "values": { "$ref": "#/$defs/NonEmptyVec_of_ControlSelector" } }, "required": ["kind", "count", "values", "labels"], "type": "object" }, { "additionalProperties": false, "properties": { "count": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "kind": { "const": "k_of_map", "type": "string" }, "labels": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array", "uniqueItems": true }, "value": { "$ref": "#/$defs/ControlSelector" } }, "required": ["kind", "count", "value", "labels"], "type": "object" }] }, "InitializeParams": { "additionalProperties": false, "properties": { "protocolVersion": { "const": "openengine.cluster/v1", "type": "string" } }, "required": ["protocolVersion"], "type": "object" }, "InitializeResult": { "properties": { "capabilities": { "$ref": "#/$defs/ServerCapabilities" }, "protocolVersion": { "const": "openengine.cluster/v1", "type": "string" }, "status": { "$ref": "#/$defs/ClusterStatus" } }, "required": ["protocolVersion", "capabilities", "status"], "type": "object" }, "InputBinding": { "additionalProperties": false, "properties": { "target": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "value": { "$ref": "#/$defs/DataSelector" } }, "required": ["target", "value"], "type": "object" }, "Join": { "oneOf": [{ "additionalProperties": false, "properties": { "kind": { "const": "all", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "any", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "count": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "kind": { "const": "quorum", "type": "string" } }, "required": ["kind", "count"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "first", "type": "string" }, "when": { "$ref": "#/$defs/Guard" } }, "required": ["kind", "when"], "type": "object" }] }, "JsonRpcError": { "properties": { "code": { "format": "int64", "type": "integer" }, "data": { "anyOf": [{ "$ref": "#/$defs/DomainErrorData" }, { "type": "null" }] }, "message": { "type": "string" } }, "required": ["code", "message"], "type": "object" }, "JsonRpcErrorResponse": { "properties": { "error": { "$ref": "#/$defs/JsonRpcError" }, "id": { "anyOf": [{ "$ref": "#/$defs/RequestId" }, { "type": "null" }] }, "jsonrpc": { "type": "string" } }, "required": ["jsonrpc", "error"], "type": "object" }, "JsonRpcNotification": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/EventNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification2": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/SubscriptionCancelParams" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification3": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/SubscriptionClosedNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification4": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/CancelRequestParams" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification5": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/LogEventNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification6": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/LogsClosedNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification7": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/AgentAttachEventNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcNotification8": { "properties": { "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/AgentAttachClosedNotification" } }, "required": ["jsonrpc", "method", "params"], "type": "object" }, "JsonRpcRequest": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/InitializeParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest10": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/WatchParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest11": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/LogsParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest12": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/AgentAttachParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest2": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/PlanParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest3": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/ApplyParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest4": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/GetParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest5": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/UpdateParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest6": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/StopParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest7": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/RetryParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest8": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/ResubmitParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcRequest9": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "method": { "type": "string" }, "params": { "$ref": "#/$defs/DeleteParams" } }, "required": ["jsonrpc", "id", "method", "params"], "type": "object" }, "JsonRpcResponse": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse10": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess10" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse11": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess11" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse12": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess12" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse2": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess2" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse3": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess3" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse4": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess4" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse5": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess5" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse6": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess6" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse7": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess7" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse8": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess8" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcResponse9": { "anyOf": [{ "$ref": "#/$defs/JsonRpcSuccess9" }, { "$ref": "#/$defs/JsonRpcErrorResponse" }] }, "JsonRpcSuccess": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/InitializeResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess10": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/WatchResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess11": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/LogsResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess12": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/AgentAttachResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess2": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/PlanResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess3": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/ApplyResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess4": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/GetResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess5": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/UpdateResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess6": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/StopResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess7": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/RetryResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess8": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/ResubmitResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "JsonRpcSuccess9": { "properties": { "id": { "$ref": "#/$defs/RequestId" }, "jsonrpc": { "type": "string" }, "result": { "$ref": "#/$defs/DeleteResult" } }, "required": ["jsonrpc", "id", "result"], "type": "object" }, "Labels": { "additionalProperties": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "maxProperties": 64, "propertyNames": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "type": "object" }, "LogEventNotification": { "$ref": "#/$defs/LogEventNotificationWire" }, "LogEventNotificationWire": { "additionalProperties": false, "properties": { "record": { "$ref": "#/$defs/LogRecord" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "record"], "type": "object" }, "LogLevel": { "enum": ["trace", "debug", "info", "warn", "error"], "type": "string" }, "LogRecord": { "additionalProperties": false, "description": "The closed public log record shape: a level, a bounded target, and a bounded (possibly\nredacted) message. No raw bytes, reasoning, tools, credentials, env, or provider/session IDs\nare representable.", "properties": { "level": { "$ref": "#/$defs/LogLevel" }, "message": { "maxLength": 16384, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]*$", "type": "string" }, "target": { "maxLength": 128, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" } }, "required": ["level", "target", "message"], "type": "object" }, "LogsClosedNotification": { "additionalProperties": false, "description": "Wire body of the terminal `subscription/closed` server notification for a `logs` subscription.\nDeliberately carries no cursor field -- `logs` gives a type-level \"cursorless\" guarantee, unlike\n[`crate::SubscriptionClosedNotification`].", "properties": { "reason": { "$ref": "#/$defs/SubscriptionCloseReason" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "reason"], "type": "object" }, "LogsParams": { "additionalProperties": false, "description": "`logs` establishment parameters. v1 has zero caller filters: this is deliberately empty and\nclosed, rejecting any unknown field.", "type": "object" }, "LogsResult": { "additionalProperties": false, "description": "The `logs` establishment result: only a `subscriptionId`. Deliberately carries no `runId` or\n`atCursor` -- `logs` is not run-scoped and has no cursor.", "properties": { "subscriptionId": { "type": "string" } }, "required": ["subscriptionId"], "type": "object" }, "NodeAddress": { "additionalProperties": false, "properties": { "attempt": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "node": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" } }, "required": ["node", "attempt"], "type": "object" }, "NodeOutputChannel": { "enum": ["out", "signal", "diagnostic"], "type": "string" }, "NodeOutputSelector": { "additionalProperties": false, "properties": { "channel": { "$ref": "#/$defs/NodeOutputChannel" }, "node": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "path": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" } }, "required": ["node", "channel", "path"], "type": "object" }, "NonEmptyVec_of_ChoiceBranch": { "items": { "$ref": "#/$defs/ChoiceBranch" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "NonEmptyVec_of_ControlSelector": { "items": { "$ref": "#/$defs/ControlSelector" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "NonEmptyVec_of_FieldPath": { "items": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "NonEmptyVec_of_GraphNode": { "items": { "$ref": "#/$defs/GraphNode" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "NonEmptyVec_of_Guard": { "items": { "$ref": "#/$defs/Guard" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "NonEmptyVec_of_NodeName": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array" }, "OperationalStatus": { "additionalProperties": false, "properties": { "dispatchState": { "$ref": "#/$defs/DispatchState" }, "inFlight": { "format": "uint32", "minimum": 0, "type": "integer" }, "labels": { "$ref": "#/$defs/Labels" }, "logLevel": { "$ref": "#/$defs/LogLevel" }, "stopMode": { "anyOf": [{ "$ref": "#/$defs/StopMode" }, { "type": "null" }] } }, "required": ["labels", "logLevel", "dispatchState", "inFlight"], "type": "object" }, "PayloadType": { "oneOf": [{ "additionalProperties": false, "properties": { "kind": { "const": "null", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "boolean", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "integer", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "number", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "string", "type": "string" } }, "required": ["kind"], "type": "object" }, { "additionalProperties": false, "properties": { "fields": { "additionalProperties": { "$ref": "#/$defs/RecordField" }, "propertyNames": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "object" }, "kind": { "const": "record", "type": "string" } }, "required": ["kind", "fields"], "type": "object" }, { "additionalProperties": false, "properties": { "items": { "$ref": "#/$defs/PayloadType" }, "kind": { "const": "array", "type": "string" } }, "required": ["kind", "items"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "enum", "type": "string" }, "values": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 4096, "minItems": 1, "type": "array", "uniqueItems": true } }, "required": ["kind", "values"], "type": "object" }] }, "Phase": { "enum": ["empty", "admitting", "running", "finished", "deleting"], "type": "string" }, "PlanParams": { "additionalProperties": false, "properties": { "graph": { "$ref": "#/$defs/GraphSpec" } }, "required": ["graph"], "type": "object" }, "PlanResult": { "additionalProperties": false, "properties": { "bounds": { "anyOf": [{ "$ref": "#/$defs/StructuralBounds" }, { "type": "null" }] }, "diagnostics": { "items": { "$ref": "#/$defs/GraphDiagnostic" }, "type": "array" }, "ok": { "type": "boolean" } }, "required": ["ok", "diagnostics"], "type": "object" }, "PolicyBinding": { "additionalProperties": false, "properties": { "default": { "$ref": "#/$defs/PolicyDefault" }, "policy": { "maxLength": 256, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*@[1-9][0-9]*$", "type": "string" } }, "required": ["policy", "default"], "type": "object" }, "PolicyDefault": { "enum": ["deny"], "type": "string" }, "RecordField": { "additionalProperties": false, "properties": { "required": { "type": "boolean" }, "type": { "$ref": "#/$defs/PayloadType" } }, "required": ["type", "required"], "type": "object" }, "RedactionClass": { "enum": ["public", "internal", "confidential", "restricted"], "type": "string" }, "RequestId": { "anyOf": [{ "type": "string" }, { "format": "int64", "type": "integer" }] }, "ResubmitParams": { "additionalProperties": false, "properties": { "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "ifRunId": { "type": "string" }, "replacementInput": true }, "required": ["ifGeneration", "ifRunId", "idempotencyKey"], "type": "object" }, "ResubmitResult": { "additionalProperties": false, "properties": { "atCursor": { "type": "string" }, "deduped": { "type": "boolean" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "operational": { "$ref": "#/$defs/OperationalStatus" }, "phase": { "$ref": "#/$defs/Phase" }, "priorRunId": { "type": "string" }, "runId": { "type": "string" } }, "required": ["generation", "priorRunId", "runId", "phase", "operational", "atCursor", "deduped"], "type": "object" }, "RetryParams": { "additionalProperties": false, "properties": { "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" } }, "required": ["ifGeneration", "idempotencyKey"], "type": "object" }, "RetryResult": { "additionalProperties": false, "properties": { "atCursor": { "type": "string" }, "deduped": { "type": "boolean" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "operational": { "$ref": "#/$defs/OperationalStatus" }, "phase": { "$ref": "#/$defs/Phase" }, "retriedTurnId": { "type": "string" }, "retryTurnId": { "type": "string" }, "runId": { "type": "string" } }, "required": ["generation", "runId", "phase", "retriedTurnId", "retryTurnId", "operational", "atCursor", "deduped"], "type": "object" }, "ServerCapabilities": { "additionalProperties": false, "properties": { "agentAttach": { "default": false, "type": "boolean" }, "graphProfiles": { "default": [], "items": { "$ref": "#/$defs/GraphProfile" }, "maxItems": 2, "not": { "minItems": 2, "prefixItems": [{ "const": "openengine.graph.single-worker/v1" }, { "const": "openengine.graph.full/v1" }] }, "type": "array", "uniqueItems": true }, "logs": { "default": false, "type": "boolean" } }, "type": "object" }, "StopMode": { "enum": ["drain", "force"], "type": "string" }, "StopParams": { "additionalProperties": false, "properties": { "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "mode": { "$ref": "#/$defs/StopMode" } }, "required": ["mode", "ifGeneration", "idempotencyKey"], "type": "object" }, "StopResult": { "additionalProperties": false, "properties": { "acceptedMode": { "$ref": "#/$defs/StopMode" }, "atCursor": { "type": "string" }, "deduped": { "type": "boolean" }, "effectiveMode": { "$ref": "#/$defs/StopMode" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "operational": { "$ref": "#/$defs/OperationalStatus" }, "phase": { "$ref": "#/$defs/Phase" }, "runId": { "type": "string" } }, "required": ["generation", "runId", "phase", "acceptedMode", "effectiveMode", "operational", "atCursor", "deduped"], "type": "object" }, "StructuralBounds": { "additionalProperties": false, "properties": { "attemptsPerNode": { "additionalProperties": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "propertyNames": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "object" }, "maxNodeExecutions": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "peakConcurrency": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "termination": { "$ref": "#/$defs/TerminationWitness" } }, "required": ["termination", "maxNodeExecutions", "peakConcurrency", "attemptsPerNode"], "type": "object" }, "SubscriptionCancelParams": { "additionalProperties": false, "description": "Wire body of the generic `subscription/cancel` client notification.", "properties": { "subscriptionId": { "type": "string" } }, "required": ["subscriptionId"], "type": "object" }, "SubscriptionCloseReason": { "enum": ["done", "SLOW_CONSUMER"], "type": "string" }, "SubscriptionClosedNotification": { "additionalProperties": false, "description": "Wire body of the terminal `subscription/closed` server notification.", "properties": { "lastDeliveredCursor": { "type": ["string", "null"] }, "reason": { "$ref": "#/$defs/SubscriptionCloseReason" }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId", "reason"], "type": "object" }, "TerminalResult": { "description": "Authoritative terminal value for backends that can durably reconstruct a completed graph.\n\nThis is additive to [`GetResult`]: backends that do not yet expose terminal values leave the\noptional field absent, including when their status is already `finished`.", "oneOf": [{ "additionalProperties": false, "properties": { "output": true, "status": { "const": "succeeded", "type": "string" } }, "required": ["status", "output"], "type": "object" }, { "additionalProperties": false, "properties": { "reason": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "status": { "const": "failed", "type": "string" } }, "required": ["status", "reason"], "type": "object" }] }, "TerminationWitness": { "oneOf": [{ "additionalProperties": false, "properties": { "kind": { "const": "acyclic", "type": "string" }, "order": { "$ref": "#/$defs/NonEmptyVec_of_NodeName" } }, "required": ["kind", "order"], "type": "object" }, { "additionalProperties": false, "properties": { "kind": { "const": "bounded", "type": "string" }, "maxIterations": { "maximum": 9007199254740991, "minimum": 1, "type": "integer" }, "ranking": { "$ref": "#/$defs/NonEmptyVec_of_FieldPath" } }, "required": ["kind", "ranking", "maxIterations"], "type": "object" }] }, "UpdateParams": { "additionalProperties": false, "anyOf": [{ "required": ["labels"] }, { "required": ["logLevel"] }, { "required": ["suspended"] }], "properties": { "idempotencyKey": { "maxLength": 256, "minLength": 1, "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$", "type": "string" }, "ifGeneration": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "labels": { "$ref": "#/$defs/Labels" }, "logLevel": { "$ref": "#/$defs/LogLevel" }, "suspended": { "type": "boolean" } }, "required": ["ifGeneration", "idempotencyKey"], "type": "object" }, "UpdateResult": { "additionalProperties": false, "properties": { "atCursor": { "type": "string" }, "deduped": { "type": "boolean" }, "generation": { "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "operational": { "$ref": "#/$defs/OperationalStatus" }, "phase": { "$ref": "#/$defs/Phase" }, "runId": { "type": "string" } }, "required": ["generation", "runId", "phase", "operational", "atCursor", "deduped"], "type": "object" }, "WatchEvent": { "description": "The closed public event algebra. `Phase` folds the observable cluster status (admission\ncommit, update, suspend/resume, stop-request); `NodeBegin`/`NodeEnd` are a testkit-only\nsynthetic hook decoupled from the real dispatch/lease turn mechanism, since no native graph\nexecutor exists yet; `Bookmark` advances the cursor without changing folded public state;\n`Fault` carries a durable, backend-neutral projected `BackendFault`: it correlates to the\nenclosing `EventNotification.run_id` plus its own optional opaque `executionRef`, and its\nordering/emission never itself authorizes a retry or changes terminal semantics -- it folds to\nno public status change, exactly like `Bookmark`; `Finished` is always the last event for a\nrun.", "oneOf": [{ "additionalProperties": false, "properties": { "admission": { "anyOf": [{ "$ref": "#/$defs/AdmissionTransition" }, { "type": "null" }] }, "status": { "$ref": "#/$defs/ClusterStatus" }, "type": { "const": "phase", "type": "string" } }, "required": ["type", "status"], "type": "object" }, { "additionalProperties": false, "properties": { "input": true, "node": { "$ref": "#/$defs/NodeAddress" }, "type": { "const": "node_begin", "type": "string" } }, "required": ["type", "node", "input"], "type": "object" }, { "additionalProperties": false, "properties": { "node": { "$ref": "#/$defs/NodeAddress" }, "outcome": { "$ref": "#/$defs/WorkerOutcome" }, "type": { "const": "node_end", "type": "string" } }, "required": ["type", "node", "outcome"], "type": "object" }, { "additionalProperties": false, "properties": { "type": { "const": "bookmark", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "properties": { "fault": { "$ref": "#/$defs/BackendFault" }, "type": { "const": "fault", "type": "string" } }, "required": ["type", "fault"], "type": "object" }, { "additionalProperties": false, "properties": { "final_status": { "$ref": "#/$defs/ClusterStatus" }, "stop_mode": { "anyOf": [{ "$ref": "#/$defs/StopMode" }, { "type": "null" }] }, "type": { "const": "finished", "type": "string" } }, "required": ["type", "final_status"], "type": "object" }] }, "WatchParams": { "additionalProperties": false, "properties": { "fromCursor": { "default": null, "type": ["string", "null"] }, "runId": { "default": null, "type": ["string", "null"] } }, "type": "object" }, "WatchResult": { "properties": { "atCursor": { "type": ["string", "null"] }, "runId": { "type": ["string", "null"] }, "subscriptionId": { "type": "string" } }, "required": ["subscriptionId"], "type": "object" }, "WorkerErrorCode": { "enum": ["timeout", "crash", "malformed", "refusal"], "type": "string" }, "WorkerFailureReason": { "enum": ["declared_failure", "policy_denied", "interactive_input_required", "authentication_required", "malformed_result"], "type": "string" }, "WorkerOutcome": { "allOf": [{ "$ref": "#/$defs/WorkerOutcomeWire" }, { "if": { "properties": { "status": { "const": "error" } }, "required": ["status"] }, "then": { "oneOf": [{ "properties": { "reason": { "const": "declared_failure" } }, "required": ["reason"] }, { "properties": { "code": { "const": "refusal" }, "reason": { "enum": ["policy_denied", "interactive_input_required", "authentication_required"] } }, "required": ["code", "reason"] }, { "properties": { "code": { "const": "malformed" }, "reason": { "const": "malformed_result" } }, "required": ["code", "reason"] }] } }] }, "WorkerOutcomeWire": { "oneOf": [{ "additionalProperties": false, "properties": { "artifacts": { "items": { "$ref": "#/$defs/ArtifactRef" }, "type": "array" }, "output": true, "status": { "const": "verified", "type": "string" } }, "required": ["status", "output", "artifacts"], "type": "object" }, { "additionalProperties": false, "properties": { "artifacts": { "items": { "$ref": "#/$defs/ArtifactRef" }, "type": "array" }, "diagnostic": true, "output": true, "signals": { "additionalProperties": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "propertyNames": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "type": "object" }, "status": { "const": "verifier", "type": "string" } }, "required": ["status", "output", "signals", "diagnostic", "artifacts"], "type": "object" }, { "additionalProperties": false, "properties": { "code": { "$ref": "#/$defs/WorkerErrorCode" }, "reason": { "$ref": "#/$defs/WorkerFailureReason" }, "status": { "const": "error", "type": "string" } }, "required": ["status", "code", "reason"], "type": "object" }] }, "WriteBinding": { "additionalProperties": false, "properties": { "target": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z_][A-Za-z0-9_.-]*$", "type": "string" }, "maxItems": 64, "minItems": 1, "type": "array" }, "value": { "$ref": "#/$defs/NodeOutputSelector" } }, "required": ["value", "target"], "type": "object" } }, "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "agent_attach_closed_notification": { "$ref": "#/$defs/JsonRpcNotification8" }, "agent_attach_event_notification": { "$ref": "#/$defs/JsonRpcNotification7" }, "agent_attach_request": { "$ref": "#/$defs/JsonRpcRequest12" }, "agent_attach_response": { "$ref": "#/$defs/JsonRpcResponse12" }, "apply_request": { "$ref": "#/$defs/JsonRpcRequest3" }, "apply_response": { "$ref": "#/$defs/JsonRpcResponse3" }, "cancel_request_notification": { "$ref": "#/$defs/JsonRpcNotification4" }, "delete_request": { "$ref": "#/$defs/JsonRpcRequest9" }, "delete_response": { "$ref": "#/$defs/JsonRpcResponse9" }, "event_notification": { "$ref": "#/$defs/JsonRpcNotification" }, "get_request": { "$ref": "#/$defs/JsonRpcRequest4" }, "get_response": { "$ref": "#/$defs/JsonRpcResponse4" }, "initialize_request": { "$ref": "#/$defs/JsonRpcRequest" }, "initialize_response": { "$ref": "#/$defs/JsonRpcResponse" }, "log_event_notification": { "$ref": "#/$defs/JsonRpcNotification5" }, "logs_closed_notification": { "$ref": "#/$defs/JsonRpcNotification6" }, "logs_request": { "$ref": "#/$defs/JsonRpcRequest11" }, "logs_response": { "$ref": "#/$defs/JsonRpcResponse11" }, "plan_request": { "$ref": "#/$defs/JsonRpcRequest2" }, "plan_response": { "$ref": "#/$defs/JsonRpcResponse2" }, "resubmit_request": { "$ref": "#/$defs/JsonRpcRequest8" }, "resubmit_response": { "$ref": "#/$defs/JsonRpcResponse8" }, "retry_request": { "$ref": "#/$defs/JsonRpcRequest7" }, "retry_response": { "$ref": "#/$defs/JsonRpcResponse7" }, "stop_request": { "$ref": "#/$defs/JsonRpcRequest6" }, "stop_response": { "$ref": "#/$defs/JsonRpcResponse6" }, "subscription_cancel_notification": { "$ref": "#/$defs/JsonRpcNotification2" }, "subscription_closed_notification": { "$ref": "#/$defs/JsonRpcNotification3" }, "update_request": { "$ref": "#/$defs/JsonRpcRequest5" }, "update_response": { "$ref": "#/$defs/JsonRpcResponse5" }, "watch_request": { "$ref": "#/$defs/JsonRpcRequest10" }, "watch_response": { "$ref": "#/$defs/JsonRpcResponse10" } }, "required": ["initialize_request", "initialize_response", "plan_request", "plan_response", "apply_request", "apply_response", "get_request", "get_response", "update_request", "update_response", "stop_request", "stop_response", "retry_request", "retry_response", "resubmit_request", "resubmit_response", "delete_request", "delete_response", "watch_request", "watch_response", "event_notification", "subscription_cancel_notification", "subscription_closed_notification", "cancel_request_notification", "logs_request", "logs_response", "log_event_notification", "logs_closed_notification", "agent_attach_request", "agent_attach_response", "agent_attach_event_notification", "agent_attach_closed_notification"], "title": "ImplementedProtocolSchema", "type": "object" };
|