Concepts
Versions and export
Every adopted change becomes a version you can explain. The whole harness exports as portable JSON whenever you like.
Versions
v1 is made when you create the harness. Each adopt adds a version recording its parent, the experiment, the adopted variant, a snapshot of the spec, the variant's mean metric at the highest tier it ran, and the base harness version it ran under.
for v in h.versions():
print(v["version"], v["variant"], v["score"], v["experiment_id"])for (const v of await h.versions()) console.log(v.version, v.variant, v.score, v.experiment_id);Export
GET /api/harnesses/{id}/export (or h.export() in either SDK) returns the current spec as portable JSON in the synaptra.harness/1 format: your tools and hooks, metric, bar, tiers, settings and the version history. It records which base version the harness used; it doesn't include the base harness's internals.
{
"format": "synaptra.harness/1",
"id": "support-bot",
"name": "Support bot",
"metric": "accuracy", "direction": "max", "bar": 0.8,
"base": {"name": "synaptra-base", "version": "…"},
"tools": [{"name": "kb_search", "kind": "action", "schema": {"type": "object"}}],
"versions": [{"version": 1}, {"version": 2, "variant": "prompt-v2"}]
}Export is yours to use anywhere, any time. See You own your harness in the Terms.
Something unclear or missing? Email support@synaptra.my.