cancel_procedure
Explicitly request cancellation of one saved Procedure with operate/Core Execute and locally checked expected_update_id of its original RunProcedure. Recheck nonterminal history and running state; completed/replaced/ambiguous runs send nothing. Core cancels by Procedure resource and IGNORES its optional update_id, so no atomic historical-run guard exists and replacements can race. Cancellation takes effect after the current stage finishes; no child cancellation or rollback is promised. Cancellation ACK and original terminal outcome remain separate. Cancelling a local wait sends no remote cancellation.
Availability
KOMODO_ALLOW_OPERATE=true
The instance’s tool selection and upstream Core permissions also apply. Some inputs require additional grants.
Effect annotations
readOnlyHint—falsedestructiveHint—trueidempotentHint—false
Inputs
The registered schema gives field types, alternatives and declared bounds. The description and operator guides also cover checks applied at runtime.
expected_update_id- Required ·
type "string"·pattern "^[0-9a-fA-F]{24}$" target- Required · Schema
DetailInput
Show input JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"expected_update_id": {
"pattern": "^[0-9a-fA-F]{24}$",
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"target",
"expected_update_id"
],
"$defs": {
"DetailInput": {
"additionalProperties": false,
"oneOf": [
{
"required": [
"id"
]
},
{
"required": [
"name"
]
}
],
"properties": {
"id": {
"description": "Exact stable resource ID returned by a list tool.",
"pattern": "^[0-9a-fA-F]{24}$",
"type": "string"
},
"name": {
"description": "Exact, case-sensitive name within this family; never interpreted as an ID.",
"minLength": 1,
"pattern": "\\S",
"type": "string"
}
},
"type": "object"
}
}
}Output
The registered output schema covers structured results and tool errors.
CancellationResultactive_evidence_complete,active_update_id,automatic_resubmission,cancellation_receipt,not_submitted_reason,original_observation_error,original_terminal_confirmed,original_update,original_update_id,outcome,remote_cancellation_requested,replacement_run_observed,resource,targeting,targeting_limitAppErrorcandidates,correction,field,kind,message,operation,status
Show output JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"$ref": "#/$defs/CancellationResult"
},
{
"$ref": "#/$defs/AppError"
}
],
"$defs": {
"Acknowledgement": {
"additionalProperties": false,
"properties": {
"broader_effects_possible": {
"type": "boolean"
},
"core_admin_authority": {
"type": "boolean"
}
},
"required": [
"core_admin_authority",
"broader_effects_possible"
],
"type": "object"
},
"Acknowledgement2": {
"additionalProperties": false,
"properties": {
"broader_effects_possible": {
"type": "boolean"
},
"core_admin_authority": {
"type": "boolean"
},
"host_access": {
"type": "boolean"
}
},
"required": [
"core_admin_authority",
"host_access",
"broader_effects_possible"
],
"type": "object"
},
"ActionEffects": {
"properties": {
"acknowledgement": {
"$ref": "#/$defs/Acknowledgement2"
},
"cancellation_limit": {
"type": "string"
},
"configuration_race": {
"type": "string"
},
"definition": {
"$ref": "#/$defs/DefinitionSummary5"
}
},
"required": [
"definition",
"acknowledgement",
"cancellation_limit",
"configuration_race"
],
"type": "object"
},
"ActionObservation": {
"properties": {
"cancellation_reported": {
"type": "boolean"
},
"command_stage_found": {
"type": "boolean"
},
"command_success": {
"type": [
"boolean",
"null"
]
},
"evidence_limit": {
"type": "string"
},
"output_omitted": {
"type": "boolean"
},
"stderr_present": {
"type": "boolean"
},
"stdout_present": {
"type": "boolean"
}
},
"required": [
"command_stage_found",
"command_success",
"stdout_present",
"stderr_present",
"cancellation_reported",
"output_omitted",
"evidence_limit"
],
"type": "object"
},
"AppError": {
"additionalProperties": false,
"description": "Only application-owned messages and selected, nonsensitive metadata survive.",
"properties": {
"candidates": {
"items": {
"$ref": "#/$defs/Candidate"
},
"type": [
"array",
"null"
]
},
"correction": {
"type": [
"string",
"null"
]
},
"field": {
"type": [
"string",
"null"
]
},
"kind": {
"$ref": "#/$defs/ErrorKind"
},
"message": {
"type": "string"
},
"operation": {
"type": "string"
},
"status": {
"format": "uint16",
"maximum": 65535,
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"required": [
"kind",
"message",
"operation"
],
"type": "object"
},
"BuildEffects": {
"properties": {
"acknowledgement": {
"$ref": "#/$defs/ExpectedEffects"
},
"builder": {
"$ref": "#/$defs/DefinitionSummary3"
},
"configuration_race": {
"type": "string"
},
"definition": {
"$ref": "#/$defs/DefinitionSummary2"
},
"dependent_deployments": {
"$ref": "#/$defs/DependentEffects"
},
"execution_authority": {
"type": "string"
},
"server_selection_evidence": {
"type": "string"
},
"version_policy": {
"type": "string"
}
},
"required": [
"acknowledgement",
"definition",
"builder",
"dependent_deployments",
"version_policy",
"server_selection_evidence",
"configuration_race",
"execution_authority"
],
"type": "object"
},
"BuildObservation": {
"properties": {
"deployment_result_evidence": {
"type": "string"
},
"evidence_limit": {
"type": "string"
},
"image_evidence_ambiguous": {
"type": "boolean"
},
"image_evidence_incomplete": {
"type": "boolean"
},
"images": {
"items": {
"$ref": "#/$defs/ImageObservation"
},
"type": "array"
},
"registry_push_failure_reported": {
"type": "boolean"
},
"version": {
"type": [
"string",
"null"
]
},
"version_evidence": {
"type": "string"
}
},
"required": [
"version",
"version_evidence",
"images",
"image_evidence_incomplete",
"image_evidence_ambiguous",
"registry_push_failure_reported",
"deployment_result_evidence",
"evidence_limit"
],
"type": "object"
},
"CancellationOutcome": {
"enum": [
"not_submitted",
"acknowledged",
"rejected",
"unknown"
],
"type": "string"
},
"CancellationResult": {
"additionalProperties": false,
"description": "Reused across resource-specific cancellation APIs. The cancellation's own\nreceipt and the original update are independent observations, never rollback.",
"properties": {
"active_evidence_complete": {
"type": "boolean"
},
"active_update_id": {
"description": "For update targeting, this describes only the checked original ID, not\nan exhaustive list of simultaneous runs.",
"type": [
"string",
"null"
]
},
"automatic_resubmission": {
"type": "boolean"
},
"cancellation_receipt": {
"anyOf": [
{
"$ref": "#/$defs/SubmissionReceipt"
},
{
"type": "null"
}
]
},
"not_submitted_reason": {
"anyOf": [
{
"$ref": "#/$defs/CancellationStop"
},
{
"type": "null"
}
]
},
"original_observation_error": {
"anyOf": [
{
"$ref": "#/$defs/AppError"
},
{
"type": "null"
}
]
},
"original_terminal_confirmed": {
"type": "boolean"
},
"original_update": {
"anyOf": [
{
"$ref": "#/$defs/UpdateDetail"
},
{
"type": "null"
}
]
},
"original_update_id": {
"type": "string"
},
"outcome": {
"$ref": "#/$defs/CancellationOutcome"
},
"remote_cancellation_requested": {
"type": "boolean"
},
"replacement_run_observed": {
"type": "boolean"
},
"resource": {
"$ref": "#/$defs/OperationResource"
},
"targeting": {
"$ref": "#/$defs/CancellationTargeting"
},
"targeting_limit": {
"type": "string"
}
},
"required": [
"resource",
"original_update_id",
"targeting",
"outcome",
"not_submitted_reason",
"active_update_id",
"active_evidence_complete",
"cancellation_receipt",
"original_update",
"original_observation_error",
"original_terminal_confirmed",
"replacement_run_observed",
"remote_cancellation_requested",
"automatic_resubmission",
"targeting_limit"
],
"type": "object"
},
"CancellationStop": {
"enum": [
"original_complete",
"not_active",
"replacement_run",
"ambiguous_active_runs",
"incomplete_active_evidence"
],
"type": "string"
},
"CancellationTargeting": {
"enum": [
"resource",
"update"
],
"type": "string"
},
"Candidate": {
"additionalProperties": false,
"description": "A bounded ambiguity hint, never a raw upstream resource.",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
},
"Category": {
"enum": [
"image",
"container",
"network",
"volume",
"system"
],
"type": "string"
},
"ComposeDependencies": {
"enum": [
"deploy_saved_definition",
"start_existing_with_dependencies",
"stop_selected_only",
"restart_with_configured_dependents"
],
"type": "string"
},
"ConfiguredEffects": {
"additionalProperties": false,
"properties": {
"action": {
"anyOf": [
{
"$ref": "#/$defs/ActionEffects"
},
{
"type": "null"
}
]
},
"auto_pull": {
"type": [
"boolean",
"null"
]
},
"broader_effects_possible": {
"description": "Named-service targeting is not an isolation guarantee. Saved hooks, flags,\nwrappers, Compose dependencies or project changes may affect more resources.",
"type": "boolean"
},
"build": {
"anyOf": [
{
"$ref": "#/$defs/BuildEffects"
},
{
"type": "null"
}
]
},
"compose_dependencies": {
"anyOf": [
{
"$ref": "#/$defs/ComposeDependencies"
},
{
"type": "null"
}
],
"description": "Lifecycle uses the deployed Compose project; deploy uses saved sources."
},
"post_deploy_hook": {
"type": "boolean"
},
"pre_deploy_hook": {
"description": "Settings used by this operation, not proof that hooks ran or dependencies changed.",
"type": "boolean"
},
"procedure": {
"anyOf": [
{
"$ref": "#/$defs/ProcedureEffects"
},
{
"type": "null"
}
]
},
"repository": {
"anyOf": [
{
"$ref": "#/$defs/RepoEffects"
},
{
"type": "null"
}
]
},
"saved_command_wrapper": {
"type": "boolean"
},
"saved_extra_args": {
"type": "boolean"
}
},
"required": [
"pre_deploy_hook",
"post_deploy_hook",
"auto_pull",
"saved_extra_args",
"saved_command_wrapper",
"broader_effects_possible",
"compose_dependencies"
],
"type": "object"
},
"DefinitionSummary": {
"properties": {
"custom_path_configured": {
"type": "boolean"
},
"environment_configured": {
"type": "boolean"
},
"on_clone_configured": {
"type": "boolean"
},
"on_pull_configured": {
"type": "boolean"
},
"server_id": {
"type": [
"string",
"null"
]
},
"source": {
"$ref": "#/$defs/SourceSummary"
},
"webhook_enabled": {
"type": "boolean"
}
},
"required": [
"source",
"server_id",
"custom_path_configured",
"on_clone_configured",
"on_pull_configured",
"environment_configured",
"webhook_enabled"
],
"type": "object"
},
"DefinitionSummary2": {
"properties": {
"auto_increment_version": {
"type": "boolean"
},
"build_args_configured": {
"type": "boolean"
},
"builder_id": {
"type": [
"string",
"null"
]
},
"configured_version": {
"type": "string"
},
"image_name": {
"type": "string"
},
"image_registries": {
"items": {
"$ref": "#/$defs/RegistrySummary"
},
"type": "array"
},
"image_tag": {
"type": "string"
},
"include_commit_tag": {
"type": "boolean"
},
"include_latest_tag": {
"type": "boolean"
},
"include_version_tags": {
"type": "boolean"
},
"pre_build_configured": {
"type": "boolean"
},
"registries_complete": {
"type": "boolean"
},
"registry_count": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"secret_args_configured": {
"type": "boolean"
},
"source": {
"$ref": "#/$defs/SourceSummary2"
},
"webhook_enabled": {
"type": "boolean"
}
},
"required": [
"builder_id",
"source",
"configured_version",
"auto_increment_version",
"image_name",
"image_tag",
"image_registries",
"registry_count",
"registries_complete",
"include_latest_tag",
"include_version_tags",
"include_commit_tag",
"pre_build_configured",
"build_args_configured",
"secret_args_configured",
"webhook_enabled"
],
"type": "object"
},
"DefinitionSummary3": {
"properties": {
"builder_type": {
"type": "string"
},
"ordered_server_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"server_count": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"server_ids_complete": {
"type": "boolean"
},
"support_limit": {
"type": "string"
},
"supported": {
"type": "boolean"
}
},
"required": [
"builder_type",
"supported",
"ordered_server_ids",
"server_count",
"server_ids_complete",
"support_limit"
],
"type": "object"
},
"DefinitionSummary4": {
"properties": {
"authority": {
"type": "string"
},
"enabled_execution_count": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"evidence_limit": {
"type": "string"
},
"execution_count": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"failure_alert": {
"type": "boolean"
},
"nonempty_schedule_configured": {
"type": "boolean"
},
"schedule_enabled": {
"type": "boolean"
},
"stage_count": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"stages": {
"items": {
"$ref": "#/$defs/StageSummary"
},
"type": "array"
},
"stages_complete": {
"type": "boolean"
},
"webhook_enabled": {
"type": "boolean"
}
},
"required": [
"stages",
"stage_count",
"execution_count",
"enabled_execution_count",
"stages_complete",
"webhook_enabled",
"nonempty_schedule_configured",
"schedule_enabled",
"failure_alert",
"authority",
"evidence_limit"
],
"type": "object"
},
"DefinitionSummary5": {
"properties": {
"argument_merge": {
"type": "string"
},
"arguments_format": {
"type": "string"
},
"authority": {
"type": "string"
},
"default_arguments_configured": {
"type": "boolean"
},
"failure_alert": {
"type": "boolean"
},
"nonempty_schedule_configured": {
"type": "boolean"
},
"reload_deno_deps": {
"type": "boolean"
},
"run_at_startup": {
"type": "boolean"
},
"schedule_enabled": {
"type": "boolean"
},
"source_bytes": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"source_configured": {
"type": "boolean"
},
"webhook_enabled": {
"type": "boolean"
}
},
"required": [
"source_configured",
"source_bytes",
"default_arguments_configured",
"arguments_format",
"reload_deno_deps",
"run_at_startup",
"webhook_enabled",
"nonempty_schedule_configured",
"schedule_enabled",
"failure_alert",
"authority",
"argument_merge"
],
"type": "object"
},
"DependentDeployment": {
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"redeploy_on_build": {
"type": "boolean"
}
},
"required": [
"id",
"name",
"redeploy_on_build"
],
"type": "object"
},
"DependentEffects": {
"properties": {
"evidence_limit": {
"type": "string"
},
"has_more": {
"type": "boolean"
},
"observation_error": {
"anyOf": [
{
"$ref": "#/$defs/AppError"
},
{
"type": "null"
}
]
},
"visible": {
"items": {
"$ref": "#/$defs/DependentDeployment"
},
"type": "array"
}
},
"required": [
"visible",
"has_more",
"observation_error",
"evidence_limit"
],
"type": "object"
},
"ErrorKind": {
"description": "Stable public categories. No variant contains a raw upstream error.",
"enum": [
"invalid_arguments",
"not_found",
"ambiguous_target",
"incomplete_resolution",
"configuration",
"authentication",
"permission_denied",
"timeout",
"unreachable",
"upstream",
"invalid_response",
"response_too_large",
"capability_disabled",
"unsupported_target",
"stale_preview",
"invalid_preview"
],
"type": "string"
},
"ExecutionEvent": {
"properties": {
"event": {
"type": "string"
},
"operation": {
"type": "string"
},
"stage_event_index": {
"format": "uint",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"terminal_success": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"operation",
"event",
"stage_event_index",
"terminal_success"
],
"type": "object"
},
"ExecutionScope": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "whole_sync",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "resource_type",
"type": "string"
},
"resource_type": {
"$ref": "#/$defs/Kind"
}
},
"required": [
"kind",
"resource_type"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "resources",
"type": "string"
},
"resource_type": {
"$ref": "#/$defs/Kind"
},
"targets": {
"items": {
"$ref": "#/$defs/ResolvedTarget"
},
"type": "array"
}
},
"required": [
"kind",
"resource_type",
"targets"
],
"type": "object"
}
]
},
"ExpectedEffects": {
"additionalProperties": false,
"properties": {
"dependent_redeployments_possible": {
"description": "Must acknowledge possible hidden/concurrent dependent redeployments.",
"type": "boolean"
},
"pre_build": {
"type": "boolean"
},
"registry_pushes": {
"type": "boolean"
}
},
"required": [
"pre_build",
"registry_pushes",
"dependent_redeployments_possible"
],
"type": "object"
},
"HistoryTarget": {
"additionalProperties": false,
"properties": {
"id": {
"description": "Stable resource ID; System uses its literal system identifier.",
"type": "string"
},
"kind": {
"$ref": "#/$defs/ResourceKind"
}
},
"required": [
"kind",
"id"
],
"type": "object"
},
"ImageEventKind": {
"enum": [
"tagged",
"manifest_push_reported"
],
"type": "string"
},
"ImageObservation": {
"properties": {
"digest": {
"type": [
"string",
"null"
]
},
"kind": {
"$ref": "#/$defs/ImageEventKind"
},
"reference": {
"type": "string"
},
"stage_index": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"stage_success": {
"type": "boolean"
}
},
"required": [
"reference",
"digest",
"kind",
"stage_index",
"stage_success"
],
"type": "object"
},
"Kind": {
"enum": [
"server",
"swarm",
"stack",
"deployment",
"build",
"repo",
"builder",
"alerter",
"procedure",
"action",
"resource_sync"
],
"type": "string"
},
"OperationResource": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"kind": {
"$ref": "#/$defs/WorkloadKind"
},
"name": {
"description": "Sanitized display only. Never used for execution or recovery resolution.",
"type": "string"
}
},
"required": [
"kind",
"id",
"name"
],
"type": "object"
},
"ProcedureEffects": {
"properties": {
"acknowledgement": {
"$ref": "#/$defs/Acknowledgement"
},
"cancellation_limit": {
"type": "string"
},
"configuration_race": {
"type": "string"
},
"definition": {
"$ref": "#/$defs/DefinitionSummary4"
}
},
"required": [
"definition",
"acknowledgement",
"cancellation_limit",
"configuration_race"
],
"type": "object"
},
"ProcedureObservation": {
"properties": {
"cancellation_reported": {
"type": "boolean"
},
"child_results_complete": {
"type": "boolean"
},
"evidence_ambiguous": {
"type": "boolean"
},
"evidence_incomplete": {
"type": "boolean"
},
"evidence_limit": {
"type": "string"
},
"executions": {
"items": {
"$ref": "#/$defs/ExecutionEvent"
},
"type": "array"
},
"failed_stage_reported": {
"type": [
"string",
"null"
]
},
"permission_denial_reported": {
"type": "boolean"
},
"reported_child_update_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"stages": {
"items": {
"$ref": "#/$defs/StageEvent"
},
"type": "array"
}
},
"required": [
"stages",
"executions",
"reported_child_update_ids",
"evidence_incomplete",
"evidence_ambiguous",
"cancellation_reported",
"permission_denial_reported",
"failed_stage_reported",
"child_results_complete",
"evidence_limit"
],
"type": "object"
},
"Reference": {
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"required_editor_permission": {
"type": "string"
}
},
"required": [
"kind",
"id",
"required_editor_permission"
],
"type": "object"
},
"RegistrySummary": {
"properties": {
"credential_reference_configured": {
"type": "boolean"
},
"domain": {
"type": "string"
},
"organization": {
"type": "string"
}
},
"required": [
"domain",
"organization",
"credential_reference_configured"
],
"type": "object"
},
"RepoEffects": {
"description": "The receipt discloses which saved hooks can execute, never their source.",
"properties": {
"can_replace_working_directory": {
"type": "boolean"
},
"configuration_race": {
"type": "string"
},
"definition": {
"$ref": "#/$defs/DefinitionSummary"
},
"environment_file_write_possible": {
"type": "boolean"
},
"runs_on_clone": {
"type": "boolean"
},
"runs_on_pull": {
"type": "boolean"
}
},
"required": [
"definition",
"runs_on_clone",
"runs_on_pull",
"can_replace_working_directory",
"environment_file_write_possible",
"configuration_race"
],
"type": "object"
},
"RequestedScope": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"category": {
"$ref": "#/$defs/Category"
},
"kind": {
"const": "docker_prune",
"type": "string"
}
},
"required": [
"kind",
"category"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "whole_stack",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "service",
"type": "string"
},
"service": {
"type": "string"
}
},
"required": [
"kind",
"service"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "whole_deployment",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "whole_repo",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "whole_build",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "whole_procedure",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "whole_action",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "alerter_test",
"type": "string"
}
},
"required": [
"kind"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "resource_sync",
"type": "string"
},
"selection": {
"$ref": "#/$defs/ExecutionScope"
}
},
"required": [
"kind",
"selection"
],
"type": "object"
}
]
},
"ResolvedTarget": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"kind": {
"const": "existing",
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"id",
"name"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "create",
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object"
}
]
},
"ResourceKind": {
"enum": [
"system",
"swarm",
"server",
"stack",
"deployment",
"build",
"repo",
"procedure",
"action",
"builder",
"alerter",
"resource_sync"
],
"type": "string"
},
"RevisionObservation": {
"properties": {
"evidence": {
"description": "update_commit_hash or the pinned Repo Latest Commit stage. Never inferred\nfrom a configured branch or the resource's mutable current cache.",
"type": "string"
},
"revision": {
"type": "string"
}
},
"required": [
"revision",
"evidence"
],
"type": "object"
},
"SourceSummary": {
"properties": {
"branch": {
"type": "string"
},
"configured_commit": {
"type": [
"string",
"null"
]
},
"credential_reference_configured": {
"type": "boolean"
},
"https": {
"type": "boolean"
},
"provider": {
"type": "string"
},
"repo": {
"type": "string"
}
},
"required": [
"repo",
"provider",
"branch",
"configured_commit",
"https",
"credential_reference_configured"
],
"type": "object"
},
"SourceSummary2": {
"properties": {
"configured_branch": {
"type": "string"
},
"configured_commit": {
"type": [
"string",
"null"
]
},
"configured_https": {
"type": "boolean"
},
"credential_reference_configured": {
"type": "boolean"
},
"custom_build_path_configured": {
"type": "boolean"
},
"custom_dockerfile_path_configured": {
"type": "boolean"
},
"kind": {
"type": "string"
},
"linked_repo_id": {
"type": [
"string",
"null"
]
},
"provider": {
"type": "string"
},
"repo": {
"type": "string"
},
"selector_evidence": {
"type": "string"
}
},
"required": [
"kind",
"selector_evidence",
"linked_repo_id",
"repo",
"provider",
"configured_branch",
"configured_https",
"configured_commit",
"credential_reference_configured",
"custom_build_path_configured",
"custom_dockerfile_path_configured"
],
"type": "object"
},
"StageEvent": {
"properties": {
"event": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"name",
"event"
],
"type": "object"
},
"StageSummary": {
"properties": {
"enabled": {
"type": "boolean"
},
"execution_count": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"executions": {
"items": {
"$ref": "#/$defs/StepSummary"
},
"type": "array"
},
"executions_complete": {
"type": "boolean"
},
"index": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"name": {
"type": "string"
}
},
"required": [
"index",
"name",
"enabled",
"executions",
"execution_count",
"executions_complete"
],
"type": "object"
},
"StepSummary": {
"properties": {
"admin_only_to_configure": {
"type": "boolean"
},
"arguments_configured": {
"type": "boolean"
},
"dynamic_targets": {
"type": "boolean"
},
"enabled": {
"type": "boolean"
},
"index": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"operation": {
"type": "string"
},
"reference": {
"anyOf": [
{
"$ref": "#/$defs/Reference"
},
{
"type": "null"
}
]
},
"writable": {
"type": "boolean"
}
},
"required": [
"index",
"enabled",
"operation",
"reference",
"arguments_configured",
"admin_only_to_configure",
"dynamic_targets",
"writable"
],
"type": "object"
},
"SubmissionReceipt": {
"additionalProperties": false,
"properties": {
"automatic_resubmission": {
"type": "boolean"
},
"configured_effects": {
"$ref": "#/$defs/ConfiguredEffects"
},
"core_operation": {
"description": "Core uses a distinct operation variant for a named-service execution.",
"type": "string"
},
"latest_update": {
"anyOf": [
{
"$ref": "#/$defs/UpdateDetail"
},
{
"type": "null"
}
],
"description": "Latest bounded update observation; acknowledgement is retained on read failure."
},
"observation_error": {
"anyOf": [
{
"$ref": "#/$defs/AppError"
},
{
"type": "null"
}
]
},
"operation": {
"$ref": "#/$defs/WorkloadOperation"
},
"requested_scope": {
"$ref": "#/$defs/RequestedScope"
},
"resource": {
"$ref": "#/$defs/OperationResource"
},
"submission": {
"$ref": "#/$defs/SubmissionState"
},
"submission_error": {
"anyOf": [
{
"$ref": "#/$defs/AppError"
},
{
"type": "null"
}
]
},
"submission_window": {
"$ref": "#/$defs/SubmissionWindow"
},
"update_id": {
"type": [
"string",
"null"
]
}
},
"required": [
"resource",
"requested_scope",
"operation",
"core_operation",
"submission",
"submission_window",
"update_id",
"latest_update",
"observation_error",
"submission_error",
"configured_effects",
"automatic_resubmission"
],
"type": "object"
},
"SubmissionState": {
"enum": [
"accepted",
"rejected",
"unknown"
],
"type": "string"
},
"SubmissionWindow": {
"additionalProperties": false,
"properties": {
"ended_ts": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"started_ts": {
"description": "Local UTC Unix milliseconds; absent if the local clock cannot provide it.",
"format": "int64",
"type": [
"integer",
"null"
]
}
},
"required": [
"started_ts",
"ended_ts"
],
"type": "object"
},
"SyncBatchReport": {
"properties": {
"phase": {
"type": "string"
},
"stage": {
"type": "string"
},
"success_reported": {
"type": "boolean"
}
},
"required": [
"stage",
"phase",
"success_reported"
],
"type": "object"
},
"SyncObservation": {
"properties": {
"batches": {
"items": {
"$ref": "#/$defs/SyncBatchReport"
},
"type": "array"
},
"child_deployment_success_verified": {
"type": "boolean"
},
"deployment_batches_failed": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"evidence_incomplete": {
"type": "boolean"
},
"evidence_limit": {
"type": "string"
},
"no_changes_reported": {
"type": "boolean"
},
"partial_changes_possible": {
"type": "boolean"
},
"raw_output_omitted": {
"type": "boolean"
},
"resource_batches_failed": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"workload_health_verified": {
"type": "boolean"
}
},
"required": [
"batches",
"resource_batches_failed",
"deployment_batches_failed",
"no_changes_reported",
"evidence_incomplete",
"raw_output_omitted",
"partial_changes_possible",
"child_deployment_success_verified",
"workload_health_verified",
"evidence_limit"
],
"type": "object"
},
"TestObservation": {
"properties": {
"core_report": {
"type": "string"
},
"evidence_limit": {
"type": "string"
},
"independently_observed_receipt": {
"type": "string"
},
"provider_attempt": {
"type": "string"
}
},
"required": [
"core_report",
"provider_attempt",
"independently_observed_receipt",
"evidence_limit"
],
"type": "object"
},
"UpdateDetail": {
"additionalProperties": false,
"properties": {
"end_ts": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"id": {
"type": "string"
},
"observed_action_result": {
"anyOf": [
{
"$ref": "#/$defs/ActionObservation"
},
{
"type": "null"
}
]
},
"observed_alerter_test": {
"anyOf": [
{
"$ref": "#/$defs/TestObservation"
},
{
"type": "null"
}
]
},
"observed_build_result": {
"anyOf": [
{
"$ref": "#/$defs/BuildObservation"
},
{
"type": "null"
}
]
},
"observed_procedure_result": {
"anyOf": [
{
"$ref": "#/$defs/ProcedureObservation"
},
{
"type": "null"
}
]
},
"observed_revision": {
"anyOf": [
{
"$ref": "#/$defs/RevisionObservation"
},
{
"type": "null"
}
]
},
"observed_sync_result": {
"anyOf": [
{
"$ref": "#/$defs/SyncObservation"
},
{
"type": "null"
}
]
},
"operation": {
"type": "string"
},
"outcome": {
"$ref": "#/$defs/UpdateOutcome"
},
"stages": {
"description": "At most 20 stages, failures first, preserving original index/order within each group.",
"items": {
"$ref": "#/$defs/UpdateStage"
},
"type": "array"
},
"stages_truncated": {
"type": "boolean"
},
"start_ts": {
"description": "Unix milliseconds.",
"format": "int64",
"type": "integer"
},
"status": {
"$ref": "#/$defs/UpdateStatus"
},
"target": {
"$ref": "#/$defs/HistoryTarget"
}
},
"required": [
"id",
"operation",
"start_ts",
"target",
"status",
"outcome",
"end_ts",
"stages",
"stages_truncated"
],
"type": "object"
},
"UpdateOutcome": {
"enum": [
"queued",
"running",
"succeeded",
"failed"
],
"type": "string"
},
"UpdateStage": {
"additionalProperties": false,
"properties": {
"end_ts": {
"format": "int64",
"type": "integer"
},
"index": {
"description": "Original zero-based index, even when failed stages are prioritized.",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"stage": {
"type": "string"
},
"stage_truncated": {
"type": "boolean"
},
"start_ts": {
"format": "int64",
"type": "integer"
},
"stderr": {
"description": "Bounded redacted stderr only; command and stdout are never returned.",
"type": "string"
},
"stderr_truncated": {
"type": "boolean"
},
"success": {
"type": "boolean"
}
},
"required": [
"index",
"stage",
"stage_truncated",
"success",
"start_ts",
"end_ts",
"stderr",
"stderr_truncated"
],
"type": "object"
},
"UpdateStatus": {
"enum": [
"queued",
"running",
"complete"
],
"type": "string"
},
"WorkloadKind": {
"enum": [
"server",
"stack",
"deployment",
"repo",
"build",
"procedure",
"action",
"resource_sync",
"alerter"
],
"type": "string"
},
"WorkloadOperation": {
"enum": [
"prune",
"deploy",
"start",
"stop",
"restart",
"clone",
"pull",
"run",
"cancel",
"test"
],
"type": "string"
}
}
}