Trace · API reference
Registry diffs
Neuron-level comparisons between two registries, for CI.
Related guide: Neuron-CI diffs
The registry diff object
Attributes
idstringRequired- Unique identifier for the object.
objectenumRequired- The type of object. One of
registry_diff. statusstringRequired- The object's current status.
basestringRequired- The base model version.
targetstringRequired- The target model version.
canary_setsany | nullRequired- Canary sets.
taunumberRequired- The drift threshold, from 0 to 1.
passboolean | nullRequired- Whether the check passed.
reportobject | nullRequired- The report.
Show child attributes
basestringRequired- The base model version.
targetstringRequired- The target model version.
taunumberRequired- The drift threshold, from 0 to 1.
coverageobjectRequired- How many neurons each registry describes.
Show child attributes
base_neuronsintegerRequired- Neurons in the base registry.
target_neuronsintegerRequired- Neurons in the target registry.
sharedintegerRequired- Neurons in both.
label_changesobjectRequired- Neurons whose label changed.
Show child attributes
totalintegerRequired- The total.
itemsarray of anysRequired- The items.
new_unexplainedobjectRequired- Neurons that lost their label.
Show child attributes
totalintegerRequired- The total.
itemsarray of anysRequired- The items.
ablation_delta_driftobjectRequired- How much neurons' ablation changes moved.
Show child attributes
nintegerRequired- The number of samples it's based on.
mean_abs_driftintegerRequired- The mean absolute drift.
p95_abs_driftintegerRequired- The 95th-percentile absolute drift.
max_abs_driftintegerRequired- The largest absolute drift.
toparray of objectsRequired- The neurons that drifted most.
Show child attributes
neuron_refstringRequired- The neuron, as an ID or masked ID.
maskedbooleanRequired- Whether the neuron is masked in this view.
basenumberRequired- The base model version.
targetnumberRequired- The target model version.
driftintegerRequired- The drift, from 0 to 1.
canary_member_shiftarray of objectsRequired- How each canary family changed.
Show child attributes
familystringRequired- The canary family.
scopestringRequired- What the object applies to.
statusstringRequired- The object's current status.
measurestringRequired- How the family was compared: by
members, or byvalidationwhen the two sides are curated and your own. base_member_countintegerRequired- Members in the base.
target_member_countintegerRequired- Members in the target.
keptintegerRequired- Members in both.
addedintegerRequired- Members only in the target.
removedintegerRequired- Members only in the base.
jaccardintegerRequired- The members' Jaccard similarity, from 0 to 1.
validationobjectRequired- The family's measured precision and recall.
Show child attributes
baseobjectRequired- The base model version.
Show child attributes
precisionnumberRequired- Measured precision, from 0 to 1.
recallnumberRequired- Measured recall, from 0 to 1.
eval_setstringRequired- The evaluation set it was measured on.
nintegerRequired- The number of samples it's based on.
gradestringRequired- How the measurement was graded.
targetobjectRequired- The target model version.
Show child attributes
precisionnumberRequired- Measured precision, from 0 to 1.
recallnumberRequired- Measured recall, from 0 to 1.
eval_setstringRequired- The evaluation set it was measured on.
nintegerRequired- The number of samples it's based on.
gradestringRequired- How the measurement was graded.
precision_deltaintegerRequired- The change in measured precision.
recall_deltaintegerRequired- The change in measured recall.
driftintegerRequired- The drift, from 0 to 1.
exceeds_taubooleanRequired- Whether the family drifted past
tau.
summaryobjectRequired- A one-line summary.
Show child attributes
label_changesintegerRequired- Neurons whose label changed.
new_unexplainedintegerRequired- Neurons that lost their label.
families_checkedintegerRequired- Families compared.
families_driftedarray of anysRequired- Families that drifted past
tau. families_not_comparablearray of anysRequired- Families that couldn't be compared.
passbooleanRequired- Whether the check passed.
manifeststring | nullRequired- The signed manifest, an ES256 JWS.
report_hashstring | nullRequired- SHA-256 of the canonical report, bound into the manifest.
errorany | nullRequired- An error, when one occurred.
created_atstringRequired- When it was created.
updated_atstringRequired- When it last changed.
expires_atstringRequired- When it expires.
poll_urlstringRequired- The URL to poll for the result.
The registry diff object
{
"id": "tjob_01M6VQCBTFETQSMQAXME9R1PQ7",
"object": "registry_diff",
"status": "pending",
"base": "qwen2.5-0.5b-instruct@7ae55760",
"target": "qwen2.5-0.5b-instruct@7ae55760",
"canary_sets": null,
"tau": 0.25,
"pass": null,
"report": null,
"manifest": null,
"report_hash": null,
"error": null,
"created_at": "2026-11-07T19:22:18.319Z",
"updated_at": "2026-11-07T19:22:18.319Z",
"expires_at": "2026-12-07T19:22:18.319Z",
"poll_url": "/v1/trace/diffs/tjob_01M6VQCBTFETQSMQAXME9R1PQ7"
}Events
Sent to your webhook endpoints when they subscribe:
trace.registry_diff.completed
Create a registry diff
POST/v1/trace/diffs
Compares two registries of the same architecture, such as a model and its fine-tune: label changes, new unexplained neurons, ablation drift and canary drift. Poll the diff for a pass or fail.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
basestringRequired- model_version_id or slug (public, or your private build)
targetstringRequired- The target model version.
canary_setsarray of strings- Families to check (default: every family on either model).
taunumber- A family whose drift exceeds tau fails the gate.
Returns
The diff, now queued. Poll it for the report. See the registry diff object.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -X POST "$PROVENANCE_API/v1/trace/diffs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"base": "qwen2.5-0.5b-instruct@7ae55760",
"target": "qwen2.5-0.5b-instruct@7ae55760",
"tau": 0.25
}'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/diffs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"base": "qwen2.5-0.5b-instruct@7ae55760",
"target": "qwen2.5-0.5b-instruct@7ae55760",
"tau": 0.25
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/trace/diffs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"base": "qwen2.5-0.5b-instruct@7ae55760",
"target": "qwen2.5-0.5b-instruct@7ae55760",
"tau": 0.25
}).json()Response 202
{
"id": "tjob_01M6VQCBTFETQSMQAXME9R1PQ7",
"object": "registry_diff",
"status": "pending",
"base": "qwen2.5-0.5b-instruct@7ae55760",
"target": "qwen2.5-0.5b-instruct@7ae55760",
"canary_sets": null,
"tau": 0.25,
"pass": null,
"report": null,
"manifest": null,
"report_hash": null,
"error": null,
"created_at": "2026-11-07T19:22:18.319Z",
"updated_at": "2026-11-07T19:22:18.319Z",
"expires_at": "2026-12-07T19:22:18.319Z",
"poll_url": "/v1/trace/diffs/tjob_01M6VQCBTFETQSMQAXME9R1PQ7"
}Retrieve a registry diff
GET/v1/trace/diffs/{id}
Returns a diff's status and, when finished, its report and signed manifest.
Parameters
idstringpathRequired- The object's ID.
Returns
The diff. See the registry diff object.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/trace/diffs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"base": "qwen2.5-0.5b-instruct@7ae55760",
"target": "qwen2.5-0.5b-instruct@7ae55760",
"tau": 0.25
}' > step.json
export DIFF_ID=$(jq -r '.id' step.json)
sleep 8
curl "$PROVENANCE_API/v1/trace/diffs/$DIFF_ID" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/diffs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"base": "qwen2.5-0.5b-instruct@7ae55760",
"target": "qwen2.5-0.5b-instruct@7ae55760",
"tau": 0.25
}),
})).json();
const diffId = step1.id;
await new Promise((ok) => setTimeout(ok, 8000));
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/diffs/${diffId}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import time
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/trace/diffs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"base": "qwen2.5-0.5b-instruct@7ae55760",
"target": "qwen2.5-0.5b-instruct@7ae55760",
"tau": 0.25
}).json()
diff_id = step1["id"]
time.sleep(8)
data = httpx.get(f"{api}/v1/trace/diffs/{diff_id}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"id": "tjob_01M6VQCBTGQ2QBX38EQMR8XGKH",
"object": "registry_diff",
"status": "completed",
"base": "qwen2.5-0.5b-instruct@7ae55760",
"target": "qwen2.5-0.5b-instruct@7ae55760",
"canary_sets": null,
"tau": 0.25,
"pass": true,
"report": {
"base": "qwen2.5-0.5b-instruct@7ae55760",
"target": "qwen2.5-0.5b-instruct@7ae55760",
"tau": 0.25,
"coverage": {
"base_neurons": 128,
"target_neurons": 128,
"shared": 128
},
"label_changes": {
"total": 0,
"items": []
},
"new_unexplained": {
"total": 0,
"items": []
},
"ablation_delta_drift": {
"n": 128,
"mean_abs_drift": 0,
"p95_abs_drift": 0,
"max_abs_drift": 0,
"top": [
{
"neuron_ref": "L0.4600.neg",
"masked": false,
"base": 0.0622,
"target": 0.0622,
"drift": 0
},
{
"neuron_ref": "n_99b82b3862f920ae",
"masked": true,
"base": 0.042,
"target": 0.042,
"drift": 0
},
{
"neuron_ref": "L13.1053.pos",
"masked": false,
"base": 0.2459,
"target": 0.2459,
"drift": 0
},
"… 47 more"
]
},
"canary_member_shift": [
{
"family": "credential_exfiltration",
"scope": "curated",
"status": "compared",
"measure": "membership",
"base_member_count": 1,
"target_member_count": 1,
"kept": 1,
"added": 0,
"removed": 0,
"jaccard": 1,
"validation": {
"base": {
"precision": 0.8889,
"recall": 0.8,
"eval_set": "python/trace-worker/eval_sets/credential_exfiltration.jsonl#odd-pairs",
"n": 20,
"grade": "fixture"
},
"target": {
"precision": 0.8889,
"recall": 0.8,
"eval_set": "python/trace-worker/eval_sets/credential_exfiltration.jsonl#odd-pairs",
"n": 20,
"grade": "fixture"
},
"precision_delta": 0,
"recall_delta": 0
},
"drift": 0,
"exceeds_tau": false
},
{
"family": "prompt_injection",
"scope": "curated",
"status": "compared",
"measure": "membership",
"base_member_count": 2,
"target_member_count": 2,
"kept": 2,
"added": 0,
"removed": 0,
"jaccard": 1,
"validation": {
"base": {
"precision": 0.5625,
"recall": 0.9,
"eval_set": "python/trace-worker/eval_sets/prompt_injection.jsonl#odd-pairs",
"n": 20,
"grade": "fixture"
},
"target": {
"precision": 0.5625,
"recall": 0.9,
"eval_set": "python/trace-worker/eval_sets/prompt_injection.jsonl#odd-pairs",
"n": 20,
"grade": "fixture"
},
"precision_delta": 0,
"recall_delta": 0
},
"drift": 0,
"exceeds_tau": false
}
],
"summary": {
"label_changes": 0,
"new_unexplained": 0,
"families_checked": 2,
"families_drifted": [],
"families_not_comparable": [],
"pass": true
}
},
"manifest": "eyJhbGciOiJFUzI1NiIsInR5cCI6InByb3ZlbmFuY2UtdHJhY2UtZGlmZitqd3QiLCJraWQiOiJmNzY1YTk5YWQwNTQzZDk5In0.eyJpc3MiOiJwcm92ZW5hbmNlLWF1dGhvcml6ZSIsImlhdCI6MTc5NDA3OTMzOCwiZGlmZl9pZCI6InRqb2JfMDFNNlZRQ0JUR1EyUUJYMzhFUU1SOFhHS0giLCJiYXNlX21vZGVsIjoicXdlbjIuNS0wLjViLWluc3RydWN0QDdhZTU1NzYwIiwidGFyZ2V0X21vZGVsIjoicXdlbjIuNS0wLjViLWluc3RydWN0QDdhZTU1NzYwIiwidGF1IjowLjI1LCJwYXNzIjp0cnVlLCJmYW1pbGllc19kcmlmdGVkIjowLCJyZXBvcnRfaGFzaCI6IjVmZDI2OWM0MGQwNzc4NjMxMDg4MWMyNDAzNzZjODkwNDkyZjQwMWUyMmM4NGQxNDQ4OGEwYTIxNzRmZmQwMzEifQ.-nYWpg1RZfH1kPRM02SIzrmdQwi68pGxXfgk5NkLAmSXc_5BNAA76LKW9F7dh9xgb7oNPvDTlf4JzOxpR2oQBQ",
"report_hash": "5fd269c40d07786310881c240376c890492f401e22c84d14488a0a2174ffd031",
"error": null,
"created_at": "2026-11-07T19:22:18.320Z",
"updated_at": "2026-11-07T19:22:18.410Z",
"expires_at": "2026-12-07T19:22:18.320Z",
"poll_url": "/v1/trace/diffs/tjob_01M6VQCBTGQ2QBX38EQMR8XGKH"
}List registry diffs
GET/v1/trace/diffs
Lists your account's registry diffs.
Parameters
No parameters.
Returns
The diffs, newest first. Fetch one for its report.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl "$PROVENANCE_API/v1/trace/diffs" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/diffs`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/trace/diffs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "list",
"data": [],
"has_more": false,
"next_cursor": null
}