const url = ' https://example.com/api/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/backlog/ranking-diagnostics ' ;
const options = {method: ' GET ' , headers: {cookie: ' supacloud_session=<supacloud_session> ' }} ;
const response = await fetch ( url , options );
const data = await response . json ();
--url https://example.com/api/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/backlog/ranking-diagnostics \
--cookie supacloud_session=<supacloud_session>
Returns the latest recorded ranking sweep of the project: whether the learned
order or the FIFO strategy decided it, the fallback reason when the learned
order was unavailable, and the ranked admission-time candidates with their
score components. It also returns the exact model-attribution coverage of the
project’s recent agent runs and the workspace owner’s recent reorders and
overrides. A ranked candidate is an admission-time decision, not a claim that
it launched. Only a workspace owner or admin may read it.
Media type application/json
object candidate_count
integer | null format: int32
Counts cover at most the most recent 1,000 exact project agent runs.
object complete_reported_cost required
exact_selection_links required
observed_execution_duration required
original_terminal_receipts required
reported_model_evidence required
sampled_agent_runs required
decided_at
string | null format: date-time
outcome
One of:
string
Allowed values: learned_order fifo_strategy fallback_unavailable fallback_error
owner_corrections required
The workspace owner’s recent reorders and overrides, newest first (at most
50). A labelled signal for ranking, never a weight.
Array<object>
One recorded owner correction of the backlog order.
object after_latest_sweep required
True when it came after the latest recorded sweep: it overrides that order.
boolean
from_priority
integer | null format: int32
What an owner correction did to the order. Priority 0 ranks highest.
string
Allowed values: raised lowered prioritized cleared moved dispatched_ahead
to_priority
integer | null format: int32
Ordered admission-time candidates. This is not a claim that they launched.
Array<object>
object dependency_unlock required
priority
integer | null format: int32
reason
One of:
string
Allowed values: none fifo_strategy evaluation_error policy_unavailable unsupported_workflow capacity_unavailable candidate_inputs_unavailable routing_heads_missing dependency_limit stale_scope unsupported_tier corpus_missing digest_missing corpus_invalid digest_mismatch predictor_unavailable profile_changed prediction_unavailable future_created_at invalid_ranking
string
Allowed values: no_sweeps recorded
sweep_id
string | null format: uuid
weight_evaluation
One of:
How the weight set of the most recent recorded learned order (applied or
shadow) agrees with the owner corrections that overrode a recorded order. A
report only: it never adopts a weight set. None means no learned order is
recorded yet.
object agreement
agreed / pairs; None when no correction implied a pair.
number | null format: double
Corrections with a direction and an earlier recorded order containing the item.
integer format: int32
orders_considered required
Recorded learned orders the corrections were matched against (at most 100).
integer format: int32
Lane moves, and corrections with no earlier recorded order.
integer format: int32
The explicit, versioned weights of the six ranking score terms, each in [0,1].
object dependency_unlock required
Example
"outcome" : " learned_order " ,
Media type application/json
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object cap
One of:
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object retry_after_seconds
Seconds until a retry can pass, or null when it never will for this session.
integer | null format: int64
Calls already counted in the layer.
integer format: int64
Machine-readable, stable error code.
string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object The entitlement feature key that was hit, e.g. apps.max_count.
string
The plan’s limit for this key.
integer format: int64
Where to send the user to upgrade.
string
Current usage (count or bytes, per the key).
integer format: int64
Human-readable message (the server’s English text; the client may localize
by code).
string
launch
One of:
Present on a launch refusal (400/403/409) — the structured facts only the
refusing class can fill: occupancy, exhausted budget, or required labels.
object active
Weighted workspace slots already held by starting/running agent runs.
integer | null format: int64
cap_usd
The budget cap that refused.
number | null format: double
effective_spend_usd
Effective spend of the refusing budget scope (spend + in-flight reservations).
number | null format: double
max
The workspace’s configured agent-concurrency cap.
integer | null format: int64
provider
The provider whose budget cap refused; absent for the workspace-wide cap.
string | null
required_labels
Runner labels a fail-policy placement required and no runner offered.
Array<string>
Media type application/json
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object cap
One of:
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object retry_after_seconds
Seconds until a retry can pass, or null when it never will for this session.
integer | null format: int64
Calls already counted in the layer.
integer format: int64
Machine-readable, stable error code.
string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object The entitlement feature key that was hit, e.g. apps.max_count.
string
The plan’s limit for this key.
integer format: int64
Where to send the user to upgrade.
string
Current usage (count or bytes, per the key).
integer format: int64
Human-readable message (the server’s English text; the client may localize
by code).
string
launch
One of:
Present on a launch refusal (400/403/409) — the structured facts only the
refusing class can fill: occupancy, exhausted budget, or required labels.
object active
Weighted workspace slots already held by starting/running agent runs.
integer | null format: int64
cap_usd
The budget cap that refused.
number | null format: double
effective_spend_usd
Effective spend of the refusing budget scope (spend + in-flight reservations).
number | null format: double
max
The workspace’s configured agent-concurrency cap.
integer | null format: int64
provider
The provider whose budget cap refused; absent for the workspace-wide cap.
string | null
required_labels
Runner labels a fail-policy placement required and no runner offered.
Array<string>
Media type application/json
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object cap
One of:
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object retry_after_seconds
Seconds until a retry can pass, or null when it never will for this session.
integer | null format: int64
Calls already counted in the layer.
integer format: int64
Machine-readable, stable error code.
string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object The entitlement feature key that was hit, e.g. apps.max_count.
string
The plan’s limit for this key.
integer format: int64
Where to send the user to upgrade.
string
Current usage (count or bytes, per the key).
integer format: int64
Human-readable message (the server’s English text; the client may localize
by code).
string
launch
One of:
Present on a launch refusal (400/403/409) — the structured facts only the
refusing class can fill: occupancy, exhausted budget, or required labels.
object active
Weighted workspace slots already held by starting/running agent runs.
integer | null format: int64
cap_usd
The budget cap that refused.
number | null format: double
effective_spend_usd
Effective spend of the refusing budget scope (spend + in-flight reservations).
number | null format: double
max
The workspace’s configured agent-concurrency cap.
integer | null format: int64
provider
The provider whose budget cap refused; absent for the workspace-wide cap.
string | null
required_labels
Runner labels a fail-policy placement required and no runner offered.
Array<string>