> ## Documentation Index
> Fetch the complete documentation index at: https://weights.fyi/run/llms.txt

# GET /v1/compute/plans/{plan_id}

```text
GET https://weights.fyi/run/v1/compute/plans/{plan_id}
Authorization: Bearer <token>                    scope: read
```

**Available since:** 2026-10-28: included in this build; see [What is live](/run/docs/what-is-live.md) for deployment status.

**Answer time:** synchronous; reads the current receipt without waiting for progress. A read of a waiting session plan may also wake its stages, as described below.

Returns a ComputePlan owned by the calling account, with its normalised tenancy and schedule, stage progress, delivery outcome, budget accounting and any failure detail. Stages appear in submission order. This same receipt shape is returned by admission, promotion, cancellation, completion and failure; admission additionally returns `source_probe`.

Use `last_event_seq` with [compute events](/run/docs/reference/compute-events.md) to follow later changes. Stage identifiers are local to the plan; `stream_id` combines the plan and stage as `plan_id~stage_id` for unambiguous stream calls. An absent plan and another account's plan both return `404`.

## Request

| Name | Where | Required | Meaning |
|---|---|---|---|
| `Authorization` | header | yes | Bearer token with `read`. |
| `plan_id` | path | yes | The identifier used at admission. |

No body or query parameters are required.

## Return value

**200 OK** with an object. The table describes the receipt's principal fields; planning details vary with the work.

| Field | Meaning |
|---|---|
| `plan_id`, `operation_key` | Strings identifying the plan and its original submission. |
| `tenancy` | Normalised object: `tenant_id`, `org_slug`, `platform`, `container_id`, `actor_email`, `colocation_policy`, `privacy_rung`, `max_budget_usd_micros`, and optional `funding_mode` (defaults to `plan_cap`). |
| `schedule` | Normalised window and policies from [admission](/run/docs/reference/compute-plans-create.md), including any promotion changes. |
| `state` | Lifecycle state: `queued`, `waiting_price`, `ready_to_wake`, `waiting_capacity`, `executing`, `completed`, `failed` or `cancelled`. The first four are waits and cost nothing. |
| `outcome` | What the packs delivered, beside the lifecycle: `in_progress`; `complete`; `incomplete_dead_letter`, `incomplete_accepted_loss` or `incomplete_expired` for a plan that `completed` over lost, accepted or expired packs; `dead_lettered` for a live plan that cannot progress until its dead letters are retried or accepted; `failed`; `cancelled`. |
| `coverage` | Pack counts summed over stages: `packs_total`, `packs_completed`, `packs_open`, `packs_dead_lettered`, `packs_dead_letter_accepted`, `packs_expired_incomplete`, `packs_cancelled`. `packs_dead_lettered`, `packs_dead_letter_accepted` and `packs_expired_incomplete` are repeated at the top level. |
| `continuous` | Boolean: at least one stage is a continuous stream, so `completed` is not final: new packs reopen it. |
| `stages` | Array of stage receipts described below. |
| `lp_summary` | Planning estimates and allocation details. Estimates are neither completion evidence nor final charges. |
| `last_event_seq` | Integer: this plan's greatest event sequence, or zero without events. |
| `total_accrued_cost_usd_micros` | Integer: sum of stage accrued costs; 1,000,000 units equal one US dollar. |
| `spend_usd_micros` | Integer: what counts against the plan's budget so far, per stage the larger of its committed charges and its accrued cost. |
| `accounting` | The budget in one object, `schema: "weights.plan-accounting/v1"`. `funding_mode` identifies its authority; `operator_epoch` reports null budget and remaining amounts while retaining spend and reservation figures. `budget_usd_micros`: the tenancy's `max_budget_usd_micros`, one ceiling for every stage that does not reset daily. `spend_usd_micros`: as above. `committed_usd_micros`: charges whose receipts are committed. `reserved_usd_micros`, `open_reservations`: credit set aside for work in flight (a leased pack, an admitted chat turn), and how many such reservations are open. `remaining_usd_micros`: budget less spend and reservations, never below zero. `last_receipt_seq`: cursor of the newest counted receipt, or null. `campaign_only_spend_usd_micros`, `campaign_only_reserved_usd_micros`: usage that names the plan but no stage. |
| `accounting.state`, `final` | `open` while the plan can still commit work; `settling` once it has ended with reservations still open, so a charge may still land; `final` (`final: true`) when it has ended and nothing more can be charged. |
| `readiness.ready` | Boolean: the plan is not terminal and at least one stage is executing or has a lease ready. |
| `readiness.stages_total`, `stages_ready`, `stages_terminal` | Integer stage counts: all stages, stages executing or lease-ready, and completed, failed or cancelled stages. |
| `readiness.active_workers` | Integer: distinct workers holding an unexpired lease on this plan's stages or packs. Their identities are not shown. |
| `readiness.capacity` | This plan's capacity request, or null before one is made: `state` (`requested`, `serving`, `held` while the price or window does not allow it, `released`), `fleet_width_g`, `until_ms`, `updated_at_ms`. |
| `stages[].stage_id`, `stream_id`, `needs` | Authored identifier, qualified stream identifier and dependency identifiers. |
| `stages[].kind`, `model` | Workload kind (`finetune`, `classifier_drain`, `llm_batch_drain`, `embedding_drain`, `scavenge_label`, `live_session_pool`) and model identifier. |
| `stages[].objective`, `dataset_id`, `reload_checkpoint_from_stage`, `reload_checkpoint_from_plan` | Present when declared on the stage's workload: training objective (`sft`, `dpo`, `specialist_heads`), bound dataset ID (`ds_...`), and upstream checkpoint stage/plan dependency. |
| `stages[].state` | Current stage state, including dependency and scheduling waits, readiness, active execution and terminal outcomes. |
| `stages[].outcome` | The stage's own delivery outcome, in the words of `outcome` above. |
| `stages[].failure` | Null, or why the stage ended `failed` or `cancelled`: `status`, `reason` and `error`, plus `source_stage_id` on a stage cancelled because one it needs failed (`reason: "dependency_failed"`). Other values: the harness's own text from [a failure report](/run/docs/reference/compute-stages-fail.md), `hard_deadline_expired`, `standing_window_closed`, `pack_dead_lettered`. |
| `stages[].checkpoint_uri` | Completed result's `output_checkpoint_uri`, or null. |
| `stages[].packs_total`, `packs_completed`, `items_completed`, `steps_completed` | Integer progress counters. |
| `stages[].stream_sealed`, `continuous` | Booleans: whether the stream is closed to new packs, and whether it is continuous. On a continuous stream `packs_total` is what was registered so far, not a target; read `packs_pending`, `packs_lazy`, `packs_leased`, `packs_completed` and `packs_dead_lettered` as its live queue. |
| `stages[].packs_pending`, `packs_lazy`, `packs_leased`, `packs_cancelled`, `packs_dead_lettered`, `packs_dead_letter_accepted`, `packs_expired_incomplete` | Integer counts of the stage's packs in each state. |
| `stages[].accrued_cost_usd_micros` | Integer cost accrued by the stage. |
| `stages[].spend_usd_micros`, `committed_usd_micros`, `reserved_usd_micros`, `open_reservations`, `last_receipt_seq` | The stage's share of `accounting`. |
| `stages[].mounts`, `datasets` | Present when declared directly on the stage or workload; stage declarations take precedence. |

