View as Markdown

Trace · Guide

Label neurons

Most neurons in a registry have no label: they're unexplained. When you open a trace and want to know what the neurons that shaped an answer respond to, ask for labels. Claude Haiku writes each label from the neuron's top activating examples in the registry. When the neuron is a member of one of your canary sets, Claude Sonnet re-checks the label.

PropertyRule
What's sent to the labellerThe neuron's top examples from the registry (registry text, the token and the activation), never your prompt or completion
Who sees a labelYour account only. The public registry doesn't change.
What can't be labelledA neuron masked for you, such as a curated canary member. A label would reveal it.
What it costsThe model's cost of the calls the label took, plus 30%, in label credits; the pricing page has a credit's price. A label you already have is free to open again.
PlansPro and up. On Free, label with your sidecar's own key.

Before you begin: a trace with its attribution graph (see traced inference) and an account key.

export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5

1. Ask for labels on a trace

Name up to 20 neuron IDs from the trace's graph with POST /v1/trace/traces/{id}/labels. In the console, open the trace and select Label with Claude under What shaped the answer.

curl -X POST $PROVENANCE_API/v1/trace/traces/$TRACE_ID/labels \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "neurons": ["L13.1053.pos", "L20.648.neg"] }'
{
  "object": "trace_label_result",
  "trace_id": "trc_b9a77ee9e4b8ac4ae4335862ce6bdf85",
  "model_version_id": "qwen2.5-0.5b-instruct@7ae55760",
  "credits": 60,
  "data": [
    {
      "neuron": "L13.1053.pos",
      "status": "labelled",
      "label": { "object": "trace_neuron_label", "label": "imperative override words", "confidence": 0.62, "labeler": "claude-haiku-5-5", "source": "provenance", "rechecked": false, "credits": 3 }
    },
    {
      "neuron": "L20.648.neg",
      "status": "labelled",
      "label": { "object": "trace_neuron_label", "label": "instruction override phrasing", "confidence": 0.8, "labeler": "claude-haiku-5-5+claude-sonnet-5-5", "source": "provenance", "rechecked": true, "credits": 57 }
    }
  ]
}

Each neuron gets a status:

StatusMeaningBilled
labelledA new labelYes, its credits
cachedYou already have a label for it, from us or your sidecarNo
maskedIt's masked for you, so it isn't labelledNo
not_in_traceIt isn't a node of this trace's graphNo
no_examplesThe registry has no examples for itNo
errorThe labeller failed or declined for itNo

The sandbox has no labeller key, so it answers 503 trace_labeler_not_configured and bills nothing.

2. Read your labels

Your labels show on the trace's graph as each node's account_label, and in the list at GET /v1/trace/labels:

curl "$PROVENANCE_API/v1/trace/labels" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
{ "object": "list", "data": [], "has_more": false }

What a label costs

Each new label is one trace_label_credit row on your usage, with the label's credits as its quantity:

credits = ceil((input tokens × input price + output tokens × output price) × 1.30 / credit price)

The token prices are Anthropic's list prices for the models that ran, and every label costs at least one credit. A first pass on Claude Haiku usually costs a few credits. A canary member's label adds a Claude Sonnet re-check and costs about 60. A call that fails or is declined isn't billed.

An account gets up to 200 new labels an hour; labels you already have don't count. Past that, the request answers 429 rate_limit_exceeded.

Label with your own key

If you run a sidecar, it can label neurons with your own Anthropic key, and Provenance bills nothing for those labels. The worker labels neurons from your registry build's top examples and posts only the labels, signed with your worker key:

With your Anthropic key in ANTHROPIC_API_KEY on the worker:

TRACE_SIGNING_KEY_PEM="$(cat sidecar.key.pem)" TRACE_SIGNING_KEY_ID=$WORKER_KEY_ID \
PROVENANCE_API_URL=$PROVENANCE_API \
  provenance-trace-worker label --artifact my-model.registry.json --neurons L13.1053.pos,L20.648.neg

The worker sends POST /v1/trace/labels a token whose claims carry the model, the neuron IDs and the labels: no prompt, completion or example text. A label from your sidecar answers cached when you ask for it on a trace, so our labeller isn't called for it.

Errors you might see

ErrorCauseWhat to do
503 trace_labeler_not_configuredThe server has no labeller keyLabel with your sidecar's own key, or ask your operator to configure the labeller.
402 plan_requiredYour account is on FreeMove to Pro, or label with your sidecar's own key.
429 rate_limit_exceededMore than 200 new labels in an hourWait retry_after seconds, or name fewer neurons.
401 trace_reading_signature_invalidA sidecar's labels weren't signed by a live worker keyCheck TRACE_SIGNING_KEY_ID matches a live key.

See also