/orchestra:ingest-tracesfrom orchestra
Ingests production LLM traces from object-store buckets, provider log exports, or gateway captures for visualization, redacted eval set creation, and cost profiling.
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 workload's before/after rollout comparison and per-user task view, use
../ramp-and-verify/references/review-rollout.md.
Its frozen source ledger preserves every inventoried request; benchmark sample
selection and retry removal in the ingestion flow must not alter rollout counts.
../capture-evidence/SKILL.md assumes a local
harness can be attached and run. Many workloads arrive the other way around:
the traces already exist — in an object-store bucket, a provider log export,
or an Orchestra gateway capture export — and the job is to get them into
local evidence artifacts without leaking anything. This worker does that
transformation: local source → normalized captures → source-history DAG →
machine-proposed benchmark → human judgment, all on the local machine.
When the developer has only a hosted trace_id, acquire its private local
files first with ../export-trace/SKILL.md. This
skill begins after capture files exist locally and does not recreate the hosted
trace-to-request lookup.
This public skill starts with files already present in .understudy/captures/
or another explicitly supplied local directory. It never invokes a privileged
administrative surface, changes tenant membership, or embeds a vendor-specific
downloader. Acquisition is a separate producer; this skill owns processing.
privacy.local_only: true and
privacy.upload_performed: false, and is itself review-gated before any
external reference..understudy/ (gitignored).Identify the source shape first:
Object-store bucket (R2/S3-compatible): list keys with the developer's
existing tooling (aws s3, rclone, wrangler); pull to a local staging
dir.
Provider log export: JSONL/CSV of historical calls.
Orchestra frozen cohort: select only workload-scoped, redacted capture metadata, review the summary, freeze the exact references, and materialize that auditable cohort locally:
orchestra evals create --project <slug> --workload <name> \
--last 14d --name <name>
The command shows how many eligible captures it found and asks before it
freezes or downloads anything. Use --yes for non-interactive automation.
Use the lower-level commands when the developer needs to inspect or edit the
redacted selection before freezing it:
orchestra evals catalog --project <slug> --workload <name> \
--from <iso> --to <iso> --limit 50 --seed <seed> \
--out .understudy/evals/catalog.json --json
orchestra evals cohort create --project <slug> --workload <name> \
--from-catalog .understudy/evals/catalog.json --name <name> --json
orchestra evals cohort export <cohort-id> --project <slug> \
--workload <name> --out .understudy/evals/<cohort-id> --yes
The catalog contains metadata and content hashes, never prompt/response
bodies. The export is limited to the immutable cohort, verifies every
downloaded body against its server-recorded SHA-256, and writes no signed
URLs to disk. Do not bypass this with a project-wide R2 dump when the hosted
cohort API is available.
Captures may carry either workload_id or the older placement_id — read
both.
Then confirm with the developer which workload(s) the traces should map to, and what the unit of one "task" is (one request? one conversation?).
Profile a whole capture directory first. When the source is a fleet of
gateway captures and the developer wants to know where the spend goes and
which call types a local model could take over, run the profiling playbook in
references/profile-captures.md before (or
instead of) per-workload ingestion — it produces a cost + call-type taxonomy
and a ranked local-takeover candidate list from the same .jsonl dump. When
the question is about trace content at fleet scale — "which runs failed",
"label these by failure mode", "summarize what goes wrong" — follow with the
bulk semantic-triage playbook in
references/lotus-semantic-triage.md.
For a local, call-by-call inspection of one trace, build the bundled trace viewer first:
orchestra traces build-viewer \
--source .understudy/captures \
--trace-id <trace-id> \
--output .understudy/trace-viewer/<trace-id>
It renders the execution timeline, system prompts, conversations, tool
definitions, tool invocations/results, and raw envelopes without a server or
upload. The generated trace-data.js contains private payloads and must stay
local. See references/trace-viewer.md for the
input aliases, output contract, and privacy boundary.
For multi-turn tool workloads, start the deterministic foundry with:
orchestra traces build-benchmark \
--source .understudy/captures \
--output .understudy/benchmarks/latest \
--max-age-days 3
Add --workload <id-or-name> whenever the capture directory contains multiple
workloads, and keep the default ten-row resumable batches. The CLI helpers are
the canonical implementation; do not recreate their normalization, DAG,
manifest, viewer, review, environment, or replay logic in an ad-hoc script.
Follow references/trace-foundry-cli.md for
the complete compile → review → replay lifecycle.
This fails closed when no capture falls inside the requested freshness window. It writes normalized captures, a source DAG, machine-proposed tasks and outcome contracts, a canonical benchmark manifest, and a local Design Language v2 viewer. The viewer defaults to parsed JSON, retains an explicit Raw view, and loads individual private captures lazily from disk.
The machine should make its strongest supported proposal immediately. Human review supplies final judgment and focuses on close calls; it does not manually author every environment. Captured incumbent behavior is evidence, never the sole oracle, and outcome contracts grade semantic final state rather than exact trajectory reproduction.
request.messages or equivalent) is the canonical
replay surface — record that invariant in the manifest; never evaluate
against a lossy projection.../capture-evidence/SKILL.md so its
split/baseline contract owns them from here.input_id, expected outputs/tool-calls where the trace
contains them) that optimize-workload adapters and
../compare-model-sweep/SKILL.md can
consume directly.references/profile-captures.md. "What is
this workload actually doing?" →
../understand-workload/SKILL.md.
Harness attachment, metric, and baseline →
../capture-evidence/SKILL.md.End with: the source shape and trace count pulled (staging path, not bucket
identity); the workload groups with their classification patterns and counts;
the frozen slice names, sizes, and hashes; the manifest paths written under
.understudy/ingest-traces/; the privacy assertions (local-only, no raw
bodies in manifests, review required before upload); and the recommended next
skill for this workload.
references/trace-envelopes.md — local
versioned-envelope decoding, SSE, raw preservation, and freshness.references/source-history-dag.md —
fingerprints, retries, branches, folds, mutations, and validation.references/trace-foundry-cli.md — the
deterministic compiler, review importer, Verifiers v1 generator, replay
planner/runner, resumable artifacts, and promotion contract.../capture-evidence/SKILL.md — owns the
metric/validator/baseline contract the frozen slices feed.references/profile-captures.md —
fleet-level cost and call-type taxonomy over the same capture set, with a
ranked local-takeover candidate list.references/lotus-semantic-triage.md —
content-level bulk triage (filter/label/rank/summarize all captures) with
LOTUS semantic operators on a local MLX-served model.../understand-workload/SKILL.md —
decomposes one ingested workload before model comparison.../curate-trajectories/SKILL.md — split
provenance and leak-blocking once selections are made.references/lotus-semantic-triage.md (opens in a new tab)references/profile-captures.md (opens in a new tab)references/source-history-dag.md (opens in a new tab)references/trace-envelopes.md (opens in a new tab)references/trace-foundry-cli.md (opens in a new tab)references/trace-viewer.md (opens in a new tab)templates/trace-viewer/index.html (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.Other plugins' skills for the same job