/orchestra:curate-trajectoriesfrom orchestra
Turns loose per-task trajectory JSONs into a queryable, provenance-tracked, contamination-safe dataset with hash-stamped selections and hard blocks on dev/holdout leakage into train/RL/distill pools.
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.
None: SKILL.md is the whole skill.
Trajectories pile up as loose per-task JSON across runs (each row roughly
{id, name, score, passed, assertion_results, steps, messages, end_state, finish_reasons, model, toolset, domain, seed, input/output_tokens, cost}). The
moment anyone feeds them to training, distillation, or RL they stop being logs
and become a dataset — and a dataset with no split hygiene silently kills
heldout claims. This worker owns the trajectory dataset as a first-class,
queryable, provenance-tracked, contamination-safe artifact: import → tag splits →
select (hash-stamped) → contamination check → emit a decontaminated pool.
The store is provider-agnostic. The source is Lilac or a local JSON corpus; this skill owns the hygiene and provenance layer on top, not the browser.
splits.json produced by capture-evidence, never re-derived by re-seeding or
re-hashing here. If splits.json is missing or stale, stop and route to
capture-evidence — do not guess membership..understudy/. Never upload the corpus, never print message bodies, secrets,
or raw payloads — operate on ids, provenance fields, counts, and hashes.Use this skill whenever trajectories feed a train / RL / distill / SFT pool, or
whenever you would otherwise hand-filter rows in bash (grep toolset=api, "drop
the seed-7 rows", "keep only passes"). Hand-filtering is the #1 way a heldout
claim silently dies; replace it with a hash-stamped selection. If the trajectories
are only being eyeballed (no downstream training/claim), a manifest is optional —
but the moment a number leaves the building, curate first.
This skill selects on provenance and contamination (split membership, dedup,
outcome conflicts) — it does not judge whether a trajectory is correct or
learnable. That pedagogical filtering (the useful-quadrant / surprise-gap cut)
lives in
local-distillation-lab's pedagogical arm,
which consumes this skill's decontaminated pool.
.understudy/curate-trajectories/index.jsonl from the run JSONs
(and/or a Lilac export). Carry full provenance: task_id, model, toolset, domain, source_run_id, timestamp, outcome, split (split left unknown until
step 2; back-fill model/toolset/domain from run-level meta when rows
omit them). Record a corpus hash and per-source counts. The task id is the
stable name (real exports put it in name, not the enumeration id). Don't
require a per-row RNG seed — many workloads have none (the initial state is
the seed); contamination safety keys on task_id↔split. Flag rows missing the
fields needed to tag or filter, and keep them out of guarded pools..understudy/capture-evidence/splits.json (its splits_sha256 goes in the
manifest). Map each trajectory's task id to train / dev / holdout /
none by the frozen split membership (the rows/row_ids lists). Tag every
index record. Rows in no frozen split are none and are quarantined from
guarded pools unless explicitly admitted.toolset == "api" and domain == "simple" and outcome == "pass"), evaluated over an allow-listed field set only (no arbitrary code).
Resolve it to a named selection, compute the selection hash, and write a row
manifest — never a loose id list pasted into the next command.(task_id, model, seed); (e) rows with
missing provenance. Emit a contamination report; any guarded-pool violation
hard-blocks unless overridden.train-safe / distill-safe
pool that provably excludes frozen dev+holdout, with its selection hash, the
splits_sha256 it was tagged against, the corpus hash, the row count, and the
row id manifest — so the claim survives audit. Hand this to the consumer.End with:
clean, blocked, or override (and if
override, the logged who/when/why and exactly which guarded rows were admitted);splits_sha256 it cites;result_type: curated-selection or blocked;compare-trajectories,
local-distillation-lab (including its
pedagogical arm),
prepare-verifier-handoff (its
stage-1 env authoring consumes the train-safe pool), or
recursive-language-model
pedagogical training — with the exact selection hash to pass it.../capture-evidence/SKILL.md — freezes
splits.json (train/dev/holdout); the split-membership source of truth this
skill tags against and never re-derives.../design-simulated-environment/SKILL.md
— produces the trajectories/traces this skill ingests and curates.../compare-trajectories/SKILL.md — consumes
a clean selection to diff trajectories across models.../prepare-verifier-handoff/references/stage-1-author-env.md
— consumes the train-safe pool as the RL training set.../prepare-verifier-handoff/SKILL.md —
carries the selection hash + splits_sha256 into the hosted-RL handoff.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./check-routing-healthUse when a developer asks "is Orchestra causing my errors", "which workloads are routed", "is my routing config actually taking effect", "is my provider healthy", "are there 500s on staging", "what's our error rate", "where is my gateway spend going", or wants self-service diagnostics without asking the team. Reads the hosted reporting endpoints with the developer's sk_* key./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.Other plugins' skills for the same job