---
title: "Reconcile task deadline"
method: POST
path: "/api/v1/agent/persistent/scheduler/reconcile_deadline"
tags: ["agent"]
---

# Reconcile task deadline

`POST /api/v1/agent/persistent/scheduler/reconcile_deadline`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/agent/persistent/scheduler/reconcile_deadline`
- Auth: HTTP bearer

Verify the original attached workflow chain and current private-state access, then atomically fail an expired nonterminal task while preserving its continuation and unresolved usage/actions. Returns only bounded snapshot metadata, never work authority or proof of executor drainage. Paused or revoked work grants cannot authorize execution but do not prevent authorized state repair.

## Request body

- object
  - `organization_id` string, required
  - `agent_id` string, required
  - `task_id` string, required
  - `first_execution_run_id` string, required

## Response `200`

No-store trusted Activity response

- PersistentAgentTaskWorkerSnapshot
  - `organization_id` string, required
  - `agent_id` string, required
  - `task_id` string, required
  - `first_execution_run_id` string, required
  - `head` string, required
  - `state` object, required
    - `schema` 1, required
    - `task_id` string, required
    - `status` 'queued' | 'running' | 'yielded' | 'waiting' | 'blocked' | 'completed' | 'failed' | 'cancelled', required
    - `generation` integer, required
    - `execution_sequence` integer, required
    - `segment_sequence` integer, required
    - `checkpoint_sequence` integer, required
    - `claim_id` string, nullable, required
    - `wait_id` string, nullable, required
    - `result_id` string, nullable, required
    - `reason` string, nullable, required
  - `deadline_at` string, required
  - `conversation_id` string, required
  - `wake_at` string, date-time: Future canonical timer wait; absent when no timer is pending or the due timer cannot resume.
  - `resume_segment` true

## Other responses

- `401`: Invalid platform scheduler credential
- `403`: Current task authority unavailable
- `404`: Task or organization unavailable
- `409`: Canonical attachment or generation requires reconciliation
- `422`: Invalid or oversized request
- `502`: Bad gateway
- `503`: State or scheduler configuration temporarily unavailable

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/74298a24e040?raw)
