Skip to content

Incident programs: acknowledge, open, resolve

The Incident Verbs acknowledge, open, resolve as MCP do programs, with inputs, result, refusals and an example.

Reference for Incident, one group of Incident programs.

Incident.acknowledge

Acknowledge records that an on-call Worker owns an open Incident and stops its escalation. Verb page.

Text
do: return await $.Incident.acknowledge(input)

Emits Incident.acknowledged.

Inputs

InputTypeRequiredDescription
incidentIncidentrequiredThe open Incident.

Returns

OutputTypeRequiredDescription
incidentIncidentrequiredThe acknowledged Incident.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Incident.acknowledge({ incident: 'incident_2XOYkIEno0' })"
  }
}

Incident.open

Open starts an Incident from a failing Monitor, an error spike or a Metric past its threshold, and pages the on-call Worker. Verb page.

Text
do: return await $.Incident.open(input)

Emits Incident.opened.

Inputs

InputTypeRequiredDescription
severitystringrequiredsev1 stops Customers, sev2 degrades a core path, sev3 degrades one feature.
causestringrequiredThe Monitor, error group or Metric that tripped it.

Returns

OutputTypeRequiredDescription
incidentIncidentrequiredThe open Incident.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Incident.open({ severity: 'sev1', cause: 'Example cause' })"
  }
}

Incident.resolve

Resolve closes an Incident once its Monitors pass, posts the resolution to the status page and opens the review Task. Verb page.

Text
do: return await $.Incident.resolve(input)

Emits Incident.resolved.

Inputs

InputTypeRequiredDescription
incidentIncidentrequiredThe Incident to close.
summarytextrequiredWhat failed and what fixed it.

Returns

OutputTypeRequiredDescription
incidentIncidentrequiredThe resolved Incident.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Incident.resolve({ incident: 'incident_2XOYkIEno0', summary: 'Example summary' })"
  }
}