Documentation
Compute plans and streams
View .mdOpenAPI

Get a compute plan

GEThttps://weights.fyi/run/v1/compute/plans/{plan_id}scope: read
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 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 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

NameWhereRequiredMeaning
AuthorizationheaderyesBearer token with read.
plan_idpathyesThe 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.

FieldMeaning
plan_id, operation_keyStrings identifying the plan and its original submission.
tenancyNormalised 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).
scheduleNormalised window and policies from admission, including any promotion changes.
stateLifecycle state: queued, waiting_price, ready_to_wake, waiting_capacity, executing, completed, failed or cancelled. The first four are waits and cost nothing.
outcomeWhat 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.
coveragePack 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.
continuousBoolean: at least one stage is a continuous stream, so completed is not final: new packs reopen it.
stagesArray of stage receipts described below.
lp_summaryPlanning estimates and allocation details. Estimates are neither completion evidence nor final charges.
last_event_seqInteger: this plan's greatest event sequence, or zero without events.
total_accrued_cost_usd_microsInteger: sum of stage accrued costs; 1,000,000 units equal one US dollar.
spend_usd_microsInteger: what counts against the plan's budget so far, per stage the larger of its committed charges and its accrued cost.
accountingThe 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, finalopen 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.readyBoolean: the plan is not terminal and at least one stage is executing or has a lease ready.
readiness.stages_total, stages_ready, stages_terminalInteger stage counts: all stages, stages executing or lease-ready, and completed, failed or cancelled stages.
readiness.active_workersInteger: distinct workers holding an unexpired lease on this plan's stages or packs. Their identities are not shown.
readiness.capacityThis 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, needsAuthored identifier, qualified stream identifier and dependency identifiers.
stages[].kind, modelWorkload 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_planPresent when declared on the stage's workload: training objective (sft, dpo, specialist_heads), bound dataset ID (ds_...), and upstream checkpoint stage/plan dependency.
stages[].stateCurrent stage state, including dependency and scheduling waits, readiness, active execution and terminal outcomes.
stages[].outcomeThe stage's own delivery outcome, in the words of outcome above.
stages[].failureNull, 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, hard_deadline_expired, standing_window_closed, pack_dead_lettered.
stages[].checkpoint_uriCompleted result's output_checkpoint_uri, or null.
stages[].packs_total, packs_completed, items_completed, steps_completedInteger progress counters.
stages[].stream_sealed, continuousBooleans: 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_incompleteInteger counts of the stage's packs in each state.
stages[].accrued_cost_usd_microsInteger cost accrued by the stage.
stages[].spend_usd_micros, committed_usd_micros, reserved_usd_micros, open_reservations, last_receipt_seqThe stage's share of accounting.
stages[].mounts, datasetsPresent 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 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

StatusCodeMeaning
401unauthorized, invalid_token, token_revoked, token_expiredSupply a valid token.
403scope_required, account_suspendedToken lacks read, or the account is suspended.
404compute_plan_not_foundNo 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