The receipt does not include the full workload or arbitrary completion results; [events](/run/docs/reference/compute-events.md) carry the lifecycle. Completion is not delivery, and cost is not commitment: read `outcome` beside `state`, and `accounting` beside the accrued cost.

A read never checks sources again and never asks for capacity. It can advance one thing. For a plan whose every stage is a `live_session_pool` under `awow_harness_lease`, a read that finds every model of the plan ready with free slots wakes the waiting stages that fit, exactly as a completion would; polling such a plan can therefore start it. Every other plan is returned unchanged.

## Errors

| Status | Code | Meaning |
|---|---|---|
| `401` | `unauthorized`, `invalid_token`, `token_revoked`, `token_expired` | Supply a valid token. |
| `403` | `scope_required`, `account_suspended` | Token lacks `read`, or the account is suspended. |
| `404` | `compute_plan_not_found` | No plan with this identifier belongs to the account. |

## Examples

```sh
curl -s https://weights.fyi/run/v1/compute/plans/PLAN_ID \
  -H "Authorization: Bearer $WEIGHTS_API_KEY"
```

Selected fields from a completed plan:

```json
{"plan_id":"example-plan","operation_key":"example-1","state":"completed","outcome":"complete","coverage":{"packs_total":0,"packs_completed":0,"packs_open":0,"packs_dead_lettered":0,"packs_dead_letter_accepted":0,"packs_expired_incomplete":0,"packs_cancelled":0},"stages":[{"stage_id":"sessions","stream_id":"example-plan~sessions","state":"completed","outcome":"complete","failure":null,"needs":[],"checkpoint_uri":null,"packs_total":0,"packs_completed":0,"items_completed":0,"steps_completed":0,"accrued_cost_usd_micros":1200,"spend_usd_micros":1200,"committed_usd_micros":1200,"reserved_usd_micros":0,"open_reservations":0}],"last_event_seq":42,"total_accrued_cost_usd_micros":1200,"spend_usd_micros":1200,"accounting":{"schema":"weights.plan-accounting/v1","budget_usd_micros":1000000,"spend_usd_micros":1200,"committed_usd_micros":1200,"reserved_usd_micros":0,"open_reservations":0,"remaining_usd_micros":998800,"state":"final","final":true}}
```

## History

- 2026-10-28: documented account-scoped receipts and stage progress.
- 2026-10-29: documented `readiness`.
- 2026-11-16: documented `outcome`, `coverage`, `accounting`, `stages[].failure` and the readiness wake a read can cause; removed the claims that a read never advances scheduling and that failure detail is absent.

## See also

- [POST /v1/compute/plans](/run/docs/reference/compute-plans-create.md)
- [GET /v1/compute/events](/run/docs/reference/compute-events.md)
- [POST /v1/compute/plans/{plan_id}/promote](/run/docs/reference/compute-plans-promote.md)
- [POST /v1/compute/plans/{plan_id}/cancel](/run/docs/reference/compute-plans-cancel.md)
- [POST /v1/compute/plans/{plan_id}/consolidate](/run/docs/reference/compute-plans-consolidate.md)
