/orchestra:check-routing-healthfrom orchestra
Reads Orchestra reporting endpoints to diagnose routing errors, provider health, error rates, and gateway spend. Enables self-service diagnostics without team involvement.
Ships in orchestra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For a historical workload comparison organized by user and task, follow
../ramp-and-verify/references/review-rollout.md.
It complements aggregate health with exact private request provenance and does
not authorize traffic changes.
Use this worker when the developer wants to know whether Orchestra routing is causing errors, which workloads are routed, whether a declared route is really taking effect, or where their gateway usage and spend goes. These are read-only hosted endpoints that answer "is this us?" without asking the team.
Checked against existing skills: use-understudy-gateway owns auth, routing
setup, and route writes; ramp-and-verify owns production traffic changes.
This skill owns read-only diagnostic queries against the reporting surface and
does not write routes or change traffic.
These endpoints are read-only and carry no side effects. They do not change
routes, traffic percentages, or provider configuration. Do not print the full
sk_* key in output — mask it to the last 4 characters. Prefer the first-class
orchestra reporting commands, which resolve the signed-in organization and
project without exposing credentials to a child process.
Everything you say to the user must use the canonical routing vocabulary:
route_shares): primary — the customer-requested
model was served (includes catalog-by-name); understudy — an
Orchestra-configured route moved the traffic; fallback — a recovery
re-issue after a routed attempt failed.declared): pin | steer | none, plus the split
percent (split_pct).anthropic | openai | managed — nothing else.understudy-managed is a managed model whose catalog
mapping hasn't synced yet — a fail-closed placeholder, not an error.routing-status endpoint) still emit some of these
words — translate, don't echo.The developer must be signed in (orchestra status --json shows
signed_in: true) and have a project configured. If not, route to
../use-understudy-gateway/SKILL.md for
auth setup first.
Prefer the installed orchestra binary. If it is unavailable inside a repo
checkout, run through the package script:
npm run build
node dist/bin.js status --json
Confirm auth and project:
orchestra status --json
Extract org_id and project_slug from the output. Resolve the project
slug to a project id via orchestra projects list --json if needed — the
API path requires the proj_... id, not the slug. If not signed in, route
to ../use-understudy-gateway/SKILL.md.
Ground in volume first — one org-wide call. Before analyzing or recommending anything, rank workloads by spend and request count across the whole org:
orchestra reporting summary --window 7d --group-by workload --json
Rank by customer_cost_usd and requests (group_by defaults to
project — use that first when the org has many projects, then
workload). For a tight incident window add --granularity minute (ranges
up to 24h); drill down with the project_id / workload_id filters.
Every statement you make must be grounded in that volume ranking — lead
with the workloads that carry the spend and traffic. Do not anchor on
low-leverage generic advice about workloads that barely run.
Organization reporting has no pricing-coverage block. Use
orchestra reporting cost-breakdown before treating the cost ranking as
complete enough for an exact billing claim.
Pull the unified per-workload view:
orchestra reporting workload-status --project <project> --window 24h --json
One row per workload: status (healthy | degraded | idle), the declared
config, observed route_shares, rerouted_pct, served_models,
error_rate, and example_request_ids. Field details in
reference.md.
Interpret, in priority order of the volume ranking from step 2:
status: degraded — the 5xx rate crossed the threshold. Report the
workload-level error_rate and the example_request_ids. Do NOT name a
failing upstream from served_models[] — it carries request shares only,
no per-provider error counts, so traffic labels cannot say which provider
produced the 5xxs. Leave provider attribution to the Orchestra team and
quote the request ids.declared.split_pct is 0–100; route_shares.understudy is a 0..1 share.
Compare split_pct / 100 against the share — never the raw numbers
(declared 30 vs observed 0.28 is healthy, not drift). Flag drift when
split_pct / 100 − route_shares.understudy exceeds ~0.1; the loudest
case is a declared split with an observed share of ~0 — tell the user
plainly their routing config is declared but not actually taking effect.rerouted_pct (= route_shares.understudy) is THE number to watch
during a ramp or cutover — compare it against declared.split_pct / 100.route_shares.fallback means routed attempts are failing and
being recovered — upstream instability on the routed arm.declared.routed: none and errors is provider-side, not routing-caused.If example_request_ids are present, offer to look them up:
orchestra captures get <request-id> --project <project>
If they are empty (or the team needs more ids), pull recent capture
metadata for the project — request ids, timestamps, sizes; metadata only,
capture content stays behind the dashboard login
(reference.md § Captures metadata list):
orchestra captures list --project <project> --limit 25 --json
If any call fails or a number looks wrong, capture the
x-understudy-request-id response header and quote it when reporting the
problem to the Orchestra team — it is the join key on their side.
If issues are found and the developer wants to roll back, route to
../ramp-and-verify/SKILL.md or clear the
route immediately with orchestra routes clear <workload> --project <project>.
Project-scoped alternatives. usage-summary remains the detail tool
within one project when the org-wide view isn't enough: it carries what
org reporting doesn't — the computed cache_read_pct share, a per-group
error_rate, and multi-dimension group_by (e.g. workload,day). Raw
cache token counts are in both:
orchestra reporting usage --project <project> --window 7d --group-by workload,day --json
See reference.md § Usage summary. The
older routing-status, provider-health, and status endpoints still
exist but are deprecated — see the legacy section of
reference.md. Only fall back to them if workload-status
or usage-summary return 404 (an older deployment).
End with:
reference.md — endpoint details, response shapes, field
descriptions, and the deprecated legacy endpoints.../use-understudy-gateway/SKILL.md —
auth setup, route writes, and gateway inference.../ramp-and-verify/SKILL.md — production
ramp/rollback when diagnostics reveal a problem.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub understudylabs/orchestra-agent-tools --plugin orchestra43 skills in this plugin
/audit-verifier-reliabilityUse when deciding whether a verifier reward is trustworthy for optimization./calibrate-difficultyMeasure per-band model headroom from a local, source-bound run artifact before investing in training./capture-evidenceUse when a developer wants to build an eval from their real LLM app before changing anything — "measure how my app is doing today", "build an eval from my workload", "we have no baseline", "is my current model actually good". Turns the workload into auditable local artifacts (harness, metric, frozen splits, baseline); has a public-benchmark on-ramp when no traces exist./compare-model-sweepUse when a developer wants to compare candidate models — any mix of local, gateway, or frontier — on the same eval and see quality, latency, cost, and reliability side by side. "Which model should I use", "sweep these models on my benchmark", "compare Gemma vs the frontier on my eval". To stand up and serve a local candidate first, use run-local-model-lab./compare-trajectoriesUse when you need to know HOW two model runs differ behaviorally on the same tasks, not just THAT one scores higher — per-task trajectory diffing that classifies the gap as persistence/recovery, knowledge, or format/parsing. "why does the bigger model pass these", "is this gap RL-shaped", "diff these two trajectory runs", "where do the trajectories diverge", "what would distillation buy me". The behavioral complement to compare-model-sweep./curate-trajectoriesUse to turn loose per-task trajectory JSONs (a Lilac export or local rollout corpus) into a queryable, provenance-tracked, contamination-safe dataset that hard-blocks any selection leaking frozen dev/holdout into a train/RL/distill pool. "curate my trajectories", "which rollouts are train-safe", "exclude the holdout rows before RL", "is this distill pool contaminated", "make a hash-stamped selection", "stop hand-filtering trajectories in bash".Other plugins' skills for the same job