View as Markdown

Trace · API reference

Registry builds

Private neuron registries for your own models.

Related guide: Builds and canary sets

The registry build object

Attributes

idstringRequired
Unique identifier for the object.
objectenumRequired
The type of object. One of registry_build.
statusstringRequired
The object's current status.
hf_idstringRequired
The model's Hugging Face ID.
revisionstringRequired
The model's commit revision.
corpus_refstringRequired
The corpus the build read.
familiesarray of stringsRequired
Canary families.
registry_sizeintegerRequired
How many neurons to describe.
attemptsintegerRequired
How many delivery attempts were made.
resultobject | nullRequired
The build's result once it completes (the registry it wrote), else null.
errorstring | 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 build object

{
  "id": "tjob_01M6VQC403RG3M4981BTHAQGC8",
  "object": "registry_build",
  "status": "pending",
  "hf_id": "Qwen/Qwen2.5-0.5B-Instruct",
  "revision": "7ae55760",
  "corpus_ref": "default",
  "families": [
    "prompt_injection"
  ],
  "registry_size": 4096,
  "attempts": 0,
  "result": null,
  "error": null,
  "created_at": "2026-11-07T19:22:10.307Z",
  "updated_at": "2026-11-07T19:22:10.307Z",
  "expires_at": "2026-11-10T19:22:10.307Z",
  "poll_url": "/v1/trace/registry_builds/tjob_01M6VQC403RG3M4981BTHAQGC8"
}

Create a registry build

POST/v1/trace/registry_builds

Available on Enterprise

Builds a private neuron registry for your own model on a trace worker: labeled neurons and canary families measured on held-out examples. Poll the job.

Parameters

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
hf_idstringRequired
The model's Hugging Face ID.
revisionstringRequired
A Hugging Face commit SHA, not a branch.
corpus_refstring
A corpus the worker ships, by name (never a URL or path).
familiesarray of strings
Canary families to select (default: all eval sets on the worker).
registry_sizeinteger
How many neurons to describe.

Returns

The build, now queued. Poll it for the result. See the registry build object.

Errors

export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -X POST "$PROVENANCE_API/v1/trace/registry_builds" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "hf_id": "Qwen/Qwen2.5-0.5B-Instruct",
    "revision": "7ae55760",
    "families": [
      "prompt_injection"
    ]
  }'

Response 202

{
  "id": "tjob_01M6VQC403RG3M4981BTHAQGC8",
  "object": "registry_build",
  "status": "pending",
  "hf_id": "Qwen/Qwen2.5-0.5B-Instruct",
  "revision": "7ae55760",
  "corpus_ref": "default",
  "families": [
    "prompt_injection"
  ],
  "registry_size": 4096,
  "attempts": 0,
  "result": null,
  "error": null,
  "created_at": "2026-11-07T19:22:10.307Z",
  "updated_at": "2026-11-07T19:22:10.307Z",
  "expires_at": "2026-11-10T19:22:10.307Z",
  "poll_url": "/v1/trace/registry_builds/tjob_01M6VQC403RG3M4981BTHAQGC8"
}

Retrieve a registry build

GET/v1/trace/registry_builds/{id}

Returns a registry build's status and, when finished, the private model it created.

Parameters

idstringpathRequired
The object's ID.

Returns

The registry build. See the registry build object.

Errors

export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/trace/registry_builds" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "hf_id": "Qwen/Qwen2.5-0.5B-Instruct",
    "revision": "7ae55760",
    "families": [
      "prompt_injection"
    ]
  }' > step.json
export BUILD_ID=$(jq -r '.id' step.json)
sleep 8
curl "$PROVENANCE_API/v1/trace/registry_builds/$BUILD_ID" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "id": "tjob_01M6VQC4040NBNY867G79N8X7M",
  "object": "registry_build",
  "status": "completed",
  "hf_id": "Qwen/Qwen2.5-0.5B-Instruct",
  "revision": "7ae55760",
  "corpus_ref": "default",
  "families": [
    "prompt_injection"
  ],
  "registry_size": 4096,
  "attempts": 1,
  "result": {
    "model_version_id": "qwen2.5-0.5b-instruct@7ae55760-a21d8266",
    "status": "fixture",
    "backend": "fixture",
    "neurons": 128,
    "labeler": "heuristic-topk@1 (token/topic agreement over top-5 examples; no LLM)",
    "canary_sets": [
      {
        "set_id": "cs_9f213ab11e014bdfb25c50b9",
        "family": "prompt_injection",
        "member_count": 2,
        "validation": {
          "precision": 0.5625,
          "recall": 0.9,
          "eval_set": "python/trace-worker/eval_sets/prompt_injection.jsonl#odd-pairs",
          "n": 20,
          "grade": "fixture"
        }
      }
    ],
    "build_notes": "fixture replay of the recorded build (scripts/gen_fixtures.py) — registry_size and corpus_ref were not applied"
  },
  "error": null,
  "created_at": "2026-11-07T19:22:10.308Z",
  "updated_at": "2026-11-07T19:22:10.355Z",
  "expires_at": "2026-11-10T19:22:10.308Z",
  "poll_url": "/v1/trace/registry_builds/tjob_01M6VQC4040NBNY867G79N8X7M"
}

List registry builds

GET/v1/trace/registry_builds

Lists your account's registry builds.

Parameters

No parameters.

Returns

The registry builds, newest first.

Errors

export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl "$PROVENANCE_API/v1/trace/registry_builds" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "list",
  "data": [],
  "has_more": false,
  "next_cursor": null
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.