reconcile_operation
Inspect bounded recent history after a lost execution reply when no update ID is known. Reads only, no operate grant needed. Supply the original resolved target, requested whole/service scope, operation and available local UTC submission-window bounds. Search at most three fixed 100-record history pages and five service-detail lookups, with two-second read and ten-second total budgets; return at most five possible candidates. Core service logs may be absent, inaccessible or ambiguous. Zero candidates never proves non-acceptance, and one candidate never proves attribution: another caller can issue an identical action. Original submission remains unknown; no candidate is selected automatically and execution is never resubmitted. Retry observation for delayed history, not execution. If an acknowledged update ID is known, use get_update/wait_for_update directly. Candidate execution outcome is separate from workload health.
Availability
Available under the default capability policy
The instance’s tool selection and upstream Core permissions also apply. Some inputs require additional grants.
Effect annotations
readOnlyHint—truedestructiveHint—falseidempotentHint—true
Inputs
The registered schema gives field types, alternatives and declared bounds. The description and operator guides also cover checks applied at runtime.
operation- Required · Schema
WorkloadOperation requested_scope- Required · Schema
RequestedScope submission_window- Local UTC Unix milliseconds when available. Omit unknown bounds. Core's
clock/history visibility may differ; no time match proves ownership.
default null target- Required · Schema
RecoveryTarget
Show input JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"operation": {
"$ref": "#/$defs/WorkloadOperation"
},
"requested_scope": {
"$ref": "#/$defs/RequestedScope"
},
"submission_window": {
"anyOf": [
{
"$ref": "#/$defs/SubmissionWindow"
},
{
"type": "null"
}
],
"default": null,
"description": "Local UTC Unix milliseconds when available. Omit unknown bounds. Core's\nclock/history visibility may differ; no time match proves ownership."
},
"target": {
"$ref": "#/$defs/RecoveryTarget"
}
},
"required": [
"target",
"requested_scope",
"operation"
],
"$defs": {
"Category": {
"enum": [
"image",
"container",
"network",
"volume",
"system"
],
"type": "string"
},
"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"
}
]
},
"Kind": {
"enum": [
"server",
"swarm",
"stack",
"deployment",
"build",
"repo",
"builder",
"alerter",
"procedure",
"action",
"resource_sync"
],
"type": "string"
},
"RecoveryTarget": {
"additionalProperties": false,
"properties": {
"id": {
"description": "Original resolved stable ID, never a clipped/redacted display name.",
"pattern": "^[0-9a-fA-F]{24}$",
"type": "string"
},
"kind": {
"$ref": "#/$defs/WorkloadKind"
}
},
"required": [
"kind",
"id"
],
"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"
}
]
},
"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"
]
}
},
"type": "object"
},
"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"
}
}
}Output
The registered output schema covers structured results and tool errors.
RecoveryResultattribution,automatic_resubmission,candidates,candidates_truncated,core_operation,detail_requests,end,evidence_incomplete,excluded_by_scope,history_error,history_requests,operation,original_submission,requested_scope,submission_window,targetAppErrorcandidates,correction,field,kind,message,operation,status
Show output JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"$ref": "#/$defs/RecoveryResult"
},
{
"$ref": "#/$defs/AppError"
}
],
"$defs": {
"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"
},
"Attribution": {
"enum": [
"unconfirmed"
],
"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"
},
"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"
},
"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"
}
]
},
"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"
},
"Kind": {
"enum": [
"server",
"swarm",
"stack",
"deployment",
"build",
"repo",
"builder",
"alerter",
"procedure",
"action",
"resource_sync"
],
"type": "string"
},
"RecoveryCandidate": {
"additionalProperties": false,
"properties": {
"lookup_error": {
"anyOf": [
{
"$ref": "#/$defs/AppError"
},
{
"type": "null"
}
]
},
"scope_evidence": {
"$ref": "#/$defs/ScopeEvidence"
},
"update": {
"$ref": "#/$defs/UpdateSummary"
}
},
"required": [
"update",
"scope_evidence",
"lookup_error"
],
"type": "object"
},
"RecoveryResult": {
"additionalProperties": false,
"properties": {
"attribution": {
"$ref": "#/$defs/Attribution"
},
"automatic_resubmission": {
"type": "boolean"
},
"candidates": {
"items": {
"$ref": "#/$defs/RecoveryCandidate"
},
"type": "array"
},
"candidates_truncated": {
"type": "boolean"
},
"core_operation": {
"type": "string"
},
"detail_requests": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"end": {
"$ref": "#/$defs/SearchEnd"
},
"evidence_incomplete": {
"type": "boolean"
},
"excluded_by_scope": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"history_error": {
"anyOf": [
{
"$ref": "#/$defs/AppError"
},
{
"type": "null"
}
]
},
"history_requests": {
"format": "uint32",
"minimum": 0,
"type": "integer"
},
"operation": {
"$ref": "#/$defs/WorkloadOperation"
},
"original_submission": {
"$ref": "#/$defs/SubmissionState",
"description": "History without a known acknowledgement cannot identify this invocation,\neven when there is only one matching update or the same Core actor."
},
"requested_scope": {
"$ref": "#/$defs/RequestedScope"
},
"submission_window": {
"anyOf": [
{
"$ref": "#/$defs/SubmissionWindow"
},
{
"type": "null"
}
]
},
"target": {
"$ref": "#/$defs/RecoveryTarget"
}
},
"required": [
"target",
"requested_scope",
"operation",
"submission_window",
"core_operation",
"original_submission",
"attribution",
"candidates",
"end",
"history_requests",
"detail_requests",
"excluded_by_scope",
"evidence_incomplete",
"candidates_truncated",
"history_error",
"automatic_resubmission"
],
"type": "object"
},
"RecoveryTarget": {
"additionalProperties": false,
"properties": {
"id": {
"description": "Original resolved stable ID, never a clipped/redacted display name.",
"pattern": "^[0-9a-fA-F]{24}$",
"type": "string"
},
"kind": {
"$ref": "#/$defs/WorkloadKind"
}
},
"required": [
"kind",
"id"
],
"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"
},
"ScopeEvidence": {
"oneOf": [
{
"const": "whole_workload_variant",
"description": "Core's whole-workload operation variant matches; no attribution proof.",
"type": "string"
},
{
"const": "named_service_matches",
"description": "A bounded requested-service log matches; no invocation or isolation proof.",
"type": "string"
},
{
"const": "unavailable",
"description": "Missing/ambiguous Core service log, inaccessible detail or lookup cap.",
"type": "string"
}
]
},
"SearchEnd": {
"enum": [
"history_end",
"page_limit",
"candidate_limit",
"deadline",
"read_failed",
"cancelled"
],
"type": "string"
},
"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"
},
"UpdateOutcome": {
"enum": [
"queued",
"running",
"succeeded",
"failed"
],
"type": "string"
},
"UpdateStatus": {
"enum": [
"queued",
"running",
"complete"
],
"type": "string"
},
"UpdateSummary": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"operation": {
"type": "string"
},
"outcome": {
"$ref": "#/$defs/UpdateOutcome"
},
"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"
],
"type": "object"
},
"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"
}
}
}