II.
HookSurface JSON
Structured · livehook-surface:claude.stop-failure
StopFailure (Claude Code) json
Inspect the normalized record payload exactly as the atlas UI reads it.
{
"id": "hook-surface:claude.stop-failure",
"_kind": "HookSurface",
"_file": "channels-hooks/hook-surfaces/native/claude-code-extended-hooks.yaml",
"_cluster": "channels-hooks",
"attributes": {
"eventName": "StopFailure (Claude Code)",
"displayName": "StopFailure (Claude Code)",
"kind": "native",
"originVendor": "Anthropic",
"direction": "post",
"blocking": false,
"family": "observer",
"payloadSchema": {
"type": "object",
"required": [
"hook_event_name",
"error_type",
"error_message"
],
"properties": {
"hook_event_name": {
"type": "string",
"const": "StopFailure"
},
"error_type": {
"type": "string",
"enum": [
"rate_limit",
"authentication_failed",
"oauth_org_not_allowed",
"billing_error",
"invalid_request",
"server_error",
"max_output_tokens",
"unknown"
]
},
"error_message": {
"type": "string"
}
}
},
"description": "Fires when a turn ends due to an API error (rate limit, auth, billing,\nserver error, etc.). Non-blocking — for telemetry / alerting only.\nOutput and exit code are ignored. Matcher accepts the error_type\nenum value.\n"
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "agent-runtime-impl:claude-code.runtime@1.x",
"to": "hook-surface:claude.stop-failure",
"kind": "exposes",
"attributes": {}
},
{
"from": "hook-mapping:claude-stop-failure",
"to": "hook-surface:claude.stop-failure",
"kind": "maps_hook",
"attributes": {}
}
]
}